local-diff-reviewer 1.0.11 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/README.md +9 -2
  2. package/SKILL.md +3 -1
  3. package/dist/cli/start.js +97 -18
  4. package/dist/web/assets/{arc-BOpgS1XG.js → arc-BTM4ghNf.js} +1 -1
  5. package/dist/web/assets/{architectureDiagram-3BPJPVTR-C7QsBMbs.js → architectureDiagram-3BPJPVTR-DyOV0Jtr.js} +1 -1
  6. package/dist/web/assets/{blockDiagram-GPEHLZMM-QaQaVyDL.js → blockDiagram-GPEHLZMM-CxJbhmIT.js} +1 -1
  7. package/dist/web/assets/{c4Diagram-AAUBKEIU-CufBBkVk.js → c4Diagram-AAUBKEIU-BJQFA8CQ.js} +1 -1
  8. package/dist/web/assets/channel-zJdz6BA1.js +1 -0
  9. package/dist/web/assets/{chunk-2J33WTMH-Cj_oaVb4.js → chunk-2J33WTMH-C5OtbA_r.js} +1 -1
  10. package/dist/web/assets/{chunk-3OPIFGDE-DmJyquPX.js → chunk-3OPIFGDE-B9KuazSf.js} +1 -1
  11. package/dist/web/assets/{chunk-4BX2VUAB-CwaF4zJY.js → chunk-4BX2VUAB-B8LRminS.js} +1 -1
  12. package/dist/web/assets/{chunk-55IACEB6-DqeKiemL.js → chunk-55IACEB6-SkDhErOo.js} +1 -1
  13. package/dist/web/assets/{chunk-5ZQYHXKU-DNp0ZNVB.js → chunk-5ZQYHXKU-Bb82bV79.js} +1 -1
  14. package/dist/web/assets/{chunk-727SXJPM-BKKrSCOF.js → chunk-727SXJPM-Dl1e3M-k.js} +1 -1
  15. package/dist/web/assets/{chunk-AQP2D5EJ-BCNSIQmO.js → chunk-AQP2D5EJ-ds7_Qz_Y.js} +1 -1
  16. package/dist/web/assets/{chunk-BSJP7CBP-Ce9WIScW.js → chunk-BSJP7CBP-Ddngm4Zu.js} +1 -1
  17. package/dist/web/assets/{chunk-CSCIHK7Q-Cj2N3A_X.js → chunk-CSCIHK7Q-zBbkk0kR.js} +1 -1
  18. package/dist/web/assets/{chunk-FMBD7UC4-BADdZIdh.js → chunk-FMBD7UC4-C9gGg2hs.js} +1 -1
  19. package/dist/web/assets/{chunk-KSCS5N6A-BeYyq8hv.js → chunk-KSCS5N6A-CYRCkspU.js} +1 -1
  20. package/dist/web/assets/{chunk-L5ZTLDWV-vyV2WecR.js → chunk-L5ZTLDWV-at0vaITZ.js} +1 -1
  21. package/dist/web/assets/{chunk-LZXEDZCA-DFAA6FIb.js → chunk-LZXEDZCA-CB2tlbwU.js} +2 -2
  22. package/dist/web/assets/{chunk-ND2GUHAM-BvZh95FB.js → chunk-ND2GUHAM-SF9ziKuY.js} +1 -1
  23. package/dist/web/assets/{chunk-NZK2D7GU-Cd_AyI2R.js → chunk-NZK2D7GU-cDloGQoC.js} +1 -1
  24. package/dist/web/assets/{chunk-O5CBEL6O-BWTFeGAA.js → chunk-O5CBEL6O-BKhNShTj.js} +1 -1
  25. package/dist/web/assets/chunk-QZHKN3VN-DOXAr87O.js +1 -0
  26. package/dist/web/assets/chunk-WU5MYG2G-HE1Sw8W0.js +1 -0
  27. package/dist/web/assets/{chunk-XPW4576I-BoQ5PHbI.js → chunk-XPW4576I-C5N-bWNh.js} +1 -1
  28. package/dist/web/assets/classDiagram-4FO5ZUOK-DhMmSdQh.js +1 -0
  29. package/dist/web/assets/classDiagram-v2-Q7XG4LA2-C-ONPelI.js +1 -0
  30. package/dist/web/assets/{cose-bilkent-S5V4N54A-DEOEnRu1.js → cose-bilkent-S5V4N54A-CVt4gjy_.js} +1 -1
  31. package/dist/web/assets/{dagre-BM42HDAG-3EFNtJfA.js → dagre-BM42HDAG-DsFFRdXb.js} +1 -1
  32. package/dist/web/assets/{diagram-2AECGRRQ-Dl6nD1tR.js → diagram-2AECGRRQ-DU-SS203.js} +1 -1
  33. package/dist/web/assets/{diagram-5GNKFQAL-C2ZqLXAR.js → diagram-5GNKFQAL-Caxxw6ez.js} +1 -1
  34. package/dist/web/assets/{diagram-KO2AKTUF-CLemszwR.js → diagram-KO2AKTUF-C86fE-G2.js} +1 -1
  35. package/dist/web/assets/{diagram-LMA3HP47-WJtVAgyf.js → diagram-LMA3HP47-CbblsEig.js} +1 -1
  36. package/dist/web/assets/{diagram-OG6HWLK6-DLcglDzh.js → diagram-OG6HWLK6-VVwPWCNJ.js} +1 -1
  37. package/dist/web/assets/{dist-BD8BTEle.js → dist-DP09l7dv.js} +1 -1
  38. package/dist/web/assets/{erDiagram-TEJ5UH35-DB0o5lHM.js → erDiagram-TEJ5UH35-DybhgsWs.js} +1 -1
  39. package/dist/web/assets/{flowDiagram-I6XJVG4X-DGNyzO3n.js → flowDiagram-I6XJVG4X-L175L0f8.js} +1 -1
  40. package/dist/web/assets/{ganttDiagram-6RSMTGT7-DFcI8gjU.js → ganttDiagram-6RSMTGT7-Bnn1hKvs.js} +1 -1
  41. package/dist/web/assets/{gitGraphDiagram-PVQCEYII-q30GMhck.js → gitGraphDiagram-PVQCEYII-C0ZBrF0f.js} +1 -1
  42. package/dist/web/assets/{index-mFrEtl6e.js → index-B4AzQzzw.js} +24 -24
  43. package/dist/web/assets/index-uLsBVssy.css +1 -0
  44. package/dist/web/assets/{infoDiagram-5YYISTIA-Bn7G90QN.js → infoDiagram-5YYISTIA-BjE1edtT.js} +1 -1
  45. package/dist/web/assets/{ishikawaDiagram-YF4QCWOH-BV3Sotps.js → ishikawaDiagram-YF4QCWOH-CA7-Z3nV.js} +1 -1
  46. package/dist/web/assets/{journeyDiagram-JHISSGLW-BtSXI5Am.js → journeyDiagram-JHISSGLW-7yRPAxui.js} +1 -1
  47. package/dist/web/assets/{kanban-definition-UN3LZRKU-B8tZB50Y.js → kanban-definition-UN3LZRKU-CxJbCLrw.js} +1 -1
  48. package/dist/web/assets/{line-ig55n5ES.js → line-BZChgTw_.js} +1 -1
  49. package/dist/web/assets/{linear-qGjeU4AP.js → linear-Ch3uwdzh.js} +1 -1
  50. package/dist/web/assets/{mermaid-parser.core-DxxQqVaE.js → mermaid-parser.core-BwmBog8o.js} +1 -1
  51. package/dist/web/assets/{mermaid.core-BBkLU4xy.js → mermaid.core-DbfGaZdz.js} +3 -3
  52. package/dist/web/assets/{mindmap-definition-RKZ34NQL-D61BQDKI.js → mindmap-definition-RKZ34NQL-DY-t2KPo.js} +1 -1
  53. package/dist/web/assets/{pieDiagram-4H26LBE5-GrXCe3Mv.js → pieDiagram-4H26LBE5-BkM6-CcI.js} +1 -1
  54. package/dist/web/assets/{quadrantDiagram-W4KKPZXB-Bmj1Zhyf.js → quadrantDiagram-W4KKPZXB-Bo2ow9Oq.js} +1 -1
  55. package/dist/web/assets/{requirementDiagram-4Y6WPE33-C4Wt9tYO.js → requirementDiagram-4Y6WPE33-BpPkW4oY.js} +1 -1
  56. package/dist/web/assets/{sankeyDiagram-5OEKKPKP-BpEXiP3R.js → sankeyDiagram-5OEKKPKP-Clh6BTES.js} +1 -1
  57. package/dist/web/assets/{sequenceDiagram-3UESZ5HK-BY0QnrHB.js → sequenceDiagram-3UESZ5HK-Cj1hGXAx.js} +1 -1
  58. package/dist/web/assets/{src-DKCcYPqn.js → src-Bm_zkrgy.js} +1 -1
  59. package/dist/web/assets/{stateDiagram-AJRCARHV-BNe3FO3i.js → stateDiagram-AJRCARHV-D34qh_xR.js} +1 -1
  60. package/dist/web/assets/stateDiagram-v2-BHNVJYJU-zAS4zz8v.js +1 -0
  61. package/dist/web/assets/{timeline-definition-PNZ67QCA-BlWgTk_0.js → timeline-definition-PNZ67QCA-C14XIn0F.js} +1 -1
  62. package/dist/web/assets/{vennDiagram-CIIHVFJN-Dpfbo-af.js → vennDiagram-CIIHVFJN-CmRloXuF.js} +1 -1
  63. package/dist/web/assets/{wardleyDiagram-YWT4CUSO-BKnl9Arx.js → wardleyDiagram-YWT4CUSO-BJfba87H.js} +1 -1
  64. package/dist/web/assets/{xychartDiagram-2RQKCTM6-C5VJlVCG.js → xychartDiagram-2RQKCTM6-DnEMDZBA.js} +1 -1
  65. package/dist/web/index.html +2 -2
  66. package/package.json +1 -1
  67. package/dist/web/assets/channel-BPEgeY7j.js +0 -1
  68. package/dist/web/assets/chunk-QZHKN3VN-BM3ywZyg.js +0 -1
  69. package/dist/web/assets/chunk-WU5MYG2G-DwPzycK6.js +0 -1
  70. package/dist/web/assets/classDiagram-4FO5ZUOK-B-Ye1HF8.js +0 -1
  71. package/dist/web/assets/classDiagram-v2-Q7XG4LA2-DnIZKORc.js +0 -1
  72. package/dist/web/assets/index-1vvZG57w.css +0 -1
  73. package/dist/web/assets/stateDiagram-v2-BHNVJYJU-DMtybq8y.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-BBkLU4xy.js","assets/chunk-O5CBEL6O-BWTFeGAA.js","assets/src-DKCcYPqn.js","assets/chunk-5ZQYHXKU-DNp0ZNVB.js","assets/dist-BD8BTEle.js","assets/chunk-CSCIHK7Q-Cj2N3A_X.js","assets/chunk-3OPIFGDE-DmJyquPX.js","assets/chunk-L5ZTLDWV-vyV2WecR.js","assets/chunk-NZK2D7GU-Cd_AyI2R.js","assets/rough.esm-KjoEK0it.js","assets/chunk-BSJP7CBP-Ce9WIScW.js","assets/chunk-KSCS5N6A-BeYyq8hv.js","assets/line-ig55n5ES.js","assets/path-BJQEcSo7.js","assets/array-yLZkcI6Y.js","assets/chunk-LZXEDZCA-DFAA6FIb.js","assets/chunk-WU5MYG2G-DwPzycK6.js","assets/chunk-XPW4576I-BoQ5PHbI.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-DbfGaZdz.js","assets/chunk-O5CBEL6O-BKhNShTj.js","assets/src-Bm_zkrgy.js","assets/chunk-5ZQYHXKU-Bb82bV79.js","assets/dist-DP09l7dv.js","assets/chunk-CSCIHK7Q-zBbkk0kR.js","assets/chunk-3OPIFGDE-B9KuazSf.js","assets/chunk-L5ZTLDWV-at0vaITZ.js","assets/chunk-NZK2D7GU-cDloGQoC.js","assets/rough.esm-KjoEK0it.js","assets/chunk-BSJP7CBP-Ddngm4Zu.js","assets/chunk-KSCS5N6A-CYRCkspU.js","assets/line-BZChgTw_.js","assets/path-BJQEcSo7.js","assets/array-yLZkcI6Y.js","assets/chunk-LZXEDZCA-CB2tlbwU.js","assets/chunk-WU5MYG2G-HE1Sw8W0.js","assets/chunk-XPW4576I-C5N-bWNh.js"])))=>i.map(i=>d[i]);
2
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),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(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},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(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),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`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.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.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`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(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 N(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,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(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 P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}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)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},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=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.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 E(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)T.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 E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.6`})),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&&j(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&&j(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 j(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,j(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`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(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.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 o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.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=c(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=c(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})}}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=c(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=c(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})}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 s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.6`})),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){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n: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}var m=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),A=Symbol.for(`react.memo_cache_sentinel`),j=Symbol.iterator;function M(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var N=Symbol.for(`react.client.reference`);function P(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===N?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?P(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return P(e(t))}catch{}}return null}var F=Array.isArray,I=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R={pending:!1,data:null,method:null,action:null},z=[],B=-1;function V(e){return{current:e}}function H(e){0>B||(e.current=z[B],z[B]=null,B--)}function U(e,t){B++,z[B]=e.current,e.current=t}var W=V(null),ee=V(null),te=V(null),ne=V(null);function re(e,t){switch(U(te,t),U(ee,e),U(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Wd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Wd(t),e=Gd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}H(W),U(W,e)}function ie(){H(W),H(ee),H(te)}function ae(e){e.memoizedState!==null&&U(ne,e);var t=W.current,n=Gd(t,e.type);t!==n&&(U(ee,e),U(W,n))}function G(e){ee.current===e&&(H(W),H(ee)),ne.current===e&&(H(ne),tp._currentValue=R)}var K,oe;function se(e){if(K===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);K=t&&t[1]||``,oe=-1<e.stack.indexOf(`
3
3
  at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
4
  `+K+e+oe}var ce=!1;function q(e,t){if(!e||ce)return``;ce=!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}e.call(n.prototype)}}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(`
@@ -222,7 +222,7 @@ html body {
222
222
  ${Y(i)} ${Y(i)} 0 0 ${n},
223
223
  ${Y(i)} 0 0 0 ${n} inset,
224
224
  0 ${Y(i)} 0 0 ${n} inset;
225
- `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:`relative`,zIndex:1,boxShadow:r}}},ET=e=>{let{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return{margin:0,padding:0,listStyle:`none`,background:o,borderTop:`${Y(e.lineWidth)} ${e.lineType} ${a}`,display:`flex`,borderRadius:`0 0 ${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)}`,...Ha(),"& > li":{margin:r,color:e.colorTextDescription,textAlign:`center`,"> span":{position:`relative`,display:`block`,minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:`pointer`,"&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:`inline-block`,width:`100%`,color:e.colorIcon,lineHeight:Y(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:Y(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Y(e.lineWidth)} ${e.lineType} ${a}`}}}},DT=e=>({margin:`${Y(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:`flex`,...Ha(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:`hidden`,flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...za},"&-description":{color:e.colorTextDescription}}),OT=e=>{let{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${Y(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Y(e.padding)} ${Y(i)}`}}},kT=e=>{let{componentCls:t}=e;return{overflow:`hidden`,[`${t}-body`]:{userSelect:`none`}}},AT=e=>{let{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:o,extraColor:s,motionDurationMid:c}=e;return{[t]:{...Ba(e),position:`relative`,background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:wT(e),[`${t}-extra`]:{marginInlineStart:`auto`,color:s,fontWeight:`normal`,fontSize:e.fontSize},[`${t}-body`]:{padding:o,borderRadius:`0 0 ${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:TT(e),[`${t}-cover`]:{"> *":{display:`block`,width:`100%`,borderRadius:`${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:ET(e),[`${t}-meta`]:DT(e)},[`${t}-bordered`]:{border:`${Y(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:`pointer`,transition:[`box-shadow`,`border-color`].map(e=>`${e} ${c}`).join(`, `),"&:hover":{borderColor:`transparent`,boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:`flex`,flexWrap:`wrap`},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:OT(e),[`${t}-loading`]:kT(e),[`${t}-rtl`]:{direction:`rtl`}}},jT=e=>{let{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${Y(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:`flex`,alignItems:`center`}}}}},MT=Ya(`Card`,e=>{let t=ci(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[AT(t),jT(t)]},e=>({headerBg:`transparent`,headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG})),NT=e=>{let{actionClasses:t,actions:n=[],actionStyle:r}=e;return v.createElement(`ul`,{className:t,style:r},n.map((e,t)=>{let r=`action-${t}`;return v.createElement(`li`,{style:{width:`${100/n.length}%`},key:r},v.createElement(`span`,null,e))}))},PT=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:s={},bodyStyle:c={},title:l,loading:u,bordered:d,variant:f,size:p,type:m,cover:h,actions:g,tabList:_,children:y,activeTabKey:b,defaultActiveTabKey:x,tabBarExtraContent:S,hoverable:C,tabProps:w={},classNames:T,styles:E,...D}=e,{getPrefixCls:O,direction:k,className:A,style:j,classNames:M,styles:N}=Qe(`card`),[P]=ab(`card`,f,d),F=jd(p),I={...e,size:F,variant:P},[L,R]=Oc([M,T],[N,E],{props:I}),z=t=>{e.onTabChange?.(t)},B=v.useMemo(()=>fe(y),[y]),V=v.useMemo(()=>B.some(e=>v.isValidElement(e)&&e.type===CT),[B]),H=O(`card`,n),[U,W]=MT(H),ee=v.createElement(Cg,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),te=b!==void 0,ne={...w,[te?`activeKey`:`defaultActiveKey`]:te?b:x,tabBarExtraContent:S},re,ie=F===`small`?F:`large`,ae=_?v.createElement(ST,{size:ie,...ne,className:`${H}-head-tabs`,onChange:z,items:_.map(({tab:e,...t})=>({label:e,...t}))}):null;if(l||o||ae){let e=J(`${H}-head`,L.header),t=J(`${H}-head-title`,L.title),n=J(`${H}-extra`,L.extra),r={...s,...R.header};re=v.createElement(`div`,{className:e,style:r},v.createElement(`div`,{className:`${H}-head-wrapper`},l&&v.createElement(`div`,{className:t,style:R.title},l),o&&v.createElement(`div`,{className:n,style:R.extra},o)),ae)}let G=J(`${H}-cover`,L.cover),K=h?v.createElement(`div`,{className:G,style:R.cover},h):null,oe=J(`${H}-body`,L.body),se={...c,...R.body},ce=u||B.length?v.createElement(`div`,{className:oe,style:se},u?ee:y):null,q=J(`${H}-actions`,L.actions),le=g?.length?v.createElement(NT,{actionClasses:q,actionStyle:R.actions,actions:g}):null,ue=de(D,[`onTabChange`]),pe=J(H,A,{[`${H}-loading`]:u,[`${H}-bordered`]:P!==`borderless`,[`${H}-hoverable`]:C,[`${H}-contain-grid`]:V,[`${H}-contain-tabs`]:_?.length,[`${H}-small`]:F===`small`,[`${H}-type-${m}`]:!!m,[`${H}-rtl`]:k===`rtl`},r,i,U,W,L.root),me={...R.root,...j,...a};return v.createElement(`div`,{ref:t,...ue,className:pe,style:me},re,K,ce,le)}),FT=e=>{let{prefixCls:t,className:n,avatar:r,title:i,description:a,style:o,classNames:s,styles:c,...l}=e,{getPrefixCls:u,className:d,style:f,classNames:p,styles:m}=Qe(`cardMeta`),h=`${u(`card`,t)}-meta`,[g,_]=Oc([p,s],[m,c],{props:e}),y=J(h,n,d,g.root),b={...f,..._.root,...o},x=J(`${h}-avatar`,g.avatar),S=J(`${h}-title`,g.title),C=J(`${h}-description`,g.description),w=J(`${h}-section`,g.section),T=r?v.createElement(`div`,{className:x,style:_.avatar},r):null,E=i?v.createElement(`div`,{className:S,style:_.title},i):null,D=a?v.createElement(`div`,{className:C,style:_.description},a):null,O=E||D?v.createElement(`div`,{className:w,style:_.section},E,D):null;return v.createElement(`div`,{...l,className:y,style:b},T,O)},IT=PT;IT.Grid=CT,IT.Meta=FT;function LT(e,t,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,o=r.noLeading,s=o===void 0?!1:o,c=r.debounceMode,l=c===void 0?void 0:c,u,d=!1,f=0;function p(){u&&clearTimeout(u)}function m(e){var t=(e||{}).upcomingOnly,n=t===void 0?!1:t;p(),d=!n}function h(){var n=[...arguments],r=this,i=Date.now()-f;if(d)return;function o(){f=Date.now(),t.apply(r,n)}function c(){u=void 0}!s&&l&&!u&&o(),p(),l===void 0&&i>e?s?(f=Date.now(),a||(u=setTimeout(l?c:o,e))):o():a!==!0&&(u=setTimeout(l?c:o,l===void 0?e-i:e))}return h.cancel=m,h}function RT(e,t,n){var r=(n||{}).atBegin;return LT(e,t,{debounceMode:(r===void 0?!1:r)!==!1})}var zT=(0,v.createContext)({});function BT(e){return e===`auto`?`1 1 auto`:oc(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var VT=v.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=v.useContext(Ye),{gutter:i,wrap:a}=v.useContext(zT),{prefixCls:o,span:s,order:c,offset:l,push:u,pull:d,className:f,children:p,flex:m,style:h,...g}=e,_=n(`col`,o),y=n(),[b,x]=Bg(_),[S]=Qa(y,`col`),C={},w={};Ib.forEach(t=>{let n={},i=e[t];oc(i)?n.span=i:cc(i)&&(n=i||{}),delete g[t],w={...w,[`${_}-${t}-${n.span}`]:ac(n.span),[`${_}-${t}-order-${n.order}`]:n.order||n.order===0,[`${_}-${t}-offset-${n.offset}`]:n.offset||n.offset===0,[`${_}-${t}-push-${n.push}`]:n.push||n.push===0,[`${_}-${t}-pull-${n.pull}`]:n.pull||n.pull===0,[`${_}-rtl`]:r===`rtl`},n.flex&&(w[`${_}-${t}-flex`]=!0,C[S(`${t}-flex`)]=BT(n.flex))});let T=J(_,{[`${_}-${s}`]:s!==void 0,[`${_}-order-${c}`]:c,[`${_}-offset-${l}`]:l,[`${_}-push-${u}`]:u,[`${_}-pull-${d}`]:d},f,w,b,x),E={};return i?.[0]&&(E.paddingInline=oc(i[0])?`${i[0]/2}px`:`calc(${i[0]} / 2)`),m&&(E.flex=BT(m),a===!1&&!E.minWidth&&(E.minWidth=0)),v.createElement(`div`,{...g,style:{...E,...h,...C},className:T,ref:t},p)});function HT(e,t){let n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return r.forEach((e,t)=>{if(cc(e))for(let r=0;r<Fb.length;r++){let a=Fb[r];if(i[a]&&e[a]!==void 0){n[t]=e[a];break}}else n[t]=e}),n}var UT=(e,t)=>{let[n,r]=v.useState(()=>sc(e)?e:``),i=()=>{if(sc(e)&&r(e),cc(e))for(let n=0;n<Fb.length;n++){let i=Fb[n];if(!t||!t[i])continue;let a=e[i];if(a!==void 0){r(a);return}}};return v.useEffect(()=>{i()},[JSON.stringify(e),t]),n},WT=v.forwardRef((e,t)=>{let{prefixCls:n,justify:r,align:i,className:a,style:o,children:s,gutter:c=0,wrap:l,...u}=e,{getPrefixCls:d,direction:f}=v.useContext(Ye),p=Bb(!0,null),m=UT(i,p),h=UT(r,p),g=d(`row`,n),[_,y]=Rg(g),b=HT(c,p),x=J(g,{[`${g}-no-wrap`]:l===!1,[`${g}-${h}`]:h,[`${g}-${m}`]:m,[`${g}-rtl`]:f===`rtl`},a,_,y),S={};b?.[0]&&(S.marginInline=oc(b[0])?`${b[0]/-2}px`:`calc(${b[0]} / -2)`);let[C,w]=b;S.rowGap=w;let T=v.useMemo(()=>({gutter:[C,w],wrap:l}),[C,w,l]);return v.createElement(zT.Provider,{value:T},v.createElement(`div`,{...u,className:x,style:{...S,...o},ref:t},s))}),GT=(e,t)=>{if(!e)return null;let n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},KT=e=>e===void 0?void 0:`${e}px`;function qT(e){let{prefixCls:t,containerRef:n,value:r,getValueIndex:i,motionName:a,onMotionStart:o,onMotionEnd:s,direction:c,vertical:l=!1}=e,u=v.useRef(null),[d,f]=v.useState(r),p=e=>{let r=i(e),a=n.current?.querySelectorAll(`.${t}-item`)[r];return a?.offsetParent&&a},[m,h]=v.useState(null),[g,_]=v.useState(null);S(()=>{if(d!==r){let e=p(d),t=p(r),n=GT(e,l),i=GT(t,l);f(r),h(n),_(i),e&&t?o():s()}},[r]);let y=v.useMemo(()=>KT(l?m?.top??0:c===`rtl`?-m?.right:m?.left),[l,c,m]),b=v.useMemo(()=>KT(l?g?.top??0:c===`rtl`?-g?.right:g?.left),[l,c,g]);return!m||!g?null:v.createElement(ks,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:()=>l?{transform:`translateY(var(--thumb-start-top))`,height:`var(--thumb-start-height)`}:{transform:`translateX(var(--thumb-start-left))`,width:`var(--thumb-start-width)`},onAppearActive:()=>l?{transform:`translateY(var(--thumb-active-top))`,height:`var(--thumb-active-height)`}:{transform:`translateX(var(--thumb-active-left))`,width:`var(--thumb-active-width)`},onVisibleChanged:()=>{h(null),_(null),s()}},({className:e,style:n},r)=>{let i={...n,"--thumb-start-left":y,"--thumb-start-width":KT(m?.width),"--thumb-active-left":b,"--thumb-active-width":KT(g?.width),"--thumb-start-top":y,"--thumb-start-height":KT(m?.height),"--thumb-active-top":b,"--thumb-active-height":KT(g?.height)},a={ref:I(u,r),style:i,className:J(`${t}-thumb`,e)};return v.createElement(`div`,a)})}function JT(e){if(e.title!==void 0)return e.title;if(typeof e.label!=`object`)return e.label?.toString()}function YT(e){return e.map(e=>{if(typeof e==`object`&&e){let t=JT(e);return{...e,title:t}}return{label:e?.toString(),title:e?.toString(),value:e}})}var XT=({prefixCls:e,className:t,style:n,styles:r,classNames:i,data:a,disabled:o,checked:s,label:c,title:l,value:u,name:d,onChange:f,onFocus:p,onBlur:m,onKeyDown:h,onKeyUp:g,onMouseDown:_,itemRender:y=e=>e})=>{let b=e=>{o||f(e,u)};return y(v.createElement(`label`,{className:J(t,{[`${e}-item-disabled`]:o}),style:n,onMouseDown:_},v.createElement(`input`,{name:d,className:`${e}-item-input`,type:`radio`,disabled:o,checked:s,onChange:b,onFocus:p,onBlur:m,onKeyDown:h,onKeyUp:g}),v.createElement(`div`,{className:J(`${e}-item-label`,i?.label),title:l,style:r?.label},c)),{item:a})},ZT=v.forwardRef((e,t)=>{let{prefixCls:n=`rc-segmented`,direction:r,vertical:i,options:a=[],disabled:o,defaultValue:s,value:c,name:l,onChange:u,className:d=``,style:f,styles:p,classNames:m,motionName:h=`thumb-motion`,itemRender:g,..._}=e,y=v.useRef(null),b=v.useMemo(()=>I(y,t),[y,t]),x=v.useMemo(()=>YT(a),[a]),[S,C]=T(s??x[0]?.value,c),[w,E]=v.useState(!1),D=(e,t)=>{C(t),u?.(t)},O=de(_,[`children`]),[k,A]=v.useState(!1),[j,M]=v.useState(!1),N=()=>{M(!0)},P=()=>{M(!1)},F=()=>{A(!1)},L=e=>{e.key===`Tab`&&A(!0)},R=e=>{let t=x.findIndex(e=>e.value===S),n=x.length,r=x[(t+e+n)%n];r&&(C(r.value),u?.(r.value))},z=e=>{switch(e.key){case`ArrowLeft`:case`ArrowUp`:R(-1);break;case`ArrowRight`:case`ArrowDown`:R(1);break}},B=e=>{let{value:t,disabled:r}=e;return v.createElement(XT,Jf({},e,{name:l,data:e,itemRender:g,key:t,prefixCls:n,className:J(e.className,`${n}-item`,m?.item,{[`${n}-item-selected`]:t===S&&!w,[`${n}-item-focused`]:j&&k&&t===S}),style:p?.item,classNames:m,styles:p,checked:t===S,onChange:D,onFocus:N,onBlur:P,onKeyDown:z,onKeyUp:L,onMouseDown:F,disabled:!!o||!!r}))};return v.createElement(`div`,Jf({role:`radiogroup`,"aria-label":`segmented control`,tabIndex:o?void 0:0,"aria-orientation":i?`vertical`:`horizontal`,style:f},O,{className:J(n,{[`${n}-rtl`]:r===`rtl`,[`${n}-disabled`]:o,[`${n}-vertical`]:i},d),ref:b}),v.createElement(`div`,{className:`${n}-group`},v.createElement(qT,{vertical:i,prefixCls:n,value:S,containerRef:y,motionName:`${n}-${h}`,direction:r,getValueIndex:e=>x.findIndex(t=>t.value===e),onMotionStart:()=>{E(!0)},onMotionEnd:()=>{E(!1)}}),x.map(B)))});function QT(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:`not-allowed`}}}var $T=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),eE={overflow:`hidden`,...za},tE=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,motionDurationMid:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),s=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...Ba(e),display:`inline-block`,padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${i}`,...Wa(e),[`${t}-group`]:{position:`relative`,display:`flex`,alignItems:`stretch`,justifyItems:`flex-start`,flexDirection:`row`,width:`100%`},[`&${t}-rtl`]:{direction:`rtl`},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:`column`},[`${t}-thumb`]:{width:`100%`,height:0,padding:`0 ${Y(e.paddingXXS)}`}},[`&${t}-block`]:{display:`flex`},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:`relative`,textAlign:`center`,cursor:`pointer`,transition:`color ${i}`,borderRadius:e.borderRadiusSM,transform:`translateZ(0)`,"&-selected":{...$T(e),color:e.itemSelectedColor},"&-focused":Ua(e),"&::after":{content:`""`,position:`absolute`,zIndex:-1,width:`100%`,height:`100%`,top:0,insetInlineStart:0,borderRadius:`inherit`,opacity:0,pointerEvents:`none`,transition:[`opacity`,`background-color`].map(e=>`${e} ${i}`).join(`, `)},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:a,lineHeight:Y(a),padding:`0 ${Y(e.segmentedPaddingHorizontal)}`,...eE},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:`none`}},[`${t}-thumb`]:{...$T(e),position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:`100%`,padding:`${Y(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:`transparent`}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:o,lineHeight:Y(o),padding:`0 ${Y(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:s,lineHeight:Y(s),padding:`0 ${Y(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...QT(`&-disabled ${t}-item`,e),...QT(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:`transform, width`,transition:[`transform`,`width`].map(e=>`${e} ${n} ${r}`).join(`, `)},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},nE=Ya(`Segmented`,e=>{let{lineWidth:t,calc:n}=e;return tE(ci(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()}))},e=>{let{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:a,lineWidthBold:o,colorBgLayout:s}=e;return{trackPadding:o,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:a,itemSelectedColor:n}});function rE(e){return cc(e)&&!!e?.icon}var iE=v.forwardRef((e,t)=>{let n=fl(),{prefixCls:r,className:i,rootClassName:a,block:o,options:s=[],size:c,style:l,vertical:u,orientation:d,shape:f=`default`,name:p=n,styles:m,classNames:h,...g}=e,{getPrefixCls:_,direction:y,className:b,style:x,classNames:S,styles:C}=Qe(`segmented`),w={...e,options:s,size:c,shape:f},[T,E]=Oc([S,h],[C,m],{props:w}),D=_(`segmented`,r),[O,k]=nE(D),A=jd(c),j=v.useMemo(()=>s.map(e=>{if(rE(e)){let{icon:t,label:n,...r}=e;return{...r,label:v.createElement(v.Fragment,null,v.createElement(`span`,{className:J(`${D}-item-icon`,T.icon),style:E.icon},t),n&&v.createElement(`span`,null,n))}}return e}),[s,D,T.icon,E.icon]),[,M]=Ac(d,u),N=J(i,a,b,T.root,{[`${D}-block`]:o,[`${D}-sm`]:A===`small`,[`${D}-lg`]:A===`large`,[`${D}-vertical`]:M,[`${D}-shape-${f}`]:f===`round`},O,k),P={...E.root,...x,...l},F=(e,{item:t})=>{if(!t.tooltip)return e;let n=cc(t.tooltip)?t.tooltip:{title:t.tooltip};return v.createElement(_x,{...n},e)};return v.createElement(ZT,{...g,name:p,className:N,style:P,classNames:T,styles:E,itemRender:F,options:j,ref:t,prefixCls:D,direction:y,vertical:M})}),aE=e=>{let{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:i,paddingXS:a,fontSizeLG:o,fontSizeSM:s,borderRadiusLG:c,borderRadiusSM:l,colorBgContainerDisabled:u,lineWidth:d,antCls:f}=e,[p,m]=Qa(f,`space`);return{[t]:[{display:`inline-flex`,alignItems:`center`,gap:0,whiteSpace:`nowrap`,paddingInline:r,margin:0,borderWidth:d,borderStyle:`solid`,borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:o,borderRadius:c},"&-small":{paddingInline:a,borderRadius:l,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[p(`addon-border-color`)]:i,[p(`addon-background`)]:u,[p(`addon-border-color-outlined`)]:i,[p(`addon-background-filled`)]:u,borderColor:m(`addon-border-color`),background:m(`addon-background`),"&-variant-outlined":{[p(`addon-border-color`)]:m(`addon-border-color-outlined`)},"&-variant-filled":{[p(`addon-border-color`)]:`transparent`,[p(`addon-background`)]:m(`addon-background-filled`),[`&${t}-disabled`]:{[p(`addon-border-color`)]:i,[p(`addon-background`)]:u}},"&-variant-borderless":{border:`none`,background:`transparent`},"&-variant-underlined":{border:`none`,background:`transparent`}},{"&-status-error":{[p(`addon-border-color-outlined`)]:e.colorError,[p(`addon-background-filled`)]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[p(`addon-border-color-outlined`)]:e.colorWarning,[p(`addon-background-filled`)]:e.colorWarningBg,color:e.colorWarning}}]}},oE=Ya([`Space`,`Addon`],e=>[aE(e),up(e,{focus:!1})]),sE=v.forwardRef((e,t)=>{let{className:n,children:r,style:i,prefixCls:a,variant:o=`outlined`,disabled:s,status:c,...l}=e,{getPrefixCls:u,direction:d}=v.useContext(Ye),f=u(`space-addon`,a),[p,m]=oE(f),{compactItemClassnames:h,compactSize:g}=Pd(f,d),_=Yy(f,c),y=J(f,p,h,m,`${f}-variant-${o}`,_,{[`${f}-${g}`]:g,[`${f}-disabled`]:s},n);return v.createElement(`div`,{ref:t,className:y,style:i,...l},r)});function cE(e){return!!(e.addonBefore||e.addonAfter)}function lE(e){return!!(e.prefix||e.suffix||e.allowClear)}function uE(e,t,n){let r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart==`number`&&typeof t.selectionEnd==`number`&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=(...e)=>{t.setSelectionRange(...e)},i}function dE(e,t,n,r){if(!n)return;let i=t;if(t.type===`click`){i=uE(t,e,``),n(i);return}if(e.type!==`file`&&r!==void 0){i=uE(t,e,r),n(i);return}n(i)}function fE(){return fE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fE.apply(this,arguments)}var pE=v.forwardRef((e,t)=>{let{inputElement:n,children:r,prefixCls:i,prefix:a,suffix:o,addonBefore:s,addonAfter:c,className:l,style:u,disabled:d,readOnly:f,focused:p,triggerFocus:m,allowClear:h,value:g,handleReset:_,hidden:y,classes:b,classNames:x,dataAttrs:S,styles:C,components:w,onClear:T}=e,E=r??n,D=w?.affixWrapper||`span`,O=w?.groupWrapper||`span`,k=w?.wrapper||`span`,A=w?.groupAddon||`span`,j=(0,v.useRef)(null),M=e=>{j.current?.contains(e.target)&&m?.()},N=lE(e),P=(0,v.cloneElement)(E,{value:g,className:J(E.props?.className,!N&&x?.variant)||null}),F=(0,v.useRef)(null);if(v.useImperativeHandle(t,()=>({nativeElement:F.current||j.current})),N){let e=null;if(h){let t=!d&&!f&&g,n=`${i}-clear-icon`,r=typeof h==`object`&&h?.clearIcon?h.clearIcon:`✖`;e=v.createElement(`button`,{type:`button`,tabIndex:-1,onClick:e=>{_?.(e),T?.()},onMouseDown:e=>e.preventDefault(),className:J(n,{[`${n}-hidden`]:!t,[`${n}-has-suffix`]:!!o})},r)}let t=`${i}-affix-wrapper`,n=J(t,{[`${i}-disabled`]:d,[`${t}-disabled`]:d,[`${t}-focused`]:p,[`${t}-readonly`]:f,[`${t}-input-with-clear-btn`]:o&&h&&g},b?.affixWrapper,x?.affixWrapper,x?.variant),r=(o||h)&&v.createElement(`span`,{className:J(`${i}-suffix`,x?.suffix),style:C?.suffix},e,o);P=v.createElement(D,fE({className:n,style:C?.affixWrapper,onClick:M},S?.affixWrapper,{ref:j}),a&&v.createElement(`span`,{className:J(`${i}-prefix`,x?.prefix),style:C?.prefix},a),P,r)}if(cE(e)){let e=`${i}-group`,t=`${e}-addon`,n=`${e}-wrapper`,r=J(`${i}-wrapper`,e,b?.wrapper,x?.wrapper),a=J(n,{[`${n}-disabled`]:d},b?.group,x?.groupWrapper);P=v.createElement(O,{className:a,ref:F},v.createElement(k,{className:r},s&&v.createElement(A,{className:t},s),P,c&&v.createElement(A,{className:t},c)))}return v.cloneElement(P,{className:J(P.props?.className,l)||null,style:{...P.props?.style,...u},hidden:y})});function mE(e,t){return v.useMemo(()=>{let n={};t&&(n.show=typeof t==`object`&&t.formatter?t.formatter:!!t),n={...n,...e};let{show:r,...i}=n;return{...i,show:!!r,showFormatter:typeof r==`function`?r:void 0,strategy:i.strategy||(e=>e.length)}},[e,t])}function hE(){return hE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hE.apply(this,arguments)}var gE=(0,v.forwardRef)((e,t)=>{let{autoComplete:n,onChange:r,onFocus:i,onBlur:a,onPressEnter:o,onKeyDown:s,onKeyUp:c,prefixCls:l=`rc-input`,disabled:u,htmlSize:d,className:f,maxLength:p,suffix:m,showCount:h,count:g,type:_=`text`,classes:y,classNames:b,styles:x,onCompositionStart:S,onCompositionEnd:C,...w}=e,[E,D]=(0,v.useState)(!1),O=(0,v.useRef)(!1),k=(0,v.useRef)(!1),A=(0,v.useRef)(null),j=(0,v.useRef)(null),M=e=>{A.current&&Ap(A.current,e)},[N,P]=T(e.defaultValue,e.value),F=N==null?``:String(N),[I,L]=(0,v.useState)(null),R=mE(g,h),z=R.max||p,B=R.strategy(F),V=!!z&&B>z;(0,v.useImperativeHandle)(t,()=>({focus:M,blur:()=>{A.current?.blur()},setSelectionRange:(e,t,n)=>{A.current?.setSelectionRange(e,t,n)},select:()=>{A.current?.select()},input:A.current,nativeElement:j.current?.nativeElement||A.current})),(0,v.useEffect)(()=>{k.current&&=!1,D(e=>e&&u?!1:e)},[u]);let H=(e,t,n)=>{let i=t;if(!O.current&&R.exceedFormatter&&R.max&&R.strategy(t)>R.max)i=R.exceedFormatter(t,{max:R.max}),t!==i&&L([A.current?.selectionStart||0,A.current?.selectionEnd||0]);else if(n.source===`compositionEnd`)return;P(i),A.current&&dE(A.current,e,r,i)};(0,v.useEffect)(()=>{I&&A.current?.setSelectionRange(...I)},[I]);let U=e=>{H(e,e.target.value,{source:`change`})},W=e=>{O.current=!1,H(e,e.currentTarget.value,{source:`compositionEnd`}),C?.(e)},ee=e=>{o&&e.key===`Enter`&&!k.current&&!e.nativeEvent.isComposing&&(k.current=!0,o(e)),s?.(e)},te=e=>{e.key===`Enter`&&(k.current=!1),c?.(e)},ne=e=>{D(!0),i?.(e)},re=e=>{k.current&&=!1,D(!1),a?.(e)},ie=e=>{P(``),M(),A.current&&dE(A.current,e,r)},ae=V&&`${l}-out-of-range`;return v.createElement(pE,hE({},w,{prefixCls:l,className:J(f,ae),handleReset:ie,value:F,focused:E,triggerFocus:M,suffix:(()=>{let e=Number(z)>0;if(m||R.show){let t=R.showFormatter?R.showFormatter({value:F,count:B,maxLength:z}):`${B}${e?` / ${z}`:``}`;return v.createElement(v.Fragment,null,R.show&&v.createElement(`span`,{className:J(`${l}-show-count-suffix`,{[`${l}-show-count-has-suffix`]:!!m},b?.count),style:{...x?.count}},t),m)}return null})(),disabled:u,classes:y,classNames:b,styles:x,ref:j}),(()=>{let t=de(e,[`prefixCls`,`onPressEnter`,`addonBefore`,`addonAfter`,`prefix`,`suffix`,`allowClear`,`defaultValue`,`showCount`,`count`,`classes`,`htmlSize`,`styles`,`classNames`,`onClear`]);return v.createElement(`input`,hE({autoComplete:n},t,{onChange:U,onFocus:ne,onBlur:re,onKeyDown:ee,onKeyUp:te,className:J(l,{[`${l}-disabled`]:u},b?.input),style:x?.input,ref:A,size:d,type:_,onCompositionStart:e=>{O.current=!0,S?.(e)},onCompositionEnd:W}))})())}),_E=e=>{let t;return cc(e)&&e?.clearIcon?t=e:e&&(t={clearIcon:v.createElement(Oo,null)}),t};function vE(e,t){let n=(0,v.useRef)([]),r=()=>{n.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute(`type`)===`password`&&e.current?.input.hasAttribute(`value`)&&e.current?.input.removeAttribute(`value`)}))};return(0,v.useEffect)(()=>(t&&r(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),r}function yE(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var bE=(0,v.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,status:i,size:a,disabled:o,onBlur:s,onFocus:c,suffix:l,allowClear:u,addonAfter:d,addonBefore:f,className:p,style:m,styles:h,rootClassName:g,onChange:_,classNames:y,variant:b,...x}=e,{getPrefixCls:S,direction:C,allowClear:w,autoComplete:T,className:E,style:D,classNames:O,styles:k}=Qe(`input`),A=S(`input`,n),j=(0,v.useRef)(null),M=Xc(A),[N,P]=_w(A,g);vw(A,M);let{compactSize:F,compactItemClassnames:L}=Pd(A,C),R=jd(e=>a??F??e),z=v.useContext(fu),B=o??z,V={...e,size:R,disabled:B},[H,U]=Oc([O,y],[k,h],{props:V}),{status:W,hasFeedback:ee,feedbackIcon:te}=(0,v.useContext)(zh),ne=Xy(W,i);(0,v.useRef)(yE(e)||!!ee);let re=vE(j,!0),ie=e=>{re(),s?.(e)},ae=e=>{re(),c?.(e)},G=e=>{re(),_?.(e)},K=(ee||l)&&v.createElement(v.Fragment,null,l,ee&&te),oe=_E(u??w),[se,ce]=ab(`input`,b,r);return v.createElement(gE,{ref:I(t,j),prefixCls:A,autoComplete:T,...x,disabled:B,onBlur:ie,onFocus:ae,style:{...U.root,...D,...m},styles:U,suffix:K,allowClear:oe,className:J(p,g,P,M,L,E,H.root),onChange:G,addonBefore:f&&v.createElement(Hh,{form:!0,space:!0},f),addonAfter:d&&v.createElement(Hh,{form:!0,space:!0},d),classNames:{...H,input:J({[`${A}-sm`]:R===`small`,[`${A}-lg`]:R===`large`,[`${A}-rtl`]:C===`rtl`},H.input,N),variant:J({[`${A}-${se}`]:ce},Yy(A,ne)),affixWrapper:J({[`${A}-affix-wrapper-sm`]:R===`small`,[`${A}-affix-wrapper-lg`]:R===`large`,[`${A}-affix-wrapper-rtl`]:C===`rtl`},N),wrapper:J({[`${A}-group-rtl`]:C===`rtl`},N),groupWrapper:J({[`${A}-group-wrapper-sm`]:R===`small`,[`${A}-group-wrapper-lg`]:R===`large`,[`${A}-group-wrapper-rtl`]:C===`rtl`,[`${A}-group-wrapper-${se}`]:ce},Yy(`${A}-group-wrapper`,ne,ee),N)}})});function xE(e){return[`small`,`middle`,`medium`,`large`].includes(e)}function SE(e){return e?oc(e):!1}var CE=v.createContext({latestIndex:0}),wE=CE.Provider,TE=e=>{let{className:t,prefix:n,index:r,children:i,separator:a,style:o,classNames:s,styles:c}=e,{latestIndex:l}=v.useContext(CE);return ac(i)?v.createElement(v.Fragment,null,v.createElement(`div`,{className:t,style:o},i),r<l&&a&&v.createElement(`span`,{className:J(`${n}-item-separator`,s?.separator),style:c?.separator},a)):null},EE=e=>{let{componentCls:t,antCls:n}=e;return{[t]:{display:`inline-flex`,"&-rtl":{direction:`rtl`},"&-vertical":{flexDirection:`column`},"&-align":{flexDirection:`column`,"&-center":{alignItems:`center`},"&-start":{alignItems:`flex-start`},"&-end":{alignItems:`flex-end`},"&-baseline":{alignItems:`baseline`}},[`${t}-item:empty`]:{display:`none`},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:`block`}}}},DE=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},OE=Ya(`Space`,e=>{let t=ci(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[EE(t),DE(t)]},()=>({}),{resetStyle:!1}),kE=v.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,size:i,className:a,style:o,classNames:s,styles:c}=Qe(`space`),{size:l=i??`small`,align:u,className:d,rootClassName:f,children:p,direction:m,orientation:h,prefixCls:g,split:_,separator:y,style:b,vertical:x,wrap:S=!1,classNames:C,styles:w,...T}=e,[E,D]=Array.isArray(l)?l:[l,l],O=xE(D),k=xE(E),A=SE(D),j=SE(E),M=fe(p,{keepEmpty:!0}),[N,P]=Ac(h,x,m),F=u===void 0&&!P?`center`:u,I=y??_,L=n(`space`,g),[R,z]=OE(L),B={...e,size:l,orientation:N,align:F},[V,H]=Oc([s,C],[c,w],{props:B}),U=J(L,a,R,`${L}-${N}`,{[`${L}-rtl`]:r===`rtl`,[`${L}-align-${F}`]:F,[`${L}-gap-row-${D}`]:O,[`${L}-gap-col-${E}`]:k},d,f,z,V.root),W=J(`${L}-item`,V.item),ee=M.map((e,t)=>{let n=e?.key||`${W}-${t}`;return v.createElement(TE,{prefix:L,classNames:V,styles:H,className:W,key:n,index:t,separator:I,style:H.item},e)}),te=v.useMemo(()=>({latestIndex:M.reduce((e,t,n)=>ac(t)?n:e,0)}),[M]);if(M.length===0)return null;let ne={};return S&&(ne.flexWrap=`wrap`),!k&&j&&(ne.columnGap=E),!O&&A&&(ne.rowGap=D),v.createElement(`div`,{ref:t,className:U,style:{...ne,...H.root,...o,...b},...T},v.createElement(wE,{value:te},ee))});kE.Compact=Ld,kE.Addon=sE;var AE=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:r}=v.useContext(Ye),{prefixCls:i,type:a=`default`,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,children:d,className:f,menu:p,arrow:m,autoFocus:h,trigger:g,align:_,open:y,onOpenChange:b,placement:x,getPopupContainer:S,href:C,icon:w=v.createElement(hC,null),title:T,buttonsRender:E=e=>e,mouseEnterDelay:D,mouseLeaveDelay:O,overlayClassName:k,overlayStyle:A,destroyOnHidden:j,destroyPopupOnHide:M,dropdownRender:N,popupRender:P,...F}=e,I=n(`dropdown`,i),L=`${I}-button`,R={menu:p,arrow:m,autoFocus:h,align:_,disabled:s,trigger:s?[]:g,onOpenChange:b,getPopupContainer:S||t,mouseEnterDelay:D,mouseLeaveDelay:O,classNames:{root:k},styles:{root:A},destroyOnHidden:j,popupRender:P||N},{compactSize:z,compactItemClassnames:B}=Pd(I,r),V=J(L,B,f);`destroyPopupOnHide`in e&&(R.destroyPopupOnHide=M),`open`in e&&(R.open=y),`placement`in e?R.placement=x:R.placement=r===`rtl`?`bottomLeft`:`bottomRight`;let[H,U]=E([v.createElement(HC,{type:a,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,href:C,title:T},d),v.createElement(HC,{type:a,danger:o,icon:w})]);return v.createElement(kE.Compact,{className:V,size:z,block:!0,...F},H,v.createElement(BC,{...R},U))};AE.__ANT_BUTTON=!0;var jE=BC;jE.Button=AE;var ME=e=>{let{getPrefixCls:t,direction:n}=(0,v.useContext)(Ye),{prefixCls:r,className:i}=e,a=t(`input-group`,r),[o,s]=vw(t(`input`)),c=J(a,s,{[`${a}-lg`]:e.size===`large`,[`${a}-sm`]:e.size===`small`,[`${a}-compact`]:e.compact,[`${a}-rtl`]:n===`rtl`},o,i),l=(0,v.useContext)(zh),u=(0,v.useMemo)(()=>({...l,isFormItemInput:!1}),[l]);return v.createElement(zh.Provider,{value:u},v.createElement(kE.Compact,{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},NE=e=>{let{componentCls:t,paddingXS:n}=e;return{[t]:{display:`inline-flex`,alignItems:`center`,flexWrap:`nowrap`,columnGap:n,[`${t}-input-wrapper`]:{position:`relative`,[`${t}-mask-icon`]:{position:`absolute`,zIndex:`1`,top:`50%`,right:`50%`,transform:`translate(50%, -50%)`,pointerEvents:`none`},[`${t}-mask-input`]:{color:`transparent`,caretColor:e.colorText,"&::selection":{color:`transparent`}},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":`none`,margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":`textfield`}},"&-rtl":{direction:`rtl`},[`${t}-input`]:{textAlign:`center`,paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},PE=Ya([`Input`,`OTP`],e=>NE(ci(e,UC(e))),WC),FE=v.forwardRef((e,t)=>{let{className:n,value:r,onChange:i,onActiveChange:a,index:o,mask:s,onFocus:c,...l}=e,{getPrefixCls:u}=v.useContext(Ye),d=u(`otp`),f=typeof s==`string`?s:r,p=v.useRef(null);v.useImperativeHandle(t,()=>p.current);let m=e=>{i(o,e.target.value)},h=()=>{Ke(()=>{let e=p.current?.input;document.activeElement===e&&e&&e.select()})},g=e=>{c?.(e),h()},_=e=>{let{key:t,ctrlKey:n,metaKey:i}=e;t===`ArrowLeft`?a(o-1):t===`ArrowRight`?a(o+1):t===`z`&&(n||i)?e.preventDefault():t===`Backspace`&&!r&&a(o-1),h()};return v.createElement(`span`,{className:`${d}-input-wrapper`,role:`presentation`},s&&r!==``&&r!==void 0&&v.createElement(`span`,{className:`${d}-mask-icon`,"aria-hidden":`true`},f),v.createElement(bE,{"aria-label":`OTP Input ${o+1}`,type:s===!0?`password`:`text`,...l,ref:p,value:r,onInput:m,onFocus:g,onKeyDown:_,onMouseDown:h,onMouseUp:h,className:J(n,{[`${d}-mask-input`]:s})}))});function IE(e){return(e||``).split(``)}var LE=e=>{let{index:t,prefixCls:n,separator:r,className:i,style:a}=e,o=typeof r==`function`?r(t):r;return o?v.createElement(`span`,{className:J(`${n}-separator`,i),style:a},o):null},RE=v.forwardRef((e,t)=>{let{prefixCls:n,length:r=6,size:i,defaultValue:a,value:o,onChange:s,formatter:c,separator:l,variant:u,disabled:d,status:f,autoFocus:p,mask:m,type:h,autoComplete:g,onInput:_,onFocus:b,inputMode:x,classNames:S,styles:C,className:w,style:T,...E}=e,{classNames:D,styles:O,getPrefixCls:k,direction:A,style:j,className:M}=Qe(`otp`),N=k(`otp`,n),P={...e,length:r},[F,I]=Oc([D,S],[O,C],{props:P}),L=Ps(E,{aria:!0,data:!0,attr:!0}),[R,z]=PE(N),B=jd(e=>i??e),V=v.useContext(zh),H=Xy(V.status,f),U=v.useMemo(()=>({...V,status:H,hasFeedback:!1,feedbackIcon:null}),[V,H]),W=v.useRef(null),ee=v.useRef({});v.useImperativeHandle(t,()=>({focus:()=>{ee.current[0]?.focus()},blur:()=>{for(let e=0;e<r;e+=1)ee.current[e]?.blur()},nativeElement:W.current}));let te=e=>c?c(e):e,[ne,re]=v.useState(()=>IE(te(a||``)));v.useEffect(()=>{o!==void 0&&re(IE(o))},[o]);let ie=y(e=>{re(e),_&&_(e),s&&e.length===r&&e.every(e=>e)&&e.some((e,t)=>ne[t]!==e)&&s(e.join(``))}),ae=y((e,t)=>{let n=Be(ne);for(let t=0;t<e;t+=1)n[t]||(n[t]=``);t.length<=1?n[e]=t:n=n.slice(0,e).concat(IE(t)),n=n.slice(0,r);for(let e=n.length-1;e>=0&&!n[e];--e)n.pop();return n=IE(te(n.map(e=>e||` `).join(``))).map((e,t)=>e===` `&&!n[t]?n[t]:e),n}),G=(e,t)=>{let n=ae(e,t),i=Math.min(e+t.length,r-1);i!==e&&n[e]!==void 0&&ee.current[i]?.focus(),ie(n)},K=e=>{ee.current[e]?.focus()},oe=(e,t)=>{for(let e=0;e<t;e+=1)if(!ee.current[e]?.input?.value){ee.current[e]?.focus();break}b?.(e)},se={variant:u,disabled:d,status:H,mask:m,type:h,inputMode:x,autoComplete:g};return v.createElement(`div`,{...L,ref:W,className:J(w,N,{[`${N}-sm`]:B===`small`,[`${N}-lg`]:B===`large`,[`${N}-rtl`]:A===`rtl`},z,R,M,F.root),style:{...I.root,...j,...T},role:`group`},v.createElement(zh.Provider,{value:U},Array.from({length:r}).map((e,t)=>{let n=`otp-${t}`,i=ne[t]||``;return v.createElement(v.Fragment,{key:n},v.createElement(FE,{ref:e=>{ee.current[t]=e},index:t,size:B,htmlSize:1,className:J(F.input,`${N}-input`),style:I.input,onChange:G,value:i,onActiveChange:K,autoFocus:t===0&&p,onFocus:e=>oe(e,t),...se}),t<r-1&&v.createElement(LE,{separator:l,index:t,prefixCls:N,className:J(F.separator),style:I.separator}))})))}),zE={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z`}},{tag:`path`,attrs:{d:`M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z`}}]},name:`eye-invisible`,theme:`outlined`};function BE(){return BE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BE.apply(this,arguments)}var VE=v.forwardRef((e,t)=>v.createElement(Co,BE({},e,{ref:t,icon:zE}))),HE={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z`}}]},name:`eye`,theme:`outlined`};function UE(){return UE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UE.apply(this,arguments)}var WE=v.forwardRef((e,t)=>v.createElement(Co,UE({},e,{ref:t,icon:HE}))),GE=e=>e?v.createElement(WE,null):v.createElement(VE,null),KE={click:`onClick`,hover:`onMouseOver`},qE=v.forwardRef((e,t)=>{let{disabled:n,action:r=`click`,visibilityToggle:i=!0,iconRender:a=GE,suffix:o}=e,s=v.useContext(fu),c=n??s,l=cc(i)&&i.visible!==void 0,[u,d]=(0,v.useState)(()=>l?i.visible:!1),f=(0,v.useRef)(null);v.useEffect(()=>{l&&d(i.visible)},[l,i]);let p=vE(f),m=()=>{if(c)return;u&&p();let e=!u;d(e),cc(i)&&i.onVisibleChange?.(e)},h=e=>{let t=KE[r]||``,n=a(u),i={[t]:m,className:`${e}-icon`,key:`passwordIcon`,onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return v.cloneElement(v.isValidElement(n)?n:v.createElement(`span`,null,n),i)},{className:g,prefixCls:_,inputPrefixCls:y,size:b,...x}=e,{getPrefixCls:S}=v.useContext(Ye),C=S(`input`,y),w=S(`input-password`,_),T=i&&h(w),E=J(w,g,{[`${w}-${b}`]:!!b}),D={...de(x,[`suffix`,`iconRender`,`visibilityToggle`]),type:u?`text`:`password`,className:E,prefixCls:C,suffix:v.createElement(v.Fragment,null,T,o)};return b&&(D.size=b),v.createElement(bE,{ref:I(t,f),...D})}),JE=Ya([`Input`,`Search`],e=>{let{componentCls:t}=e,n=`${t}-btn`;return{[t]:{width:`100%`,[n]:{"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}}}}}),YE=v.forwardRef((e,t)=>{let{prefixCls:n,inputPrefixCls:r,className:i,size:a,style:o,enterButton:s=!1,addonAfter:c,loading:l,disabled:u,onSearch:d,onChange:f,onCompositionStart:p,onCompositionEnd:m,variant:h,onPressEnter:g,classNames:_,styles:y,hidden:b,...x}=e,{direction:S,getPrefixCls:C,classNames:w,styles:T}=Qe(`inputSearch`),E={...e,enterButton:s},[D,O]=Oc([w,_],[T,y],{props:E},{button:{_default:`root`}}),k=v.useRef(!1),A=C(`input-search`,n),j=C(`input`,r),[M,N]=JE(A),{compactSize:P}=Pd(A,S),F=jd(e=>a??P??e),L=v.useRef(null),R=e=>{e?.target&&e.type===`click`&&d&&d(e.target.value,e,{source:`clear`}),f?.(e)},z=e=>{document.activeElement===L.current?.input&&e.preventDefault()},B=e=>{d&&d(L.current?.input?.value,e,{source:`input`})},V=e=>{k.current||l||(g?.(e),B(e))},H=typeof s==`boolean`?v.createElement(Ob,null):null,U=`${A}-btn`,W=J(U,{[`${U}-${h}`]:h}),ee,te=s||{},ne=te.type&&te.type.__ANT_BUTTON===!0;ee=ne||te.type===`button`?su(te,{onMouseDown:z,onClick:e=>{te?.props?.onClick?.(e),B(e)},key:`enterButton`,...ne?{className:W,size:F}:{}}):v.createElement(vp,{classNames:D.button,styles:O.button,className:W,color:s?`primary`:`default`,size:F,disabled:u,key:`enterButton`,onMouseDown:z,onClick:B,loading:l,icon:H,variant:h===`borderless`||h===`filled`||h===`underlined`?`text`:s?`solid`:void 0},s),c&&(ee=[ee,su(c,{key:`addonAfter`})]);let re=J(A,N,{[`${A}-rtl`]:S===`rtl`,[`${A}-${F}`]:!!F,[`${A}-with-button`]:!!s},i,M,D.root),ie=e=>{k.current=!0,p?.(e)},ae=e=>{k.current=!1,m?.(e)},G=Ps(x,{data:!0}),K=de({...x,classNames:de(D,[`button`,`root`]),styles:de(O,[`button`,`root`]),prefixCls:j,type:`search`,size:F,variant:h,onPressEnter:V,onCompositionStart:ie,onCompositionEnd:ae,onChange:R,disabled:u},Object.keys(G));return v.createElement(Ld,{className:re,style:{...o,...O.root},...G,hidden:b},v.createElement(bE,{ref:I(L,t),...K}),ee)}),XE=`
225
+ `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:`relative`,zIndex:1,boxShadow:r}}},ET=e=>{let{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return{margin:0,padding:0,listStyle:`none`,background:o,borderTop:`${Y(e.lineWidth)} ${e.lineType} ${a}`,display:`flex`,borderRadius:`0 0 ${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)}`,...Ha(),"& > li":{margin:r,color:e.colorTextDescription,textAlign:`center`,"> span":{position:`relative`,display:`block`,minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:`pointer`,"&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:`inline-block`,width:`100%`,color:e.colorIcon,lineHeight:Y(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:Y(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Y(e.lineWidth)} ${e.lineType} ${a}`}}}},DT=e=>({margin:`${Y(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:`flex`,...Ha(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:`hidden`,flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...za},"&-description":{color:e.colorTextDescription}}),OT=e=>{let{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${Y(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Y(e.padding)} ${Y(i)}`}}},kT=e=>{let{componentCls:t}=e;return{overflow:`hidden`,[`${t}-body`]:{userSelect:`none`}}},AT=e=>{let{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:o,extraColor:s,motionDurationMid:c}=e;return{[t]:{...Ba(e),position:`relative`,background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:wT(e),[`${t}-extra`]:{marginInlineStart:`auto`,color:s,fontWeight:`normal`,fontSize:e.fontSize},[`${t}-body`]:{padding:o,borderRadius:`0 0 ${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:TT(e),[`${t}-cover`]:{"> *":{display:`block`,width:`100%`,borderRadius:`${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:ET(e),[`${t}-meta`]:DT(e)},[`${t}-bordered`]:{border:`${Y(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:`pointer`,transition:[`box-shadow`,`border-color`].map(e=>`${e} ${c}`).join(`, `),"&:hover":{borderColor:`transparent`,boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:`flex`,flexWrap:`wrap`},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:OT(e),[`${t}-loading`]:kT(e),[`${t}-rtl`]:{direction:`rtl`}}},jT=e=>{let{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${Y(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:`flex`,alignItems:`center`}}}}},MT=Ya(`Card`,e=>{let t=ci(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[AT(t),jT(t)]},e=>({headerBg:`transparent`,headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG})),NT=e=>{let{actionClasses:t,actions:n=[],actionStyle:r}=e;return v.createElement(`ul`,{className:t,style:r},n.map((e,t)=>{let r=`action-${t}`;return v.createElement(`li`,{style:{width:`${100/n.length}%`},key:r},v.createElement(`span`,null,e))}))},PT=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:s={},bodyStyle:c={},title:l,loading:u,bordered:d,variant:f,size:p,type:m,cover:h,actions:g,tabList:_,children:y,activeTabKey:b,defaultActiveTabKey:x,tabBarExtraContent:S,hoverable:C,tabProps:w={},classNames:T,styles:E,...D}=e,{getPrefixCls:O,direction:k,className:A,style:j,classNames:M,styles:N}=Qe(`card`),[P]=ab(`card`,f,d),F=jd(p),I={...e,size:F,variant:P},[L,R]=Oc([M,T],[N,E],{props:I}),z=t=>{e.onTabChange?.(t)},B=v.useMemo(()=>fe(y),[y]),V=v.useMemo(()=>B.some(e=>v.isValidElement(e)&&e.type===CT),[B]),H=O(`card`,n),[U,W]=MT(H),ee=v.createElement(Cg,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),te=b!==void 0,ne={...w,[te?`activeKey`:`defaultActiveKey`]:te?b:x,tabBarExtraContent:S},re,ie=F===`small`?F:`large`,ae=_?v.createElement(ST,{size:ie,...ne,className:`${H}-head-tabs`,onChange:z,items:_.map(({tab:e,...t})=>({label:e,...t}))}):null;if(l||o||ae){let e=J(`${H}-head`,L.header),t=J(`${H}-head-title`,L.title),n=J(`${H}-extra`,L.extra),r={...s,...R.header};re=v.createElement(`div`,{className:e,style:r},v.createElement(`div`,{className:`${H}-head-wrapper`},l&&v.createElement(`div`,{className:t,style:R.title},l),o&&v.createElement(`div`,{className:n,style:R.extra},o)),ae)}let G=J(`${H}-cover`,L.cover),K=h?v.createElement(`div`,{className:G,style:R.cover},h):null,oe=J(`${H}-body`,L.body),se={...c,...R.body},ce=u||B.length?v.createElement(`div`,{className:oe,style:se},u?ee:y):null,q=J(`${H}-actions`,L.actions),le=g?.length?v.createElement(NT,{actionClasses:q,actionStyle:R.actions,actions:g}):null,ue=de(D,[`onTabChange`]),pe=J(H,A,{[`${H}-loading`]:u,[`${H}-bordered`]:P!==`borderless`,[`${H}-hoverable`]:C,[`${H}-contain-grid`]:V,[`${H}-contain-tabs`]:_?.length,[`${H}-small`]:F===`small`,[`${H}-type-${m}`]:!!m,[`${H}-rtl`]:k===`rtl`},r,i,U,W,L.root),me={...R.root,...j,...a};return v.createElement(`div`,{ref:t,...ue,className:pe,style:me},re,K,ce,le)}),FT=e=>{let{prefixCls:t,className:n,avatar:r,title:i,description:a,style:o,classNames:s,styles:c,...l}=e,{getPrefixCls:u,className:d,style:f,classNames:p,styles:m}=Qe(`cardMeta`),h=`${u(`card`,t)}-meta`,[g,_]=Oc([p,s],[m,c],{props:e}),y=J(h,n,d,g.root),b={...f,..._.root,...o},x=J(`${h}-avatar`,g.avatar),S=J(`${h}-title`,g.title),C=J(`${h}-description`,g.description),w=J(`${h}-section`,g.section),T=r?v.createElement(`div`,{className:x,style:_.avatar},r):null,E=i?v.createElement(`div`,{className:S,style:_.title},i):null,D=a?v.createElement(`div`,{className:C,style:_.description},a):null,O=E||D?v.createElement(`div`,{className:w,style:_.section},E,D):null;return v.createElement(`div`,{...l,className:y,style:b},T,O)},IT=PT;IT.Grid=CT,IT.Meta=FT;function LT(e,t,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,o=r.noLeading,s=o===void 0?!1:o,c=r.debounceMode,l=c===void 0?void 0:c,u,d=!1,f=0;function p(){u&&clearTimeout(u)}function m(e){var t=(e||{}).upcomingOnly,n=t===void 0?!1:t;p(),d=!n}function h(){var n=[...arguments],r=this,i=Date.now()-f;if(d)return;function o(){f=Date.now(),t.apply(r,n)}function c(){u=void 0}!s&&l&&!u&&o(),p(),l===void 0&&i>e?s?(f=Date.now(),a||(u=setTimeout(l?c:o,e))):o():a!==!0&&(u=setTimeout(l?c:o,l===void 0?e-i:e))}return h.cancel=m,h}function RT(e,t,n){var r=(n||{}).atBegin;return LT(e,t,{debounceMode:(r===void 0?!1:r)!==!1})}var zT=(0,v.createContext)({});function BT(e){return e===`auto`?`1 1 auto`:oc(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var VT=v.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=v.useContext(Ye),{gutter:i,wrap:a}=v.useContext(zT),{prefixCls:o,span:s,order:c,offset:l,push:u,pull:d,className:f,children:p,flex:m,style:h,...g}=e,_=n(`col`,o),y=n(),[b,x]=Bg(_),[S]=Qa(y,`col`),C={},w={};Ib.forEach(t=>{let n={},i=e[t];oc(i)?n.span=i:cc(i)&&(n=i||{}),delete g[t],w={...w,[`${_}-${t}-${n.span}`]:ac(n.span),[`${_}-${t}-order-${n.order}`]:n.order||n.order===0,[`${_}-${t}-offset-${n.offset}`]:n.offset||n.offset===0,[`${_}-${t}-push-${n.push}`]:n.push||n.push===0,[`${_}-${t}-pull-${n.pull}`]:n.pull||n.pull===0,[`${_}-rtl`]:r===`rtl`},n.flex&&(w[`${_}-${t}-flex`]=!0,C[S(`${t}-flex`)]=BT(n.flex))});let T=J(_,{[`${_}-${s}`]:s!==void 0,[`${_}-order-${c}`]:c,[`${_}-offset-${l}`]:l,[`${_}-push-${u}`]:u,[`${_}-pull-${d}`]:d},f,w,b,x),E={};return i?.[0]&&(E.paddingInline=oc(i[0])?`${i[0]/2}px`:`calc(${i[0]} / 2)`),m&&(E.flex=BT(m),a===!1&&!E.minWidth&&(E.minWidth=0)),v.createElement(`div`,{...g,style:{...E,...h,...C},className:T,ref:t},p)});function HT(e,t){let n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return r.forEach((e,t)=>{if(cc(e))for(let r=0;r<Fb.length;r++){let a=Fb[r];if(i[a]&&e[a]!==void 0){n[t]=e[a];break}}else n[t]=e}),n}var UT=(e,t)=>{let[n,r]=v.useState(()=>sc(e)?e:``),i=()=>{if(sc(e)&&r(e),cc(e))for(let n=0;n<Fb.length;n++){let i=Fb[n];if(!t||!t[i])continue;let a=e[i];if(a!==void 0){r(a);return}}};return v.useEffect(()=>{i()},[JSON.stringify(e),t]),n},WT=v.forwardRef((e,t)=>{let{prefixCls:n,justify:r,align:i,className:a,style:o,children:s,gutter:c=0,wrap:l,...u}=e,{getPrefixCls:d,direction:f}=v.useContext(Ye),p=Bb(!0,null),m=UT(i,p),h=UT(r,p),g=d(`row`,n),[_,y]=Rg(g),b=HT(c,p),x=J(g,{[`${g}-no-wrap`]:l===!1,[`${g}-${h}`]:h,[`${g}-${m}`]:m,[`${g}-rtl`]:f===`rtl`},a,_,y),S={};b?.[0]&&(S.marginInline=oc(b[0])?`${b[0]/-2}px`:`calc(${b[0]} / -2)`);let[C,w]=b;S.rowGap=w;let T=v.useMemo(()=>({gutter:[C,w],wrap:l}),[C,w,l]);return v.createElement(zT.Provider,{value:T},v.createElement(`div`,{...u,className:x,style:{...S,...o},ref:t},s))}),GT=(e,t)=>{if(!e)return null;let n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},KT=e=>e===void 0?void 0:`${e}px`;function qT(e){let{prefixCls:t,containerRef:n,value:r,getValueIndex:i,motionName:a,onMotionStart:o,onMotionEnd:s,direction:c,vertical:l=!1}=e,u=v.useRef(null),[d,f]=v.useState(r),p=e=>{let r=i(e),a=n.current?.querySelectorAll(`.${t}-item`)[r];return a?.offsetParent&&a},[m,h]=v.useState(null),[g,_]=v.useState(null);S(()=>{if(d!==r){let e=p(d),t=p(r),n=GT(e,l),i=GT(t,l);f(r),h(n),_(i),e&&t?o():s()}},[r]);let y=v.useMemo(()=>KT(l?m?.top??0:c===`rtl`?-m?.right:m?.left),[l,c,m]),b=v.useMemo(()=>KT(l?g?.top??0:c===`rtl`?-g?.right:g?.left),[l,c,g]);return!m||!g?null:v.createElement(ks,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:()=>l?{transform:`translateY(var(--thumb-start-top))`,height:`var(--thumb-start-height)`}:{transform:`translateX(var(--thumb-start-left))`,width:`var(--thumb-start-width)`},onAppearActive:()=>l?{transform:`translateY(var(--thumb-active-top))`,height:`var(--thumb-active-height)`}:{transform:`translateX(var(--thumb-active-left))`,width:`var(--thumb-active-width)`},onVisibleChanged:()=>{h(null),_(null),s()}},({className:e,style:n},r)=>{let i={...n,"--thumb-start-left":y,"--thumb-start-width":KT(m?.width),"--thumb-active-left":b,"--thumb-active-width":KT(g?.width),"--thumb-start-top":y,"--thumb-start-height":KT(m?.height),"--thumb-active-top":b,"--thumb-active-height":KT(g?.height)},a={ref:I(u,r),style:i,className:J(`${t}-thumb`,e)};return v.createElement(`div`,a)})}function JT(e){if(e.title!==void 0)return e.title;if(typeof e.label!=`object`)return e.label?.toString()}function YT(e){return e.map(e=>{if(typeof e==`object`&&e){let t=JT(e);return{...e,title:t}}return{label:e?.toString(),title:e?.toString(),value:e}})}var XT=({prefixCls:e,className:t,style:n,styles:r,classNames:i,data:a,disabled:o,checked:s,label:c,title:l,value:u,name:d,onChange:f,onFocus:p,onBlur:m,onKeyDown:h,onKeyUp:g,onMouseDown:_,itemRender:y=e=>e})=>{let b=e=>{o||f(e,u)};return y(v.createElement(`label`,{className:J(t,{[`${e}-item-disabled`]:o}),style:n,onMouseDown:_},v.createElement(`input`,{name:d,className:`${e}-item-input`,type:`radio`,disabled:o,checked:s,onChange:b,onFocus:p,onBlur:m,onKeyDown:h,onKeyUp:g}),v.createElement(`div`,{className:J(`${e}-item-label`,i?.label),title:l,style:r?.label},c)),{item:a})},ZT=v.forwardRef((e,t)=>{let{prefixCls:n=`rc-segmented`,direction:r,vertical:i,options:a=[],disabled:o,defaultValue:s,value:c,name:l,onChange:u,className:d=``,style:f,styles:p,classNames:m,motionName:h=`thumb-motion`,itemRender:g,..._}=e,y=v.useRef(null),b=v.useMemo(()=>I(y,t),[y,t]),x=v.useMemo(()=>YT(a),[a]),[S,C]=T(s??x[0]?.value,c),[w,E]=v.useState(!1),D=(e,t)=>{C(t),u?.(t)},O=de(_,[`children`]),[k,A]=v.useState(!1),[j,M]=v.useState(!1),N=()=>{M(!0)},P=()=>{M(!1)},F=()=>{A(!1)},L=e=>{e.key===`Tab`&&A(!0)},R=e=>{let t=x.findIndex(e=>e.value===S),n=x.length,r=x[(t+e+n)%n];r&&(C(r.value),u?.(r.value))},z=e=>{switch(e.key){case`ArrowLeft`:case`ArrowUp`:R(-1);break;case`ArrowRight`:case`ArrowDown`:R(1);break}},B=e=>{let{value:t,disabled:r}=e;return v.createElement(XT,Jf({},e,{name:l,data:e,itemRender:g,key:t,prefixCls:n,className:J(e.className,`${n}-item`,m?.item,{[`${n}-item-selected`]:t===S&&!w,[`${n}-item-focused`]:j&&k&&t===S}),style:p?.item,classNames:m,styles:p,checked:t===S,onChange:D,onFocus:N,onBlur:P,onKeyDown:z,onKeyUp:L,onMouseDown:F,disabled:!!o||!!r}))};return v.createElement(`div`,Jf({role:`radiogroup`,"aria-label":`segmented control`,tabIndex:o?void 0:0,"aria-orientation":i?`vertical`:`horizontal`,style:f},O,{className:J(n,{[`${n}-rtl`]:r===`rtl`,[`${n}-disabled`]:o,[`${n}-vertical`]:i},d),ref:b}),v.createElement(`div`,{className:`${n}-group`},v.createElement(qT,{vertical:i,prefixCls:n,value:S,containerRef:y,motionName:`${n}-${h}`,direction:r,getValueIndex:e=>x.findIndex(t=>t.value===e),onMotionStart:()=>{E(!0)},onMotionEnd:()=>{E(!1)}}),x.map(B)))});function QT(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:`not-allowed`}}}var $T=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),eE={overflow:`hidden`,...za},tE=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,motionDurationMid:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),s=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...Ba(e),display:`inline-block`,padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${i}`,...Wa(e),[`${t}-group`]:{position:`relative`,display:`flex`,alignItems:`stretch`,justifyItems:`flex-start`,flexDirection:`row`,width:`100%`},[`&${t}-rtl`]:{direction:`rtl`},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:`column`},[`${t}-thumb`]:{width:`100%`,height:0,padding:`0 ${Y(e.paddingXXS)}`}},[`&${t}-block`]:{display:`flex`},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:`relative`,textAlign:`center`,cursor:`pointer`,transition:`color ${i}`,borderRadius:e.borderRadiusSM,transform:`translateZ(0)`,"&-selected":{...$T(e),color:e.itemSelectedColor},"&-focused":Ua(e),"&::after":{content:`""`,position:`absolute`,zIndex:-1,width:`100%`,height:`100%`,top:0,insetInlineStart:0,borderRadius:`inherit`,opacity:0,pointerEvents:`none`,transition:[`opacity`,`background-color`].map(e=>`${e} ${i}`).join(`, `)},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:a,lineHeight:Y(a),padding:`0 ${Y(e.segmentedPaddingHorizontal)}`,...eE},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:`none`}},[`${t}-thumb`]:{...$T(e),position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:`100%`,padding:`${Y(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:`transparent`}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:o,lineHeight:Y(o),padding:`0 ${Y(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:s,lineHeight:Y(s),padding:`0 ${Y(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...QT(`&-disabled ${t}-item`,e),...QT(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:`transform, width`,transition:[`transform`,`width`].map(e=>`${e} ${n} ${r}`).join(`, `)},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},nE=Ya(`Segmented`,e=>{let{lineWidth:t,calc:n}=e;return tE(ci(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()}))},e=>{let{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:a,lineWidthBold:o,colorBgLayout:s}=e;return{trackPadding:o,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:a,itemSelectedColor:n}});function rE(e){return cc(e)&&!!e?.icon}var iE=v.forwardRef((e,t)=>{let n=fl(),{prefixCls:r,className:i,rootClassName:a,block:o,options:s=[],size:c,style:l,vertical:u,orientation:d,shape:f=`default`,name:p=n,styles:m,classNames:h,...g}=e,{getPrefixCls:_,direction:y,className:b,style:x,classNames:S,styles:C}=Qe(`segmented`),w={...e,options:s,size:c,shape:f},[T,E]=Oc([S,h],[C,m],{props:w}),D=_(`segmented`,r),[O,k]=nE(D),A=jd(c),j=v.useMemo(()=>s.map(e=>{if(rE(e)){let{icon:t,label:n,...r}=e;return{...r,label:v.createElement(v.Fragment,null,v.createElement(`span`,{className:J(`${D}-item-icon`,T.icon),style:E.icon},t),n&&v.createElement(`span`,null,n))}}return e}),[s,D,T.icon,E.icon]),[,M]=Ac(d,u),N=J(i,a,b,T.root,{[`${D}-block`]:o,[`${D}-sm`]:A===`small`,[`${D}-lg`]:A===`large`,[`${D}-vertical`]:M,[`${D}-shape-${f}`]:f===`round`},O,k),P={...E.root,...x,...l},F=(e,{item:t})=>{if(!t.tooltip)return e;let n=cc(t.tooltip)?t.tooltip:{title:t.tooltip};return v.createElement(_x,{...n},e)};return v.createElement(ZT,{...g,name:p,className:N,style:P,classNames:T,styles:E,itemRender:F,options:j,ref:t,prefixCls:D,direction:y,vertical:M})}),aE=e=>{let{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:i,paddingXS:a,fontSizeLG:o,fontSizeSM:s,borderRadiusLG:c,borderRadiusSM:l,colorBgContainerDisabled:u,lineWidth:d,antCls:f}=e,[p,m]=Qa(f,`space`);return{[t]:[{display:`inline-flex`,alignItems:`center`,gap:0,whiteSpace:`nowrap`,paddingInline:r,margin:0,borderWidth:d,borderStyle:`solid`,borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:o,borderRadius:c},"&-small":{paddingInline:a,borderRadius:l,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[p(`addon-border-color`)]:i,[p(`addon-background`)]:u,[p(`addon-border-color-outlined`)]:i,[p(`addon-background-filled`)]:u,borderColor:m(`addon-border-color`),background:m(`addon-background`),"&-variant-outlined":{[p(`addon-border-color`)]:m(`addon-border-color-outlined`)},"&-variant-filled":{[p(`addon-border-color`)]:`transparent`,[p(`addon-background`)]:m(`addon-background-filled`),[`&${t}-disabled`]:{[p(`addon-border-color`)]:i,[p(`addon-background`)]:u}},"&-variant-borderless":{border:`none`,background:`transparent`},"&-variant-underlined":{border:`none`,background:`transparent`}},{"&-status-error":{[p(`addon-border-color-outlined`)]:e.colorError,[p(`addon-background-filled`)]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[p(`addon-border-color-outlined`)]:e.colorWarning,[p(`addon-background-filled`)]:e.colorWarningBg,color:e.colorWarning}}]}},oE=Ya([`Space`,`Addon`],e=>[aE(e),up(e,{focus:!1})]),sE=v.forwardRef((e,t)=>{let{className:n,children:r,style:i,prefixCls:a,variant:o=`outlined`,disabled:s,status:c,...l}=e,{getPrefixCls:u,direction:d}=v.useContext(Ye),f=u(`space-addon`,a),[p,m]=oE(f),{compactItemClassnames:h,compactSize:g}=Pd(f,d),_=Yy(f,c),y=J(f,p,h,m,`${f}-variant-${o}`,_,{[`${f}-${g}`]:g,[`${f}-disabled`]:s},n);return v.createElement(`div`,{ref:t,className:y,style:i,...l},r)});function cE(e){return!!(e.addonBefore||e.addonAfter)}function lE(e){return!!(e.prefix||e.suffix||e.allowClear)}function uE(e,t,n){let r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart==`number`&&typeof t.selectionEnd==`number`&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=(...e)=>{t.setSelectionRange(...e)},i}function dE(e,t,n,r){if(!n)return;let i=t;if(t.type===`click`){i=uE(t,e,``),n(i);return}if(e.type!==`file`&&r!==void 0){i=uE(t,e,r),n(i);return}n(i)}function fE(){return fE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fE.apply(this,arguments)}var pE=v.forwardRef((e,t)=>{let{inputElement:n,children:r,prefixCls:i,prefix:a,suffix:o,addonBefore:s,addonAfter:c,className:l,style:u,disabled:d,readOnly:f,focused:p,triggerFocus:m,allowClear:h,value:g,handleReset:_,hidden:y,classes:b,classNames:x,dataAttrs:S,styles:C,components:w,onClear:T}=e,E=r??n,D=w?.affixWrapper||`span`,O=w?.groupWrapper||`span`,k=w?.wrapper||`span`,A=w?.groupAddon||`span`,j=(0,v.useRef)(null),M=e=>{j.current?.contains(e.target)&&m?.()},N=lE(e),P=(0,v.cloneElement)(E,{value:g,className:J(E.props?.className,!N&&x?.variant)||null}),F=(0,v.useRef)(null);if(v.useImperativeHandle(t,()=>({nativeElement:F.current||j.current})),N){let e=null;if(h){let t=!d&&!f&&g,n=`${i}-clear-icon`,r=typeof h==`object`&&h?.clearIcon?h.clearIcon:`✖`;e=v.createElement(`button`,{type:`button`,tabIndex:-1,onClick:e=>{_?.(e),T?.()},onMouseDown:e=>e.preventDefault(),className:J(n,{[`${n}-hidden`]:!t,[`${n}-has-suffix`]:!!o})},r)}let t=`${i}-affix-wrapper`,n=J(t,{[`${i}-disabled`]:d,[`${t}-disabled`]:d,[`${t}-focused`]:p,[`${t}-readonly`]:f,[`${t}-input-with-clear-btn`]:o&&h&&g},b?.affixWrapper,x?.affixWrapper,x?.variant),r=(o||h)&&v.createElement(`span`,{className:J(`${i}-suffix`,x?.suffix),style:C?.suffix},e,o);P=v.createElement(D,fE({className:n,style:C?.affixWrapper,onClick:M},S?.affixWrapper,{ref:j}),a&&v.createElement(`span`,{className:J(`${i}-prefix`,x?.prefix),style:C?.prefix},a),P,r)}if(cE(e)){let e=`${i}-group`,t=`${e}-addon`,n=`${e}-wrapper`,r=J(`${i}-wrapper`,e,b?.wrapper,x?.wrapper),a=J(n,{[`${n}-disabled`]:d},b?.group,x?.groupWrapper);P=v.createElement(O,{className:a,ref:F},v.createElement(k,{className:r},s&&v.createElement(A,{className:t},s),P,c&&v.createElement(A,{className:t},c)))}return v.cloneElement(P,{className:J(P.props?.className,l)||null,style:{...P.props?.style,...u},hidden:y})});function mE(e,t){return v.useMemo(()=>{let n={};t&&(n.show=typeof t==`object`&&t.formatter?t.formatter:!!t),n={...n,...e};let{show:r,...i}=n;return{...i,show:!!r,showFormatter:typeof r==`function`?r:void 0,strategy:i.strategy||(e=>e.length)}},[e,t])}function hE(){return hE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hE.apply(this,arguments)}var gE=(0,v.forwardRef)((e,t)=>{let{autoComplete:n,onChange:r,onFocus:i,onBlur:a,onPressEnter:o,onKeyDown:s,onKeyUp:c,prefixCls:l=`rc-input`,disabled:u,htmlSize:d,className:f,maxLength:p,suffix:m,showCount:h,count:g,type:_=`text`,classes:y,classNames:b,styles:x,onCompositionStart:S,onCompositionEnd:C,...w}=e,[E,D]=(0,v.useState)(!1),O=(0,v.useRef)(!1),k=(0,v.useRef)(!1),A=(0,v.useRef)(null),j=(0,v.useRef)(null),M=e=>{A.current&&Ap(A.current,e)},[N,P]=T(e.defaultValue,e.value),F=N==null?``:String(N),[I,L]=(0,v.useState)(null),R=mE(g,h),z=R.max||p,B=R.strategy(F),V=!!z&&B>z;(0,v.useImperativeHandle)(t,()=>({focus:M,blur:()=>{A.current?.blur()},setSelectionRange:(e,t,n)=>{A.current?.setSelectionRange(e,t,n)},select:()=>{A.current?.select()},input:A.current,nativeElement:j.current?.nativeElement||A.current})),(0,v.useEffect)(()=>{k.current&&=!1,D(e=>e&&u?!1:e)},[u]);let H=(e,t,n)=>{let i=t;if(!O.current&&R.exceedFormatter&&R.max&&R.strategy(t)>R.max)i=R.exceedFormatter(t,{max:R.max}),t!==i&&L([A.current?.selectionStart||0,A.current?.selectionEnd||0]);else if(n.source===`compositionEnd`)return;P(i),A.current&&dE(A.current,e,r,i)};(0,v.useEffect)(()=>{I&&A.current?.setSelectionRange(...I)},[I]);let U=e=>{H(e,e.target.value,{source:`change`})},W=e=>{O.current=!1,H(e,e.currentTarget.value,{source:`compositionEnd`}),C?.(e)},ee=e=>{o&&e.key===`Enter`&&!k.current&&!e.nativeEvent.isComposing&&(k.current=!0,o(e)),s?.(e)},te=e=>{e.key===`Enter`&&(k.current=!1),c?.(e)},ne=e=>{D(!0),i?.(e)},re=e=>{k.current&&=!1,D(!1),a?.(e)},ie=e=>{P(``),M(),A.current&&dE(A.current,e,r)},ae=V&&`${l}-out-of-range`;return v.createElement(pE,hE({},w,{prefixCls:l,className:J(f,ae),handleReset:ie,value:F,focused:E,triggerFocus:M,suffix:(()=>{let e=Number(z)>0;if(m||R.show){let t=R.showFormatter?R.showFormatter({value:F,count:B,maxLength:z}):`${B}${e?` / ${z}`:``}`;return v.createElement(v.Fragment,null,R.show&&v.createElement(`span`,{className:J(`${l}-show-count-suffix`,{[`${l}-show-count-has-suffix`]:!!m},b?.count),style:{...x?.count}},t),m)}return null})(),disabled:u,classes:y,classNames:b,styles:x,ref:j}),(()=>{let t=de(e,[`prefixCls`,`onPressEnter`,`addonBefore`,`addonAfter`,`prefix`,`suffix`,`allowClear`,`defaultValue`,`showCount`,`count`,`classes`,`htmlSize`,`styles`,`classNames`,`onClear`]);return v.createElement(`input`,hE({autoComplete:n},t,{onChange:U,onFocus:ne,onBlur:re,onKeyDown:ee,onKeyUp:te,className:J(l,{[`${l}-disabled`]:u},b?.input),style:x?.input,ref:A,size:d,type:_,onCompositionStart:e=>{O.current=!0,S?.(e)},onCompositionEnd:W}))})())}),_E=e=>{let t;return cc(e)&&e?.clearIcon?t=e:e&&(t={clearIcon:v.createElement(Oo,null)}),t};function vE(e,t){let n=(0,v.useRef)([]),r=()=>{n.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute(`type`)===`password`&&e.current?.input.hasAttribute(`value`)&&e.current?.input.removeAttribute(`value`)}))};return(0,v.useEffect)(()=>(t&&r(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),r}function yE(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var bE=(0,v.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,status:i,size:a,disabled:o,onBlur:s,onFocus:c,suffix:l,allowClear:u,addonAfter:d,addonBefore:f,className:p,style:m,styles:h,rootClassName:g,onChange:_,classNames:y,variant:b,...x}=e,{getPrefixCls:S,direction:C,allowClear:w,autoComplete:T,className:E,style:D,classNames:O,styles:k}=Qe(`input`),A=S(`input`,n),j=(0,v.useRef)(null),M=Xc(A),[N,P]=_w(A,g);vw(A,M);let{compactSize:F,compactItemClassnames:L}=Pd(A,C),R=jd(e=>a??F??e),z=v.useContext(fu),B=o??z,V={...e,size:R,disabled:B},[H,U]=Oc([O,y],[k,h],{props:V}),{status:W,hasFeedback:ee,feedbackIcon:te}=(0,v.useContext)(zh),ne=Xy(W,i);(0,v.useRef)(yE(e)||!!ee);let re=vE(j,!0),ie=e=>{re(),s?.(e)},ae=e=>{re(),c?.(e)},G=e=>{re(),_?.(e)},K=(ee||l)&&v.createElement(v.Fragment,null,l,ee&&te),oe=_E(u??w),[se,ce]=ab(`input`,b,r);return v.createElement(gE,{ref:I(t,j),prefixCls:A,autoComplete:T,...x,disabled:B,onBlur:ie,onFocus:ae,style:{...U.root,...D,...m},styles:U,suffix:K,allowClear:oe,className:J(p,g,P,M,L,E,H.root),onChange:G,addonBefore:f&&v.createElement(Hh,{form:!0,space:!0},f),addonAfter:d&&v.createElement(Hh,{form:!0,space:!0},d),classNames:{...H,input:J({[`${A}-sm`]:R===`small`,[`${A}-lg`]:R===`large`,[`${A}-rtl`]:C===`rtl`},H.input,N),variant:J({[`${A}-${se}`]:ce},Yy(A,ne)),affixWrapper:J({[`${A}-affix-wrapper-sm`]:R===`small`,[`${A}-affix-wrapper-lg`]:R===`large`,[`${A}-affix-wrapper-rtl`]:C===`rtl`},N),wrapper:J({[`${A}-group-rtl`]:C===`rtl`},N),groupWrapper:J({[`${A}-group-wrapper-sm`]:R===`small`,[`${A}-group-wrapper-lg`]:R===`large`,[`${A}-group-wrapper-rtl`]:C===`rtl`,[`${A}-group-wrapper-${se}`]:ce},Yy(`${A}-group-wrapper`,ne,ee),N)}})});function xE(e){return[`small`,`middle`,`medium`,`large`].includes(e)}function SE(e){return e?oc(e):!1}var CE=v.createContext({latestIndex:0}),wE=CE.Provider,TE=e=>{let{className:t,prefix:n,index:r,children:i,separator:a,style:o,classNames:s,styles:c}=e,{latestIndex:l}=v.useContext(CE);return ac(i)?v.createElement(v.Fragment,null,v.createElement(`div`,{className:t,style:o},i),r<l&&a&&v.createElement(`span`,{className:J(`${n}-item-separator`,s?.separator),style:c?.separator},a)):null},EE=e=>{let{componentCls:t,antCls:n}=e;return{[t]:{display:`inline-flex`,"&-rtl":{direction:`rtl`},"&-vertical":{flexDirection:`column`},"&-align":{flexDirection:`column`,"&-center":{alignItems:`center`},"&-start":{alignItems:`flex-start`},"&-end":{alignItems:`flex-end`},"&-baseline":{alignItems:`baseline`}},[`${t}-item:empty`]:{display:`none`},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:`block`}}}},DE=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},OE=Ya(`Space`,e=>{let t=ci(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[EE(t),DE(t)]},()=>({}),{resetStyle:!1}),kE=v.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,size:i,className:a,style:o,classNames:s,styles:c}=Qe(`space`),{size:l=i??`small`,align:u,className:d,rootClassName:f,children:p,direction:m,orientation:h,prefixCls:g,split:_,separator:y,style:b,vertical:x,wrap:S=!1,classNames:C,styles:w,...T}=e,[E,D]=Array.isArray(l)?l:[l,l],O=xE(D),k=xE(E),A=SE(D),j=SE(E),M=fe(p,{keepEmpty:!0}),[N,P]=Ac(h,x,m),F=u===void 0&&!P?`center`:u,I=y??_,L=n(`space`,g),[R,z]=OE(L),B={...e,size:l,orientation:N,align:F},[V,H]=Oc([s,C],[c,w],{props:B}),U=J(L,a,R,`${L}-${N}`,{[`${L}-rtl`]:r===`rtl`,[`${L}-align-${F}`]:F,[`${L}-gap-row-${D}`]:O,[`${L}-gap-col-${E}`]:k},d,f,z,V.root),W=J(`${L}-item`,V.item),ee=M.map((e,t)=>{let n=e?.key||`${W}-${t}`;return v.createElement(TE,{prefix:L,classNames:V,styles:H,className:W,key:n,index:t,separator:I,style:H.item},e)}),te=v.useMemo(()=>({latestIndex:M.reduce((e,t,n)=>ac(t)?n:e,0)}),[M]);if(M.length===0)return null;let ne={};return S&&(ne.flexWrap=`wrap`),!k&&j&&(ne.columnGap=E),!O&&A&&(ne.rowGap=D),v.createElement(`div`,{ref:t,className:U,style:{...ne,...H.root,...o,...b},...T},v.createElement(wE,{value:te},ee))});kE.Compact=Ld,kE.Addon=sE;var AE=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:r}=v.useContext(Ye),{prefixCls:i,type:a=`default`,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,children:d,className:f,menu:p,arrow:m,autoFocus:h,trigger:g,align:_,open:y,onOpenChange:b,placement:x,getPopupContainer:S,href:C,icon:w=v.createElement(hC,null),title:T,buttonsRender:E=e=>e,mouseEnterDelay:D,mouseLeaveDelay:O,overlayClassName:k,overlayStyle:A,destroyOnHidden:j,destroyPopupOnHide:M,dropdownRender:N,popupRender:P,...F}=e,I=n(`dropdown`,i),L=`${I}-button`,R={menu:p,arrow:m,autoFocus:h,align:_,disabled:s,trigger:s?[]:g,onOpenChange:b,getPopupContainer:S||t,mouseEnterDelay:D,mouseLeaveDelay:O,classNames:{root:k},styles:{root:A},destroyOnHidden:j,popupRender:P||N},{compactSize:z,compactItemClassnames:B}=Pd(I,r),V=J(L,B,f);`destroyPopupOnHide`in e&&(R.destroyPopupOnHide=M),`open`in e&&(R.open=y),`placement`in e?R.placement=x:R.placement=r===`rtl`?`bottomLeft`:`bottomRight`;let[H,U]=E([v.createElement(HC,{type:a,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,href:C,title:T},d),v.createElement(HC,{type:a,danger:o,icon:w})]);return v.createElement(kE.Compact,{className:V,size:z,block:!0,...F},H,v.createElement(BC,{...R},U))};AE.__ANT_BUTTON=!0;var jE=BC;jE.Button=AE;var ME=[`wrap`,`nowrap`,`wrap-reverse`],NE=[`flex-start`,`flex-end`,`start`,`end`,`center`,`space-between`,`space-around`,`space-evenly`,`stretch`,`normal`,`left`,`right`],PE=[`center`,`start`,`end`,`flex-start`,`flex-end`,`self-start`,`self-end`,`baseline`,`normal`,`stretch`],FE=(e,t)=>{let n=t.wrap===!0?`wrap`:t.wrap;return{[`${e}-wrap-${n}`]:n&&ME.includes(n)}},IE=(e,t)=>{let n={};return PE.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},LE=(e,t)=>{let n={};return NE.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n},RE=(e,t)=>J({...FE(e,t),...IE(e,t),...LE(e,t)}),zE=e=>{let{componentCls:t}=e;return{[t]:{display:`flex`,margin:0,padding:0,"&-vertical":{flexDirection:`column`},"&-rtl":{direction:`rtl`},"&:empty":{display:`none`}}}},BE=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-medium, &-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},VE=e=>{let{componentCls:t}=e,n={};return ME.forEach(e=>{n[`${t}-wrap-${e}`]={flexWrap:e}}),n},HE=e=>{let{componentCls:t}=e,n={};return PE.forEach(e=>{n[`${t}-align-${e}`]={alignItems:e}}),n},UE=e=>{let{componentCls:t}=e,n={};return NE.forEach(e=>{n[`${t}-justify-${e}`]={justifyContent:e}}),n},WE=Ya(`Flex`,e=>{let{paddingXS:t,padding:n,paddingLG:r}=e,i=ci(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[zE(i),BE(i),VE(i),HE(i),UE(i)]},()=>({}),{resetStyle:!1}),GE=v.forwardRef((e,t)=>{let{prefixCls:n,rootClassName:r,className:i,style:a,flex:o,gap:s,vertical:c,orientation:l,component:u=`div`,children:d,...f}=e,{flex:p,direction:m,getPrefixCls:h}=v.useContext(Ye),g=h(`flex`,n),[_,y]=WE(g),[,b]=Ac(l,c??p?.vertical),x=J(i,r,p?.className,g,_,y,RE(g,{...e,vertical:b}),{[`${g}-rtl`]:m===`rtl`,[`${g}-gap-${s}`]:xE(s),[`${g}-vertical`]:b}),S={...p?.style,...a};return ac(o)&&(S.flex=o),ac(s)&&!xE(s)&&(S.gap=s),v.createElement(u,{ref:t,className:x,style:S,...de(f,[`justify`,`wrap`,`align`])},d)}),KE=e=>{let{getPrefixCls:t,direction:n}=(0,v.useContext)(Ye),{prefixCls:r,className:i}=e,a=t(`input-group`,r),[o,s]=vw(t(`input`)),c=J(a,s,{[`${a}-lg`]:e.size===`large`,[`${a}-sm`]:e.size===`small`,[`${a}-compact`]:e.compact,[`${a}-rtl`]:n===`rtl`},o,i),l=(0,v.useContext)(zh),u=(0,v.useMemo)(()=>({...l,isFormItemInput:!1}),[l]);return v.createElement(zh.Provider,{value:u},v.createElement(kE.Compact,{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},qE=e=>{let{componentCls:t,paddingXS:n}=e;return{[t]:{display:`inline-flex`,alignItems:`center`,flexWrap:`nowrap`,columnGap:n,[`${t}-input-wrapper`]:{position:`relative`,[`${t}-mask-icon`]:{position:`absolute`,zIndex:`1`,top:`50%`,right:`50%`,transform:`translate(50%, -50%)`,pointerEvents:`none`},[`${t}-mask-input`]:{color:`transparent`,caretColor:e.colorText,"&::selection":{color:`transparent`}},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":`none`,margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":`textfield`}},"&-rtl":{direction:`rtl`},[`${t}-input`]:{textAlign:`center`,paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},JE=Ya([`Input`,`OTP`],e=>qE(ci(e,UC(e))),WC),YE=v.forwardRef((e,t)=>{let{className:n,value:r,onChange:i,onActiveChange:a,index:o,mask:s,onFocus:c,...l}=e,{getPrefixCls:u}=v.useContext(Ye),d=u(`otp`),f=typeof s==`string`?s:r,p=v.useRef(null);v.useImperativeHandle(t,()=>p.current);let m=e=>{i(o,e.target.value)},h=()=>{Ke(()=>{let e=p.current?.input;document.activeElement===e&&e&&e.select()})},g=e=>{c?.(e),h()},_=e=>{let{key:t,ctrlKey:n,metaKey:i}=e;t===`ArrowLeft`?a(o-1):t===`ArrowRight`?a(o+1):t===`z`&&(n||i)?e.preventDefault():t===`Backspace`&&!r&&a(o-1),h()};return v.createElement(`span`,{className:`${d}-input-wrapper`,role:`presentation`},s&&r!==``&&r!==void 0&&v.createElement(`span`,{className:`${d}-mask-icon`,"aria-hidden":`true`},f),v.createElement(bE,{"aria-label":`OTP Input ${o+1}`,type:s===!0?`password`:`text`,...l,ref:p,value:r,onInput:m,onFocus:g,onKeyDown:_,onMouseDown:h,onMouseUp:h,className:J(n,{[`${d}-mask-input`]:s})}))});function XE(e){return(e||``).split(``)}var ZE=e=>{let{index:t,prefixCls:n,separator:r,className:i,style:a}=e,o=typeof r==`function`?r(t):r;return o?v.createElement(`span`,{className:J(`${n}-separator`,i),style:a},o):null},QE=v.forwardRef((e,t)=>{let{prefixCls:n,length:r=6,size:i,defaultValue:a,value:o,onChange:s,formatter:c,separator:l,variant:u,disabled:d,status:f,autoFocus:p,mask:m,type:h,autoComplete:g,onInput:_,onFocus:b,inputMode:x,classNames:S,styles:C,className:w,style:T,...E}=e,{classNames:D,styles:O,getPrefixCls:k,direction:A,style:j,className:M}=Qe(`otp`),N=k(`otp`,n),P={...e,length:r},[F,I]=Oc([D,S],[O,C],{props:P}),L=Ps(E,{aria:!0,data:!0,attr:!0}),[R,z]=JE(N),B=jd(e=>i??e),V=v.useContext(zh),H=Xy(V.status,f),U=v.useMemo(()=>({...V,status:H,hasFeedback:!1,feedbackIcon:null}),[V,H]),W=v.useRef(null),ee=v.useRef({});v.useImperativeHandle(t,()=>({focus:()=>{ee.current[0]?.focus()},blur:()=>{for(let e=0;e<r;e+=1)ee.current[e]?.blur()},nativeElement:W.current}));let te=e=>c?c(e):e,[ne,re]=v.useState(()=>XE(te(a||``)));v.useEffect(()=>{o!==void 0&&re(XE(o))},[o]);let ie=y(e=>{re(e),_&&_(e),s&&e.length===r&&e.every(e=>e)&&e.some((e,t)=>ne[t]!==e)&&s(e.join(``))}),ae=y((e,t)=>{let n=Be(ne);for(let t=0;t<e;t+=1)n[t]||(n[t]=``);t.length<=1?n[e]=t:n=n.slice(0,e).concat(XE(t)),n=n.slice(0,r);for(let e=n.length-1;e>=0&&!n[e];--e)n.pop();return n=XE(te(n.map(e=>e||` `).join(``))).map((e,t)=>e===` `&&!n[t]?n[t]:e),n}),G=(e,t)=>{let n=ae(e,t),i=Math.min(e+t.length,r-1);i!==e&&n[e]!==void 0&&ee.current[i]?.focus(),ie(n)},K=e=>{ee.current[e]?.focus()},oe=(e,t)=>{for(let e=0;e<t;e+=1)if(!ee.current[e]?.input?.value){ee.current[e]?.focus();break}b?.(e)},se={variant:u,disabled:d,status:H,mask:m,type:h,inputMode:x,autoComplete:g};return v.createElement(`div`,{...L,ref:W,className:J(w,N,{[`${N}-sm`]:B===`small`,[`${N}-lg`]:B===`large`,[`${N}-rtl`]:A===`rtl`},z,R,M,F.root),style:{...I.root,...j,...T},role:`group`},v.createElement(zh.Provider,{value:U},Array.from({length:r}).map((e,t)=>{let n=`otp-${t}`,i=ne[t]||``;return v.createElement(v.Fragment,{key:n},v.createElement(YE,{ref:e=>{ee.current[t]=e},index:t,size:B,htmlSize:1,className:J(F.input,`${N}-input`),style:I.input,onChange:G,value:i,onActiveChange:K,autoFocus:t===0&&p,onFocus:e=>oe(e,t),...se}),t<r-1&&v.createElement(ZE,{separator:l,index:t,prefixCls:N,className:J(F.separator),style:I.separator}))})))}),$E={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z`}},{tag:`path`,attrs:{d:`M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z`}}]},name:`eye-invisible`,theme:`outlined`};function eD(){return eD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eD.apply(this,arguments)}var tD=v.forwardRef((e,t)=>v.createElement(Co,eD({},e,{ref:t,icon:$E}))),nD={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z`}}]},name:`eye`,theme:`outlined`};function rD(){return rD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rD.apply(this,arguments)}var iD=v.forwardRef((e,t)=>v.createElement(Co,rD({},e,{ref:t,icon:nD}))),aD=e=>e?v.createElement(iD,null):v.createElement(tD,null),oD={click:`onClick`,hover:`onMouseOver`},sD=v.forwardRef((e,t)=>{let{disabled:n,action:r=`click`,visibilityToggle:i=!0,iconRender:a=aD,suffix:o}=e,s=v.useContext(fu),c=n??s,l=cc(i)&&i.visible!==void 0,[u,d]=(0,v.useState)(()=>l?i.visible:!1),f=(0,v.useRef)(null);v.useEffect(()=>{l&&d(i.visible)},[l,i]);let p=vE(f),m=()=>{if(c)return;u&&p();let e=!u;d(e),cc(i)&&i.onVisibleChange?.(e)},h=e=>{let t=oD[r]||``,n=a(u),i={[t]:m,className:`${e}-icon`,key:`passwordIcon`,onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return v.cloneElement(v.isValidElement(n)?n:v.createElement(`span`,null,n),i)},{className:g,prefixCls:_,inputPrefixCls:y,size:b,...x}=e,{getPrefixCls:S}=v.useContext(Ye),C=S(`input`,y),w=S(`input-password`,_),T=i&&h(w),E=J(w,g,{[`${w}-${b}`]:!!b}),D={...de(x,[`suffix`,`iconRender`,`visibilityToggle`]),type:u?`text`:`password`,className:E,prefixCls:C,suffix:v.createElement(v.Fragment,null,T,o)};return b&&(D.size=b),v.createElement(bE,{ref:I(t,f),...D})}),cD=Ya([`Input`,`Search`],e=>{let{componentCls:t}=e,n=`${t}-btn`;return{[t]:{width:`100%`,[n]:{"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}}}}}),lD=v.forwardRef((e,t)=>{let{prefixCls:n,inputPrefixCls:r,className:i,size:a,style:o,enterButton:s=!1,addonAfter:c,loading:l,disabled:u,onSearch:d,onChange:f,onCompositionStart:p,onCompositionEnd:m,variant:h,onPressEnter:g,classNames:_,styles:y,hidden:b,...x}=e,{direction:S,getPrefixCls:C,classNames:w,styles:T}=Qe(`inputSearch`),E={...e,enterButton:s},[D,O]=Oc([w,_],[T,y],{props:E},{button:{_default:`root`}}),k=v.useRef(!1),A=C(`input-search`,n),j=C(`input`,r),[M,N]=cD(A),{compactSize:P}=Pd(A,S),F=jd(e=>a??P??e),L=v.useRef(null),R=e=>{e?.target&&e.type===`click`&&d&&d(e.target.value,e,{source:`clear`}),f?.(e)},z=e=>{document.activeElement===L.current?.input&&e.preventDefault()},B=e=>{d&&d(L.current?.input?.value,e,{source:`input`})},V=e=>{k.current||l||(g?.(e),B(e))},H=typeof s==`boolean`?v.createElement(Ob,null):null,U=`${A}-btn`,W=J(U,{[`${U}-${h}`]:h}),ee,te=s||{},ne=te.type&&te.type.__ANT_BUTTON===!0;ee=ne||te.type===`button`?su(te,{onMouseDown:z,onClick:e=>{te?.props?.onClick?.(e),B(e)},key:`enterButton`,...ne?{className:W,size:F}:{}}):v.createElement(vp,{classNames:D.button,styles:O.button,className:W,color:s?`primary`:`default`,size:F,disabled:u,key:`enterButton`,onMouseDown:z,onClick:B,loading:l,icon:H,variant:h===`borderless`||h===`filled`||h===`underlined`?`text`:s?`solid`:void 0},s),c&&(ee=[ee,su(c,{key:`addonAfter`})]);let re=J(A,N,{[`${A}-rtl`]:S===`rtl`,[`${A}-${F}`]:!!F,[`${A}-with-button`]:!!s},i,M,D.root),ie=e=>{k.current=!0,p?.(e)},ae=e=>{k.current=!1,m?.(e)},G=Ps(x,{data:!0}),K=de({...x,classNames:de(D,[`button`,`root`]),styles:de(O,[`button`,`root`]),prefixCls:j,type:`search`,size:F,variant:h,onPressEnter:V,onCompositionStart:ie,onCompositionEnd:ae,onChange:R,disabled:u},Object.keys(G));return v.createElement(Ld,{className:re,style:{...o,...O.root},...G,hidden:b},v.createElement(bE,{ref:I(L,t),...K}),ee)}),uD=`
226
226
  min-height:0 !important;
227
227
  max-height:none !important;
228
228
  height:0 !important;
@@ -233,10 +233,10 @@ html body {
233
233
  top:0 !important;
234
234
  right:0 !important;
235
235
  pointer-events: none !important;
236
- `,ZE=[`letter-spacing`,`line-height`,`padding-top`,`padding-bottom`,`font-family`,`font-weight`,`font-size`,`font-variant`,`text-rendering`,`text-transform`,`width`,`text-indent`,`padding-left`,`padding-right`,`border-width`,`box-sizing`,`word-break`,`white-space`],QE={},$E;function eD(e,t=!1){let n=e.getAttribute(`id`)||e.getAttribute(`data-reactid`)||e.getAttribute(`name`);if(t&&QE[n])return QE[n];let r=window.getComputedStyle(e),i=r.getPropertyValue(`box-sizing`)||r.getPropertyValue(`-moz-box-sizing`)||r.getPropertyValue(`-webkit-box-sizing`),a=parseFloat(r.getPropertyValue(`padding-bottom`))+parseFloat(r.getPropertyValue(`padding-top`)),o=parseFloat(r.getPropertyValue(`border-bottom-width`))+parseFloat(r.getPropertyValue(`border-top-width`)),s={sizingStyle:ZE.map(e=>`${e}:${r.getPropertyValue(e)}`).join(`;`),paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(QE[n]=s),s}function tD(e,t=!1,n=null,r=null){$E||($E=document.createElement(`textarea`),$E.setAttribute(`tab-index`,`-1`),$E.setAttribute(`aria-hidden`,`true`),$E.setAttribute(`name`,`hiddenTextarea`),document.body.appendChild($E)),e.getAttribute(`wrap`)?$E.setAttribute(`wrap`,e.getAttribute(`wrap`)):$E.removeAttribute(`wrap`);let{paddingSize:i,borderSize:a,boxSizing:o,sizingStyle:s}=eD(e,t);$E.setAttribute(`style`,`${s};${XE}`),$E.value=e.value||e.placeholder||``;let c,l,u,d=$E.scrollHeight;if(o===`border-box`?d+=a:o===`content-box`&&(d-=i),n!==null||r!==null){$E.value=` `;let e=$E.scrollHeight-i;n!==null&&(c=e*n,o===`border-box`&&(c=c+i+a),d=Math.max(c,d)),r!==null&&(l=e*r,o===`border-box`&&(l=l+i+a),u=d>l?``:`hidden`,d=Math.min(l,d))}let f={height:d,overflowY:u,resize:`none`};return c&&(f.minHeight=c),l&&(f.maxHeight=l),f}function nD(){return nD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nD.apply(this,arguments)}var rD=0,iD=1,aD=2,oD=v.forwardRef((e,t)=>{let{prefixCls:n,defaultValue:r,value:i,autoSize:a,onResize:o,className:s,style:c,disabled:l,onChange:u,onInternalAutoSize:d,...f}=e,[p,m]=T(r,i),h=p??``,g=e=>{m(e.target.value),u?.(e)},_=v.useRef();v.useImperativeHandle(t,()=>({textArea:_.current}));let[y,b]=v.useMemo(()=>a&&typeof a==`object`?[a.minRows,a.maxRows]:[],[a]),x=!!a,[C,w]=v.useState(aD),[E,D]=v.useState(),O=()=>{w(rD)};S(()=>{x&&O()},[i,y,b,x]),S(()=>{if(C===rD)w(iD);else if(C===iD){let e=tD(_.current,!1,y,b);w(aD),D(e)}},[C]);let k=v.useRef(),A=()=>{Ke.cancel(k.current)},j=e=>{C===aD&&(o?.(e),a&&(A(),k.current=Ke(()=>{O()})))};v.useEffect(()=>A,[]);let M=x?E:null,N={...c,...M};return(C===rD||C===iD)&&(N.overflowY=`hidden`,N.overflowX=`hidden`),v.createElement(Ne,{onResize:j,disabled:!(a||o)},v.createElement(`textarea`,nD({},f,{ref:_,style:N,className:J(n,s,{[`${n}-disabled`]:l}),disabled:l,value:h,onChange:g})))});function sD(){return sD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sD.apply(this,arguments)}var cD=v.forwardRef(({defaultValue:e,value:t,onFocus:n,onBlur:r,onChange:i,allowClear:a,maxLength:o,onCompositionStart:s,onCompositionEnd:c,suffix:l,prefixCls:u=`rc-textarea`,showCount:d,count:f,className:p,style:m,disabled:h,hidden:g,classNames:_,styles:y,onResize:b,onClear:x,onPressEnter:S,readOnly:C,autoSize:w,onKeyDown:E,...D},O)=>{let[k,A]=T(e,t),j=k==null?``:String(k),[M,N]=v.useState(!1),P=v.useRef(!1),[F,I]=v.useState(null),L=(0,v.useRef)(null),R=(0,v.useRef)(null),z=()=>R.current?.textArea,B=()=>{z().focus()};(0,v.useImperativeHandle)(O,()=>({resizableTextArea:R.current,focus:B,blur:()=>{z().blur()},nativeElement:L.current?.nativeElement||z()})),(0,v.useEffect)(()=>{N(e=>!h&&e)},[h]);let[V,H]=v.useState(null);v.useEffect(()=>{V&&z().setSelectionRange(...V)},[V]);let U=mE(f,d),W=U.max??o,ee=Number(W)>0,te=U.strategy(j),ne=!!W&&te>W,re=(e,t)=>{let n=t;!P.current&&U.exceedFormatter&&U.max&&U.strategy(t)>U.max&&(n=U.exceedFormatter(t,{max:U.max}),t!==n&&H([z().selectionStart||0,z().selectionEnd||0])),A(n),dE(e.currentTarget,e,i,n)},ie=e=>{P.current=!0,s?.(e)},ae=e=>{P.current=!1,re(e,e.currentTarget.value),c?.(e)},G=e=>{re(e,e.target.value)},K=e=>{e.key===`Enter`&&S&&!e.nativeEvent.isComposing&&S(e),E?.(e)},oe=e=>{N(!0),n?.(e)},se=e=>{N(!1),r?.(e)},ce=e=>{A(``),B(),dE(z(),e,i)},q=l,le;U.show&&(le=U.showFormatter?U.showFormatter({value:j,count:te,maxLength:W}):`${te}${ee?` / ${W}`:``}`,q=v.createElement(v.Fragment,null,q,v.createElement(`span`,{className:J(`${u}-data-count`,_?.count),style:y?.count},le)));let ue=e=>{b?.(e),z()?.style.height&&I(!0)},de=!w&&!d&&!a;return v.createElement(pE,{ref:L,value:j,allowClear:a,handleReset:ce,suffix:q,prefixCls:u,classNames:{..._,affixWrapper:J(_?.affixWrapper,{[`${u}-show-count`]:d,[`${u}-textarea-allow-clear`]:a})},disabled:h,focused:M,className:J(p,ne&&`${u}-out-of-range`),style:{...m,...F&&!de?{height:`auto`}:{}},dataAttrs:{affixWrapper:{"data-count":typeof le==`string`?le:void 0}},hidden:g,readOnly:C,onClear:x},v.createElement(oD,sD({},D,{autoSize:w,maxLength:o,onKeyDown:K,onChange:G,onFocus:oe,onBlur:se,onCompositionStart:ie,onCompositionEnd:ae,className:J(_?.textarea),style:{resize:m?.resize,...y?.textarea},disabled:h,prefixCls:u,onResize:ue,ref:R,readOnly:C})))}),lD=e=>{let{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:`100%`,height:`auto`,minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:`bottom`,transition:`all ${e.motionDurationSlow}`,resize:`vertical`,[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:`auto`},[r]:{position:`relative`,"&-show-count":{[`${t}-data-count`]:{position:`absolute`,bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:`nowrap`,pointerEvents:`none`}},[`
236
+ `,dD=[`letter-spacing`,`line-height`,`padding-top`,`padding-bottom`,`font-family`,`font-weight`,`font-size`,`font-variant`,`text-rendering`,`text-transform`,`width`,`text-indent`,`padding-left`,`padding-right`,`border-width`,`box-sizing`,`word-break`,`white-space`],fD={},pD;function mD(e,t=!1){let n=e.getAttribute(`id`)||e.getAttribute(`data-reactid`)||e.getAttribute(`name`);if(t&&fD[n])return fD[n];let r=window.getComputedStyle(e),i=r.getPropertyValue(`box-sizing`)||r.getPropertyValue(`-moz-box-sizing`)||r.getPropertyValue(`-webkit-box-sizing`),a=parseFloat(r.getPropertyValue(`padding-bottom`))+parseFloat(r.getPropertyValue(`padding-top`)),o=parseFloat(r.getPropertyValue(`border-bottom-width`))+parseFloat(r.getPropertyValue(`border-top-width`)),s={sizingStyle:dD.map(e=>`${e}:${r.getPropertyValue(e)}`).join(`;`),paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(fD[n]=s),s}function hD(e,t=!1,n=null,r=null){pD||(pD=document.createElement(`textarea`),pD.setAttribute(`tab-index`,`-1`),pD.setAttribute(`aria-hidden`,`true`),pD.setAttribute(`name`,`hiddenTextarea`),document.body.appendChild(pD)),e.getAttribute(`wrap`)?pD.setAttribute(`wrap`,e.getAttribute(`wrap`)):pD.removeAttribute(`wrap`);let{paddingSize:i,borderSize:a,boxSizing:o,sizingStyle:s}=mD(e,t);pD.setAttribute(`style`,`${s};${uD}`),pD.value=e.value||e.placeholder||``;let c,l,u,d=pD.scrollHeight;if(o===`border-box`?d+=a:o===`content-box`&&(d-=i),n!==null||r!==null){pD.value=` `;let e=pD.scrollHeight-i;n!==null&&(c=e*n,o===`border-box`&&(c=c+i+a),d=Math.max(c,d)),r!==null&&(l=e*r,o===`border-box`&&(l=l+i+a),u=d>l?``:`hidden`,d=Math.min(l,d))}let f={height:d,overflowY:u,resize:`none`};return c&&(f.minHeight=c),l&&(f.maxHeight=l),f}function gD(){return gD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gD.apply(this,arguments)}var _D=0,vD=1,yD=2,bD=v.forwardRef((e,t)=>{let{prefixCls:n,defaultValue:r,value:i,autoSize:a,onResize:o,className:s,style:c,disabled:l,onChange:u,onInternalAutoSize:d,...f}=e,[p,m]=T(r,i),h=p??``,g=e=>{m(e.target.value),u?.(e)},_=v.useRef();v.useImperativeHandle(t,()=>({textArea:_.current}));let[y,b]=v.useMemo(()=>a&&typeof a==`object`?[a.minRows,a.maxRows]:[],[a]),x=!!a,[C,w]=v.useState(yD),[E,D]=v.useState(),O=()=>{w(_D)};S(()=>{x&&O()},[i,y,b,x]),S(()=>{if(C===_D)w(vD);else if(C===vD){let e=hD(_.current,!1,y,b);w(yD),D(e)}},[C]);let k=v.useRef(),A=()=>{Ke.cancel(k.current)},j=e=>{C===yD&&(o?.(e),a&&(A(),k.current=Ke(()=>{O()})))};v.useEffect(()=>A,[]);let M=x?E:null,N={...c,...M};return(C===_D||C===vD)&&(N.overflowY=`hidden`,N.overflowX=`hidden`),v.createElement(Ne,{onResize:j,disabled:!(a||o)},v.createElement(`textarea`,gD({},f,{ref:_,style:N,className:J(n,s,{[`${n}-disabled`]:l}),disabled:l,value:h,onChange:g})))});function xD(){return xD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xD.apply(this,arguments)}var SD=v.forwardRef(({defaultValue:e,value:t,onFocus:n,onBlur:r,onChange:i,allowClear:a,maxLength:o,onCompositionStart:s,onCompositionEnd:c,suffix:l,prefixCls:u=`rc-textarea`,showCount:d,count:f,className:p,style:m,disabled:h,hidden:g,classNames:_,styles:y,onResize:b,onClear:x,onPressEnter:S,readOnly:C,autoSize:w,onKeyDown:E,...D},O)=>{let[k,A]=T(e,t),j=k==null?``:String(k),[M,N]=v.useState(!1),P=v.useRef(!1),[F,I]=v.useState(null),L=(0,v.useRef)(null),R=(0,v.useRef)(null),z=()=>R.current?.textArea,B=()=>{z().focus()};(0,v.useImperativeHandle)(O,()=>({resizableTextArea:R.current,focus:B,blur:()=>{z().blur()},nativeElement:L.current?.nativeElement||z()})),(0,v.useEffect)(()=>{N(e=>!h&&e)},[h]);let[V,H]=v.useState(null);v.useEffect(()=>{V&&z().setSelectionRange(...V)},[V]);let U=mE(f,d),W=U.max??o,ee=Number(W)>0,te=U.strategy(j),ne=!!W&&te>W,re=(e,t)=>{let n=t;!P.current&&U.exceedFormatter&&U.max&&U.strategy(t)>U.max&&(n=U.exceedFormatter(t,{max:U.max}),t!==n&&H([z().selectionStart||0,z().selectionEnd||0])),A(n),dE(e.currentTarget,e,i,n)},ie=e=>{P.current=!0,s?.(e)},ae=e=>{P.current=!1,re(e,e.currentTarget.value),c?.(e)},G=e=>{re(e,e.target.value)},K=e=>{e.key===`Enter`&&S&&!e.nativeEvent.isComposing&&S(e),E?.(e)},oe=e=>{N(!0),n?.(e)},se=e=>{N(!1),r?.(e)},ce=e=>{A(``),B(),dE(z(),e,i)},q=l,le;U.show&&(le=U.showFormatter?U.showFormatter({value:j,count:te,maxLength:W}):`${te}${ee?` / ${W}`:``}`,q=v.createElement(v.Fragment,null,q,v.createElement(`span`,{className:J(`${u}-data-count`,_?.count),style:y?.count},le)));let ue=e=>{b?.(e),z()?.style.height&&I(!0)},de=!w&&!d&&!a;return v.createElement(pE,{ref:L,value:j,allowClear:a,handleReset:ce,suffix:q,prefixCls:u,classNames:{..._,affixWrapper:J(_?.affixWrapper,{[`${u}-show-count`]:d,[`${u}-textarea-allow-clear`]:a})},disabled:h,focused:M,className:J(p,ne&&`${u}-out-of-range`),style:{...m,...F&&!de?{height:`auto`}:{}},dataAttrs:{affixWrapper:{"data-count":typeof le==`string`?le:void 0}},hidden:g,readOnly:C,onClear:x},v.createElement(bD,xD({},D,{autoSize:w,maxLength:o,onKeyDown:K,onChange:G,onFocus:oe,onBlur:se,onCompositionStart:ie,onCompositionEnd:ae,className:J(_?.textarea),style:{resize:m?.resize,...y?.textarea},disabled:h,prefixCls:u,onResize:ue,ref:R,readOnly:C})))}),CD=e=>{let{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:`100%`,height:`auto`,minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:`bottom`,transition:`all ${e.motionDurationSlow}`,resize:`vertical`,[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:`auto`},[r]:{position:`relative`,"&-show-count":{[`${t}-data-count`]:{position:`absolute`,bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:`nowrap`,pointerEvents:`none`}},[`
237
237
  &-allow-clear > ${t},
238
238
  &-affix-wrapper${r}-has-feedback ${t}
239
- `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:`inherit`,border:`none`,outline:`none`,background:`transparent`,minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:`none !important`}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:`absolute`,insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:`absolute`,top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:`inline-flex`,alignItems:`center`,margin:`auto`,pointerEvents:`none`}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:`ltr`,insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},uD=Ya([`Input`,`TextArea`],e=>lD(ci(e,UC(e))),WC,{resetFont:!1}),dD=(0,v.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,size:i,disabled:a,status:o,allowClear:s,classNames:c,rootClassName:l,className:u,style:d,styles:f,variant:p,showCount:m,onMouseDown:h,onResize:g,..._}=e,{getPrefixCls:y,direction:b,allowClear:x,autoComplete:S,className:C,style:w,classNames:T,styles:E}=Qe(`textArea`),D=v.useContext(fu),O=a??D,{status:k,hasFeedback:A,feedbackIcon:j}=v.useContext(zh),M=Xy(k,o),[N,P]=Oc([T,c],[E,f],{props:e}),F=v.useRef(null);v.useImperativeHandle(t,()=>({resizableTextArea:F.current?.resizableTextArea,focus:e=>{Ap(F.current?.resizableTextArea?.textArea,e)},blur:()=>F.current?.blur(),nativeElement:F.current?.nativeElement||null}));let I=y(`input`,n),L=Xc(I),[R,z]=_w(I,l);uD(I,L);let{compactSize:B,compactItemClassnames:V}=Pd(I,b),H=jd(e=>i??B??e),[U,W]=ab(`textArea`,p,r),ee=_E(s??x),[te,ne]=v.useState(!1),[re,ie]=v.useState(!1),ae=e=>{ne(!0),h?.(e);let t=()=>{ne(!1),document.removeEventListener(`mouseup`,t)};document.addEventListener(`mouseup`,t)},G=e=>{if(g?.(e),te&&typeof getComputedStyle==`function`){let e=F.current?.nativeElement?.querySelector(`textarea`);e&&getComputedStyle(e).resize===`both`&&ie(!0)}};return v.createElement(cD,{autoComplete:S,..._,style:{...P.root,...w,...d},styles:P,disabled:O,allowClear:ee,className:J(z,L,u,l,V,C,N.root,{[`${I}-textarea-affix-wrapper-resize-dirty`]:re}),classNames:{...N,textarea:J({[`${I}-sm`]:H===`small`,[`${I}-lg`]:H===`large`},R,N.textarea,te&&`${I}-mouse-active`),variant:J({[`${I}-${U}`]:W},Yy(I,M)),affixWrapper:J(`${I}-textarea-affix-wrapper`,{[`${I}-affix-wrapper-rtl`]:b===`rtl`,[`${I}-affix-wrapper-sm`]:H===`small`,[`${I}-affix-wrapper-lg`]:H===`large`,[`${I}-textarea-show-count`]:m||e.count?.show},R)},prefixCls:I,suffix:A&&v.createElement(`span`,{className:`${I}-textarea-suffix`},j),showCount:m,ref:F,onResize:G,onMouseDown:ae})}),fD=bE;fD.Group=ME,fD.Search=YE,fD.TextArea=dD,fD.Password=qE,fD.OTP=RE;function pD(e,t,n){return typeof n==`boolean`?n:e.length?!0:fe(t).some(e=>e.type===fC)}var mD=({suffixCls:e,tagName:t,displayName:n})=>n=>v.forwardRef((r,i)=>v.createElement(n,{ref:i,suffixCls:e,tagName:t,...r})),hD=v.forwardRef((e,t)=>{let{prefixCls:n,suffixCls:r,className:i,tagName:a,...o}=e,{getPrefixCls:s}=v.useContext(Ye),c=s(`layout`,n),[l]=oC(c),u=r?`${c}-${r}`:c;return v.createElement(a,{className:J(n||u,i,l),ref:t,...o})}),gD=v.forwardRef((e,t)=>{let{direction:n}=v.useContext(Ye),[r,i]=v.useState([]),{prefixCls:a,className:o,rootClassName:s,children:c,hasSider:l,tagName:u,style:d,...f}=e,p=de(f,[`suffixCls`]),{getPrefixCls:m,className:h,style:g}=Qe(`layout`),_=m(`layout`,a),y=pD(r,c,l),[b,x]=oC(_),S=J(_,{[`${_}-has-sider`]:y,[`${_}-rtl`]:n===`rtl`},h,o,s,b,x),C=v.useMemo(()=>({siderHook:{addSider:e=>{i(t=>[].concat(Be(t),[e]))},removeSider:e=>{i(t=>t.filter(t=>t!==e))}}}),[]);return v.createElement(nC.Provider,{value:C},v.createElement(u,{ref:t,className:S,style:{...g,...d},...p},c))}),_D=mD({tagName:`div`,displayName:`Layout`})(gD),vD=mD({suffixCls:`header`,tagName:`header`,displayName:`Header`})(hD),yD=mD({suffixCls:`footer`,tagName:`footer`,displayName:`Footer`})(hD),bD=mD({suffixCls:`content`,tagName:`main`,displayName:`Content`})(hD),xD=_D;xD.Header=vD,xD.Footer=yD,xD.Content=bD,xD.Sider=fC,xD._InternalSiderContext=uC;var SD={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z`}}]},name:`double-left`,theme:`outlined`};function CD(){return CD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CD.apply(this,arguments)}var wD=v.forwardRef((e,t)=>v.createElement(Co,CD({},e,{ref:t,icon:SD}))),TD={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z`}}]},name:`double-right`,theme:`outlined`};function ED(){return ED=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ED.apply(this,arguments)}var DD=v.forwardRef((e,t)=>v.createElement(Co,ED({},e,{ref:t,icon:TD}))),OD={items_per_page:`条/页`,jump_to:`跳至`,jump_to_confirm:`确定`,page:`页`,prev_page:`上一页`,next_page:`下一页`,prev_5:`向前 5 页`,next_5:`向后 5 页`,prev_3:`向前 3 页`,next_3:`向后 3 页`,page_size:`页码`},kD=[10,20,50,100],AD=e=>{let{pageSizeOptions:t=kD,locale:n,changeSize:r,pageSize:i,goButton:a,quickGo:o,rootPrefixCls:s,disabled:c,buildOptionText:l,showSizeChanger:u,sizeChangerRender:d}=e,[f,p]=v.useState(``),m=v.useMemo(()=>!f||Number.isNaN(f)?void 0:Number(f),[f]),h=typeof l==`function`?l:e=>`${e} ${n.items_per_page}`,g=e=>{let t=e.target.value;/^\d*$/.test(t)&&p(t)},_=e=>{a||f===``||(p(``),!(e.relatedTarget&&(e.relatedTarget.className.includes(`${s}-item-link`)||e.relatedTarget.className.includes(`${s}-item`)))&&o?.(m))},y=e=>{f!==``&&(e.keyCode===X.ENTER||e.type===`click`)&&(p(``),o?.(m))},b=()=>t.some(e=>e.toString()===i.toString())?t:t.concat([i]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))),x=`${s}-options`;if(!u&&!o)return null;let S=null,C=null,w=null;return u&&d&&(S=d({disabled:c,size:i,onSizeChange:e=>{r?.(Number(e))},"aria-label":n.page_size,className:`${x}-size-changer`,options:b().map(e=>({label:h(e),value:e}))})),o&&(a&&(w=typeof a==`boolean`?v.createElement(`button`,{type:`button`,onClick:y,onKeyUp:y,disabled:c,className:`${x}-quick-jumper-button`},n.jump_to_confirm):v.createElement(`span`,{onClick:y,onKeyUp:y},a)),C=v.createElement(`div`,{className:`${x}-quick-jumper`},n.jump_to,v.createElement(`input`,{disabled:c,type:`text`,value:f,onChange:g,onKeyUp:y,onBlur:_,"aria-label":n.page}),n.page,w)),v.createElement(`li`,{className:x},S,C)},jD=e=>{let{rootPrefixCls:t,page:n,active:r,className:i,style:a,showTitle:o,onClick:s,onKeyPress:c,itemRender:l}=e,u=`${t}-item`,d=J(u,`${u}-${n}`,{[`${u}-active`]:r,[`${u}-disabled`]:!n},i),f=()=>{s(n)},p=e=>{c(e,s,n)},m=l(n,`page`,v.createElement(`a`,{rel:`nofollow`},n));return m?v.createElement(`li`,{title:o?String(n):null,className:d,style:a,onClick:f,onKeyDown:p,tabIndex:0},m):null};function MD(){return MD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MD.apply(this,arguments)}var ND=(e,t,n)=>n;function PD(){}function FD(e){let t=Number(e);return typeof t==`number`&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function ID(e,t,n){let r=e===void 0?t:e;return Math.floor((n-1)/r)+1}var LD=e=>{let{prefixCls:t=`rc-pagination`,selectPrefixCls:n=`rc-select`,className:r,classNames:i,styles:a,current:o,defaultCurrent:s=1,total:c=0,pageSize:l,defaultPageSize:u=10,onChange:d=PD,hideOnSinglePage:f,align:p,showPrevNextJumpers:m=!0,showQuickJumper:h,showLessItems:g,showTitle:_=!0,onShowSizeChange:y=PD,locale:b=OD,style:x,totalBoundaryShowSizeChanger:S=50,disabled:C,simple:w,showTotal:E,showSizeChanger:D=c>S,sizeChangerRender:O,pageSizeOptions:k,itemRender:A=ND,jumpPrevIcon:j,jumpNextIcon:M,prevIcon:N,nextIcon:P}=e,F=v.useRef(null),[I,L]=T(u,l),[R,z]=T(s,o),B=Math.max(1,Math.min(R,ID(void 0,I,c))),[V,H]=v.useState(B);(0,v.useEffect)(()=>{H(B)},[B]),`current`in e;let U=Math.max(1,B-(g?3:5)),W=Math.min(ID(void 0,I,c),B+(g?3:5));function ee(n,r){let i=n||v.createElement(`button`,{type:`button`,"aria-label":r,className:`${t}-item-link`});return typeof n==`function`&&(i=v.createElement(n,e)),i}function te(e){let t=e.target.value,n=ID(void 0,I,c),r;return r=t===``?t:Number.isNaN(Number(t))?V:t>=n?n:Number(t),r}function ne(e){return FD(e)&&e!==B&&FD(c)&&c>0}let re=c>I?h:!1;function ie(e){(e.keyCode===X.UP||e.keyCode===X.DOWN)&&e.preventDefault()}function ae(e){let t=te(e);switch(t!==V&&H(t),e.keyCode){case X.ENTER:oe(t);break;case X.UP:oe(t-1);break;case X.DOWN:oe(t+1);break;default:break}}function G(e){oe(te(e))}function K(e){let t=ID(e,I,c),n=B>t&&t!==0?t:B;L(e),H(n),y?.(B,e),z(n),d?.(n,e)}function oe(e){if(ne(e)&&!C){let t=ID(void 0,I,c),n=e;return e>t?n=t:e<1&&(n=1),n!==V&&H(n),z(n),d?.(n,I),n}return B}let se=B>1,ce=B<ID(void 0,I,c);function q(){se&&oe(B-1)}function le(){ce&&oe(B+1)}function ue(){oe(U)}function de(){oe(W)}function fe(e,t,...n){(e.key===`Enter`||e.charCode===X.ENTER||e.keyCode===X.ENTER)&&t(...n)}function pe(e){fe(e,q)}function me(e){fe(e,le)}function he(e){fe(e,ue)}function ge(e){fe(e,de)}function _e(e){let t=A(e,`prev`,ee(N,`prev page`));return v.isValidElement(t)?v.cloneElement(t,{disabled:!se}):t}function ve(e){let t=A(e,`next`,ee(P,`next page`));return v.isValidElement(t)?v.cloneElement(t,{disabled:!ce}):t}function ye(e){(e.type===`click`||e.keyCode===X.ENTER)&&oe(V)}let be=null,xe=Ps(e,{aria:!0,data:!0}),Se=E&&v.createElement(`li`,{className:`${t}-total-text`},E(c,[c===0?0:(B-1)*I+1,B*I>c?c:B*I])),Ce=null,we=ID(void 0,I,c);if(f&&c<=I)return null;let Te=[],Ee={rootPrefixCls:t,onClick:oe,onKeyPress:fe,showTitle:_,itemRender:A,page:-1,className:i?.item,style:a?.item},De=B-1>0?B-1:0,Oe=B+1<we?B+1:we,ke=h&&h.goButton,Ae=typeof w==`object`?w.readOnly:!w,je=ke,Me=null;w&&(ke&&(je=typeof ke==`boolean`?v.createElement(`button`,{type:`button`,onClick:ye,onKeyUp:ye},b.jump_to_confirm):v.createElement(`span`,{onClick:ye,onKeyUp:ye},ke),je=v.createElement(`li`,{title:_?`${b.jump_to}${B}/${we}`:null,className:`${t}-simple-pager`},je)),Me=v.createElement(`li`,{title:_?`${B}/${we}`:null,className:J(`${t}-simple-pager`,i?.item),style:a?.item},Ae?V:v.createElement(`input`,{type:`text`,"aria-label":b.jump_to,value:V,disabled:C,onKeyDown:ie,onKeyUp:ae,onChange:ae,onBlur:G,size:3}),v.createElement(`span`,{className:`${t}-slash`},`/`),we));let Ne=g?1:2;if(we<=3+Ne*2){we||Te.push(v.createElement(jD,MD({},Ee,{key:`noPager`,page:1,className:`${t}-item-disabled`})));for(let e=1;e<=we;e+=1)Te.push(v.createElement(jD,MD({},Ee,{key:e,page:e,active:B===e})))}else{let e=g?b.prev_3:b.prev_5,n=g?b.next_3:b.next_5,r=A(U,`jump-prev`,ee(j,`prev page`)),i=A(W,`jump-next`,ee(M,`next page`));m&&(be=r?v.createElement(`li`,{title:_?e:null,key:`prev`,onClick:ue,tabIndex:0,onKeyDown:he,className:J(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!j})},r):null,Ce=i?v.createElement(`li`,{title:_?n:null,key:`next`,onClick:de,tabIndex:0,onKeyDown:ge,className:J(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!M})},i):null);let a=Math.max(1,B-Ne),o=Math.min(B+Ne,we);B-1<=Ne&&(o=1+Ne*2),we-B<=Ne&&(a=we-Ne*2);for(let e=a;e<=o;e+=1)Te.push(v.createElement(jD,MD({},Ee,{key:e,page:e,active:B===e})));if(B-1>=Ne*2&&B!==3&&(Te[0]=v.cloneElement(Te[0],{className:J(`${t}-item-after-jump-prev`,Te[0].props.className)}),Te.unshift(be)),we-B>=Ne*2&&B!==we-2){let e=Te[Te.length-1];Te[Te.length-1]=v.cloneElement(e,{className:J(`${t}-item-before-jump-next`,e.props.className)}),Te.push(Ce)}a!==1&&Te.unshift(v.createElement(jD,MD({},Ee,{key:1,page:1}))),o!==we&&Te.push(v.createElement(jD,MD({},Ee,{key:we,page:we})))}let Pe=_e(De);if(Pe){let e=!se||!we;Pe=v.createElement(`li`,{title:_?b.prev_page:null,onClick:q,tabIndex:e?null:0,onKeyDown:pe,className:J(`${t}-prev`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Pe)}let Fe=ve(Oe);if(Fe){let e,n;w?(e=!ce,n=se?0:null):(e=!ce||!we,n=e?null:0),Fe=v.createElement(`li`,{title:_?b.next_page:null,onClick:le,tabIndex:n,onKeyDown:me,className:J(`${t}-next`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Fe)}let Ie=J(t,r,{[`${t}-start`]:p===`start`,[`${t}-center`]:p===`center`,[`${t}-end`]:p===`end`,[`${t}-simple`]:w,[`${t}-disabled`]:C});return v.createElement(`ul`,MD({className:Ie,style:x,ref:F},xe),Se,Pe,w?Me:Te,Fe,v.createElement(AD,{locale:b,rootPrefixCls:t,disabled:C,selectPrefixCls:n,changeSize:K,pageSize:I,pageSizeOptions:k,quickGo:re?oe:null,goButton:je,showSizeChanger:D,sizeChangerRender:O}))},RD=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}},"&:focus-visible":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`${t}-item`]:{cursor:`not-allowed`,backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`},a:{color:e.colorTextDisabled,backgroundColor:`transparent`,border:`none`,cursor:`not-allowed`},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:hover, &:active":{backgroundColor:`transparent`},[`${t}-simple&`]:{backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},zD=e=>{let{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...lw(e),width:e.paginationMiniQuickJumperInputWidth}}}}},BD=e=>{let{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...cw(e)}}}}},VD=e=>{let{componentCls:t,antCls:n}=e,[,r]=Qa(n,`pagination`);return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`),verticalAlign:`top`,[`${t}-item-link`]:{height:r(`item-size-actual`),backgroundColor:`transparent`,border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`)}}},[`${t}-simple-pager`]:{display:`inline-flex`,alignItems:`center`,height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),input:{boxSizing:`border-box`,height:`100%`,width:e.quickJumperInputWidth,padding:`0 ${Y(e.paginationItemPaddingInline)}`,textAlign:`center`,backgroundColor:e.itemInputBg,border:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:`none`,transition:`border-color ${e.motionDurationMid}`,color:`inherit`,"&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${Y(e.inputOutlineOffset)} 0 ${Y(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:`not-allowed`}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:`transparent`}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},HD=e=>{let{componentCls:t,antCls:n}=e,[,r]=Qa(n,`pagination`);return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:`relative`,[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:`auto`}},[`${t}-item-ellipsis`]:{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:`block`,margin:`auto`,color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:`center`,textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
239
+ `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:`inherit`,border:`none`,outline:`none`,background:`transparent`,minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:`none !important`}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:`absolute`,insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:`absolute`,top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:`inline-flex`,alignItems:`center`,margin:`auto`,pointerEvents:`none`}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:`ltr`,insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},wD=Ya([`Input`,`TextArea`],e=>CD(ci(e,UC(e))),WC,{resetFont:!1}),TD=(0,v.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,size:i,disabled:a,status:o,allowClear:s,classNames:c,rootClassName:l,className:u,style:d,styles:f,variant:p,showCount:m,onMouseDown:h,onResize:g,..._}=e,{getPrefixCls:y,direction:b,allowClear:x,autoComplete:S,className:C,style:w,classNames:T,styles:E}=Qe(`textArea`),D=v.useContext(fu),O=a??D,{status:k,hasFeedback:A,feedbackIcon:j}=v.useContext(zh),M=Xy(k,o),[N,P]=Oc([T,c],[E,f],{props:e}),F=v.useRef(null);v.useImperativeHandle(t,()=>({resizableTextArea:F.current?.resizableTextArea,focus:e=>{Ap(F.current?.resizableTextArea?.textArea,e)},blur:()=>F.current?.blur(),nativeElement:F.current?.nativeElement||null}));let I=y(`input`,n),L=Xc(I),[R,z]=_w(I,l);wD(I,L);let{compactSize:B,compactItemClassnames:V}=Pd(I,b),H=jd(e=>i??B??e),[U,W]=ab(`textArea`,p,r),ee=_E(s??x),[te,ne]=v.useState(!1),[re,ie]=v.useState(!1),ae=e=>{ne(!0),h?.(e);let t=()=>{ne(!1),document.removeEventListener(`mouseup`,t)};document.addEventListener(`mouseup`,t)},G=e=>{if(g?.(e),te&&typeof getComputedStyle==`function`){let e=F.current?.nativeElement?.querySelector(`textarea`);e&&getComputedStyle(e).resize===`both`&&ie(!0)}};return v.createElement(SD,{autoComplete:S,..._,style:{...P.root,...w,...d},styles:P,disabled:O,allowClear:ee,className:J(z,L,u,l,V,C,N.root,{[`${I}-textarea-affix-wrapper-resize-dirty`]:re}),classNames:{...N,textarea:J({[`${I}-sm`]:H===`small`,[`${I}-lg`]:H===`large`},R,N.textarea,te&&`${I}-mouse-active`),variant:J({[`${I}-${U}`]:W},Yy(I,M)),affixWrapper:J(`${I}-textarea-affix-wrapper`,{[`${I}-affix-wrapper-rtl`]:b===`rtl`,[`${I}-affix-wrapper-sm`]:H===`small`,[`${I}-affix-wrapper-lg`]:H===`large`,[`${I}-textarea-show-count`]:m||e.count?.show},R)},prefixCls:I,suffix:A&&v.createElement(`span`,{className:`${I}-textarea-suffix`},j),showCount:m,ref:F,onResize:G,onMouseDown:ae})}),ED=bE;ED.Group=KE,ED.Search=lD,ED.TextArea=TD,ED.Password=sD,ED.OTP=QE;function DD(e,t,n){return typeof n==`boolean`?n:e.length?!0:fe(t).some(e=>e.type===fC)}var OD=({suffixCls:e,tagName:t,displayName:n})=>n=>v.forwardRef((r,i)=>v.createElement(n,{ref:i,suffixCls:e,tagName:t,...r})),kD=v.forwardRef((e,t)=>{let{prefixCls:n,suffixCls:r,className:i,tagName:a,...o}=e,{getPrefixCls:s}=v.useContext(Ye),c=s(`layout`,n),[l]=oC(c),u=r?`${c}-${r}`:c;return v.createElement(a,{className:J(n||u,i,l),ref:t,...o})}),AD=v.forwardRef((e,t)=>{let{direction:n}=v.useContext(Ye),[r,i]=v.useState([]),{prefixCls:a,className:o,rootClassName:s,children:c,hasSider:l,tagName:u,style:d,...f}=e,p=de(f,[`suffixCls`]),{getPrefixCls:m,className:h,style:g}=Qe(`layout`),_=m(`layout`,a),y=DD(r,c,l),[b,x]=oC(_),S=J(_,{[`${_}-has-sider`]:y,[`${_}-rtl`]:n===`rtl`},h,o,s,b,x),C=v.useMemo(()=>({siderHook:{addSider:e=>{i(t=>[].concat(Be(t),[e]))},removeSider:e=>{i(t=>t.filter(t=>t!==e))}}}),[]);return v.createElement(nC.Provider,{value:C},v.createElement(u,{ref:t,className:S,style:{...g,...d},...p},c))}),jD=OD({tagName:`div`,displayName:`Layout`})(AD),MD=OD({suffixCls:`header`,tagName:`header`,displayName:`Header`})(kD),ND=OD({suffixCls:`footer`,tagName:`footer`,displayName:`Footer`})(kD),PD=OD({suffixCls:`content`,tagName:`main`,displayName:`Content`})(kD),FD=jD;FD.Header=MD,FD.Footer=ND,FD.Content=PD,FD.Sider=fC,FD._InternalSiderContext=uC;var ID={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z`}}]},name:`double-left`,theme:`outlined`};function LD(){return LD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LD.apply(this,arguments)}var RD=v.forwardRef((e,t)=>v.createElement(Co,LD({},e,{ref:t,icon:ID}))),zD={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z`}}]},name:`double-right`,theme:`outlined`};function BD(){return BD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BD.apply(this,arguments)}var VD=v.forwardRef((e,t)=>v.createElement(Co,BD({},e,{ref:t,icon:zD}))),HD={items_per_page:`条/页`,jump_to:`跳至`,jump_to_confirm:`确定`,page:`页`,prev_page:`上一页`,next_page:`下一页`,prev_5:`向前 5 页`,next_5:`向后 5 页`,prev_3:`向前 3 页`,next_3:`向后 3 页`,page_size:`页码`},UD=[10,20,50,100],WD=e=>{let{pageSizeOptions:t=UD,locale:n,changeSize:r,pageSize:i,goButton:a,quickGo:o,rootPrefixCls:s,disabled:c,buildOptionText:l,showSizeChanger:u,sizeChangerRender:d}=e,[f,p]=v.useState(``),m=v.useMemo(()=>!f||Number.isNaN(f)?void 0:Number(f),[f]),h=typeof l==`function`?l:e=>`${e} ${n.items_per_page}`,g=e=>{let t=e.target.value;/^\d*$/.test(t)&&p(t)},_=e=>{a||f===``||(p(``),!(e.relatedTarget&&(e.relatedTarget.className.includes(`${s}-item-link`)||e.relatedTarget.className.includes(`${s}-item`)))&&o?.(m))},y=e=>{f!==``&&(e.keyCode===X.ENTER||e.type===`click`)&&(p(``),o?.(m))},b=()=>t.some(e=>e.toString()===i.toString())?t:t.concat([i]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))),x=`${s}-options`;if(!u&&!o)return null;let S=null,C=null,w=null;return u&&d&&(S=d({disabled:c,size:i,onSizeChange:e=>{r?.(Number(e))},"aria-label":n.page_size,className:`${x}-size-changer`,options:b().map(e=>({label:h(e),value:e}))})),o&&(a&&(w=typeof a==`boolean`?v.createElement(`button`,{type:`button`,onClick:y,onKeyUp:y,disabled:c,className:`${x}-quick-jumper-button`},n.jump_to_confirm):v.createElement(`span`,{onClick:y,onKeyUp:y},a)),C=v.createElement(`div`,{className:`${x}-quick-jumper`},n.jump_to,v.createElement(`input`,{disabled:c,type:`text`,value:f,onChange:g,onKeyUp:y,onBlur:_,"aria-label":n.page}),n.page,w)),v.createElement(`li`,{className:x},S,C)},GD=e=>{let{rootPrefixCls:t,page:n,active:r,className:i,style:a,showTitle:o,onClick:s,onKeyPress:c,itemRender:l}=e,u=`${t}-item`,d=J(u,`${u}-${n}`,{[`${u}-active`]:r,[`${u}-disabled`]:!n},i),f=()=>{s(n)},p=e=>{c(e,s,n)},m=l(n,`page`,v.createElement(`a`,{rel:`nofollow`},n));return m?v.createElement(`li`,{title:o?String(n):null,className:d,style:a,onClick:f,onKeyDown:p,tabIndex:0},m):null};function KD(){return KD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KD.apply(this,arguments)}var qD=(e,t,n)=>n;function JD(){}function YD(e){let t=Number(e);return typeof t==`number`&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function XD(e,t,n){let r=e===void 0?t:e;return Math.floor((n-1)/r)+1}var ZD=e=>{let{prefixCls:t=`rc-pagination`,selectPrefixCls:n=`rc-select`,className:r,classNames:i,styles:a,current:o,defaultCurrent:s=1,total:c=0,pageSize:l,defaultPageSize:u=10,onChange:d=JD,hideOnSinglePage:f,align:p,showPrevNextJumpers:m=!0,showQuickJumper:h,showLessItems:g,showTitle:_=!0,onShowSizeChange:y=JD,locale:b=HD,style:x,totalBoundaryShowSizeChanger:S=50,disabled:C,simple:w,showTotal:E,showSizeChanger:D=c>S,sizeChangerRender:O,pageSizeOptions:k,itemRender:A=qD,jumpPrevIcon:j,jumpNextIcon:M,prevIcon:N,nextIcon:P}=e,F=v.useRef(null),[I,L]=T(u,l),[R,z]=T(s,o),B=Math.max(1,Math.min(R,XD(void 0,I,c))),[V,H]=v.useState(B);(0,v.useEffect)(()=>{H(B)},[B]),`current`in e;let U=Math.max(1,B-(g?3:5)),W=Math.min(XD(void 0,I,c),B+(g?3:5));function ee(n,r){let i=n||v.createElement(`button`,{type:`button`,"aria-label":r,className:`${t}-item-link`});return typeof n==`function`&&(i=v.createElement(n,e)),i}function te(e){let t=e.target.value,n=XD(void 0,I,c),r;return r=t===``?t:Number.isNaN(Number(t))?V:t>=n?n:Number(t),r}function ne(e){return YD(e)&&e!==B&&YD(c)&&c>0}let re=c>I?h:!1;function ie(e){(e.keyCode===X.UP||e.keyCode===X.DOWN)&&e.preventDefault()}function ae(e){let t=te(e);switch(t!==V&&H(t),e.keyCode){case X.ENTER:oe(t);break;case X.UP:oe(t-1);break;case X.DOWN:oe(t+1);break;default:break}}function G(e){oe(te(e))}function K(e){let t=XD(e,I,c),n=B>t&&t!==0?t:B;L(e),H(n),y?.(B,e),z(n),d?.(n,e)}function oe(e){if(ne(e)&&!C){let t=XD(void 0,I,c),n=e;return e>t?n=t:e<1&&(n=1),n!==V&&H(n),z(n),d?.(n,I),n}return B}let se=B>1,ce=B<XD(void 0,I,c);function q(){se&&oe(B-1)}function le(){ce&&oe(B+1)}function ue(){oe(U)}function de(){oe(W)}function fe(e,t,...n){(e.key===`Enter`||e.charCode===X.ENTER||e.keyCode===X.ENTER)&&t(...n)}function pe(e){fe(e,q)}function me(e){fe(e,le)}function he(e){fe(e,ue)}function ge(e){fe(e,de)}function _e(e){let t=A(e,`prev`,ee(N,`prev page`));return v.isValidElement(t)?v.cloneElement(t,{disabled:!se}):t}function ve(e){let t=A(e,`next`,ee(P,`next page`));return v.isValidElement(t)?v.cloneElement(t,{disabled:!ce}):t}function ye(e){(e.type===`click`||e.keyCode===X.ENTER)&&oe(V)}let be=null,xe=Ps(e,{aria:!0,data:!0}),Se=E&&v.createElement(`li`,{className:`${t}-total-text`},E(c,[c===0?0:(B-1)*I+1,B*I>c?c:B*I])),Ce=null,we=XD(void 0,I,c);if(f&&c<=I)return null;let Te=[],Ee={rootPrefixCls:t,onClick:oe,onKeyPress:fe,showTitle:_,itemRender:A,page:-1,className:i?.item,style:a?.item},De=B-1>0?B-1:0,Oe=B+1<we?B+1:we,ke=h&&h.goButton,Ae=typeof w==`object`?w.readOnly:!w,je=ke,Me=null;w&&(ke&&(je=typeof ke==`boolean`?v.createElement(`button`,{type:`button`,onClick:ye,onKeyUp:ye},b.jump_to_confirm):v.createElement(`span`,{onClick:ye,onKeyUp:ye},ke),je=v.createElement(`li`,{title:_?`${b.jump_to}${B}/${we}`:null,className:`${t}-simple-pager`},je)),Me=v.createElement(`li`,{title:_?`${B}/${we}`:null,className:J(`${t}-simple-pager`,i?.item),style:a?.item},Ae?V:v.createElement(`input`,{type:`text`,"aria-label":b.jump_to,value:V,disabled:C,onKeyDown:ie,onKeyUp:ae,onChange:ae,onBlur:G,size:3}),v.createElement(`span`,{className:`${t}-slash`},`/`),we));let Ne=g?1:2;if(we<=3+Ne*2){we||Te.push(v.createElement(GD,KD({},Ee,{key:`noPager`,page:1,className:`${t}-item-disabled`})));for(let e=1;e<=we;e+=1)Te.push(v.createElement(GD,KD({},Ee,{key:e,page:e,active:B===e})))}else{let e=g?b.prev_3:b.prev_5,n=g?b.next_3:b.next_5,r=A(U,`jump-prev`,ee(j,`prev page`)),i=A(W,`jump-next`,ee(M,`next page`));m&&(be=r?v.createElement(`li`,{title:_?e:null,key:`prev`,onClick:ue,tabIndex:0,onKeyDown:he,className:J(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!j})},r):null,Ce=i?v.createElement(`li`,{title:_?n:null,key:`next`,onClick:de,tabIndex:0,onKeyDown:ge,className:J(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!M})},i):null);let a=Math.max(1,B-Ne),o=Math.min(B+Ne,we);B-1<=Ne&&(o=1+Ne*2),we-B<=Ne&&(a=we-Ne*2);for(let e=a;e<=o;e+=1)Te.push(v.createElement(GD,KD({},Ee,{key:e,page:e,active:B===e})));if(B-1>=Ne*2&&B!==3&&(Te[0]=v.cloneElement(Te[0],{className:J(`${t}-item-after-jump-prev`,Te[0].props.className)}),Te.unshift(be)),we-B>=Ne*2&&B!==we-2){let e=Te[Te.length-1];Te[Te.length-1]=v.cloneElement(e,{className:J(`${t}-item-before-jump-next`,e.props.className)}),Te.push(Ce)}a!==1&&Te.unshift(v.createElement(GD,KD({},Ee,{key:1,page:1}))),o!==we&&Te.push(v.createElement(GD,KD({},Ee,{key:we,page:we})))}let Pe=_e(De);if(Pe){let e=!se||!we;Pe=v.createElement(`li`,{title:_?b.prev_page:null,onClick:q,tabIndex:e?null:0,onKeyDown:pe,className:J(`${t}-prev`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Pe)}let Fe=ve(Oe);if(Fe){let e,n;w?(e=!ce,n=se?0:null):(e=!ce||!we,n=e?null:0),Fe=v.createElement(`li`,{title:_?b.next_page:null,onClick:le,tabIndex:n,onKeyDown:me,className:J(`${t}-next`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Fe)}let Ie=J(t,r,{[`${t}-start`]:p===`start`,[`${t}-center`]:p===`center`,[`${t}-end`]:p===`end`,[`${t}-simple`]:w,[`${t}-disabled`]:C});return v.createElement(`ul`,KD({className:Ie,style:x,ref:F},xe),Se,Pe,w?Me:Te,Fe,v.createElement(WD,{locale:b,rootPrefixCls:t,disabled:C,selectPrefixCls:n,changeSize:K,pageSize:I,pageSizeOptions:k,quickGo:re?oe:null,goButton:je,showSizeChanger:D,sizeChangerRender:O}))},QD=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}},"&:focus-visible":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`${t}-item`]:{cursor:`not-allowed`,backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`},a:{color:e.colorTextDisabled,backgroundColor:`transparent`,border:`none`,cursor:`not-allowed`},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:hover, &:active":{backgroundColor:`transparent`},[`${t}-simple&`]:{backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},$D=e=>{let{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...lw(e),width:e.paginationMiniQuickJumperInputWidth}}}}},eO=e=>{let{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...cw(e)}}}}},tO=e=>{let{componentCls:t,antCls:n}=e,[,r]=Qa(n,`pagination`);return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`),verticalAlign:`top`,[`${t}-item-link`]:{height:r(`item-size-actual`),backgroundColor:`transparent`,border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`)}}},[`${t}-simple-pager`]:{display:`inline-flex`,alignItems:`center`,height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),input:{boxSizing:`border-box`,height:`100%`,width:e.quickJumperInputWidth,padding:`0 ${Y(e.paginationItemPaddingInline)}`,textAlign:`center`,backgroundColor:e.itemInputBg,border:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:`none`,transition:`border-color ${e.motionDurationMid}`,color:`inherit`,"&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${Y(e.inputOutlineOffset)} 0 ${Y(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:`not-allowed`}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:`transparent`}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},nO=e=>{let{componentCls:t,antCls:n}=e,[,r]=Qa(n,`pagination`);return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:`relative`,[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:`auto`}},[`${t}-item-ellipsis`]:{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:`block`,margin:`auto`,color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:`center`,textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
240
240
  ${t}-prev,
241
241
  ${t}-jump-prev,
242
242
  ${t}-jump-next
@@ -245,44 +245,44 @@ html body {
245
245
  ${t}-next,
246
246
  ${t}-jump-prev,
247
247
  ${t}-jump-next
248
- `]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),color:e.colorText,fontFamily:e.fontFamily,lineHeight:r(`item-size-actual`),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,borderRadius:e.borderRadius,cursor:`pointer`,transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:`pointer`,userSelect:`none`},[`${t}-item-link`]:{display:`block`,width:`100%`,height:`100%`,padding:0,fontSize:e.fontSizeSM,textAlign:`center`,backgroundColor:`transparent`,border:`${Y(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:`none`,transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:`transparent`}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:`inline-block`,marginInlineStart:e.margin,verticalAlign:`middle`,"&-size-changer":{width:`auto`},"&-quick-jumper":{display:`inline-block`,height:r(`item-size-actual`),marginInlineStart:e.marginXS,lineHeight:r(`item-size-actual`),verticalAlign:`baseline`,input:{...uw(e),...qC(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...KC(e)},width:e.quickJumperInputWidth,height:r(`item-size-actual`),boxSizing:`border-box`,margin:0,marginInlineStart:r(`item-spacing-actual`),marginInlineEnd:r(`item-spacing-actual`)}}}}},UD=e=>{let{componentCls:t,antCls:n}=e,[,r]=Qa(n,`pagination`);return{[`${t}-item`]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),fontFamily:e.fontFamily,lineHeight:Y(e.calc(r(`item-size-actual`)).sub(2).equal()),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,backgroundColor:e.itemBg,border:`${Y(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:`pointer`,userSelect:`none`,a:{display:`block`,padding:`0 ${Y(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:`none`}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},WD=e=>{let{componentCls:t,antCls:n}=e,[r,i]=Qa(n,`pagination`);return{[t]:{[r(`item-size-actual`)]:Y(e.itemSize),[r(`item-spacing-actual`)]:Y(e.marginXS),"&-small":{[r(`item-size-actual`)]:Y(e.itemSizeSM),[r(`item-spacing-actual`)]:Y(e.marginXXS)},"&-large":{[r(`item-size-actual`)]:Y(e.itemSizeLG),[r(`item-spacing-actual`)]:Y(e.marginSM)},...Ba(e),display:`flex`,alignItems:`center`,"&-start":{justifyContent:`start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`end`},"ul, ol":{margin:0,padding:0,listStyle:`none`},"&::after":{display:`block`,clear:`both`,height:0,overflow:`hidden`,visibility:`hidden`,content:`""`},[`${t}-total-text`]:{display:`inline-block`,height:i(`item-size-actual`),marginInlineEnd:i(`item-spacing-actual`),lineHeight:Y(e.calc(i(`item-size-actual`)).sub(2).equal()),verticalAlign:`middle`},...UD(e),...HD(e),...VD(e),...zD(e),...BD(e),...RD(e),[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:`none`}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:`none`}}},[`&${e.componentCls}-rtl`]:{direction:`rtl`}}},GD=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...Wa(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...Ua(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Ua(e)}}}},KD=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...WC(e)}),qD=e=>ci(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:`0.13em`},UC(e)),JD=Ya(`Pagination`,e=>{let t=qD(e);return[WD(t),GD(t)]},KD),YD=e=>{let{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},XD=Za([`Pagination`,`bordered`],e=>YD(qD(e)),KD);function ZD(e){return(0,v.useMemo)(()=>typeof e==`boolean`?[e,{}]:cc(e)?[!0,e]:[void 0,void 0],[e])}var QD=e=>{let{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:o,size:s,locale:c,responsive:l,showSizeChanger:u,selectComponentClass:d,pageSizeOptions:f,styles:p,classNames:m,...h}=e,{xs:g}=Bb(l),[,_]=Ra(),{getPrefixCls:y,direction:b,showSizeChanger:x,className:S,style:C,classNames:w,styles:T,totalBoundaryShowSizeChanger:E}=Qe(`pagination`),D=y(`pagination`,n),[O,k]=JD(D),A=jd(s),j=A===`small`||!!(g&&!A&&l),M={...e,size:A},[N,P]=Oc([w,m],[T,p],{props:M}),[F]=tc(`Pagination`,Fs),I={...F,...c},[L,R]=ZD(u),[z,B]=ZD(x),V=L??z,H=R??B,U=d||Nb,W=v.useMemo(()=>f?f.map(Number):void 0,[f]),ee=e=>{let{disabled:t,size:n,onSizeChange:r,"aria-label":i,className:a,options:o}=e,{className:s,onChange:c}=H||{},l=o.find(e=>String(e.value)===String(n))?.value;return v.createElement(U,{disabled:t,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:o,...H,value:l,onChange:(e,t)=>{r?.(e),c?.(e,t)},size:A,className:J(a,s)})},te=v.useMemo(()=>{let e=v.createElement(`span`,{className:`${D}-item-ellipsis`},`•••`);return{prevIcon:v.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},b===`rtl`?v.createElement(qf,null):v.createElement(Ox,null)),nextIcon:v.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},b===`rtl`?v.createElement(Ox,null):v.createElement(qf,null)),jumpPrevIcon:v.createElement(`a`,{className:`${D}-item-link`},v.createElement(`div`,{className:`${D}-item-container`},b===`rtl`?v.createElement(DD,{className:`${D}-item-link-icon`}):v.createElement(wD,{className:`${D}-item-link-icon`}),e)),jumpNextIcon:v.createElement(`a`,{className:`${D}-item-link`},v.createElement(`div`,{className:`${D}-item-container`},b===`rtl`?v.createElement(wD,{className:`${D}-item-link-icon`}):v.createElement(DD,{className:`${D}-item-link-icon`}),e))}},[b,D]),ne=y(`select`,r),re=J({[`${D}-${t}`]:!!t,[`${D}-${A}`]:A,[`${D}-mini`]:j,[`${D}-rtl`]:b===`rtl`,[`${D}-bordered`]:_.wireframe},S,i,a,N.root,O,k),ie={...P.root,...C,...o};return v.createElement(v.Fragment,null,_.wireframe&&v.createElement(XD,{prefixCls:D}),v.createElement(LD,{...te,...h,styles:P,classNames:N,style:ie,prefixCls:D,selectPrefixCls:ne,className:re,locale:I,pageSizeOptions:W,showSizeChanger:V,totalBoundaryShowSizeChanger:h.totalBoundaryShowSizeChanger??E,sizeChangerRender:ee}))},$D=100,eO=$D/5,tO=$D/2-eO/2,nO=tO*2*Math.PI,rO=50,iO=e=>{let{dotClassName:t,style:n,hasCircleCls:r}=e;return v.createElement(`circle`,{className:J(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:tO,cx:rO,cy:rO,strokeWidth:eO,style:n})},aO=({percent:e,prefixCls:t})=>{let n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[a,o]=v.useState(!1);S(()=>{e!==0&&o(!0)},[e!==0]);let s=Math.max(Math.min(e,100),0);if(!a)return null;let c={strokeDashoffset:`${nO/4}`,strokeDasharray:`${nO*s/100} ${nO*(100-s)/100}`};return v.createElement(`span`,{className:J(r,`${n}-progress`,{[i]:s<=0})},v.createElement(`svg`,{viewBox:`0 0 ${$D} ${$D}`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},v.createElement(iO,{dotClassName:n,hasCircleCls:!0}),v.createElement(iO,{dotClassName:n,style:c})))};function oO(e){let{prefixCls:t,percent:n=0,className:r,style:i}=e,a=`${t}-dot`,o=`${a}-holder`,s=`${o}-hidden`;return v.createElement(v.Fragment,null,v.createElement(`span`,{className:J(o,r,n>0&&s),style:i},v.createElement(`span`,{className:J(a,`${t}-dot-spin`)},[1,2,3,4].map(e=>v.createElement(`i`,{className:`${t}-dot-item`,key:e})))),v.createElement(aO,{prefixCls:t,percent:n}))}function sO(e){let{prefixCls:t,indicator:n,percent:r,className:i,style:a}=e,o=`${t}-dot`;return n&&v.isValidElement(n)?su(n,e=>({className:J(e.className,o,i),style:{...e.style,...a},percent:r})):v.createElement(oO,{prefixCls:t,percent:r,className:i,style:a})}var cO=new kr(`antSpinMove`,{to:{opacity:1}}),lO=new kr(`antRotate`,{to:{transform:`rotate(405deg)`}}),uO=e=>{let{componentCls:t}=e,n=`${t}-section`;return{[t]:{...Ba(e),position:`relative`,"&-rtl":{direction:`rtl`},[`&${n}, ${n}`]:{display:`flex`,alignItems:`center`,flexDirection:`column`,gap:e.paddingSM,color:e.colorPrimary},[`&${n}`]:{display:`inline-flex`},[n]:{position:`absolute`,top:`50%`,left:{_skip_check_:!0,value:`50%`},transform:`translate(-50%, -50%)`,zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${t}-container`]:{position:`relative`,transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:`100%`,height:`100%`,background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:`""`,pointerEvents:`none`}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:`both`,opacity:.5,userSelect:`none`,pointerEvents:`none`,"&::after":{opacity:.4,pointerEvents:`auto`}}},"&-fullscreen":{position:`fixed`,inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:`none`,transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:`auto`},[n]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}},dO=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r}=e,[i,a]=Qa(n,`spin`);return{[t]:{[i(`dot-holder-size`)]:e.dotSize,[i(`dot-item-size`)]:`calc((${a(`dot-holder-size`)} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:`1em`,height:`1em`,fontSize:a(`dot-holder-size`),display:`inline-block`,transition:[`transform`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),transformOrigin:`50% 50%`,lineHeight:1,"&-hidden":{transform:`scale(0.3)`,opacity:0}},position:`relative`,display:`inline-block`,fontSize:a(`dot-holder-size`),width:`1em`,height:`1em`,"&-spin":{transform:`rotate(45deg)`,animationName:lO,animationDuration:`1.2s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`},"&-item":{position:`absolute`,display:`block`,width:a(`dot-item-size`),height:a(`dot-item-size`),background:`currentColor`,borderRadius:`100%`,transform:`scale(0.75)`,transformOrigin:`50% 50%`,opacity:.3,animationName:cO,animationDuration:`1s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`,animationDirection:`alternate`,"&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:`0s`},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:`0.4s`},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:`0.8s`},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:`1.2s`}},"&-progress":{position:`absolute`,left:`50%`,top:0,transform:`translateX(-50%)`},"&-circle":{strokeLinecap:`round`,transition:[`stroke-dashoffset`,`stroke-dasharray`,`stroke`,`stroke-width`,`opacity`].map(e=>`${e} ${r} ease`).join(`,`),fillOpacity:0,stroke:`currentcolor`},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},fO=e=>{let{componentCls:t}=e,[n]=Qa(e.antCls,`spin`);return{[t]:{"&-sm":{[n(`dot-holder-size`)]:e.dotSizeSM},"&-lg":{[n(`dot-holder-size`)]:e.dotSizeLG}}}},pO=Ya(`Spin`,e=>{let t=ci(e,{spinDotDefault:e.colorTextDescription});return[uO(t),dO(t),fO(t)]},e=>{let{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),mO=200,hO=[[30,.05],[70,.03],[96,.01]];function gO(e,t){let[n,r]=v.useState(0),i=v.useRef(null),a=t===`auto`;return v.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(e=>{let t=100-e;for(let n=0;n<hO.length;n+=1){let[r,i]=hO[n];if(e<=r)return e+t*i}return e})},mO)),()=>{i.current&&=(clearInterval(i.current),null)}),[a,e]),a?n:t}var _O;function vO(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}var yO=e=>{let{prefixCls:t,spinning:n=!0,delay:r=0,className:i,rootClassName:a,size:o,tip:s,description:c,wrapperClassName:l,style:u,children:d,fullscreen:f=!1,indicator:p,percent:m,classNames:h,styles:g,..._}=e,{getPrefixCls:y,direction:b,indicator:x,className:S,style:C,classNames:w,styles:T}=Qe(`spin`),E=y(`spin`,t),[D,O]=pO(E),[k,A]=v.useState(()=>n&&!vO(n,r)),j=gO(k,m);v.useEffect(()=>{if(n){let e=RT(r,()=>{A(!0)});return e(),()=>{e?.cancel?.()}}A(!1)},[r,n]);let M=jd(e=>o??e),N=c??s,P={...e,size:M,spinning:k,tip:N,description:N,fullscreen:f,children:d,percent:j},[F,I]=Oc([w,h],[T,g],{props:P}),L=p??x??_O,R=d!==void 0,z=R||f,B=v.createElement(v.Fragment,null,v.createElement(sO,{className:J(F.indicator),style:I.indicator,prefixCls:E,indicator:L,percent:j}),N&&v.createElement(`div`,{className:J(`${E}-description`,F.tip,F.description),style:{...I.tip,...I.description}},N));return v.createElement(`div`,{className:J(E,{[`${E}-sm`]:M===`small`,[`${E}-lg`]:M===`large`,[`${E}-spinning`]:k,[`${E}-rtl`]:b===`rtl`,[`${E}-fullscreen`]:f},a,F.root,f&&F.mask,z?l:[`${E}-section`,F.section],S,i,D,O),style:{...I.root,...z?{}:I.section,...f?I.mask:{},...C,...u},"aria-live":`polite`,"aria-busy":k,..._},k&&(z?v.createElement(`div`,{className:J(`${E}-section`,F.section),style:I.section},B):B),R&&v.createElement(`div`,{className:J(`${E}-container`,F.container),style:I.container},d))};yO.setDefaultIndicator=e=>{_O=e};var bO=v.createContext({});bO.Consumer;var xO=({prefixCls:e,className:t,avatar:n,title:r,description:i,...a})=>{let{getPrefixCls:o}=(0,v.useContext)(Ye),s=o(`list`,e),c=J(`${s}-item-meta`,t),l=v.createElement(`div`,{className:`${s}-item-meta-content`},r&&v.createElement(`h4`,{className:`${s}-item-meta-title`},r),i&&v.createElement(`div`,{className:`${s}-item-meta-description`},i));return v.createElement(`div`,{...a,className:c},n&&v.createElement(`div`,{className:`${s}-item-meta-avatar`},n),(r||i)&&l)},SO=v.forwardRef((e,t)=>{let{prefixCls:n,children:r,actions:i,extra:a,styles:o,className:s,classNames:c,colStyle:l,...u}=e,{grid:d,itemLayout:f}=(0,v.useContext)(bO),{getPrefixCls:p,list:m}=(0,v.useContext)(Ye),h=e=>J(m?.item?.classNames?.[e],c?.[e]),g=e=>({...m?.item?.styles?.[e],...o?.[e]}),_=()=>{let e=fe(r);return e.some(e=>typeof e==`string`)&&e.length>1},y=()=>f===`vertical`?!!a:!_(),b=p(`list`,n),x=i&&i.length>0&&v.createElement(`ul`,{className:J(`${b}-item-action`,h(`actions`)),key:`actions`,style:g(`actions`)},i.map((e,t)=>v.createElement(`li`,{key:`${b}-item-action-${t}`},e,t!==i.length-1&&v.createElement(`em`,{className:`${b}-item-action-split`})))),S=d?`div`:`li`,C=v.createElement(S,{...u,...d?{}:{ref:t},className:J(`${b}-item`,{[`${b}-item-no-flex`]:!y()},s)},f===`vertical`&&a?[v.createElement(`div`,{className:`${b}-item-main`,key:`content`},r,x),v.createElement(`div`,{className:J(`${b}-item-extra`,h(`extra`)),key:`extra`,style:g(`extra`)},a)]:[r,x,su(a,{key:`extra`})]);return d?v.createElement(VT,{ref:t,flex:1,style:l},C):C});SO.Meta=xO;var CO=e=>{let{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:a,itemPaddingLG:o,marginLG:s,borderRadiusLG:c}=e,l=Y(e.calc(c).sub(e.lineWidth).equal());return{[t]:{border:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header`]:{borderRadius:`${l} ${l} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${l} ${l}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${Y(i)} ${Y(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}}}},wO=e=>{let{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:a,margin:o}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:`wrap`,[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:`wrap-reverse`,[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${Y(o)}`}}}}}},TO=e=>{let{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:a,marginLG:o,padding:s,itemPadding:c,colorPrimary:l,itemPaddingSM:u,itemPaddingLG:d,paddingXS:f,margin:p,colorText:m,colorTextDescription:h,motionDurationSlow:g,lineWidth:_,headerBg:v,footerBg:y,emptyTextPadding:b,metaMarginBottom:x,avatarMarginRight:S,titleMarginBottom:C,descriptionFontSize:w}=e;return{[t]:{...Ba(e),position:`relative`,"--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:`none`},[`${t}-header`]:{background:v},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:a},[`${t}-pagination`]:{marginBlockStart:o,[`${n}-pagination-options`]:{textAlign:`start`}},[`${t}-spin`]:{minHeight:i,textAlign:`center`},[`${t}-items`]:{margin:0,padding:0,listStyle:`none`},[`${t}-item`]:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:c,color:m,[`${t}-item-meta`]:{display:`flex`,flex:1,alignItems:`flex-start`,maxWidth:`100%`,[`${t}-item-meta-avatar`]:{marginInlineEnd:S},[`${t}-item-meta-content`]:{flex:`1 0`,width:0,color:m},[`${t}-item-meta-title`]:{margin:`0 0 ${Y(e.marginXXS)} 0`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:m,transition:`all ${g}`,"&:hover":{color:l}}},[`${t}-item-meta-description`]:{color:h,fontSize:w,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:`0 0 auto`,marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:`none`,"& > li":{position:`relative`,display:`inline-block`,padding:`0 ${Y(f)}`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:`center`,"&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:`absolute`,insetBlockStart:`50%`,insetInlineEnd:0,width:_,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:`translateY(-50%)`,backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${Y(s)} 0`,color:h,fontSize:e.fontSizeSM,textAlign:`center`},[`${t}-empty-text`]:{padding:b,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:`center`},[`${t}-item-no-flex`]:{display:`block`}},[`${t}-grid ${n}-col > ${t}-item`]:{display:`block`,maxWidth:`100%`,marginBlockEnd:p,paddingBlock:0,borderBlockEnd:`none`},[`${t}-vertical ${t}-item`]:{alignItems:`initial`,[`${t}-item-main`]:{display:`block`,flex:1},[`${t}-item-extra`]:{marginInlineStart:o},[`${t}-item-meta`]:{marginBlockEnd:x,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:C,color:m,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:`auto`,"> li":{padding:`0 ${Y(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${Y(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:`none`}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${Y(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${Y(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${Y(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:`right`}}}}},EO=Ya(`List`,e=>{let t=ci(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[TO(t),CO(t),wO(t)]},e=>({contentWidth:220,itemPadding:`${Y(e.paddingContentVertical)} 0`,itemPaddingSM:`${Y(e.paddingContentVerticalSM)} ${Y(e.paddingContentHorizontal)}`,itemPaddingLG:`${Y(e.paddingContentVerticalLG)} ${Y(e.paddingContentHorizontalLG)}`,headerBg:`transparent`,footerBg:`transparent`,emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),{extraCssVarPrefixCls:({prefixCls:e})=>[`${e}-container`]}),DO=v.forwardRef((e,t)=>{let{pagination:n=!1,prefixCls:r,bordered:i=!1,split:a=!0,className:o,rootClassName:s,style:c,children:l,itemLayout:u,loadMore:d,grid:f,dataSource:p=[],size:m,header:h,footer:g,loading:_=!1,rowKey:y,renderItem:b,locale:x,...S}=e,C=cc(n)?n:{},[w,T]=v.useState(C.defaultCurrent||1),[E,D]=v.useState(C.defaultPageSize||10),{getPrefixCls:O,direction:k,className:A,style:j}=Qe(`list`),{renderEmpty:M}=v.useContext(Ye),N={current:1,total:0,position:`bottom`},P=e=>(t,r)=>{T(t),D(r),n&&n?.[e]?.(t,r)},F=P(`onChange`),I=P(`onShowSizeChange`),L=(e,t)=>{if(!b)return null;let n;return n=typeof y==`function`?y(e):y?e[y]:e.key,n||=`list-item-${t}`,v.createElement(v.Fragment,{key:n},b(e,t))},R=!!(d||n||g),z=O(`list`,r),[B,V]=EO(z),H=_;typeof H==`boolean`&&(H={spinning:H});let U=!!H?.spinning,W=jd(m),ee=``;switch(W){case`large`:ee=`lg`;break;case`small`:ee=`sm`;break;default:break}let te=J(z,{[`${z}-vertical`]:u===`vertical`,[`${z}-${ee}`]:ee,[`${z}-split`]:a,[`${z}-bordered`]:i,[`${z}-loading`]:U,[`${z}-grid`]:!!f,[`${z}-something-after-last-item`]:R,[`${z}-rtl`]:k===`rtl`},A,o,s,B,V),ne=`${z}-container`,re=ic(N,{total:p.length,current:w,pageSize:E},n||{}),ie=Math.ceil(re.total/re.pageSize);re.current=Math.min(re.current,ie);let ae=n&&v.createElement(`div`,{className:J(`${z}-pagination`)},v.createElement(QD,{align:`end`,...re,onChange:F,onShowSizeChange:I})),G=Be(p);n&&p.length>(re.current-1)*re.pageSize&&(G=Be(p).splice((re.current-1)*re.pageSize,re.pageSize));let K=Bb(Object.keys(f||{}).some(e=>Fb.includes(e))),oe=v.useMemo(()=>{for(let e=0;e<Fb.length;e+=1){let t=Fb[e];if(K[t])return t}},[K]),se=v.useMemo(()=>{if(!f)return;let e=oe&&f[oe]?f[oe]:f.column;if(e)return{width:`${100/e}%`,maxWidth:`${100/e}%`}},[JSON.stringify(f),oe]),ce=U&&v.createElement(`div`,{style:{minHeight:53}});if(G.length>0){let e=G.map(L);ce=f?v.createElement(WT,{className:J(ne,V),gutter:f.gutter},v.Children.map(e,e=>v.createElement(`div`,{key:e?.key,style:se},e))):v.createElement(`ul`,{className:J(`${z}-items`,ne,V)},e)}else !l&&!U&&(ce=v.createElement(`div`,{className:`${z}-empty-text`},x?.emptyText||M?.(`List`)||v.createElement(ib,{componentName:`List`})));let q=re.position,le=v.useMemo(()=>({grid:f,itemLayout:u}),[JSON.stringify(f),u]);return v.createElement(bO.Provider,{value:le},v.createElement(`div`,{ref:t,style:{...j,...c},className:te,...S},(q===`top`||q===`both`)&&ae,h&&v.createElement(`div`,{className:`${z}-header`},h),v.createElement(yO,{...H},ce,l),g&&v.createElement(`div`,{className:`${z}-footer`},g),d||(q===`bottom`||q===`both`)&&ae))});DO.Item=SO;var OO=(e,t={})=>!ac(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],kO=Y_(e=>{let{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:o,children:s,footer:c,classNames:l,styles:u,...d}=e,{getPrefixCls:f}=v.useContext(Ye),{className:p,style:m,classNames:h,styles:g}=Qe(`modal`),_=f(),y=t||f(`modal`),b=Xc(_),[x,S]=Jg(y,b),[C,w]=Oc([h,l],[g,u],{props:e}),T=`${y}-confirm`,E={};return E=a?{closable:i??!1,title:``,footer:``,children:v.createElement($g,{...e,prefixCls:y,confirmPrefixCls:T,rootPrefixCls:_,content:s})}:{closable:i??!0,title:o,footer:c!==null&&v.createElement(Ag,{...e}),children:s},v.createElement(Gp,{prefixCls:y,className:J(x,`${y}-pure-panel`,a&&T,a&&`${T}-${a}`,n,p,S,b,C.root),style:{...m,...w.root},...d,closeIcon:kg(y,r),closable:i,classNames:C,styles:w,...E})});function AO(e){return o_(s_(e))}var jO=Xg;jO.useModal=g_,jO.info=function(e){return o_(c_(e))},jO.success=function(e){return o_(l_(e))},jO.error=function(e){return o_(u_(e))},jO.warning=AO,jO.warn=AO,jO.confirm=function(e){return o_(d_(e))},jO.destroyAll=function(){for(;n_.length;){let e=n_.pop();e&&e()}},jO.config=f_,jO._InternalPanelDoNotUseOrYouWillBeFired=kO;var MO=Ya(`Popconfirm`,e=>{let{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:a,colorWarning:o,marginXXS:s,marginXS:c,fontSize:l,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:l},[`${t}-message`]:{marginBottom:c,display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${t}-message-icon ${n}`]:{color:o,fontSize:l,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:`normal`}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:`end`,whiteSpace:`nowrap`,button:{marginInlineStart:c}}}}},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1}),NO=e=>{let{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:o,okText:s,okType:c=`primary`,icon:l=v.createElement(Po,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:p,onPopupClick:m,classNames:h,styles:g}=e,{getPrefixCls:_}=v.useContext(Ye),[y]=tc(`Popconfirm`,Js.Popconfirm),b=Vb(i),x=Vb(a);return v.createElement(`div`,{className:`${t}-inner-content`,onClick:m},v.createElement(`div`,{className:`${t}-message`},l&&v.createElement(`span`,{className:`${t}-message-icon`},l),v.createElement(`div`,{className:`${t}-message-text`},b&&v.createElement(`div`,{className:J(`${t}-title`,h?.title),style:g?.title},b),x&&v.createElement(`div`,{className:J(`${t}-description`,h?.content),style:g?.content},x))),v.createElement(`div`,{className:`${t}-buttons`},u&&v.createElement(vp,{onClick:p,size:`small`,...r},o||y?.cancelText),v.createElement(yp,{buttonProps:{size:`small`,...Hd(c),...n},actionFn:f,close:d,prefixCls:_(`btn`),quitOnNullishReturnValue:!0,emitEvent:!0},s||y?.okText)))},PO=e=>{let{prefixCls:t,placement:n,className:r,style:i,...a}=e,{getPrefixCls:o}=v.useContext(Ye),s=o(`popconfirm`,t);return MO(s),v.createElement(wx,{placement:n,className:J(s,r),style:i,content:v.createElement(NO,{prefixCls:s,...a})})},FO=v.forwardRef((e,t)=>{let{prefixCls:n,placement:r=`top`,trigger:i,okType:a=`primary`,icon:o=v.createElement(Po,null),children:s,overlayClassName:c,onOpenChange:l,overlayStyle:u,styles:d,arrow:f,classNames:p,...m}=e,{getPrefixCls:h,className:g,style:_,classNames:y,styles:b,arrow:x,trigger:S}=Qe(`popconfirm`),[C,w]=T(e.defaultOpen??!1,e.open),E=ox(f,x),D=i||S||`click`,O=e=>{w(e),l?.(e)},k=()=>{O(!1)},A=t=>e.onConfirm?.call(void 0,t),j=t=>{O(!1),e.onCancel?.call(void 0,t)},M=t=>{let{disabled:n=!1}=e;n||O(t)},N=h(`popconfirm`,n),P={...e,placement:r,trigger:D,okType:a,overlayStyle:u,styles:d,classNames:p},[F,I]=Oc([y,p],[b,d],{props:P}),L=J(N,g,c,F.root);return MO(N),v.createElement(Tx,{arrow:E,...de(m,[`title`]),trigger:D,placement:r,onOpenChange:M,open:C,ref:t,classNames:{root:L,container:F.container,arrow:F.arrow},styles:{root:{..._,...I.root,...u},container:I.container,arrow:I.arrow},content:v.createElement(NO,{okType:a,icon:o,...e,prefixCls:N,close:k,onConfirm:A,onCancel:j,classNames:F,styles:I}),"data-popover-inject":!0},s)});FO._InternalPanelDoNotUseOrYouWillBeFired=PO;var IO={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z`}}]},name:`reload`,theme:`outlined`};function LO(){return LO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LO.apply(this,arguments)}var RO=v.forwardRef((e,t)=>v.createElement(Co,LO({},e,{ref:t,icon:IO}))),zO=e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:{...Ba(e),display:`inline-block`,height:`auto`,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:`nowrap`,backgroundColor:e.defaultBg,border:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:`start`,position:`relative`,[`&${i}-rtl`]:{direction:`rtl`},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:`transparent`,borderColor:`transparent`,cursor:`pointer`,[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:`not-allowed`,[`&:not(${i}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:`transparent`}},[`&${i}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${i}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:`flex`,flexWrap:`wrap`,gap:e.paddingXS}},"&-hidden":{display:`none`},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}},[`&${e.componentCls}-solid`]:{borderColor:`transparent`,color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${i}-default`]:{color:e.solidTextColor}},[`${i}-filled`]:{borderColor:`transparent`,backgroundColor:e.tagBorderlessBg},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,backgroundColor:e.colorBgContainerDisabled,a:{cursor:`not-allowed`,pointerEvents:`none`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${i}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${i}-solid, &${i}-filled`]:{color:e.colorTextDisabled,[`${i}-close-icon`]:{color:e.colorTextDisabled}},[`${i}-close-icon`]:{cursor:`not-allowed`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},BO=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return ci(e,{tagFontSize:i,tagLineHeight:Y(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},VO=e=>{let t=Xf(new Wf(e.colorBgSolid),`#fff`)?`#000`:`#fff`;return{defaultBg:new Ai(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},HO=Ya(`Tag`,e=>zO(BO(e)),VO),UO=v.forwardRef((e,t)=>{let{prefixCls:n,style:r,className:i,checked:a,children:o,icon:s,onChange:c,onClick:l,disabled:u,...d}=e,{getPrefixCls:f,tag:p}=v.useContext(Ye),m=v.useContext(fu),h=u??m,g=e=>{h||(c?.(!a),l?.(e))},_=f(`tag`,n),[y,b]=HO(_),x=J(_,`${_}-checkable`,{[`${_}-checkable-checked`]:a,[`${_}-checkable-disabled`]:h},p?.className,i,y,b);return v.createElement(`span`,{...d,ref:t,style:{...r,...p?.style},className:x,onClick:g},s,v.createElement(`span`,null,o))}),WO=v.forwardRef((e,t)=>{let{id:n,prefixCls:r,rootClassName:i,className:a,style:o,classNames:s,styles:c,disabled:l,options:u,value:d,defaultValue:f,onChange:p,multiple:m,...h}=e,{getPrefixCls:g,direction:_,className:y,style:b,classNames:x,styles:S}=Qe(`tag`),C=g(`tag`,r),w=`${C}-checkable-group`,[E,D]=HO(C,Xc(C)),[O,k]=Oc([x,s],[S,c],{props:e}),A=(0,v.useMemo)(()=>Array.isArray(u)?u.map(e=>cc(e)?e:{value:e,label:e}):[],[u]),[j,M]=T(f,d),N=(e,t)=>{let n=null;if(m){let r=j||[];n=e?[].concat(Be(r),[t.value]):r.filter(e=>e!==t.value)}else n=e?t.value:null;M(n),p?.(n)},P=v.useRef(null);(0,v.useImperativeHandle)(t,()=>({nativeElement:P.current}));let F=Ps(h,{aria:!0,data:!0});return v.createElement(`div`,{...F,className:J(w,y,i,{[`${w}-disabled`]:l,[`${w}-rtl`]:_===`rtl`},E,D,a,O.root),style:{...b,...k.root,...o},id:n,ref:P},A.map(e=>v.createElement(UO,{key:e.value,className:J(`${w}-item`,O.item),style:k.item,checked:m?(j||[]).includes(e.value):j===e.value,onChange:t=>N(t,e),disabled:l},e.label)))});function GO(e,t){let{color:n,variant:r,bordered:i}=e;return v.useMemo(()=>{let e=n?.endsWith(`-inverse`),a;a=r||(e?`solid`:i===!1?`filled`:t||`filled`);let o=e?n?.replace(`-inverse`,``):n,s=px(n),c=mx(n),l={};if(!s&&!c&&o)if(a===`solid`)l.backgroundColor=n;else{let e=new Ai(o).toHsl();e.l=.95,l.backgroundColor=new Ai(e).toHexString(),l.color=n,a===`outlined`&&(l.borderColor=n)}return[a,o,s,c,l]},[n,r,i,t])}var KO=e=>$a(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:a,borderColor:a,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:n}}})),qO=Za([`Tag`,`preset`],e=>KO(BO(e)),VO);function JO(e){return typeof e==`string`?e.charAt(0).toUpperCase()+e.slice(1):e}var YO=(e,t,n)=>{let r=JO(n);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},XO=Za([`Tag`,`status`],e=>{let t=BO(e);return[YO(t,`success`,`Success`),YO(t,`processing`,`Info`),YO(t,`error`,`Error`),YO(t,`warning`,`Warning`)]},VO),ZO=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:c,variant:l,onClose:u,bordered:d,disabled:f,href:p,target:m,styles:h,classNames:g,..._}=e,{getPrefixCls:y,direction:b,className:x,variant:S,style:C,classNames:w,styles:T}=Qe(`tag`),[E,D,O,k,A]=GO(e,S),j=O||k,M=v.useContext(fu),N=f??M,{tag:P}=v.useContext(Ye),[F,I]=v.useState(!0),L=de(_,[`closeIcon`,`closable`]),R={...e,color:D,variant:E,disabled:N},[z,B]=Oc([w,g],[T,h],{props:R}),V=v.useMemo(()=>{let e={...B.root,...C,...a};return N||(e={...A,...e}),e},[B.root,C,a,A,N]),H=y(`tag`,n),[U,W]=HO(H),ee=J(H,x,z.root,`${H}-${E}`,{[`${H}-${D}`]:j,[`${H}-hidden`]:!F,[`${H}-rtl`]:b===`rtl`,[`${H}-disabled`]:N},r,i,U,W),te=e=>{N||(e.stopPropagation(),u?.(e),!e.defaultPrevented&&I(!1))},[,ne]=vc(fc(e),fc(P),{closable:!1,closeIconRender:e=>ou(e,v.createElement(`span`,{className:`${H}-close-icon`,onClick:te},e),e=>({onClick:t=>{e?.onClick?.(t),te(t)},className:J(e?.className,`${H}-close-icon`)}))}),re=typeof _.onClick==`function`||o&&o.type===`a`,ie=su(s,{className:J(v.isValidElement(s)?s.props?.className:void 0,z.icon),style:B.icon}),ae=ie?v.createElement(v.Fragment,null,ie,o&&v.createElement(`span`,{className:z.content,style:B.content},o)):o,G=p?`a`:`span`,K=v.createElement(G,{...L,ref:t,className:ee,style:V,href:N?void 0:p,target:m,onClick:N?void 0:L.onClick,...p&&N?{"aria-disabled":!0}:{}},ae,ne,O&&v.createElement(qO,{key:`preset`,prefixCls:H}),k&&v.createElement(XO,{key:`status`,prefixCls:H}));return re?v.createElement(Ad,{component:`Tag`},K):K});ZO.CheckableTag=UO,ZO.CheckableTagGroup=WO;var QO={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z`}}]},name:`delete`,theme:`outlined`};function $O(){return $O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$O.apply(this,arguments)}var ek=v.forwardRef((e,t)=>v.createElement(Co,$O({},e,{ref:t,icon:QO}))),tk={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z`}}]},name:`edit`,theme:`outlined`};function nk(){return nk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nk.apply(this,arguments)}var rk=v.forwardRef((e,t)=>v.createElement(Co,nk({},e,{ref:t,icon:tk}))),ik={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z`}}]},name:`enter`,theme:`outlined`};function ak(){return ak=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ak.apply(this,arguments)}var ok=v.forwardRef((e,t)=>v.createElement(Co,ak({},e,{ref:t,icon:ik}))),sk=(e,t,n,r)=>{let{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},ck=e=>{let t=[1,2,3,4,5],n={};return t.forEach(t=>{n[`
248
+ `]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),color:e.colorText,fontFamily:e.fontFamily,lineHeight:r(`item-size-actual`),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,borderRadius:e.borderRadius,cursor:`pointer`,transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:`pointer`,userSelect:`none`},[`${t}-item-link`]:{display:`block`,width:`100%`,height:`100%`,padding:0,fontSize:e.fontSizeSM,textAlign:`center`,backgroundColor:`transparent`,border:`${Y(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:`none`,transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:`transparent`}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:`inline-block`,marginInlineStart:e.margin,verticalAlign:`middle`,"&-size-changer":{width:`auto`},"&-quick-jumper":{display:`inline-block`,height:r(`item-size-actual`),marginInlineStart:e.marginXS,lineHeight:r(`item-size-actual`),verticalAlign:`baseline`,input:{...uw(e),...qC(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...KC(e)},width:e.quickJumperInputWidth,height:r(`item-size-actual`),boxSizing:`border-box`,margin:0,marginInlineStart:r(`item-spacing-actual`),marginInlineEnd:r(`item-spacing-actual`)}}}}},rO=e=>{let{componentCls:t,antCls:n}=e,[,r]=Qa(n,`pagination`);return{[`${t}-item`]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),fontFamily:e.fontFamily,lineHeight:Y(e.calc(r(`item-size-actual`)).sub(2).equal()),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,backgroundColor:e.itemBg,border:`${Y(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:`pointer`,userSelect:`none`,a:{display:`block`,padding:`0 ${Y(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:`none`}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},iO=e=>{let{componentCls:t,antCls:n}=e,[r,i]=Qa(n,`pagination`);return{[t]:{[r(`item-size-actual`)]:Y(e.itemSize),[r(`item-spacing-actual`)]:Y(e.marginXS),"&-small":{[r(`item-size-actual`)]:Y(e.itemSizeSM),[r(`item-spacing-actual`)]:Y(e.marginXXS)},"&-large":{[r(`item-size-actual`)]:Y(e.itemSizeLG),[r(`item-spacing-actual`)]:Y(e.marginSM)},...Ba(e),display:`flex`,alignItems:`center`,"&-start":{justifyContent:`start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`end`},"ul, ol":{margin:0,padding:0,listStyle:`none`},"&::after":{display:`block`,clear:`both`,height:0,overflow:`hidden`,visibility:`hidden`,content:`""`},[`${t}-total-text`]:{display:`inline-block`,height:i(`item-size-actual`),marginInlineEnd:i(`item-spacing-actual`),lineHeight:Y(e.calc(i(`item-size-actual`)).sub(2).equal()),verticalAlign:`middle`},...rO(e),...nO(e),...tO(e),...$D(e),...eO(e),...QD(e),[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:`none`}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:`none`}}},[`&${e.componentCls}-rtl`]:{direction:`rtl`}}},aO=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...Wa(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...Ua(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Ua(e)}}}},oO=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...WC(e)}),sO=e=>ci(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:`0.13em`},UC(e)),cO=Ya(`Pagination`,e=>{let t=sO(e);return[iO(t),aO(t)]},oO),lO=e=>{let{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},uO=Za([`Pagination`,`bordered`],e=>lO(sO(e)),oO);function dO(e){return(0,v.useMemo)(()=>typeof e==`boolean`?[e,{}]:cc(e)?[!0,e]:[void 0,void 0],[e])}var fO=e=>{let{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:o,size:s,locale:c,responsive:l,showSizeChanger:u,selectComponentClass:d,pageSizeOptions:f,styles:p,classNames:m,...h}=e,{xs:g}=Bb(l),[,_]=Ra(),{getPrefixCls:y,direction:b,showSizeChanger:x,className:S,style:C,classNames:w,styles:T,totalBoundaryShowSizeChanger:E}=Qe(`pagination`),D=y(`pagination`,n),[O,k]=cO(D),A=jd(s),j=A===`small`||!!(g&&!A&&l),M={...e,size:A},[N,P]=Oc([w,m],[T,p],{props:M}),[F]=tc(`Pagination`,Fs),I={...F,...c},[L,R]=dO(u),[z,B]=dO(x),V=L??z,H=R??B,U=d||Nb,W=v.useMemo(()=>f?f.map(Number):void 0,[f]),ee=e=>{let{disabled:t,size:n,onSizeChange:r,"aria-label":i,className:a,options:o}=e,{className:s,onChange:c}=H||{},l=o.find(e=>String(e.value)===String(n))?.value;return v.createElement(U,{disabled:t,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:o,...H,value:l,onChange:(e,t)=>{r?.(e),c?.(e,t)},size:A,className:J(a,s)})},te=v.useMemo(()=>{let e=v.createElement(`span`,{className:`${D}-item-ellipsis`},`•••`);return{prevIcon:v.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},b===`rtl`?v.createElement(qf,null):v.createElement(Ox,null)),nextIcon:v.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},b===`rtl`?v.createElement(Ox,null):v.createElement(qf,null)),jumpPrevIcon:v.createElement(`a`,{className:`${D}-item-link`},v.createElement(`div`,{className:`${D}-item-container`},b===`rtl`?v.createElement(VD,{className:`${D}-item-link-icon`}):v.createElement(RD,{className:`${D}-item-link-icon`}),e)),jumpNextIcon:v.createElement(`a`,{className:`${D}-item-link`},v.createElement(`div`,{className:`${D}-item-container`},b===`rtl`?v.createElement(RD,{className:`${D}-item-link-icon`}):v.createElement(VD,{className:`${D}-item-link-icon`}),e))}},[b,D]),ne=y(`select`,r),re=J({[`${D}-${t}`]:!!t,[`${D}-${A}`]:A,[`${D}-mini`]:j,[`${D}-rtl`]:b===`rtl`,[`${D}-bordered`]:_.wireframe},S,i,a,N.root,O,k),ie={...P.root,...C,...o};return v.createElement(v.Fragment,null,_.wireframe&&v.createElement(uO,{prefixCls:D}),v.createElement(ZD,{...te,...h,styles:P,classNames:N,style:ie,prefixCls:D,selectPrefixCls:ne,className:re,locale:I,pageSizeOptions:W,showSizeChanger:V,totalBoundaryShowSizeChanger:h.totalBoundaryShowSizeChanger??E,sizeChangerRender:ee}))},pO=100,mO=pO/5,hO=pO/2-mO/2,gO=hO*2*Math.PI,_O=50,vO=e=>{let{dotClassName:t,style:n,hasCircleCls:r}=e;return v.createElement(`circle`,{className:J(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:hO,cx:_O,cy:_O,strokeWidth:mO,style:n})},yO=({percent:e,prefixCls:t})=>{let n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[a,o]=v.useState(!1);S(()=>{e!==0&&o(!0)},[e!==0]);let s=Math.max(Math.min(e,100),0);if(!a)return null;let c={strokeDashoffset:`${gO/4}`,strokeDasharray:`${gO*s/100} ${gO*(100-s)/100}`};return v.createElement(`span`,{className:J(r,`${n}-progress`,{[i]:s<=0})},v.createElement(`svg`,{viewBox:`0 0 ${pO} ${pO}`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},v.createElement(vO,{dotClassName:n,hasCircleCls:!0}),v.createElement(vO,{dotClassName:n,style:c})))};function bO(e){let{prefixCls:t,percent:n=0,className:r,style:i}=e,a=`${t}-dot`,o=`${a}-holder`,s=`${o}-hidden`;return v.createElement(v.Fragment,null,v.createElement(`span`,{className:J(o,r,n>0&&s),style:i},v.createElement(`span`,{className:J(a,`${t}-dot-spin`)},[1,2,3,4].map(e=>v.createElement(`i`,{className:`${t}-dot-item`,key:e})))),v.createElement(yO,{prefixCls:t,percent:n}))}function xO(e){let{prefixCls:t,indicator:n,percent:r,className:i,style:a}=e,o=`${t}-dot`;return n&&v.isValidElement(n)?su(n,e=>({className:J(e.className,o,i),style:{...e.style,...a},percent:r})):v.createElement(bO,{prefixCls:t,percent:r,className:i,style:a})}var SO=new kr(`antSpinMove`,{to:{opacity:1}}),CO=new kr(`antRotate`,{to:{transform:`rotate(405deg)`}}),wO=e=>{let{componentCls:t}=e,n=`${t}-section`;return{[t]:{...Ba(e),position:`relative`,"&-rtl":{direction:`rtl`},[`&${n}, ${n}`]:{display:`flex`,alignItems:`center`,flexDirection:`column`,gap:e.paddingSM,color:e.colorPrimary},[`&${n}`]:{display:`inline-flex`},[n]:{position:`absolute`,top:`50%`,left:{_skip_check_:!0,value:`50%`},transform:`translate(-50%, -50%)`,zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${t}-container`]:{position:`relative`,transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:`100%`,height:`100%`,background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:`""`,pointerEvents:`none`}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:`both`,opacity:.5,userSelect:`none`,pointerEvents:`none`,"&::after":{opacity:.4,pointerEvents:`auto`}}},"&-fullscreen":{position:`fixed`,inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:`none`,transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:`auto`},[n]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}},TO=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r}=e,[i,a]=Qa(n,`spin`);return{[t]:{[i(`dot-holder-size`)]:e.dotSize,[i(`dot-item-size`)]:`calc((${a(`dot-holder-size`)} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:`1em`,height:`1em`,fontSize:a(`dot-holder-size`),display:`inline-block`,transition:[`transform`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),transformOrigin:`50% 50%`,lineHeight:1,"&-hidden":{transform:`scale(0.3)`,opacity:0}},position:`relative`,display:`inline-block`,fontSize:a(`dot-holder-size`),width:`1em`,height:`1em`,"&-spin":{transform:`rotate(45deg)`,animationName:CO,animationDuration:`1.2s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`},"&-item":{position:`absolute`,display:`block`,width:a(`dot-item-size`),height:a(`dot-item-size`),background:`currentColor`,borderRadius:`100%`,transform:`scale(0.75)`,transformOrigin:`50% 50%`,opacity:.3,animationName:SO,animationDuration:`1s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`,animationDirection:`alternate`,"&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:`0s`},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:`0.4s`},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:`0.8s`},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:`1.2s`}},"&-progress":{position:`absolute`,left:`50%`,top:0,transform:`translateX(-50%)`},"&-circle":{strokeLinecap:`round`,transition:[`stroke-dashoffset`,`stroke-dasharray`,`stroke`,`stroke-width`,`opacity`].map(e=>`${e} ${r} ease`).join(`,`),fillOpacity:0,stroke:`currentcolor`},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},EO=e=>{let{componentCls:t}=e,[n]=Qa(e.antCls,`spin`);return{[t]:{"&-sm":{[n(`dot-holder-size`)]:e.dotSizeSM},"&-lg":{[n(`dot-holder-size`)]:e.dotSizeLG}}}},DO=Ya(`Spin`,e=>{let t=ci(e,{spinDotDefault:e.colorTextDescription});return[wO(t),TO(t),EO(t)]},e=>{let{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),OO=200,kO=[[30,.05],[70,.03],[96,.01]];function AO(e,t){let[n,r]=v.useState(0),i=v.useRef(null),a=t===`auto`;return v.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(e=>{let t=100-e;for(let n=0;n<kO.length;n+=1){let[r,i]=kO[n];if(e<=r)return e+t*i}return e})},OO)),()=>{i.current&&=(clearInterval(i.current),null)}),[a,e]),a?n:t}var jO;function MO(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}var NO=e=>{let{prefixCls:t,spinning:n=!0,delay:r=0,className:i,rootClassName:a,size:o,tip:s,description:c,wrapperClassName:l,style:u,children:d,fullscreen:f=!1,indicator:p,percent:m,classNames:h,styles:g,..._}=e,{getPrefixCls:y,direction:b,indicator:x,className:S,style:C,classNames:w,styles:T}=Qe(`spin`),E=y(`spin`,t),[D,O]=DO(E),[k,A]=v.useState(()=>n&&!MO(n,r)),j=AO(k,m);v.useEffect(()=>{if(n){let e=RT(r,()=>{A(!0)});return e(),()=>{e?.cancel?.()}}A(!1)},[r,n]);let M=jd(e=>o??e),N=c??s,P={...e,size:M,spinning:k,tip:N,description:N,fullscreen:f,children:d,percent:j},[F,I]=Oc([w,h],[T,g],{props:P}),L=p??x??jO,R=d!==void 0,z=R||f,B=v.createElement(v.Fragment,null,v.createElement(xO,{className:J(F.indicator),style:I.indicator,prefixCls:E,indicator:L,percent:j}),N&&v.createElement(`div`,{className:J(`${E}-description`,F.tip,F.description),style:{...I.tip,...I.description}},N));return v.createElement(`div`,{className:J(E,{[`${E}-sm`]:M===`small`,[`${E}-lg`]:M===`large`,[`${E}-spinning`]:k,[`${E}-rtl`]:b===`rtl`,[`${E}-fullscreen`]:f},a,F.root,f&&F.mask,z?l:[`${E}-section`,F.section],S,i,D,O),style:{...I.root,...z?{}:I.section,...f?I.mask:{},...C,...u},"aria-live":`polite`,"aria-busy":k,..._},k&&(z?v.createElement(`div`,{className:J(`${E}-section`,F.section),style:I.section},B):B),R&&v.createElement(`div`,{className:J(`${E}-container`,F.container),style:I.container},d))};NO.setDefaultIndicator=e=>{jO=e};var PO=v.createContext({});PO.Consumer;var FO=({prefixCls:e,className:t,avatar:n,title:r,description:i,...a})=>{let{getPrefixCls:o}=(0,v.useContext)(Ye),s=o(`list`,e),c=J(`${s}-item-meta`,t),l=v.createElement(`div`,{className:`${s}-item-meta-content`},r&&v.createElement(`h4`,{className:`${s}-item-meta-title`},r),i&&v.createElement(`div`,{className:`${s}-item-meta-description`},i));return v.createElement(`div`,{...a,className:c},n&&v.createElement(`div`,{className:`${s}-item-meta-avatar`},n),(r||i)&&l)},IO=v.forwardRef((e,t)=>{let{prefixCls:n,children:r,actions:i,extra:a,styles:o,className:s,classNames:c,colStyle:l,...u}=e,{grid:d,itemLayout:f}=(0,v.useContext)(PO),{getPrefixCls:p,list:m}=(0,v.useContext)(Ye),h=e=>J(m?.item?.classNames?.[e],c?.[e]),g=e=>({...m?.item?.styles?.[e],...o?.[e]}),_=()=>{let e=fe(r);return e.some(e=>typeof e==`string`)&&e.length>1},y=()=>f===`vertical`?!!a:!_(),b=p(`list`,n),x=i&&i.length>0&&v.createElement(`ul`,{className:J(`${b}-item-action`,h(`actions`)),key:`actions`,style:g(`actions`)},i.map((e,t)=>v.createElement(`li`,{key:`${b}-item-action-${t}`},e,t!==i.length-1&&v.createElement(`em`,{className:`${b}-item-action-split`})))),S=d?`div`:`li`,C=v.createElement(S,{...u,...d?{}:{ref:t},className:J(`${b}-item`,{[`${b}-item-no-flex`]:!y()},s)},f===`vertical`&&a?[v.createElement(`div`,{className:`${b}-item-main`,key:`content`},r,x),v.createElement(`div`,{className:J(`${b}-item-extra`,h(`extra`)),key:`extra`,style:g(`extra`)},a)]:[r,x,su(a,{key:`extra`})]);return d?v.createElement(VT,{ref:t,flex:1,style:l},C):C});IO.Meta=FO;var LO=e=>{let{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:a,itemPaddingLG:o,marginLG:s,borderRadiusLG:c}=e,l=Y(e.calc(c).sub(e.lineWidth).equal());return{[t]:{border:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header`]:{borderRadius:`${l} ${l} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${l} ${l}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${Y(i)} ${Y(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}}}},RO=e=>{let{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:a,margin:o}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:`wrap`,[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:`wrap-reverse`,[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${Y(o)}`}}}}}},zO=e=>{let{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:a,marginLG:o,padding:s,itemPadding:c,colorPrimary:l,itemPaddingSM:u,itemPaddingLG:d,paddingXS:f,margin:p,colorText:m,colorTextDescription:h,motionDurationSlow:g,lineWidth:_,headerBg:v,footerBg:y,emptyTextPadding:b,metaMarginBottom:x,avatarMarginRight:S,titleMarginBottom:C,descriptionFontSize:w}=e;return{[t]:{...Ba(e),position:`relative`,"--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:`none`},[`${t}-header`]:{background:v},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:a},[`${t}-pagination`]:{marginBlockStart:o,[`${n}-pagination-options`]:{textAlign:`start`}},[`${t}-spin`]:{minHeight:i,textAlign:`center`},[`${t}-items`]:{margin:0,padding:0,listStyle:`none`},[`${t}-item`]:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:c,color:m,[`${t}-item-meta`]:{display:`flex`,flex:1,alignItems:`flex-start`,maxWidth:`100%`,[`${t}-item-meta-avatar`]:{marginInlineEnd:S},[`${t}-item-meta-content`]:{flex:`1 0`,width:0,color:m},[`${t}-item-meta-title`]:{margin:`0 0 ${Y(e.marginXXS)} 0`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:m,transition:`all ${g}`,"&:hover":{color:l}}},[`${t}-item-meta-description`]:{color:h,fontSize:w,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:`0 0 auto`,marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:`none`,"& > li":{position:`relative`,display:`inline-block`,padding:`0 ${Y(f)}`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:`center`,"&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:`absolute`,insetBlockStart:`50%`,insetInlineEnd:0,width:_,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:`translateY(-50%)`,backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${Y(s)} 0`,color:h,fontSize:e.fontSizeSM,textAlign:`center`},[`${t}-empty-text`]:{padding:b,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:`center`},[`${t}-item-no-flex`]:{display:`block`}},[`${t}-grid ${n}-col > ${t}-item`]:{display:`block`,maxWidth:`100%`,marginBlockEnd:p,paddingBlock:0,borderBlockEnd:`none`},[`${t}-vertical ${t}-item`]:{alignItems:`initial`,[`${t}-item-main`]:{display:`block`,flex:1},[`${t}-item-extra`]:{marginInlineStart:o},[`${t}-item-meta`]:{marginBlockEnd:x,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:C,color:m,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:`auto`,"> li":{padding:`0 ${Y(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${Y(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:`none`}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${Y(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${Y(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${Y(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:`right`}}}}},BO=Ya(`List`,e=>{let t=ci(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[zO(t),LO(t),RO(t)]},e=>({contentWidth:220,itemPadding:`${Y(e.paddingContentVertical)} 0`,itemPaddingSM:`${Y(e.paddingContentVerticalSM)} ${Y(e.paddingContentHorizontal)}`,itemPaddingLG:`${Y(e.paddingContentVerticalLG)} ${Y(e.paddingContentHorizontalLG)}`,headerBg:`transparent`,footerBg:`transparent`,emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),{extraCssVarPrefixCls:({prefixCls:e})=>[`${e}-container`]}),VO=v.forwardRef((e,t)=>{let{pagination:n=!1,prefixCls:r,bordered:i=!1,split:a=!0,className:o,rootClassName:s,style:c,children:l,itemLayout:u,loadMore:d,grid:f,dataSource:p=[],size:m,header:h,footer:g,loading:_=!1,rowKey:y,renderItem:b,locale:x,...S}=e,C=cc(n)?n:{},[w,T]=v.useState(C.defaultCurrent||1),[E,D]=v.useState(C.defaultPageSize||10),{getPrefixCls:O,direction:k,className:A,style:j}=Qe(`list`),{renderEmpty:M}=v.useContext(Ye),N={current:1,total:0,position:`bottom`},P=e=>(t,r)=>{T(t),D(r),n&&n?.[e]?.(t,r)},F=P(`onChange`),I=P(`onShowSizeChange`),L=(e,t)=>{if(!b)return null;let n;return n=typeof y==`function`?y(e):y?e[y]:e.key,n||=`list-item-${t}`,v.createElement(v.Fragment,{key:n},b(e,t))},R=!!(d||n||g),z=O(`list`,r),[B,V]=BO(z),H=_;typeof H==`boolean`&&(H={spinning:H});let U=!!H?.spinning,W=jd(m),ee=``;switch(W){case`large`:ee=`lg`;break;case`small`:ee=`sm`;break;default:break}let te=J(z,{[`${z}-vertical`]:u===`vertical`,[`${z}-${ee}`]:ee,[`${z}-split`]:a,[`${z}-bordered`]:i,[`${z}-loading`]:U,[`${z}-grid`]:!!f,[`${z}-something-after-last-item`]:R,[`${z}-rtl`]:k===`rtl`},A,o,s,B,V),ne=`${z}-container`,re=ic(N,{total:p.length,current:w,pageSize:E},n||{}),ie=Math.ceil(re.total/re.pageSize);re.current=Math.min(re.current,ie);let ae=n&&v.createElement(`div`,{className:J(`${z}-pagination`)},v.createElement(fO,{align:`end`,...re,onChange:F,onShowSizeChange:I})),G=Be(p);n&&p.length>(re.current-1)*re.pageSize&&(G=Be(p).splice((re.current-1)*re.pageSize,re.pageSize));let K=Bb(Object.keys(f||{}).some(e=>Fb.includes(e))),oe=v.useMemo(()=>{for(let e=0;e<Fb.length;e+=1){let t=Fb[e];if(K[t])return t}},[K]),se=v.useMemo(()=>{if(!f)return;let e=oe&&f[oe]?f[oe]:f.column;if(e)return{width:`${100/e}%`,maxWidth:`${100/e}%`}},[JSON.stringify(f),oe]),ce=U&&v.createElement(`div`,{style:{minHeight:53}});if(G.length>0){let e=G.map(L);ce=f?v.createElement(WT,{className:J(ne,V),gutter:f.gutter},v.Children.map(e,e=>v.createElement(`div`,{key:e?.key,style:se},e))):v.createElement(`ul`,{className:J(`${z}-items`,ne,V)},e)}else !l&&!U&&(ce=v.createElement(`div`,{className:`${z}-empty-text`},x?.emptyText||M?.(`List`)||v.createElement(ib,{componentName:`List`})));let q=re.position,le=v.useMemo(()=>({grid:f,itemLayout:u}),[JSON.stringify(f),u]);return v.createElement(PO.Provider,{value:le},v.createElement(`div`,{ref:t,style:{...j,...c},className:te,...S},(q===`top`||q===`both`)&&ae,h&&v.createElement(`div`,{className:`${z}-header`},h),v.createElement(NO,{...H},ce,l),g&&v.createElement(`div`,{className:`${z}-footer`},g),d||(q===`bottom`||q===`both`)&&ae))});VO.Item=IO;var HO=(e,t={})=>!ac(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],UO=Y_(e=>{let{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:o,children:s,footer:c,classNames:l,styles:u,...d}=e,{getPrefixCls:f}=v.useContext(Ye),{className:p,style:m,classNames:h,styles:g}=Qe(`modal`),_=f(),y=t||f(`modal`),b=Xc(_),[x,S]=Jg(y,b),[C,w]=Oc([h,l],[g,u],{props:e}),T=`${y}-confirm`,E={};return E=a?{closable:i??!1,title:``,footer:``,children:v.createElement($g,{...e,prefixCls:y,confirmPrefixCls:T,rootPrefixCls:_,content:s})}:{closable:i??!0,title:o,footer:c!==null&&v.createElement(Ag,{...e}),children:s},v.createElement(Gp,{prefixCls:y,className:J(x,`${y}-pure-panel`,a&&T,a&&`${T}-${a}`,n,p,S,b,C.root),style:{...m,...w.root},...d,closeIcon:kg(y,r),closable:i,classNames:C,styles:w,...E})});function WO(e){return o_(s_(e))}var GO=Xg;GO.useModal=g_,GO.info=function(e){return o_(c_(e))},GO.success=function(e){return o_(l_(e))},GO.error=function(e){return o_(u_(e))},GO.warning=WO,GO.warn=WO,GO.confirm=function(e){return o_(d_(e))},GO.destroyAll=function(){for(;n_.length;){let e=n_.pop();e&&e()}},GO.config=f_,GO._InternalPanelDoNotUseOrYouWillBeFired=UO;var KO=Ya(`Popconfirm`,e=>{let{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:a,colorWarning:o,marginXXS:s,marginXS:c,fontSize:l,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:l},[`${t}-message`]:{marginBottom:c,display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${t}-message-icon ${n}`]:{color:o,fontSize:l,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:`normal`}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:`end`,whiteSpace:`nowrap`,button:{marginInlineStart:c}}}}},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1}),qO=e=>{let{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:o,okText:s,okType:c=`primary`,icon:l=v.createElement(Po,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:p,onPopupClick:m,classNames:h,styles:g}=e,{getPrefixCls:_}=v.useContext(Ye),[y]=tc(`Popconfirm`,Js.Popconfirm),b=Vb(i),x=Vb(a);return v.createElement(`div`,{className:`${t}-inner-content`,onClick:m},v.createElement(`div`,{className:`${t}-message`},l&&v.createElement(`span`,{className:`${t}-message-icon`},l),v.createElement(`div`,{className:`${t}-message-text`},b&&v.createElement(`div`,{className:J(`${t}-title`,h?.title),style:g?.title},b),x&&v.createElement(`div`,{className:J(`${t}-description`,h?.content),style:g?.content},x))),v.createElement(`div`,{className:`${t}-buttons`},u&&v.createElement(vp,{onClick:p,size:`small`,...r},o||y?.cancelText),v.createElement(yp,{buttonProps:{size:`small`,...Hd(c),...n},actionFn:f,close:d,prefixCls:_(`btn`),quitOnNullishReturnValue:!0,emitEvent:!0},s||y?.okText)))},JO=e=>{let{prefixCls:t,placement:n,className:r,style:i,...a}=e,{getPrefixCls:o}=v.useContext(Ye),s=o(`popconfirm`,t);return KO(s),v.createElement(wx,{placement:n,className:J(s,r),style:i,content:v.createElement(qO,{prefixCls:s,...a})})},YO=v.forwardRef((e,t)=>{let{prefixCls:n,placement:r=`top`,trigger:i,okType:a=`primary`,icon:o=v.createElement(Po,null),children:s,overlayClassName:c,onOpenChange:l,overlayStyle:u,styles:d,arrow:f,classNames:p,...m}=e,{getPrefixCls:h,className:g,style:_,classNames:y,styles:b,arrow:x,trigger:S}=Qe(`popconfirm`),[C,w]=T(e.defaultOpen??!1,e.open),E=ox(f,x),D=i||S||`click`,O=e=>{w(e),l?.(e)},k=()=>{O(!1)},A=t=>e.onConfirm?.call(void 0,t),j=t=>{O(!1),e.onCancel?.call(void 0,t)},M=t=>{let{disabled:n=!1}=e;n||O(t)},N=h(`popconfirm`,n),P={...e,placement:r,trigger:D,okType:a,overlayStyle:u,styles:d,classNames:p},[F,I]=Oc([y,p],[b,d],{props:P}),L=J(N,g,c,F.root);return KO(N),v.createElement(Tx,{arrow:E,...de(m,[`title`]),trigger:D,placement:r,onOpenChange:M,open:C,ref:t,classNames:{root:L,container:F.container,arrow:F.arrow},styles:{root:{..._,...I.root,...u},container:I.container,arrow:I.arrow},content:v.createElement(qO,{okType:a,icon:o,...e,prefixCls:N,close:k,onConfirm:A,onCancel:j,classNames:F,styles:I}),"data-popover-inject":!0},s)});YO._InternalPanelDoNotUseOrYouWillBeFired=JO;var XO={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z`}}]},name:`reload`,theme:`outlined`};function ZO(){return ZO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZO.apply(this,arguments)}var QO=v.forwardRef((e,t)=>v.createElement(Co,ZO({},e,{ref:t,icon:XO})));function $O(){return $O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$O.apply(this,arguments)}var ek=v.forwardRef(({prefixCls:e=`rc-switch`,className:t,checked:n,defaultChecked:r,disabled:i,loadingIcon:a,checkedChildren:o,unCheckedChildren:s,onClick:c,onChange:l,onKeyDown:u,styles:d,classNames:f,...p},m)=>{let[h,g]=T(r??!1,n);function _(e,t){let n=h;return i||(n=e,g(n),l?.(n,t)),n}function y(e){e.which===X.LEFT?_(!1,e):e.which===X.RIGHT&&_(!0,e),u?.(e)}function b(e){let t=_(!h,e);c?.(t,e)}let x=J(e,t,{[`${e}-checked`]:h,[`${e}-disabled`]:i});return v.createElement(`button`,$O({},p,{type:`button`,role:`switch`,"aria-checked":h,disabled:i,className:x,ref:m,onKeyDown:y,onClick:b}),a,v.createElement(`span`,{className:`${e}-inner`},v.createElement(`span`,{className:J(`${e}-inner-checked`,f?.content),style:d?.content},o),v.createElement(`span`,{className:J(`${e}-inner-unchecked`,f?.content),style:d?.content},s)))});ek.displayName=`Switch`;var tk=e=>{let{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:s,calc:c}=e,l=`${t}-inner`,u=Y(c(s).add(c(r).mul(2)).equal()),d=Y(c(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:Y(n),[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${l}-checked, ${l}-unchecked`]:{minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:c(c(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Y(c(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},nk=e=>{let{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:`relative`,top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:`top`},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},rk=e=>{let{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:a,calc:o}=e,s=`${t}-handle`;return{[t]:{[s]:{position:`absolute`,top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,...Sf(),"&::before":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:o(a).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:`""`,...Sf()}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${Y(o(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},ik=e=>{let{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o,switchDuration:s,calc:c}=e,l=`${t}-inner`,u=Y(c(o).add(c(r).mul(2)).equal()),d=Y(c(a).mul(2).equal());return{[t]:{[l]:{display:`block`,overflow:`hidden`,borderRadius:100,height:`100%`,paddingInlineStart:a,paddingInlineEnd:i,transition:[`padding-inline-start`,`padding-inline-end`].map(e=>`${e} ${s} ease-in-out`).join(`, `),...Sf(),[`${l}-checked, ${l}-unchecked`]:{display:`block`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:`none`,minHeight:n,transition:[`margin-inline-start`,`margin-inline-end`].map(e=>`${e} ${s} ease-in-out`).join(`, `),...Sf()},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(r).mul(2).equal(),marginInlineEnd:c(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(r).mul(-1).mul(2).equal(),marginInlineEnd:c(r).mul(2).equal()}}}}}},ak=e=>{let{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:{...Ba(e),position:`relative`,display:`inline-block`,boxSizing:`border-box`,minWidth:r,height:n,lineHeight:Y(n),verticalAlign:`middle`,background:e.colorTextQuaternary,border:`0`,borderRadius:100,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,userSelect:`none`,...Sf(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...Wa(e),[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:`not-allowed`,opacity:e.switchDisabledOpacity,"*":{boxShadow:`none`,cursor:`not-allowed`}},[`&${t}-rtl`]:{direction:`rtl`}}}},ok=Ya(`Switch`,e=>{let t=ci(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:`-30%`});return[ak(t),ik(t),rk(t),nk(t),tk(t)]},e=>{let{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,a=t*n,o=r/2,s=a-4,c=o-4;return{trackHeight:a,trackHeightSM:o,trackMinWidth:s*2+8,trackMinWidthSM:c*2+4,trackPadding:2,handleBg:i,handleSize:s,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Ai(`#00230b`).setA(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}}),sk=v.forwardRef((e,t)=>{let{prefixCls:n,size:r,disabled:i,loading:a,className:o,rootClassName:s,style:c,checked:l,value:u,defaultChecked:d,defaultValue:f,onChange:p,styles:m,classNames:h,...g}=e,[_,y]=T(d??f??!1,l??u),{getPrefixCls:b,direction:x,className:S,style:C,classNames:w,styles:E}=Qe(`switch`),D=v.useContext(fu),O=(i??D)||a,k=b(`switch`,n),[A,j]=ok(k),M=jd(r),N={...e,size:M,disabled:O},[P,F]=Oc([w,h],[E,m],{props:N}),I=v.createElement(`div`,{className:J(`${k}-handle`,P.indicator),style:F.indicator},a&&v.createElement(Xu,{className:`${k}-loading-icon`})),L=J(S,{[`${k}-small`]:M===`small`,[`${k}-loading`]:a,[`${k}-rtl`]:x===`rtl`},o,s,P.root,A,j),R={...F.root,...C,...c},z=(...e)=>{y(e[0]),p?.(...e)};return v.createElement(Ad,{component:`Switch`,disabled:O},v.createElement(ek,{...g,classNames:P,styles:F,checked:_,onChange:z,prefixCls:k,className:L,style:R,disabled:O,ref:t,loadingIcon:I}))});sk.__ANT_SWITCH=!0;var ck=e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:{...Ba(e),display:`inline-block`,height:`auto`,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:`nowrap`,backgroundColor:e.defaultBg,border:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:`start`,position:`relative`,[`&${i}-rtl`]:{direction:`rtl`},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:`transparent`,borderColor:`transparent`,cursor:`pointer`,[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:`not-allowed`,[`&:not(${i}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:`transparent`}},[`&${i}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${i}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:`flex`,flexWrap:`wrap`,gap:e.paddingXS}},"&-hidden":{display:`none`},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}},[`&${e.componentCls}-solid`]:{borderColor:`transparent`,color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${i}-default`]:{color:e.solidTextColor}},[`${i}-filled`]:{borderColor:`transparent`,backgroundColor:e.tagBorderlessBg},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,backgroundColor:e.colorBgContainerDisabled,a:{cursor:`not-allowed`,pointerEvents:`none`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${i}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${i}-solid, &${i}-filled`]:{color:e.colorTextDisabled,[`${i}-close-icon`]:{color:e.colorTextDisabled}},[`${i}-close-icon`]:{cursor:`not-allowed`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},lk=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return ci(e,{tagFontSize:i,tagLineHeight:Y(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},uk=e=>{let t=Xf(new Wf(e.colorBgSolid),`#fff`)?`#000`:`#fff`;return{defaultBg:new Ai(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},dk=Ya(`Tag`,e=>ck(lk(e)),uk),fk=v.forwardRef((e,t)=>{let{prefixCls:n,style:r,className:i,checked:a,children:o,icon:s,onChange:c,onClick:l,disabled:u,...d}=e,{getPrefixCls:f,tag:p}=v.useContext(Ye),m=v.useContext(fu),h=u??m,g=e=>{h||(c?.(!a),l?.(e))},_=f(`tag`,n),[y,b]=dk(_),x=J(_,`${_}-checkable`,{[`${_}-checkable-checked`]:a,[`${_}-checkable-disabled`]:h},p?.className,i,y,b);return v.createElement(`span`,{...d,ref:t,style:{...r,...p?.style},className:x,onClick:g},s,v.createElement(`span`,null,o))}),pk=v.forwardRef((e,t)=>{let{id:n,prefixCls:r,rootClassName:i,className:a,style:o,classNames:s,styles:c,disabled:l,options:u,value:d,defaultValue:f,onChange:p,multiple:m,...h}=e,{getPrefixCls:g,direction:_,className:y,style:b,classNames:x,styles:S}=Qe(`tag`),C=g(`tag`,r),w=`${C}-checkable-group`,[E,D]=dk(C,Xc(C)),[O,k]=Oc([x,s],[S,c],{props:e}),A=(0,v.useMemo)(()=>Array.isArray(u)?u.map(e=>cc(e)?e:{value:e,label:e}):[],[u]),[j,M]=T(f,d),N=(e,t)=>{let n=null;if(m){let r=j||[];n=e?[].concat(Be(r),[t.value]):r.filter(e=>e!==t.value)}else n=e?t.value:null;M(n),p?.(n)},P=v.useRef(null);(0,v.useImperativeHandle)(t,()=>({nativeElement:P.current}));let F=Ps(h,{aria:!0,data:!0});return v.createElement(`div`,{...F,className:J(w,y,i,{[`${w}-disabled`]:l,[`${w}-rtl`]:_===`rtl`},E,D,a,O.root),style:{...b,...k.root,...o},id:n,ref:P},A.map(e=>v.createElement(fk,{key:e.value,className:J(`${w}-item`,O.item),style:k.item,checked:m?(j||[]).includes(e.value):j===e.value,onChange:t=>N(t,e),disabled:l},e.label)))});function mk(e,t){let{color:n,variant:r,bordered:i}=e;return v.useMemo(()=>{let e=n?.endsWith(`-inverse`),a;a=r||(e?`solid`:i===!1?`filled`:t||`filled`);let o=e?n?.replace(`-inverse`,``):n,s=px(n),c=mx(n),l={};if(!s&&!c&&o)if(a===`solid`)l.backgroundColor=n;else{let e=new Ai(o).toHsl();e.l=.95,l.backgroundColor=new Ai(e).toHexString(),l.color=n,a===`outlined`&&(l.borderColor=n)}return[a,o,s,c,l]},[n,r,i,t])}var hk=e=>$a(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:a,borderColor:a,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:n}}})),gk=Za([`Tag`,`preset`],e=>hk(lk(e)),uk);function _k(e){return typeof e==`string`?e.charAt(0).toUpperCase()+e.slice(1):e}var vk=(e,t,n)=>{let r=_k(n);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},yk=Za([`Tag`,`status`],e=>{let t=lk(e);return[vk(t,`success`,`Success`),vk(t,`processing`,`Info`),vk(t,`error`,`Error`),vk(t,`warning`,`Warning`)]},uk),bk=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:c,variant:l,onClose:u,bordered:d,disabled:f,href:p,target:m,styles:h,classNames:g,..._}=e,{getPrefixCls:y,direction:b,className:x,variant:S,style:C,classNames:w,styles:T}=Qe(`tag`),[E,D,O,k,A]=mk(e,S),j=O||k,M=v.useContext(fu),N=f??M,{tag:P}=v.useContext(Ye),[F,I]=v.useState(!0),L=de(_,[`closeIcon`,`closable`]),R={...e,color:D,variant:E,disabled:N},[z,B]=Oc([w,g],[T,h],{props:R}),V=v.useMemo(()=>{let e={...B.root,...C,...a};return N||(e={...A,...e}),e},[B.root,C,a,A,N]),H=y(`tag`,n),[U,W]=dk(H),ee=J(H,x,z.root,`${H}-${E}`,{[`${H}-${D}`]:j,[`${H}-hidden`]:!F,[`${H}-rtl`]:b===`rtl`,[`${H}-disabled`]:N},r,i,U,W),te=e=>{N||(e.stopPropagation(),u?.(e),!e.defaultPrevented&&I(!1))},[,ne]=vc(fc(e),fc(P),{closable:!1,closeIconRender:e=>ou(e,v.createElement(`span`,{className:`${H}-close-icon`,onClick:te},e),e=>({onClick:t=>{e?.onClick?.(t),te(t)},className:J(e?.className,`${H}-close-icon`)}))}),re=typeof _.onClick==`function`||o&&o.type===`a`,ie=su(s,{className:J(v.isValidElement(s)?s.props?.className:void 0,z.icon),style:B.icon}),ae=ie?v.createElement(v.Fragment,null,ie,o&&v.createElement(`span`,{className:z.content,style:B.content},o)):o,G=p?`a`:`span`,K=v.createElement(G,{...L,ref:t,className:ee,style:V,href:N?void 0:p,target:m,onClick:N?void 0:L.onClick,...p&&N?{"aria-disabled":!0}:{}},ae,ne,O&&v.createElement(gk,{key:`preset`,prefixCls:H}),k&&v.createElement(yk,{key:`status`,prefixCls:H}));return re?v.createElement(Ad,{component:`Tag`},K):K});bk.CheckableTag=fk,bk.CheckableTagGroup=pk;var xk={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z`}}]},name:`delete`,theme:`outlined`};function Sk(){return Sk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sk.apply(this,arguments)}var Ck=v.forwardRef((e,t)=>v.createElement(Co,Sk({},e,{ref:t,icon:xk}))),wk={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z`}}]},name:`edit`,theme:`outlined`};function Tk(){return Tk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tk.apply(this,arguments)}var Ek=v.forwardRef((e,t)=>v.createElement(Co,Tk({},e,{ref:t,icon:wk}))),Dk={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z`}}]},name:`enter`,theme:`outlined`};function Ok(){return Ok=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ok.apply(this,arguments)}var kk=v.forwardRef((e,t)=>v.createElement(Co,Ok({},e,{ref:t,icon:Dk}))),Ak=(e,t,n,r)=>{let{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},jk=e=>{let t=[1,2,3,4,5],n={};return t.forEach(t=>{n[`
249
249
  h${t}&,
250
250
  div&-h${t},
251
251
  div&-h${t} > textarea,
252
252
  h${t}
253
- `]=sk(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),n},lk=e=>{let{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...Ja(e),userSelect:`text`,[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:`none`,[`${t}-actions`]:{pointerEvents:`auto`}}}}}},uk=e=>({code:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.2em 0.1em`,fontSize:`85%`,fontFamily:e.fontFamilyCode,background:`rgba(150, 150, 150, 0.1)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3},kbd:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.15em 0.1em`,fontSize:`90%`,fontFamily:e.fontFamilyCode,background:`rgba(150, 150, 150, 0.06)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:qi[2]},"u, ins":{textDecoration:`underline`,textDecorationSkipInk:`auto`},"s, del":{textDecoration:`line-through`},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:`0 1em`,padding:0,li:{marginInline:`20px 0`,marginBlock:0,paddingInline:`4px 0`,paddingBlock:0}},ul:{listStyleType:`circle`,ul:{listStyleType:`disc`}},ol:{listStyleType:`decimal`},"pre, blockquote":{margin:`1em 0`},pre:{padding:`0.4em 0.6em`,whiteSpace:`pre-wrap`,wordWrap:`break-word`,background:`rgba(150, 150, 150, 0.1)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:`inline`,margin:0,padding:0,fontSize:`inherit`,fontFamily:`inherit`,background:`transparent`,border:0}},blockquote:{paddingInline:`0.6em 0`,paddingBlock:0,borderInlineStart:`4px solid rgba(100, 100, 100, 0.2)`,opacity:.85}}),dk=e=>{let{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:`relative`,"div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:`absolute`,insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:`normal`,fontSize:e.fontSize,fontStyle:`normal`,pointerEvents:`none`},textarea:{margin:`0!important`,MozTransition:`none`,height:`1em`}}}},fk=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),pk=()=>({"a&-ellipsis, span&-ellipsis":{display:`inline-block`,maxWidth:`100%`},"&-ellipsis-single-line":{whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,"a&, span&":{verticalAlign:`bottom`},"> code":{paddingBlock:0,maxWidth:`calc(100% - 1.2em)`,display:`inline-block`,overflow:`hidden`,textOverflow:`ellipsis`,verticalAlign:`bottom`,boxSizing:`content-box`}},"&-ellipsis-multiple-line":{display:`-webkit-box`,overflow:`hidden`,WebkitLineClamp:3,WebkitBoxOrient:`vertical`}}),mk=Ya(`Typography`,e=>{let{componentCls:t,titleMarginTop:n}=e;return{[t]:{color:e.colorText,wordBreak:`break-word`,lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,userSelect:`none`},"div&, p":{marginBottom:`1em`},...ck(e),[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:n},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:n}},...uk(e),...lk(e),[`${t}-actions`]:{display:`inline`},[`
253
+ `]=Ak(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),n},Mk=e=>{let{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...Ja(e),userSelect:`text`,[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:`none`,[`${t}-actions`]:{pointerEvents:`auto`}}}}}},Nk=e=>({code:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.2em 0.1em`,fontSize:`85%`,fontFamily:e.fontFamilyCode,background:`rgba(150, 150, 150, 0.1)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3},kbd:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.15em 0.1em`,fontSize:`90%`,fontFamily:e.fontFamilyCode,background:`rgba(150, 150, 150, 0.06)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:qi[2]},"u, ins":{textDecoration:`underline`,textDecorationSkipInk:`auto`},"s, del":{textDecoration:`line-through`},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:`0 1em`,padding:0,li:{marginInline:`20px 0`,marginBlock:0,paddingInline:`4px 0`,paddingBlock:0}},ul:{listStyleType:`circle`,ul:{listStyleType:`disc`}},ol:{listStyleType:`decimal`},"pre, blockquote":{margin:`1em 0`},pre:{padding:`0.4em 0.6em`,whiteSpace:`pre-wrap`,wordWrap:`break-word`,background:`rgba(150, 150, 150, 0.1)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:`inline`,margin:0,padding:0,fontSize:`inherit`,fontFamily:`inherit`,background:`transparent`,border:0}},blockquote:{paddingInline:`0.6em 0`,paddingBlock:0,borderInlineStart:`4px solid rgba(100, 100, 100, 0.2)`,opacity:.85}}),Pk=e=>{let{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:`relative`,"div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:`absolute`,insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:`normal`,fontSize:e.fontSize,fontStyle:`normal`,pointerEvents:`none`},textarea:{margin:`0!important`,MozTransition:`none`,height:`1em`}}}},Fk=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Ik=()=>({"a&-ellipsis, span&-ellipsis":{display:`inline-block`,maxWidth:`100%`},"&-ellipsis-single-line":{whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,"a&, span&":{verticalAlign:`bottom`},"> code":{paddingBlock:0,maxWidth:`calc(100% - 1.2em)`,display:`inline-block`,overflow:`hidden`,textOverflow:`ellipsis`,verticalAlign:`bottom`,boxSizing:`content-box`}},"&-ellipsis-multiple-line":{display:`-webkit-box`,overflow:`hidden`,WebkitLineClamp:3,WebkitBoxOrient:`vertical`}}),Lk=Ya(`Typography`,e=>{let{componentCls:t,titleMarginTop:n}=e;return{[t]:{color:e.colorText,wordBreak:`break-word`,lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,userSelect:`none`},"div&, p":{marginBottom:`1em`},...jk(e),[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:n},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:n}},...Nk(e),...Mk(e),[`${t}-actions`]:{display:`inline`},[`
254
254
  ${t}-expand,
255
255
  ${t}-collapse,
256
256
  ${t}-edit,
257
257
  ${t}-copy
258
- `]:{...Ja(e),marginInlineStart:e.marginXXS},...dk(e),...fk(e),...pk(),"&-rtl":{direction:`rtl`}}}},()=>({titleMarginTop:`1.2em`,titleMarginBottom:`0.5em`})),hk=e=>{let{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:o,autoSize:s=!0,value:c,onSave:l,onCancel:u,onEnd:d,component:f,enterIcon:p=v.createElement(ok,null)}=e,m=v.useRef(null),h=v.useRef(!1),g=v.useRef(null),[_,y]=v.useState(c);v.useEffect(()=>{y(c)},[c]),v.useEffect(()=>{if(m.current?.resizableTextArea){let{textArea:e}=m.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let b=({target:e})=>{y(e.value.replace(/[\n\r]/g,``))},x=()=>{h.current=!0},S=()=>{h.current=!1},C=({keyCode:e})=>{h.current||(g.current=e)},w=()=>{l(_.trim())},T=({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:i})=>{g.current!==e||h.current||t||n||r||i||(e===X.ENTER?(w(),d?.()):e===X.ESC&&u())},E=()=>{w()},[D,O]=mk(t),k=J(t,`${t}-edit-content`,{[`${t}-rtl`]:a===`rtl`,[`${t}-${f}`]:!!f},r,D,O);return v.createElement(`div`,{className:k,style:i},v.createElement(dD,{ref:m,maxLength:o,value:_,onChange:b,onKeyDown:C,onKeyUp:T,onCompositionStart:x,onCompositionEnd:S,onBlur:E,"aria-label":n,rows:1,autoSize:s}),p===null?null:su(p,{className:`${t}-edit-content-confirm`}))},gk=(e,t)=>{let n=!1,r=r=>{r.stopPropagation(),r.preventDefault(),r.clipboardData?.clearData(),r.clipboardData?.setData(`text/plain`,e),t&&r.clipboardData?.setData(`text/html`,e),n=!0};try{return document.addEventListener(`copy`,r,{capture:!0}),document.execCommand(`copy`),n}catch{return!1}finally{document.removeEventListener(`copy`,r,{capture:!0})}},_k=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:`text/html`}),"text/plain":new Blob([e],{type:`text/plain`})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function vk(e,t){if(typeof e!=`string`)return!1;let n=t?.format===`text/html`;return!!(await _k(e,n)||gk(e,n))}var yk=({copyConfig:e,children:t})=>{let[n,r]=v.useState(!1),[i,a]=v.useState(!1),o=v.useRef(null),s=()=>{o.current&&clearTimeout(o.current)},c={};return e.format&&(c.format=e.format),v.useEffect(()=>s,[]),{copied:n,copyLoading:i,onClick:y(async n=>{n?.preventDefault(),n?.stopPropagation(),a(!0);try{await vk((typeof e.text==`function`?await e.text():e.text)||OO(t,{skipEmpty:!0}).join(``)||``,c),a(!1),r(!0),s(),o.current=setTimeout(()=>{r(!1)},3e3),e.onCopy?.(n)}catch(e){throw a(!1),e}})}};function bk(e,t){return v.useMemo(()=>{let n=!!e;return[n,{...t,...n&&typeof e==`object`?e:null}]},[e])}var xk=e=>{let t=(0,v.useRef)(void 0);return(0,v.useEffect)(()=>{t.current=e}),t.current},Sk=(e,t,n)=>(0,v.useMemo)(()=>e===!0?{title:t??n}:(0,v.isValidElement)(e)?{title:e}:cc(e)?{title:t??n,...e}:{title:e},[e,t,n]),Ck=v.forwardRef((e,t)=>{let{prefixCls:n,component:r=`article`,className:i,rootClassName:a,children:o,direction:s,style:c,...l}=e,{getPrefixCls:u,direction:d,className:f,style:p}=Qe(`typography`),m=s??d,h=u(`typography`,n),[g,_]=mk(h),y=J(h,f,{[`${h}-rtl`]:m===`rtl`},i,a,g,_),b={...p,...c};return v.createElement(r,{className:y,style:b,ref:t,...l},o)}),wk={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z`}}]},name:`copy`,theme:`outlined`};function Tk(){return Tk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tk.apply(this,arguments)}var Ek=v.forwardRef((e,t)=>v.createElement(Co,Tk({},e,{ref:t,icon:wk}))),Dk=e=>e===!1?[!1,!1]:OO(e);function Ok(e,t,n){return e===!0||e===void 0?t:e||n&&t}function kk(e){let t=document.createElement(`em`);e.appendChild(t);let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}var Ak=e=>[`string`,`number`].includes(typeof e),jk=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:c,loading:l}=e,u=Dk(a),d=Dk(o),{copied:f,copy:p}=r??{},m=n?f:p,h=Ok(u[+!!n],m),g=typeof h==`string`?h:m;return v.createElement(_x,{title:h},v.createElement(`button`,{type:`button`,className:J(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:c,"aria-label":g,tabIndex:s},n?Ok(d[1],v.createElement(Sb,null),!0):Ok(d[0],l?v.createElement(Xu,null):v.createElement(Ek,null),!0)))},Mk=v.forwardRef(({style:e,children:t},n)=>{let r=v.useRef(null);return v.useImperativeHandle(n,()=>({isExceed:()=>{let e=r.current;return e.scrollHeight>e.clientHeight},getHeight:()=>r.current.clientHeight})),v.createElement(`span`,{"aria-hidden":!0,ref:r,style:{position:`fixed`,display:`block`,left:0,top:0,pointerEvents:`none`,backgroundColor:`rgba(255, 0, 0, 0.65)`,...e}},t)}),Nk=e=>e.reduce((e,t)=>e+(Ak(t)?String(t).length:1),0);function Pk(e,t){let n=0,r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;let a=e[i],o=Ak(a)?String(a).length:1,s=n+o;if(s>t){let e=t-n;return r.push(String(a).slice(0,e)),r}r.push(a),n=s}return e}var Fk=0,Ik=1,Lk=2,Rk=3,zk=4,Bk={display:`-webkit-box`,overflow:`hidden`,WebkitBoxOrient:`vertical`};function Vk(e){let{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,miscDeps:s,onEllipsis:c}=e,l=v.useMemo(()=>fe(r),[r]),u=v.useMemo(()=>Nk(l),[r]),d=v.useMemo(()=>i(l,!1),[r]),[f,p]=v.useState(null),m=v.useRef(null),h=v.useRef(null),g=v.useRef(null),_=v.useRef(null),y=v.useRef(null),[b,x]=v.useState(!1),[C,w]=v.useState(Fk),[T,E]=v.useState(0),[D,O]=v.useState(null);S(()=>{w(t&&n&&u?Ik:Fk)},[n,r,a,t,l]),S(()=>{if(C===Ik)w(Lk),O(h.current&&getComputedStyle(h.current).whiteSpace);else if(C===Lk){let e=!!g.current?.isExceed();w(e?Rk:zk),p(e?[0,u]:null),x(e);let t=g.current?.getHeight()||0,n=a===1?0:_.current?.getHeight()||0,r=y.current?.getHeight()||0;E(Math.max(t,n+r)+1),c(e)}},[C]);let k=f?Math.ceil((f[0]+f[1])/2):0;S(()=>{let[e,t]=f||[0,0];if(e!==t){let n=(m.current?.getHeight()||0)>T,r=k;t-e===1&&(r=n?e:t),p(n?[e,r]:[r,t])}},[f,k]);let A=v.useMemo(()=>{if(!t)return i(l,!1);if(C!==Rk||!f||f[0]!==f[1]){let e=i(l,!1);return[zk,Fk].includes(C)?e:v.createElement(`span`,{style:{...Bk,WebkitLineClamp:a}},e)}return i(o?l:Pk(l,f[0]),b)},[o,C,f,l].concat(Be(s))),j={width:n,margin:0,padding:0,whiteSpace:D===`nowrap`?`normal`:`inherit`};return v.createElement(v.Fragment,null,A,C===Lk&&v.createElement(v.Fragment,null,v.createElement(Mk,{style:{...j,...Bk,WebkitLineClamp:a},ref:g},d),v.createElement(Mk,{style:{...j,...Bk,WebkitLineClamp:a-1},ref:_},d),v.createElement(Mk,{style:{...j,...Bk,WebkitLineClamp:1},ref:y},i([],!0))),C===Rk&&f&&f[0]!==f[1]&&v.createElement(Mk,{style:{...j,top:400},ref:m},i(Pk(l,k),!0)),C===Ik&&v.createElement(`span`,{style:{whiteSpace:`inherit`},ref:h}))}var Hk=({enableEllipsis:e,isEllipsis:t,open:n,children:r,tooltipProps:i})=>{if(!i?.title||!e)return r;let a=n&&t;return v.createElement(_x,{open:a,...i},r)};function Uk({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:a,italic:o},s){let c=s;function l(e,t){t&&(c=v.createElement(e,{},c))}return l(`strong`,i),l(`u`,n),l(`del`,r),l(`code`,t),l(`mark`,e),l(`kbd`,a),l(`i`,o),c}var Wk=`...`,Gk=[`delete`,`mark`,`code`,`underline`,`strong`,`keyboard`,`italic`],Kk=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,type:a,disabled:o,children:s,ellipsis:c,editable:l,copyable:u,component:d,title:f,onMouseEnter:p,onMouseLeave:m,...h}=e,{getPrefixCls:g,direction:_}=v.useContext(Ye),[y]=tc(`Text`),b=v.useRef(null),x=v.useRef(null),C=g(`typography`,n),w=de(h,Gk),[E,D]=bk(l),[O,k]=T(!1,D.editing),{triggerType:A=[`icon`]}=D,j=e=>{e&&D.onStart?.(),k(e)},M=xk(O);S(()=>{!O&&M&&x.current?.focus()},[O]);let N=e=>{e?.preventDefault(),j(!0)},P=e=>{D.onChange?.(e),j(!1)},F=()=>{D.onCancel?.(),j(!1)},[L,R]=bk(u),{copied:z,copyLoading:B,onClick:V}=yk({copyConfig:R,children:s}),[H,U]=v.useState(!1),[W,ee]=v.useState(!1),[te,ne]=v.useState(!1),[re,ie]=v.useState(!1),[ae,G]=v.useState(!0),[K,oe]=bk(c,{expandable:!1,symbol:e=>e?y?.collapse:y?.expand}),[se,ce]=T(oe.defaultExpanded||!1,oe.expanded),q=K&&(!se||oe.expandable===`collapsible`),{rows:le=1}=oe,ue=v.useMemo(()=>q&&(oe.suffix!==void 0||oe.onEllipsis||oe.expandable||E||L),[q,oe,E,L]);S(()=>{K&&!ue&&(U(Gh(`webkitLineClamp`)),ee(Gh(`textOverflow`)))},[ue,K]);let[pe,me]=v.useState(q),he=v.useMemo(()=>ue?!1:le===1?W:H,[ue,W,H]);S(()=>{me(he&&q)},[he,q]);let ge=Sk(oe.tooltip,D.text,s),_e=pe&&!!ge.title,ve=q&&(pe?_e&&re:te),ye=q&&le===1&&pe,be=q&&le>1&&pe,xe=(e,t)=>{ce(t.expanded),oe.onExpand?.(e,t)},[Se,Ce]=v.useState(0),[we,Te]=v.useState(!1),[Ee,De]=v.useState(!1),Oe=({offsetWidth:e})=>{Ce(e)},ke=e=>{ne(e),te!==e&&oe.onEllipsis?.(e)};v.useEffect(()=>{let e=b.current;if(K&&_e&&e){let t=kk(e);re!==t&&ie(t)}},[K,_e,s,be,ae,Se]),v.useEffect(()=>{let e=b.current;if(typeof IntersectionObserver>`u`||!e||!_e||!q)return;let t=new IntersectionObserver(()=>{G(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[_e,q]);let Ae=v.useMemo(()=>{if(!(!K||pe))return[D.text,s,f,ge.title].find(Ak)},[K,pe,f,ge.title,ve]);if(O)return v.createElement(hk,{value:D.text??(typeof s==`string`?s:``),onSave:P,onCancel:F,onEnd:D.onEnd,prefixCls:C,className:r,style:i,direction:_,component:d,maxLength:D.maxLength,autoSize:D.autoSize,enterIcon:D.enterIcon});let je=()=>{let{expandable:e,symbol:t}=oe;return e?v.createElement(`button`,{type:`button`,key:`expand`,className:`${C}-${se?`collapse`:`expand`}`,onClick:e=>xe(e,{expanded:!se}),"aria-label":se?y.collapse:y?.expand},typeof t==`function`?t(se):t):null},Me=()=>{if(!E)return;let{icon:e,tooltip:t,tabIndex:n}=D,r=fe(t)[0]||y?.edit,i=typeof r==`string`?r:``;return A.includes(`icon`)?v.createElement(_x,{key:`edit`,title:t===!1?``:r},v.createElement(`button`,{type:`button`,ref:x,className:`${C}-edit`,onClick:N,"aria-label":i,tabIndex:n},e||v.createElement(rk,{role:`button`}))):null},Pe=()=>L?v.createElement(jk,{key:`copy`,...R,prefixCls:C,copied:z,locale:y,onCopy:V,loading:B,iconOnly:!ac(s)}):null,Fe=e=>{let t=e&&je(),n=Me(),r=Pe();return!t&&!n&&!r?null:v.createElement(`span`,{key:`operations`,className:`${C}-actions`,onMouseEnter:()=>Te(!0),onMouseLeave:()=>Te(!1)},t,n,r)},Ie=e=>[e&&!se&&v.createElement(`span`,{"aria-hidden":!0,key:`ellipsis`},Wk),oe.suffix,Fe(e)];return v.createElement(Ne,{onResize:Oe,disabled:!q},c=>v.createElement(Hk,{tooltipProps:ge,enableEllipsis:q,isEllipsis:ve,open:Ee&&!we},v.createElement(Ck,{onMouseEnter:e=>{De(!0),p?.(e)},onMouseLeave:e=>{De(!1),m?.(e)},className:J({[`${C}-${a}`]:a,[`${C}-disabled`]:o,[`${C}-ellipsis`]:K,[`${C}-ellipsis-single-line`]:ye,[`${C}-ellipsis-multiple-line`]:be,[`${C}-link`]:d===`a`},r),prefixCls:n,style:{...i,WebkitLineClamp:be?le:void 0},component:d,ref:I(c,b,t),direction:_,onClick:A.includes(`text`)?N:void 0,"aria-label":Ae?.toString(),title:f,...w},v.createElement(Vk,{enableMeasure:q&&!pe,text:s,rows:le,width:Se,onEllipsis:ke,expanded:se,miscDeps:[z,se,B,E,L,y].concat(Be(Gk.map(t=>e[t])))},(t,n)=>Uk(e,v.createElement(v.Fragment,null,t.length>0&&n&&!se&&Ae?v.createElement(`span`,{key:`show-content`,"aria-hidden":!0},t):t,Ie(n)))))))}),qk=v.forwardRef((e,t)=>{let{ellipsis:n,rel:r,children:i,navigate:a,...o}=e,s={...o,rel:r===void 0&&o.target===`_blank`?`noopener noreferrer`:r};return v.createElement(Kk,{...s,ref:t,ellipsis:!!n,component:`a`},i)}),Jk=v.forwardRef((e,t)=>{let{children:n,...r}=e;return v.createElement(Kk,{ref:t,...r,component:`div`},n)}),Yk=v.forwardRef((e,t)=>{let{ellipsis:n,children:r,...i}=e,a=v.useMemo(()=>cc(n)?de(n,[`expandable`,`rows`]):n,[n]);return v.createElement(Kk,{ref:t,...i,ellipsis:a,component:`span`},r)}),Xk=[1,2,3,4,5],Zk=v.forwardRef((e,t)=>{let{level:n=1,children:r,...i}=e,a=Xk.includes(n)?`h${n}`:`h1`;return v.createElement(Kk,{ref:t,...i,component:a},r)}),Qk=Ck;Qk.Text=Yk,Qk.Link=qk,Qk.Title=Zk,Qk.Paragraph=Jk;var $k={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`defs`,attrs:{},children:[{tag:`style`,attrs:{}}]},{tag:`path`,attrs:{d:`M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40zm-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z`}},{tag:`path`,attrs:{d:`M894 345a343.92 343.92 0 00-189-130v.1c-17.1-19-36.4-36.5-58-52.1-163.7-119-393.5-82.7-513 81-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4a31.95 31.95 0 0040.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6 17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408zM323 735l-12-5-99 31-1-104-8-9c-84.6-103.2-90.2-251.9-11-361 96.4-132.2 281.2-161.4 413-66 132.2 96.1 161.5 280.6 66 412-80.1 109.9-223.5 150.5-348 102zm505-17l-8 10 1 104-98-33-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1A367.31 367.31 0 00729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62 72.6 99.6 68.5 235.2-8 330z`}},{tag:`path`,attrs:{d:`M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z`}}]},name:`comment`,theme:`outlined`};function eA(){return eA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eA.apply(this,arguments)}var tA=v.forwardRef((e,t)=>v.createElement(Co,eA({},e,{ref:t,icon:$k}))),nA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z`}}]},name:`message`,theme:`outlined`};function rA(){return rA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rA.apply(this,arguments)}var iA=v.forwardRef((e,t)=>v.createElement(Co,rA({},e,{ref:t,icon:nA}))),aA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`defs`,attrs:{},children:[{tag:`style`,attrs:{}}]},{tag:`path`,attrs:{d:`M640.6 429.8h257.1c7.9 0 14.3-6.4 14.3-14.3V158.3c0-7.9-6.4-14.3-14.3-14.3H640.6c-7.9 0-14.3 6.4-14.3 14.3v92.9H490.6c-3.9 0-7.1 3.2-7.1 7.1v221.5h-85.7v-96.5c0-7.9-6.4-14.3-14.3-14.3H126.3c-7.9 0-14.3 6.4-14.3 14.3v257.2c0 7.9 6.4 14.3 14.3 14.3h257.1c7.9 0 14.3-6.4 14.3-14.3V544h85.7v221.5c0 3.9 3.2 7.1 7.1 7.1h135.7v92.9c0 7.9 6.4 14.3 14.3 14.3h257.1c7.9 0 14.3-6.4 14.3-14.3v-257c0-7.9-6.4-14.3-14.3-14.3h-257c-7.9 0-14.3 6.4-14.3 14.3v100h-78.6v-393h78.6v100c0 7.9 6.4 14.3 14.3 14.3zm53.5-217.9h150V362h-150V211.9zM329.9 587h-150V437h150v150zm364.2 75.1h150v150.1h-150V662.1z`}}]},name:`partition`,theme:`outlined`};function oA(){return oA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oA.apply(this,arguments)}var sA=v.forwardRef((e,t)=>v.createElement(Co,oA({},e,{ref:t,icon:aA}))),cA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z`}}]},name:`redo`,theme:`outlined`};function lA(){return lA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lA.apply(this,arguments)}var uA=v.forwardRef((e,t)=>v.createElement(Co,lA({},e,{ref:t,icon:cA}))),Z={shell:`_shell_wg7p7_1`,sidebar:`_sidebar_wg7p7_23`,threadRail:`_threadRail_wg7p7_24`,reviewPane:`_reviewPane_wg7p7_38`,brand:`_brand_wg7p7_46`,brandMark:`_brandMark_wg7p7_52`,brandCopy:`_brandCopy_wg7p7_63`,repoName:`_repoName_wg7p7_68`,productName:`_productName_wg7p7_78`,sideCard:`_sideCard_wg7p7_82`,fileRailHeader:`_fileRailHeader_wg7p7_91`,threadRailHeader:`_threadRailHeader_wg7p7_92`,topToolbar:`_topToolbar_wg7p7_93`,threadRailTitle:`_threadRailTitle_wg7p7_101`,fileList:`_fileList_wg7p7_108`,fileItem:`_fileItem_wg7p7_114`,fileItemActive:`_fileItemActive_wg7p7_124`,fileMeta:`_fileMeta_wg7p7_128`,fileName:`_fileName_wg7p7_138`,fileStats:`_fileStats_wg7p7_147`,fileStatAdd:`_fileStatAdd_wg7p7_150`,fileStatDelete:`_fileStatDelete_wg7p7_154`,viewModeSwitcher:`_viewModeSwitcher_wg7p7_163`,reviewSurface:`_reviewSurface_wg7p7_169`,fileHeader:`_fileHeader_wg7p7_180`,headerTop:`_headerTop_wg7p7_188`,headerIntro:`_headerIntro_wg7p7_194`,eyebrow:`_eyebrow_wg7p7_197`,headerActions:`_headerActions_wg7p7_203`,threadActions:`_threadActions_wg7p7_204`,threadCount:`_threadCount_wg7p7_210`,fileLevelInlineThreads:`_fileLevelInlineThreads_wg7p7_213`,inlineThread:`_inlineThread_wg7p7_218`,inlineThreadHeader:`_inlineThreadHeader_wg7p7_223`,inlineThreadBody:`_inlineThreadBody_wg7p7_226`,inlineThreadActions:`_inlineThreadActions_wg7p7_230`,diffCard:`_diffCard_wg7p7_233`,markdownShell:`_markdownShell_wg7p7_234`,hunk:`_hunk_wg7p7_240`,hunkHeader:`_hunkHeader_wg7p7_247`,diffRow:`_diffRow_wg7p7_256`,splitTable:`_splitTable_wg7p7_263`,splitHead:`_splitHead_wg7p7_266`,splitRow:`_splitRow_wg7p7_267`,splitCell:`_splitCell_wg7p7_284`,add:`_add_wg7p7_294`,remove:`_remove_wg7p7_297`,emptyCell:`_emptyCell_wg7p7_300`,lineNo:`_lineNo_wg7p7_303`,lineSign:`_lineSign_wg7p7_313`,signAdd:`_signAdd_wg7p7_323`,signRemove:`_signRemove_wg7p7_326`,codeLine:`_codeLine_wg7p7_329`,commentTrigger:`_commentTrigger_wg7p7_338`,markdownCommentBlock:`_markdownCommentBlock_wg7p7_363`,composer:`_composer_wg7p7_366`,popover:`_popover_wg7p7_370`,ghost:`_ghost_wg7p7_382`,markdownLoading:`_markdownLoading_wg7p7_385`,deletedBanner:`_deletedBanner_wg7p7_390`,markdownArticle:`_markdownArticle_wg7p7_393`,markdownBody:`_markdownBody_wg7p7_399`,markdownCommentContent:`_markdownCommentContent_wg7p7_409`,markdownInlineCode:`_markdownInlineCode_wg7p7_431`,markdownPre:`_markdownPre_wg7p7_441`,markdownTableScroll:`_markdownTableScroll_wg7p7_483`,mermaidDiagram:`_mermaidDiagram_wg7p7_531`,mermaidLoading:`_mermaidLoading_wg7p7_532`,mermaidFallback:`_mermaidFallback_wg7p7_533`,mermaidError:`_mermaidError_wg7p7_559`,threads:`_threads_wg7p7_564`,threadListToolbar:`_threadListToolbar_wg7p7_568`,threadFilterWrap:`_threadFilterWrap_wg7p7_577`,threadBatchButton:`_threadBatchButton_wg7p7_587`,threadRailBody:`_threadRailBody_wg7p7_612`,thread:`_thread_wg7p7_24`,threadFocused:`_threadFocused_wg7p7_623`,threadFocusedPending:`_threadFocusedPending_wg7p7_627`,threadFocusedResolved:`_threadFocusedResolved_wg7p7_632`,threadTop:`_threadTop_wg7p7_640`,threadAnchor:`_threadAnchor_wg7p7_648`,threadTag:`_threadTag_wg7p7_655`,threadTagResolved:`_threadTagResolved_wg7p7_664`,threadTagSubmit:`_threadTagSubmit_wg7p7_669`,threadTagReplied:`_threadTagReplied_wg7p7_674`,threadBody:`_threadBody_wg7p7_679`,threadComment:`_threadComment_wg7p7_686`,threadAgentComment:`_threadAgentComment_wg7p7_689`,threadCommentAuthor:`_threadCommentAuthor_wg7p7_696`,threadReplyLabel:`_threadReplyLabel_wg7p7_697`,threadReply:`_threadReply_wg7p7_697`,threadReplyComposer:`_threadReplyComposer_wg7p7_712`,replied:`_replied_wg7p7_715`,resolved:`_resolved_wg7p7_719`,inlineThreadStack:`_inlineThreadStack_wg7p7_723`,inlineThreadSubmit:`_inlineThreadSubmit_wg7p7_742`,inlineThreadReplied:`_inlineThreadReplied_wg7p7_747`,inlineThreadResolved:`_inlineThreadResolved_wg7p7_752`,inlineThreadSection:`_inlineThreadSection_wg7p7_764`,inlineThreadSectionUser:`_inlineThreadSectionUser_wg7p7_770`,inlineThreadAgentLabel:`_inlineThreadAgentLabel_wg7p7_774`,inlineThreadCommentItem:`_inlineThreadCommentItem_wg7p7_781`,inlineThreadCommentItemAgent:`_inlineThreadCommentItemAgent_wg7p7_789`,inlineThreadCommentActions:`_inlineThreadCommentActions_wg7p7_797`,threadIconBtn:`_threadIconBtn_wg7p7_803`,commentRow:`_commentRow_wg7p7_810`,commentContent:`_commentContent_wg7p7_816`,inlineThreadComposer:`_inlineThreadComposer_wg7p7_827`,inlineThreadEdit:`_inlineThreadEdit_wg7p7_830`,inlineThreadEditActions:`_inlineThreadEditActions_wg7p7_833`,headerAction:`_headerAction_wg7p7_203`,threadActionBtn:`_threadActionBtn_wg7p7_851`,threadEmpty:`_threadEmpty_wg7p7_857`,threadListInlineBorderless:`_threadListInlineBorderless_wg7p7_860`,emptyStateCard:`_emptyStateCard_wg7p7_866`},dA=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})),Q=o(((e,t)=>{t.exports=dA()}))();function fA({placeholder:e,onSubmit:t,submitLabel:n=`添加评论`,onCancel:r}){let[i,a]=v.useState(``),[o,s]=v.useState(!1);return(0,Q.jsxs)(`form`,{className:Z.composer,onSubmit:e=>{e.preventDefault(),i.trim()&&(s(!0),t(i.trim()).then(()=>a(``)).finally(()=>s(!1)))},children:[(0,Q.jsx)(fD.TextArea,{placeholder:e,value:i,onChange:e=>a(e.target.value),autoSize:{minRows:3,maxRows:8}}),(0,Q.jsxs)(kE,{children:[(0,Q.jsx)(HC,{htmlType:`submit`,loading:o,type:`primary`,children:n}),r?(0,Q.jsx)(HC,{onClick:r,children:`取消`}):null]})]})}function pA({onCancel:e,onSubmit:t}){return(0,Q.jsx)(`div`,{className:Z.popover,children:(0,Q.jsx)(fA,{placeholder:`请输入行内评论...`,submitLabel:`评论`,onSubmit:t,onCancel:e})})}var mA={submit:`待提交`,replied:`已回复`,resolved:`已解决`};function hA(e){return e.status===`resolved`?`resolved`:gA(e)}function gA(e){return e.comments.some(e=>e.author===`agent`)?`replied`:`submit`}function _A(e){return e.length>0&&e.every(e=>hA(e)===`resolved`)?`resolved`:e.some(e=>gA(e)===`replied`)?`replied`:`submit`}function vA({threads:e,onFocus:t,onPatch:n,onDeleteThread:r,onReply:i,onPatchComment:a,onDeleteComment:o,onCopy:s,showStatusTag:c=!0}){let[l,u]=v.useState(null),[d,f]=v.useState(null),[p,m]=v.useState(``),h=e[0],g=_A(e),_=xA(e),y=_?hA(_):g,b=y===`resolved`,x=_?.comments.at(-1),S=SA(y,x?.author);return h?(0,Q.jsxs)(`div`,{className:`${Z.inlineThread} ${yA(g)}`,onClick:()=>t(h.id),children:[(0,Q.jsx)(`div`,{className:Z.inlineThreadHeader,children:c&&g!==`replied`?(0,Q.jsx)(ZO,{className:`${Z.threadTag} ${bA(g)}`,children:mA[g]}):null}),e.map(e=>{let n=hA(e);return(0,Q.jsx)(`div`,{className:Z.inlineThreadSection,onClick:n=>{n.stopPropagation(),t(e.id)},children:e.comments.map(t=>{let r=t.author===`agent`,i=g===`submit`&&n===`submit`&&!r;return(0,Q.jsx)(`div`,{className:`${Z.inlineThreadCommentItem} ${r?Z.inlineThreadCommentItemAgent:``}`,children:(0,Q.jsxs)(`div`,{className:Z.commentRow,children:[(0,Q.jsxs)(`div`,{className:Z.commentContent,children:[r?(0,Q.jsx)(Qk.Text,{className:Z.inlineThreadAgentLabel,strong:!0,children:`Agent`}):null,d===t.id?(0,Q.jsxs)(`div`,{className:Z.inlineThreadEdit,children:[(0,Q.jsx)(fD.TextArea,{value:p,autoSize:{minRows:3,maxRows:8},onClick:e=>e.stopPropagation(),onChange:e=>m(e.target.value)}),(0,Q.jsxs)(`div`,{className:Z.inlineThreadEditActions,children:[(0,Q.jsx)(HC,{size:`small`,onClick:e=>{e.stopPropagation(),f(null),m(``)},children:`取消`}),(0,Q.jsx)(HC,{size:`small`,type:`primary`,onClick:async n=>{n.stopPropagation(),await a(e.id,t.id,p),f(null),m(``)},children:`保存`})]})]}):(0,Q.jsx)(Qk.Paragraph,{className:Z.inlineThreadBody,children:t.body})]}),i&&d!==t.id?(0,Q.jsx)(`div`,{className:Z.inlineThreadCommentActions,children:(0,Q.jsx)(HC,{className:Z.threadIconBtn,type:`text`,icon:(0,Q.jsx)(rk,{}),onClick:e=>{e.stopPropagation(),f(t.id),m(t.body)}})}):null]})},t.id)})},e.id)}),_&&l===_.id?(0,Q.jsx)(`div`,{className:Z.inlineThreadComposer,children:(0,Q.jsx)(fA,{placeholder:`继续评论...`,submitLabel:`回复`,onCancel:()=>{u(null)},onSubmit:async e=>{await i(_.id,e),u(null)}})}):null,_?(0,Q.jsxs)(`div`,{className:Z.inlineThreadActions,children:[S?(0,Q.jsx)(HC,{type:`primary`,className:Z.threadActionBtn,icon:(0,Q.jsx)(Ek,{}),onClick:e=>{e.stopPropagation(),s({type:`thread`,threadId:_.id})},children:`复制`}):null,y===`replied`?(0,Q.jsx)(_x,{title:`要求再改`,children:(0,Q.jsx)(HC,{className:Z.threadActionBtn,icon:(0,Q.jsx)(uA,{}),onClick:e=>{e.stopPropagation(),u(_.id)},children:`要求再改`})}):null,y===`replied`?null:(0,Q.jsx)(FO,{title:e.length>1?`删除这组评论?`:`删除这条评论线程?`,okText:`删除`,cancelText:`取消`,onConfirm:async()=>{for(let t of e)await r(t.id)},children:(0,Q.jsx)(HC,{className:Z.threadActionBtn,icon:(0,Q.jsx)(ek,{}),danger:!0,onClick:e=>e.stopPropagation(),children:`删除`})}),b?(0,Q.jsx)(_x,{title:`重新打开`,children:(0,Q.jsx)(HC,{className:Z.threadActionBtn,icon:(0,Q.jsx)(RO,{}),onClick:e=>{e.stopPropagation(),n(_.id,`submit`)},children:`重新打开`})}):null,y===`replied`?(0,Q.jsx)(_x,{title:`确认完成`,children:(0,Q.jsx)(HC,{className:Z.threadActionBtn,icon:(0,Q.jsx)(Sb,{}),onClick:e=>{e.stopPropagation(),n(_.id,`resolved`)},children:`确认完成`})}):null]}):null]}):null}function yA(e){return e===`submit`?Z.inlineThreadSubmit:e===`replied`?Z.inlineThreadReplied:Z.inlineThreadResolved}function bA(e){return e===`submit`?Z.threadTagSubmit:e===`replied`?Z.threadTagReplied:Z.threadTagResolved}function xA(e){return e.find(e=>hA(e)===`replied`)??e.find(e=>hA(e)===`submit`)??e[0]}function SA(e,t){return e===`submit`?!0:e===`replied`&&t===`user`}function CA(e){return e===`add`?`+`:e===`remove`?`-`:``}function wA({file:e,threads:t,onCreate:n,onLocateThread:r,onPatchThread:i,onDeleteThread:a,onReplyThread:o,onPatchComment:s,onDeleteComment:c,onCopyThread:l,viewMode:u}){let[d,f]=v.useState(null);function p(e){return e.length===0?null:(0,Q.jsx)(`div`,{className:Z.inlineThreadStack,children:(0,Q.jsx)(vA,{threads:e,onFocus:r,onPatch:i,onDeleteThread:a,onReply:o,onPatchComment:s,onDeleteComment:c,onCopy:l})})}function m(r,i,a){let o=r.type===`remove`?`old`:`new`,s=o===`old`?r.oldLineNumber:r.newLineNumber,c=`${a}-${o}-${s}-${i}`,l=t.filter(t=>t.anchor.type===`diff-line`&&t.anchor.filePath===e.path&&t.anchor.side===o&&t.anchor.lineNumber===s);return(0,Q.jsxs)(`div`,{className:r.type===`add`?`${Z.diffRow} ${Z.add}`:r.type===`remove`?`${Z.diffRow} ${Z.remove}`:Z.diffRow,children:[(0,Q.jsx)(`button`,{className:Z.lineNo,onClick:()=>r.oldLineNumber&&f(c),children:r.oldLineNumber??``}),(0,Q.jsx)(`button`,{className:Z.lineNo,onClick:()=>r.newLineNumber&&f(c),children:r.newLineNumber??``}),(0,Q.jsx)(`span`,{className:r.type===`add`?`${Z.lineSign} ${Z.signAdd}`:r.type===`remove`?`${Z.lineSign} ${Z.signRemove}`:Z.lineSign,children:CA(r.type)}),(0,Q.jsx)(`pre`,{className:Z.codeLine,children:r.content||` `}),s&&l.length===0?(0,Q.jsx)(`button`,{className:Z.commentTrigger,type:`button`,"aria-label":`添加行评论`,onClick:()=>f(c),children:(0,Q.jsx)(iA,{})}):null,d===c&&s?(0,Q.jsx)(pA,{onCancel:()=>f(null),onSubmit:async t=>{await n({type:`diff-line`,filePath:e.path,side:o,lineNumber:s},t),f(null)}}):null,p(l)]},c)}function h(e){let t=[],n=0;for(;n<e.lines.length;){let r=e.lines[n];if(r.type===`context`){t.push({key:`${e.header}-context-${n}`,oldCell:{lineNumber:r.oldLineNumber,content:r.content,type:`context`,side:`old`},newCell:{lineNumber:r.newLineNumber,content:r.content,type:`context`,side:`new`}}),n+=1;continue}if(r.type===`remove`){let r=[],i=[];for(;n<e.lines.length&&e.lines[n].type===`remove`;)r.push(e.lines[n]),n+=1;for(;n<e.lines.length&&e.lines[n].type===`add`;)i.push(e.lines[n]),n+=1;let a=Math.max(r.length,i.length);for(let o=0;o<a;o+=1){let a=r[o],s=i[o];t.push({key:`${e.header}-change-${n}-${o}`,oldCell:a?{lineNumber:a.oldLineNumber,content:a.content,type:`remove`,side:`old`}:{content:``,type:`empty`,side:`old`},newCell:s?{lineNumber:s.newLineNumber,content:s.content,type:`add`,side:`new`}:{content:``,type:`empty`,side:`new`}})}continue}t.push({key:`${e.header}-add-${n}`,oldCell:{content:``,type:`empty`,side:`old`},newCell:{lineNumber:r.newLineNumber,content:r.content,type:`add`,side:`new`}}),n+=1}return t}function g(r,i){let a=r.lineNumber?t.filter(t=>t.anchor.type===`diff-line`&&t.anchor.filePath===e.path&&t.anchor.side===r.side&&t.anchor.lineNumber===r.lineNumber):[],o=`${i}-${r.side}-${r.lineNumber??`empty`}`;return(0,Q.jsxs)(`div`,{className:r.type===`add`?`${Z.splitCell} ${Z.add}`:r.type===`remove`?`${Z.splitCell} ${Z.remove}`:r.type===`empty`?`${Z.splitCell} ${Z.emptyCell}`:Z.splitCell,children:[(0,Q.jsx)(`button`,{className:Z.lineNo,onClick:()=>r.lineNumber&&f(o),children:r.lineNumber??``}),(0,Q.jsx)(`span`,{className:r.type===`add`?`${Z.lineSign} ${Z.signAdd}`:r.type===`remove`?`${Z.lineSign} ${Z.signRemove}`:Z.lineSign,children:CA(r.type)}),(0,Q.jsx)(`pre`,{className:Z.codeLine,children:r.content||` `}),r.lineNumber&&a.length===0?(0,Q.jsx)(`button`,{className:Z.commentTrigger,type:`button`,"aria-label":`添加行评论`,onClick:()=>f(o),children:(0,Q.jsx)(iA,{})}):null,d===o&&r.lineNumber?(0,Q.jsx)(pA,{onCancel:()=>f(null),onSubmit:async t=>{await n({type:`diff-line`,filePath:e.path,side:r.side,lineNumber:r.lineNumber},t),f(null)}}):null,p(a)]},o)}return(0,Q.jsx)(`div`,{className:Z.diffCard,children:e.hunks.map(e=>(0,Q.jsxs)(`div`,{className:Z.hunk,children:[(0,Q.jsx)(`div`,{className:Z.hunkHeader,children:e.header}),u===`inline`?e.lines.map((t,n)=>m(t,n,e.header)):(0,Q.jsxs)(`div`,{className:Z.splitTable,children:[(0,Q.jsxs)(`div`,{className:Z.splitHead,children:[(0,Q.jsx)(`div`,{children:`Old`}),(0,Q.jsx)(`div`,{children:`New`})]}),h(e).map(e=>(0,Q.jsxs)(`div`,{className:Z.splitRow,children:[g(e.oldCell,e.key),g(e.newCell,e.key)]},e.key))]})]},e.header))})}function TA({file:e,threads:t,onCreate:n,onCopy:r,onLocateThread:i,onPatchThread:a,onDeleteThread:o,onReplyThread:s,onPatchComment:c,onDeleteComment:l,onCopyThread:u}){let[d,f]=v.useState(!1),p=t.filter(t=>t.filePath===e.path&&t.status!==`resolved`),m=t.filter(t=>t.filePath===e.path&&t.anchor.type===`file`);return(0,Q.jsxs)(IT,{className:Z.fileHeader,children:[(0,Q.jsxs)(`div`,{className:Z.headerTop,children:[(0,Q.jsx)(Qk.Text,{strong:!0,children:e.path}),(0,Q.jsxs)(`div`,{className:Z.headerActions,children:[(0,Q.jsx)(HC,{className:Z.headerAction,icon:(0,Q.jsx)(Ek,{}),onClick:()=>void r({type:`file-unresolved`,filePath:e.path}),children:`复制文件提示词`}),(0,Q.jsx)(HC,{className:Z.headerAction,icon:(0,Q.jsx)(tA,{}),type:d?`primary`:`default`,onClick:()=>f(e=>!e),children:`文件级评论`})]})]}),d?(0,Q.jsx)(fA,{placeholder:`请输入文件级审查评论...`,onSubmit:async t=>{await n({type:`file`,filePath:e.path},t),f(!1)}}):null,p.length>0?(0,Q.jsxs)(ZO,{className:Z.threadCount,color:`gold`,children:[p.length,` 个评论线程`]}):null,m.length>0?(0,Q.jsx)(`div`,{className:Z.fileLevelInlineThreads,children:(0,Q.jsx)(vA,{threads:m,onFocus:i,onPatch:a,onDeleteThread:o,onReply:s,onPatchComment:c,onDeleteComment:l,onCopy:u})}):null]})}function EA(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var DA=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,OA=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,kA={};function AA(e,t){return((t||kA).jsx?OA:DA).test(e)}var jA=/[ \t\n\f\r]/g;function MA(e){return typeof e==`object`?e.type===`text`?NA(e.value):!1:NA(e)}function NA(e){return e.replace(jA,``)===``}var PA=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};PA.prototype.normal={},PA.prototype.property={},PA.prototype.space=void 0;function FA(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new PA(n,r,t)}function IA(e){return e.toLowerCase()}var LA=class{constructor(e,t){this.attribute=t,this.property=e}};LA.prototype.attribute=``,LA.prototype.booleanish=!1,LA.prototype.boolean=!1,LA.prototype.commaOrSpaceSeparated=!1,LA.prototype.commaSeparated=!1,LA.prototype.defined=!1,LA.prototype.mustUseProperty=!1,LA.prototype.number=!1,LA.prototype.overloadedBoolean=!1,LA.prototype.property=``,LA.prototype.spaceSeparated=!1,LA.prototype.space=void 0;var RA=s({boolean:()=>BA,booleanish:()=>VA,commaOrSpaceSeparated:()=>GA,commaSeparated:()=>WA,number:()=>$,overloadedBoolean:()=>HA,spaceSeparated:()=>UA}),zA=0,BA=KA(),VA=KA(),HA=KA(),$=KA(),UA=KA(),WA=KA(),GA=KA();function KA(){return 2**++zA}var qA=Object.keys(RA),JA=class extends LA{constructor(e,t,n,r){let i=-1;if(super(e,t),YA(this,`space`,r),typeof n==`number`)for(;++i<qA.length;){let e=qA[i];YA(this,qA[i],(n&RA[e])===RA[e])}}};JA.prototype.defined=!0;function YA(e,t,n){n&&(e[t]=n)}function XA(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new JA(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[IA(r)]=r,n[IA(a.attribute)]=r}return new PA(t,n,e.space)}var ZA=XA({properties:{ariaActiveDescendant:null,ariaAtomic:VA,ariaAutoComplete:null,ariaBusy:VA,ariaChecked:VA,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:UA,ariaCurrent:null,ariaDescribedBy:UA,ariaDetails:null,ariaDisabled:VA,ariaDropEffect:UA,ariaErrorMessage:null,ariaExpanded:VA,ariaFlowTo:UA,ariaGrabbed:VA,ariaHasPopup:null,ariaHidden:VA,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:UA,ariaLevel:$,ariaLive:null,ariaModal:VA,ariaMultiLine:VA,ariaMultiSelectable:VA,ariaOrientation:null,ariaOwns:UA,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:VA,ariaReadOnly:VA,ariaRelevant:null,ariaRequired:VA,ariaRoleDescription:UA,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:VA,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function QA(e,t){return t in e?e[t]:t}function $A(e,t){return QA(e,t.toLowerCase())}var ej=XA({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:WA,acceptCharset:UA,accessKey:UA,action:null,allow:null,allowFullScreen:BA,allowPaymentRequest:BA,allowUserMedia:BA,alt:null,as:null,async:BA,autoCapitalize:null,autoComplete:UA,autoFocus:BA,autoPlay:BA,blocking:UA,capture:null,charSet:null,checked:BA,cite:null,className:UA,cols:$,colSpan:null,content:null,contentEditable:VA,controls:BA,controlsList:UA,coords:$|WA,crossOrigin:null,data:null,dateTime:null,decoding:null,default:BA,defer:BA,dir:null,dirName:null,disabled:BA,download:HA,draggable:VA,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:BA,formTarget:null,headers:UA,height:$,hidden:HA,high:$,href:null,hrefLang:null,htmlFor:UA,httpEquiv:UA,id:null,imageSizes:null,imageSrcSet:null,inert:BA,inputMode:null,integrity:null,is:null,isMap:BA,itemId:null,itemProp:UA,itemRef:UA,itemScope:BA,itemType:UA,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:BA,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:BA,muted:BA,name:null,nonce:null,noModule:BA,noValidate:BA,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:BA,optimum:$,pattern:null,ping:UA,placeholder:null,playsInline:BA,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:BA,referrerPolicy:null,rel:UA,required:BA,reversed:BA,rows:$,rowSpan:$,sandbox:UA,scope:null,scoped:BA,seamless:BA,selected:BA,shadowRootClonable:BA,shadowRootDelegatesFocus:BA,shadowRootMode:null,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:VA,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:BA,useMap:null,value:VA,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:UA,axis:null,background:null,bgColor:null,border:$,borderColor:null,bottomMargin:$,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:BA,declare:BA,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:BA,noHref:BA,noShade:BA,noWrap:BA,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:VA,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:BA,disableRemotePlayback:BA,prefix:null,property:null,results:$,security:null,unselectable:null},space:`html`,transform:$A}),tj=XA({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:GA,accentHeight:$,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$,amplitude:$,arabicForm:null,ascent:$,attributeName:null,attributeType:null,azimuth:$,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$,by:null,calcMode:null,capHeight:$,className:UA,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:$,diffuseConstant:$,direction:null,display:null,dur:null,divisor:$,dominantBaseline:null,download:BA,dx:null,dy:null,edgeMode:null,editable:null,elevation:$,enableBackground:null,end:null,event:null,exponent:$,externalResourcesRequired:null,fill:null,fillOpacity:$,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:WA,g2:WA,glyphName:WA,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$,horizOriginX:$,horizOriginY:$,id:null,ideographic:$,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$,k:$,k1:$,k2:$,k3:$,k4:$,kernelMatrix:GA,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:$,overlineThickness:$,paintOrder:null,panose1:null,path:null,pathLength:$,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:UA,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:GA,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:GA,rev:GA,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:GA,requiredFeatures:GA,requiredFonts:GA,requiredFormats:GA,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:$,specularExponent:$,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$,strikethroughThickness:$,string:null,stroke:null,strokeDashArray:GA,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:GA,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:GA,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$,underlineThickness:$,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$,values:null,vAlphabetic:$,vMathematical:$,vectorEffect:null,vHanging:$,vIdeographic:$,version:null,vertAdvY:$,vertOriginX:$,vertOriginY:$,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:QA}),nj=XA({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),rj=XA({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:$A}),ij=XA({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),aj={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},oj=/[A-Z]/g,sj=/-[a-z]/g,cj=/^data[-\w.:]+$/i;function lj(e,t){let n=IA(t),r=t,i=LA;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&cj.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(sj,dj);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!sj.test(e)){let n=e.replace(oj,uj);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=JA}return new i(r,t)}function uj(e){return`-`+e.toLowerCase()}function dj(e){return e.charAt(1).toUpperCase()}var fj=FA([ZA,ej,nj,rj,ij],`html`),pj=FA([ZA,tj,nj,rj,ij],`svg`);function mj(e){return e.join(` `).trim()}var hj=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
259
- `,d=`/`,f=`*`,p=``,m=`comment`,h=`declaration`;function g(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,g=1;function v(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(u);g=~n?e.length-n:g+e.length}function y(){var e={line:l,column:g};return function(t){return t.position=new b(e),C(),t}}function b(e){this.start=e,this.end={line:l,column:g},this.source=t.source}b.prototype.content=e;function x(n){var r=Error(t.source+`:`+l+`:`+g+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=g,r.source=e,!t.silent)throw r}function S(t){var n=t.exec(e);if(n){var r=n[0];return v(r),e=e.slice(r.length),n}}function C(){S(i)}function w(e){var t;for(e||=[];t=T();)t!==!1&&e.push(t);return e}function T(){var t=y();if(!(d!=e.charAt(0)||f!=e.charAt(1))){for(var n=2;p!=e.charAt(n)&&(f!=e.charAt(n)||d!=e.charAt(n+1));)++n;if(n+=2,p===e.charAt(n-1))return x(`End of comment missing`);var r=e.slice(2,n-2);return g+=2,v(r),e=e.slice(n),g+=2,t({type:m,comment:r})}}function E(){var e=y(),t=S(a);if(t){if(T(),!S(o))return x(`property missing ':'`);var r=S(s),i=e({type:h,property:_(t[0].replace(n,p)),value:r?_(r[0].replace(n,p)):p});return S(c),i}}function D(){var e=[];w(e);for(var t;t=E();)t!==!1&&(e.push(t),w(e));return e}return C(),D()}function _(e){return e?e.replace(l,p):p}t.exports=g})),gj=o((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.default=r;var n=t(hj());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),_j=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),vj=o(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(gj()),r=_j();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),yj=xj(`end`),bj=xj(`start`);function xj(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function Sj(e){let t=bj(e),n=yj(e);if(t&&n)return{start:t,end:n}}function Cj(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Tj(e.position):`start`in e||`end`in e?Tj(e):`line`in e||`column`in e?wj(e):``}function wj(e){return Ej(e&&e.line)+`:`+Ej(e&&e.column)}function Tj(e){return wj(e&&e.start)+`-`+wj(e&&e.end)}function Ej(e){return e&&typeof e==`number`?e:1}var Dj=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=Cj(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Dj.prototype.file=``,Dj.prototype.name=``,Dj.prototype.reason=``,Dj.prototype.message=``,Dj.prototype.stack=``,Dj.prototype.column=void 0,Dj.prototype.line=void 0,Dj.prototype.ancestors=void 0,Dj.prototype.cause=void 0,Dj.prototype.fatal=void 0,Dj.prototype.place=void 0,Dj.prototype.ruleId=void 0,Dj.prototype.source=void 0;var Oj=l(vj(),1),kj={}.hasOwnProperty,Aj=new Map,jj=/[A-Z]/g,Mj=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Nj=new Set([`td`,`th`]),Pj=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function Fj(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=Kj(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=Gj(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?pj:fj,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Ij(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Ij(e,t,n){if(t.type===`element`)return Lj(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return Rj(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return Bj(e,t,n);if(t.type===`mdxjsEsm`)return zj(e,t);if(t.type===`root`)return Vj(e,t,n);if(t.type===`text`)return Hj(e,t)}function Lj(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=pj,e.schema=i),e.ancestors.push(t);let a=Qj(e,t.tagName,!1),o=qj(e,t),s=Yj(e,t);return Mj.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!MA(e):!0})),Uj(e,o,a,t),Wj(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Rj(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}$j(e,t.position)}function zj(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);$j(e,t.position)}function Bj(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=pj,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:Qj(e,t.name,!0),o=Jj(e,t),s=Yj(e,t);return Uj(e,o,a,t),Wj(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Vj(e,t,n){let r={};return Wj(r,Yj(e,t)),e.create(t,e.Fragment,r,n)}function Hj(e,t){return t.value}function Uj(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Wj(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function Gj(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function Kj(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=bj(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function qj(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&kj.call(t.properties,i)){let a=Xj(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Nj.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function Jj(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else $j(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else $j(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function Yj(e,t){let n=[],r=-1,i=e.passKeys?new Map:Aj;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=Ij(e,a,o);s!==void 0&&n.push(s)}return n}function Xj(e,t,n){let r=lj(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?EA(n):mj(n)),r.property===`style`){let t=typeof n==`object`?n:Zj(e,String(n));return e.stylePropertyNameCase===`css`&&(t=eM(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?aj[r.property]||r.property:r.attribute,n]}}function Zj(e,t){try{return(0,Oj.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new Dj("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=Pj+`#cannot-parse-style-attribute`,r}}function Qj(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=AA(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=AA(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return kj.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);$j(e)}function $j(e,t){let n=new Dj("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=Pj+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function eM(e){let t={},n;for(n in e)kj.call(e,n)&&(t[tM(n)]=e[n]);return t}function tM(e){let t=e.replace(jj,nM);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function nM(e){return`-`+e.toLowerCase()}var rM={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},iM={};function aM(e,t){let n=t||iM;return oM(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function oM(e,t,n){if(cM(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return sM(e.children,t,n)}return Array.isArray(e)?sM(e,t,n):``}function sM(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=oM(e[i],t,n);return r.join(``)}function cM(e){return!!(e&&typeof e==`object`)}var lM=document.createElement(`i`);function uM(e){let t=`&`+e+`;`;lM.innerHTML=t;let n=lM.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}function dM(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function fM(e,t){return e.length>0?(dM(e,e.length,0,t),e):t}var pM={}.hasOwnProperty;function mM(e){let t={},n=-1;for(;++n<e.length;)hM(t,e[n]);return t}function hM(e,t){let n;for(n in t){let r=(pM.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){pM.call(r,a)||(r[a]=[]);let e=i[a];gM(r[a],Array.isArray(e)?e:e?[e]:[])}}}function gM(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);dM(e,0,0,r)}function _M(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function vM(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var yM=jM(/[A-Za-z]/),bM=jM(/[\dA-Za-z]/),xM=jM(/[#-'*+\--9=?A-Z^-~]/);function SM(e){return e!==null&&(e<32||e===127)}var CM=jM(/\d/),wM=jM(/[\dA-Fa-f]/),TM=jM(/[!-/:-@[-`{-~]/);function EM(e){return e!==null&&e<-2}function DM(e){return e!==null&&(e<0||e===32)}function OM(e){return e===-2||e===-1||e===32}var kM=jM(/\p{P}|\p{S}/u),AM=jM(/\s/);function jM(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function MM(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&bM(e.charCodeAt(n+1))&&bM(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function NM(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return OM(r)?(e.enter(n),s(r)):t(r)}function s(r){return OM(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var PM={tokenize:FM};function FM(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),NM(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return EM(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var IM={tokenize:RM},LM={tokenize:zM};function RM(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return dM(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(LM,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(LM,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return EM(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;dM(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-- >r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function zM(e,t,n){return NM(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function BM(e){if(e===null||DM(e)||AM(e))return 1;if(kM(e))return 2}function VM(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var HM={name:`attention`,resolveAll:UM,tokenize:WM};function UM(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};GM(d,-c),GM(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=fM(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=fM(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=fM(l,VM(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=fM(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=fM(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,dM(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function WM(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=BM(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=BM(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function GM(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var KM={name:`autolink`,tokenize:qM};function qM(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return yM(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||bM(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||bM(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||SM(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):xM(t)?(e.consume(t),l):n(t)}function u(e){return bM(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||bM(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var JM={partial:!0,tokenize:YM};function YM(e,t,n){return r;function r(t){return OM(t)?NM(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||EM(e)?t(e):n(e)}}var XM={continuation:{tokenize:QM},exit:$M,name:`blockQuote`,tokenize:ZM};function ZM(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return OM(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function QM(e,t,n){let r=this;return i;function i(t){return OM(t)?NM(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(XM,t,n)(r)}}function $M(e){e.exit(`blockQuote`)}var eN={name:`characterEscape`,tokenize:tN};function tN(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return TM(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var nN={name:`characterReference`,tokenize:rN};function rN(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=bM,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=wM,u):(e.enter(`characterReferenceValue`),a=7,o=CM,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===bM&&!uM(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var iN={partial:!0,tokenize:sN},aN={concrete:!0,name:`codeFenced`,tokenize:oN};function oN(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),OM(t)?NM(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||EM(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(iN,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||EM(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):OM(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),NM(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||EM(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||EM(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&OM(t)?NM(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||EM(t)?e.check(iN,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||EM(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),OM(t)?NM(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),OM(t)?NM(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||EM(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function sN(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var cN={name:`codeIndented`,tokenize:uN},lN={partial:!0,tokenize:dN};function uN(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),NM(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):EM(t)?e.attempt(lN,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||EM(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function dN(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):EM(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):NM(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):EM(e)?i(e):n(e)}}var fN={name:`codeText`,previous:mN,resolve:pN,tokenize:hN};function pN(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function mN(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function hN(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):EM(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||EM(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var gN=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&_N(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),_N(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),_N(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);_N(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);_N(this.left,t.reverse())}}};function _N(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function vN(e){let t={},n=-1,r,i,a,o,s,c,l,u=new gN(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,yN(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(!(o[1].type===`linePrefix`||o[1].type===`listItemIndent`))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return dM(e,0,1/0,u.slice(0)),!l}function yN(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var bN={resolve:SN,tokenize:CN},xN={partial:!0,tokenize:wN};function SN(e){return vN(e),e}function CN(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):EM(t)?e.check(xN,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function wN(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),NM(e,a,`linePrefix`)}function a(i){if(i===null||EM(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function TN(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||SM(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||EM(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||DM(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||SM(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function EN(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):EM(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||EM(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!OM(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function DN(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):EM(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),NM(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||EM(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function ON(e,t){let n;return r;function r(i){return EM(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):OM(i)?NM(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var kN={name:`definition`,tokenize:jN},AN={partial:!0,tokenize:MN};function jN(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return EN.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=vM(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return DM(t)?ON(e,l)(t):l(t)}function l(t){return TN(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(AN,d,d)(t)}function d(t){return OM(t)?NM(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||EM(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function MN(e,t,n){return r;function r(t){return DM(t)?ON(e,i)(t):n(t)}function i(t){return DN(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return OM(t)?NM(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||EM(e)?t(e):n(e)}}var NN={name:`hardBreakEscape`,tokenize:PN};function PN(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return EM(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var FN={name:`headingAtx`,resolve:IN,tokenize:LN};function IN(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},dM(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function LN(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||DM(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||EM(n)?(e.exit(`atxHeading`),t(n)):OM(n)?NM(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||DM(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var RN=`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.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),zN=[`pre`,`script`,`style`,`textarea`],BN={concrete:!0,name:`htmlFlow`,resolveTo:UN,tokenize:WN},VN={partial:!0,tokenize:KN},HN={partial:!0,tokenize:GN};function UN(e){let t=e.length;for(;t--&&!(e[t][0]===`enter`&&e[t][1].type===`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function WN(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:I):yM(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):yM(a)?(e.consume(a),i=4,r.interrupt?t:I):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:I):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return yM(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||DM(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&zN.includes(l)?(i=1,r.interrupt?t(s):O(s)):RN.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||bM(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return OM(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||yM(t)?(e.consume(t),b):OM(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||bM(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):OM(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):OM(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||EM(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||DM(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||OM(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||EM(t)?O(t):OM(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),L):t===63&&i===3?(e.consume(t),I):t===93&&i===5?(e.consume(t),F):EM(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(VN,R,k)(t)):t===null||EM(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(HN,A,R)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||EM(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),I):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return zN.includes(n)?(e.consume(t),L):O(t)}return yM(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),I):O(t)}function I(t){return t===62?(e.consume(t),L):t===45&&i===2?(e.consume(t),I):O(t)}function L(t){return t===null||EM(t)?(e.exit(`htmlFlowData`),R(t)):(e.consume(t),L)}function R(n){return e.exit(`htmlFlow`),t(n)}}function GN(e,t,n){let r=this;return i;function i(t){return EM(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function KN(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(JM,t,n)}}var qN={name:`htmlText`,tokenize:JN};function JN(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):yM(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):yM(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):EM(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):EM(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):EM(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):EM(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return yM(t)?(e.consume(t),S):n(t)}function S(t){return t===45||bM(t)?(e.consume(t),S):C(t)}function C(t){return EM(t)?(o=C,N(t)):OM(t)?(e.consume(t),C):M(t)}function w(t){return t===45||bM(t)?(e.consume(t),w):t===47||t===62||DM(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||yM(t)?(e.consume(t),E):EM(t)?(o=T,N(t)):OM(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||bM(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):EM(t)?(o=D,N(t)):OM(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):EM(t)?(o=O,N(t)):OM(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):EM(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||DM(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||DM(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return OM(t)?NM(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var YN={name:`labelEnd`,resolveAll:$N,resolveTo:eP,tokenize:tP},XN={tokenize:nP},ZN={tokenize:rP},QN={tokenize:iP};function $N(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&dM(e,0,e.length,n),e}function eP(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=fM(s,e.slice(a+1,a+r+3)),s=fM(s,[[`enter`,u,t]]),s=fM(s,VM(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=fM(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=fM(s,e.slice(o+1)),s=fM(s,[[`exit`,c,t]]),dM(e,a,e.length,s),e}function tP(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(vM(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(XN,u,o?u:d)(t):t===91?e.attempt(ZN,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(QN,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function nP(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return DM(t)?ON(e,a)(t):a(t)}function a(t){return t===41?u(t):TN(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return DM(t)?ON(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?DN(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return DM(t)?ON(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function rP(e,t,n){let r=this;return i;function i(t){return EN.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(vM(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function iP(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var aP={name:`labelStartImage`,resolveAll:YN.resolveAll,tokenize:oP};function oP(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var sP={name:`labelStartLink`,resolveAll:YN.resolveAll,tokenize:cP};function cP(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var lP={name:`lineEnding`,tokenize:uP};function uP(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),NM(e,t,`linePrefix`)}}var dP={name:`thematicBreak`,tokenize:fP};function fP(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||EM(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),OM(t)?NM(e,s,`whitespace`)(t):s(t))}}var pP={continuation:{tokenize:_P},exit:yP,name:`list`,tokenize:gP},mP={partial:!0,tokenize:bP},hP={partial:!0,tokenize:vP};function gP(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:CM(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(dP,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return CM(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(JM,r.interrupt?n:u,e.attempt(mP,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return OM(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function _P(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(JM,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,NM(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!OM(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(hP,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,NM(e,e.attempt(pP,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function vP(e,t,n){let r=this;return NM(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function yP(e){e.exit(this.containerState.type)}function bP(e,t,n){let r=this;return NM(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!OM(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var xP={name:`setextUnderline`,resolveTo:SP,tokenize:CP};function SP(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function CP(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),OM(t)?NM(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||EM(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var wP={tokenize:TP};function TP(e){let t=this,n=e.attempt(JM,r,e.attempt(this.parser.constructs.flowInitial,i,NM(e,e.attempt(this.parser.constructs.flow,i,e.attempt(bN,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var EP={resolveAll:AP()},DP=kP(`string`),OP=kP(`text`);function kP(e){return{resolveAll:AP(e===`text`?jP:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function AP(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function jP(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var MP=s({attentionMarkers:()=>BP,contentInitial:()=>PP,disable:()=>VP,document:()=>NP,flow:()=>IP,flowInitial:()=>FP,insideSpan:()=>zP,string:()=>LP,text:()=>RP}),NP={42:pP,43:pP,45:pP,48:pP,49:pP,50:pP,51:pP,52:pP,53:pP,54:pP,55:pP,56:pP,57:pP,62:XM},PP={91:kN},FP={[-2]:cN,[-1]:cN,32:cN},IP={35:FN,42:dP,45:[xP,dP],60:BN,61:xP,95:dP,96:aN,126:aN},LP={38:nN,92:eN},RP={[-5]:lP,[-4]:lP,[-3]:lP,33:aP,38:nN,42:HM,60:[KM,qN],91:sP,92:[NN,eN],93:YN,95:HM,96:fN},zP={null:[HM,EP]},BP={null:[42,95]},VP={null:[]};function HP(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=fM(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=VM(a,l.events,l),l.events):[]}function f(e,t){return WP(p(e),t)}function p(e){return UP(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){EM(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&dM(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function UP(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function WP(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
258
+ `]:{...Ja(e),marginInlineStart:e.marginXXS},...Pk(e),...Fk(e),...Ik(),"&-rtl":{direction:`rtl`}}}},()=>({titleMarginTop:`1.2em`,titleMarginBottom:`0.5em`})),Rk=e=>{let{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:o,autoSize:s=!0,value:c,onSave:l,onCancel:u,onEnd:d,component:f,enterIcon:p=v.createElement(kk,null)}=e,m=v.useRef(null),h=v.useRef(!1),g=v.useRef(null),[_,y]=v.useState(c);v.useEffect(()=>{y(c)},[c]),v.useEffect(()=>{if(m.current?.resizableTextArea){let{textArea:e}=m.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let b=({target:e})=>{y(e.value.replace(/[\n\r]/g,``))},x=()=>{h.current=!0},S=()=>{h.current=!1},C=({keyCode:e})=>{h.current||(g.current=e)},w=()=>{l(_.trim())},T=({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:i})=>{g.current!==e||h.current||t||n||r||i||(e===X.ENTER?(w(),d?.()):e===X.ESC&&u())},E=()=>{w()},[D,O]=Lk(t),k=J(t,`${t}-edit-content`,{[`${t}-rtl`]:a===`rtl`,[`${t}-${f}`]:!!f},r,D,O);return v.createElement(`div`,{className:k,style:i},v.createElement(TD,{ref:m,maxLength:o,value:_,onChange:b,onKeyDown:C,onKeyUp:T,onCompositionStart:x,onCompositionEnd:S,onBlur:E,"aria-label":n,rows:1,autoSize:s}),p===null?null:su(p,{className:`${t}-edit-content-confirm`}))},zk=(e,t)=>{let n=!1,r=r=>{r.stopPropagation(),r.preventDefault(),r.clipboardData?.clearData(),r.clipboardData?.setData(`text/plain`,e),t&&r.clipboardData?.setData(`text/html`,e),n=!0};try{return document.addEventListener(`copy`,r,{capture:!0}),document.execCommand(`copy`),n}catch{return!1}finally{document.removeEventListener(`copy`,r,{capture:!0})}},Bk=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:`text/html`}),"text/plain":new Blob([e],{type:`text/plain`})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function Vk(e,t){if(typeof e!=`string`)return!1;let n=t?.format===`text/html`;return!!(await Bk(e,n)||zk(e,n))}var Hk=({copyConfig:e,children:t})=>{let[n,r]=v.useState(!1),[i,a]=v.useState(!1),o=v.useRef(null),s=()=>{o.current&&clearTimeout(o.current)},c={};return e.format&&(c.format=e.format),v.useEffect(()=>s,[]),{copied:n,copyLoading:i,onClick:y(async n=>{n?.preventDefault(),n?.stopPropagation(),a(!0);try{await Vk((typeof e.text==`function`?await e.text():e.text)||HO(t,{skipEmpty:!0}).join(``)||``,c),a(!1),r(!0),s(),o.current=setTimeout(()=>{r(!1)},3e3),e.onCopy?.(n)}catch(e){throw a(!1),e}})}};function Uk(e,t){return v.useMemo(()=>{let n=!!e;return[n,{...t,...n&&typeof e==`object`?e:null}]},[e])}var Wk=e=>{let t=(0,v.useRef)(void 0);return(0,v.useEffect)(()=>{t.current=e}),t.current},Gk=(e,t,n)=>(0,v.useMemo)(()=>e===!0?{title:t??n}:(0,v.isValidElement)(e)?{title:e}:cc(e)?{title:t??n,...e}:{title:e},[e,t,n]),Kk=v.forwardRef((e,t)=>{let{prefixCls:n,component:r=`article`,className:i,rootClassName:a,children:o,direction:s,style:c,...l}=e,{getPrefixCls:u,direction:d,className:f,style:p}=Qe(`typography`),m=s??d,h=u(`typography`,n),[g,_]=Lk(h),y=J(h,f,{[`${h}-rtl`]:m===`rtl`},i,a,g,_),b={...p,...c};return v.createElement(r,{className:y,style:b,ref:t,...l},o)}),qk={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z`}}]},name:`copy`,theme:`outlined`};function Jk(){return Jk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jk.apply(this,arguments)}var Yk=v.forwardRef((e,t)=>v.createElement(Co,Jk({},e,{ref:t,icon:qk}))),Xk=e=>e===!1?[!1,!1]:HO(e);function Zk(e,t,n){return e===!0||e===void 0?t:e||n&&t}function Qk(e){let t=document.createElement(`em`);e.appendChild(t);let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}var $k=e=>[`string`,`number`].includes(typeof e),eA=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:c,loading:l}=e,u=Xk(a),d=Xk(o),{copied:f,copy:p}=r??{},m=n?f:p,h=Zk(u[+!!n],m),g=typeof h==`string`?h:m;return v.createElement(_x,{title:h},v.createElement(`button`,{type:`button`,className:J(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:c,"aria-label":g,tabIndex:s},n?Zk(d[1],v.createElement(Sb,null),!0):Zk(d[0],l?v.createElement(Xu,null):v.createElement(Yk,null),!0)))},tA=v.forwardRef(({style:e,children:t},n)=>{let r=v.useRef(null);return v.useImperativeHandle(n,()=>({isExceed:()=>{let e=r.current;return e.scrollHeight>e.clientHeight},getHeight:()=>r.current.clientHeight})),v.createElement(`span`,{"aria-hidden":!0,ref:r,style:{position:`fixed`,display:`block`,left:0,top:0,pointerEvents:`none`,backgroundColor:`rgba(255, 0, 0, 0.65)`,...e}},t)}),nA=e=>e.reduce((e,t)=>e+($k(t)?String(t).length:1),0);function rA(e,t){let n=0,r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;let a=e[i],o=$k(a)?String(a).length:1,s=n+o;if(s>t){let e=t-n;return r.push(String(a).slice(0,e)),r}r.push(a),n=s}return e}var iA=0,aA=1,oA=2,sA=3,cA=4,lA={display:`-webkit-box`,overflow:`hidden`,WebkitBoxOrient:`vertical`};function uA(e){let{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,miscDeps:s,onEllipsis:c}=e,l=v.useMemo(()=>fe(r),[r]),u=v.useMemo(()=>nA(l),[r]),d=v.useMemo(()=>i(l,!1),[r]),[f,p]=v.useState(null),m=v.useRef(null),h=v.useRef(null),g=v.useRef(null),_=v.useRef(null),y=v.useRef(null),[b,x]=v.useState(!1),[C,w]=v.useState(iA),[T,E]=v.useState(0),[D,O]=v.useState(null);S(()=>{w(t&&n&&u?aA:iA)},[n,r,a,t,l]),S(()=>{if(C===aA)w(oA),O(h.current&&getComputedStyle(h.current).whiteSpace);else if(C===oA){let e=!!g.current?.isExceed();w(e?sA:cA),p(e?[0,u]:null),x(e);let t=g.current?.getHeight()||0,n=a===1?0:_.current?.getHeight()||0,r=y.current?.getHeight()||0;E(Math.max(t,n+r)+1),c(e)}},[C]);let k=f?Math.ceil((f[0]+f[1])/2):0;S(()=>{let[e,t]=f||[0,0];if(e!==t){let n=(m.current?.getHeight()||0)>T,r=k;t-e===1&&(r=n?e:t),p(n?[e,r]:[r,t])}},[f,k]);let A=v.useMemo(()=>{if(!t)return i(l,!1);if(C!==sA||!f||f[0]!==f[1]){let e=i(l,!1);return[cA,iA].includes(C)?e:v.createElement(`span`,{style:{...lA,WebkitLineClamp:a}},e)}return i(o?l:rA(l,f[0]),b)},[o,C,f,l].concat(Be(s))),j={width:n,margin:0,padding:0,whiteSpace:D===`nowrap`?`normal`:`inherit`};return v.createElement(v.Fragment,null,A,C===oA&&v.createElement(v.Fragment,null,v.createElement(tA,{style:{...j,...lA,WebkitLineClamp:a},ref:g},d),v.createElement(tA,{style:{...j,...lA,WebkitLineClamp:a-1},ref:_},d),v.createElement(tA,{style:{...j,...lA,WebkitLineClamp:1},ref:y},i([],!0))),C===sA&&f&&f[0]!==f[1]&&v.createElement(tA,{style:{...j,top:400},ref:m},i(rA(l,k),!0)),C===aA&&v.createElement(`span`,{style:{whiteSpace:`inherit`},ref:h}))}var dA=({enableEllipsis:e,isEllipsis:t,open:n,children:r,tooltipProps:i})=>{if(!i?.title||!e)return r;let a=n&&t;return v.createElement(_x,{open:a,...i},r)};function fA({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:a,italic:o},s){let c=s;function l(e,t){t&&(c=v.createElement(e,{},c))}return l(`strong`,i),l(`u`,n),l(`del`,r),l(`code`,t),l(`mark`,e),l(`kbd`,a),l(`i`,o),c}var pA=`...`,mA=[`delete`,`mark`,`code`,`underline`,`strong`,`keyboard`,`italic`],hA=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,type:a,disabled:o,children:s,ellipsis:c,editable:l,copyable:u,component:d,title:f,onMouseEnter:p,onMouseLeave:m,...h}=e,{getPrefixCls:g,direction:_}=v.useContext(Ye),[y]=tc(`Text`),b=v.useRef(null),x=v.useRef(null),C=g(`typography`,n),w=de(h,mA),[E,D]=Uk(l),[O,k]=T(!1,D.editing),{triggerType:A=[`icon`]}=D,j=e=>{e&&D.onStart?.(),k(e)},M=Wk(O);S(()=>{!O&&M&&x.current?.focus()},[O]);let N=e=>{e?.preventDefault(),j(!0)},P=e=>{D.onChange?.(e),j(!1)},F=()=>{D.onCancel?.(),j(!1)},[L,R]=Uk(u),{copied:z,copyLoading:B,onClick:V}=Hk({copyConfig:R,children:s}),[H,U]=v.useState(!1),[W,ee]=v.useState(!1),[te,ne]=v.useState(!1),[re,ie]=v.useState(!1),[ae,G]=v.useState(!0),[K,oe]=Uk(c,{expandable:!1,symbol:e=>e?y?.collapse:y?.expand}),[se,ce]=T(oe.defaultExpanded||!1,oe.expanded),q=K&&(!se||oe.expandable===`collapsible`),{rows:le=1}=oe,ue=v.useMemo(()=>q&&(oe.suffix!==void 0||oe.onEllipsis||oe.expandable||E||L),[q,oe,E,L]);S(()=>{K&&!ue&&(U(Gh(`webkitLineClamp`)),ee(Gh(`textOverflow`)))},[ue,K]);let[pe,me]=v.useState(q),he=v.useMemo(()=>ue?!1:le===1?W:H,[ue,W,H]);S(()=>{me(he&&q)},[he,q]);let ge=Gk(oe.tooltip,D.text,s),_e=pe&&!!ge.title,ve=q&&(pe?_e&&re:te),ye=q&&le===1&&pe,be=q&&le>1&&pe,xe=(e,t)=>{ce(t.expanded),oe.onExpand?.(e,t)},[Se,Ce]=v.useState(0),[we,Te]=v.useState(!1),[Ee,De]=v.useState(!1),Oe=({offsetWidth:e})=>{Ce(e)},ke=e=>{ne(e),te!==e&&oe.onEllipsis?.(e)};v.useEffect(()=>{let e=b.current;if(K&&_e&&e){let t=Qk(e);re!==t&&ie(t)}},[K,_e,s,be,ae,Se]),v.useEffect(()=>{let e=b.current;if(typeof IntersectionObserver>`u`||!e||!_e||!q)return;let t=new IntersectionObserver(()=>{G(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[_e,q]);let Ae=v.useMemo(()=>{if(!(!K||pe))return[D.text,s,f,ge.title].find($k)},[K,pe,f,ge.title,ve]);if(O)return v.createElement(Rk,{value:D.text??(typeof s==`string`?s:``),onSave:P,onCancel:F,onEnd:D.onEnd,prefixCls:C,className:r,style:i,direction:_,component:d,maxLength:D.maxLength,autoSize:D.autoSize,enterIcon:D.enterIcon});let je=()=>{let{expandable:e,symbol:t}=oe;return e?v.createElement(`button`,{type:`button`,key:`expand`,className:`${C}-${se?`collapse`:`expand`}`,onClick:e=>xe(e,{expanded:!se}),"aria-label":se?y.collapse:y?.expand},typeof t==`function`?t(se):t):null},Me=()=>{if(!E)return;let{icon:e,tooltip:t,tabIndex:n}=D,r=fe(t)[0]||y?.edit,i=typeof r==`string`?r:``;return A.includes(`icon`)?v.createElement(_x,{key:`edit`,title:t===!1?``:r},v.createElement(`button`,{type:`button`,ref:x,className:`${C}-edit`,onClick:N,"aria-label":i,tabIndex:n},e||v.createElement(Ek,{role:`button`}))):null},Pe=()=>L?v.createElement(eA,{key:`copy`,...R,prefixCls:C,copied:z,locale:y,onCopy:V,loading:B,iconOnly:!ac(s)}):null,Fe=e=>{let t=e&&je(),n=Me(),r=Pe();return!t&&!n&&!r?null:v.createElement(`span`,{key:`operations`,className:`${C}-actions`,onMouseEnter:()=>Te(!0),onMouseLeave:()=>Te(!1)},t,n,r)},Ie=e=>[e&&!se&&v.createElement(`span`,{"aria-hidden":!0,key:`ellipsis`},pA),oe.suffix,Fe(e)];return v.createElement(Ne,{onResize:Oe,disabled:!q},c=>v.createElement(dA,{tooltipProps:ge,enableEllipsis:q,isEllipsis:ve,open:Ee&&!we},v.createElement(Kk,{onMouseEnter:e=>{De(!0),p?.(e)},onMouseLeave:e=>{De(!1),m?.(e)},className:J({[`${C}-${a}`]:a,[`${C}-disabled`]:o,[`${C}-ellipsis`]:K,[`${C}-ellipsis-single-line`]:ye,[`${C}-ellipsis-multiple-line`]:be,[`${C}-link`]:d===`a`},r),prefixCls:n,style:{...i,WebkitLineClamp:be?le:void 0},component:d,ref:I(c,b,t),direction:_,onClick:A.includes(`text`)?N:void 0,"aria-label":Ae?.toString(),title:f,...w},v.createElement(uA,{enableMeasure:q&&!pe,text:s,rows:le,width:Se,onEllipsis:ke,expanded:se,miscDeps:[z,se,B,E,L,y].concat(Be(mA.map(t=>e[t])))},(t,n)=>fA(e,v.createElement(v.Fragment,null,t.length>0&&n&&!se&&Ae?v.createElement(`span`,{key:`show-content`,"aria-hidden":!0},t):t,Ie(n)))))))}),gA=v.forwardRef((e,t)=>{let{ellipsis:n,rel:r,children:i,navigate:a,...o}=e,s={...o,rel:r===void 0&&o.target===`_blank`?`noopener noreferrer`:r};return v.createElement(hA,{...s,ref:t,ellipsis:!!n,component:`a`},i)}),_A=v.forwardRef((e,t)=>{let{children:n,...r}=e;return v.createElement(hA,{ref:t,...r,component:`div`},n)}),vA=v.forwardRef((e,t)=>{let{ellipsis:n,children:r,...i}=e,a=v.useMemo(()=>cc(n)?de(n,[`expandable`,`rows`]):n,[n]);return v.createElement(hA,{ref:t,...i,ellipsis:a,component:`span`},r)}),yA=[1,2,3,4,5],bA=v.forwardRef((e,t)=>{let{level:n=1,children:r,...i}=e,a=yA.includes(n)?`h${n}`:`h1`;return v.createElement(hA,{ref:t,...i,component:a},r)}),xA=Kk;xA.Text=vA,xA.Link=gA,xA.Title=bA,xA.Paragraph=_A;var SA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z`}}]},name:`message`,theme:`outlined`};function CA(){return CA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CA.apply(this,arguments)}var wA=v.forwardRef((e,t)=>v.createElement(Co,CA({},e,{ref:t,icon:SA}))),TA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`defs`,attrs:{},children:[{tag:`style`,attrs:{}}]},{tag:`path`,attrs:{d:`M640.6 429.8h257.1c7.9 0 14.3-6.4 14.3-14.3V158.3c0-7.9-6.4-14.3-14.3-14.3H640.6c-7.9 0-14.3 6.4-14.3 14.3v92.9H490.6c-3.9 0-7.1 3.2-7.1 7.1v221.5h-85.7v-96.5c0-7.9-6.4-14.3-14.3-14.3H126.3c-7.9 0-14.3 6.4-14.3 14.3v257.2c0 7.9 6.4 14.3 14.3 14.3h257.1c7.9 0 14.3-6.4 14.3-14.3V544h85.7v221.5c0 3.9 3.2 7.1 7.1 7.1h135.7v92.9c0 7.9 6.4 14.3 14.3 14.3h257.1c7.9 0 14.3-6.4 14.3-14.3v-257c0-7.9-6.4-14.3-14.3-14.3h-257c-7.9 0-14.3 6.4-14.3 14.3v100h-78.6v-393h78.6v100c0 7.9 6.4 14.3 14.3 14.3zm53.5-217.9h150V362h-150V211.9zM329.9 587h-150V437h150v150zm364.2 75.1h150v150.1h-150V662.1z`}}]},name:`partition`,theme:`outlined`};function EA(){return EA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EA.apply(this,arguments)}var DA=v.forwardRef((e,t)=>v.createElement(Co,EA({},e,{ref:t,icon:TA}))),OA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z`}}]},name:`redo`,theme:`outlined`};function kA(){return kA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kA.apply(this,arguments)}var AA=v.forwardRef((e,t)=>v.createElement(Co,kA({},e,{ref:t,icon:OA}))),Z={shell:`_shell_gvoe4_1`,sidebar:`_sidebar_gvoe4_23`,threadRail:`_threadRail_gvoe4_24`,reviewPane:`_reviewPane_gvoe4_38`,brand:`_brand_gvoe4_46`,brandMark:`_brandMark_gvoe4_52`,brandCopy:`_brandCopy_gvoe4_63`,repoName:`_repoName_gvoe4_68`,productName:`_productName_gvoe4_78`,sideCard:`_sideCard_gvoe4_82`,fileRailHeader:`_fileRailHeader_gvoe4_91`,threadRailHeader:`_threadRailHeader_gvoe4_92`,topToolbar:`_topToolbar_gvoe4_93`,threadRailTitle:`_threadRailTitle_gvoe4_101`,fileList:`_fileList_gvoe4_108`,fileItem:`_fileItem_gvoe4_114`,fileItemActive:`_fileItemActive_gvoe4_124`,fileMeta:`_fileMeta_gvoe4_128`,fileName:`_fileName_gvoe4_138`,fileStats:`_fileStats_gvoe4_147`,fileStatAdd:`_fileStatAdd_gvoe4_150`,fileStatDelete:`_fileStatDelete_gvoe4_154`,viewModeSwitcher:`_viewModeSwitcher_gvoe4_163`,reviewSurface:`_reviewSurface_gvoe4_169`,fileHeader:`_fileHeader_gvoe4_180`,headerTop:`_headerTop_gvoe4_188`,headerIntro:`_headerIntro_gvoe4_194`,eyebrow:`_eyebrow_gvoe4_197`,headerActions:`_headerActions_gvoe4_203`,threadActions:`_threadActions_gvoe4_204`,threadCount:`_threadCount_gvoe4_210`,fileLevelInlineThreads:`_fileLevelInlineThreads_gvoe4_213`,inlineThread:`_inlineThread_gvoe4_218`,inlineThreadHeader:`_inlineThreadHeader_gvoe4_223`,inlineThreadBody:`_inlineThreadBody_gvoe4_226`,inlineThreadActions:`_inlineThreadActions_gvoe4_230`,diffCard:`_diffCard_gvoe4_233`,markdownShell:`_markdownShell_gvoe4_234`,hunk:`_hunk_gvoe4_240`,hunkHeader:`_hunkHeader_gvoe4_247`,diffRow:`_diffRow_gvoe4_256`,splitTable:`_splitTable_gvoe4_263`,splitHead:`_splitHead_gvoe4_266`,splitRow:`_splitRow_gvoe4_267`,splitCell:`_splitCell_gvoe4_284`,add:`_add_gvoe4_294`,remove:`_remove_gvoe4_297`,emptyCell:`_emptyCell_gvoe4_300`,lineNo:`_lineNo_gvoe4_303`,lineSign:`_lineSign_gvoe4_313`,signAdd:`_signAdd_gvoe4_323`,signRemove:`_signRemove_gvoe4_326`,codeLine:`_codeLine_gvoe4_329`,commentTrigger:`_commentTrigger_gvoe4_338`,markdownCommentBlock:`_markdownCommentBlock_gvoe4_363`,composer:`_composer_gvoe4_366`,popover:`_popover_gvoe4_373`,ghost:`_ghost_gvoe4_385`,markdownLoading:`_markdownLoading_gvoe4_388`,deletedBanner:`_deletedBanner_gvoe4_393`,markdownArticle:`_markdownArticle_gvoe4_396`,markdownBody:`_markdownBody_gvoe4_402`,markdownCommentContent:`_markdownCommentContent_gvoe4_412`,markdownInlineCode:`_markdownInlineCode_gvoe4_434`,markdownPre:`_markdownPre_gvoe4_444`,markdownTableScroll:`_markdownTableScroll_gvoe4_486`,mermaidDiagram:`_mermaidDiagram_gvoe4_534`,mermaidLoading:`_mermaidLoading_gvoe4_535`,mermaidFallback:`_mermaidFallback_gvoe4_536`,mermaidError:`_mermaidError_gvoe4_562`,threads:`_threads_gvoe4_567`,threadScopeBar:`_threadScopeBar_gvoe4_571`,threadScopeLabel:`_threadScopeLabel_gvoe4_581`,threadScopeSwitchRow:`_threadScopeSwitchRow_gvoe4_588`,threadScopeSwitchRowDisabled:`_threadScopeSwitchRowDisabled_gvoe4_598`,threadScopeOption:`_threadScopeOption_gvoe4_601`,threadScopeOptionActive:`_threadScopeOptionActive_gvoe4_623`,threadScopeSwitch:`_threadScopeSwitch_gvoe4_588`,threadListToolbar:`_threadListToolbar_gvoe4_635`,threadFilterWrap:`_threadFilterWrap_gvoe4_644`,threadFilterStack:`_threadFilterStack_gvoe4_648`,threadBatchButton:`_threadBatchButton_gvoe4_667`,threadRailBody:`_threadRailBody_gvoe4_713`,thread:`_thread_gvoe4_24`,threadFocused:`_threadFocused_gvoe4_724`,threadFocusedPending:`_threadFocusedPending_gvoe4_728`,threadFocusedResolved:`_threadFocusedResolved_gvoe4_733`,threadTop:`_threadTop_gvoe4_741`,threadAnchor:`_threadAnchor_gvoe4_749`,threadTag:`_threadTag_gvoe4_756`,threadTagResolved:`_threadTagResolved_gvoe4_765`,threadTagSubmit:`_threadTagSubmit_gvoe4_770`,threadTagReplied:`_threadTagReplied_gvoe4_775`,threadBody:`_threadBody_gvoe4_780`,threadComment:`_threadComment_gvoe4_787`,threadAgentComment:`_threadAgentComment_gvoe4_790`,threadCommentAuthor:`_threadCommentAuthor_gvoe4_797`,threadReplyLabel:`_threadReplyLabel_gvoe4_798`,threadReply:`_threadReply_gvoe4_798`,threadReplyComposer:`_threadReplyComposer_gvoe4_813`,replied:`_replied_gvoe4_816`,resolved:`_resolved_gvoe4_820`,inlineThreadStack:`_inlineThreadStack_gvoe4_824`,inlineThreadSubmit:`_inlineThreadSubmit_gvoe4_843`,inlineThreadReplied:`_inlineThreadReplied_gvoe4_848`,inlineThreadResolved:`_inlineThreadResolved_gvoe4_853`,inlineThreadSection:`_inlineThreadSection_gvoe4_865`,inlineThreadSectionUser:`_inlineThreadSectionUser_gvoe4_871`,inlineThreadAgentLabel:`_inlineThreadAgentLabel_gvoe4_875`,inlineThreadCommentItem:`_inlineThreadCommentItem_gvoe4_882`,inlineThreadCommentItemAgent:`_inlineThreadCommentItemAgent_gvoe4_890`,inlineThreadCommentActions:`_inlineThreadCommentActions_gvoe4_898`,threadIconBtn:`_threadIconBtn_gvoe4_904`,commentRow:`_commentRow_gvoe4_911`,commentContent:`_commentContent_gvoe4_917`,inlineThreadComposer:`_inlineThreadComposer_gvoe4_928`,inlineThreadEdit:`_inlineThreadEdit_gvoe4_931`,inlineThreadEditActions:`_inlineThreadEditActions_gvoe4_934`,headerAction:`_headerAction_gvoe4_203`,threadActionBtn:`_threadActionBtn_gvoe4_952`,threadEmpty:`_threadEmpty_gvoe4_958`,threadListInlineBorderless:`_threadListInlineBorderless_gvoe4_961`,emptyStateCard:`_emptyStateCard_gvoe4_967`},jA=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})),Q=o(((e,t)=>{t.exports=jA()}))();function MA({style:e,placeholder:t,onSubmit:n,submitLabel:r=`添加评论`,onCancel:i}){let[a,o]=v.useState(``),[s,c]=v.useState(!1);return(0,Q.jsxs)(`form`,{className:Z.composer,style:e,onSubmit:e=>{e.preventDefault(),a.trim()&&(c(!0),n(a.trim()).then(()=>o(``)).finally(()=>c(!1)))},children:[(0,Q.jsx)(ED.TextArea,{placeholder:t,value:a,onChange:e=>o(e.target.value),autoSize:{minRows:3,maxRows:8}}),(0,Q.jsxs)(GE,{gap:`small`,justify:`end`,children:[(0,Q.jsx)(HC,{htmlType:`submit`,loading:s,type:`primary`,size:`small`,children:r}),i?(0,Q.jsx)(HC,{onClick:i,size:`small`,children:`取消`}):null]})]})}function NA({onCancel:e,onSubmit:t}){return(0,Q.jsx)(`div`,{className:Z.popover,children:(0,Q.jsx)(MA,{placeholder:`请输入行内评论...`,submitLabel:`评论`,onSubmit:t,onCancel:e})})}var PA={submit:`待提交`,replied:`已回复`,resolved:`已解决`};function FA(e){return e.status===`resolved`?`resolved`:IA(e)}function IA(e){return e.comments.some(e=>e.author===`agent`)?`replied`:`submit`}function LA(e){return e.length>0&&e.every(e=>FA(e)===`resolved`)?`resolved`:e.some(e=>IA(e)===`replied`)?`replied`:`submit`}function RA({threads:e,onFocus:t,onPatch:n,onDeleteThread:r,onReply:i,onPatchComment:a,onDeleteComment:o,onCopy:s,showStatusTag:c=!0}){let[l,u]=v.useState(null),[d,f]=v.useState(null),[p,m]=v.useState(``),h=e[0],g=LA(e),_=VA(e),y=_?FA(_):g,b=y===`resolved`,x=_?.comments.at(-1),S=HA(y,x?.author);return h?(0,Q.jsxs)(`div`,{className:`${Z.inlineThread} ${zA(g)}`,onClick:()=>t(h.id),children:[(0,Q.jsx)(`div`,{className:Z.inlineThreadHeader,children:c&&g!==`replied`?(0,Q.jsx)(bk,{className:`${Z.threadTag} ${BA(g)}`,children:PA[g]}):null}),e.map(e=>{let n=FA(e);return(0,Q.jsx)(`div`,{className:Z.inlineThreadSection,onClick:n=>{n.stopPropagation(),t(e.id)},children:e.comments.map(t=>{let r=t.author===`agent`,i=g===`submit`&&n===`submit`&&!r;return(0,Q.jsx)(`div`,{className:`${Z.inlineThreadCommentItem} ${r?Z.inlineThreadCommentItemAgent:``}`,children:(0,Q.jsxs)(`div`,{className:Z.commentRow,children:[(0,Q.jsxs)(`div`,{className:Z.commentContent,children:[r?(0,Q.jsx)(xA.Text,{className:Z.inlineThreadAgentLabel,strong:!0,children:`Agent`}):null,d===t.id?(0,Q.jsxs)(`div`,{className:Z.inlineThreadEdit,children:[(0,Q.jsx)(ED.TextArea,{value:p,autoSize:{minRows:3,maxRows:8},onClick:e=>e.stopPropagation(),onChange:e=>m(e.target.value)}),(0,Q.jsxs)(`div`,{className:Z.inlineThreadEditActions,children:[(0,Q.jsx)(HC,{size:`small`,onClick:e=>{e.stopPropagation(),f(null),m(``)},children:`取消`}),(0,Q.jsx)(HC,{size:`small`,type:`primary`,onClick:async n=>{n.stopPropagation(),await a(e.id,t.id,p),f(null),m(``)},children:`保存`})]})]}):(0,Q.jsx)(xA.Paragraph,{className:Z.inlineThreadBody,children:t.body})]}),i&&d!==t.id?(0,Q.jsx)(`div`,{className:Z.inlineThreadCommentActions,children:(0,Q.jsx)(HC,{className:Z.threadIconBtn,type:`text`,icon:(0,Q.jsx)(Ek,{}),onClick:e=>{e.stopPropagation(),f(t.id),m(t.body)}})}):null]})},t.id)})},e.id)}),_&&l===_.id?(0,Q.jsx)(`div`,{className:Z.inlineThreadComposer,children:(0,Q.jsx)(MA,{placeholder:`继续评论...`,submitLabel:`回复`,onCancel:()=>{u(null)},onSubmit:async e=>{await i(_.id,e),u(null)}})}):null,_?(0,Q.jsxs)(`div`,{className:Z.inlineThreadActions,children:[S?(0,Q.jsx)(HC,{type:`primary`,className:Z.threadActionBtn,icon:(0,Q.jsx)(Yk,{}),onClick:e=>{e.stopPropagation(),s({type:`thread`,threadId:_.id})},children:`复制`}):null,y===`replied`?(0,Q.jsx)(_x,{title:`要求再改`,children:(0,Q.jsx)(HC,{className:Z.threadActionBtn,icon:(0,Q.jsx)(AA,{}),onClick:e=>{e.stopPropagation(),u(_.id)},children:`要求再改`})}):null,y===`replied`?null:(0,Q.jsx)(YO,{title:e.length>1?`删除这组评论?`:`删除这条评论线程?`,okText:`删除`,cancelText:`取消`,onConfirm:async()=>{for(let t of e)await r(t.id)},children:(0,Q.jsx)(HC,{className:Z.threadActionBtn,icon:(0,Q.jsx)(Ck,{}),danger:!0,onClick:e=>e.stopPropagation(),children:`删除`})}),b?(0,Q.jsx)(_x,{title:`重新打开`,children:(0,Q.jsx)(HC,{className:Z.threadActionBtn,icon:(0,Q.jsx)(QO,{}),onClick:e=>{e.stopPropagation(),n(_.id,`submit`)},children:`重新打开`})}):null,y===`replied`?(0,Q.jsx)(_x,{title:`确认完成`,children:(0,Q.jsx)(HC,{className:Z.threadActionBtn,icon:(0,Q.jsx)(Sb,{}),onClick:e=>{e.stopPropagation(),n(_.id,`resolved`)},children:`确认完成`})}):null]}):null]}):null}function zA(e){return e===`submit`?Z.inlineThreadSubmit:e===`replied`?Z.inlineThreadReplied:Z.inlineThreadResolved}function BA(e){return e===`submit`?Z.threadTagSubmit:e===`replied`?Z.threadTagReplied:Z.threadTagResolved}function VA(e){return e.find(e=>FA(e)===`replied`)??e.find(e=>FA(e)===`submit`)??e[0]}function HA(e,t){return e===`submit`?!0:e===`replied`&&t===`user`}function UA(e){return e.anchor.type===`file`?0:e.anchor.lineNumber}function WA(e,t){return t.filter(t=>t.filePath===e&&t.status!==`resolved`).sort((e,t)=>UA(e)-UA(t)||e.createdAt.localeCompare(t.createdAt))[0]}function GA(e){return e.anchor.type===`diff-line`?`${e.anchor.side}:${e.anchor.lineNumber}`:null}function KA(e){e.scrollTop=0}function qA(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();e.scrollTop+=r.top-n.top}function JA(e){return e===`add`?`+`:e===`remove`?`-`:``}function YA({file:e,threads:t,onCreate:n,onLocateThread:r,onPatchThread:i,onDeleteThread:a,onReplyThread:o,onPatchComment:s,onDeleteComment:c,onCopyThread:l,viewMode:u}){let[d,f]=v.useState(null),p=v.useRef(null),m=v.useRef(``);v.useEffect(()=>{let n=p.current;if(!n)return;let r=`${e.path}:${u}`;if(m.current===r)return;m.current=r;let i=WA(e.path,t);window.requestAnimationFrame(()=>{if(!i||i.anchor.type===`file`){KA(n);return}let e=GA(i),t=e?n.querySelector(`[data-review-anchor="${CSS.escape(e)}"]`):null;if(!t){KA(n);return}qA(n,t)})},[e.path,t,u]);function h(e){return e.length===0?null:(0,Q.jsx)(`div`,{className:Z.inlineThreadStack,children:(0,Q.jsx)(RA,{threads:e,onFocus:r,onPatch:i,onDeleteThread:a,onReply:o,onPatchComment:s,onDeleteComment:c,onCopy:l})})}function g(r,i,a){let o=r.type===`remove`?`old`:`new`,s=o===`old`?r.oldLineNumber:r.newLineNumber,c=`${a}-${o}-${s}-${i}`,l=t.filter(t=>t.anchor.type===`diff-line`&&t.anchor.filePath===e.path&&t.anchor.side===o&&t.anchor.lineNumber===s);return(0,Q.jsxs)(`div`,{className:r.type===`add`?`${Z.diffRow} ${Z.add}`:r.type===`remove`?`${Z.diffRow} ${Z.remove}`:Z.diffRow,"data-review-anchor":`${o}:${s}`,children:[(0,Q.jsx)(`button`,{className:Z.lineNo,onClick:()=>r.oldLineNumber&&f(c),children:r.oldLineNumber??``}),(0,Q.jsx)(`button`,{className:Z.lineNo,onClick:()=>r.newLineNumber&&f(c),children:r.newLineNumber??``}),(0,Q.jsx)(`span`,{className:r.type===`add`?`${Z.lineSign} ${Z.signAdd}`:r.type===`remove`?`${Z.lineSign} ${Z.signRemove}`:Z.lineSign,children:JA(r.type)}),(0,Q.jsx)(`pre`,{className:Z.codeLine,children:r.content||` `}),s&&l.length===0?(0,Q.jsx)(`button`,{className:Z.commentTrigger,type:`button`,"aria-label":`添加行评论`,onClick:()=>f(c),children:(0,Q.jsx)(wA,{})}):null,d===c&&s?(0,Q.jsx)(NA,{onCancel:()=>f(null),onSubmit:async t=>{await n({type:`diff-line`,filePath:e.path,side:o,lineNumber:s},t),f(null)}}):null,h(l)]},c)}function _(e){let t=[],n=0;for(;n<e.lines.length;){let r=e.lines[n];if(r.type===`context`){t.push({key:`${e.header}-context-${n}`,oldCell:{lineNumber:r.oldLineNumber,content:r.content,type:`context`,side:`old`},newCell:{lineNumber:r.newLineNumber,content:r.content,type:`context`,side:`new`}}),n+=1;continue}if(r.type===`remove`){let r=[],i=[];for(;n<e.lines.length&&e.lines[n].type===`remove`;)r.push(e.lines[n]),n+=1;for(;n<e.lines.length&&e.lines[n].type===`add`;)i.push(e.lines[n]),n+=1;let a=Math.max(r.length,i.length);for(let o=0;o<a;o+=1){let a=r[o],s=i[o];t.push({key:`${e.header}-change-${n}-${o}`,oldCell:a?{lineNumber:a.oldLineNumber,content:a.content,type:`remove`,side:`old`}:{content:``,type:`empty`,side:`old`},newCell:s?{lineNumber:s.newLineNumber,content:s.content,type:`add`,side:`new`}:{content:``,type:`empty`,side:`new`}})}continue}t.push({key:`${e.header}-add-${n}`,oldCell:{content:``,type:`empty`,side:`old`},newCell:{lineNumber:r.newLineNumber,content:r.content,type:`add`,side:`new`}}),n+=1}return t}function y(r,i){let a=r.lineNumber?t.filter(t=>t.anchor.type===`diff-line`&&t.anchor.filePath===e.path&&t.anchor.side===r.side&&t.anchor.lineNumber===r.lineNumber):[],o=`${i}-${r.side}-${r.lineNumber??`empty`}`;return(0,Q.jsxs)(`div`,{className:r.type===`add`?`${Z.splitCell} ${Z.add}`:r.type===`remove`?`${Z.splitCell} ${Z.remove}`:r.type===`empty`?`${Z.splitCell} ${Z.emptyCell}`:Z.splitCell,"data-review-anchor":r.lineNumber?`${r.side}:${r.lineNumber}`:void 0,children:[(0,Q.jsx)(`button`,{className:Z.lineNo,onClick:()=>r.lineNumber&&f(o),children:r.lineNumber??``}),(0,Q.jsx)(`span`,{className:r.type===`add`?`${Z.lineSign} ${Z.signAdd}`:r.type===`remove`?`${Z.lineSign} ${Z.signRemove}`:Z.lineSign,children:JA(r.type)}),(0,Q.jsx)(`pre`,{className:Z.codeLine,children:r.content||` `}),r.lineNumber&&a.length===0?(0,Q.jsx)(`button`,{className:Z.commentTrigger,type:`button`,"aria-label":`添加行评论`,onClick:()=>f(o),children:(0,Q.jsx)(wA,{})}):null,d===o&&r.lineNumber?(0,Q.jsx)(NA,{onCancel:()=>f(null),onSubmit:async t=>{await n({type:`diff-line`,filePath:e.path,side:r.side,lineNumber:r.lineNumber},t),f(null)}}):null,h(a)]},o)}return(0,Q.jsx)(`div`,{className:Z.diffCard,ref:p,children:e.hunks.map(e=>(0,Q.jsxs)(`div`,{className:Z.hunk,children:[(0,Q.jsx)(`div`,{className:Z.hunkHeader,children:e.header}),u===`inline`?e.lines.map((t,n)=>g(t,n,e.header)):(0,Q.jsxs)(`div`,{className:Z.splitTable,children:[(0,Q.jsxs)(`div`,{className:Z.splitHead,children:[(0,Q.jsx)(`div`,{children:`Old`}),(0,Q.jsx)(`div`,{children:`New`})]}),_(e).map(e=>(0,Q.jsxs)(`div`,{className:Z.splitRow,children:[y(e.oldCell,e.key),y(e.newCell,e.key)]},e.key))]})]},e.header))})}function XA({file:e,threads:t,onCreate:n,onCopy:r,onLocateThread:i,onPatchThread:a,onDeleteThread:o,onReplyThread:s,onPatchComment:c,onDeleteComment:l,onCopyThread:u}){let[d,f]=v.useState(!1),p=t.filter(t=>t.filePath===e.path&&t.status!==`resolved`),m=t.filter(t=>t.filePath===e.path&&t.anchor.type===`file`);return(0,Q.jsxs)(IT,{className:Z.fileHeader,children:[(0,Q.jsxs)(`div`,{className:Z.headerTop,children:[(0,Q.jsx)(xA.Text,{strong:!0,children:e.path}),(0,Q.jsxs)(`div`,{className:Z.headerActions,children:[(0,Q.jsx)(HC,{type:`primary`,className:Z.headerAction,icon:(0,Q.jsx)(Yk,{}),onClick:()=>void r({type:`file-unresolved`,filePath:e.path}),children:`批量提交当前文件的review`}),(0,Q.jsx)(HC,{className:Z.headerAction,icon:(0,Q.jsx)(wA,{}),type:d?`primary`:`default`,onClick:()=>f(e=>!e),children:`文件级评论`})]})]}),d?(0,Q.jsx)(MA,{style:{marginTop:16},placeholder:`请输入文件级审查评论...`,onSubmit:async t=>{await n({type:`file`,filePath:e.path},t),f(!1)},onCancel:()=>f(!1)}):null,p.length>0?(0,Q.jsxs)(bk,{className:Z.threadCount,color:`gold`,children:[p.length,` 个评论线程`]}):null,m.length>0?(0,Q.jsx)(`div`,{className:Z.fileLevelInlineThreads,children:(0,Q.jsx)(RA,{threads:m,onFocus:i,onPatch:a,onDeleteThread:o,onReply:s,onPatchComment:c,onDeleteComment:l,onCopy:u})}):null]})}function ZA(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var QA=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$A=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ej={};function tj(e,t){return((t||ej).jsx?$A:QA).test(e)}var nj=/[ \t\n\f\r]/g;function rj(e){return typeof e==`object`?e.type===`text`?ij(e.value):!1:ij(e)}function ij(e){return e.replace(nj,``)===``}var aj=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};aj.prototype.normal={},aj.prototype.property={},aj.prototype.space=void 0;function oj(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new aj(n,r,t)}function sj(e){return e.toLowerCase()}var cj=class{constructor(e,t){this.attribute=t,this.property=e}};cj.prototype.attribute=``,cj.prototype.booleanish=!1,cj.prototype.boolean=!1,cj.prototype.commaOrSpaceSeparated=!1,cj.prototype.commaSeparated=!1,cj.prototype.defined=!1,cj.prototype.mustUseProperty=!1,cj.prototype.number=!1,cj.prototype.overloadedBoolean=!1,cj.prototype.property=``,cj.prototype.spaceSeparated=!1,cj.prototype.space=void 0;var lj=s({boolean:()=>dj,booleanish:()=>fj,commaOrSpaceSeparated:()=>gj,commaSeparated:()=>hj,number:()=>$,overloadedBoolean:()=>pj,spaceSeparated:()=>mj}),uj=0,dj=_j(),fj=_j(),pj=_j(),$=_j(),mj=_j(),hj=_j(),gj=_j();function _j(){return 2**++uj}var vj=Object.keys(lj),yj=class extends cj{constructor(e,t,n,r){let i=-1;if(super(e,t),bj(this,`space`,r),typeof n==`number`)for(;++i<vj.length;){let e=vj[i];bj(this,vj[i],(n&lj[e])===lj[e])}}};yj.prototype.defined=!0;function bj(e,t,n){n&&(e[t]=n)}function xj(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new yj(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[sj(r)]=r,n[sj(a.attribute)]=r}return new aj(t,n,e.space)}var Sj=xj({properties:{ariaActiveDescendant:null,ariaAtomic:fj,ariaAutoComplete:null,ariaBusy:fj,ariaChecked:fj,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:mj,ariaCurrent:null,ariaDescribedBy:mj,ariaDetails:null,ariaDisabled:fj,ariaDropEffect:mj,ariaErrorMessage:null,ariaExpanded:fj,ariaFlowTo:mj,ariaGrabbed:fj,ariaHasPopup:null,ariaHidden:fj,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:mj,ariaLevel:$,ariaLive:null,ariaModal:fj,ariaMultiLine:fj,ariaMultiSelectable:fj,ariaOrientation:null,ariaOwns:mj,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:fj,ariaReadOnly:fj,ariaRelevant:null,ariaRequired:fj,ariaRoleDescription:mj,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:fj,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Cj(e,t){return t in e?e[t]:t}function wj(e,t){return Cj(e,t.toLowerCase())}var Tj=xj({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:hj,acceptCharset:mj,accessKey:mj,action:null,allow:null,allowFullScreen:dj,allowPaymentRequest:dj,allowUserMedia:dj,alt:null,as:null,async:dj,autoCapitalize:null,autoComplete:mj,autoFocus:dj,autoPlay:dj,blocking:mj,capture:null,charSet:null,checked:dj,cite:null,className:mj,cols:$,colSpan:null,content:null,contentEditable:fj,controls:dj,controlsList:mj,coords:$|hj,crossOrigin:null,data:null,dateTime:null,decoding:null,default:dj,defer:dj,dir:null,dirName:null,disabled:dj,download:pj,draggable:fj,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:dj,formTarget:null,headers:mj,height:$,hidden:pj,high:$,href:null,hrefLang:null,htmlFor:mj,httpEquiv:mj,id:null,imageSizes:null,imageSrcSet:null,inert:dj,inputMode:null,integrity:null,is:null,isMap:dj,itemId:null,itemProp:mj,itemRef:mj,itemScope:dj,itemType:mj,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:dj,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:dj,muted:dj,name:null,nonce:null,noModule:dj,noValidate:dj,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:dj,optimum:$,pattern:null,ping:mj,placeholder:null,playsInline:dj,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:dj,referrerPolicy:null,rel:mj,required:dj,reversed:dj,rows:$,rowSpan:$,sandbox:mj,scope:null,scoped:dj,seamless:dj,selected:dj,shadowRootClonable:dj,shadowRootDelegatesFocus:dj,shadowRootMode:null,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:fj,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:dj,useMap:null,value:fj,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:mj,axis:null,background:null,bgColor:null,border:$,borderColor:null,bottomMargin:$,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:dj,declare:dj,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:dj,noHref:dj,noShade:dj,noWrap:dj,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:fj,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:dj,disableRemotePlayback:dj,prefix:null,property:null,results:$,security:null,unselectable:null},space:`html`,transform:wj}),Ej=xj({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:gj,accentHeight:$,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$,amplitude:$,arabicForm:null,ascent:$,attributeName:null,attributeType:null,azimuth:$,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$,by:null,calcMode:null,capHeight:$,className:mj,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:$,diffuseConstant:$,direction:null,display:null,dur:null,divisor:$,dominantBaseline:null,download:dj,dx:null,dy:null,edgeMode:null,editable:null,elevation:$,enableBackground:null,end:null,event:null,exponent:$,externalResourcesRequired:null,fill:null,fillOpacity:$,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:hj,g2:hj,glyphName:hj,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$,horizOriginX:$,horizOriginY:$,id:null,ideographic:$,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$,k:$,k1:$,k2:$,k3:$,k4:$,kernelMatrix:gj,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:$,overlineThickness:$,paintOrder:null,panose1:null,path:null,pathLength:$,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:mj,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:gj,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:gj,rev:gj,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:gj,requiredFeatures:gj,requiredFonts:gj,requiredFormats:gj,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:$,specularExponent:$,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$,strikethroughThickness:$,string:null,stroke:null,strokeDashArray:gj,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:gj,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:gj,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$,underlineThickness:$,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$,values:null,vAlphabetic:$,vMathematical:$,vectorEffect:null,vHanging:$,vIdeographic:$,version:null,vertAdvY:$,vertOriginX:$,vertOriginY:$,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Cj}),Dj=xj({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),Oj=xj({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:wj}),kj=xj({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Aj={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},jj=/[A-Z]/g,Mj=/-[a-z]/g,Nj=/^data[-\w.:]+$/i;function Pj(e,t){let n=sj(t),r=t,i=cj;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Nj.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Mj,Ij);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Mj.test(e)){let n=e.replace(jj,Fj);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=yj}return new i(r,t)}function Fj(e){return`-`+e.toLowerCase()}function Ij(e){return e.charAt(1).toUpperCase()}var Lj=oj([Sj,Tj,Dj,Oj,kj],`html`),Rj=oj([Sj,Ej,Dj,Oj,kj],`svg`);function zj(e){return e.join(` `).trim()}var Bj=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
259
+ `,d=`/`,f=`*`,p=``,m=`comment`,h=`declaration`;function g(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,g=1;function v(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(u);g=~n?e.length-n:g+e.length}function y(){var e={line:l,column:g};return function(t){return t.position=new b(e),C(),t}}function b(e){this.start=e,this.end={line:l,column:g},this.source=t.source}b.prototype.content=e;function x(n){var r=Error(t.source+`:`+l+`:`+g+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=g,r.source=e,!t.silent)throw r}function S(t){var n=t.exec(e);if(n){var r=n[0];return v(r),e=e.slice(r.length),n}}function C(){S(i)}function w(e){var t;for(e||=[];t=T();)t!==!1&&e.push(t);return e}function T(){var t=y();if(!(d!=e.charAt(0)||f!=e.charAt(1))){for(var n=2;p!=e.charAt(n)&&(f!=e.charAt(n)||d!=e.charAt(n+1));)++n;if(n+=2,p===e.charAt(n-1))return x(`End of comment missing`);var r=e.slice(2,n-2);return g+=2,v(r),e=e.slice(n),g+=2,t({type:m,comment:r})}}function E(){var e=y(),t=S(a);if(t){if(T(),!S(o))return x(`property missing ':'`);var r=S(s),i=e({type:h,property:_(t[0].replace(n,p)),value:r?_(r[0].replace(n,p)):p});return S(c),i}}function D(){var e=[];w(e);for(var t;t=E();)t!==!1&&(e.push(t),w(e));return e}return C(),D()}function _(e){return e?e.replace(l,p):p}t.exports=g})),Vj=o((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.default=r;var n=t(Bj());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),Hj=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),Uj=o(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Vj()),r=Hj();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),Wj=Kj(`end`),Gj=Kj(`start`);function Kj(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function qj(e){let t=Gj(e),n=Wj(e);if(t&&n)return{start:t,end:n}}function Jj(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Xj(e.position):`start`in e||`end`in e?Xj(e):`line`in e||`column`in e?Yj(e):``}function Yj(e){return Zj(e&&e.line)+`:`+Zj(e&&e.column)}function Xj(e){return Yj(e&&e.start)+`-`+Yj(e&&e.end)}function Zj(e){return e&&typeof e==`number`?e:1}var Qj=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=Jj(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Qj.prototype.file=``,Qj.prototype.name=``,Qj.prototype.reason=``,Qj.prototype.message=``,Qj.prototype.stack=``,Qj.prototype.column=void 0,Qj.prototype.line=void 0,Qj.prototype.ancestors=void 0,Qj.prototype.cause=void 0,Qj.prototype.fatal=void 0,Qj.prototype.place=void 0,Qj.prototype.ruleId=void 0,Qj.prototype.source=void 0;var $j=l(Uj(),1),eM={}.hasOwnProperty,tM=new Map,nM=/[A-Z]/g,rM=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),iM=new Set([`td`,`th`]),aM=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function oM(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=_M(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=gM(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?Rj:Lj,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=sM(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function sM(e,t,n){if(t.type===`element`)return cM(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return lM(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return dM(e,t,n);if(t.type===`mdxjsEsm`)return uM(e,t);if(t.type===`root`)return fM(e,t,n);if(t.type===`text`)return pM(e,t)}function cM(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=Rj,e.schema=i),e.ancestors.push(t);let a=CM(e,t.tagName,!1),o=vM(e,t),s=bM(e,t);return rM.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!rj(e):!0})),mM(e,o,a,t),hM(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function lM(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}wM(e,t.position)}function uM(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);wM(e,t.position)}function dM(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=Rj,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:CM(e,t.name,!0),o=yM(e,t),s=bM(e,t);return mM(e,o,a,t),hM(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function fM(e,t,n){let r={};return hM(r,bM(e,t)),e.create(t,e.Fragment,r,n)}function pM(e,t){return t.value}function mM(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function hM(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function gM(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function _M(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=Gj(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function vM(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&eM.call(t.properties,i)){let a=xM(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&iM.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function yM(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else wM(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else wM(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function bM(e,t){let n=[],r=-1,i=e.passKeys?new Map:tM;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=sM(e,a,o);s!==void 0&&n.push(s)}return n}function xM(e,t,n){let r=Pj(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?ZA(n):zj(n)),r.property===`style`){let t=typeof n==`object`?n:SM(e,String(n));return e.stylePropertyNameCase===`css`&&(t=TM(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?Aj[r.property]||r.property:r.attribute,n]}}function SM(e,t){try{return(0,$j.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new Qj("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=aM+`#cannot-parse-style-attribute`,r}}function CM(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=tj(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=tj(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return eM.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);wM(e)}function wM(e,t){let n=new Qj("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=aM+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function TM(e){let t={},n;for(n in e)eM.call(e,n)&&(t[EM(n)]=e[n]);return t}function EM(e){let t=e.replace(nM,DM);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function DM(e){return`-`+e.toLowerCase()}var OM={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},kM={};function AM(e,t){let n=t||kM;return jM(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function jM(e,t,n){if(NM(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return MM(e.children,t,n)}return Array.isArray(e)?MM(e,t,n):``}function MM(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=jM(e[i],t,n);return r.join(``)}function NM(e){return!!(e&&typeof e==`object`)}var PM=document.createElement(`i`);function FM(e){let t=`&`+e+`;`;PM.innerHTML=t;let n=PM.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}function IM(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function LM(e,t){return e.length>0?(IM(e,e.length,0,t),e):t}var RM={}.hasOwnProperty;function zM(e){let t={},n=-1;for(;++n<e.length;)BM(t,e[n]);return t}function BM(e,t){let n;for(n in t){let r=(RM.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){RM.call(r,a)||(r[a]=[]);let e=i[a];VM(r[a],Array.isArray(e)?e:e?[e]:[])}}}function VM(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);IM(e,0,0,r)}function HM(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function UM(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var WM=nN(/[A-Za-z]/),GM=nN(/[\dA-Za-z]/),KM=nN(/[#-'*+\--9=?A-Z^-~]/);function qM(e){return e!==null&&(e<32||e===127)}var JM=nN(/\d/),YM=nN(/[\dA-Fa-f]/),XM=nN(/[!-/:-@[-`{-~]/);function ZM(e){return e!==null&&e<-2}function QM(e){return e!==null&&(e<0||e===32)}function $M(e){return e===-2||e===-1||e===32}var eN=nN(/\p{P}|\p{S}/u),tN=nN(/\s/);function nN(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function rN(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&GM(e.charCodeAt(n+1))&&GM(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function iN(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return $M(r)?(e.enter(n),s(r)):t(r)}function s(r){return $M(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var aN={tokenize:oN};function oN(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),iN(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return ZM(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var sN={tokenize:lN},cN={tokenize:uN};function lN(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return IM(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(cN,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(cN,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return ZM(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;IM(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-- >r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function uN(e,t,n){return iN(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function dN(e){if(e===null||QM(e)||tN(e))return 1;if(eN(e))return 2}function fN(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var pN={name:`attention`,resolveAll:mN,tokenize:hN};function mN(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};gN(d,-c),gN(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=LM(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=LM(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=LM(l,fN(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=LM(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=LM(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,IM(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function hN(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=dN(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=dN(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function gN(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var _N={name:`autolink`,tokenize:vN};function vN(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return WM(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||GM(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||GM(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||qM(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):KM(t)?(e.consume(t),l):n(t)}function u(e){return GM(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||GM(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var yN={partial:!0,tokenize:bN};function bN(e,t,n){return r;function r(t){return $M(t)?iN(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||ZM(e)?t(e):n(e)}}var xN={continuation:{tokenize:CN},exit:wN,name:`blockQuote`,tokenize:SN};function SN(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return $M(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function CN(e,t,n){let r=this;return i;function i(t){return $M(t)?iN(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(xN,t,n)(r)}}function wN(e){e.exit(`blockQuote`)}var TN={name:`characterEscape`,tokenize:EN};function EN(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return XM(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var DN={name:`characterReference`,tokenize:ON};function ON(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=GM,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=YM,u):(e.enter(`characterReferenceValue`),a=7,o=JM,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===GM&&!FM(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var kN={partial:!0,tokenize:MN},AN={concrete:!0,name:`codeFenced`,tokenize:jN};function jN(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),$M(t)?iN(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||ZM(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(kN,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||ZM(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):$M(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),iN(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||ZM(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||ZM(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&$M(t)?iN(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||ZM(t)?e.check(kN,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||ZM(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),$M(t)?iN(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),$M(t)?iN(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||ZM(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function MN(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var NN={name:`codeIndented`,tokenize:FN},PN={partial:!0,tokenize:IN};function FN(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),iN(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):ZM(t)?e.attempt(PN,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||ZM(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function IN(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):ZM(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):iN(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):ZM(e)?i(e):n(e)}}var LN={name:`codeText`,previous:zN,resolve:RN,tokenize:BN};function RN(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function zN(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function BN(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):ZM(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||ZM(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var VN=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&HN(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),HN(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),HN(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);HN(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);HN(this.left,t.reverse())}}};function HN(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function UN(e){let t={},n=-1,r,i,a,o,s,c,l,u=new VN(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,WN(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(!(o[1].type===`linePrefix`||o[1].type===`listItemIndent`))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return IM(e,0,1/0,u.slice(0)),!l}function WN(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var GN={resolve:qN,tokenize:JN},KN={partial:!0,tokenize:YN};function qN(e){return UN(e),e}function JN(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):ZM(t)?e.check(KN,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function YN(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),iN(e,a,`linePrefix`)}function a(i){if(i===null||ZM(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function XN(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||qM(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||ZM(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||QM(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||qM(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function ZN(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):ZM(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||ZM(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!$M(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function QN(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):ZM(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),iN(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||ZM(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function $N(e,t){let n;return r;function r(i){return ZM(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):$M(i)?iN(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var eP={name:`definition`,tokenize:nP},tP={partial:!0,tokenize:rP};function nP(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return ZN.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=UM(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return QM(t)?$N(e,l)(t):l(t)}function l(t){return XN(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(tP,d,d)(t)}function d(t){return $M(t)?iN(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||ZM(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function rP(e,t,n){return r;function r(t){return QM(t)?$N(e,i)(t):n(t)}function i(t){return QN(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return $M(t)?iN(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||ZM(e)?t(e):n(e)}}var iP={name:`hardBreakEscape`,tokenize:aP};function aP(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return ZM(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var oP={name:`headingAtx`,resolve:sP,tokenize:cP};function sP(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},IM(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function cP(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||QM(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||ZM(n)?(e.exit(`atxHeading`),t(n)):$M(n)?iN(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||QM(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var lP=`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.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),uP=[`pre`,`script`,`style`,`textarea`],dP={concrete:!0,name:`htmlFlow`,resolveTo:mP,tokenize:hP},fP={partial:!0,tokenize:_P},pP={partial:!0,tokenize:gP};function mP(e){let t=e.length;for(;t--&&!(e[t][0]===`enter`&&e[t][1].type===`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function hP(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:I):WM(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):WM(a)?(e.consume(a),i=4,r.interrupt?t:I):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:I):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return WM(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||QM(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&uP.includes(l)?(i=1,r.interrupt?t(s):O(s)):lP.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||GM(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return $M(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||WM(t)?(e.consume(t),b):$M(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||GM(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):$M(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):$M(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||ZM(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||QM(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||$M(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||ZM(t)?O(t):$M(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),L):t===63&&i===3?(e.consume(t),I):t===93&&i===5?(e.consume(t),F):ZM(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(fP,R,k)(t)):t===null||ZM(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(pP,A,R)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||ZM(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),I):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return uP.includes(n)?(e.consume(t),L):O(t)}return WM(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),I):O(t)}function I(t){return t===62?(e.consume(t),L):t===45&&i===2?(e.consume(t),I):O(t)}function L(t){return t===null||ZM(t)?(e.exit(`htmlFlowData`),R(t)):(e.consume(t),L)}function R(n){return e.exit(`htmlFlow`),t(n)}}function gP(e,t,n){let r=this;return i;function i(t){return ZM(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function _P(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(yN,t,n)}}var vP={name:`htmlText`,tokenize:yP};function yP(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):WM(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):WM(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):ZM(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):ZM(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):ZM(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):ZM(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return WM(t)?(e.consume(t),S):n(t)}function S(t){return t===45||GM(t)?(e.consume(t),S):C(t)}function C(t){return ZM(t)?(o=C,N(t)):$M(t)?(e.consume(t),C):M(t)}function w(t){return t===45||GM(t)?(e.consume(t),w):t===47||t===62||QM(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||WM(t)?(e.consume(t),E):ZM(t)?(o=T,N(t)):$M(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||GM(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):ZM(t)?(o=D,N(t)):$M(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):ZM(t)?(o=O,N(t)):$M(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):ZM(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||QM(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||QM(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return $M(t)?iN(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var bP={name:`labelEnd`,resolveAll:wP,resolveTo:TP,tokenize:EP},xP={tokenize:DP},SP={tokenize:OP},CP={tokenize:kP};function wP(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&IM(e,0,e.length,n),e}function TP(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=LM(s,e.slice(a+1,a+r+3)),s=LM(s,[[`enter`,u,t]]),s=LM(s,fN(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=LM(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=LM(s,e.slice(o+1)),s=LM(s,[[`exit`,c,t]]),IM(e,a,e.length,s),e}function EP(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(UM(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(xP,u,o?u:d)(t):t===91?e.attempt(SP,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(CP,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function DP(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return QM(t)?$N(e,a)(t):a(t)}function a(t){return t===41?u(t):XN(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return QM(t)?$N(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?QN(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return QM(t)?$N(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function OP(e,t,n){let r=this;return i;function i(t){return ZN.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(UM(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function kP(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var AP={name:`labelStartImage`,resolveAll:bP.resolveAll,tokenize:jP};function jP(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var MP={name:`labelStartLink`,resolveAll:bP.resolveAll,tokenize:NP};function NP(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var PP={name:`lineEnding`,tokenize:FP};function FP(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),iN(e,t,`linePrefix`)}}var IP={name:`thematicBreak`,tokenize:LP};function LP(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||ZM(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),$M(t)?iN(e,s,`whitespace`)(t):s(t))}}var RP={continuation:{tokenize:HP},exit:WP,name:`list`,tokenize:VP},zP={partial:!0,tokenize:GP},BP={partial:!0,tokenize:UP};function VP(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:JM(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(IP,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return JM(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(yN,r.interrupt?n:u,e.attempt(zP,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return $M(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function HP(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(yN,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,iN(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!$M(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(BP,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,iN(e,e.attempt(RP,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function UP(e,t,n){let r=this;return iN(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function WP(e){e.exit(this.containerState.type)}function GP(e,t,n){let r=this;return iN(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!$M(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var KP={name:`setextUnderline`,resolveTo:qP,tokenize:JP};function qP(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function JP(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),$M(t)?iN(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||ZM(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var YP={tokenize:XP};function XP(e){let t=this,n=e.attempt(yN,r,e.attempt(this.parser.constructs.flowInitial,i,iN(e,e.attempt(this.parser.constructs.flow,i,e.attempt(GN,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var ZP={resolveAll:tF()},QP=eF(`string`),$P=eF(`text`);function eF(e){return{resolveAll:tF(e===`text`?nF:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function tF(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function nF(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var rF=s({attentionMarkers:()=>dF,contentInitial:()=>aF,disable:()=>fF,document:()=>iF,flow:()=>sF,flowInitial:()=>oF,insideSpan:()=>uF,string:()=>cF,text:()=>lF}),iF={42:RP,43:RP,45:RP,48:RP,49:RP,50:RP,51:RP,52:RP,53:RP,54:RP,55:RP,56:RP,57:RP,62:xN},aF={91:eP},oF={[-2]:NN,[-1]:NN,32:NN},sF={35:oP,42:IP,45:[KP,IP],60:dP,61:KP,95:IP,96:AN,126:AN},cF={38:DN,92:TN},lF={[-5]:PP,[-4]:PP,[-3]:PP,33:AP,38:DN,42:pN,60:[_N,vP],91:MP,92:[iP,TN],93:bP,95:pN,96:LN},uF={null:[pN,ZP]},dF={null:[42,95]},fF={null:[]};function pF(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=LM(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=fN(a,l.events,l),l.events):[]}function f(e,t){return hF(p(e),t)}function p(e){return mF(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){ZM(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&IM(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function mF(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function hF(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
260
260
  `;break;case-3:o=`\r
261
- `;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function GP(e){let t={constructs:mM([MP,...(e||{}).extensions||[]]),content:n(PM),defined:[],document:n(IM),flow:n(wP),lazy:{},string:n(DP),text:n(OP)};return t;function n(e){return n;function n(n){return HP(t,e,n)}}}function KP(e){for(;!vN(e););return e}var qP=/[\0\t\n\r]/g;function JP(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(qP.lastIndex=u,c=qP.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var YP=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function XP(e){return e.replace(YP,ZP)}function ZP(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return _M(n.slice(t?2:1),t?16:10)}return uM(n)||e}var QP={}.hasOwnProperty;function $P(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),eF(n)(KP(GP(n).document().write(JP()(e,t,!0))))}function eF(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(ce),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(G),blockQuote:a(te),characterEscape:T,characterReference:T,codeFenced:a(ne),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(ne,o),codeText:a(re,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(ie),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(ae),hardBreakEscape:a(K),hardBreakTrailing:a(K),htmlFlow:a(oe,o),htmlFlowData:T,htmlText:a(oe,o),htmlTextData:T,image:a(se),label:o,link:a(ce),listItem:a(le),listItemValue:f,listOrdered:a(q,d),listUnordered:a(q),paragraph:a(ue),reference:z,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(G),strong:a(de),thematicBreak:a(pe)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:ee,autolinkProtocol:W,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:V,characterReferenceMarkerNumeric:V,characterReferenceValue:H,characterReference:U,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(j),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(k),htmlFlowData:E,htmlText:c(A),htmlTextData:E,image:c(N),label:F,labelText:P,lineEnding:D,link:c(M),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:B,resourceDestinationString:I,resourceTitleString:L,resource:R,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};nF(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];QP.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||iF).call(a,void 0,e[0])}for(r.position={start:tF(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tF(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(!(t[1].type===`linePrefix`||t[1].type===`blockQuotePrefix`||t[1].type===`blockQuotePrefixWhitespace`||t[1].type===`blockQuoteMarker`||t[1].type===`listItemIndent`))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:tF(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||iF).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+Cj({start:e.start,end:e.end})+`): it’s not open`);n.position.end=tF(e.end)}function u(){return aM(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=vM(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=fe(),n.position={start:tF(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=tF(e.end)}function D(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=tF(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function O(){this.data.atHardBreak=!0}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function N(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=XP(t),n.identifier=vM(t).toLowerCase()}function F(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function I(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function L(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function R(){this.data.inReference=void 0}function z(){this.data.referenceType=`collapsed`}function B(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=vM(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function V(e){this.data.characterReferenceType=e.type}function H(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=_M(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=uM(t);let i=this.stack[this.stack.length-1];i.value+=r}function U(e){let t=this.stack.pop();t.position.end=tF(e.end)}function W(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function ee(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function te(){return{type:`blockquote`,children:[]}}function ne(){return{type:`code`,lang:null,meta:null,value:``}}function re(){return{type:`inlineCode`,value:``}}function ie(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function ae(){return{type:`emphasis`,children:[]}}function G(){return{type:`heading`,depth:0,children:[]}}function K(){return{type:`break`}}function oe(){return{type:`html`,value:``}}function se(){return{type:`image`,title:null,url:``,alt:null}}function ce(){return{type:`link`,title:null,url:``,children:[]}}function q(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function le(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function ue(){return{type:`paragraph`,children:[]}}function de(){return{type:`strong`,children:[]}}function fe(){return{type:`text`,value:``}}function pe(){return{type:`thematicBreak`}}}function tF(e){return{line:e.line,column:e.column,offset:e.offset}}function nF(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?nF(e,r):rF(e,r)}}function rF(e,t){let n;for(n in t)if(QP.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function iF(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+Cj({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Cj({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+Cj({start:t.start,end:t.end})+`) is still open`)}function aF(e){let t=this;t.parser=n;function n(n){return $P(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function oF(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function sF(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
262
- `}]}function cF(e,t){let n=t.value?t.value+`
263
- `:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function lF(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function uF(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dF(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=MM(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function fF(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function pF(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function mF(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function hF(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return mF(e,t);let i={src:MM(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function gF(e,t){let n={src:MM(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function _F(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function vF(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return mF(e,t);let i={href:MM(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function yF(e,t){let n={href:MM(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function bF(e,t,n){let r=e.all(t),i=n?xF(n):SF(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
261
+ `;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function gF(e){let t={constructs:zM([rF,...(e||{}).extensions||[]]),content:n(aN),defined:[],document:n(sN),flow:n(YP),lazy:{},string:n(QP),text:n($P)};return t;function n(e){return n;function n(n){return pF(t,e,n)}}}function _F(e){for(;!UN(e););return e}var vF=/[\0\t\n\r]/g;function yF(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(vF.lastIndex=u,c=vF.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var bF=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xF(e){return e.replace(bF,SF)}function SF(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return HM(n.slice(t?2:1),t?16:10)}return FM(n)||e}var CF={}.hasOwnProperty;function wF(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),TF(n)(_F(gF(n).document().write(yF()(e,t,!0))))}function TF(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(ce),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(G),blockQuote:a(te),characterEscape:T,characterReference:T,codeFenced:a(ne),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(ne,o),codeText:a(re,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(ie),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(ae),hardBreakEscape:a(K),hardBreakTrailing:a(K),htmlFlow:a(oe,o),htmlFlowData:T,htmlText:a(oe,o),htmlTextData:T,image:a(se),label:o,link:a(ce),listItem:a(le),listItemValue:f,listOrdered:a(q,d),listUnordered:a(q),paragraph:a(ue),reference:z,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(G),strong:a(de),thematicBreak:a(pe)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:ee,autolinkProtocol:W,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:V,characterReferenceMarkerNumeric:V,characterReferenceValue:H,characterReference:U,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(j),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(k),htmlFlowData:E,htmlText:c(A),htmlTextData:E,image:c(N),label:F,labelText:P,lineEnding:D,link:c(M),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:B,resourceDestinationString:I,resourceTitleString:L,resource:R,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};DF(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];CF.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||kF).call(a,void 0,e[0])}for(r.position={start:EF(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:EF(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(!(t[1].type===`linePrefix`||t[1].type===`blockQuotePrefix`||t[1].type===`blockQuotePrefixWhitespace`||t[1].type===`blockQuoteMarker`||t[1].type===`listItemIndent`))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:EF(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||kF).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+Jj({start:e.start,end:e.end})+`): it’s not open`);n.position.end=EF(e.end)}function u(){return AM(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=UM(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=fe(),n.position={start:EF(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=EF(e.end)}function D(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=EF(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function O(){this.data.atHardBreak=!0}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function N(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=xF(t),n.identifier=UM(t).toLowerCase()}function F(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function I(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function L(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function R(){this.data.inReference=void 0}function z(){this.data.referenceType=`collapsed`}function B(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=UM(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function V(e){this.data.characterReferenceType=e.type}function H(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=HM(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=FM(t);let i=this.stack[this.stack.length-1];i.value+=r}function U(e){let t=this.stack.pop();t.position.end=EF(e.end)}function W(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function ee(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function te(){return{type:`blockquote`,children:[]}}function ne(){return{type:`code`,lang:null,meta:null,value:``}}function re(){return{type:`inlineCode`,value:``}}function ie(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function ae(){return{type:`emphasis`,children:[]}}function G(){return{type:`heading`,depth:0,children:[]}}function K(){return{type:`break`}}function oe(){return{type:`html`,value:``}}function se(){return{type:`image`,title:null,url:``,alt:null}}function ce(){return{type:`link`,title:null,url:``,children:[]}}function q(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function le(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function ue(){return{type:`paragraph`,children:[]}}function de(){return{type:`strong`,children:[]}}function fe(){return{type:`text`,value:``}}function pe(){return{type:`thematicBreak`}}}function EF(e){return{line:e.line,column:e.column,offset:e.offset}}function DF(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?DF(e,r):OF(e,r)}}function OF(e,t){let n;for(n in t)if(CF.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function kF(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+Jj({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Jj({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+Jj({start:t.start,end:t.end})+`) is still open`)}function AF(e){let t=this;t.parser=n;function n(n){return wF(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function jF(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function MF(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
262
+ `}]}function NF(e,t){let n=t.value?t.value+`
263
+ `:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function PF(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function FF(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function IF(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=rN(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function LF(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function RF(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function zF(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function BF(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return zF(e,t);let i={src:rN(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function VF(e,t){let n={src:rN(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function HF(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function UF(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return zF(e,t);let i={href:rN(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function WF(e,t){let n={href:rN(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function GF(e,t,n){let r=e.all(t),i=n?KF(n):qF(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
264
264
  `}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
265
- `});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function xF(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=SF(n[r])}return t}function SF(e){return e.spread??e.children.length>1}function CF(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function wF(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function TF(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function EF(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function DF(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=bj(t.children[1]),o=yj(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function OF(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function kF(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var AF=9,jF=32;function MF(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(NF(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(NF(t.slice(i),i>0,!1)),a.join(``)}function NF(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===AF||t===jF;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===AF||t===jF;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function PF(e,t){let n={type:`text`,value:MF(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function FF(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var IF={blockquote:oF,break:sF,code:cF,delete:lF,emphasis:uF,footnoteReference:dF,heading:fF,html:pF,imageReference:hF,image:gF,inlineCode:_F,linkReference:vF,link:yF,listItem:bF,list:CF,paragraph:wF,root:TF,strong:EF,table:DF,tableCell:kF,tableRow:OF,text:PF,thematicBreak:FF,toml:LF,yaml:LF,definition:LF,footnoteDefinition:LF};function LF(){}var RF=typeof self==`object`?self:globalThis,zF=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new RF[e](t)},BF=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(zF(e,t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(zF(a,o),i)};return r},VF=e=>BF(new Map,e)(0),HF=``,{toString:UF}={},{keys:WF}=Object,GF=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=UF.call(e).slice(8,-1);switch(n){case`Array`:return[1,HF];case`Object`:return[2,HF];case`Date`:return[3,HF];case`RegExp`:return[4,HF];case`Map`:return[5,HF];case`Set`:return[6,HF];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]},KF=([e,t])=>e===0&&(t===`function`||t===`symbol`),qF=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=GF(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of WF(r))(e||!KF(GF(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(KF(GF(n))||KF(GF(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!KF(GF(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},JF=(e,{json:t,lossy:n}={})=>{let r=[];return qF(!(t||n),!!t,new Map,r)(e),r},YF=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?VF(JF(e,t)):structuredClone(e):(e,t)=>VF(JF(e,t));function XF(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function ZF(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function QF(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||XF,r=e.options.footnoteBackLabel||ZF,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=MM(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...YF(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
265
+ `});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function KF(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=qF(n[r])}return t}function qF(e){return e.spread??e.children.length>1}function JF(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function YF(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function XF(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function ZF(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function QF(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=Gj(t.children[1]),o=Wj(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function $F(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function eI(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var tI=9,nI=32;function rI(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(iI(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(iI(t.slice(i),i>0,!1)),a.join(``)}function iI(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===tI||t===nI;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===tI||t===nI;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function aI(e,t){let n={type:`text`,value:rI(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function oI(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var sI={blockquote:jF,break:MF,code:NF,delete:PF,emphasis:FF,footnoteReference:IF,heading:LF,html:RF,imageReference:BF,image:VF,inlineCode:HF,linkReference:UF,link:WF,listItem:GF,list:JF,paragraph:YF,root:XF,strong:ZF,table:QF,tableCell:eI,tableRow:$F,text:aI,thematicBreak:oI,toml:cI,yaml:cI,definition:cI,footnoteDefinition:cI};function cI(){}var lI=typeof self==`object`?self:globalThis,uI=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new lI[e](t)},dI=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(uI(e,t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(uI(a,o),i)};return r},fI=e=>dI(new Map,e)(0),pI=``,{toString:mI}={},{keys:hI}=Object,gI=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=mI.call(e).slice(8,-1);switch(n){case`Array`:return[1,pI];case`Object`:return[2,pI];case`Date`:return[3,pI];case`RegExp`:return[4,pI];case`Map`:return[5,pI];case`Set`:return[6,pI];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]},_I=([e,t])=>e===0&&(t===`function`||t===`symbol`),vI=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=gI(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of hI(r))(e||!_I(gI(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(_I(gI(n))||_I(gI(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!_I(gI(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},yI=(e,{json:t,lossy:n}={})=>{let r=[];return vI(!(t||n),!!t,new Map,r)(e),r},bI=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?fI(yI(e,t)):structuredClone(e):(e,t)=>fI(yI(e,t));function xI(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function SI(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function CI(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||xI,r=e.options.footnoteBackLabel||SI,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=rN(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...bI(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
266
266
  `},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
267
- `}]}}var $F=(function(e){if(e==null)return iI;if(typeof e==`function`)return rI(e);if(typeof e==`object`)return Array.isArray(e)?eI(e):tI(e);if(typeof e==`string`)return nI(e);throw Error(`Expected function, string, or object as test`)});function eI(e){let t=[],n=-1;for(;++n<e.length;)t[n]=$F(e[n]);return rI(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function tI(e){let t=e;return rI(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function nI(e){return rI(t);function t(t){return t&&t.type===e}}function rI(e){return t;function t(t,n,r){return!!(aI(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function iI(){return!0}function aI(e){return typeof e==`object`&&!!e&&`type`in e}function oI(e){return e}var sI=[];function cI(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=$F(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,`name`,{value:`node (`+oI(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=sI,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=lI(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function lI(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?sI:[e]}function uI(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),cI(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}var dI={}.hasOwnProperty,fI={};function pI(e,t){let n=t||fI,r=new Map,i=new Map,a={all:s,applyData:hI,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...IF,...n.handlers},one:o,options:n,patch:mI,wrap:_I};return uI(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(dI.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=YF(n);return r.children=a.all(e),r}return YF(e)}return(a.options.unknownHandler||gI)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=vI(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=vI(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function mI(e,t){e.position&&(t.position=Sj(e))}function hI(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,YF(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function gI(e,t){let n=t.data||{},r=`value`in t&&!(dI.call(n,`hProperties`)||dI.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function _I(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
267
+ `}]}}var wI=(function(e){if(e==null)return kI;if(typeof e==`function`)return OI(e);if(typeof e==`object`)return Array.isArray(e)?TI(e):EI(e);if(typeof e==`string`)return DI(e);throw Error(`Expected function, string, or object as test`)});function TI(e){let t=[],n=-1;for(;++n<e.length;)t[n]=wI(e[n]);return OI(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function EI(e){let t=e;return OI(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function DI(e){return OI(t);function t(t){return t&&t.type===e}}function OI(e){return t;function t(t,n,r){return!!(AI(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function kI(){return!0}function AI(e){return typeof e==`object`&&!!e&&`type`in e}function jI(e){return e}var MI=[];function NI(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=wI(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,`name`,{value:`node (`+jI(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=MI,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=PI(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function PI(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?MI:[e]}function FI(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),NI(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}var II={}.hasOwnProperty,LI={};function RI(e,t){let n=t||LI,r=new Map,i=new Map,a={all:s,applyData:BI,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...sI,...n.handlers},one:o,options:n,patch:zI,wrap:HI};return FI(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(II.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=bI(n);return r.children=a.all(e),r}return bI(e)}return(a.options.unknownHandler||VI)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=UI(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=UI(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function zI(e,t){e.position&&(t.position=qj(e))}function BI(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,bI(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function VI(e,t){let n=t.data||{},r=`value`in t&&!(II.call(n,`hProperties`)||II.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function HI(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
268
268
  `});++r<e.length;)r&&n.push({type:`text`,value:`
269
269
  `}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
270
- `}),n}function vI(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function yI(e,t){let n=pI(e,t),r=n.one(e,void 0),i=QF(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
271
- `},i)),a}function bI(e,t){return e&&`run`in e?async function(n,r){let i=yI(n,{file:r,...t});await e.run(i,r)}:function(n,r){return yI(n,{file:r,...e||t})}}function xI(e){if(e)throw e}var SI=o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function CI(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function wI(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a){r(a);return}for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?TI(s,i)(...o):r(null,...o)}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function TI(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var EI={basename:DI,dirname:OI,extname:kI,join:AI,sep:`/`};function DI(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);NI(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function OI(e){if(NI(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function kI(e){NI(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function AI(...e){let t=-1,n;for(;++t<e.length;)NI(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:jI(n)}function jI(e){NI(e);let t=e.codePointAt(0)===47,n=MI(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function MI(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function NI(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var PI={cwd:FI};function FI(){return`/`}function II(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function LI(e){if(typeof e==`string`)e=new URL(e);else if(!II(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return RI(e)}function RI(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var zI=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],BI=class{constructor(e){let t;t=e?II(e)?{path:e}:typeof e==`string`||WI(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:PI.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<zI.length;){let e=zI[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)zI.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?EI.basename(this.path):void 0}set basename(e){HI(e,`basename`),VI(e,`basename`),this.path=EI.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?EI.dirname(this.path):void 0}set dirname(e){UI(this.basename,`dirname`),this.path=EI.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?EI.extname(this.path):void 0}set extname(e){if(VI(e,`extname`),UI(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=EI.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){II(e)&&(e=LI(e)),HI(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?EI.basename(this.path,this.extname):void 0}set stem(e){HI(e,`stem`),VI(e,`stem`),this.path=EI.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new Dj(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function VI(e,t){if(e&&e.includes(EI.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+EI.sep+"`")}function HI(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function UI(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function WI(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var GI=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),KI=l(SI(),1),qI={}.hasOwnProperty,JI=new class e extends GI{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=wI()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,KI.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(ZI(`data`,this.frozen),this.namespace[e]=t,this):qI.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ZI(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=eL(e),n=this.parser||this.Parser;return YI(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),YI(`process`,this.parser||this.Parser),XI(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=eL(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);nL(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),YI(`processSync`,this.parser||this.Parser),XI(`processSync`,this.compiler||this.Compiler),this.process(e,r),$I(`processSync`,`process`,t),n;function r(e,r){t=!0,xI(e),n=r}}run(e,t,n){QI(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=eL(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),$I(`runSync`,`run`,n),r;function i(e,t){xI(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=eL(t),r=this.compiler||this.Compiler;return XI(`stringify`,r),QI(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(ZI(`use`,this.frozen),e!=null)if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`)if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e);else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,KI.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null)if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];CI(o)&&CI(r)&&(r=(0,KI.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function YI(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function XI(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function ZI(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function QI(e){if(!CI(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function $I(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function eL(e){return tL(e)?e:new BI(e)}function tL(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function nL(e){return typeof e==`string`||rL(e)}function rL(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var iL=[],aL={allowDangerousHtml:!0},oL=/^(https?|ircs?|mailto|xmpp)$/i,sL=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function cL(e){let t=lL(e),n=uL(e);return dL(t.runSync(t.parse(n),n),e)}function lL(e){let t=e.rehypePlugins||iL,n=e.remarkPlugins||iL,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...aL}:aL;return JI().use(aF).use(n).use(bI,r).use(t)}function uL(e){let t=e.children||``,n=new BI;return typeof t==`string`?n.value=t:``+t,n}function dL(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||fL;for(let e of sL)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return uI(e,l),Fj(e,{Fragment:Q.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Q.jsx,jsxs:Q.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in rM)if(Object.hasOwn(rM,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=rM[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function fL(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||oL.test(e.slice(0,t))?e:``}var pL=l(o(((e,t)=>{(function(){var e=t===void 0?function(){return this||(0,eval)(`this`)}():t.exports=i;e.format=i,e.vsprintf=r,typeof console<`u`&&typeof console.log==`function`&&(e.printf=n);function n(){console.log(i.apply(null,arguments))}function r(e,t){return i.apply(null,[e].concat(t))}function i(e){for(var t=1,n=[].slice.call(arguments),r=0,i=e.length,a=``,o,s=!1,c,l,u=!1,d,f=function(){return n[t++]},p=function(){for(var t=``;/\d/.test(e[r]);)t+=e[r++],o=e[r];return t.length>0?parseInt(t):null};r<i;++r)if(o=e[r],s)switch(s=!1,o==`.`?(u=!1,o=e[++r]):o==`0`&&e[r+1]==`.`?(u=!0,r+=2,o=e[r]):u=!0,d=p(),o){case`b`:a+=parseInt(f(),10).toString(2);break;case`c`:c=f(),typeof c==`string`||c instanceof String?a+=c:a+=String.fromCharCode(parseInt(c,10));break;case`d`:a+=parseInt(f(),10);break;case`f`:l=String(parseFloat(f()).toFixed(d||6)),a+=u?l:l.replace(/^0/,``);break;case`j`:a+=JSON.stringify(f());break;case`o`:a+=`0`+parseInt(f(),10).toString(8);break;case`s`:a+=f();break;case`x`:a+=`0x`+parseInt(f(),10).toString(16);break;case`X`:a+=`0x`+parseInt(f(),10).toString(16).toUpperCase();break;default:a+=o;break}else o===`%`?s=!0:a+=o;return a}})()}))(),1),mL=Object.assign(hL(Error),{eval:hL(EvalError),range:hL(RangeError),reference:hL(ReferenceError),syntax:hL(SyntaxError),type:hL(TypeError),uri:hL(URIError)});function hL(e){return t.displayName=e.displayName||e.name,t;function t(t,...n){return new e(t&&(0,pL.default)(t,...n))}}var gL={}.hasOwnProperty,_L={yaml:`-`,toml:`+`};function vL(e){let t=[],n=-1,r=Array.isArray(e)?e:e?[e]:[`yaml`];for(;++n<r.length;)t[n]=yL(r[n]);return t}function yL(e){let t=e;if(typeof t==`string`){if(!gL.call(_L,t))throw mL("Missing matter definition for `%s`",t);t={type:t,marker:_L[t]}}else if(typeof t!=`object`)throw mL("Expected matter to be an object, not `%j`",t);if(!gL.call(t,`type`))throw mL("Missing `type` in matter `%j`",t);if(!gL.call(t,`fence`)&&!gL.call(t,`marker`))throw mL("Missing `marker` or `fence` in matter `%j`",t);return t}function bL(e){let t=vL(e),n={},r=-1;for(;++r<t.length;){let e=t[r],i=SL(e,`open`).charCodeAt(0),a=xL(e),o=n[i];Array.isArray(o)?o.push(a):n[i]=[a]}return{flow:n}}function xL(e){let t=e.anywhere,n=e.type,r=n+`Fence`,i=r+`Sequence`,a=n+`Value`,o={tokenize:u,partial:!0},s,c=0;return{tokenize:l,concrete:!0};function l(l,u,d){let f=this;return p;function p(a){let o=f.now();return o.column===1&&(o.line===1||t)&&(s=SL(e,`open`),c=0,a===s.charCodeAt(c))?(l.enter(n),l.enter(r),l.enter(i),m(a)):d(a)}function m(e){return c===s.length?(l.exit(i),OM(e)?(l.enter(`whitespace`),h(e)):g(e)):e===s.charCodeAt(c++)?(l.consume(e),m):d(e)}function h(e){return OM(e)?(l.consume(e),h):(l.exit(`whitespace`),g(e))}function g(t){return EM(t)?(l.exit(r),l.enter(`lineEnding`),l.consume(t),l.exit(`lineEnding`),s=SL(e,`close`),c=0,l.attempt(o,b,_)):d(t)}function _(e){return e===null||EM(e)?y(e):(l.enter(a),v(e))}function v(e){return e===null||EM(e)?(l.exit(a),y(e)):(l.consume(e),v)}function y(e){return e===null?d(e):(l.enter(`lineEnding`),l.consume(e),l.exit(`lineEnding`),l.attempt(o,b,_))}function b(e){return l.exit(n),u(e)}}function u(e,t,n){let a=0;return o;function o(t){return t===s.charCodeAt(a)?(e.enter(r),e.enter(i),c(t)):n(t)}function c(t){return a===s.length?(e.exit(i),OM(t)?(e.enter(`whitespace`),l(t)):u(t)):t===s.charCodeAt(a++)?(e.consume(t),c):n(t)}function l(t){return OM(t)?(e.consume(t),l):(e.exit(`whitespace`),u(t))}function u(i){return i===null||EM(i)?(e.exit(r),t(i)):n(i)}}}function SL(e,t){return e.marker?CL(e.marker,t).repeat(3):CL(e.fence,t)}function CL(e,t){return typeof e==`string`?e:e[t]}function wL(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function TL(e){let t=vL(e),n={},r={},i=-1;for(;++i<t.length;){let e=t[i];n[e.type]=EL(e),r[e.type]=DL,r[e.type+`Value`]=OL}return{enter:n,exit:r}}function EL(e){return t;function t(t){this.enter({type:e.type,value:``},t),this.buffer()}}function DL(e){let t=this.resume(),n=this.stack[this.stack.length-1];`value`in n,this.exit(e),n.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``)}function OL(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function kL(e){let t=[],n={},r=vL(e),i=-1;for(;++i<r.length;){let e=r[i];n[e.type]=AL(e);let a=jL(e,`open`);t.push({atBreak:!0,character:a.charAt(0),after:wL(a.charAt(1))})}return{unsafe:t,handlers:n}}function AL(e){let t=jL(e,`open`),n=jL(e,`close`);return r;function r(e){return t+(e.value?`
270
+ `}),n}function UI(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function WI(e,t){let n=RI(e,t),r=n.one(e,void 0),i=CI(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
271
+ `},i)),a}function GI(e,t){return e&&`run`in e?async function(n,r){let i=WI(n,{file:r,...t});await e.run(i,r)}:function(n,r){return WI(n,{file:r,...e||t})}}function KI(e){if(e)throw e}var qI=o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function JI(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function YI(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a){r(a);return}for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?XI(s,i)(...o):r(null,...o)}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function XI(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var ZI={basename:QI,dirname:$I,extname:eL,join:tL,sep:`/`};function QI(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);iL(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function $I(e){if(iL(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function eL(e){iL(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function tL(...e){let t=-1,n;for(;++t<e.length;)iL(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:nL(n)}function nL(e){iL(e);let t=e.codePointAt(0)===47,n=rL(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function rL(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function iL(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var aL={cwd:oL};function oL(){return`/`}function sL(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function cL(e){if(typeof e==`string`)e=new URL(e);else if(!sL(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return lL(e)}function lL(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var uL=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],dL=class{constructor(e){let t;t=e?sL(e)?{path:e}:typeof e==`string`||hL(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:aL.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<uL.length;){let e=uL[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)uL.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?ZI.basename(this.path):void 0}set basename(e){pL(e,`basename`),fL(e,`basename`),this.path=ZI.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?ZI.dirname(this.path):void 0}set dirname(e){mL(this.basename,`dirname`),this.path=ZI.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?ZI.extname(this.path):void 0}set extname(e){if(fL(e,`extname`),mL(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=ZI.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){sL(e)&&(e=cL(e)),pL(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?ZI.basename(this.path,this.extname):void 0}set stem(e){pL(e,`stem`),fL(e,`stem`),this.path=ZI.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new Qj(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function fL(e,t){if(e&&e.includes(ZI.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+ZI.sep+"`")}function pL(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function mL(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function hL(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var gL=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),_L=l(qI(),1),vL={}.hasOwnProperty,yL=new class e extends gL{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=YI()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,_L.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(SL(`data`,this.frozen),this.namespace[e]=t,this):vL.call(this.namespace,e)&&this.namespace[e]||void 0:e?(SL(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=TL(e),n=this.parser||this.Parser;return bL(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),bL(`process`,this.parser||this.Parser),xL(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=TL(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);DL(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),bL(`processSync`,this.parser||this.Parser),xL(`processSync`,this.compiler||this.Compiler),this.process(e,r),wL(`processSync`,`process`,t),n;function r(e,r){t=!0,KI(e),n=r}}run(e,t,n){CL(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=TL(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),wL(`runSync`,`run`,n),r;function i(e,t){KI(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=TL(t),r=this.compiler||this.Compiler;return xL(`stringify`,r),CL(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(SL(`use`,this.frozen),e!=null)if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`)if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e);else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,_L.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null)if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];JI(o)&&JI(r)&&(r=(0,_L.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function bL(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function xL(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function SL(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function CL(e){if(!JI(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function wL(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function TL(e){return EL(e)?e:new dL(e)}function EL(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function DL(e){return typeof e==`string`||OL(e)}function OL(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var kL=[],AL={allowDangerousHtml:!0},jL=/^(https?|ircs?|mailto|xmpp)$/i,ML=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function NL(e){let t=PL(e),n=FL(e);return IL(t.runSync(t.parse(n),n),e)}function PL(e){let t=e.rehypePlugins||kL,n=e.remarkPlugins||kL,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...AL}:AL;return yL().use(AF).use(n).use(GI,r).use(t)}function FL(e){let t=e.children||``,n=new dL;return typeof t==`string`?n.value=t:``+t,n}function IL(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||LL;for(let e of ML)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return FI(e,l),oM(e,{Fragment:Q.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Q.jsx,jsxs:Q.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in OM)if(Object.hasOwn(OM,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=OM[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function LL(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||jL.test(e.slice(0,t))?e:``}var RL=l(o(((e,t)=>{(function(){var e=t===void 0?function(){return this||(0,eval)(`this`)}():t.exports=i;e.format=i,e.vsprintf=r,typeof console<`u`&&typeof console.log==`function`&&(e.printf=n);function n(){console.log(i.apply(null,arguments))}function r(e,t){return i.apply(null,[e].concat(t))}function i(e){for(var t=1,n=[].slice.call(arguments),r=0,i=e.length,a=``,o,s=!1,c,l,u=!1,d,f=function(){return n[t++]},p=function(){for(var t=``;/\d/.test(e[r]);)t+=e[r++],o=e[r];return t.length>0?parseInt(t):null};r<i;++r)if(o=e[r],s)switch(s=!1,o==`.`?(u=!1,o=e[++r]):o==`0`&&e[r+1]==`.`?(u=!0,r+=2,o=e[r]):u=!0,d=p(),o){case`b`:a+=parseInt(f(),10).toString(2);break;case`c`:c=f(),typeof c==`string`||c instanceof String?a+=c:a+=String.fromCharCode(parseInt(c,10));break;case`d`:a+=parseInt(f(),10);break;case`f`:l=String(parseFloat(f()).toFixed(d||6)),a+=u?l:l.replace(/^0/,``);break;case`j`:a+=JSON.stringify(f());break;case`o`:a+=`0`+parseInt(f(),10).toString(8);break;case`s`:a+=f();break;case`x`:a+=`0x`+parseInt(f(),10).toString(16);break;case`X`:a+=`0x`+parseInt(f(),10).toString(16).toUpperCase();break;default:a+=o;break}else o===`%`?s=!0:a+=o;return a}})()}))(),1),zL=Object.assign(BL(Error),{eval:BL(EvalError),range:BL(RangeError),reference:BL(ReferenceError),syntax:BL(SyntaxError),type:BL(TypeError),uri:BL(URIError)});function BL(e){return t.displayName=e.displayName||e.name,t;function t(t,...n){return new e(t&&(0,RL.default)(t,...n))}}var VL={}.hasOwnProperty,HL={yaml:`-`,toml:`+`};function UL(e){let t=[],n=-1,r=Array.isArray(e)?e:e?[e]:[`yaml`];for(;++n<r.length;)t[n]=WL(r[n]);return t}function WL(e){let t=e;if(typeof t==`string`){if(!VL.call(HL,t))throw zL("Missing matter definition for `%s`",t);t={type:t,marker:HL[t]}}else if(typeof t!=`object`)throw zL("Expected matter to be an object, not `%j`",t);if(!VL.call(t,`type`))throw zL("Missing `type` in matter `%j`",t);if(!VL.call(t,`fence`)&&!VL.call(t,`marker`))throw zL("Missing `marker` or `fence` in matter `%j`",t);return t}function GL(e){let t=UL(e),n={},r=-1;for(;++r<t.length;){let e=t[r],i=qL(e,`open`).charCodeAt(0),a=KL(e),o=n[i];Array.isArray(o)?o.push(a):n[i]=[a]}return{flow:n}}function KL(e){let t=e.anywhere,n=e.type,r=n+`Fence`,i=r+`Sequence`,a=n+`Value`,o={tokenize:u,partial:!0},s,c=0;return{tokenize:l,concrete:!0};function l(l,u,d){let f=this;return p;function p(a){let o=f.now();return o.column===1&&(o.line===1||t)&&(s=qL(e,`open`),c=0,a===s.charCodeAt(c))?(l.enter(n),l.enter(r),l.enter(i),m(a)):d(a)}function m(e){return c===s.length?(l.exit(i),$M(e)?(l.enter(`whitespace`),h(e)):g(e)):e===s.charCodeAt(c++)?(l.consume(e),m):d(e)}function h(e){return $M(e)?(l.consume(e),h):(l.exit(`whitespace`),g(e))}function g(t){return ZM(t)?(l.exit(r),l.enter(`lineEnding`),l.consume(t),l.exit(`lineEnding`),s=qL(e,`close`),c=0,l.attempt(o,b,_)):d(t)}function _(e){return e===null||ZM(e)?y(e):(l.enter(a),v(e))}function v(e){return e===null||ZM(e)?(l.exit(a),y(e)):(l.consume(e),v)}function y(e){return e===null?d(e):(l.enter(`lineEnding`),l.consume(e),l.exit(`lineEnding`),l.attempt(o,b,_))}function b(e){return l.exit(n),u(e)}}function u(e,t,n){let a=0;return o;function o(t){return t===s.charCodeAt(a)?(e.enter(r),e.enter(i),c(t)):n(t)}function c(t){return a===s.length?(e.exit(i),$M(t)?(e.enter(`whitespace`),l(t)):u(t)):t===s.charCodeAt(a++)?(e.consume(t),c):n(t)}function l(t){return $M(t)?(e.consume(t),l):(e.exit(`whitespace`),u(t))}function u(i){return i===null||ZM(i)?(e.exit(r),t(i)):n(i)}}}function qL(e,t){return e.marker?JL(e.marker,t).repeat(3):JL(e.fence,t)}function JL(e,t){return typeof e==`string`?e:e[t]}function YL(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function XL(e){let t=UL(e),n={},r={},i=-1;for(;++i<t.length;){let e=t[i];n[e.type]=ZL(e),r[e.type]=QL,r[e.type+`Value`]=$L}return{enter:n,exit:r}}function ZL(e){return t;function t(t){this.enter({type:e.type,value:``},t),this.buffer()}}function QL(e){let t=this.resume(),n=this.stack[this.stack.length-1];`value`in n,this.exit(e),n.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``)}function $L(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function eR(e){let t=[],n={},r=UL(e),i=-1;for(;++i<r.length;){let e=r[i];n[e.type]=tR(e);let a=nR(e,`open`);t.push({atBreak:!0,character:a.charAt(0),after:YL(a.charAt(1))})}return{unsafe:t,handlers:n}}function tR(e){let t=nR(e,`open`),n=nR(e,`close`);return r;function r(e){return t+(e.value?`
272
272
  `+e.value:``)+`
273
- `+n}}function jL(e,t){return e.marker?ML(e.marker,t).repeat(3):ML(e.fence,t)}function ML(e,t){return typeof e==`string`?e:e[t]}var NL=`yaml`;function PL(e){let t=this,n=e||NL,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(bL(n)),a.push(TL(n)),o.push(kL(n))}function FL(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function IL(e,t,n){let r=$F((n||{}).ignore||[]),i=LL(t),a=-1;for(;++a<i.length;)cI(e,`text`,o);function o(e,t){let n=-1,i;for(;++n<t.length;){let e=t[n],a=i?i.children:void 0;if(r(e,a?a.indexOf(e):void 0,i))return;i=e}if(i)return s(e,t)}function s(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if(typeof a==`string`&&(a=a.length>0?{type:`text`,value:a}:void 0),a===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&u.push({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length}}function LL(e){let t=[];if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([RL(e[0]),zL(e[1])])}return t}function RL(e){return typeof e==`string`?new RegExp(wL(e),`g`):e}function zL(e){return typeof e==`function`?e:function(){return e}}var BL=`phrasing`,VL=[`autolink`,`link`,`image`,`label`];function HL(){return{transforms:[XL],enter:{literalAutolink:WL,literalAutolinkEmail:GL,literalAutolinkHttp:GL,literalAutolinkWww:GL},exit:{literalAutolink:YL,literalAutolinkEmail:JL,literalAutolinkHttp:KL,literalAutolinkWww:qL}}}function UL(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:BL,notInConstruct:VL},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:BL,notInConstruct:VL},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:BL,notInConstruct:VL}]}}function WL(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function GL(e){this.config.enter.autolinkProtocol.call(this,e)}function KL(e){this.config.exit.autolinkProtocol.call(this,e)}function qL(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function JL(e){this.config.exit.autolinkEmail.call(this,e)}function YL(e){this.exit(e)}function XL(e){IL(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ZL],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,QL]],{ignore:[`link`,`linkReference`]})}function ZL(e,t,n,r,i){let a=``;if(!tR(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!$L(n)))return!1;let o=eR(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function QL(e,t,n,r){return!tR(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function $L(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function eR(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=FL(e,`(`),a=FL(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function tR(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||AM(n)||kM(n))&&(!t||n!==47)}dR.peek=uR;function nR(){this.buffer()}function rR(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function iR(){this.buffer()}function aR(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function oR(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=vM(this.sliceSerialize(e)).toLowerCase(),n.label=t}function sR(e){this.exit(e)}function cR(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=vM(this.sliceSerialize(e)).toLowerCase(),n.label=t}function lR(e){this.exit(e)}function uR(){return`[`}function dR(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function fR(){return{enter:{gfmFootnoteCallString:nR,gfmFootnoteCall:rR,gfmFootnoteDefinitionLabelString:iR,gfmFootnoteDefinition:aR},exit:{gfmFootnoteCallString:oR,gfmFootnoteCall:sR,gfmFootnoteDefinitionLabelString:cR,gfmFootnoteDefinition:lR}}}function pR(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:dR},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
274
- `:` `)+r.indentLines(r.containerFlow(e,a.current()),t?hR:mR))),s(),o}}function mR(e,t,n){return t===0?e:hR(e,t,n)}function hR(e,t,n){return(n?``:` `)+e}var gR=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];xR.peek=SR;function _R(){return{canContainEols:[`delete`],enter:{strikethrough:yR},exit:{strikethrough:bR}}}function vR(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:gR}],handlers:{delete:xR}}}function yR(e){this.enter({type:`delete`,children:[]},e)}function bR(e){this.exit(e)}function xR(e,t,n,r){let i=n.createTracker(r),a=n.enter(`strikethrough`),o=i.move(`~~`);return o+=n.containerPhrasing(e,{...i.current(),before:o,after:`~`}),o+=i.move(`~~`),a(),o}function SR(){return`~`}function CR(e){return e.length}function wR(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||CR,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=TR(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=ER(r[d]);else{let e=ER(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding!==!1&&!(n.alignDelimiters===!1&&i===``)&&(n.delimiterStart!==!1||d)&&r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
275
- `)}function TR(e){return e==null?``:String(e)}function ER(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function DR(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),OR);return i(),o}function OR(e,t,n){return`>`+(n?``:` `)+e}function kR(e,t){return AR(e,t.inConstruct,!0)&&!AR(e,t.notInConstruct,!1)}function AR(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function jR(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
276
- `&&kR(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?``:` `;return`\\
277
- `}function MR(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function NR(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function PR(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function FR(e,t,n,r){let i=PR(n),a=e.value||``,o=i==="`"?`GraveAccent`:`Tilde`;if(NR(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,IR);return e(),t}let s=n.createTracker(r),c=i.repeat(Math.max(MR(a,i)+1,3)),l=n.enter(`codeFenced`),u=s.move(c);if(e.lang){let t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${o}`);u+=s.move(` `),u+=s.move(n.safe(e.meta,{before:u,after:`
273
+ `+n}}function nR(e,t){return e.marker?rR(e.marker,t).repeat(3):rR(e.fence,t)}function rR(e,t){return typeof e==`string`?e:e[t]}var iR=`yaml`;function aR(e){let t=this,n=e||iR,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(GL(n)),a.push(XL(n)),o.push(eR(n))}function oR(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function sR(e,t,n){let r=wI((n||{}).ignore||[]),i=cR(t),a=-1;for(;++a<i.length;)NI(e,`text`,o);function o(e,t){let n=-1,i;for(;++n<t.length;){let e=t[n],a=i?i.children:void 0;if(r(e,a?a.indexOf(e):void 0,i))return;i=e}if(i)return s(e,t)}function s(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if(typeof a==`string`&&(a=a.length>0?{type:`text`,value:a}:void 0),a===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&u.push({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length}}function cR(e){let t=[];if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([lR(e[0]),uR(e[1])])}return t}function lR(e){return typeof e==`string`?new RegExp(YL(e),`g`):e}function uR(e){return typeof e==`function`?e:function(){return e}}var dR=`phrasing`,fR=[`autolink`,`link`,`image`,`label`];function pR(){return{transforms:[xR],enter:{literalAutolink:hR,literalAutolinkEmail:gR,literalAutolinkHttp:gR,literalAutolinkWww:gR},exit:{literalAutolink:bR,literalAutolinkEmail:yR,literalAutolinkHttp:_R,literalAutolinkWww:vR}}}function mR(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:dR,notInConstruct:fR},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:dR,notInConstruct:fR},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:dR,notInConstruct:fR}]}}function hR(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function gR(e){this.config.enter.autolinkProtocol.call(this,e)}function _R(e){this.config.exit.autolinkProtocol.call(this,e)}function vR(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function yR(e){this.config.exit.autolinkEmail.call(this,e)}function bR(e){this.exit(e)}function xR(e){sR(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,SR],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,CR]],{ignore:[`link`,`linkReference`]})}function SR(e,t,n,r,i){let a=``;if(!ER(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!wR(n)))return!1;let o=TR(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function CR(e,t,n,r){return!ER(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function wR(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function TR(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=oR(e,`(`),a=oR(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function ER(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||tN(n)||eN(n))&&(!t||n!==47)}IR.peek=FR;function DR(){this.buffer()}function OR(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function kR(){this.buffer()}function AR(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function jR(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=UM(this.sliceSerialize(e)).toLowerCase(),n.label=t}function MR(e){this.exit(e)}function NR(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=UM(this.sliceSerialize(e)).toLowerCase(),n.label=t}function PR(e){this.exit(e)}function FR(){return`[`}function IR(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function LR(){return{enter:{gfmFootnoteCallString:DR,gfmFootnoteCall:OR,gfmFootnoteDefinitionLabelString:kR,gfmFootnoteDefinition:AR},exit:{gfmFootnoteCallString:jR,gfmFootnoteCall:MR,gfmFootnoteDefinitionLabelString:NR,gfmFootnoteDefinition:PR}}}function RR(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:IR},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
274
+ `:` `)+r.indentLines(r.containerFlow(e,a.current()),t?BR:zR))),s(),o}}function zR(e,t,n){return t===0?e:BR(e,t,n)}function BR(e,t,n){return(n?``:` `)+e}var VR=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];KR.peek=qR;function HR(){return{canContainEols:[`delete`],enter:{strikethrough:WR},exit:{strikethrough:GR}}}function UR(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:VR}],handlers:{delete:KR}}}function WR(e){this.enter({type:`delete`,children:[]},e)}function GR(e){this.exit(e)}function KR(e,t,n,r){let i=n.createTracker(r),a=n.enter(`strikethrough`),o=i.move(`~~`);return o+=n.containerPhrasing(e,{...i.current(),before:o,after:`~`}),o+=i.move(`~~`),a(),o}function qR(){return`~`}function JR(e){return e.length}function YR(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||JR,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=XR(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=ZR(r[d]);else{let e=ZR(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding!==!1&&!(n.alignDelimiters===!1&&i===``)&&(n.delimiterStart!==!1||d)&&r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
275
+ `)}function XR(e){return e==null?``:String(e)}function ZR(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function QR(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),$R);return i(),o}function $R(e,t,n){return`>`+(n?``:` `)+e}function ez(e,t){return tz(e,t.inConstruct,!0)&&!tz(e,t.notInConstruct,!1)}function tz(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function nz(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
276
+ `&&ez(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?``:` `;return`\\
277
+ `}function rz(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function iz(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function az(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function oz(e,t,n,r){let i=az(n),a=e.value||``,o=i==="`"?`GraveAccent`:`Tilde`;if(iz(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,sz);return e(),t}let s=n.createTracker(r),c=i.repeat(Math.max(rz(a,i)+1,3)),l=n.enter(`codeFenced`),u=s.move(c);if(e.lang){let t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${o}`);u+=s.move(` `),u+=s.move(n.safe(e.meta,{before:u,after:`
278
278
  `,encode:["`"],...s.current()})),t()}return u+=s.move(`
279
279
  `),a&&(u+=s.move(a+`
280
- `)),u+=s.move(c),l(),u}function IR(e,t,n){return(n?``:` `)+e}function LR(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function RR(e,t,n,r){let i=LR(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
281
- `,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function zR(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function BR(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function VR(e,t,n){let r=BM(e),i=BM(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}HR.peek=UR;function HR(e,t,n,r){let i=zR(n),a=n.enter(`emphasis`),o=n.createTracker(r),s=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=VR(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=BR(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=VR(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+BR(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function UR(e,t,n){return n.options.emphasis||`*`}function WR(e,t){let n=!1;return uI(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&aM(e)&&(t.options.setext||n))}function GR(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(WR(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
280
+ `)),u+=s.move(c),l(),u}function sz(e,t,n){return(n?``:` `)+e}function cz(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function lz(e,t,n,r){let i=cz(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
281
+ `,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function uz(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function dz(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function fz(e,t,n){let r=dN(e),i=dN(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}pz.peek=mz;function pz(e,t,n,r){let i=uz(n),a=n.enter(`emphasis`),o=n.createTracker(r),s=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=fz(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=dz(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=fz(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+dz(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function mz(e,t,n){return n.options.emphasis||`*`}function hz(e,t){let n=!1;return FI(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&AM(e)&&(t.options.setext||n))}function gz(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(hz(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
282
282
  `,after:`
283
283
  `});return r(),t(),o+`
284
284
  `+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
285
285
  `))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
286
- `,...a.current()});return/^[\t ]/.test(l)&&(l=BR(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}KR.peek=qR;function KR(e){return e.value||``}function qR(){return`<`}JR.peek=YR;function JR(e,t,n,r){let i=LR(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function YR(){return`!`}XR.peek=ZR;function XR(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function ZR(){return`!`}QR.peek=$R;function QR(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e),i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function $R(){return"`"}function ez(e,t){let n=aM(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type===`text`&&(n===e.url||`mailto:`+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}tz.peek=nz;function tz(e,t,n,r){let i=LR(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(ez(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function nz(e,t,n){return ez(e,n)?`<`:`[`}rz.peek=iz;function rz(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function iz(){return`[`}function az(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function oz(e){let t=az(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function sz(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function cz(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function lz(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?sz(n):az(n),s=e.ordered?o===`.`?`)`:`.`:oz(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),cz(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function uz(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function dz(e,t,n,r){let i=uz(n),a=n.bulletCurrent||az(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function fz(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var pz=$F([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function mz(e,t,n,r){return(e.children.some(function(e){return pz(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function hz(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}gz.peek=_z;function gz(e,t,n,r){let i=hz(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=VR(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=BR(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=VR(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+BR(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function _z(e,t,n){return n.options.strong||`*`}function vz(e,t,n,r){return n.safe(e.value,r)}function yz(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function bz(e,t,n){let r=(cz(n)+(n.options.ruleSpaces?` `:``)).repeat(yz(n));return n.options.ruleSpaces?r.slice(0,-1):r}var xz={blockquote:DR,break:jR,code:FR,definition:RR,emphasis:HR,hardBreak:jR,heading:GR,html:KR,image:JR,imageReference:XR,inlineCode:QR,link:tz,linkReference:rz,list:lz,listItem:dz,paragraph:fz,root:mz,strong:gz,text:vz,thematicBreak:bz};function Sz(){return{enter:{table:Cz,tableData:Dz,tableHeader:Dz,tableRow:Tz},exit:{codeText:Oz,table:wz,tableData:Ez,tableHeader:Ez,tableRow:Ez}}}function Cz(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function wz(e){this.exit(e),this.data.inTable=void 0}function Tz(e){this.enter({type:`tableRow`,children:[]},e)}function Ez(e){this.exit(e)}function Dz(e){this.enter({type:`tableCell`,children:[]},e)}function Oz(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,kz));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function kz(e,t){return t===`|`?t:e}function Az(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
286
+ `,...a.current()});return/^[\t ]/.test(l)&&(l=dz(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}_z.peek=vz;function _z(e){return e.value||``}function vz(){return`<`}yz.peek=bz;function yz(e,t,n,r){let i=cz(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function bz(){return`!`}xz.peek=Sz;function xz(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function Sz(){return`!`}Cz.peek=wz;function Cz(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e),i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function wz(){return"`"}function Tz(e,t){let n=AM(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type===`text`&&(n===e.url||`mailto:`+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Ez.peek=Dz;function Ez(e,t,n,r){let i=cz(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(Tz(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function Dz(e,t,n){return Tz(e,n)?`<`:`[`}Oz.peek=kz;function Oz(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function kz(){return`[`}function Az(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function jz(e){let t=Az(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Mz(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Nz(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Pz(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?Mz(n):Az(n),s=e.ordered?o===`.`?`)`:`.`:jz(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),Nz(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function Fz(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Iz(e,t,n,r){let i=Fz(n),a=n.bulletCurrent||Az(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function Lz(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var Rz=wI([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function zz(e,t,n,r){return(e.children.some(function(e){return Rz(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Bz(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Vz.peek=Hz;function Vz(e,t,n,r){let i=Bz(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=fz(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=dz(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=fz(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+dz(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function Hz(e,t,n){return n.options.strong||`*`}function Uz(e,t,n,r){return n.safe(e.value,r)}function Wz(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Gz(e,t,n){let r=(Nz(n)+(n.options.ruleSpaces?` `:``)).repeat(Wz(n));return n.options.ruleSpaces?r.slice(0,-1):r}var Kz={blockquote:QR,break:nz,code:oz,definition:lz,emphasis:pz,hardBreak:nz,heading:gz,html:_z,image:yz,imageReference:xz,inlineCode:Cz,link:Ez,linkReference:Oz,list:Pz,listItem:Iz,paragraph:Lz,root:zz,strong:Vz,text:Uz,thematicBreak:Gz};function qz(){return{enter:{table:Jz,tableData:Qz,tableHeader:Qz,tableRow:Xz},exit:{codeText:$z,table:Yz,tableData:Zz,tableHeader:Zz,tableRow:Zz}}}function Jz(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function Yz(e){this.exit(e),this.data.inTable=void 0}function Xz(e){this.enter({type:`tableRow`,children:[]},e)}function Zz(e){this.exit(e)}function Qz(e){this.enter({type:`tableCell`,children:[]},e)}function $z(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,eB));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function eB(e,t){return t===`|`?t:e}function tB(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
287
287
  `,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
288
- `))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return wR(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=xz.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function jz(){return{exit:{taskListCheckValueChecked:Nz,taskListCheckValueUnchecked:Nz,paragraph:Pz}}}function Mz(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:Fz}}}function Nz(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function Pz(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Fz(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=xz.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function Iz(){return[HL(),fR(),_R(),Sz(),jz()]}function Lz(e){return{extensions:[UL(),pR(e),vR(),Az(e),Mz()]}}var Rz={tokenize:Qz,partial:!0},zz={tokenize:$z,partial:!0},Bz={tokenize:eB,partial:!0},Vz={tokenize:tB,partial:!0},Hz={tokenize:nB,partial:!0},Uz={name:`wwwAutolink`,tokenize:Xz,previous:rB},Wz={name:`protocolAutolink`,tokenize:Zz,previous:iB},Gz={name:`emailAutolink`,tokenize:Yz,previous:aB},Kz={};function qz(){return{text:Kz}}for(var Jz=48;Jz<123;)Kz[Jz]=Gz,Jz++,Jz===58?Jz=65:Jz===91&&(Jz=97);Kz[43]=Gz,Kz[45]=Gz,Kz[46]=Gz,Kz[95]=Gz,Kz[72]=[Gz,Wz],Kz[104]=[Gz,Wz],Kz[87]=[Gz,Uz],Kz[119]=[Gz,Uz];function Yz(e,t,n){let r=this,i,a;return o;function o(t){return!oB(t)||!aB.call(r,r.previous)||sB(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return oB(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(Hz,u,l)(t):t===45||t===95||bM(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&yM(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function Xz(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!rB.call(r,r.previous)||sB(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(Rz,e.attempt(zz,e.attempt(Bz,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function Zz(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&iB.call(r,r.previous)&&!sB(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(yM(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||SM(t)||DM(t)||AM(t)||kM(t)?n(t):e.attempt(zz,e.attempt(Bz,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function Qz(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function $z(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(Vz,c,s)(t):t===null||DM(t)||AM(t)||t!==45&&kM(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function eB(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Vz,t,a)(o):o===null||DM(o)||AM(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function tB(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||DM(o)||AM(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||DM(e)||AM(e)?t(e):r(e)}function a(e){return yM(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):yM(t)?(e.consume(t),o):n(t)}}function nB(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return bM(e)?n(e):t(e)}}function rB(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||DM(e)}function iB(e){return!yM(e)}function aB(e){return!(e===47||oB(e))}function oB(e){return e===43||e===45||e===46||e===95||bM(e)}function sB(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var cB={tokenize:gB,partial:!0};function lB(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:pB,continuation:{tokenize:mB},exit:hB}},text:{91:{name:`gfmFootnoteCall`,tokenize:fB},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:uB,resolveTo:dB}}}}function uB(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=vM(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function dB(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function fB(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||DM(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(vM(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return DM(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function pB(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||DM(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=vM(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return DM(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),NM(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function mB(e,t,n){return e.check(JM,t,e.attempt(cB,t,n))}function hB(e){e.exit(`gfmFootnoteDefinition`)}function gB(e,t,n){let r=this;return NM(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function _B(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&dM(o,o.length,0,VM(s,e.slice(r+1,n),t)),dM(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),dM(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=BM(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=BM(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var vB=class{constructor(){this.map=[]}add(e,t,n){yB(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function yB(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function bB(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function xB(){return{flow:{null:{name:`table`,tokenize:SB,resolveAll:CB}}}}function SB(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):EM(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):OM(t)?NM(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||DM(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,OM(t)?NM(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return OM(t)?NM(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||EM(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return OM(t)?NM(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||EM(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||EM(n)?(e.exit(`tableRow`),t(n)):OM(n)?NM(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||DM(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function CB(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new vB;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(TB(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=wB(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=wB(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=wB(f,t,o,i,n,d)):(o[0]=o[1],d=wB(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&TB(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=bB(t.events,n))}return e}function wB(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},EB(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=EB(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=EB(t.events,n[2]),a=EB(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},EB(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function TB(e,t,n,r,i){let a=[],o=EB(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function EB(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var DB={name:`tasklistCheck`,tokenize:kB};function OB(){return{text:{91:DB}}}function kB(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return DM(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return EM(r)?t(r):OM(r)?e.check({tokenize:AB},t,n)(r):n(r)}}function AB(e,t,n){return NM(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function jB(e){return mM([qz(),lB(),_B(e),xB(),OB()])}var MB={};function NB(e){let t=this,n=e||MB,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(jB(n)),a.push(Iz()),o.push(Lz(n))}var PB=v.memo(function({lineNumber:e,filePath:t,lineThreads:n,children:r,onCreate:i,onLocateThread:a,onPatchThread:o,onDeleteThread:s,onReplyThread:c,onPatchComment:l,onDeleteComment:u,onCopyThread:d}){let[f,p]=v.useState(!1);return(0,Q.jsxs)(`div`,{className:Z.markdownCommentBlock,children:[(0,Q.jsx)(`div`,{className:Z.markdownCommentContent,children:r}),n.length===0?(0,Q.jsx)(`button`,{className:Z.commentTrigger,type:`button`,"aria-label":`添加行评论`,onClick:()=>p(!0),children:(0,Q.jsx)(iA,{})}):null,f?(0,Q.jsx)(pA,{onCancel:()=>p(!1),onSubmit:async n=>{await i({type:`markdown-line`,filePath:t,lineNumber:e,blockId:`line-${e}`},n),p(!1)}}):null,n.length>0?(0,Q.jsx)(`div`,{className:Z.inlineThreadStack,children:(0,Q.jsx)(vA,{threads:n,onFocus:a,onPatch:o,onDeleteThread:s,onReply:c,onPatchComment:l,onDeleteComment:u,onCopy:d})}):null]})}),FB=`modulepreload`,IB=function(e){return`/`+e},LB={},RB=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),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}))))}r=o(t.map(t=>{if(t=IB(t,n),t in LB)return;LB[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:FB,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}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)})};function zB({chart:e}){let t=v.useId(),n=v.useMemo(()=>`mermaid-${t.replace(/[^a-zA-Z0-9_-]/g,``)}`,[t]),[r,i]=v.useState(``),[a,o]=v.useState(``);return v.useEffect(()=>{let t=!0;async function r(){try{let r=(await RB(async()=>{let{default:e}=await import(`./mermaid.core-BBkLU4xy.js`);return{default:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]))).default;r.initialize({startOnLoad:!1,securityLevel:`strict`,theme:`default`});let a=await r.render(n,e);if(!t)return;i(a.svg),o(``)}catch(e){if(!t)return;i(``),o(e instanceof Error?e.message:`Mermaid 图表渲染失败`)}}return r(),()=>{t=!1}},[e,n]),a?(0,Q.jsxs)(`div`,{className:Z.mermaidFallback,children:[(0,Q.jsxs)(`div`,{className:Z.mermaidError,children:[`Mermaid 渲染失败:`,a]}),(0,Q.jsx)(`pre`,{children:(0,Q.jsx)(`code`,{children:e})})]}):r?(0,Q.jsx)(`div`,{className:Z.mermaidDiagram,dangerouslySetInnerHTML:{__html:r}}):(0,Q.jsx)(`div`,{className:Z.mermaidLoading,children:`正在渲染图表...`})}var BB=[PL,NB];function VB(e){return/^(https?:|mailto:|#|\.{0,2}\/|\/)/i.test(e.trim())}function HB(e){let t=e.split(`/`).filter(e=>e.length>0&&e!==`.`),n=[];for(let e of t){if(e===`..`){n.pop();continue}n.push(e)}return n}function UB(e,t){if(!t||/^https?:|^mailto:|^#/i.test(t)||t.startsWith(`/`))return t;let n=t.split(`#`)[0]?.split(`?`)[0]??t,r=HB(e);r.pop();let i=HB(n),a=[...r,...i].join(`/`);return a?`/api/markdown-asset?path=${encodeURIComponent(a)}`:t}function WB(e){return typeof e==`string`||typeof e==`number`?String(e):Array.isArray(e)?e.map(WB).join(``):v.isValidElement(e)?WB(e.props.children):``}function GB(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`).join(` `):typeof e==`string`?e:``}function KB(e){return v.isValidElement(e)&&!!(e.props.className||e.props.children)}function qB(e){let t=e?.position?.start?.line;return typeof t==`number`?t:void 0}function JB(e){let t=e?.children?.find(e=>e.tagName===`code`);return GB(t?.properties?.className)}function YB(e){return e?e.type===`text`?e.value??``:e.children?.map(YB).join(``)??``:``}function XB(e){let t=e?.children?.find(e=>e.tagName===`code`);return YB(t)}function ZB({file:e,threads:t,onCreate:n,onLocateThread:r,onPatchThread:i,onDeleteThread:a,onReplyThread:o,onPatchComment:s,onDeleteComment:c,onCopyThread:l}){let[u,d]=v.useState(null);v.useEffect(()=>{d(null),fetch(`/api/markdown-preview?path=${encodeURIComponent(e.path)}`).then(e=>e.json()).then(e=>d(e)).catch(()=>d(null))},[e.path]);let f=v.useMemo(()=>{let n=new Map;for(let r of t){if(r.anchor.type!==`markdown-line`||r.anchor.filePath!==e.path)continue;let t=n.get(r.anchor.lineNumber)??[];t.push(r),n.set(r.anchor.lineNumber,t)}return n},[e.path,t]),p=v.useCallback((t,u)=>t?(0,Q.jsx)(PB,{lineNumber:t,filePath:e.path,lineThreads:f.get(t)??[],onCreate:n,onLocateThread:r,onPatchThread:i,onDeleteThread:a,onReplyThread:o,onPatchComment:s,onDeleteComment:c,onCopyThread:l,children:u}):u,[e.path,l,n,c,a,r,s,i,o,f]),m=v.useMemo(()=>({h1({children:e,node:t,...n}){return p(qB(t),(0,Q.jsx)(`h1`,{...n,children:e}))},h2({children:e,node:t,...n}){return p(qB(t),(0,Q.jsx)(`h2`,{...n,children:e}))},h3({children:e,node:t,...n}){return p(qB(t),(0,Q.jsx)(`h3`,{...n,children:e}))},h4({children:e,node:t,...n}){return p(qB(t),(0,Q.jsx)(`h4`,{...n,children:e}))},h5({children:e,node:t,...n}){return p(qB(t),(0,Q.jsx)(`h5`,{...n,children:e}))},h6({children:e,node:t,...n}){return p(qB(t),(0,Q.jsx)(`h6`,{...n,children:e}))},p({children:e,node:t,...n}){return p(qB(t),(0,Q.jsx)(`p`,{...n,children:e}))},blockquote({children:e,node:t,...n}){return p(qB(t),(0,Q.jsx)(`blockquote`,{...n,children:e}))},pre({children:e,node:t,...n}){let r=v.Children.toArray(e).find(KB),i=WB(r??e)||XB(t),a=r?.props.className??JB(t),o=/language-(\S+)/.exec(a)?.[1],s=i.replace(/\n$/,``),c=qB(t);return o===`mermaid`&&s.trim()?p(c,(0,Q.jsx)(zB,{chart:s})):p(c,(0,Q.jsx)(`pre`,{className:Z.markdownPre,...n,children:e}))},code({className:e,children:t,node:n,...r}){return e?(0,Q.jsx)(`code`,{className:e,...r,children:t}):(0,Q.jsx)(`code`,{className:Z.markdownInlineCode,...r,children:t})},table({children:e,node:t,...n}){return p(qB(t),(0,Q.jsx)(`div`,{className:Z.markdownTableScroll,children:(0,Q.jsx)(`table`,{...n,children:e})}))},a({href:e,children:t,node:n,...r}){let i=e??``;if(!i||!VB(i))return(0,Q.jsx)(`span`,{children:t});let a=/^https?:/i.test(i);return(0,Q.jsx)(`a`,{href:i,target:a?`_blank`:void 0,rel:a?`noreferrer`:void 0,...r,children:t})},img({src:t,alt:n,node:r,...i}){let a=t??``;return!a||!VB(a)?null:(0,Q.jsx)(`img`,{src:UB(e.path,a),alt:n??``,loading:`lazy`,...i})}}),[e.path,p]);return u?(0,Q.jsxs)(`div`,{className:Z.markdownShell,children:[u.deleted?(0,Q.jsx)(Yc,{className:Z.deletedBanner,message:`该文件已删除,仅展示删除前预览`,type:`warning`,showIcon:!0}):null,(0,Q.jsx)(`article`,{className:Z.markdownArticle,children:(0,Q.jsx)(`div`,{className:Z.markdownBody,children:(0,Q.jsx)(cL,{remarkPlugins:BB,urlTransform:e=>VB(e)?e:``,components:m,children:u.content})})})]}):(0,Q.jsx)(`div`,{className:Z.markdownLoading,children:(0,Q.jsx)(yO,{})})}function QB(e){return e.mode.kind===`revision`?`范围:${e.mode.base}..${e.mode.target}`:e.mode.kind===`staged`?`范围:暂存区`:e.mode.kind===`working`?`范围:工作区`:`范围:未知`}function $B(e){return e.anchor.type===`file`?e.filePath:`${e.filePath}:${e.anchor.lineNumber}`}function eV(e){return e===`added`?`A`:e===`modified`?`M`:e===`deleted`?`D`:e===`renamed`?`R`:e}var tV={submit:0,replied:1,resolved:2};function nV({threads:e,focusedThreadId:t,onPatch:n,onDeleteThread:r,onReply:i,onPatchComment:a,onDeleteComment:o,onCopy:s}){let[c,l]=v.useState(`all`),u=v.useRef({}),d=v.useMemo(()=>e.map(e=>({key:e.id,thread:e})),[e]),f=v.useMemo(()=>d.filter(e=>{let t=hA(e.thread);return c===`resolved`?t===`resolved`:c===`pending`?t!==`resolved`:!0}).sort((e,t)=>{let n=hA(e.thread),r=hA(t.thread);return tV[n]-tV[r]}),[c,d]),p=v.useMemo(()=>({resolved:e.filter(e=>hA(e)===`resolved`),submit:e.filter(e=>hA(e)===`submit`)}),[e]),m=v.useCallback(async t=>{let n=[];t===`delete-resolved`&&(n=p.resolved),t===`delete-submit`&&(n=p.submit),t===`delete-all`&&(n=e);for(let e of n)await r(e.id)},[p.resolved,p.submit,r,e]),h=v.useCallback(t=>{let n=t===`delete-resolved`?p.resolved.length:t===`delete-submit`?p.submit.length:e.length,r=t===`delete-resolved`?`删除全部已解决评论(${n})?`:t===`delete-submit`?`删除全部 submit 评论(${n})?`:`清空全部评论(${n})?`,i=t===`delete-all`?`清空`:`删除`;jO.confirm({title:r,okText:i,cancelText:`取消`,okButtonProps:t===`delete-all`?{danger:!0}:void 0,onOk:async()=>m(t)})},[p.resolved.length,p.submit.length,m,e.length]);return v.useEffect(()=>{if(!t)return;let e=f.find(e=>e.thread.id===t);e&&u.current[e.key]?.scrollIntoView({block:`start`,behavior:`smooth`})},[t,f]),(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(`div`,{className:Z.threadListToolbar,children:[(0,Q.jsx)(`div`,{className:Z.threadFilterWrap,children:(0,Q.jsx)(iE,{value:c,onChange:e=>l(e),options:[{label:`全部 (${d.length})`,value:`all`},{label:`未解决 (${d.filter(e=>hA(e.thread)!==`resolved`).length})`,value:`pending`},{label:`已解决 (${d.filter(e=>hA(e.thread)===`resolved`).length})`,value:`resolved`}],size:`small`})}),(0,Q.jsx)(jE,{menu:{items:[{key:`delete-resolved`,label:`删除已解决(${p.resolved.length})`,disabled:p.resolved.length===0},{key:`delete-submit`,label:`删除待提交(${p.submit.length})`,disabled:p.submit.length===0},{type:`divider`},{key:`delete-all`,label:`清空全部(${e.length})`,danger:!0,disabled:e.length===0}],onClick:({key:e})=>{(e===`delete-resolved`||e===`delete-submit`||e===`delete-all`)&&h(e)}},trigger:[`click`],children:(0,Q.jsxs)(HC,{size:`small`,className:Z.threadBatchButton,children:[`批量操作 `,(0,Q.jsx)(Tb,{})]})})]}),f.length===0?(0,Q.jsx)(rb,{className:Z.threadEmpty,description:`暂无评论,悬停到行右侧或添加文件级评论即可开始。`}):(0,Q.jsx)(`div`,{className:Z.threads,children:f.map(e=>{let c=e.thread,l=hA(c),d=t===c.id;return(0,Q.jsxs)(IT,{className:[Z.thread,iV(l),d?l===`resolved`?`${Z.threadFocused} ${Z.threadFocusedResolved}`:`${Z.threadFocused} ${Z.threadFocusedPending}`:``].filter(Boolean).join(` `),ref:t=>{u.current[e.key]=t},children:[(0,Q.jsxs)(kE,{className:Z.threadTop,align:`start`,size:8,children:[(0,Q.jsx)(Qk.Text,{className:Z.threadAnchor,strong:!0,children:$B(c)}),l===`replied`?null:(0,Q.jsx)(ZO,{className:`${Z.threadTag} ${rV(l)}`,children:mA[l]})]}),(0,Q.jsx)(`div`,{className:Z.threadListInlineBorderless,children:(0,Q.jsx)(vA,{threads:[c],showStatusTag:!1,onFocus:()=>void 0,onPatch:n,onDeleteThread:r,onReply:i,onPatchComment:a,onDeleteComment:o,onCopy:s})})]},e.key)})})]})}function rV(e){return e===`submit`?Z.threadTagSubmit:e===`replied`?Z.threadTagReplied:Z.threadTagResolved}function iV(e){return e===`submit`?Z.submit:e===`replied`?Z.replied:Z.resolved}var aV=36,oV=18;function sV(e,t,n){if(e.length<=t)return e;let r=Math.min(n,t-4),i=t-r-3;return`${e.slice(0,i)}...${e.slice(-r)}`}function cV(e){return e?e.repoName||e.repoRoot.split(/[\\/]/).filter(Boolean).at(-1)||e.repoRoot:`正在加载仓库`}function lV(e,t){return e===t?!0:e.length===t.length?JSON.stringify(e)===JSON.stringify(t):!1}function uV(){let{message:e}=J_.useApp(),[t,n]=v.useState(null),[r,i]=v.useState([]),[a,o]=v.useState([]),[s,c]=v.useState(``),[l,u]=v.useState(`split`),[d,f]=v.useState(null),p=r.find(e=>e.path===s)??r[0],m=a.filter(e=>e.status!==`resolved`).length;v.useEffect(()=>{h()},[]),v.useEffect(()=>{let e=()=>{document.visibilityState===`visible`&&g()},t=window.setInterval(e,2500);return window.addEventListener(`focus`,e),document.addEventListener(`visibilitychange`,e),()=>{window.clearInterval(t),window.removeEventListener(`focus`,e),document.removeEventListener(`visibilitychange`,e)}},[d]);async function h(){let[e,t,r]=await Promise.all([fetch(`/api/session`),fetch(`/api/diff`),fetch(`/api/threads`)]),a=await e.json(),s=await t.json(),l=await r.json();n(a),i(s.files),o(l.threads),c(s.files[0]?.path??``)}async function g(){let e=await(await fetch(`/api/threads`)).json();o(t=>lV(t,e.threads)?t:e.threads),d&&!e.threads.some(e=>e.id===d)&&f(null)}async function _(e,t){await fetch(`/api/threads`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({filePath:e.filePath,anchor:e,body:t})}),await g()}async function y(e,t){let n=await fetch(`/api/threads/${e}`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({status:t})});if(!n.ok){let e=await n.json().catch(()=>({error:`更新评论状态失败`}));throw Error(e.error??`更新评论状态失败`)}await g()}async function b(e){await fetch(`/api/threads/${e}`,{method:`DELETE`}),await g()}async function x(e,t){await fetch(`/api/threads/${e}/comments`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({body:t,author:`user`})}),await g()}async function S(e,t,n){if(!t)throw Error(`Comment id is required`);let r=await fetch(`/api/threads/${e}/comments/${t}`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({body:n})});if(!r.ok){let e=await r.json().catch(()=>({error:`编辑评论失败`}));throw Error(e.error??`编辑评论失败`)}await g()}async function C(e,t){if(!t)throw Error(`Comment id is required`);let n=await fetch(`/api/threads/${e}/comments/${t}`,{method:`DELETE`});if(!n.ok){let e=await n.json().catch(()=>({error:`删除评论失败`}));throw Error(e.error??`删除评论失败`)}await g()}async function w(t){let n=await(await fetch(`/api/prompt`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)})).json();await navigator.clipboard.writeText(n.prompt),e.success(`提示词已复制到剪贴板`)}function T(e){f(e)}return v.useEffect(()=>{f(null)},[s]),(0,Q.jsxs)(xD,{className:Z.shell,children:[(0,Q.jsxs)(`aside`,{className:Z.sidebar,children:[(0,Q.jsxs)(`div`,{className:Z.brand,children:[(0,Q.jsx)(`div`,{className:Z.brandMark,children:`DR`}),(0,Q.jsxs)(`div`,{className:Z.brandCopy,children:[(0,Q.jsx)(Qk.Text,{className:Z.repoName,title:t?.repoRoot,children:cV(t)}),(0,Q.jsx)(Qk.Text,{className:Z.productName,children:`Diff 审查台`}),(0,Q.jsx)(Qk.Text,{type:`secondary`,children:t?QB(t):`正在加载会话`})]})]}),(0,Q.jsx)(IT,{className:Z.sideCard,bordered:!1,children:(0,Q.jsxs)(kE,{size:8,wrap:!0,children:[(0,Q.jsx)(ZO,{color:`blue`,children:t?.mode.kind===`revision`?`混合模式`:`本地模式`}),(0,Q.jsxs)(ZO,{color:`gold`,children:[r.length,` files`]})]})}),(0,Q.jsx)(`div`,{className:Z.fileRailHeader,children:(0,Q.jsx)(Qk.Text,{strong:!0,children:`文件列表`})}),(0,Q.jsx)(DO,{className:Z.fileList,dataSource:r,renderItem:e=>{let t=e.path===p?.path,n=a.filter(t=>t.filePath===e.path&&t.status!==`resolved`);return(0,Q.jsxs)(DO.Item,{className:t?`${Z.fileItem} ${Z.fileItemActive}`:Z.fileItem,onClick:()=>c(e.path),children:[(0,Q.jsxs)(`div`,{className:Z.fileMeta,children:[(0,Q.jsx)(ZO,{color:e.status===`deleted`?`error`:e.status===`added`?`green`:`processing`,children:eV(e.status)}),(0,Q.jsx)(Qk.Text,{strong:!0,className:Z.fileName,title:e.path,children:sV(e.path,aV,oV)})]}),(0,Q.jsxs)(Qk.Text,{className:Z.fileStats,type:`secondary`,children:[(0,Q.jsxs)(`span`,{className:Z.fileStatAdd,children:[`+`,e.additions]}),` / `,(0,Q.jsxs)(`span`,{className:Z.fileStatDelete,children:[`-`,e.deletions]})]}),n.length>0?(0,Q.jsx)(ZO,{className:Z.fileThreadCount,icon:(0,Q.jsx)(iA,{}),children:n.length}):null]})}})]}),(0,Q.jsx)(`section`,{className:Z.reviewPane,children:p?(0,Q.jsxs)(Q.Fragment,{children:[p.isMarkdown?null:(0,Q.jsx)(`div`,{className:Z.topToolbar,children:(0,Q.jsx)(iE,{className:Z.viewModeSwitcher,options:[{label:`Side by side`,value:`split`,icon:(0,Q.jsx)(sA,{})},{label:`Inline`,value:`inline`,icon:(0,Q.jsx)(WE,{})}],value:l,onChange:e=>u(e)})}),(0,Q.jsxs)(`div`,{className:Z.reviewSurface,children:[(0,Q.jsx)(TA,{file:p,threads:a,onCreate:_,onCopy:w,onLocateThread:T,onPatchThread:y,onDeleteThread:b,onReplyThread:x,onPatchComment:S,onDeleteComment:C,onCopyThread:w}),p.isMarkdown?(0,Q.jsx)(ZB,{file:p,threads:a,onCreate:_,onLocateThread:T,onPatchThread:y,onDeleteThread:b,onReplyThread:x,onPatchComment:S,onDeleteComment:C,onCopyThread:w}):(0,Q.jsx)(wA,{file:p,threads:a,onCreate:_,onLocateThread:T,onPatchThread:y,onDeleteThread:b,onReplyThread:x,onPatchComment:S,onDeleteComment:C,onCopyThread:w,viewMode:l})]})]}):(0,Q.jsx)(IT,{className:Z.emptyStateCard,bordered:!1,children:(0,Q.jsx)(Qk.Text,{type:`secondary`,children:`未发现变更,当前工作区很安静。`})})}),(0,Q.jsxs)(`aside`,{className:Z.threadRail,children:[(0,Q.jsxs)(`div`,{className:Z.threadRailHeader,children:[(0,Q.jsxs)(Qk.Title,{className:Z.threadRailTitle,level:4,children:[`评论 (`,m,`)`]}),(0,Q.jsx)(HC,{icon:(0,Q.jsx)(Ek,{}),type:`primary`,onClick:()=>void w({type:`all-unresolved`}),children:`批量提交给 Agent`})]}),(0,Q.jsx)(`div`,{className:Z.threadRailBody,children:(0,Q.jsx)(nV,{threads:a,focusedThreadId:d,onPatch:y,onDeleteThread:b,onReply:x,onPatchComment:S,onDeleteComment:C,onCopy:w})})]})]})}(0,dd.createRoot)(document.getElementById(`root`)).render((0,Q.jsx)(v.StrictMode,{children:(0,Q.jsx)(Mu,{theme:{token:{colorPrimary:`#2f6fed`,colorSuccess:`#2f8f63`,colorWarning:`#d59b2a`,colorTextBase:`#16181d`,colorBgBase:`#f4f6fa`,fontFamily:`"SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif`,borderRadius:14}},children:(0,Q.jsx)(J_,{children:(0,Q.jsx)(uV,{})})})}));export{tr as a,mn as c,dn as d,o as f,cr as i,ln as l,lr as n,on as o,l as p,sr as r,pn as s,RB as t,hn as u};
288
+ `))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return YR(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=Kz.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function nB(){return{exit:{taskListCheckValueChecked:iB,taskListCheckValueUnchecked:iB,paragraph:aB}}}function rB(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:oB}}}function iB(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function aB(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function oB(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=Kz.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function sB(){return[pR(),LR(),HR(),qz(),nB()]}function cB(e){return{extensions:[mR(),RR(e),UR(),tB(e),rB()]}}var lB={tokenize:CB,partial:!0},uB={tokenize:wB,partial:!0},dB={tokenize:TB,partial:!0},fB={tokenize:EB,partial:!0},pB={tokenize:DB,partial:!0},mB={name:`wwwAutolink`,tokenize:xB,previous:OB},hB={name:`protocolAutolink`,tokenize:SB,previous:kB},gB={name:`emailAutolink`,tokenize:bB,previous:AB},_B={};function vB(){return{text:_B}}for(var yB=48;yB<123;)_B[yB]=gB,yB++,yB===58?yB=65:yB===91&&(yB=97);_B[43]=gB,_B[45]=gB,_B[46]=gB,_B[95]=gB,_B[72]=[gB,hB],_B[104]=[gB,hB],_B[87]=[gB,mB],_B[119]=[gB,mB];function bB(e,t,n){let r=this,i,a;return o;function o(t){return!jB(t)||!AB.call(r,r.previous)||MB(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return jB(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(pB,u,l)(t):t===45||t===95||GM(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&WM(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function xB(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!OB.call(r,r.previous)||MB(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(lB,e.attempt(uB,e.attempt(dB,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function SB(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&kB.call(r,r.previous)&&!MB(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(WM(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||qM(t)||QM(t)||tN(t)||eN(t)?n(t):e.attempt(uB,e.attempt(dB,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function CB(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function wB(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(fB,c,s)(t):t===null||QM(t)||tN(t)||t!==45&&eN(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function TB(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(fB,t,a)(o):o===null||QM(o)||tN(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function EB(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||QM(o)||tN(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||QM(e)||tN(e)?t(e):r(e)}function a(e){return WM(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):WM(t)?(e.consume(t),o):n(t)}}function DB(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return GM(e)?n(e):t(e)}}function OB(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||QM(e)}function kB(e){return!WM(e)}function AB(e){return!(e===47||jB(e))}function jB(e){return e===43||e===45||e===46||e===95||GM(e)}function MB(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var NB={tokenize:VB,partial:!0};function PB(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:RB,continuation:{tokenize:zB},exit:BB}},text:{91:{name:`gfmFootnoteCall`,tokenize:LB},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:FB,resolveTo:IB}}}}function FB(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=UM(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function IB(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function LB(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||QM(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(UM(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return QM(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function RB(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||QM(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=UM(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return QM(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),iN(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function zB(e,t,n){return e.check(yN,t,e.attempt(NB,t,n))}function BB(e){e.exit(`gfmFootnoteDefinition`)}function VB(e,t,n){let r=this;return iN(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function HB(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&IM(o,o.length,0,fN(s,e.slice(r+1,n),t)),IM(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),IM(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=dN(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=dN(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var UB=class{constructor(){this.map=[]}add(e,t,n){WB(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function WB(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function GB(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function KB(){return{flow:{null:{name:`table`,tokenize:qB,resolveAll:JB}}}}function qB(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):ZM(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):$M(t)?iN(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||QM(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,$M(t)?iN(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return $M(t)?iN(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||ZM(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return $M(t)?iN(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||ZM(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||ZM(n)?(e.exit(`tableRow`),t(n)):$M(n)?iN(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||QM(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function JB(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new UB;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(XB(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=YB(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=YB(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=YB(f,t,o,i,n,d)):(o[0]=o[1],d=YB(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&XB(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=GB(t.events,n))}return e}function YB(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},ZB(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=ZB(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=ZB(t.events,n[2]),a=ZB(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},ZB(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function XB(e,t,n,r,i){let a=[],o=ZB(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function ZB(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var QB={name:`tasklistCheck`,tokenize:eV};function $B(){return{text:{91:QB}}}function eV(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return QM(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return ZM(r)?t(r):$M(r)?e.check({tokenize:tV},t,n)(r):n(r)}}function tV(e,t,n){return iN(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function nV(e){return zM([vB(),PB(),HB(e),KB(),$B()])}var rV={};function iV(e){let t=this,n=e||rV,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(nV(n)),a.push(sB()),o.push(cB(n))}var aV=v.memo(function({lineNumber:e,filePath:t,lineThreads:n,children:r,onCreate:i,onLocateThread:a,onPatchThread:o,onDeleteThread:s,onReplyThread:c,onPatchComment:l,onDeleteComment:u,onCopyThread:d}){let[f,p]=v.useState(!1);return(0,Q.jsxs)(`div`,{className:Z.markdownCommentBlock,"data-review-anchor":`line:${e}`,"data-review-line":e,children:[(0,Q.jsx)(`div`,{className:Z.markdownCommentContent,children:r}),n.length===0?(0,Q.jsx)(`button`,{className:Z.commentTrigger,type:`button`,"aria-label":`添加行评论`,onClick:()=>p(!0),children:(0,Q.jsx)(wA,{})}):null,f?(0,Q.jsx)(NA,{onCancel:()=>p(!1),onSubmit:async n=>{await i({type:`markdown-line`,filePath:t,lineNumber:e,blockId:`line-${e}`},n),p(!1)}}):null,n.length>0?(0,Q.jsx)(`div`,{className:Z.inlineThreadStack,children:(0,Q.jsx)(RA,{threads:n,onFocus:a,onPatch:o,onDeleteThread:s,onReply:c,onPatchComment:l,onDeleteComment:u,onCopy:d})}):null]})}),oV=`modulepreload`,sV=function(e){return`/`+e},cV={},lV=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),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}))))}r=o(t.map(t=>{if(t=sV(t,n),t in cV)return;cV[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:oV,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}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)})};function uV({chart:e}){let t=v.useId(),n=v.useMemo(()=>`mermaid-${t.replace(/[^a-zA-Z0-9_-]/g,``)}`,[t]),[r,i]=v.useState(``),[a,o]=v.useState(``);return v.useEffect(()=>{let t=!0;async function r(){try{let r=(await lV(async()=>{let{default:e}=await import(`./mermaid.core-DbfGaZdz.js`);return{default:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]))).default;r.initialize({startOnLoad:!1,securityLevel:`strict`,theme:`default`});let a=await r.render(n,e);if(!t)return;i(a.svg),o(``)}catch(e){if(!t)return;i(``),o(e instanceof Error?e.message:`Mermaid 图表渲染失败`)}}return r(),()=>{t=!1}},[e,n]),a?(0,Q.jsxs)(`div`,{className:Z.mermaidFallback,children:[(0,Q.jsxs)(`div`,{className:Z.mermaidError,children:[`Mermaid 渲染失败:`,a]}),(0,Q.jsx)(`pre`,{children:(0,Q.jsx)(`code`,{children:e})})]}):r?(0,Q.jsx)(`div`,{className:Z.mermaidDiagram,dangerouslySetInnerHTML:{__html:r}}):(0,Q.jsx)(`div`,{className:Z.mermaidLoading,children:`正在渲染图表...`})}var dV=[aR,iV];function fV(e){return e.anchor.type===`file`?0:e.anchor.type===`markdown-line`?e.anchor.lineNumber:2**53-1}function pV(e,t){return t.filter(t=>t.filePath===e&&t.status!==`resolved`).sort((e,t)=>fV(e)-fV(t)||e.createdAt.localeCompare(t.createdAt))[0]}function mV(e){e.scrollTop=0}function hV(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();e.scrollTop+=r.top-n.top}function gV(e,t){let n=[...e.querySelectorAll(`[data-review-line]`)];return n.filter(e=>Number(e.dataset.reviewLine)<=t).at(-1)??n.find(e=>Number(e.dataset.reviewLine)>=t)??null}function _V(e,t){let n=e.blocks.find(e=>t>=e.startLine&&t<=e.endLine);return n?n.startLine:e.blocks.find(e=>e.startLine>=t)?.startLine??e.blocks.at(-1)?.startLine??t}function vV(e){return/^(https?:|mailto:|#|\.{0,2}\/|\/)/i.test(e.trim())}function yV(e){let t=e.split(`/`).filter(e=>e.length>0&&e!==`.`),n=[];for(let e of t){if(e===`..`){n.pop();continue}n.push(e)}return n}function bV(e,t){if(!t||/^https?:|^mailto:|^#/i.test(t)||t.startsWith(`/`))return t;let n=t.split(`#`)[0]?.split(`?`)[0]??t,r=yV(e);r.pop();let i=yV(n),a=[...r,...i].join(`/`);return a?`/api/markdown-asset?path=${encodeURIComponent(a)}`:t}function xV(e){return typeof e==`string`||typeof e==`number`?String(e):Array.isArray(e)?e.map(xV).join(``):v.isValidElement(e)?xV(e.props.children):``}function SV(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`).join(` `):typeof e==`string`?e:``}function CV(e){return v.isValidElement(e)&&!!(e.props.className||e.props.children)}function wV(e){let t=e?.position?.start?.line;return typeof t==`number`?t:void 0}function TV(e){let t=e?.children?.find(e=>e.tagName===`code`);return SV(t?.properties?.className)}function EV(e){return e?e.type===`text`?e.value??``:e.children?.map(EV).join(``)??``:``}function DV(e){let t=e?.children?.find(e=>e.tagName===`code`);return EV(t)}function OV({file:e,threads:t,onCreate:n,onLocateThread:r,onPatchThread:i,onDeleteThread:a,onReplyThread:o,onPatchComment:s,onDeleteComment:c,onCopyThread:l}){let[u,d]=v.useState(null),f=v.useRef(null),p=v.useRef(``);v.useEffect(()=>{d(null),fetch(`/api/markdown-preview?path=${encodeURIComponent(e.path)}`).then(e=>e.json()).then(e=>d(e)).catch(()=>d(null))},[e.path]),v.useEffect(()=>{let n=f.current;if(!n||!u||u.filePath!==e.path||p.current===e.path)return;p.current=e.path;let r=pV(e.path,t);window.requestAnimationFrame(()=>{if(!r||r.anchor.type===`file`||r.anchor.type!==`markdown-line`){mV(n);return}let e=_V(u,r.anchor.lineNumber),t=n.querySelector(`[data-review-line="${e}"]`)??gV(n,e);if(!t){mV(n);return}hV(n,t)})},[e.path,u,t]);let m=v.useMemo(()=>{let n=new Map;for(let r of t){if(r.anchor.type!==`markdown-line`||r.anchor.filePath!==e.path)continue;let t=u?.blocks.find(e=>r.anchor.type===`markdown-line`&&r.anchor.lineNumber>=e.startLine&&r.anchor.lineNumber<=e.endLine)?.startLine??r.anchor.lineNumber,i=n.get(t)??[];i.push(r),n.set(t,i)}return n},[e.path,u?.blocks,t]),h=v.useCallback((t,u)=>t?(0,Q.jsx)(aV,{lineNumber:t,filePath:e.path,lineThreads:m.get(t)??[],onCreate:n,onLocateThread:r,onPatchThread:i,onDeleteThread:a,onReplyThread:o,onPatchComment:s,onDeleteComment:c,onCopyThread:l,children:u}):u,[e.path,l,n,c,a,r,s,i,o,m]),g=v.useMemo(()=>({h1({children:e,node:t,...n}){return h(wV(t),(0,Q.jsx)(`h1`,{...n,children:e}))},h2({children:e,node:t,...n}){return h(wV(t),(0,Q.jsx)(`h2`,{...n,children:e}))},h3({children:e,node:t,...n}){return h(wV(t),(0,Q.jsx)(`h3`,{...n,children:e}))},h4({children:e,node:t,...n}){return h(wV(t),(0,Q.jsx)(`h4`,{...n,children:e}))},h5({children:e,node:t,...n}){return h(wV(t),(0,Q.jsx)(`h5`,{...n,children:e}))},h6({children:e,node:t,...n}){return h(wV(t),(0,Q.jsx)(`h6`,{...n,children:e}))},p({children:e,node:t,...n}){return h(wV(t),(0,Q.jsx)(`p`,{...n,children:e}))},blockquote({children:e,node:t,...n}){return h(wV(t),(0,Q.jsx)(`blockquote`,{...n,children:e}))},pre({children:e,node:t,...n}){let r=v.Children.toArray(e).find(CV),i=xV(r??e)||DV(t),a=r?.props.className??TV(t),o=/language-(\S+)/.exec(a)?.[1],s=i.replace(/\n$/,``),c=wV(t);return o===`mermaid`&&s.trim()?h(c,(0,Q.jsx)(uV,{chart:s})):h(c,(0,Q.jsx)(`pre`,{className:Z.markdownPre,...n,children:e}))},code({className:e,children:t,node:n,...r}){return e?(0,Q.jsx)(`code`,{className:e,...r,children:t}):(0,Q.jsx)(`code`,{className:Z.markdownInlineCode,...r,children:t})},table({children:e,node:t,...n}){return h(wV(t),(0,Q.jsx)(`div`,{className:Z.markdownTableScroll,children:(0,Q.jsx)(`table`,{...n,children:e})}))},a({href:e,children:t,node:n,...r}){let i=e??``;if(!i||!vV(i))return(0,Q.jsx)(`span`,{children:t});let a=/^https?:/i.test(i);return(0,Q.jsx)(`a`,{href:i,target:a?`_blank`:void 0,rel:a?`noreferrer`:void 0,...r,children:t})},img({src:t,alt:n,node:r,...i}){let a=t??``;return!a||!vV(a)?null:(0,Q.jsx)(`img`,{src:bV(e.path,a),alt:n??``,loading:`lazy`,...i})}}),[e.path,h]);return u?(0,Q.jsxs)(`div`,{className:Z.markdownShell,ref:f,children:[u.deleted?(0,Q.jsx)(Yc,{className:Z.deletedBanner,message:`该文件已删除,仅展示删除前预览`,type:`warning`,showIcon:!0}):null,(0,Q.jsx)(`article`,{className:Z.markdownArticle,children:(0,Q.jsx)(`div`,{className:Z.markdownBody,children:(0,Q.jsx)(NL,{remarkPlugins:dV,urlTransform:e=>vV(e)?e:``,components:g,children:u.content})})})]}):(0,Q.jsx)(`div`,{className:Z.markdownLoading,children:(0,Q.jsx)(NO,{})})}function kV(e){return e.mode.kind===`revision`?`范围:${e.mode.base}..${e.mode.target}`:e.mode.kind===`staged`?`范围:暂存区`:e.mode.kind===`working`?`范围:工作区`:`范围:未知`}function AV(e){return e.anchor.type===`file`?e.filePath:`${e.filePath}:${e.anchor.lineNumber}`}function jV(e){return e===`added`?`A`:e===`modified`?`M`:e===`deleted`?`D`:e===`renamed`?`R`:e}var MV={submit:0,replied:1,resolved:2};function NV({threads:e,currentDiffHash:t,currentFilePath:n,focusedThreadId:r,onPatch:i,onDeleteThread:a,onReply:o,onPatchComment:s,onDeleteComment:c,onCopy:l}){let[u,d]=v.useState(`all`),[f,p]=v.useState(`current-file`),m=v.useRef({}),h=v.useMemo(()=>n?e.filter(e=>e.filePath===n).length:0,[n,e]),g=v.useMemo(()=>f===`all-diff`?e:n?e.filter(e=>e.filePath===n):[],[n,f,e]),_=v.useMemo(()=>g.map(e=>({key:e.id,thread:e})),[g]),y=v.useMemo(()=>_.filter(e=>{let t=FA(e.thread);return u===`resolved`?t===`resolved`:u===`pending`?t!==`resolved`:!0}).sort((e,t)=>{let n=FA(e.thread),r=FA(t.thread);return MV[n]-MV[r]}),[u,_]),b=v.useMemo(()=>({resolved:g.filter(e=>FA(e)===`resolved`),submit:g.filter(e=>FA(e)===`submit`)}),[g]),x=v.useCallback(async e=>{let t=[];e===`delete-resolved`&&(t=b.resolved),e===`delete-submit`&&(t=b.submit),e===`delete-all`&&(t=g);for(let e of t)await a(e.id)},[b.resolved,b.submit,a,g]),S=v.useCallback(e=>{let t=e===`delete-resolved`?b.resolved.length:e===`delete-submit`?b.submit.length:g.length,n=e===`delete-resolved`?`删除全部已解决评论(${t})?`:e===`delete-submit`?`删除全部 submit 评论(${t})?`:`清空全部评论(${t})?`,r=e===`delete-all`?`清空`:`删除`;GO.confirm({title:n,okText:r,cancelText:`取消`,okButtonProps:e===`delete-all`?{danger:!0}:void 0,onOk:async()=>x(e)})},[b.resolved.length,b.submit.length,x,g.length]);return v.useEffect(()=>{n||p(`all-diff`)},[n]),v.useEffect(()=>{if(!r)return;let e=y.find(e=>e.thread.id===r);e&&m.current[e.key]?.scrollIntoView({block:`start`,behavior:`smooth`})},[r,y]),(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(`div`,{className:Z.threadScopeBar,children:[(0,Q.jsx)(xA.Text,{className:Z.threadScopeLabel,children:`查看范围`}),(0,Q.jsxs)(`div`,{className:n?Z.threadScopeSwitchRow:`${Z.threadScopeSwitchRow} ${Z.threadScopeSwitchRowDisabled}`,children:[(0,Q.jsxs)(`button`,{type:`button`,className:f===`current-file`?`${Z.threadScopeOption} ${Z.threadScopeOptionActive}`:Z.threadScopeOption,onClick:()=>p(`current-file`),disabled:!n,children:[`当前文件 (`,h,`)`]}),(0,Q.jsx)(sk,{className:Z.threadScopeSwitch,checked:f===`all-diff`,onChange:e=>p(e?`all-diff`:`current-file`),disabled:!n,size:`small`}),(0,Q.jsxs)(`button`,{type:`button`,className:f===`all-diff`?`${Z.threadScopeOption} ${Z.threadScopeOptionActive}`:Z.threadScopeOption,onClick:()=>p(`all-diff`),disabled:!n,children:[`全部评论 (`,e.length,`)`]})]})]}),(0,Q.jsxs)(`div`,{className:Z.threadListToolbar,children:[(0,Q.jsx)(`div`,{className:Z.threadFilterWrap,children:(0,Q.jsx)(iE,{value:u,onChange:e=>d(e),options:[{label:`全部 (${_.length})`,value:`all`},{label:`未解决 (${_.filter(e=>FA(e.thread)!==`resolved`).length})`,value:`pending`},{label:`已解决 (${_.filter(e=>FA(e.thread)===`resolved`).length})`,value:`resolved`}],size:`small`})}),(0,Q.jsx)(jE,{menu:{items:[{key:`delete-resolved`,label:`删除已解决(${b.resolved.length})`,disabled:b.resolved.length===0},{key:`delete-submit`,label:`删除待提交(${b.submit.length})`,disabled:b.submit.length===0},{type:`divider`},{key:`delete-all`,label:`清空全部(${g.length})`,danger:!0,disabled:g.length===0}],onClick:({key:e})=>{(e===`delete-resolved`||e===`delete-submit`||e===`delete-all`)&&S(e)}},trigger:[`click`],children:(0,Q.jsxs)(HC,{size:`small`,className:Z.threadBatchButton,children:[`批量操作 `,(0,Q.jsx)(Tb,{})]})})]}),y.length===0?(0,Q.jsx)(rb,{className:Z.threadEmpty,description:`暂无评论,悬停到行右侧或添加文件级评论即可开始。`}):(0,Q.jsx)(`div`,{className:Z.threads,children:y.map(e=>{let n=e.thread,u=FA(n),d=r===n.id,f=n.diffHash!==t;return(0,Q.jsxs)(IT,{className:[Z.thread,FV(u),d?u===`resolved`?`${Z.threadFocused} ${Z.threadFocusedResolved}`:`${Z.threadFocused} ${Z.threadFocusedPending}`:``].filter(Boolean).join(` `),ref:t=>{m.current[e.key]=t},children:[(0,Q.jsxs)(kE,{className:Z.threadTop,align:`start`,size:8,children:[(0,Q.jsx)(xA.Text,{className:Z.threadAnchor,strong:!0,children:AV(n)}),u===`replied`?null:(0,Q.jsx)(bk,{className:`${Z.threadTag} ${PV(u)}`,children:PA[u]}),f?(0,Q.jsx)(bk,{className:Z.threadTag,children:`历史快照`}):null]}),(0,Q.jsx)(`div`,{className:Z.threadListInlineBorderless,children:(0,Q.jsx)(RA,{threads:[n],showStatusTag:!1,onFocus:()=>void 0,onPatch:i,onDeleteThread:a,onReply:o,onPatchComment:s,onDeleteComment:c,onCopy:l})})]},e.key)})})]})}function PV(e){return e===`submit`?Z.threadTagSubmit:e===`replied`?Z.threadTagReplied:Z.threadTagResolved}function FV(e){return e===`submit`?Z.submit:e===`replied`?Z.replied:Z.resolved}var IV=36,LV=18;function RV(e,t,n){if(e.length<=t)return e;let r=Math.min(n,t-4),i=t-r-3;return`${e.slice(0,i)}...${e.slice(-r)}`}function zV(e){return e?e.repoName||e.repoRoot.split(/[\\/]/).filter(Boolean).at(-1)||e.repoRoot:`正在加载仓库`}function BV(e,t){return e===t?!0:e.length===t.length?JSON.stringify(e)===JSON.stringify(t):!1}function VV(){let{message:e}=J_.useApp(),[t,n]=v.useState(null),[r,i]=v.useState([]),[a,o]=v.useState([]),[s,c]=v.useState(``),[l,u]=v.useState(`split`),[d,f]=v.useState(null),p=r.find(e=>e.path===s)??r[0],m=v.useMemo(()=>a.filter(e=>e.diffHash===t?.diffHash),[t?.diffHash,a]),h=a.filter(e=>e.status!==`resolved`).length;v.useEffect(()=>{g()},[]),v.useEffect(()=>{let e=()=>{document.visibilityState===`visible`&&_()},t=window.setInterval(e,2500);return window.addEventListener(`focus`,e),document.addEventListener(`visibilitychange`,e),()=>{window.clearInterval(t),window.removeEventListener(`focus`,e),document.removeEventListener(`visibilitychange`,e)}},[d,t?.id]);async function g(){await _(!0)}async function _(e=!1){let r=await(await fetch(`/api/review-state`)).json();(e||t?.id!==r.session.id)&&(n(r.session),i(r.files),c(e=>r.files.some(t=>t.path===e)?e:r.files[0]?.path??``)),o(e=>BV(e,r.threads)?e:r.threads),d&&!r.threads.some(e=>e.id===d)&&f(null)}async function y(e,t){await fetch(`/api/threads`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({filePath:e.filePath,anchor:e,body:t})}),await _()}async function b(e,t){let n=await fetch(`/api/threads/${e}`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({status:t})});if(!n.ok){let e=await n.json().catch(()=>({error:`更新评论状态失败`}));throw Error(e.error??`更新评论状态失败`)}await _()}async function x(e){await fetch(`/api/threads/${e}`,{method:`DELETE`}),await _()}async function S(e,t){await fetch(`/api/threads/${e}/comments`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({body:t,author:`user`})}),await _()}async function C(e,t,n){if(!t)throw Error(`Comment id is required`);let r=await fetch(`/api/threads/${e}/comments/${t}`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({body:n})});if(!r.ok){let e=await r.json().catch(()=>({error:`编辑评论失败`}));throw Error(e.error??`编辑评论失败`)}await _()}async function w(e,t){if(!t)throw Error(`Comment id is required`);let n=await fetch(`/api/threads/${e}/comments/${t}`,{method:`DELETE`});if(!n.ok){let e=await n.json().catch(()=>({error:`删除评论失败`}));throw Error(e.error??`删除评论失败`)}await _()}async function T(t){let n=await(await fetch(`/api/prompt`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)})).json();await navigator.clipboard.writeText(n.prompt),e.success(`提示词已复制到剪贴板`)}function E(e){f(e)}return v.useEffect(()=>{f(null)},[s]),(0,Q.jsxs)(FD,{className:Z.shell,children:[(0,Q.jsxs)(`aside`,{className:Z.sidebar,children:[(0,Q.jsxs)(`div`,{className:Z.brand,children:[(0,Q.jsx)(`div`,{className:Z.brandMark,children:`DR`}),(0,Q.jsxs)(`div`,{className:Z.brandCopy,children:[(0,Q.jsx)(xA.Text,{className:Z.repoName,title:t?.repoRoot,children:zV(t)}),(0,Q.jsx)(xA.Text,{className:Z.productName,children:`Diff 审查台`}),(0,Q.jsx)(xA.Text,{type:`secondary`,children:t?kV(t):`正在加载会话`})]})]}),(0,Q.jsx)(IT,{className:Z.sideCard,bordered:!1,children:(0,Q.jsxs)(kE,{size:8,wrap:!0,children:[(0,Q.jsx)(bk,{color:`blue`,children:t?.mode.kind===`revision`?`混合模式`:`本地模式`}),(0,Q.jsxs)(bk,{color:`gold`,children:[r.length,` files`]})]})}),(0,Q.jsx)(`div`,{className:Z.fileRailHeader,children:(0,Q.jsx)(xA.Text,{strong:!0,children:`文件列表`})}),(0,Q.jsx)(VO,{className:Z.fileList,dataSource:r,renderItem:e=>{let t=e.path===p?.path,n=a.filter(t=>t.filePath===e.path&&t.status!==`resolved`);return(0,Q.jsxs)(VO.Item,{className:t?`${Z.fileItem} ${Z.fileItemActive}`:Z.fileItem,onClick:()=>c(e.path),children:[(0,Q.jsxs)(`div`,{className:Z.fileMeta,children:[(0,Q.jsx)(bk,{color:e.status===`deleted`?`error`:e.status===`added`?`green`:`processing`,children:jV(e.status)}),(0,Q.jsx)(xA.Text,{strong:!0,className:Z.fileName,title:e.path,children:RV(e.path,IV,LV)})]}),(0,Q.jsxs)(xA.Text,{className:Z.fileStats,type:`secondary`,children:[(0,Q.jsxs)(`span`,{className:Z.fileStatAdd,children:[`+`,e.additions]}),` / `,(0,Q.jsxs)(`span`,{className:Z.fileStatDelete,children:[`-`,e.deletions]})]}),n.length>0?(0,Q.jsx)(bk,{className:Z.fileThreadCount,icon:(0,Q.jsx)(wA,{}),children:n.length}):null]})}})]}),(0,Q.jsx)(`section`,{className:Z.reviewPane,children:p?(0,Q.jsxs)(Q.Fragment,{children:[p.isMarkdown?null:(0,Q.jsx)(`div`,{className:Z.topToolbar,children:(0,Q.jsx)(iE,{className:Z.viewModeSwitcher,options:[{label:`Side by side`,value:`split`,icon:(0,Q.jsx)(DA,{})},{label:`Inline`,value:`inline`,icon:(0,Q.jsx)(iD,{})}],value:l,onChange:e=>u(e)})}),(0,Q.jsxs)(`div`,{className:Z.reviewSurface,children:[(0,Q.jsx)(XA,{file:p,threads:m,onCreate:y,onCopy:T,onLocateThread:E,onPatchThread:b,onDeleteThread:x,onReplyThread:S,onPatchComment:C,onDeleteComment:w,onCopyThread:T}),p.isMarkdown?(0,Q.jsx)(OV,{file:p,threads:m,onCreate:y,onLocateThread:E,onPatchThread:b,onDeleteThread:x,onReplyThread:S,onPatchComment:C,onDeleteComment:w,onCopyThread:T},t?.id):(0,Q.jsx)(YA,{file:p,threads:m,onCreate:y,onLocateThread:E,onPatchThread:b,onDeleteThread:x,onReplyThread:S,onPatchComment:C,onDeleteComment:w,onCopyThread:T,viewMode:l},t?.id)]})]}):(0,Q.jsx)(IT,{className:Z.emptyStateCard,bordered:!1,children:(0,Q.jsx)(xA.Text,{type:`secondary`,children:`未发现变更,当前工作区很安静。`})})}),(0,Q.jsxs)(`aside`,{className:Z.threadRail,children:[(0,Q.jsxs)(`div`,{className:Z.threadRailHeader,children:[(0,Q.jsxs)(xA.Title,{className:Z.threadRailTitle,level:4,children:[`评论 (`,h,`)`]}),(0,Q.jsx)(HC,{icon:(0,Q.jsx)(Yk,{}),type:`primary`,onClick:()=>void T({type:`all-unresolved`}),children:`批量提交给 Agent`})]}),(0,Q.jsx)(`div`,{className:Z.threadRailBody,children:(0,Q.jsx)(NV,{threads:a,currentDiffHash:t?.diffHash,currentFilePath:p?.path??``,focusedThreadId:d,onPatch:b,onDeleteThread:x,onReply:S,onPatchComment:C,onDeleteComment:w,onCopy:T})})]})]})}(0,dd.createRoot)(document.getElementById(`root`)).render((0,Q.jsx)(v.StrictMode,{children:(0,Q.jsx)(Mu,{theme:{token:{colorPrimary:`#2f6fed`,colorSuccess:`#2f8f63`,colorWarning:`#d59b2a`,colorTextBase:`#16181d`,colorBgBase:`#f4f6fa`,fontFamily:`"SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif`,borderRadius:14}},children:(0,Q.jsx)(J_,{children:(0,Q.jsx)(VV,{})})})}));export{tr as a,mn as c,dn as d,o as f,cr as i,ln as l,lr as n,on as o,l as p,sr as r,pn as s,lV as t,hn as u};