@getvibeguard/cli 1.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 (128) hide show
  1. package/README.md +166 -0
  2. package/dashboard/dist/assets/Tableau10-B-NsZVaP.js +1 -0
  3. package/dashboard/dist/assets/arc-CZ1oDkm-.js +1 -0
  4. package/dashboard/dist/assets/array-BKyUJesY.js +1 -0
  5. package/dashboard/dist/assets/blockDiagram-c4efeb88-BLITAZDl.js +118 -0
  6. package/dashboard/dist/assets/c4Diagram-c83219d4-DErNj891.js +10 -0
  7. package/dashboard/dist/assets/channel-sWBGOq9p.js +1 -0
  8. package/dashboard/dist/assets/classDiagram-beda092f-Bj8IB6RW.js +2 -0
  9. package/dashboard/dist/assets/classDiagram-v2-2358418a-BZtd2g5W.js +2 -0
  10. package/dashboard/dist/assets/clone-DtEyH3ya.js +1 -0
  11. package/dashboard/dist/assets/createText-1719965b-DkNrTk-5.js +7 -0
  12. package/dashboard/dist/assets/edges-96097737-CYxl0j3g.js +4 -0
  13. package/dashboard/dist/assets/erDiagram-0228fc6a-ClEp9Atg.js +51 -0
  14. package/dashboard/dist/assets/flowDb-c6c81e3f-ClDJCJwu.js +10 -0
  15. package/dashboard/dist/assets/flowDiagram-50d868cf-DYxwClWS.js +4 -0
  16. package/dashboard/dist/assets/flowDiagram-v2-4f6560a1-D7vEnO1T.js +1 -0
  17. package/dashboard/dist/assets/flowchart-elk-definition-6af322e1-C-wX1mNx.js +139 -0
  18. package/dashboard/dist/assets/ganttDiagram-a2739b55-DTeLavAj.js +257 -0
  19. package/dashboard/dist/assets/gitGraphDiagram-82fe8481-ClxNoYya.js +70 -0
  20. package/dashboard/dist/assets/graph-CT-F3Got.js +1 -0
  21. package/dashboard/dist/assets/index-5325376f-C-jTCYZA.js +1 -0
  22. package/dashboard/dist/assets/index-CvYvquQR.js +283 -0
  23. package/dashboard/dist/assets/index-n43poL1x.css +1 -0
  24. package/dashboard/dist/assets/infoDiagram-8eee0895-Zljudo5L.js +7 -0
  25. package/dashboard/dist/assets/init-Gi6I4Gst.js +1 -0
  26. package/dashboard/dist/assets/journeyDiagram-c64418c1-DXzTbuum.js +139 -0
  27. package/dashboard/dist/assets/katex-Cu_Erd72.js +261 -0
  28. package/dashboard/dist/assets/layout-CVO3EizT.js +1 -0
  29. package/dashboard/dist/assets/line-CIgln-0z.js +1 -0
  30. package/dashboard/dist/assets/linear-bmIUMQqg.js +1 -0
  31. package/dashboard/dist/assets/mindmap-definition-8da855dc-BDLTNZYk.js +425 -0
  32. package/dashboard/dist/assets/ordinal-Cboi1Yqb.js +1 -0
  33. package/dashboard/dist/assets/path-CbwjOpE9.js +1 -0
  34. package/dashboard/dist/assets/pieDiagram-a8764435-DtcOKNPc.js +35 -0
  35. package/dashboard/dist/assets/quadrantDiagram-1e28029f-zoSI_Ltf.js +7 -0
  36. package/dashboard/dist/assets/requirementDiagram-08caed73-TsQZ9lTB.js +52 -0
  37. package/dashboard/dist/assets/sankeyDiagram-a04cb91d-DE5ciDwD.js +8 -0
  38. package/dashboard/dist/assets/sequenceDiagram-c5b8d532-DhabPb2n.js +122 -0
  39. package/dashboard/dist/assets/stateDiagram-1ecb1508-Bg2q_YNx.js +1 -0
  40. package/dashboard/dist/assets/stateDiagram-v2-c2b004d7-Bs5iRjYB.js +1 -0
  41. package/dashboard/dist/assets/styles-b4e223ce-DchmAmav.js +160 -0
  42. package/dashboard/dist/assets/styles-ca3715f6-Bu5zjaDx.js +207 -0
  43. package/dashboard/dist/assets/styles-d45a18b0-jCaD8baR.js +116 -0
  44. package/dashboard/dist/assets/svgDrawCommon-b86b1483-BrYVGY4c.js +1 -0
  45. package/dashboard/dist/assets/timeline-definition-faaaa080--sq0bTHe.js +61 -0
  46. package/dashboard/dist/assets/xychartDiagram-f5964ef8-ByvzN0uj.js +7 -0
  47. package/dashboard/dist/index.html +22 -0
  48. package/dist/cli.d.ts +4 -0
  49. package/dist/cli.d.ts.map +1 -0
  50. package/dist/cli.js +641 -0
  51. package/dist/cli.js.map +1 -0
  52. package/dist/commands/dashboard.d.ts +2 -0
  53. package/dist/commands/dashboard.d.ts.map +1 -0
  54. package/dist/commands/dashboard.js +184 -0
  55. package/dist/commands/dashboard.js.map +1 -0
  56. package/dist/commands/init.d.ts +5 -0
  57. package/dist/commands/init.d.ts.map +1 -0
  58. package/dist/commands/init.js +501 -0
  59. package/dist/commands/init.js.map +1 -0
  60. package/dist/index.d.ts +3 -0
  61. package/dist/index.d.ts.map +1 -0
  62. package/dist/index.js +602 -0
  63. package/dist/index.js.map +1 -0
  64. package/dist/librarian/autofix.d.ts +34 -0
  65. package/dist/librarian/autofix.d.ts.map +1 -0
  66. package/dist/librarian/autofix.js +369 -0
  67. package/dist/librarian/autofix.js.map +1 -0
  68. package/dist/librarian/heartbeat.d.ts +38 -0
  69. package/dist/librarian/heartbeat.d.ts.map +1 -0
  70. package/dist/librarian/heartbeat.js +98 -0
  71. package/dist/librarian/heartbeat.js.map +1 -0
  72. package/dist/librarian/initializer.d.ts +41 -0
  73. package/dist/librarian/initializer.d.ts.map +1 -0
  74. package/dist/librarian/initializer.js +202 -0
  75. package/dist/librarian/initializer.js.map +1 -0
  76. package/dist/librarian/memory-manager.d.ts +37 -0
  77. package/dist/librarian/memory-manager.d.ts.map +1 -0
  78. package/dist/librarian/memory-manager.js +205 -0
  79. package/dist/librarian/memory-manager.js.map +1 -0
  80. package/dist/librarian/oracle.d.ts +51 -0
  81. package/dist/librarian/oracle.d.ts.map +1 -0
  82. package/dist/librarian/oracle.js +235 -0
  83. package/dist/librarian/oracle.js.map +1 -0
  84. package/dist/librarian/summarizer.d.ts +19 -0
  85. package/dist/librarian/summarizer.d.ts.map +1 -0
  86. package/dist/librarian/summarizer.js +175 -0
  87. package/dist/librarian/summarizer.js.map +1 -0
  88. package/dist/librarian/watcher.d.ts +51 -0
  89. package/dist/librarian/watcher.d.ts.map +1 -0
  90. package/dist/librarian/watcher.js +189 -0
  91. package/dist/librarian/watcher.js.map +1 -0
  92. package/dist/mcp-server.d.ts +10 -0
  93. package/dist/mcp-server.d.ts.map +1 -0
  94. package/dist/mcp-server.js +879 -0
  95. package/dist/mcp-server.js.map +1 -0
  96. package/dist/services/token-tracker.d.ts +58 -0
  97. package/dist/services/token-tracker.d.ts.map +1 -0
  98. package/dist/services/token-tracker.js +178 -0
  99. package/dist/services/token-tracker.js.map +1 -0
  100. package/dist/utils/chunker.d.ts +5 -0
  101. package/dist/utils/chunker.d.ts.map +1 -0
  102. package/dist/utils/chunker.js +121 -0
  103. package/dist/utils/chunker.js.map +1 -0
  104. package/dist/utils/config-manager.d.ts +65 -0
  105. package/dist/utils/config-manager.d.ts.map +1 -0
  106. package/dist/utils/config-manager.js +243 -0
  107. package/dist/utils/config-manager.js.map +1 -0
  108. package/dist/utils/config.d.ts +46 -0
  109. package/dist/utils/config.d.ts.map +1 -0
  110. package/dist/utils/config.js +171 -0
  111. package/dist/utils/config.js.map +1 -0
  112. package/dist/utils/diff-cleaner.d.ts +13 -0
  113. package/dist/utils/diff-cleaner.d.ts.map +1 -0
  114. package/dist/utils/diff-cleaner.js +80 -0
  115. package/dist/utils/diff-cleaner.js.map +1 -0
  116. package/dist/utils/git.d.ts +71 -0
  117. package/dist/utils/git.d.ts.map +1 -0
  118. package/dist/utils/git.js +285 -0
  119. package/dist/utils/git.js.map +1 -0
  120. package/dist/utils/llm.d.ts +30 -0
  121. package/dist/utils/llm.d.ts.map +1 -0
  122. package/dist/utils/llm.js +308 -0
  123. package/dist/utils/llm.js.map +1 -0
  124. package/dist/utils/pricing.d.ts +47 -0
  125. package/dist/utils/pricing.d.ts.map +1 -0
  126. package/dist/utils/pricing.js +171 -0
  127. package/dist/utils/pricing.js.map +1 -0
  128. package/package.json +45 -0
@@ -0,0 +1,283 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/c4Diagram-c83219d4-DErNj891.js","assets/svgDrawCommon-b86b1483-BrYVGY4c.js","assets/flowDiagram-50d868cf-DYxwClWS.js","assets/flowDb-c6c81e3f-ClDJCJwu.js","assets/graph-CT-F3Got.js","assets/layout-CVO3EizT.js","assets/styles-d45a18b0-jCaD8baR.js","assets/index-5325376f-C-jTCYZA.js","assets/clone-DtEyH3ya.js","assets/edges-96097737-CYxl0j3g.js","assets/createText-1719965b-DkNrTk-5.js","assets/line-CIgln-0z.js","assets/array-BKyUJesY.js","assets/path-CbwjOpE9.js","assets/channel-sWBGOq9p.js","assets/flowDiagram-v2-4f6560a1-D7vEnO1T.js","assets/erDiagram-0228fc6a-ClEp9Atg.js","assets/ganttDiagram-a2739b55-DTeLavAj.js","assets/linear-bmIUMQqg.js","assets/init-Gi6I4Gst.js","assets/pieDiagram-a8764435-DtcOKNPc.js","assets/arc-CZ1oDkm-.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-1e28029f-zoSI_Ltf.js","assets/xychartDiagram-f5964ef8-ByvzN0uj.js","assets/requirementDiagram-08caed73-TsQZ9lTB.js","assets/sequenceDiagram-c5b8d532-DhabPb2n.js","assets/classDiagram-beda092f-Bj8IB6RW.js","assets/styles-b4e223ce-DchmAmav.js","assets/classDiagram-v2-2358418a-BZtd2g5W.js","assets/stateDiagram-1ecb1508-Bg2q_YNx.js","assets/styles-ca3715f6-Bu5zjaDx.js","assets/stateDiagram-v2-c2b004d7-Bs5iRjYB.js","assets/journeyDiagram-c64418c1-DXzTbuum.js","assets/flowchart-elk-definition-6af322e1-C-wX1mNx.js","assets/timeline-definition-faaaa080--sq0bTHe.js","assets/mindmap-definition-8da855dc-BDLTNZYk.js","assets/sankeyDiagram-a04cb91d-DE5ciDwD.js","assets/Tableau10-B-NsZVaP.js","assets/blockDiagram-c4efeb88-BLITAZDl.js"])))=>i.map(i=>d[i]);
2
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Gs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ju(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xv={exports:{}},ec={},vv={exports:{}},de={};/**
3
+ * @license React
4
+ * react.production.min.js
5
+ *
6
+ * Copyright (c) Facebook, Inc. and its affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var ba=Symbol.for("react.element"),yb=Symbol.for("react.portal"),xb=Symbol.for("react.fragment"),vb=Symbol.for("react.strict_mode"),Cb=Symbol.for("react.profiler"),_b=Symbol.for("react.provider"),wb=Symbol.for("react.context"),kb=Symbol.for("react.forward_ref"),Sb=Symbol.for("react.suspense"),Tb=Symbol.for("react.memo"),bb=Symbol.for("react.lazy"),Rg=Symbol.iterator;function Eb(e){return e===null||typeof e!="object"?null:(e=Rg&&e[Rg]||e["@@iterator"],typeof e=="function"?e:null)}var Cv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_v=Object.assign,wv={};function jo(e,t,n){this.props=e,this.context=t,this.refs=wv,this.updater=n||Cv}jo.prototype.isReactComponent={};jo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): 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")};jo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function kv(){}kv.prototype=jo.prototype;function np(e,t,n){this.props=e,this.context=t,this.refs=wv,this.updater=n||Cv}var rp=np.prototype=new kv;rp.constructor=np;_v(rp,jo.prototype);rp.isPureReactComponent=!0;var zg=Array.isArray,Sv=Object.prototype.hasOwnProperty,ip={current:null},Tv={key:!0,ref:!0,__self:!0,__source:!0};function bv(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Sv.call(t,r)&&!Tv.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:ba,type:e,key:o,ref:s,props:i,_owner:ip.current}}function Ab(e,t){return{$$typeof:ba,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function op(e){return typeof e=="object"&&e!==null&&e.$$typeof===ba}function Lb(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var jg=/\/+/g;function Kc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Lb(""+e.key):t.toString(36)}function Tl(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case ba:case yb:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Kc(s,0):r,zg(i)?(n="",e!=null&&(n=e.replace(jg,"$&/")+"/"),Tl(i,t,n,"",function(u){return u})):i!=null&&(op(i)&&(i=Ab(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(jg,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",zg(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+Kc(o,a);s+=Tl(o,t,n,l,i)}else if(l=Eb(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+Kc(o,a++),s+=Tl(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Ya(e,t,n){if(e==null)return e;var r=[],i=0;return Tl(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Pb(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Tt={current:null},bl={transition:null},Fb={ReactCurrentDispatcher:Tt,ReactCurrentBatchConfig:bl,ReactCurrentOwner:ip};function Ev(){throw Error("act(...) is not supported in production builds of React.")}de.Children={map:Ya,forEach:function(e,t,n){Ya(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ya(e,function(){t++}),t},toArray:function(e){return Ya(e,function(t){return t})||[]},only:function(e){if(!op(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};de.Component=jo;de.Fragment=xb;de.Profiler=Cb;de.PureComponent=np;de.StrictMode=vb;de.Suspense=Sb;de.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Fb;de.act=Ev;de.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=_v({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=ip.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Sv.call(t,l)&&!Tv.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:ba,type:e.type,key:i,ref:o,props:r,_owner:s}};de.createContext=function(e){return e={$$typeof:wb,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:_b,_context:e},e.Consumer=e};de.createElement=bv;de.createFactory=function(e){var t=bv.bind(null,e);return t.type=e,t};de.createRef=function(){return{current:null}};de.forwardRef=function(e){return{$$typeof:kb,render:e}};de.isValidElement=op;de.lazy=function(e){return{$$typeof:bb,_payload:{_status:-1,_result:e},_init:Pb}};de.memo=function(e,t){return{$$typeof:Tb,type:e,compare:t===void 0?null:t}};de.startTransition=function(e){var t=bl.transition;bl.transition={};try{e()}finally{bl.transition=t}};de.unstable_act=Ev;de.useCallback=function(e,t){return Tt.current.useCallback(e,t)};de.useContext=function(e){return Tt.current.useContext(e)};de.useDebugValue=function(){};de.useDeferredValue=function(e){return Tt.current.useDeferredValue(e)};de.useEffect=function(e,t){return Tt.current.useEffect(e,t)};de.useId=function(){return Tt.current.useId()};de.useImperativeHandle=function(e,t,n){return Tt.current.useImperativeHandle(e,t,n)};de.useInsertionEffect=function(e,t){return Tt.current.useInsertionEffect(e,t)};de.useLayoutEffect=function(e,t){return Tt.current.useLayoutEffect(e,t)};de.useMemo=function(e,t){return Tt.current.useMemo(e,t)};de.useReducer=function(e,t,n){return Tt.current.useReducer(e,t,n)};de.useRef=function(e){return Tt.current.useRef(e)};de.useState=function(e){return Tt.current.useState(e)};de.useSyncExternalStore=function(e,t,n){return Tt.current.useSyncExternalStore(e,t,n)};de.useTransition=function(){return Tt.current.useTransition()};de.version="18.3.1";vv.exports=de;var R=vv.exports;const Bb=Ju(R);/**
11
+ * @license React
12
+ * react-jsx-runtime.production.min.js
13
+ *
14
+ * Copyright (c) Facebook, Inc. and its affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */var Mb=R,Nb=Symbol.for("react.element"),Ib=Symbol.for("react.fragment"),Db=Object.prototype.hasOwnProperty,Ob=Mb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Rb={key:!0,ref:!0,__self:!0,__source:!0};function Av(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Db.call(t,r)&&!Rb.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Nb,type:e,key:o,ref:s,props:i,_owner:Ob.current}}ec.Fragment=Ib;ec.jsx=Av;ec.jsxs=Av;xv.exports=ec;var C=xv.exports,hf={},Lv={exports:{}},Xt={},Pv={exports:{}},Fv={};/**
19
+ * @license React
20
+ * scheduler.production.min.js
21
+ *
22
+ * Copyright (c) Facebook, Inc. and its affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */(function(e){function t(A,M){var v=A.length;A.push(M);e:for(;0<v;){var U=v-1>>>1,J=A[U];if(0<i(J,M))A[U]=M,A[v]=J,v=U;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var M=A[0],v=A.pop();if(v!==M){A[0]=v;e:for(var U=0,J=A.length,_=J>>>1;U<_;){var ue=2*(U+1)-1,se=A[ue],ce=ue+1,Ne=A[ce];if(0>i(se,v))ce<J&&0>i(Ne,se)?(A[U]=Ne,A[ce]=v,U=ce):(A[U]=se,A[ue]=v,U=ue);else if(ce<J&&0>i(Ne,v))A[U]=Ne,A[ce]=v,U=ce;else break e}}return M}function i(A,M){var v=A.sortIndex-M.sortIndex;return v!==0?v:A.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,h=null,f=3,d=!1,g=!1,y=!1,k=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(A){for(var M=n(u);M!==null;){if(M.callback===null)r(u);else if(M.startTime<=A)r(u),M.sortIndex=M.expirationTime,t(l,M);else break;M=n(u)}}function S(A){if(y=!1,x(A),!g)if(n(l)!==null)g=!0,I(b);else{var M=n(u);M!==null&&O(S,M.startTime-A)}}function b(A,M){g=!1,y&&(y=!1,p(P),P=-1),d=!0;var v=f;try{for(x(M),h=n(l);h!==null&&(!(h.expirationTime>M)||A&&!B());){var U=h.callback;if(typeof U=="function"){h.callback=null,f=h.priorityLevel;var J=U(h.expirationTime<=M);M=e.unstable_now(),typeof J=="function"?h.callback=J:h===n(l)&&r(l),x(M)}else r(l);h=n(l)}if(h!==null)var _=!0;else{var ue=n(u);ue!==null&&O(S,ue.startTime-M),_=!1}return _}finally{h=null,f=v,d=!1}}var w=!1,L=null,P=-1,W=5,D=-1;function B(){return!(e.unstable_now()-D<W)}function Y(){if(L!==null){var A=e.unstable_now();D=A;var M=!0;try{M=L(!0,A)}finally{M?ae():(w=!1,L=null)}}else w=!1}var ae;if(typeof m=="function")ae=function(){m(Y)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,N=H.port2;H.port1.onmessage=Y,ae=function(){N.postMessage(null)}}else ae=function(){k(Y,0)};function I(A){L=A,w||(w=!0,ae())}function O(A,M){P=k(function(){A(e.unstable_now())},M)}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(A){A.callback=null},e.unstable_continueExecution=function(){g||d||(g=!0,I(b))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(A){switch(f){case 1:case 2:case 3:var M=3;break;default:M=f}var v=f;f=M;try{return A()}finally{f=v}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,M){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var v=f;f=A;try{return M()}finally{f=v}},e.unstable_scheduleCallback=function(A,M,v){var U=e.unstable_now();switch(typeof v=="object"&&v!==null?(v=v.delay,v=typeof v=="number"&&0<v?U+v:U):v=U,A){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=v+J,A={id:c++,callback:M,priorityLevel:A,startTime:v,expirationTime:J,sortIndex:-1},v>U?(A.sortIndex=v,t(u,A),n(l)===null&&A===n(u)&&(y?(p(P),P=-1):y=!0,O(S,v-U))):(A.sortIndex=J,t(l,A),g||d||(g=!0,I(b))),A},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(A){var M=f;return function(){var v=f;f=M;try{return A.apply(this,arguments)}finally{f=v}}}})(Fv);Pv.exports=Fv;var zb=Pv.exports;/**
27
+ * @license React
28
+ * react-dom.production.min.js
29
+ *
30
+ * Copyright (c) Facebook, Inc. and its affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var jb=R,Yt=zb;function z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;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."}var Bv=new Set,Ks={};function Ai(e,t){Co(e,t),Co(e+"Capture",t)}function Co(e,t){for(Ks[e]=t,e=0;e<t.length;e++)Bv.add(t[e])}var cr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ff=Object.prototype.hasOwnProperty,$b=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,$g={},Vg={};function Vb(e){return ff.call(Vg,e)?!0:ff.call($g,e)?!1:$b.test(e)?Vg[e]=!0:($g[e]=!0,!1)}function Ub(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function qb(e,t,n,r){if(t===null||typeof t>"u"||Ub(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function bt(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var rt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){rt[e]=new bt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];rt[t]=new bt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){rt[e]=new bt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){rt[e]=new bt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){rt[e]=new bt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){rt[e]=new bt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){rt[e]=new bt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){rt[e]=new bt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){rt[e]=new bt(e,5,!1,e.toLowerCase(),null,!1,!1)});var sp=/[\-:]([a-z])/g;function ap(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(sp,ap);rt[t]=new bt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(sp,ap);rt[t]=new bt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(sp,ap);rt[t]=new bt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){rt[e]=new bt(e,1,!1,e.toLowerCase(),null,!1,!1)});rt.xlinkHref=new bt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){rt[e]=new bt(e,1,!1,e.toLowerCase(),null,!0,!0)});function lp(e,t,n,r){var i=rt.hasOwnProperty(t)?rt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(qb(t,n,i,r)&&(n=null),r||i===null?Vb(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var gr=jb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ga=Symbol.for("react.element"),Ui=Symbol.for("react.portal"),qi=Symbol.for("react.fragment"),up=Symbol.for("react.strict_mode"),df=Symbol.for("react.profiler"),Mv=Symbol.for("react.provider"),Nv=Symbol.for("react.context"),cp=Symbol.for("react.forward_ref"),pf=Symbol.for("react.suspense"),mf=Symbol.for("react.suspense_list"),hp=Symbol.for("react.memo"),kr=Symbol.for("react.lazy"),Iv=Symbol.for("react.offscreen"),Ug=Symbol.iterator;function Zo(e){return e===null||typeof e!="object"?null:(e=Ug&&e[Ug]||e["@@iterator"],typeof e=="function"?e:null)}var Be=Object.assign,Xc;function gs(e){if(Xc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Xc=t&&t[1]||""}return`
35
+ `+Xc+e}var Qc=!1;function Zc(e,t){if(!e||Qc)return"";Qc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
36
+ `),o=r.stack.split(`
37
+ `),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
38
+ `+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Qc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?gs(e):""}function Hb(e){switch(e.tag){case 5:return gs(e.type);case 16:return gs("Lazy");case 13:return gs("Suspense");case 19:return gs("SuspenseList");case 0:case 2:case 15:return e=Zc(e.type,!1),e;case 11:return e=Zc(e.type.render,!1),e;case 1:return e=Zc(e.type,!0),e;default:return""}}function gf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case qi:return"Fragment";case Ui:return"Portal";case df:return"Profiler";case up:return"StrictMode";case pf:return"Suspense";case mf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Nv:return(e.displayName||"Context")+".Consumer";case Mv:return(e._context.displayName||"Context")+".Provider";case cp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case hp:return t=e.displayName||null,t!==null?t:gf(e.type)||"Memo";case kr:t=e._payload,e=e._init;try{return gf(e(t))}catch{}}return null}function Wb(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return gf(t);case 8:return t===up?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function jr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Dv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Yb(e){var t=Dv(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ka(e){e._valueTracker||(e._valueTracker=Yb(e))}function Ov(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Dv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Zl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function yf(e,t){var n=t.checked;return Be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function qg(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=jr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Rv(e,t){t=t.checked,t!=null&&lp(e,"checked",t,!1)}function xf(e,t){Rv(e,t);var n=jr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?vf(e,t.type,n):t.hasOwnProperty("defaultValue")&&vf(e,t.type,jr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Hg(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function vf(e,t,n){(t!=="number"||Zl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ys=Array.isArray;function lo(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+jr(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Cf(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(z(91));return Be({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Wg(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(z(92));if(ys(n)){if(1<n.length)throw Error(z(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:jr(n)}}function zv(e,t){var n=jr(t.value),r=jr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Yg(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function jv(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function _f(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?jv(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Xa,$v=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Xa=Xa||document.createElement("div"),Xa.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Xa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Es={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Gb=["Webkit","ms","Moz","O"];Object.keys(Es).forEach(function(e){Gb.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Es[t]=Es[e]})});function Vv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Es.hasOwnProperty(e)&&Es[e]?(""+t).trim():t+"px"}function Uv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Vv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Kb=Be({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wf(e,t){if(t){if(Kb[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function kf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Sf=null;function fp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tf=null,uo=null,co=null;function Gg(e){if(e=La(e)){if(typeof Tf!="function")throw Error(z(280));var t=e.stateNode;t&&(t=oc(t),Tf(e.stateNode,e.type,t))}}function qv(e){uo?co?co.push(e):co=[e]:uo=e}function Hv(){if(uo){var e=uo,t=co;if(co=uo=null,Gg(e),t)for(e=0;e<t.length;e++)Gg(t[e])}}function Wv(e,t){return e(t)}function Yv(){}var Jc=!1;function Gv(e,t,n){if(Jc)return e(t,n);Jc=!0;try{return Wv(e,t,n)}finally{Jc=!1,(uo!==null||co!==null)&&(Yv(),Hv())}}function Qs(e,t){var n=e.stateNode;if(n===null)return null;var r=oc(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(z(231,t,typeof n));return n}var bf=!1;if(cr)try{var Jo={};Object.defineProperty(Jo,"passive",{get:function(){bf=!0}}),window.addEventListener("test",Jo,Jo),window.removeEventListener("test",Jo,Jo)}catch{bf=!1}function Xb(e,t,n,r,i,o,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var As=!1,Jl=null,eu=!1,Ef=null,Qb={onError:function(e){As=!0,Jl=e}};function Zb(e,t,n,r,i,o,s,a,l){As=!1,Jl=null,Xb.apply(Qb,arguments)}function Jb(e,t,n,r,i,o,s,a,l){if(Zb.apply(this,arguments),As){if(As){var u=Jl;As=!1,Jl=null}else throw Error(z(198));eu||(eu=!0,Ef=u)}}function Li(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 Kv(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 Kg(e){if(Li(e)!==e)throw Error(z(188))}function eE(e){var t=e.alternate;if(!t){if(t=Li(e),t===null)throw Error(z(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Kg(i),e;if(o===r)return Kg(i),t;o=o.sibling}throw Error(z(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s)throw Error(z(189))}}if(n.alternate!==r)throw Error(z(190))}if(n.tag!==3)throw Error(z(188));return n.stateNode.current===n?e:t}function Xv(e){return e=eE(e),e!==null?Qv(e):null}function Qv(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Qv(e);if(t!==null)return t;e=e.sibling}return null}var Zv=Yt.unstable_scheduleCallback,Xg=Yt.unstable_cancelCallback,tE=Yt.unstable_shouldYield,nE=Yt.unstable_requestPaint,ze=Yt.unstable_now,rE=Yt.unstable_getCurrentPriorityLevel,dp=Yt.unstable_ImmediatePriority,Jv=Yt.unstable_UserBlockingPriority,tu=Yt.unstable_NormalPriority,iE=Yt.unstable_LowPriority,eC=Yt.unstable_IdlePriority,tc=null,zn=null;function oE(e){if(zn&&typeof zn.onCommitFiberRoot=="function")try{zn.onCommitFiberRoot(tc,e,void 0,(e.current.flags&128)===128)}catch{}}var _n=Math.clz32?Math.clz32:lE,sE=Math.log,aE=Math.LN2;function lE(e){return e>>>=0,e===0?32:31-(sE(e)/aE|0)|0}var Qa=64,Za=4194304;function xs(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function nu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=xs(a):(o&=s,o!==0&&(r=xs(o)))}else s=n&~i,s!==0?r=xs(s):o!==0&&(r=xs(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-_n(t),i=1<<n,r|=e[n],t&=~i;return r}function uE(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function cE(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-_n(o),a=1<<s,l=i[s];l===-1?(!(a&n)||a&r)&&(i[s]=uE(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function Af(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function tC(){var e=Qa;return Qa<<=1,!(Qa&4194240)&&(Qa=64),e}function eh(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ea(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_n(t),e[t]=n}function hE(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-_n(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function pp(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_n(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ye=0;function nC(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var rC,mp,iC,oC,sC,Lf=!1,Ja=[],Fr=null,Br=null,Mr=null,Zs=new Map,Js=new Map,br=[],fE="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Qg(e,t){switch(e){case"focusin":case"focusout":Fr=null;break;case"dragenter":case"dragleave":Br=null;break;case"mouseover":case"mouseout":Mr=null;break;case"pointerover":case"pointerout":Zs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Js.delete(t.pointerId)}}function es(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=La(t),t!==null&&mp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function dE(e,t,n,r,i){switch(t){case"focusin":return Fr=es(Fr,e,t,n,r,i),!0;case"dragenter":return Br=es(Br,e,t,n,r,i),!0;case"mouseover":return Mr=es(Mr,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Zs.set(o,es(Zs.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Js.set(o,es(Js.get(o)||null,e,t,n,r,i)),!0}return!1}function aC(e){var t=ui(e.target);if(t!==null){var n=Li(t);if(n!==null){if(t=n.tag,t===13){if(t=Kv(n),t!==null){e.blockedOn=t,sC(e.priority,function(){iC(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function El(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Pf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Sf=r,n.target.dispatchEvent(r),Sf=null}else return t=La(n),t!==null&&mp(t),e.blockedOn=n,!1;t.shift()}return!0}function Zg(e,t,n){El(e)&&n.delete(t)}function pE(){Lf=!1,Fr!==null&&El(Fr)&&(Fr=null),Br!==null&&El(Br)&&(Br=null),Mr!==null&&El(Mr)&&(Mr=null),Zs.forEach(Zg),Js.forEach(Zg)}function ts(e,t){e.blockedOn===t&&(e.blockedOn=null,Lf||(Lf=!0,Yt.unstable_scheduleCallback(Yt.unstable_NormalPriority,pE)))}function ea(e){function t(i){return ts(i,e)}if(0<Ja.length){ts(Ja[0],e);for(var n=1;n<Ja.length;n++){var r=Ja[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Fr!==null&&ts(Fr,e),Br!==null&&ts(Br,e),Mr!==null&&ts(Mr,e),Zs.forEach(t),Js.forEach(t),n=0;n<br.length;n++)r=br[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<br.length&&(n=br[0],n.blockedOn===null);)aC(n),n.blockedOn===null&&br.shift()}var ho=gr.ReactCurrentBatchConfig,ru=!0;function mE(e,t,n,r){var i=ye,o=ho.transition;ho.transition=null;try{ye=1,gp(e,t,n,r)}finally{ye=i,ho.transition=o}}function gE(e,t,n,r){var i=ye,o=ho.transition;ho.transition=null;try{ye=4,gp(e,t,n,r)}finally{ye=i,ho.transition=o}}function gp(e,t,n,r){if(ru){var i=Pf(e,t,n,r);if(i===null)ch(e,t,r,iu,n),Qg(e,r);else if(dE(i,e,t,n,r))r.stopPropagation();else if(Qg(e,r),t&4&&-1<fE.indexOf(e)){for(;i!==null;){var o=La(i);if(o!==null&&rC(o),o=Pf(e,t,n,r),o===null&&ch(e,t,r,iu,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else ch(e,t,r,null,n)}}var iu=null;function Pf(e,t,n,r){if(iu=null,e=fp(r),e=ui(e),e!==null)if(t=Li(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Kv(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return iu=e,null}function lC(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(rE()){case dp:return 1;case Jv:return 4;case tu:case iE:return 16;case eC:return 536870912;default:return 16}default:return 16}}var Ar=null,yp=null,Al=null;function uC(){if(Al)return Al;var e,t=yp,n=t.length,r,i="value"in Ar?Ar.value:Ar.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return Al=i.slice(e,1<r?1-r:void 0)}function Ll(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function el(){return!0}function Jg(){return!1}function Qt(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?el:Jg,this.isPropagationStopped=Jg,this}return Be(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=el)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=el)},persist:function(){},isPersistent:el}),t}var $o={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xp=Qt($o),Aa=Be({},$o,{view:0,detail:0}),yE=Qt(Aa),th,nh,ns,nc=Be({},Aa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vp,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ns&&(ns&&e.type==="mousemove"?(th=e.screenX-ns.screenX,nh=e.screenY-ns.screenY):nh=th=0,ns=e),th)},movementY:function(e){return"movementY"in e?e.movementY:nh}}),ey=Qt(nc),xE=Be({},nc,{dataTransfer:0}),vE=Qt(xE),CE=Be({},Aa,{relatedTarget:0}),rh=Qt(CE),_E=Be({},$o,{animationName:0,elapsedTime:0,pseudoElement:0}),wE=Qt(_E),kE=Be({},$o,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),SE=Qt(kE),TE=Be({},$o,{data:0}),ty=Qt(TE),bE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},EE={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},AE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function LE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=AE[e])?!!t[e]:!1}function vp(){return LE}var PE=Be({},Aa,{key:function(e){if(e.key){var t=bE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ll(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?EE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vp,charCode:function(e){return e.type==="keypress"?Ll(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ll(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),FE=Qt(PE),BE=Be({},nc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ny=Qt(BE),ME=Be({},Aa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vp}),NE=Qt(ME),IE=Be({},$o,{propertyName:0,elapsedTime:0,pseudoElement:0}),DE=Qt(IE),OE=Be({},nc,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),RE=Qt(OE),zE=[9,13,27,32],Cp=cr&&"CompositionEvent"in window,Ls=null;cr&&"documentMode"in document&&(Ls=document.documentMode);var jE=cr&&"TextEvent"in window&&!Ls,cC=cr&&(!Cp||Ls&&8<Ls&&11>=Ls),ry=" ",iy=!1;function hC(e,t){switch(e){case"keyup":return zE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hi=!1;function $E(e,t){switch(e){case"compositionend":return fC(t);case"keypress":return t.which!==32?null:(iy=!0,ry);case"textInput":return e=t.data,e===ry&&iy?null:e;default:return null}}function VE(e,t){if(Hi)return e==="compositionend"||!Cp&&hC(e,t)?(e=uC(),Al=yp=Ar=null,Hi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return cC&&t.locale!=="ko"?null:t.data;default:return null}}var UE={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function oy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!UE[e.type]:t==="textarea"}function dC(e,t,n,r){qv(r),t=ou(t,"onChange"),0<t.length&&(n=new xp("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ps=null,ta=null;function qE(e){SC(e,0)}function rc(e){var t=Gi(e);if(Ov(t))return e}function HE(e,t){if(e==="change")return t}var pC=!1;if(cr){var ih;if(cr){var oh="oninput"in document;if(!oh){var sy=document.createElement("div");sy.setAttribute("oninput","return;"),oh=typeof sy.oninput=="function"}ih=oh}else ih=!1;pC=ih&&(!document.documentMode||9<document.documentMode)}function ay(){Ps&&(Ps.detachEvent("onpropertychange",mC),ta=Ps=null)}function mC(e){if(e.propertyName==="value"&&rc(ta)){var t=[];dC(t,ta,e,fp(e)),Gv(qE,t)}}function WE(e,t,n){e==="focusin"?(ay(),Ps=t,ta=n,Ps.attachEvent("onpropertychange",mC)):e==="focusout"&&ay()}function YE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return rc(ta)}function GE(e,t){if(e==="click")return rc(t)}function KE(e,t){if(e==="input"||e==="change")return rc(t)}function XE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Sn=typeof Object.is=="function"?Object.is:XE;function na(e,t){if(Sn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ff.call(t,i)||!Sn(e[i],t[i]))return!1}return!0}function ly(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function uy(e,t){var n=ly(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ly(n)}}function gC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yC(){for(var e=window,t=Zl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Zl(e.document)}return t}function _p(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function QE(e){var t=yC(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gC(n.ownerDocument.documentElement,n)){if(r!==null&&_p(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=uy(n,o);var s=uy(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var ZE=cr&&"documentMode"in document&&11>=document.documentMode,Wi=null,Ff=null,Fs=null,Bf=!1;function cy(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Bf||Wi==null||Wi!==Zl(r)||(r=Wi,"selectionStart"in r&&_p(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fs&&na(Fs,r)||(Fs=r,r=ou(Ff,"onSelect"),0<r.length&&(t=new xp("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Wi)))}function tl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Yi={animationend:tl("Animation","AnimationEnd"),animationiteration:tl("Animation","AnimationIteration"),animationstart:tl("Animation","AnimationStart"),transitionend:tl("Transition","TransitionEnd")},sh={},xC={};cr&&(xC=document.createElement("div").style,"AnimationEvent"in window||(delete Yi.animationend.animation,delete Yi.animationiteration.animation,delete Yi.animationstart.animation),"TransitionEvent"in window||delete Yi.transitionend.transition);function ic(e){if(sh[e])return sh[e];if(!Yi[e])return e;var t=Yi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in xC)return sh[e]=t[n];return e}var vC=ic("animationend"),CC=ic("animationiteration"),_C=ic("animationstart"),wC=ic("transitionend"),kC=new Map,hy="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Wr(e,t){kC.set(e,t),Ai(t,[e])}for(var ah=0;ah<hy.length;ah++){var lh=hy[ah],JE=lh.toLowerCase(),e2=lh[0].toUpperCase()+lh.slice(1);Wr(JE,"on"+e2)}Wr(vC,"onAnimationEnd");Wr(CC,"onAnimationIteration");Wr(_C,"onAnimationStart");Wr("dblclick","onDoubleClick");Wr("focusin","onFocus");Wr("focusout","onBlur");Wr(wC,"onTransitionEnd");Co("onMouseEnter",["mouseout","mouseover"]);Co("onMouseLeave",["mouseout","mouseover"]);Co("onPointerEnter",["pointerout","pointerover"]);Co("onPointerLeave",["pointerout","pointerover"]);Ai("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ai("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ai("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ai("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ai("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ai("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vs="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),t2=new Set("cancel close invalid load scroll toggle".split(" ").concat(vs));function fy(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Jb(r,t,void 0,e),e.currentTarget=null}function SC(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;fy(i,a,u),o=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;fy(i,a,u),o=l}}}if(eu)throw e=Ef,eu=!1,Ef=null,e}function ke(e,t){var n=t[Of];n===void 0&&(n=t[Of]=new Set);var r=e+"__bubble";n.has(r)||(TC(t,e,2,!1),n.add(r))}function uh(e,t,n){var r=0;t&&(r|=4),TC(n,e,r,t)}var nl="_reactListening"+Math.random().toString(36).slice(2);function ra(e){if(!e[nl]){e[nl]=!0,Bv.forEach(function(n){n!=="selectionchange"&&(t2.has(n)||uh(n,!1,e),uh(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[nl]||(t[nl]=!0,uh("selectionchange",!1,t))}}function TC(e,t,n,r){switch(lC(t)){case 1:var i=mE;break;case 4:i=gE;break;default:i=gp}n=i.bind(null,t,n,e),i=void 0,!bf||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ch(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=ui(a),s===null)return;if(l=s.tag,l===5||l===6){r=o=s;continue e}a=a.parentNode}}r=r.return}Gv(function(){var u=o,c=fp(n),h=[];e:{var f=kC.get(e);if(f!==void 0){var d=xp,g=e;switch(e){case"keypress":if(Ll(n)===0)break e;case"keydown":case"keyup":d=FE;break;case"focusin":g="focus",d=rh;break;case"focusout":g="blur",d=rh;break;case"beforeblur":case"afterblur":d=rh;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=ey;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=vE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=NE;break;case vC:case CC:case _C:d=wE;break;case wC:d=DE;break;case"scroll":d=yE;break;case"wheel":d=RE;break;case"copy":case"cut":case"paste":d=SE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=ny}var y=(t&4)!==0,k=!y&&e==="scroll",p=y?f!==null?f+"Capture":null:f;y=[];for(var m=u,x;m!==null;){x=m;var S=x.stateNode;if(x.tag===5&&S!==null&&(x=S,p!==null&&(S=Qs(m,p),S!=null&&y.push(ia(m,S,x)))),k)break;m=m.return}0<y.length&&(f=new d(f,g,null,n,c),h.push({event:f,listeners:y}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",d=e==="mouseout"||e==="pointerout",f&&n!==Sf&&(g=n.relatedTarget||n.fromElement)&&(ui(g)||g[hr]))break e;if((d||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,d?(g=n.relatedTarget||n.toElement,d=u,g=g?ui(g):null,g!==null&&(k=Li(g),g!==k||g.tag!==5&&g.tag!==6)&&(g=null)):(d=null,g=u),d!==g)){if(y=ey,S="onMouseLeave",p="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(y=ny,S="onPointerLeave",p="onPointerEnter",m="pointer"),k=d==null?f:Gi(d),x=g==null?f:Gi(g),f=new y(S,m+"leave",d,n,c),f.target=k,f.relatedTarget=x,S=null,ui(c)===u&&(y=new y(p,m+"enter",g,n,c),y.target=x,y.relatedTarget=k,S=y),k=S,d&&g)t:{for(y=d,p=g,m=0,x=y;x;x=ji(x))m++;for(x=0,S=p;S;S=ji(S))x++;for(;0<m-x;)y=ji(y),m--;for(;0<x-m;)p=ji(p),x--;for(;m--;){if(y===p||p!==null&&y===p.alternate)break t;y=ji(y),p=ji(p)}y=null}else y=null;d!==null&&dy(h,f,d,y,!1),g!==null&&k!==null&&dy(h,k,g,y,!0)}}e:{if(f=u?Gi(u):window,d=f.nodeName&&f.nodeName.toLowerCase(),d==="select"||d==="input"&&f.type==="file")var b=HE;else if(oy(f))if(pC)b=KE;else{b=YE;var w=WE}else(d=f.nodeName)&&d.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(b=GE);if(b&&(b=b(e,u))){dC(h,b,n,c);break e}w&&w(e,f,u),e==="focusout"&&(w=f._wrapperState)&&w.controlled&&f.type==="number"&&vf(f,"number",f.value)}switch(w=u?Gi(u):window,e){case"focusin":(oy(w)||w.contentEditable==="true")&&(Wi=w,Ff=u,Fs=null);break;case"focusout":Fs=Ff=Wi=null;break;case"mousedown":Bf=!0;break;case"contextmenu":case"mouseup":case"dragend":Bf=!1,cy(h,n,c);break;case"selectionchange":if(ZE)break;case"keydown":case"keyup":cy(h,n,c)}var L;if(Cp)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Hi?hC(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(cC&&n.locale!=="ko"&&(Hi||P!=="onCompositionStart"?P==="onCompositionEnd"&&Hi&&(L=uC()):(Ar=c,yp="value"in Ar?Ar.value:Ar.textContent,Hi=!0)),w=ou(u,P),0<w.length&&(P=new ty(P,e,null,n,c),h.push({event:P,listeners:w}),L?P.data=L:(L=fC(n),L!==null&&(P.data=L)))),(L=jE?$E(e,n):VE(e,n))&&(u=ou(u,"onBeforeInput"),0<u.length&&(c=new ty("onBeforeInput","beforeinput",null,n,c),h.push({event:c,listeners:u}),c.data=L))}SC(h,t)})}function ia(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ou(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Qs(e,n),o!=null&&r.unshift(ia(e,o,i)),o=Qs(e,t),o!=null&&r.push(ia(e,o,i))),e=e.return}return r}function ji(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function dy(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=Qs(n,o),l!=null&&s.unshift(ia(n,l,a))):i||(l=Qs(n,o),l!=null&&s.push(ia(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var n2=/\r\n?/g,r2=/\u0000|\uFFFD/g;function py(e){return(typeof e=="string"?e:""+e).replace(n2,`
39
+ `).replace(r2,"")}function rl(e,t,n){if(t=py(t),py(e)!==t&&n)throw Error(z(425))}function su(){}var Mf=null,Nf=null;function If(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Df=typeof setTimeout=="function"?setTimeout:void 0,i2=typeof clearTimeout=="function"?clearTimeout:void 0,my=typeof Promise=="function"?Promise:void 0,o2=typeof queueMicrotask=="function"?queueMicrotask:typeof my<"u"?function(e){return my.resolve(null).then(e).catch(s2)}:Df;function s2(e){setTimeout(function(){throw e})}function hh(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),ea(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);ea(t)}function Nr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function gy(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Vo=Math.random().toString(36).slice(2),On="__reactFiber$"+Vo,oa="__reactProps$"+Vo,hr="__reactContainer$"+Vo,Of="__reactEvents$"+Vo,a2="__reactListeners$"+Vo,l2="__reactHandles$"+Vo;function ui(e){var t=e[On];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hr]||n[On]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=gy(e);e!==null;){if(n=e[On])return n;e=gy(e)}return t}e=n,n=e.parentNode}return null}function La(e){return e=e[On]||e[hr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Gi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(z(33))}function oc(e){return e[oa]||null}var Rf=[],Ki=-1;function Yr(e){return{current:e}}function Te(e){0>Ki||(e.current=Rf[Ki],Rf[Ki]=null,Ki--)}function Ce(e,t){Ki++,Rf[Ki]=e.current,e.current=t}var $r={},pt=Yr($r),It=Yr(!1),Ci=$r;function _o(e,t){var n=e.type.contextTypes;if(!n)return $r;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Dt(e){return e=e.childContextTypes,e!=null}function au(){Te(It),Te(pt)}function yy(e,t,n){if(pt.current!==$r)throw Error(z(168));Ce(pt,t),Ce(It,n)}function bC(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(z(108,Wb(e)||"Unknown",i));return Be({},n,r)}function lu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$r,Ci=pt.current,Ce(pt,e),Ce(It,It.current),!0}function xy(e,t,n){var r=e.stateNode;if(!r)throw Error(z(169));n?(e=bC(e,t,Ci),r.__reactInternalMemoizedMergedChildContext=e,Te(It),Te(pt),Ce(pt,e)):Te(It),Ce(It,n)}var nr=null,sc=!1,fh=!1;function EC(e){nr===null?nr=[e]:nr.push(e)}function u2(e){sc=!0,EC(e)}function Gr(){if(!fh&&nr!==null){fh=!0;var e=0,t=ye;try{var n=nr;for(ye=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}nr=null,sc=!1}catch(i){throw nr!==null&&(nr=nr.slice(e+1)),Zv(dp,Gr),i}finally{ye=t,fh=!1}}return null}var Xi=[],Qi=0,uu=null,cu=0,nn=[],rn=0,_i=null,ir=1,or="";function ri(e,t){Xi[Qi++]=cu,Xi[Qi++]=uu,uu=e,cu=t}function AC(e,t,n){nn[rn++]=ir,nn[rn++]=or,nn[rn++]=_i,_i=e;var r=ir;e=or;var i=32-_n(r)-1;r&=~(1<<i),n+=1;var o=32-_n(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,ir=1<<32-_n(t)+i|n<<i|r,or=o+e}else ir=1<<o|n<<i|r,or=e}function wp(e){e.return!==null&&(ri(e,1),AC(e,1,0))}function kp(e){for(;e===uu;)uu=Xi[--Qi],Xi[Qi]=null,cu=Xi[--Qi],Xi[Qi]=null;for(;e===_i;)_i=nn[--rn],nn[rn]=null,or=nn[--rn],nn[rn]=null,ir=nn[--rn],nn[rn]=null}var Ht=null,qt=null,Ae=!1,xn=null;function LC(e,t){var n=sn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function vy(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ht=e,qt=Nr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ht=e,qt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=_i!==null?{id:ir,overflow:or}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=sn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ht=e,qt=null,!0):!1;default:return!1}}function zf(e){return(e.mode&1)!==0&&(e.flags&128)===0}function jf(e){if(Ae){var t=qt;if(t){var n=t;if(!vy(e,t)){if(zf(e))throw Error(z(418));t=Nr(n.nextSibling);var r=Ht;t&&vy(e,t)?LC(r,n):(e.flags=e.flags&-4097|2,Ae=!1,Ht=e)}}else{if(zf(e))throw Error(z(418));e.flags=e.flags&-4097|2,Ae=!1,Ht=e}}}function Cy(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ht=e}function il(e){if(e!==Ht)return!1;if(!Ae)return Cy(e),Ae=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!If(e.type,e.memoizedProps)),t&&(t=qt)){if(zf(e))throw PC(),Error(z(418));for(;t;)LC(e,t),t=Nr(t.nextSibling)}if(Cy(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(z(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){qt=Nr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}qt=null}}else qt=Ht?Nr(e.stateNode.nextSibling):null;return!0}function PC(){for(var e=qt;e;)e=Nr(e.nextSibling)}function wo(){qt=Ht=null,Ae=!1}function Sp(e){xn===null?xn=[e]:xn.push(e)}var c2=gr.ReactCurrentBatchConfig;function rs(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(z(309));var r=n.stateNode}if(!r)throw Error(z(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=i.refs;s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(z(284));if(!n._owner)throw Error(z(290,e))}return e}function ol(e,t){throw e=Object.prototype.toString.call(t),Error(z(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function _y(e){var t=e._init;return t(e._payload)}function FC(e){function t(p,m){if(e){var x=p.deletions;x===null?(p.deletions=[m],p.flags|=16):x.push(m)}}function n(p,m){if(!e)return null;for(;m!==null;)t(p,m),m=m.sibling;return null}function r(p,m){for(p=new Map;m!==null;)m.key!==null?p.set(m.key,m):p.set(m.index,m),m=m.sibling;return p}function i(p,m){return p=Rr(p,m),p.index=0,p.sibling=null,p}function o(p,m,x){return p.index=x,e?(x=p.alternate,x!==null?(x=x.index,x<m?(p.flags|=2,m):x):(p.flags|=2,m)):(p.flags|=1048576,m)}function s(p){return e&&p.alternate===null&&(p.flags|=2),p}function a(p,m,x,S){return m===null||m.tag!==6?(m=vh(x,p.mode,S),m.return=p,m):(m=i(m,x),m.return=p,m)}function l(p,m,x,S){var b=x.type;return b===qi?c(p,m,x.props.children,S,x.key):m!==null&&(m.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===kr&&_y(b)===m.type)?(S=i(m,x.props),S.ref=rs(p,m,x),S.return=p,S):(S=Dl(x.type,x.key,x.props,null,p.mode,S),S.ref=rs(p,m,x),S.return=p,S)}function u(p,m,x,S){return m===null||m.tag!==4||m.stateNode.containerInfo!==x.containerInfo||m.stateNode.implementation!==x.implementation?(m=Ch(x,p.mode,S),m.return=p,m):(m=i(m,x.children||[]),m.return=p,m)}function c(p,m,x,S,b){return m===null||m.tag!==7?(m=gi(x,p.mode,S,b),m.return=p,m):(m=i(m,x),m.return=p,m)}function h(p,m,x){if(typeof m=="string"&&m!==""||typeof m=="number")return m=vh(""+m,p.mode,x),m.return=p,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Ga:return x=Dl(m.type,m.key,m.props,null,p.mode,x),x.ref=rs(p,null,m),x.return=p,x;case Ui:return m=Ch(m,p.mode,x),m.return=p,m;case kr:var S=m._init;return h(p,S(m._payload),x)}if(ys(m)||Zo(m))return m=gi(m,p.mode,x,null),m.return=p,m;ol(p,m)}return null}function f(p,m,x,S){var b=m!==null?m.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return b!==null?null:a(p,m,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Ga:return x.key===b?l(p,m,x,S):null;case Ui:return x.key===b?u(p,m,x,S):null;case kr:return b=x._init,f(p,m,b(x._payload),S)}if(ys(x)||Zo(x))return b!==null?null:c(p,m,x,S,null);ol(p,x)}return null}function d(p,m,x,S,b){if(typeof S=="string"&&S!==""||typeof S=="number")return p=p.get(x)||null,a(m,p,""+S,b);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Ga:return p=p.get(S.key===null?x:S.key)||null,l(m,p,S,b);case Ui:return p=p.get(S.key===null?x:S.key)||null,u(m,p,S,b);case kr:var w=S._init;return d(p,m,x,w(S._payload),b)}if(ys(S)||Zo(S))return p=p.get(x)||null,c(m,p,S,b,null);ol(m,S)}return null}function g(p,m,x,S){for(var b=null,w=null,L=m,P=m=0,W=null;L!==null&&P<x.length;P++){L.index>P?(W=L,L=null):W=L.sibling;var D=f(p,L,x[P],S);if(D===null){L===null&&(L=W);break}e&&L&&D.alternate===null&&t(p,L),m=o(D,m,P),w===null?b=D:w.sibling=D,w=D,L=W}if(P===x.length)return n(p,L),Ae&&ri(p,P),b;if(L===null){for(;P<x.length;P++)L=h(p,x[P],S),L!==null&&(m=o(L,m,P),w===null?b=L:w.sibling=L,w=L);return Ae&&ri(p,P),b}for(L=r(p,L);P<x.length;P++)W=d(L,p,P,x[P],S),W!==null&&(e&&W.alternate!==null&&L.delete(W.key===null?P:W.key),m=o(W,m,P),w===null?b=W:w.sibling=W,w=W);return e&&L.forEach(function(B){return t(p,B)}),Ae&&ri(p,P),b}function y(p,m,x,S){var b=Zo(x);if(typeof b!="function")throw Error(z(150));if(x=b.call(x),x==null)throw Error(z(151));for(var w=b=null,L=m,P=m=0,W=null,D=x.next();L!==null&&!D.done;P++,D=x.next()){L.index>P?(W=L,L=null):W=L.sibling;var B=f(p,L,D.value,S);if(B===null){L===null&&(L=W);break}e&&L&&B.alternate===null&&t(p,L),m=o(B,m,P),w===null?b=B:w.sibling=B,w=B,L=W}if(D.done)return n(p,L),Ae&&ri(p,P),b;if(L===null){for(;!D.done;P++,D=x.next())D=h(p,D.value,S),D!==null&&(m=o(D,m,P),w===null?b=D:w.sibling=D,w=D);return Ae&&ri(p,P),b}for(L=r(p,L);!D.done;P++,D=x.next())D=d(L,p,P,D.value,S),D!==null&&(e&&D.alternate!==null&&L.delete(D.key===null?P:D.key),m=o(D,m,P),w===null?b=D:w.sibling=D,w=D);return e&&L.forEach(function(Y){return t(p,Y)}),Ae&&ri(p,P),b}function k(p,m,x,S){if(typeof x=="object"&&x!==null&&x.type===qi&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Ga:e:{for(var b=x.key,w=m;w!==null;){if(w.key===b){if(b=x.type,b===qi){if(w.tag===7){n(p,w.sibling),m=i(w,x.props.children),m.return=p,p=m;break e}}else if(w.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===kr&&_y(b)===w.type){n(p,w.sibling),m=i(w,x.props),m.ref=rs(p,w,x),m.return=p,p=m;break e}n(p,w);break}else t(p,w);w=w.sibling}x.type===qi?(m=gi(x.props.children,p.mode,S,x.key),m.return=p,p=m):(S=Dl(x.type,x.key,x.props,null,p.mode,S),S.ref=rs(p,m,x),S.return=p,p=S)}return s(p);case Ui:e:{for(w=x.key;m!==null;){if(m.key===w)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){n(p,m.sibling),m=i(m,x.children||[]),m.return=p,p=m;break e}else{n(p,m);break}else t(p,m);m=m.sibling}m=Ch(x,p.mode,S),m.return=p,p=m}return s(p);case kr:return w=x._init,k(p,m,w(x._payload),S)}if(ys(x))return g(p,m,x,S);if(Zo(x))return y(p,m,x,S);ol(p,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(n(p,m.sibling),m=i(m,x),m.return=p,p=m):(n(p,m),m=vh(x,p.mode,S),m.return=p,p=m),s(p)):n(p,m)}return k}var ko=FC(!0),BC=FC(!1),hu=Yr(null),fu=null,Zi=null,Tp=null;function bp(){Tp=Zi=fu=null}function Ep(e){var t=hu.current;Te(hu),e._currentValue=t}function $f(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function fo(e,t){fu=e,Tp=Zi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Bt=!0),e.firstContext=null)}function ln(e){var t=e._currentValue;if(Tp!==e)if(e={context:e,memoizedValue:t,next:null},Zi===null){if(fu===null)throw Error(z(308));Zi=e,fu.dependencies={lanes:0,firstContext:e}}else Zi=Zi.next=e;return t}var ci=null;function Ap(e){ci===null?ci=[e]:ci.push(e)}function MC(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Ap(t)):(n.next=i.next,i.next=n),t.interleaved=n,fr(e,r)}function fr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Sr=!1;function Lp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function NC(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function sr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ir(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,pe&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,fr(e,n)}return i=r.interleaved,i===null?(t.next=t,Ap(r)):(t.next=i.next,i.next=t),r.interleaved=t,fr(e,n)}function Pl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pp(e,n)}}function wy(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function du(e,t,n,r){var i=e.updateQueue;Sr=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(o!==null){var h=i.baseState;s=0,c=u=l=null,a=o;do{var f=a.lane,d=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:d,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,y=a;switch(f=t,d=n,y.tag){case 1:if(g=y.payload,typeof g=="function"){h=g.call(d,h,f);break e}h=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,f=typeof g=="function"?g.call(d,h,f):g,f==null)break e;h=Be({},h,f);break e;case 2:Sr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else d={eventTime:d,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=d,l=h):c=c.next=d,s|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(l=h),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);ki|=s,e.lanes=s,e.memoizedState=h}}function ky(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(z(191,i));i.call(r)}}}var Pa={},jn=Yr(Pa),sa=Yr(Pa),aa=Yr(Pa);function hi(e){if(e===Pa)throw Error(z(174));return e}function Pp(e,t){switch(Ce(aa,t),Ce(sa,e),Ce(jn,Pa),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:_f(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=_f(t,e)}Te(jn),Ce(jn,t)}function So(){Te(jn),Te(sa),Te(aa)}function IC(e){hi(aa.current);var t=hi(jn.current),n=_f(t,e.type);t!==n&&(Ce(sa,e),Ce(jn,n))}function Fp(e){sa.current===e&&(Te(jn),Te(sa))}var Le=Yr(0);function pu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var dh=[];function Bp(){for(var e=0;e<dh.length;e++)dh[e]._workInProgressVersionPrimary=null;dh.length=0}var Fl=gr.ReactCurrentDispatcher,ph=gr.ReactCurrentBatchConfig,wi=0,Fe=null,Ye=null,Xe=null,mu=!1,Bs=!1,la=0,h2=0;function st(){throw Error(z(321))}function Mp(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Sn(e[n],t[n]))return!1;return!0}function Np(e,t,n,r,i,o){if(wi=o,Fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Fl.current=e===null||e.memoizedState===null?m2:g2,e=n(r,i),Bs){o=0;do{if(Bs=!1,la=0,25<=o)throw Error(z(301));o+=1,Xe=Ye=null,t.updateQueue=null,Fl.current=y2,e=n(r,i)}while(Bs)}if(Fl.current=gu,t=Ye!==null&&Ye.next!==null,wi=0,Xe=Ye=Fe=null,mu=!1,t)throw Error(z(300));return e}function Ip(){var e=la!==0;return la=0,e}function Nn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xe===null?Fe.memoizedState=Xe=e:Xe=Xe.next=e,Xe}function un(){if(Ye===null){var e=Fe.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=Xe===null?Fe.memoizedState:Xe.next;if(t!==null)Xe=t,Ye=e;else{if(e===null)throw Error(z(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},Xe===null?Fe.memoizedState=Xe=e:Xe=Xe.next=e}return Xe}function ua(e,t){return typeof t=="function"?t(e):t}function mh(e){var t=un(),n=t.queue;if(n===null)throw Error(z(311));n.lastRenderedReducer=e;var r=Ye,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=s=null,l=null,u=o;do{var c=u.lane;if((wi&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var h={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=h,s=r):l=l.next=h,Fe.lanes|=c,ki|=c}u=u.next}while(u!==null&&u!==o);l===null?s=r:l.next=a,Sn(r,t.memoizedState)||(Bt=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Fe.lanes|=o,ki|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function gh(e){var t=un(),n=t.queue;if(n===null)throw Error(z(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Sn(o,t.memoizedState)||(Bt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function DC(){}function OC(e,t){var n=Fe,r=un(),i=t(),o=!Sn(r.memoizedState,i);if(o&&(r.memoizedState=i,Bt=!0),r=r.queue,Dp(jC.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Xe!==null&&Xe.memoizedState.tag&1){if(n.flags|=2048,ca(9,zC.bind(null,n,r,i,t),void 0,null),Qe===null)throw Error(z(349));wi&30||RC(n,t,i)}return i}function RC(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Fe.updateQueue,t===null?(t={lastEffect:null,stores:null},Fe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function zC(e,t,n,r){t.value=n,t.getSnapshot=r,$C(t)&&VC(e)}function jC(e,t,n){return n(function(){$C(t)&&VC(e)})}function $C(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Sn(e,n)}catch{return!0}}function VC(e){var t=fr(e,1);t!==null&&wn(t,e,1,-1)}function Sy(e){var t=Nn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:e},t.queue=e,e=e.dispatch=p2.bind(null,Fe,e),[t.memoizedState,e]}function ca(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Fe.updateQueue,t===null?(t={lastEffect:null,stores:null},Fe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function UC(){return un().memoizedState}function Bl(e,t,n,r){var i=Nn();Fe.flags|=e,i.memoizedState=ca(1|t,n,void 0,r===void 0?null:r)}function ac(e,t,n,r){var i=un();r=r===void 0?null:r;var o=void 0;if(Ye!==null){var s=Ye.memoizedState;if(o=s.destroy,r!==null&&Mp(r,s.deps)){i.memoizedState=ca(t,n,o,r);return}}Fe.flags|=e,i.memoizedState=ca(1|t,n,o,r)}function Ty(e,t){return Bl(8390656,8,e,t)}function Dp(e,t){return ac(2048,8,e,t)}function qC(e,t){return ac(4,2,e,t)}function HC(e,t){return ac(4,4,e,t)}function WC(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function YC(e,t,n){return n=n!=null?n.concat([e]):null,ac(4,4,WC.bind(null,t,e),n)}function Op(){}function GC(e,t){var n=un();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Mp(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function KC(e,t){var n=un();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Mp(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function XC(e,t,n){return wi&21?(Sn(n,t)||(n=tC(),Fe.lanes|=n,ki|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Bt=!0),e.memoizedState=n)}function f2(e,t){var n=ye;ye=n!==0&&4>n?n:4,e(!0);var r=ph.transition;ph.transition={};try{e(!1),t()}finally{ye=n,ph.transition=r}}function QC(){return un().memoizedState}function d2(e,t,n){var r=Or(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ZC(e))JC(t,n);else if(n=MC(e,t,n,r),n!==null){var i=wt();wn(n,e,r,i),e_(n,t,r)}}function p2(e,t,n){var r=Or(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ZC(e))JC(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Sn(a,s)){var l=t.interleaved;l===null?(i.next=i,Ap(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=MC(e,t,i,r),n!==null&&(i=wt(),wn(n,e,r,i),e_(n,t,r))}}function ZC(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function JC(e,t){Bs=mu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function e_(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pp(e,n)}}var gu={readContext:ln,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useInsertionEffect:st,useLayoutEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useMutableSource:st,useSyncExternalStore:st,useId:st,unstable_isNewReconciler:!1},m2={readContext:ln,useCallback:function(e,t){return Nn().memoizedState=[e,t===void 0?null:t],e},useContext:ln,useEffect:Ty,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Bl(4194308,4,WC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bl(4,2,e,t)},useMemo:function(e,t){var n=Nn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Nn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=d2.bind(null,Fe,e),[r.memoizedState,e]},useRef:function(e){var t=Nn();return e={current:e},t.memoizedState=e},useState:Sy,useDebugValue:Op,useDeferredValue:function(e){return Nn().memoizedState=e},useTransition:function(){var e=Sy(!1),t=e[0];return e=f2.bind(null,e[1]),Nn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Fe,i=Nn();if(Ae){if(n===void 0)throw Error(z(407));n=n()}else{if(n=t(),Qe===null)throw Error(z(349));wi&30||RC(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Ty(jC.bind(null,r,o,e),[e]),r.flags|=2048,ca(9,zC.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Nn(),t=Qe.identifierPrefix;if(Ae){var n=or,r=ir;n=(r&~(1<<32-_n(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=la++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=h2++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},g2={readContext:ln,useCallback:GC,useContext:ln,useEffect:Dp,useImperativeHandle:YC,useInsertionEffect:qC,useLayoutEffect:HC,useMemo:KC,useReducer:mh,useRef:UC,useState:function(){return mh(ua)},useDebugValue:Op,useDeferredValue:function(e){var t=un();return XC(t,Ye.memoizedState,e)},useTransition:function(){var e=mh(ua)[0],t=un().memoizedState;return[e,t]},useMutableSource:DC,useSyncExternalStore:OC,useId:QC,unstable_isNewReconciler:!1},y2={readContext:ln,useCallback:GC,useContext:ln,useEffect:Dp,useImperativeHandle:YC,useInsertionEffect:qC,useLayoutEffect:HC,useMemo:KC,useReducer:gh,useRef:UC,useState:function(){return gh(ua)},useDebugValue:Op,useDeferredValue:function(e){var t=un();return Ye===null?t.memoizedState=e:XC(t,Ye.memoizedState,e)},useTransition:function(){var e=gh(ua)[0],t=un().memoizedState;return[e,t]},useMutableSource:DC,useSyncExternalStore:OC,useId:QC,unstable_isNewReconciler:!1};function gn(e,t){if(e&&e.defaultProps){t=Be({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Vf(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Be({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var lc={isMounted:function(e){return(e=e._reactInternals)?Li(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=wt(),i=Or(e),o=sr(r,i);o.payload=t,n!=null&&(o.callback=n),t=Ir(e,o,i),t!==null&&(wn(t,e,i,r),Pl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=wt(),i=Or(e),o=sr(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Ir(e,o,i),t!==null&&(wn(t,e,i,r),Pl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=wt(),r=Or(e),i=sr(n,r);i.tag=2,t!=null&&(i.callback=t),t=Ir(e,i,r),t!==null&&(wn(t,e,r,n),Pl(t,e,r))}};function by(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!na(n,r)||!na(i,o):!0}function t_(e,t,n){var r=!1,i=$r,o=t.contextType;return typeof o=="object"&&o!==null?o=ln(o):(i=Dt(t)?Ci:pt.current,r=t.contextTypes,o=(r=r!=null)?_o(e,i):$r),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=lc,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ey(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&lc.enqueueReplaceState(t,t.state,null)}function Uf(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Lp(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=ln(o):(o=Dt(t)?Ci:pt.current,i.context=_o(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Vf(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&lc.enqueueReplaceState(i,i.state,null),du(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function To(e,t){try{var n="",r=t;do n+=Hb(r),r=r.return;while(r);var i=n}catch(o){i=`
40
+ Error generating stack: `+o.message+`
41
+ `+o.stack}return{value:e,source:t,stack:i,digest:null}}function yh(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function qf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var x2=typeof WeakMap=="function"?WeakMap:Map;function n_(e,t,n){n=sr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){xu||(xu=!0,ed=r),qf(e,t)},n}function r_(e,t,n){n=sr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){qf(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){qf(e,t),typeof r!="function"&&(Dr===null?Dr=new Set([this]):Dr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Ay(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new x2;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=B2.bind(null,e,t,n),t.then(e,e))}function Ly(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Py(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=sr(-1,1),t.tag=2,Ir(n,t,1))),n.lanes|=1),e)}var v2=gr.ReactCurrentOwner,Bt=!1;function vt(e,t,n,r){t.child=e===null?BC(t,null,n,r):ko(t,e.child,n,r)}function Fy(e,t,n,r,i){n=n.render;var o=t.ref;return fo(t,i),r=Np(e,t,n,r,o,i),n=Ip(),e!==null&&!Bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,dr(e,t,i)):(Ae&&n&&wp(t),t.flags|=1,vt(e,t,r,i),t.child)}function By(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Hp(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,i_(e,t,o,r,i)):(e=Dl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:na,n(s,r)&&e.ref===t.ref)return dr(e,t,i)}return t.flags|=1,e=Rr(o,r),e.ref=t.ref,e.return=t,t.child=e}function i_(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(na(o,r)&&e.ref===t.ref)if(Bt=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Bt=!0);else return t.lanes=e.lanes,dr(e,t,i)}return Hf(e,t,n,r,i)}function o_(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ce(eo,Ut),Ut|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ce(eo,Ut),Ut|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Ce(eo,Ut),Ut|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ce(eo,Ut),Ut|=r;return vt(e,t,i,n),t.child}function s_(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Hf(e,t,n,r,i){var o=Dt(n)?Ci:pt.current;return o=_o(t,o),fo(t,i),n=Np(e,t,n,r,o,i),r=Ip(),e!==null&&!Bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,dr(e,t,i)):(Ae&&r&&wp(t),t.flags|=1,vt(e,t,n,i),t.child)}function My(e,t,n,r,i){if(Dt(n)){var o=!0;lu(t)}else o=!1;if(fo(t,i),t.stateNode===null)Ml(e,t),t_(t,n,r),Uf(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=ln(u):(u=Dt(n)?Ci:pt.current,u=_o(t,u));var c=n.getDerivedStateFromProps,h=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Ey(t,s,r,u),Sr=!1;var f=t.memoizedState;s.state=f,du(t,r,s,i),l=t.memoizedState,a!==r||f!==l||It.current||Sr?(typeof c=="function"&&(Vf(t,n,c,r),l=t.memoizedState),(a=Sr||by(t,n,a,r,f,l,u))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,NC(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:gn(t.type,a),s.props=u,h=t.pendingProps,f=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=ln(l):(l=Dt(n)?Ci:pt.current,l=_o(t,l));var d=n.getDerivedStateFromProps;(c=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||f!==l)&&Ey(t,s,r,l),Sr=!1,f=t.memoizedState,s.state=f,du(t,r,s,i);var g=t.memoizedState;a!==h||f!==g||It.current||Sr?(typeof d=="function"&&(Vf(t,n,d,r),g=t.memoizedState),(u=Sr||by(t,n,u,r,f,g,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,g,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,g,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),s.props=r,s.state=g,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Wf(e,t,n,r,o,i)}function Wf(e,t,n,r,i,o){s_(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&xy(t,n,!1),dr(e,t,o);r=t.stateNode,v2.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=ko(t,e.child,null,o),t.child=ko(t,null,a,o)):vt(e,t,a,o),t.memoizedState=r.state,i&&xy(t,n,!0),t.child}function a_(e){var t=e.stateNode;t.pendingContext?yy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&yy(e,t.context,!1),Pp(e,t.containerInfo)}function Ny(e,t,n,r,i){return wo(),Sp(i),t.flags|=256,vt(e,t,n,r),t.child}var Yf={dehydrated:null,treeContext:null,retryLane:0};function Gf(e){return{baseLanes:e,cachePool:null,transitions:null}}function l_(e,t,n){var r=t.pendingProps,i=Le.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ce(Le,i&1),e===null)return jf(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=hc(s,r,0,null),e=gi(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Gf(n),t.memoizedState=Yf,e):Rp(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return C2(e,t,s,r,a,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Rr(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=Rr(a,o):(o=gi(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Gf(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Yf,r}return o=e.child,e=o.sibling,r=Rr(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Rp(e,t){return t=hc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function sl(e,t,n,r){return r!==null&&Sp(r),ko(t,e.child,null,n),e=Rp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function C2(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=yh(Error(z(422))),sl(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=hc({mode:"visible",children:r.children},i,0,null),o=gi(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&ko(t,e.child,null,s),t.child.memoizedState=Gf(s),t.memoizedState=Yf,o);if(!(t.mode&1))return sl(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(z(419)),r=yh(o,r,void 0),sl(e,t,s,r)}if(a=(s&e.childLanes)!==0,Bt||a){if(r=Qe,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,fr(e,i),wn(r,e,i,-1))}return qp(),r=yh(Error(z(421))),sl(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=M2.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,qt=Nr(i.nextSibling),Ht=t,Ae=!0,xn=null,e!==null&&(nn[rn++]=ir,nn[rn++]=or,nn[rn++]=_i,ir=e.id,or=e.overflow,_i=t),t=Rp(t,r.children),t.flags|=4096,t)}function Iy(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),$f(e.return,t,n)}function xh(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function u_(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(vt(e,t,r.children,n),r=Le.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Iy(e,n,t);else if(e.tag===19)Iy(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ce(Le,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&pu(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),xh(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&pu(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}xh(t,!0,n,null,o);break;case"together":xh(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ml(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function dr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ki|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(z(153));if(t.child!==null){for(e=t.child,n=Rr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Rr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function _2(e,t,n){switch(t.tag){case 3:a_(t),wo();break;case 5:IC(t);break;case 1:Dt(t.type)&&lu(t);break;case 4:Pp(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ce(hu,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ce(Le,Le.current&1),t.flags|=128,null):n&t.child.childLanes?l_(e,t,n):(Ce(Le,Le.current&1),e=dr(e,t,n),e!==null?e.sibling:null);Ce(Le,Le.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return u_(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ce(Le,Le.current),r)break;return null;case 22:case 23:return t.lanes=0,o_(e,t,n)}return dr(e,t,n)}var c_,Kf,h_,f_;c_=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Kf=function(){};h_=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,hi(jn.current);var o=null;switch(n){case"input":i=yf(e,i),r=yf(e,r),o=[];break;case"select":i=Be({},i,{value:void 0}),r=Be({},r,{value:void 0}),o=[];break;case"textarea":i=Cf(e,i),r=Cf(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=su)}wf(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ks.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ks.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ke("scroll",e),o||a===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};f_=function(e,t,n,r){n!==r&&(t.flags|=4)};function is(e,t){if(!Ae)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function at(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function w2(e,t,n){var r=t.pendingProps;switch(kp(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(t),null;case 1:return Dt(t.type)&&au(),at(t),null;case 3:return r=t.stateNode,So(),Te(It),Te(pt),Bp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(il(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,xn!==null&&(rd(xn),xn=null))),Kf(e,t),at(t),null;case 5:Fp(t);var i=hi(aa.current);if(n=t.type,e!==null&&t.stateNode!=null)h_(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(z(166));return at(t),null}if(e=hi(jn.current),il(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[On]=t,r[oa]=o,e=(t.mode&1)!==0,n){case"dialog":ke("cancel",r),ke("close",r);break;case"iframe":case"object":case"embed":ke("load",r);break;case"video":case"audio":for(i=0;i<vs.length;i++)ke(vs[i],r);break;case"source":ke("error",r);break;case"img":case"image":case"link":ke("error",r),ke("load",r);break;case"details":ke("toggle",r);break;case"input":qg(r,o),ke("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},ke("invalid",r);break;case"textarea":Wg(r,o),ke("invalid",r)}wf(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&rl(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&rl(r.textContent,a,e),i=["children",""+a]):Ks.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&ke("scroll",r)}switch(n){case"input":Ka(r),Hg(r,o,!0);break;case"textarea":Ka(r),Yg(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=su)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=jv(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[On]=t,e[oa]=r,c_(e,t,!1,!1),t.stateNode=e;e:{switch(s=kf(n,r),n){case"dialog":ke("cancel",e),ke("close",e),i=r;break;case"iframe":case"object":case"embed":ke("load",e),i=r;break;case"video":case"audio":for(i=0;i<vs.length;i++)ke(vs[i],e);i=r;break;case"source":ke("error",e),i=r;break;case"img":case"image":case"link":ke("error",e),ke("load",e),i=r;break;case"details":ke("toggle",e),i=r;break;case"input":qg(e,r),i=yf(e,r),ke("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Be({},r,{value:void 0}),ke("invalid",e);break;case"textarea":Wg(e,r),i=Cf(e,r),ke("invalid",e);break;default:i=r}wf(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?Uv(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&$v(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Xs(e,l):typeof l=="number"&&Xs(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Ks.hasOwnProperty(o)?l!=null&&o==="onScroll"&&ke("scroll",e):l!=null&&lp(e,o,l,s))}switch(n){case"input":Ka(e),Hg(e,r,!1);break;case"textarea":Ka(e),Yg(e);break;case"option":r.value!=null&&e.setAttribute("value",""+jr(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?lo(e,!!r.multiple,o,!1):r.defaultValue!=null&&lo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=su)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return at(t),null;case 6:if(e&&t.stateNode!=null)f_(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(z(166));if(n=hi(aa.current),hi(jn.current),il(t)){if(r=t.stateNode,n=t.memoizedProps,r[On]=t,(o=r.nodeValue!==n)&&(e=Ht,e!==null))switch(e.tag){case 3:rl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&rl(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[On]=t,t.stateNode=r}return at(t),null;case 13:if(Te(Le),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ae&&qt!==null&&t.mode&1&&!(t.flags&128))PC(),wo(),t.flags|=98560,o=!1;else if(o=il(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(z(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(z(317));o[On]=t}else wo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;at(t),o=!1}else xn!==null&&(rd(xn),xn=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Le.current&1?Ge===0&&(Ge=3):qp())),t.updateQueue!==null&&(t.flags|=4),at(t),null);case 4:return So(),Kf(e,t),e===null&&ra(t.stateNode.containerInfo),at(t),null;case 10:return Ep(t.type._context),at(t),null;case 17:return Dt(t.type)&&au(),at(t),null;case 19:if(Te(Le),o=t.memoizedState,o===null)return at(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)is(o,!1);else{if(Ge!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=pu(e),s!==null){for(t.flags|=128,is(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ce(Le,Le.current&1|2),t.child}e=e.sibling}o.tail!==null&&ze()>bo&&(t.flags|=128,r=!0,is(o,!1),t.lanes=4194304)}else{if(!r)if(e=pu(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),is(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Ae)return at(t),null}else 2*ze()-o.renderingStartTime>bo&&n!==1073741824&&(t.flags|=128,r=!0,is(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ze(),t.sibling=null,n=Le.current,Ce(Le,r?n&1|2:n&1),t):(at(t),null);case 22:case 23:return Up(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ut&1073741824&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function k2(e,t){switch(kp(t),t.tag){case 1:return Dt(t.type)&&au(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return So(),Te(It),Te(pt),Bp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Fp(t),null;case 13:if(Te(Le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));wo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Te(Le),null;case 4:return So(),null;case 10:return Ep(t.type._context),null;case 22:case 23:return Up(),null;case 24:return null;default:return null}}var al=!1,ct=!1,S2=typeof WeakSet=="function"?WeakSet:Set,G=null;function Ji(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){De(e,t,r)}else n.current=null}function Xf(e,t,n){try{n()}catch(r){De(e,t,r)}}var Dy=!1;function T2(e,t){if(Mf=ru,e=yC(),_p(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,h=e,f=null;t:for(;;){for(var d;h!==n||i!==0&&h.nodeType!==3||(a=s+i),h!==o||r!==0&&h.nodeType!==3||(l=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(d=h.firstChild)!==null;)f=h,h=d;for(;;){if(h===e)break t;if(f===n&&++u===i&&(a=s),f===o&&++c===r&&(l=s),(d=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=d}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Nf={focusedElem:e,selectionRange:n},ru=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,k=g.memoizedState,p=t.stateNode,m=p.getSnapshotBeforeUpdate(t.elementType===t.type?y:gn(t.type,y),k);p.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(z(163))}}catch(S){De(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return g=Dy,Dy=!1,g}function Ms(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Xf(t,n,o)}i=i.next}while(i!==r)}}function uc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Qf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function d_(e){var t=e.alternate;t!==null&&(e.alternate=null,d_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[On],delete t[oa],delete t[Of],delete t[a2],delete t[l2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function p_(e){return e.tag===5||e.tag===3||e.tag===4}function Oy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||p_(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=su));else if(r!==4&&(e=e.child,e!==null))for(Zf(e,t,n),e=e.sibling;e!==null;)Zf(e,t,n),e=e.sibling}function Jf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Jf(e,t,n),e=e.sibling;e!==null;)Jf(e,t,n),e=e.sibling}var et=null,yn=!1;function vr(e,t,n){for(n=n.child;n!==null;)m_(e,t,n),n=n.sibling}function m_(e,t,n){if(zn&&typeof zn.onCommitFiberUnmount=="function")try{zn.onCommitFiberUnmount(tc,n)}catch{}switch(n.tag){case 5:ct||Ji(n,t);case 6:var r=et,i=yn;et=null,vr(e,t,n),et=r,yn=i,et!==null&&(yn?(e=et,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):et.removeChild(n.stateNode));break;case 18:et!==null&&(yn?(e=et,n=n.stateNode,e.nodeType===8?hh(e.parentNode,n):e.nodeType===1&&hh(e,n),ea(e)):hh(et,n.stateNode));break;case 4:r=et,i=yn,et=n.stateNode.containerInfo,yn=!0,vr(e,t,n),et=r,yn=i;break;case 0:case 11:case 14:case 15:if(!ct&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Xf(n,t,s),i=i.next}while(i!==r)}vr(e,t,n);break;case 1:if(!ct&&(Ji(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){De(n,t,a)}vr(e,t,n);break;case 21:vr(e,t,n);break;case 22:n.mode&1?(ct=(r=ct)||n.memoizedState!==null,vr(e,t,n),ct=r):vr(e,t,n);break;default:vr(e,t,n)}}function Ry(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new S2),t.forEach(function(r){var i=N2.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function dn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:et=a.stateNode,yn=!1;break e;case 3:et=a.stateNode.containerInfo,yn=!0;break e;case 4:et=a.stateNode.containerInfo,yn=!0;break e}a=a.return}if(et===null)throw Error(z(160));m_(o,s,i),et=null,yn=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){De(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)g_(t,e),t=t.sibling}function g_(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(dn(t,e),Bn(e),r&4){try{Ms(3,e,e.return),uc(3,e)}catch(y){De(e,e.return,y)}try{Ms(5,e,e.return)}catch(y){De(e,e.return,y)}}break;case 1:dn(t,e),Bn(e),r&512&&n!==null&&Ji(n,n.return);break;case 5:if(dn(t,e),Bn(e),r&512&&n!==null&&Ji(n,n.return),e.flags&32){var i=e.stateNode;try{Xs(i,"")}catch(y){De(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&Rv(i,o),kf(a,s);var u=kf(a,o);for(s=0;s<l.length;s+=2){var c=l[s],h=l[s+1];c==="style"?Uv(i,h):c==="dangerouslySetInnerHTML"?$v(i,h):c==="children"?Xs(i,h):lp(i,c,h,u)}switch(a){case"input":xf(i,o);break;case"textarea":zv(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var d=o.value;d!=null?lo(i,!!o.multiple,d,!1):f!==!!o.multiple&&(o.defaultValue!=null?lo(i,!!o.multiple,o.defaultValue,!0):lo(i,!!o.multiple,o.multiple?[]:"",!1))}i[oa]=o}catch(y){De(e,e.return,y)}}break;case 6:if(dn(t,e),Bn(e),r&4){if(e.stateNode===null)throw Error(z(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){De(e,e.return,y)}}break;case 3:if(dn(t,e),Bn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ea(t.containerInfo)}catch(y){De(e,e.return,y)}break;case 4:dn(t,e),Bn(e);break;case 13:dn(t,e),Bn(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||($p=ze())),r&4&&Ry(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(ct=(u=ct)||c,dn(t,e),ct=u):dn(t,e),Bn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(G=e,c=e.child;c!==null;){for(h=G=c;G!==null;){switch(f=G,d=f.child,f.tag){case 0:case 11:case 14:case 15:Ms(4,f,f.return);break;case 1:Ji(f,f.return);var g=f.stateNode;if(typeof g.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(y){De(r,n,y)}}break;case 5:Ji(f,f.return);break;case 22:if(f.memoizedState!==null){jy(h);continue}}d!==null?(d.return=f,G=d):jy(h)}c=c.sibling}e:for(c=null,h=e;;){if(h.tag===5){if(c===null){c=h;try{i=h.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=h.stateNode,l=h.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Vv("display",s))}catch(y){De(e,e.return,y)}}}else if(h.tag===6){if(c===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(y){De(e,e.return,y)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;c===h&&(c=null),h=h.return}c===h&&(c=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:dn(t,e),Bn(e),r&4&&Ry(e);break;case 21:break;default:dn(t,e),Bn(e)}}function Bn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(p_(n)){var r=n;break e}n=n.return}throw Error(z(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Xs(i,""),r.flags&=-33);var o=Oy(e);Jf(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=Oy(e);Zf(e,a,s);break;default:throw Error(z(161))}}catch(l){De(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function b2(e,t,n){G=e,y_(e)}function y_(e,t,n){for(var r=(e.mode&1)!==0;G!==null;){var i=G,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||al;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||ct;a=al;var u=ct;if(al=s,(ct=l)&&!u)for(G=i;G!==null;)s=G,l=s.child,s.tag===22&&s.memoizedState!==null?$y(i):l!==null?(l.return=s,G=l):$y(i);for(;o!==null;)G=o,y_(o),o=o.sibling;G=i,al=a,ct=u}zy(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,G=o):zy(e)}}function zy(e){for(;G!==null;){var t=G;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ct||uc(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ct)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:gn(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&ky(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ky(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var h=c.dehydrated;h!==null&&ea(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(z(163))}ct||t.flags&512&&Qf(t)}catch(f){De(t,t.return,f)}}if(t===e){G=null;break}if(n=t.sibling,n!==null){n.return=t.return,G=n;break}G=t.return}}function jy(e){for(;G!==null;){var t=G;if(t===e){G=null;break}var n=t.sibling;if(n!==null){n.return=t.return,G=n;break}G=t.return}}function $y(e){for(;G!==null;){var t=G;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{uc(4,t)}catch(l){De(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){De(t,i,l)}}var o=t.return;try{Qf(t)}catch(l){De(t,o,l)}break;case 5:var s=t.return;try{Qf(t)}catch(l){De(t,s,l)}}}catch(l){De(t,t.return,l)}if(t===e){G=null;break}var a=t.sibling;if(a!==null){a.return=t.return,G=a;break}G=t.return}}var E2=Math.ceil,yu=gr.ReactCurrentDispatcher,zp=gr.ReactCurrentOwner,an=gr.ReactCurrentBatchConfig,pe=0,Qe=null,qe=null,nt=0,Ut=0,eo=Yr(0),Ge=0,ha=null,ki=0,cc=0,jp=0,Ns=null,Pt=null,$p=0,bo=1/0,tr=null,xu=!1,ed=null,Dr=null,ll=!1,Lr=null,vu=0,Is=0,td=null,Nl=-1,Il=0;function wt(){return pe&6?ze():Nl!==-1?Nl:Nl=ze()}function Or(e){return e.mode&1?pe&2&&nt!==0?nt&-nt:c2.transition!==null?(Il===0&&(Il=tC()),Il):(e=ye,e!==0||(e=window.event,e=e===void 0?16:lC(e.type)),e):1}function wn(e,t,n,r){if(50<Is)throw Is=0,td=null,Error(z(185));Ea(e,n,r),(!(pe&2)||e!==Qe)&&(e===Qe&&(!(pe&2)&&(cc|=n),Ge===4&&Er(e,nt)),Ot(e,r),n===1&&pe===0&&!(t.mode&1)&&(bo=ze()+500,sc&&Gr()))}function Ot(e,t){var n=e.callbackNode;cE(e,t);var r=nu(e,e===Qe?nt:0);if(r===0)n!==null&&Xg(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Xg(n),t===1)e.tag===0?u2(Vy.bind(null,e)):EC(Vy.bind(null,e)),o2(function(){!(pe&6)&&Gr()}),n=null;else{switch(nC(r)){case 1:n=dp;break;case 4:n=Jv;break;case 16:n=tu;break;case 536870912:n=eC;break;default:n=tu}n=T_(n,x_.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function x_(e,t){if(Nl=-1,Il=0,pe&6)throw Error(z(327));var n=e.callbackNode;if(po()&&e.callbackNode!==n)return null;var r=nu(e,e===Qe?nt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Cu(e,r);else{t=r;var i=pe;pe|=2;var o=C_();(Qe!==e||nt!==t)&&(tr=null,bo=ze()+500,mi(e,t));do try{P2();break}catch(a){v_(e,a)}while(!0);bp(),yu.current=o,pe=i,qe!==null?t=0:(Qe=null,nt=0,t=Ge)}if(t!==0){if(t===2&&(i=Af(e),i!==0&&(r=i,t=nd(e,i))),t===1)throw n=ha,mi(e,0),Er(e,r),Ot(e,ze()),n;if(t===6)Er(e,r);else{if(i=e.current.alternate,!(r&30)&&!A2(i)&&(t=Cu(e,r),t===2&&(o=Af(e),o!==0&&(r=o,t=nd(e,o))),t===1))throw n=ha,mi(e,0),Er(e,r),Ot(e,ze()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(z(345));case 2:ii(e,Pt,tr);break;case 3:if(Er(e,r),(r&130023424)===r&&(t=$p+500-ze(),10<t)){if(nu(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){wt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Df(ii.bind(null,e,Pt,tr),t);break}ii(e,Pt,tr);break;case 4:if(Er(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-_n(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=ze()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*E2(r/1960))-r,10<r){e.timeoutHandle=Df(ii.bind(null,e,Pt,tr),r);break}ii(e,Pt,tr);break;case 5:ii(e,Pt,tr);break;default:throw Error(z(329))}}}return Ot(e,ze()),e.callbackNode===n?x_.bind(null,e):null}function nd(e,t){var n=Ns;return e.current.memoizedState.isDehydrated&&(mi(e,t).flags|=256),e=Cu(e,t),e!==2&&(t=Pt,Pt=n,t!==null&&rd(t)),e}function rd(e){Pt===null?Pt=e:Pt.push.apply(Pt,e)}function A2(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Sn(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Er(e,t){for(t&=~jp,t&=~cc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_n(t),r=1<<n;e[n]=-1,t&=~r}}function Vy(e){if(pe&6)throw Error(z(327));po();var t=nu(e,0);if(!(t&1))return Ot(e,ze()),null;var n=Cu(e,t);if(e.tag!==0&&n===2){var r=Af(e);r!==0&&(t=r,n=nd(e,r))}if(n===1)throw n=ha,mi(e,0),Er(e,t),Ot(e,ze()),n;if(n===6)throw Error(z(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ii(e,Pt,tr),Ot(e,ze()),null}function Vp(e,t){var n=pe;pe|=1;try{return e(t)}finally{pe=n,pe===0&&(bo=ze()+500,sc&&Gr())}}function Si(e){Lr!==null&&Lr.tag===0&&!(pe&6)&&po();var t=pe;pe|=1;var n=an.transition,r=ye;try{if(an.transition=null,ye=1,e)return e()}finally{ye=r,an.transition=n,pe=t,!(pe&6)&&Gr()}}function Up(){Ut=eo.current,Te(eo)}function mi(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,i2(n)),qe!==null)for(n=qe.return;n!==null;){var r=n;switch(kp(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&au();break;case 3:So(),Te(It),Te(pt),Bp();break;case 5:Fp(r);break;case 4:So();break;case 13:Te(Le);break;case 19:Te(Le);break;case 10:Ep(r.type._context);break;case 22:case 23:Up()}n=n.return}if(Qe=e,qe=e=Rr(e.current,null),nt=Ut=t,Ge=0,ha=null,jp=cc=ki=0,Pt=Ns=null,ci!==null){for(t=0;t<ci.length;t++)if(n=ci[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}ci=null}return e}function v_(e,t){do{var n=qe;try{if(bp(),Fl.current=gu,mu){for(var r=Fe.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}mu=!1}if(wi=0,Xe=Ye=Fe=null,Bs=!1,la=0,zp.current=null,n===null||n.return===null){Ge=1,ha=t,qe=null;break}e:{var o=e,s=n.return,a=n,l=t;if(t=nt,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,h=c.tag;if(!(c.mode&1)&&(h===0||h===11||h===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var d=Ly(s);if(d!==null){d.flags&=-257,Py(d,s,a,o,t),d.mode&1&&Ay(o,u,t),t=d,l=u;var g=t.updateQueue;if(g===null){var y=new Set;y.add(l),t.updateQueue=y}else g.add(l);break e}else{if(!(t&1)){Ay(o,u,t),qp();break e}l=Error(z(426))}}else if(Ae&&a.mode&1){var k=Ly(s);if(k!==null){!(k.flags&65536)&&(k.flags|=256),Py(k,s,a,o,t),Sp(To(l,a));break e}}o=l=To(l,a),Ge!==4&&(Ge=2),Ns===null?Ns=[o]:Ns.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var p=n_(o,l,t);wy(o,p);break e;case 1:a=l;var m=o.type,x=o.stateNode;if(!(o.flags&128)&&(typeof m.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Dr===null||!Dr.has(x)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=r_(o,a,t);wy(o,S);break e}}o=o.return}while(o!==null)}w_(n)}catch(b){t=b,qe===n&&n!==null&&(qe=n=n.return);continue}break}while(!0)}function C_(){var e=yu.current;return yu.current=gu,e===null?gu:e}function qp(){(Ge===0||Ge===3||Ge===2)&&(Ge=4),Qe===null||!(ki&268435455)&&!(cc&268435455)||Er(Qe,nt)}function Cu(e,t){var n=pe;pe|=2;var r=C_();(Qe!==e||nt!==t)&&(tr=null,mi(e,t));do try{L2();break}catch(i){v_(e,i)}while(!0);if(bp(),pe=n,yu.current=r,qe!==null)throw Error(z(261));return Qe=null,nt=0,Ge}function L2(){for(;qe!==null;)__(qe)}function P2(){for(;qe!==null&&!tE();)__(qe)}function __(e){var t=S_(e.alternate,e,Ut);e.memoizedProps=e.pendingProps,t===null?w_(e):qe=t,zp.current=null}function w_(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=k2(n,t),n!==null){n.flags&=32767,qe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ge=6,qe=null;return}}else if(n=w2(n,t,Ut),n!==null){qe=n;return}if(t=t.sibling,t!==null){qe=t;return}qe=t=e}while(t!==null);Ge===0&&(Ge=5)}function ii(e,t,n){var r=ye,i=an.transition;try{an.transition=null,ye=1,F2(e,t,n,r)}finally{an.transition=i,ye=r}return null}function F2(e,t,n,r){do po();while(Lr!==null);if(pe&6)throw Error(z(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(z(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(hE(e,o),e===Qe&&(qe=Qe=null,nt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ll||(ll=!0,T_(tu,function(){return po(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=an.transition,an.transition=null;var s=ye;ye=1;var a=pe;pe|=4,zp.current=null,T2(e,n),g_(n,e),QE(Nf),ru=!!Mf,Nf=Mf=null,e.current=n,b2(n),nE(),pe=a,ye=s,an.transition=o}else e.current=n;if(ll&&(ll=!1,Lr=e,vu=i),o=e.pendingLanes,o===0&&(Dr=null),oE(n.stateNode),Ot(e,ze()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(xu)throw xu=!1,e=ed,ed=null,e;return vu&1&&e.tag!==0&&po(),o=e.pendingLanes,o&1?e===td?Is++:(Is=0,td=e):Is=0,Gr(),null}function po(){if(Lr!==null){var e=nC(vu),t=an.transition,n=ye;try{if(an.transition=null,ye=16>e?16:e,Lr===null)var r=!1;else{if(e=Lr,Lr=null,vu=0,pe&6)throw Error(z(331));var i=pe;for(pe|=4,G=e.current;G!==null;){var o=G,s=o.child;if(G.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(G=u;G!==null;){var c=G;switch(c.tag){case 0:case 11:case 15:Ms(8,c,o)}var h=c.child;if(h!==null)h.return=c,G=h;else for(;G!==null;){c=G;var f=c.sibling,d=c.return;if(d_(c),c===u){G=null;break}if(f!==null){f.return=d,G=f;break}G=d}}}var g=o.alternate;if(g!==null){var y=g.child;if(y!==null){g.child=null;do{var k=y.sibling;y.sibling=null,y=k}while(y!==null)}}G=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,G=s;else e:for(;G!==null;){if(o=G,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Ms(9,o,o.return)}var p=o.sibling;if(p!==null){p.return=o.return,G=p;break e}G=o.return}}var m=e.current;for(G=m;G!==null;){s=G;var x=s.child;if(s.subtreeFlags&2064&&x!==null)x.return=s,G=x;else e:for(s=m;G!==null;){if(a=G,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:uc(9,a)}}catch(b){De(a,a.return,b)}if(a===s){G=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,G=S;break e}G=a.return}}if(pe=i,Gr(),zn&&typeof zn.onPostCommitFiberRoot=="function")try{zn.onPostCommitFiberRoot(tc,e)}catch{}r=!0}return r}finally{ye=n,an.transition=t}}return!1}function Uy(e,t,n){t=To(n,t),t=n_(e,t,1),e=Ir(e,t,1),t=wt(),e!==null&&(Ea(e,1,t),Ot(e,t))}function De(e,t,n){if(e.tag===3)Uy(e,e,n);else for(;t!==null;){if(t.tag===3){Uy(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Dr===null||!Dr.has(r))){e=To(n,e),e=r_(t,e,1),t=Ir(t,e,1),e=wt(),t!==null&&(Ea(t,1,e),Ot(t,e));break}}t=t.return}}function B2(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=wt(),e.pingedLanes|=e.suspendedLanes&n,Qe===e&&(nt&n)===n&&(Ge===4||Ge===3&&(nt&130023424)===nt&&500>ze()-$p?mi(e,0):jp|=n),Ot(e,t)}function k_(e,t){t===0&&(e.mode&1?(t=Za,Za<<=1,!(Za&130023424)&&(Za=4194304)):t=1);var n=wt();e=fr(e,t),e!==null&&(Ea(e,t,n),Ot(e,n))}function M2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),k_(e,n)}function N2(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(z(314))}r!==null&&r.delete(t),k_(e,n)}var S_;S_=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||It.current)Bt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Bt=!1,_2(e,t,n);Bt=!!(e.flags&131072)}else Bt=!1,Ae&&t.flags&1048576&&AC(t,cu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ml(e,t),e=t.pendingProps;var i=_o(t,pt.current);fo(t,n),i=Np(null,t,r,e,i,n);var o=Ip();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Dt(r)?(o=!0,lu(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Lp(t),i.updater=lc,t.stateNode=i,i._reactInternals=t,Uf(t,r,e,n),t=Wf(null,t,r,!0,o,n)):(t.tag=0,Ae&&o&&wp(t),vt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ml(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=D2(r),e=gn(r,e),i){case 0:t=Hf(null,t,r,e,n);break e;case 1:t=My(null,t,r,e,n);break e;case 11:t=Fy(null,t,r,e,n);break e;case 14:t=By(null,t,r,gn(r.type,e),n);break e}throw Error(z(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gn(r,i),Hf(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gn(r,i),My(e,t,r,i,n);case 3:e:{if(a_(t),e===null)throw Error(z(387));r=t.pendingProps,o=t.memoizedState,i=o.element,NC(e,t),du(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=To(Error(z(423)),t),t=Ny(e,t,r,n,i);break e}else if(r!==i){i=To(Error(z(424)),t),t=Ny(e,t,r,n,i);break e}else for(qt=Nr(t.stateNode.containerInfo.firstChild),Ht=t,Ae=!0,xn=null,n=BC(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wo(),r===i){t=dr(e,t,n);break e}vt(e,t,r,n)}t=t.child}return t;case 5:return IC(t),e===null&&jf(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,If(r,i)?s=null:o!==null&&If(r,o)&&(t.flags|=32),s_(e,t),vt(e,t,s,n),t.child;case 6:return e===null&&jf(t),null;case 13:return l_(e,t,n);case 4:return Pp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ko(t,null,r,n):vt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gn(r,i),Fy(e,t,r,i,n);case 7:return vt(e,t,t.pendingProps,n),t.child;case 8:return vt(e,t,t.pendingProps.children,n),t.child;case 12:return vt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Ce(hu,r._currentValue),r._currentValue=s,o!==null)if(Sn(o.value,s)){if(o.children===i.children&&!It.current){t=dr(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=sr(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),$f(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(z(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),$f(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}vt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,fo(t,n),i=ln(i),r=r(i),t.flags|=1,vt(e,t,r,n),t.child;case 14:return r=t.type,i=gn(r,t.pendingProps),i=gn(r.type,i),By(e,t,r,i,n);case 15:return i_(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gn(r,i),Ml(e,t),t.tag=1,Dt(r)?(e=!0,lu(t)):e=!1,fo(t,n),t_(t,r,i),Uf(t,r,i,n),Wf(null,t,r,!0,e,n);case 19:return u_(e,t,n);case 22:return o_(e,t,n)}throw Error(z(156,t.tag))};function T_(e,t){return Zv(e,t)}function I2(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function sn(e,t,n,r){return new I2(e,t,n,r)}function Hp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function D2(e){if(typeof e=="function")return Hp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===cp)return 11;if(e===hp)return 14}return 2}function Rr(e,t){var n=e.alternate;return n===null?(n=sn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dl(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Hp(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case qi:return gi(n.children,i,o,t);case up:s=8,i|=8;break;case df:return e=sn(12,n,t,i|2),e.elementType=df,e.lanes=o,e;case pf:return e=sn(13,n,t,i),e.elementType=pf,e.lanes=o,e;case mf:return e=sn(19,n,t,i),e.elementType=mf,e.lanes=o,e;case Iv:return hc(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Mv:s=10;break e;case Nv:s=9;break e;case cp:s=11;break e;case hp:s=14;break e;case kr:s=16,r=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=sn(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function gi(e,t,n,r){return e=sn(7,e,r,t),e.lanes=n,e}function hc(e,t,n,r){return e=sn(22,e,r,t),e.elementType=Iv,e.lanes=n,e.stateNode={isHidden:!1},e}function vh(e,t,n){return e=sn(6,e,null,t),e.lanes=n,e}function Ch(e,t,n){return t=sn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function O2(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=eh(0),this.expirationTimes=eh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eh(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Wp(e,t,n,r,i,o,s,a,l){return e=new O2(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=sn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lp(o),e}function R2(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ui,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function b_(e){if(!e)return $r;e=e._reactInternals;e:{if(Li(e)!==e||e.tag!==1)throw Error(z(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Dt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(z(171))}if(e.tag===1){var n=e.type;if(Dt(n))return bC(e,n,t)}return t}function E_(e,t,n,r,i,o,s,a,l){return e=Wp(n,r,!0,e,i,o,s,a,l),e.context=b_(null),n=e.current,r=wt(),i=Or(n),o=sr(r,i),o.callback=t??null,Ir(n,o,i),e.current.lanes=i,Ea(e,i,r),Ot(e,r),e}function fc(e,t,n,r){var i=t.current,o=wt(),s=Or(i);return n=b_(n),t.context===null?t.context=n:t.pendingContext=n,t=sr(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ir(i,t,s),e!==null&&(wn(e,i,s,o),Pl(e,i,s)),s}function _u(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function qy(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Yp(e,t){qy(e,t),(e=e.alternate)&&qy(e,t)}function z2(){return null}var A_=typeof reportError=="function"?reportError:function(e){console.error(e)};function Gp(e){this._internalRoot=e}dc.prototype.render=Gp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(z(409));fc(e,t,null,null)};dc.prototype.unmount=Gp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Si(function(){fc(null,e,null,null)}),t[hr]=null}};function dc(e){this._internalRoot=e}dc.prototype.unstable_scheduleHydration=function(e){if(e){var t=oC();e={blockedOn:null,target:e,priority:t};for(var n=0;n<br.length&&t!==0&&t<br[n].priority;n++);br.splice(n,0,e),n===0&&aC(e)}};function Kp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function pc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Hy(){}function j2(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=_u(s);o.call(u)}}var s=E_(t,r,e,0,null,!1,!1,"",Hy);return e._reactRootContainer=s,e[hr]=s.current,ra(e.nodeType===8?e.parentNode:e),Si(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=_u(l);a.call(u)}}var l=Wp(e,0,!1,null,null,!1,!1,"",Hy);return e._reactRootContainer=l,e[hr]=l.current,ra(e.nodeType===8?e.parentNode:e),Si(function(){fc(t,l,n,r)}),l}function mc(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=_u(s);a.call(l)}}fc(t,s,e,i)}else s=j2(n,t,e,i,r);return _u(s)}rC=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=xs(t.pendingLanes);n!==0&&(pp(t,n|1),Ot(t,ze()),!(pe&6)&&(bo=ze()+500,Gr()))}break;case 13:Si(function(){var r=fr(e,1);if(r!==null){var i=wt();wn(r,e,1,i)}}),Yp(e,1)}};mp=function(e){if(e.tag===13){var t=fr(e,134217728);if(t!==null){var n=wt();wn(t,e,134217728,n)}Yp(e,134217728)}};iC=function(e){if(e.tag===13){var t=Or(e),n=fr(e,t);if(n!==null){var r=wt();wn(n,e,t,r)}Yp(e,t)}};oC=function(){return ye};sC=function(e,t){var n=ye;try{return ye=e,t()}finally{ye=n}};Tf=function(e,t,n){switch(t){case"input":if(xf(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=oc(r);if(!i)throw Error(z(90));Ov(r),xf(r,i)}}}break;case"textarea":zv(e,n);break;case"select":t=n.value,t!=null&&lo(e,!!n.multiple,t,!1)}};Wv=Vp;Yv=Si;var $2={usingClientEntryPoint:!1,Events:[La,Gi,oc,qv,Hv,Vp]},os={findFiberByHostInstance:ui,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},V2={bundleType:os.bundleType,version:os.version,rendererPackageName:os.rendererPackageName,rendererConfig:os.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:gr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Xv(e),e===null?null:e.stateNode},findFiberByHostInstance:os.findFiberByHostInstance||z2,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ul=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ul.isDisabled&&ul.supportsFiber)try{tc=ul.inject(V2),zn=ul}catch{}}Xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$2;Xt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Kp(t))throw Error(z(200));return R2(e,t,null,n)};Xt.createRoot=function(e,t){if(!Kp(e))throw Error(z(299));var n=!1,r="",i=A_;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Wp(e,1,!1,null,null,n,!1,r,i),e[hr]=t.current,ra(e.nodeType===8?e.parentNode:e),new Gp(t)};Xt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(z(188)):(e=Object.keys(e).join(","),Error(z(268,e)));return e=Xv(t),e=e===null?null:e.stateNode,e};Xt.flushSync=function(e){return Si(e)};Xt.hydrate=function(e,t,n){if(!pc(t))throw Error(z(200));return mc(null,e,t,!0,n)};Xt.hydrateRoot=function(e,t,n){if(!Kp(e))throw Error(z(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=A_;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=E_(t,null,e,1,n??null,i,!1,o,s),e[hr]=t.current,ra(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new dc(t)};Xt.render=function(e,t,n){if(!pc(t))throw Error(z(200));return mc(null,e,t,!1,n)};Xt.unmountComponentAtNode=function(e){if(!pc(e))throw Error(z(40));return e._reactRootContainer?(Si(function(){mc(null,null,e,!1,function(){e._reactRootContainer=null,e[hr]=null})}),!0):!1};Xt.unstable_batchedUpdates=Vp;Xt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!pc(n))throw Error(z(200));if(e==null||e._reactInternals===void 0)throw Error(z(38));return mc(e,t,n,!1,r)};Xt.version="18.3.1-next-f1338f8080-20240426";function L_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(L_)}catch(e){console.error(e)}}L_(),Lv.exports=Xt;var U2=Lv.exports,Wy=U2;hf.createRoot=Wy.createRoot,hf.hydrateRoot=Wy.hydrateRoot;const Xp=R.createContext({});function Qp(e){const t=R.useRef(null);return t.current===null&&(t.current=e()),t.current}const gc=R.createContext(null),Zp=R.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class q2 extends R.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function H2({children:e,isPresent:t}){const n=R.useId(),r=R.useRef(null),i=R.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=R.useContext(Zp);return R.useInsertionEffect(()=>{const{width:s,height:a,top:l,left:u}=i.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return o&&(c.nonce=o),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
42
+ [data-motion-pop-id="${n}"] {
43
+ position: absolute !important;
44
+ width: ${s}px !important;
45
+ height: ${a}px !important;
46
+ top: ${l}px !important;
47
+ left: ${u}px !important;
48
+ }
49
+ `),()=>{document.head.removeChild(c)}},[t]),C.jsx(q2,{isPresent:t,childRef:r,sizeRef:i,children:R.cloneElement(e,{ref:r})})}const W2=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const a=Qp(Y2),l=R.useId(),u=R.useCallback(h=>{a.set(h,!0);for(const f of a.values())if(!f)return;r&&r()},[a,r]),c=R.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:u,register:h=>(a.set(h,!1),()=>a.delete(h))}),o?[Math.random(),u]:[n,u]);return R.useMemo(()=>{a.forEach((h,f)=>a.set(f,!1))},[n]),R.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=C.jsx(H2,{isPresent:n,children:e})),C.jsx(gc.Provider,{value:c,children:e})};function Y2(){return new Map}function P_(e=!0){const t=R.useContext(gc);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=R.useId();R.useEffect(()=>{e&&i(o)},[e]);const s=R.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}const cl=e=>e.key||"";function Yy(e){const t=[];return R.Children.forEach(e,n=>{R.isValidElement(n)&&t.push(n)}),t}const Jp=typeof window<"u",F_=Jp?R.useLayoutEffect:R.useEffect,B_=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:s=!1})=>{const[a,l]=P_(s),u=R.useMemo(()=>Yy(e),[e]),c=s&&!a?[]:u.map(cl),h=R.useRef(!0),f=R.useRef(u),d=Qp(()=>new Map),[g,y]=R.useState(u),[k,p]=R.useState(u);F_(()=>{h.current=!1,f.current=u;for(let S=0;S<k.length;S++){const b=cl(k[S]);c.includes(b)?d.delete(b):d.get(b)!==!0&&d.set(b,!1)}},[k,c.length,c.join("-")]);const m=[];if(u!==g){let S=[...u];for(let b=0;b<k.length;b++){const w=k[b],L=cl(w);c.includes(L)||(S.splice(b,0,w),m.push(w))}o==="wait"&&m.length&&(S=m),p(Yy(S)),y(u);return}const{forceRender:x}=R.useContext(Xp);return C.jsx(C.Fragment,{children:k.map(S=>{const b=cl(S),w=s&&!a?!1:u===k||c.includes(b),L=()=>{if(d.has(b))d.set(b,!0);else return;let P=!0;d.forEach(W=>{W||(P=!1)}),P&&(x==null||x(),p(f.current),s&&(l==null||l()),r&&r())};return C.jsx(W2,{isPresent:w,initial:!h.current||n?void 0:!1,custom:w?void 0:t,presenceAffectsLayout:i,mode:o,onExitComplete:w?void 0:L,children:S},b)})})},Wt=e=>e;let M_=Wt;function em(e){let t;return()=>(t===void 0&&(t=e()),t)}const Eo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ar=e=>e*1e3,lr=e=>e/1e3,G2={useManualTiming:!1};function K2(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(u){o.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,h=!1)=>{const d=h&&r?t:n;return c&&o.add(u),d.has(u)||d.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(s=u,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,i&&(i=!1,l.process(u))}};return l}const hl=["read","resolveKeyframes","update","preRender","render","postRender"],X2=40;function N_(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=hl.reduce((p,m)=>(p[m]=K2(o),p),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:f}=s,d=()=>{const p=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(p-i.timestamp,X2),1),i.timestamp=p,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(d))},g=()=>{n=!0,r=!0,i.isProcessing||e(d)};return{schedule:hl.reduce((p,m)=>{const x=s[m];return p[m]=(S,b=!1,w=!1)=>(n||g(),x.schedule(S,b,w)),p},{}),cancel:p=>{for(let m=0;m<hl.length;m++)s[hl[m]].cancel(p)},state:i,steps:s}}const{schedule:be,cancel:Vr,state:tt,steps:_h}=N_(typeof requestAnimationFrame<"u"?requestAnimationFrame:Wt,!0),I_=R.createContext({strict:!1}),Gy={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ao={};for(const e in Gy)Ao[e]={isEnabled:t=>Gy[e].some(n=>!!t[n])};function Q2(e){for(const t in e)Ao[t]={...Ao[t],...e[t]}}const Z2=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function wu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Z2.has(e)}let D_=e=>!wu(e);function J2(e){e&&(D_=t=>t.startsWith("on")?!wu(t):e(t))}try{J2(require("@emotion/is-prop-valid").default)}catch{}function eA(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(D_(i)||n===!0&&wu(i)||!t&&!wu(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function tA(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const yc=R.createContext({});function fa(e){return typeof e=="string"||Array.isArray(e)}function xc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const tm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],nm=["initial",...tm];function vc(e){return xc(e.animate)||nm.some(t=>fa(e[t]))}function O_(e){return!!(vc(e)||e.variants)}function nA(e,t){if(vc(e)){const{initial:n,animate:r}=e;return{initial:n===!1||fa(n)?n:void 0,animate:fa(r)?r:void 0}}return e.inherit!==!1?t:{}}function rA(e){const{initial:t,animate:n}=nA(e,R.useContext(yc));return R.useMemo(()=>({initial:t,animate:n}),[Ky(t),Ky(n)])}function Ky(e){return Array.isArray(e)?e.join(" "):e}const iA=Symbol.for("motionComponentSymbol");function to(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function oA(e,t,n){return R.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):to(n)&&(n.current=r))},[t])}const rm=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),sA="framerAppearId",R_="data-"+rm(sA),{schedule:im}=N_(queueMicrotask,!1),z_=R.createContext({});function aA(e,t,n,r,i){var o,s;const{visualElement:a}=R.useContext(yc),l=R.useContext(I_),u=R.useContext(gc),c=R.useContext(Zp).reducedMotion,h=R.useRef(null);r=r||l.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=h.current,d=R.useContext(z_);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&lA(h.current,n,i,d);const g=R.useRef(!1);R.useInsertionEffect(()=>{f&&g.current&&f.update(n,u)});const y=n[R_],k=R.useRef(!!y&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,y))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,y)));return F_(()=>{f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),im.render(f.render),k.current&&f.animationState&&f.animationState.animateChanges())}),R.useEffect(()=>{f&&(!k.current&&f.animationState&&f.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{var p;(p=window.MotionHandoffMarkAsComplete)===null||p===void 0||p.call(window,y)}),k.current=!1))}),f}function lA(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:j_(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&to(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function j_(e){if(e)return e.options.allowProjection!==!1?e.projection:j_(e.parent)}function uA({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,s;e&&Q2(e);function a(u,c){let h;const f={...R.useContext(Zp),...u,layoutId:cA(u)},{isStatic:d}=f,g=rA(u),y=r(u,d);if(!d&&Jp){hA();const k=fA(f);h=k.MeasureLayout,g.visualElement=aA(i,y,f,t,k.ProjectionNode)}return C.jsxs(yc.Provider,{value:g,children:[h&&g.visualElement?C.jsx(h,{visualElement:g.visualElement,...f}):null,n(i,u,oA(y,g.visualElement,c),y,d,g.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${(s=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&s!==void 0?s:""})`}`;const l=R.forwardRef(a);return l[iA]=i,l}function cA({layoutId:e}){const t=R.useContext(Xp).id;return t&&e!==void 0?t+"-"+e:e}function hA(e,t){R.useContext(I_).strict}function fA(e){const{drag:t,layout:n}=Ao;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const dA=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function om(e){return typeof e!="string"||e.includes("-")?!1:!!(dA.indexOf(e)>-1||/[A-Z]/u.test(e))}function Xy(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function sm(e,t,n,r){if(typeof t=="function"){const[i,o]=Xy(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Xy(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const id=e=>Array.isArray(e),pA=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),mA=e=>id(e)?e[e.length-1]||0:e,ft=e=>!!(e&&e.getVelocity);function Ol(e){const t=ft(e)?e.get():e;return pA(t)?t.toValue():t}function gA({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const s={latestValues:yA(r,i,o,e),renderState:t()};return n&&(s.onMount=a=>n({props:r,current:a,...s}),s.onUpdate=a=>n(a)),s}const $_=e=>(t,n)=>{const r=R.useContext(yc),i=R.useContext(gc),o=()=>gA(e,t,r,i);return n?o():Qp(o)};function yA(e,t,n,r){const i={},o=r(e,{});for(const f in o)i[f]=Ol(o[f]);let{initial:s,animate:a}=e;const l=vc(e),u=O_(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const h=c?a:s;if(h&&typeof h!="boolean"&&!xc(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const g=sm(e,f[d]);if(g){const{transitionEnd:y,transition:k,...p}=g;for(const m in p){let x=p[m];if(Array.isArray(x)){const S=c?x.length-1:0;x=x[S]}x!==null&&(i[m]=x)}for(const m in y)i[m]=y[m]}}}return i}const Uo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Pi=new Set(Uo),V_=e=>t=>typeof t=="string"&&t.startsWith(e),U_=V_("--"),xA=V_("var(--"),am=e=>xA(e)?vA.test(e.split("/*")[0].trim()):!1,vA=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,q_=(e,t)=>t&&typeof e=="number"?t.transform(e):e,pr=(e,t,n)=>n>t?t:n<e?e:n,qo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},da={...qo,transform:e=>pr(0,1,e)},fl={...qo,default:1},Fa=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),_r=Fa("deg"),$n=Fa("%"),ne=Fa("px"),CA=Fa("vh"),_A=Fa("vw"),Qy={...$n,parse:e=>$n.parse(e)/100,transform:e=>$n.transform(e*100)},wA={borderWidth:ne,borderTopWidth:ne,borderRightWidth:ne,borderBottomWidth:ne,borderLeftWidth:ne,borderRadius:ne,radius:ne,borderTopLeftRadius:ne,borderTopRightRadius:ne,borderBottomRightRadius:ne,borderBottomLeftRadius:ne,width:ne,maxWidth:ne,height:ne,maxHeight:ne,top:ne,right:ne,bottom:ne,left:ne,padding:ne,paddingTop:ne,paddingRight:ne,paddingBottom:ne,paddingLeft:ne,margin:ne,marginTop:ne,marginRight:ne,marginBottom:ne,marginLeft:ne,backgroundPositionX:ne,backgroundPositionY:ne},kA={rotate:_r,rotateX:_r,rotateY:_r,rotateZ:_r,scale:fl,scaleX:fl,scaleY:fl,scaleZ:fl,skew:_r,skewX:_r,skewY:_r,distance:ne,translateX:ne,translateY:ne,translateZ:ne,x:ne,y:ne,z:ne,perspective:ne,transformPerspective:ne,opacity:da,originX:Qy,originY:Qy,originZ:ne},Zy={...qo,transform:Math.round},lm={...wA,...kA,zIndex:Zy,size:ne,fillOpacity:da,strokeOpacity:da,numOctaves:Zy},SA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},TA=Uo.length;function bA(e,t,n){let r="",i=!0;for(let o=0;o<TA;o++){const s=Uo[o],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=q_(a,lm[s]);if(!l){i=!1;const c=SA[s]||s;r+=`${c}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function um(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let s=!1,a=!1;for(const l in t){const u=t[l];if(Pi.has(l)){s=!0;continue}else if(U_(l)){i[l]=u;continue}else{const c=q_(u,lm[l]);l.startsWith("origin")?(a=!0,o[l]=c):r[l]=c}}if(t.transform||(s||n?r.transform=bA(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=o;r.transformOrigin=`${l} ${u} ${c}`}}const EA={offset:"stroke-dashoffset",array:"stroke-dasharray"},AA={offset:"strokeDashoffset",array:"strokeDasharray"};function LA(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?EA:AA;e[o.offset]=ne.transform(-r);const s=ne.transform(t),a=ne.transform(n);e[o.array]=`${s} ${a}`}function Jy(e,t,n){return typeof e=="string"?e:ne.transform(t+n*e)}function PA(e,t,n){const r=Jy(t,e.x,e.width),i=Jy(n,e.y,e.height);return`${r} ${i}`}function cm(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,h){if(um(e,u,h),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:d,dimensions:g}=e;f.transform&&(g&&(d.transform=f.transform),delete f.transform),g&&(i!==void 0||o!==void 0||d.transform)&&(d.transformOrigin=PA(g,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),s!==void 0&&LA(f,s,a,l,!1)}const hm=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),H_=()=>({...hm(),attrs:{}}),fm=e=>typeof e=="string"&&e.toLowerCase()==="svg";function W_(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Y_=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function G_(e,t,n,r){W_(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Y_.has(i)?i:rm(i),t.attrs[i])}const ku={};function FA(e){Object.assign(ku,e)}function K_(e,{layout:t,layoutId:n}){return Pi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ku[e]||e==="opacity")}function dm(e,t,n){var r;const{style:i}=e,o={};for(const s in i)(ft(i[s])||t.style&&ft(t.style[s])||K_(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[s]=i[s]);return o}function X_(e,t,n){const r=dm(e,t,n);for(const i in e)if(ft(e[i])||ft(t[i])){const o=Uo.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function BA(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const e0=["x","y","width","height","cx","cy","r"],MA={useVisualState:$_({scrapeMotionValuesFromProps:X_,createRenderState:H_,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const a in i)if(Pi.has(a)){o=!0;break}}if(!o)return;let s=!t;if(t)for(let a=0;a<e0.length;a++){const l=e0[a];e[l]!==t[l]&&(s=!0)}s&&be.read(()=>{BA(n,r),be.render(()=>{cm(r,i,fm(n.tagName),e.transformTemplate),G_(n,r)})})}})},NA={useVisualState:$_({scrapeMotionValuesFromProps:dm,createRenderState:hm})};function Q_(e,t,n){for(const r in t)!ft(t[r])&&!K_(r,n)&&(e[r]=t[r])}function IA({transformTemplate:e},t){return R.useMemo(()=>{const n=hm();return um(n,t,e),Object.assign({},n.vars,n.style)},[t])}function DA(e,t){const n=e.style||{},r={};return Q_(r,n,e),Object.assign(r,IA(e,t)),r}function OA(e,t){const n={},r=DA(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function RA(e,t,n,r){const i=R.useMemo(()=>{const o=H_();return cm(o,t,fm(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Q_(o,e.style,e),i.style={...o,...i.style}}return i}function zA(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(om(n)?RA:OA)(r,o,s,n),u=eA(r,typeof n=="string",e),c=n!==R.Fragment?{...u,...l,ref:i}:{},{children:h}=r,f=R.useMemo(()=>ft(h)?h.get():h,[h]);return R.createElement(n,{...c,children:f})}}function jA(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...om(r)?MA:NA,preloadedFeatures:e,useRender:zA(i),createVisualElement:t,Component:r};return uA(s)}}function Z_(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Cc(e,t,n){const r=e.getProps();return sm(r,t,n!==void 0?n:r.custom,e)}const $A=em(()=>window.ScrollTimeline!==void 0);class VA{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if($A()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class UA extends VA{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function pm(e,t){return e?e[t]||e.default||e:void 0}const od=2e4;function J_(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<od;)t+=n,r=e.next(t);return t>=od?1/0:t}function mm(e){return typeof e=="function"}function t0(e,t){e.timeline=t,e.onfinish=null}const gm=e=>Array.isArray(e)&&typeof e[0]=="number",qA={linearEasing:void 0};function HA(e,t){const n=em(e);return()=>{var r;return(r=qA[t])!==null&&r!==void 0?r:n()}}const Su=HA(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ew=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Eo(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function tw(e){return!!(typeof e=="function"&&Su()||!e||typeof e=="string"&&(e in sd||Su())||gm(e)||Array.isArray(e)&&e.every(tw))}const Cs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,sd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Cs([0,.65,.55,1]),circOut:Cs([.55,0,1,.45]),backIn:Cs([.31,.01,.66,-.59]),backOut:Cs([.33,1.53,.69,.99])};function nw(e,t){if(e)return typeof e=="function"&&Su()?ew(e,t):gm(e)?Cs(e):Array.isArray(e)?e.map(n=>nw(n,t)||sd.easeOut):sd[e]}const pn={x:!1,y:!1};function rw(){return pn.x||pn.y}function WA(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function iw(e,t){const n=WA(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function n0(e){return t=>{t.pointerType==="touch"||rw()||e(t)}}function YA(e,t,n={}){const[r,i,o]=iw(e,n),s=n0(a=>{const{target:l}=a,u=t(a);if(typeof u!="function"||!l)return;const c=n0(h=>{u(h),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,i)});return r.forEach(a=>{a.addEventListener("pointerenter",s,i)}),o}const ow=(e,t)=>t?e===t?!0:ow(e,t.parentElement):!1,ym=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,GA=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function KA(e){return GA.has(e.tagName)||e.tabIndex!==-1}const _s=new WeakSet;function r0(e){return t=>{t.key==="Enter"&&e(t)}}function wh(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const XA=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=r0(()=>{if(_s.has(n))return;wh(n,"down");const i=r0(()=>{wh(n,"up")}),o=()=>wh(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function i0(e){return ym(e)&&!rw()}function QA(e,t,n={}){const[r,i,o]=iw(e,n),s=a=>{const l=a.currentTarget;if(!i0(a)||_s.has(l))return;_s.add(l);const u=t(a),c=(d,g)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),!(!i0(d)||!_s.has(l))&&(_s.delete(l),typeof u=="function"&&u(d,{success:g}))},h=d=>{c(d,n.useGlobalTarget||ow(l,d.target))},f=d=>{c(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return r.forEach(a=>{!KA(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,i),a.addEventListener("focus",u=>XA(u,i),i)}),o}function ZA(e){return e==="x"||e==="y"?pn[e]?null:(pn[e]=!0,()=>{pn[e]=!1}):pn.x||pn.y?null:(pn.x=pn.y=!0,()=>{pn.x=pn.y=!1})}const sw=new Set(["width","height","top","left","right","bottom",...Uo]);let Rl;function JA(){Rl=void 0}const Vn={now:()=>(Rl===void 0&&Vn.set(tt.isProcessing||G2.useManualTiming?tt.timestamp:performance.now()),Rl),set:e=>{Rl=e,queueMicrotask(JA)}};function xm(e,t){e.indexOf(t)===-1&&e.push(t)}function vm(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Cm{constructor(){this.subscriptions=[]}add(t){return xm(this.subscriptions,t),()=>vm(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function aw(e,t){return t?e*(1e3/t):0}const o0=30,eL=e=>!isNaN(parseFloat(e));class tL{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Vn.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Vn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=eL(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Cm);const r=this.events[t].add(n);return t==="change"?()=>{r(),be.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Vn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>o0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,o0);return aw(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function pa(e,t){return new tL(e,t)}function nL(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,pa(n))}function rL(e,t){const n=Cc(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=mA(o[s]);nL(e,s,a)}}function iL(e){return!!(ft(e)&&e.add)}function ad(e,t){const n=e.getValue("willChange");if(iL(n))return n.add(t)}function lw(e){return e.props[R_]}const uw=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,oL=1e-7,sL=12;function aL(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=uw(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>oL&&++a<sL);return s}function Ba(e,t,n,r){if(e===t&&n===r)return Wt;const i=o=>aL(o,0,1,e,n);return o=>o===0||o===1?o:uw(i(o),t,r)}const cw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,hw=e=>t=>1-e(1-t),fw=Ba(.33,1.53,.69,.99),_m=hw(fw),dw=cw(_m),pw=e=>(e*=2)<1?.5*_m(e):.5*(2-Math.pow(2,-10*(e-1))),wm=e=>1-Math.sin(Math.acos(e)),mw=hw(wm),gw=cw(wm),yw=e=>/^0[^.\s]+$/u.test(e);function lL(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||yw(e):!0}const Ds=e=>Math.round(e*1e5)/1e5,km=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function uL(e){return e==null}const cL=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Sm=(e,t)=>n=>!!(typeof n=="string"&&cL.test(n)&&n.startsWith(e)||t&&!uL(n)&&Object.prototype.hasOwnProperty.call(n,t)),xw=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,a]=r.match(km);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},hL=e=>pr(0,255,e),kh={...qo,transform:e=>Math.round(hL(e))},fi={test:Sm("rgb","red"),parse:xw("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+kh.transform(e)+", "+kh.transform(t)+", "+kh.transform(n)+", "+Ds(da.transform(r))+")"};function fL(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const ld={test:Sm("#"),parse:fL,transform:fi.transform},no={test:Sm("hsl","hue"),parse:xw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+$n.transform(Ds(t))+", "+$n.transform(Ds(n))+", "+Ds(da.transform(r))+")"},ut={test:e=>fi.test(e)||ld.test(e)||no.test(e),parse:e=>fi.test(e)?fi.parse(e):no.test(e)?no.parse(e):ld.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?fi.transform(e):no.transform(e)},dL=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function pL(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(km))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(dL))===null||n===void 0?void 0:n.length)||0)>0}const vw="number",Cw="color",mL="var",gL="var(",s0="${}",yL=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ma(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(yL,l=>(ut.test(l)?(r.color.push(o),i.push(Cw),n.push(ut.parse(l))):l.startsWith(gL)?(r.var.push(o),i.push(mL),n.push(l)):(r.number.push(o),i.push(vw),n.push(parseFloat(l))),++o,s0)).split(s0);return{values:n,split:a,indexes:r,types:i}}function _w(e){return ma(e).values}function ww(e){const{split:t,types:n}=ma(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){const a=n[s];a===vw?o+=Ds(i[s]):a===Cw?o+=ut.transform(i[s]):o+=i[s]}return o}}const xL=e=>typeof e=="number"?0:e;function vL(e){const t=_w(e);return ww(e)(t.map(xL))}const Ur={test:pL,parse:_w,createTransformer:ww,getAnimatableNone:vL},CL=new Set(["brightness","contrast","saturate","opacity"]);function _L(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(km)||[];if(!r)return e;const i=n.replace(r,"");let o=CL.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const wL=/\b([a-z-]*)\(.*?\)/gu,ud={...Ur,getAnimatableNone:e=>{const t=e.match(wL);return t?t.map(_L).join(" "):e}},kL={...lm,color:ut,backgroundColor:ut,outlineColor:ut,fill:ut,stroke:ut,borderColor:ut,borderTopColor:ut,borderRightColor:ut,borderBottomColor:ut,borderLeftColor:ut,filter:ud,WebkitFilter:ud},Tm=e=>kL[e];function kw(e,t){let n=Tm(e);return n!==ud&&(n=Ur),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const SL=new Set(["auto","none","0"]);function TL(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!SL.has(o)&&ma(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=kw(n,i)}const a0=e=>e===qo||e===ne,l0=(e,t)=>parseFloat(e.split(", ")[t]),u0=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return l0(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?l0(o[1],e):0}},bL=new Set(["x","y","z"]),EL=Uo.filter(e=>!bL.has(e));function AL(e){const t=[];return EL.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Lo={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:u0(4,13),y:u0(5,14)};Lo.translateX=Lo.x;Lo.translateY=Lo.y;const yi=new Set;let cd=!1,hd=!1;function Sw(){if(hd){const e=Array.from(yi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=AL(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var a;(a=r.getValue(o))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}hd=!1,cd=!1,yi.forEach(e=>e.complete()),yi.clear()}function Tw(){yi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(hd=!0)})}function LL(){Tw(),Sw()}class bm{constructor(t,n,r,i,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(yi.add(this),cd||(cd=!0,be.read(Tw),be.resolveKeyframes(Sw))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const s=i==null?void 0:i.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),i&&s===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),yi.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,yi.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const bw=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),PL=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function FL(e){const t=PL.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function Ew(e,t,n=1){const[r,i]=FL(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return bw(s)?parseFloat(s):s}return am(i)?Ew(i,t,n+1):i}const Aw=e=>t=>t.test(e),BL={test:e=>e==="auto",parse:e=>e},Lw=[qo,ne,$n,_r,_A,CA,BL],c0=e=>Lw.find(Aw(e));class Pw extends bm{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),am(u))){const c=Ew(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!sw.has(r)||t.length!==2)return;const[i,o]=t,s=c0(i),a=c0(o);if(s!==a)if(a0(s)&&a0(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)lL(t[i])&&r.push(i);r.length&&TL(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Lo[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const s=i.length-1,a=i[s];i[s]=Lo[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const h0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ur.test(e)||e==="0")&&!e.startsWith("url("));function ML(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function NL(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=h0(i,t),a=h0(o,t);return!s||!a?!1:ML(e)||(n==="spring"||mm(n))&&r}const IL=e=>e!==null;function _c(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(IL),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const DL=40;class Fw{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Vn.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>DL?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&LL(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Vn.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:s,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!NL(t,r,i,o))if(s)this.options.duration=0;else{l&&l(_c(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Pe=(e,t,n)=>e+(t-e)*n;function Sh(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function OL({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Sh(l,a,e+1/3),o=Sh(l,a,e),s=Sh(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function Tu(e,t){return n=>n>0?t:e}const Th=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},RL=[ld,fi,no],zL=e=>RL.find(t=>t.test(e));function f0(e){const t=zL(e);if(!t)return!1;let n=t.parse(e);return t===no&&(n=OL(n)),n}const d0=(e,t)=>{const n=f0(e),r=f0(t);if(!n||!r)return Tu(e,t);const i={...n};return o=>(i.red=Th(n.red,r.red,o),i.green=Th(n.green,r.green,o),i.blue=Th(n.blue,r.blue,o),i.alpha=Pe(n.alpha,r.alpha,o),fi.transform(i))},jL=(e,t)=>n=>t(e(n)),Ma=(...e)=>e.reduce(jL),fd=new Set(["none","hidden"]);function $L(e,t){return fd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function VL(e,t){return n=>Pe(e,t,n)}function Em(e){return typeof e=="number"?VL:typeof e=="string"?am(e)?Tu:ut.test(e)?d0:HL:Array.isArray(e)?Bw:typeof e=="object"?ut.test(e)?d0:UL:Tu}function Bw(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>Em(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function UL(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Em(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function qL(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],a=e.indexes[s][i[s]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[o]=l,i[s]++}return r}const HL=(e,t)=>{const n=Ur.createTransformer(t),r=ma(e),i=ma(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?fd.has(e)&&!i.values.length||fd.has(t)&&!r.values.length?$L(e,t):Ma(Bw(qL(r,i),i.values),n):Tu(e,t)};function Mw(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Pe(e,t,n):Em(e)(e,t)}const WL=5;function Nw(e,t,n){const r=Math.max(t-WL,0);return aw(n-e(r),t-r)}const Ie={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},bh=.001;function YL({duration:e=Ie.duration,bounce:t=Ie.bounce,velocity:n=Ie.velocity,mass:r=Ie.mass}){let i,o,s=1-t;s=pr(Ie.minDamping,Ie.maxDamping,s),e=pr(Ie.minDuration,Ie.maxDuration,lr(e)),s<1?(i=u=>{const c=u*s,h=c*e,f=c-n,d=dd(u,s),g=Math.exp(-h);return bh-f/d*g},o=u=>{const h=u*s*e,f=h*n+n,d=Math.pow(s,2)*Math.pow(u,2)*e,g=Math.exp(-h),y=dd(Math.pow(u,2),s);return(-i(u)+bh>0?-1:1)*((f-d)*g)/y}):(i=u=>{const c=Math.exp(-u*e),h=(u-n)*e+1;return-bh+c*h},o=u=>{const c=Math.exp(-u*e),h=(n-u)*(e*e);return c*h});const a=5/e,l=KL(i,o,a);if(e=ar(e),isNaN(l))return{stiffness:Ie.stiffness,damping:Ie.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const GL=12;function KL(e,t,n){let r=n;for(let i=1;i<GL;i++)r=r-e(r)/t(r);return r}function dd(e,t){return e*Math.sqrt(1-t*t)}const XL=["duration","bounce"],QL=["stiffness","damping","mass"];function p0(e,t){return t.some(n=>e[n]!==void 0)}function ZL(e){let t={velocity:Ie.velocity,stiffness:Ie.stiffness,damping:Ie.damping,mass:Ie.mass,isResolvedFromDuration:!1,...e};if(!p0(e,QL)&&p0(e,XL))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*pr(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Ie.mass,stiffness:i,damping:o}}else{const n=YL(e);t={...t,...n,mass:Ie.mass},t.isResolvedFromDuration=!0}return t}function Iw(e=Ie.visualDuration,t=Ie.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:h,velocity:f,isResolvedFromDuration:d}=ZL({...n,velocity:-lr(n.velocity||0)}),g=f||0,y=u/(2*Math.sqrt(l*c)),k=s-o,p=lr(Math.sqrt(l/c)),m=Math.abs(k)<5;r||(r=m?Ie.restSpeed.granular:Ie.restSpeed.default),i||(i=m?Ie.restDelta.granular:Ie.restDelta.default);let x;if(y<1){const b=dd(p,y);x=w=>{const L=Math.exp(-y*p*w);return s-L*((g+y*p*k)/b*Math.sin(b*w)+k*Math.cos(b*w))}}else if(y===1)x=b=>s-Math.exp(-p*b)*(k+(g+p*k)*b);else{const b=p*Math.sqrt(y*y-1);x=w=>{const L=Math.exp(-y*p*w),P=Math.min(b*w,300);return s-L*((g+y*p*k)*Math.sinh(P)+b*k*Math.cosh(P))/b}}const S={calculatedDuration:d&&h||null,next:b=>{const w=x(b);if(d)a.done=b>=h;else{let L=0;y<1&&(L=b===0?ar(g):Nw(x,b,w));const P=Math.abs(L)<=r,W=Math.abs(s-w)<=i;a.done=P&&W}return a.value=a.done?s:w,a},toString:()=>{const b=Math.min(J_(S),od),w=ew(L=>S.next(b*L).value,b,30);return b+"ms "+w}};return S}function m0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=e[0],f={done:!1,value:h},d=P=>a!==void 0&&P<a||l!==void 0&&P>l,g=P=>a===void 0?l:l===void 0||Math.abs(a-P)<Math.abs(l-P)?a:l;let y=n*t;const k=h+y,p=s===void 0?k:s(k);p!==k&&(y=p-h);const m=P=>-y*Math.exp(-P/r),x=P=>p+m(P),S=P=>{const W=m(P),D=x(P);f.done=Math.abs(W)<=u,f.value=f.done?p:D};let b,w;const L=P=>{d(f.value)&&(b=P,w=Iw({keyframes:[f.value,g(f.value)],velocity:Nw(x,P,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return L(0),{calculatedDuration:null,next:P=>{let W=!1;return!w&&b===void 0&&(W=!0,S(P),L(P)),b!==void 0&&P>=b?w.next(P-b):(!W&&S(P),f)}}}const JL=Ba(.42,0,1,1),eP=Ba(0,0,.58,1),Dw=Ba(.42,0,.58,1),tP=e=>Array.isArray(e)&&typeof e[0]!="number",nP={linear:Wt,easeIn:JL,easeInOut:Dw,easeOut:eP,circIn:wm,circInOut:gw,circOut:mw,backIn:_m,backInOut:dw,backOut:fw,anticipate:pw},g0=e=>{if(gm(e)){M_(e.length===4);const[t,n,r,i]=e;return Ba(t,n,r,i)}else if(typeof e=="string")return nP[e];return e};function rP(e,t,n){const r=[],i=n||Mw,o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Wt:t;a=Ma(l,a)}r.push(a)}return r}function iP(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(M_(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=rP(t,r,i),l=a.length,u=c=>{if(s&&c<e[0])return t[0];let h=0;if(l>1)for(;h<e.length-2&&!(c<e[h+1]);h++);const f=Eo(e[h],e[h+1],c);return a[h](f)};return n?c=>u(pr(e[0],e[o-1],c)):u}function oP(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Eo(0,t,r);e.push(Pe(n,1,i))}}function sP(e){const t=[0];return oP(t,e.length-1),t}function aP(e,t){return e.map(n=>n*t)}function lP(e,t){return e.map(()=>t||Dw).splice(0,e.length-1)}function bu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=tP(r)?r.map(g0):g0(r),o={done:!1,value:t[0]},s=aP(n&&n.length===t.length?n:sP(t),e),a=iP(s,t,{ease:Array.isArray(i)?i:lP(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const uP=e=>{const t=({timestamp:n})=>e(n);return{start:()=>be.update(t,!0),stop:()=>Vr(t),now:()=>tt.isProcessing?tt.timestamp:Vn.now()}},cP={decay:m0,inertia:m0,tween:bu,keyframes:bu,spring:Iw},hP=e=>e/100;class Am extends Fw{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,s=(i==null?void 0:i.KeyframeResolver)||bm,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(o,a,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=this.options,a=mm(n)?n:cP[n]||bu;let l,u;a!==bu&&typeof t[0]!="number"&&(l=Ma(hP,Mw(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});o==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=J_(c));const{calculatedDuration:h}=c,f=h+i,d=f*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:f,totalDuration:d}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:P}=this.options;return{done:!0,value:P[P.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:f,repeat:d,repeatType:g,repeatDelay:y,onUpdate:k}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const p=this.currentTime-f*(this.speed>=0?1:-1),m=this.speed>=0?p<0:p>c;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let x=this.currentTime,S=o;if(d){const P=Math.min(this.currentTime,c)/h;let W=Math.floor(P),D=P%1;!D&&P>=1&&(D=1),D===1&&W--,W=Math.min(W,d+1),!!(W%2)&&(g==="reverse"?(D=1-D,y&&(D-=y/h)):g==="mirror"&&(S=s)),x=pr(0,1,D)*h}const b=m?{done:!1,value:l[0]}:S.next(x);a&&(b.value=a(b.value));let{done:w}=b;!m&&u!==null&&(w=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&w);return L&&i!==void 0&&(b.value=_c(l,this.options,i)),k&&k(b.value),L&&this.finish(),b}get duration(){const{resolved:t}=this;return t?lr(t.calculatedDuration):0}get time(){return lr(this.currentTime)}set time(t){t=ar(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=lr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=uP,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const fP=new Set(["opacity","clipPath","filter","transform"]);function dP(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=nw(a,i);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const pP=em(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Eu=10,mP=2e4;function gP(e){return mm(e.type)||e.type==="spring"||!tw(e.ease)}function yP(e,t){const n=new Am({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<mP;)r=n.sample(o),i.push(r.value),o+=Eu;return{times:void 0,keyframes:i,duration:o-Eu,ease:"linear"}}const Ow={anticipate:pw,backInOut:dw,circInOut:gw};function xP(e){return e in Ow}class y0 extends Fw{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new Pw(o,(s,a)=>this.onKeyframesResolved(s,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:s,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof o=="string"&&Su()&&xP(o)&&(o=Ow[o]),gP(this.options)){const{onComplete:h,onUpdate:f,motionValue:d,element:g,...y}=this.options,k=yP(t,y);t=k.keyframes,t.length===1&&(t[1]=t[0]),r=k.duration,i=k.times,o=k.ease,s="keyframes"}const c=dP(a.owner.current,l,t,{...this.options,duration:r,times:i,ease:o});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(t0(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:h}=this.options;a.set(_c(t,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:i,type:s,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return lr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return lr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ar(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Wt;const{animation:r}=n;t0(r,t)}return Wt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:h,element:f,...d}=this.options,g=new Am({...d,keyframes:r,duration:i,type:o,ease:s,times:a,isGenerator:!0}),y=ar(this.time);u.setWithVelocity(g.sample(y-Eu).value,g.sample(y).value,Eu)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:s,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return pP()&&r&&fP.has(r)&&!l&&!u&&!i&&o!=="mirror"&&s!==0&&a!=="inertia"}}const vP={type:"spring",stiffness:500,damping:25,restSpeed:10},CP=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),_P={type:"keyframes",duration:.8},wP={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},kP=(e,{keyframes:t})=>t.length>2?_P:Pi.has(e)?e.startsWith("scale")?CP(t[1]):vP:wP;function SP({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Lm=(e,t,n,r={},i,o)=>s=>{const a=pm(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-ar(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};SP(a)||(c={...c,...kP(e,c)}),c.duration&&(c.duration=ar(c.duration)),c.repeatDelay&&(c.repeatDelay=ar(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const f=_c(c.keyframes,a);if(f!==void 0)return be.update(()=>{c.onUpdate(f),c.onComplete()}),new UA([])}return!o&&y0.supports(c)?new y0(c):new Am(c)};function TP({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Rw(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const h in l){const f=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),d=l[h];if(d===void 0||c&&TP(c,h))continue;const g={delay:n,...pm(s||{},h)};let y=!1;if(window.MotionHandoffAnimation){const p=lw(e);if(p){const m=window.MotionHandoffAnimation(p,h,be);m!==null&&(g.startTime=m,y=!0)}}ad(e,h),f.start(Lm(h,f,d,e.shouldReduceMotion&&sw.has(h)?{type:!1}:g,e,y));const k=f.animation;k&&u.push(k)}return a&&Promise.all(u).then(()=>{be.update(()=>{a&&rL(e,a)})}),u}function pd(e,t,n={}){var r;const i=Cc(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const s=i?()=>Promise.all(Rw(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:f}=o;return bP(e,t,c+u,h,f,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function bP(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(EP).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(pd(u,t,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function EP(e,t){return e.sortNodePosition(t)}function AP(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>pd(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=pd(e,t,n);else{const i=typeof t=="function"?Cc(e,t,n.custom):t;r=Promise.all(Rw(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const LP=nm.length;function zw(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?zw(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<LP;n++){const r=nm[n],i=e.props[r];(fa(i)||i===!1)&&(t[r]=i)}return t}const PP=[...tm].reverse(),FP=tm.length;function BP(e){return t=>Promise.all(t.map(({animation:n,options:r})=>AP(e,n,r)))}function MP(e){let t=BP(e),n=x0(),r=!0;const i=l=>(u,c)=>{var h;const f=Cc(e,c,l==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:d,transitionEnd:g,...y}=f;u={...u,...y,...g}}return u};function o(l){t=l(e)}function s(l){const{props:u}=e,c=zw(e.parent)||{},h=[],f=new Set;let d={},g=1/0;for(let k=0;k<FP;k++){const p=PP[k],m=n[p],x=u[p]!==void 0?u[p]:c[p],S=fa(x),b=p===l?m.isActive:null;b===!1&&(g=k);let w=x===c[p]&&x!==u[p]&&S;if(w&&r&&e.manuallyAnimateOnMount&&(w=!1),m.protectedKeys={...d},!m.isActive&&b===null||!x&&!m.prevProp||xc(x)||typeof x=="boolean")continue;const L=NP(m.prevProp,x);let P=L||p===l&&m.isActive&&!w&&S||k>g&&S,W=!1;const D=Array.isArray(x)?x:[x];let B=D.reduce(i(p),{});b===!1&&(B={});const{prevResolvedValues:Y={}}=m,ae={...Y,...B},H=O=>{P=!0,f.has(O)&&(W=!0,f.delete(O)),m.needsAnimating[O]=!0;const A=e.getValue(O);A&&(A.liveStyle=!1)};for(const O in ae){const A=B[O],M=Y[O];if(d.hasOwnProperty(O))continue;let v=!1;id(A)&&id(M)?v=!Z_(A,M):v=A!==M,v?A!=null?H(O):f.add(O):A!==void 0&&f.has(O)?H(O):m.protectedKeys[O]=!0}m.prevProp=x,m.prevResolvedValues=B,m.isActive&&(d={...d,...B}),r&&e.blockInitialAnimation&&(P=!1),P&&(!(w&&L)||W)&&h.push(...D.map(O=>({animation:O,options:{type:p}})))}if(f.size){const k={};f.forEach(p=>{const m=e.getBaseTarget(p),x=e.getValue(p);x&&(x.liveStyle=!0),k[p]=m??null}),h.push({animation:k})}let y=!!h.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(h):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var d;return(d=f.animationState)===null||d===void 0?void 0:d.setActive(l,u)}),n[l].isActive=u;const h=s(l);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=x0(),r=!0}}}function NP(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Z_(t,e):!1}function ni(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function x0(){return{animate:ni(!0),whileInView:ni(),whileHover:ni(),whileTap:ni(),whileDrag:ni(),whileFocus:ni(),exit:ni()}}class Kr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class IP extends Kr{constructor(t){super(t),t.animationState||(t.animationState=MP(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();xc(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let DP=0;class OP extends Kr{constructor(){super(...arguments),this.id=DP++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const RP={animation:{Feature:IP},exit:{Feature:OP}};function ga(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Na(e){return{point:{x:e.pageX,y:e.pageY}}}const zP=e=>t=>ym(t)&&e(t,Na(t));function Os(e,t,n,r){return ga(e,t,zP(n),r)}const v0=(e,t)=>Math.abs(e-t);function jP(e,t){const n=v0(e.x,t.x),r=v0(e.y,t.y);return Math.sqrt(n**2+r**2)}class jw{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Ah(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=jP(h.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:g}=h,{timestamp:y}=tt;this.history.push({...g,timestamp:y});const{onStart:k,onMove:p}=this.handlers;f||(k&&k(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Eh(f,this.transformPagePoint),be.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:d,onSessionEnd:g,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=Ah(h.type==="pointercancel"?this.lastMoveEventInfo:Eh(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(h,k),g&&g(h,k)},!ym(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Na(t),a=Eh(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=tt;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Ah(a,this.history)),this.removeListeners=Ma(Os(this.contextWindow,"pointermove",this.handlePointerMove),Os(this.contextWindow,"pointerup",this.handlePointerUp),Os(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Vr(this.updatePoint)}}function Eh(e,t){return t?{point:t(e.point)}:e}function C0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ah({point:e},t){return{point:e,delta:C0(e,$w(t)),offset:C0(e,$P(t)),velocity:VP(t,.1)}}function $P(e){return e[0]}function $w(e){return e[e.length-1]}function VP(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=$w(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ar(t)));)n--;if(!r)return{x:0,y:0};const o=lr(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const Vw=1e-4,UP=1-Vw,qP=1+Vw,Uw=.01,HP=0-Uw,WP=0+Uw;function Gt(e){return e.max-e.min}function YP(e,t,n){return Math.abs(e-t)<=n}function _0(e,t,n,r=.5){e.origin=r,e.originPoint=Pe(t.min,t.max,e.origin),e.scale=Gt(n)/Gt(t),e.translate=Pe(n.min,n.max,e.origin)-e.originPoint,(e.scale>=UP&&e.scale<=qP||isNaN(e.scale))&&(e.scale=1),(e.translate>=HP&&e.translate<=WP||isNaN(e.translate))&&(e.translate=0)}function Rs(e,t,n,r){_0(e.x,t.x,n.x,r?r.originX:void 0),_0(e.y,t.y,n.y,r?r.originY:void 0)}function w0(e,t,n){e.min=n.min+t.min,e.max=e.min+Gt(t)}function GP(e,t,n){w0(e.x,t.x,n.x),w0(e.y,t.y,n.y)}function k0(e,t,n){e.min=t.min-n.min,e.max=e.min+Gt(t)}function zs(e,t,n){k0(e.x,t.x,n.x),k0(e.y,t.y,n.y)}function KP(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Pe(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Pe(n,e,r.max):Math.min(e,n)),e}function S0(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function XP(e,{top:t,left:n,bottom:r,right:i}){return{x:S0(e.x,n,i),y:S0(e.y,t,r)}}function T0(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function QP(e,t){return{x:T0(e.x,t.x),y:T0(e.y,t.y)}}function ZP(e,t){let n=.5;const r=Gt(e),i=Gt(t);return i>r?n=Eo(t.min,t.max-r,e.min):r>i&&(n=Eo(e.min,e.max-i,t.min)),pr(0,1,n)}function JP(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const md=.35;function eF(e=md){return e===!1?e=0:e===!0&&(e=md),{x:b0(e,"left","right"),y:b0(e,"top","bottom")}}function b0(e,t,n){return{min:E0(e,t),max:E0(e,n)}}function E0(e,t){return typeof e=="number"?e:e[t]||0}const A0=()=>({translate:0,scale:1,origin:0,originPoint:0}),ro=()=>({x:A0(),y:A0()}),L0=()=>({min:0,max:0}),Re=()=>({x:L0(),y:L0()});function en(e){return[e("x"),e("y")]}function qw({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function tF({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function nF(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Lh(e){return e===void 0||e===1}function gd({scale:e,scaleX:t,scaleY:n}){return!Lh(e)||!Lh(t)||!Lh(n)}function oi(e){return gd(e)||Hw(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Hw(e){return P0(e.x)||P0(e.y)}function P0(e){return e&&e!=="0%"}function Au(e,t,n){const r=e-n,i=t*r;return n+i}function F0(e,t,n,r,i){return i!==void 0&&(e=Au(e,i,r)),Au(e,n,r)+t}function yd(e,t=0,n=1,r,i){e.min=F0(e.min,t,n,r,i),e.max=F0(e.max,t,n,r,i)}function Ww(e,{x:t,y:n}){yd(e.x,t.translate,t.scale,t.originPoint),yd(e.y,n.translate,n.scale,n.originPoint)}const B0=.999999999999,M0=1.0000000000001;function rF(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&oo(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Ww(e,s)),r&&oi(o.latestValues)&&oo(e,o.latestValues))}t.x<M0&&t.x>B0&&(t.x=1),t.y<M0&&t.y>B0&&(t.y=1)}function io(e,t){e.min=e.min+t,e.max=e.max+t}function N0(e,t,n,r,i=.5){const o=Pe(e.min,e.max,i);yd(e,t,n,o,r)}function oo(e,t){N0(e.x,t.x,t.scaleX,t.scale,t.originX),N0(e.y,t.y,t.scaleY,t.scale,t.originY)}function Yw(e,t){return qw(nF(e.getBoundingClientRect(),t))}function iF(e,t,n){const r=Yw(e,n),{scroll:i}=t;return i&&(io(r.x,i.offset.x),io(r.y,i.offset.y)),r}const Gw=({current:e})=>e?e.ownerDocument.defaultView:null,oF=new WeakMap;class sF{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Re(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Na(c).point)},o=(c,h)=>{const{drag:f,dragPropagation:d,onDragStart:g}=this.getProps();if(f&&!d&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ZA(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),en(k=>{let p=this.getAxisMotionValue(k).get()||0;if($n.test(p)){const{projection:m}=this.visualElement;if(m&&m.layout){const x=m.layout.layoutBox[k];x&&(p=Gt(x)*(parseFloat(p)/100))}}this.originPoint[k]=p}),g&&be.postRender(()=>g(c,h)),ad(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},s=(c,h)=>{const{dragPropagation:f,dragDirectionLock:d,onDirectionLock:g,onDrag:y}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:k}=h;if(d&&this.currentDirection===null){this.currentDirection=aF(k),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",h.point,k),this.updateAxis("y",h.point,k),this.visualElement.render(),y&&y(c,h)},a=(c,h)=>this.stop(c,h),l=()=>en(c=>{var h;return this.getAnimationState(c)==="paused"&&((h=this.getAxisMotionValue(c).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new jw(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Gw(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&be.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!dl(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=KP(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&to(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=XP(i.layoutBox,n):this.constraints=!1,this.elastic=eF(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&en(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=JP(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!to(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=iF(r,i.root,this.visualElement.getTransformPagePoint());let s=QP(i.layout.layoutBox,o);if(n){const a=n(tF(s));this.hasMutatedConstraints=!!a,a&&(s=qw(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=en(c=>{if(!dl(c,n,this.currentDirection))return;let h=l&&l[c]||{};s&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,g={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ad(this.visualElement,t),r.start(Lm(t,r,0,n,this.visualElement,!1))}stopAnimation(){en(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){en(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){en(n=>{const{drag:r}=this.getProps();if(!dl(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-Pe(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!to(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};en(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();i[s]=ZP({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),en(s=>{if(!dl(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(Pe(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;oF.set(this.visualElement,this);const t=this.visualElement.current,n=Os(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();to(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),be.read(r);const s=ga(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(en(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=md,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function dl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function aF(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class lF extends Kr{constructor(t){super(t),this.removeGroupControls=Wt,this.removeListeners=Wt,this.controls=new sF(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Wt}unmount(){this.removeGroupControls(),this.removeListeners()}}const I0=e=>(t,n)=>{e&&be.postRender(()=>e(t,n))};class uF extends Kr{constructor(){super(...arguments),this.removePointerDownListener=Wt}onPointerDown(t){this.session=new jw(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Gw(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:I0(t),onStart:I0(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&be.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=Os(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const zl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function D0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ss={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ne.test(e))e=parseFloat(e);else return e;const n=D0(e,t.target.x),r=D0(e,t.target.y);return`${n}% ${r}%`}},cF={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ur.parse(e);if(i.length>5)return r;const o=Ur.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const u=Pe(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class hF extends R.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;FA(fF),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),zl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||be.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),im.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Kw(e){const[t,n]=P_(),r=R.useContext(Xp);return C.jsx(hF,{...e,layoutGroup:r,switchLayoutGroup:R.useContext(z_),isPresent:t,safeToRemove:n})}const fF={borderRadius:{...ss,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ss,borderTopRightRadius:ss,borderBottomLeftRadius:ss,borderBottomRightRadius:ss,boxShadow:cF};function dF(e,t,n){const r=ft(e)?e:pa(e);return r.start(Lm("",r,t,n)),r.animation}function pF(e){return e instanceof SVGElement&&e.tagName!=="svg"}const mF=(e,t)=>e.depth-t.depth;class gF{constructor(){this.children=[],this.isDirty=!1}add(t){xm(this.children,t),this.isDirty=!0}remove(t){vm(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(mF),this.isDirty=!1,this.children.forEach(t)}}function yF(e,t){const n=Vn.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Vr(r),e(o-t))};return be.read(r,!0),()=>Vr(r)}const Xw=["TopLeft","TopRight","BottomLeft","BottomRight"],xF=Xw.length,O0=e=>typeof e=="string"?parseFloat(e):e,R0=e=>typeof e=="number"||ne.test(e);function vF(e,t,n,r,i,o){i?(e.opacity=Pe(0,n.opacity!==void 0?n.opacity:1,CF(r)),e.opacityExit=Pe(t.opacity!==void 0?t.opacity:1,0,_F(r))):o&&(e.opacity=Pe(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<xF;s++){const a=`border${Xw[s]}Radius`;let l=z0(t,a),u=z0(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||R0(l)===R0(u)?(e[a]=Math.max(Pe(O0(l),O0(u),r),0),($n.test(u)||$n.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=Pe(t.rotate||0,n.rotate||0,r))}function z0(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const CF=Qw(0,.5,mw),_F=Qw(.5,.95,Wt);function Qw(e,t,n){return r=>r<e?0:r>t?1:n(Eo(e,t,r))}function j0(e,t){e.min=t.min,e.max=t.max}function Zt(e,t){j0(e.x,t.x),j0(e.y,t.y)}function $0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function V0(e,t,n,r,i){return e-=t,e=Au(e,1/n,r),i!==void 0&&(e=Au(e,1/i,r)),e}function wF(e,t=0,n=1,r=.5,i,o=e,s=e){if($n.test(t)&&(t=parseFloat(t),t=Pe(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Pe(o.min,o.max,r);e===o&&(a-=t),e.min=V0(e.min,t,n,a,i),e.max=V0(e.max,t,n,a,i)}function U0(e,t,[n,r,i],o,s){wF(e,t[n],t[r],t[i],t.scale,o,s)}const kF=["x","scaleX","originX"],SF=["y","scaleY","originY"];function q0(e,t,n,r){U0(e.x,t,kF,n?n.x:void 0,r?r.x:void 0),U0(e.y,t,SF,n?n.y:void 0,r?r.y:void 0)}function H0(e){return e.translate===0&&e.scale===1}function Zw(e){return H0(e.x)&&H0(e.y)}function W0(e,t){return e.min===t.min&&e.max===t.max}function TF(e,t){return W0(e.x,t.x)&&W0(e.y,t.y)}function Y0(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Jw(e,t){return Y0(e.x,t.x)&&Y0(e.y,t.y)}function G0(e){return Gt(e.x)/Gt(e.y)}function K0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class bF{constructor(){this.members=[]}add(t){xm(this.members,t),t.scheduleRender()}remove(t){if(vm(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function EF(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:f,skewX:d,skewY:g}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),h&&(r+=`rotateX(${h}deg) `),f&&(r+=`rotateY(${f}deg) `),d&&(r+=`skewX(${d}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const si={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ws=typeof window<"u"&&window.MotionDebug!==void 0,Ph=["","X","Y","Z"],AF={visibility:"hidden"},X0=1e3;let LF=0;function Fh(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ek(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=lw(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",be,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ek(r)}function tk({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=LF++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ws&&(si.totalNodes=si.resolvedTargetDeltas=si.recalculatedProjection=0),this.nodes.forEach(BF),this.nodes.forEach(OF),this.nodes.forEach(RF),this.nodes.forEach(MF),ws&&window.MotionDebug.record(si)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new gF)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Cm),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=pF(s),this.instance=s;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),e){let h;const f=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=yF(f,250),zl.hasAnimatedSinceResize&&(zl.hasAnimatedSinceResize=!1,this.nodes.forEach(Z0))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||UF,{onLayoutAnimationStart:k,onLayoutAnimationComplete:p}=c.getProps(),m=!this.targetLayout||!Jw(this.targetLayout,g)||d,x=!f&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||f&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,x);const S={...pm(y,"layout"),onPlay:k,onComplete:p};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||Z0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Vr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(zF),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ek(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const h=this.path[c];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Q0);return}this.isUpdating||this.nodes.forEach(IF),this.isUpdating=!1,this.nodes.forEach(DF),this.nodes.forEach(PF),this.nodes.forEach(FF),this.clearAllSnapshots();const a=Vn.now();tt.delta=pr(0,1e3/60,a-tt.timestamp),tt.timestamp=a,tt.isProcessing=!0,_h.update.process(tt),_h.preRender.process(tt),_h.render.process(tt),tt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,im.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(NF),this.sharedNodes.forEach(jF)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,be.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){be.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Re(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Zw(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&(a||oi(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),qF(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:a}=this.options;if(!a)return Re();const l=a.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(HF))){const{scroll:c}=this.root;c&&(io(l.x,c.offset.x),io(l.y,c.offset.y))}return l}removeElementScroll(s){var a;const l=Re();if(Zt(l,s),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:h,options:f}=c;c!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&Zt(l,s),io(l.x,h.offset.x),io(l.y,h.offset.y))}return l}applyTransform(s,a=!1){const l=Re();Zt(l,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&oo(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),oi(c.latestValues)&&oo(l,c.latestValues)}return oi(this.latestValues)&&oo(l,this.latestValues),l}removeTransform(s){const a=Re();Zt(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!oi(u.latestValues))continue;gd(u.latestValues)&&u.updateSnapshot();const c=Re(),h=u.measurePageBox();Zt(c,h),q0(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return oi(this.latestValues)&&q0(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:f}=this.options;if(!(!this.layout||!(h||f))){if(this.resolvedRelativeTargetAt=tt.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Re(),this.relativeTargetOrigin=Re(),zs(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),Zt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Re(),this.targetWithTransforms=Re()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),GP(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Zt(this.target,this.layout.layoutBox),Ww(this.target,this.targetDelta)):Zt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const d=this.getClosestProjectingParent();d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Re(),this.relativeTargetOrigin=Re(),zs(this.relativeTargetOrigin,this.target,d.target),Zt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ws&&si.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||gd(this.parent.latestValues)||Hw(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===tt.timestamp&&(u=!1),u)return;const{layout:c,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||h))return;Zt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;rF(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Re());const{target:g}=a;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():($0(this.prevProjectionDelta.x,this.projectionDelta.x),$0(this.prevProjectionDelta.y,this.projectionDelta.y)),Rs(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!K0(this.projectionDelta.x,this.prevProjectionDelta.x)||!K0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),ws&&si.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ro(),this.projectionDelta=ro(),this.projectionDeltaWithTransform=ro()}setAnimationOrigin(s,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},h=ro();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=Re(),d=l?l.source:void 0,g=this.layout?this.layout.source:void 0,y=d!==g,k=this.getStack(),p=!k||k.members.length<=1,m=!!(y&&!p&&this.options.crossfade===!0&&!this.path.some(VF));this.animationProgress=0;let x;this.mixTargetDelta=S=>{const b=S/1e3;J0(h.x,s.x,b),J0(h.y,s.y,b),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(zs(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),$F(this.relativeTarget,this.relativeTargetOrigin,f,b),x&&TF(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Re()),Zt(x,this.relativeTarget)),y&&(this.animationValues=c,vF(c,u,this.latestValues,b,m,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Vr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=be.update(()=>{zl.hasAnimatedSinceResize=!0,this.currentAnimation=dF(0,X0,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(X0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&nk(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Re();const h=Gt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+h;const f=Gt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Zt(a,l),oo(a,c),Rs(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new bF),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Fh("z",s,u,this.animationValues);for(let c=0;c<Ph.length;c++)Fh(`rotate${Ph[c]}`,s,u,this.animationValues),Fh(`skew${Ph[c]}`,s,u,this.animationValues);s.render();for(const c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return AF;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Ol(s==null?void 0:s.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=Ol(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!oi(this.latestValues)&&(y.transform=c?c({},""):"none",this.hasProjected=!1),y}const f=h.animationValues||h.latestValues;this.applyTransformsToTarget(),u.transform=EF(this.projectionDeltaWithTransform,this.treeScale,f),c&&(u.transform=c(f,u.transform));const{x:d,y:g}=this.projectionDelta;u.transformOrigin=`${d.origin*100}% ${g.origin*100}% 0`,h.animationValues?u.opacity=h===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=h===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const y in ku){if(f[y]===void 0)continue;const{correct:k,applyTo:p}=ku[y],m=u.transform==="none"?f[y]:k(f[y],h);if(p){const x=p.length;for(let S=0;S<x;S++)u[p[S]]=m}else u[y]=m}return this.options.layoutId&&(u.pointerEvents=h===this?Ol(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Q0),this.root.sharedNodes.clear()}}}function PF(e){e.updateLayout()}function FF(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?en(h=>{const f=s?n.measuredBox[h]:n.layoutBox[h],d=Gt(f);f.min=r[h].min,f.max=f.min+d}):nk(o,n.layoutBox,r)&&en(h=>{const f=s?n.measuredBox[h]:n.layoutBox[h],d=Gt(r[h]);f.max=f.min+d,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+d)});const a=ro();Rs(a,r,n.layoutBox);const l=ro();s?Rs(l,e.applyTransform(i,!0),n.measuredBox):Rs(l,r,n.layoutBox);const u=!Zw(a);let c=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const g=Re();zs(g,n.layoutBox,f.layoutBox);const y=Re();zs(y,r,d.layoutBox),Jw(g,y)||(c=!0),h.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=g,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function BF(e){ws&&si.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function MF(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function NF(e){e.clearSnapshot()}function Q0(e){e.clearMeasurements()}function IF(e){e.isLayoutDirty=!1}function DF(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Z0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function OF(e){e.resolveTargetDelta()}function RF(e){e.calcProjection()}function zF(e){e.resetSkewAndRotation()}function jF(e){e.removeLeadSnapshot()}function J0(e,t,n){e.translate=Pe(t.translate,0,n),e.scale=Pe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ex(e,t,n,r){e.min=Pe(t.min,n.min,r),e.max=Pe(t.max,n.max,r)}function $F(e,t,n,r){ex(e.x,t.x,n.x,r),ex(e.y,t.y,n.y,r)}function VF(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const UF={duration:.45,ease:[.4,0,.1,1]},tx=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),nx=tx("applewebkit/")&&!tx("chrome/")?Math.round:Wt;function rx(e){e.min=nx(e.min),e.max=nx(e.max)}function qF(e){rx(e.x),rx(e.y)}function nk(e,t,n){return e==="position"||e==="preserve-aspect"&&!YP(G0(t),G0(n),.2)}function HF(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const WF=tk({attachResizeListener:(e,t)=>ga(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Bh={current:void 0},rk=tk({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Bh.current){const e=new WF({});e.mount(window),e.setOptions({layoutScroll:!0}),Bh.current=e}return Bh.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),YF={pan:{Feature:uF},drag:{Feature:lF,ProjectionNode:rk,MeasureLayout:Kw}};function ix(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&be.postRender(()=>o(t,Na(t)))}class GF extends Kr{mount(){const{current:t}=this.node;t&&(this.unmount=YA(t,n=>(ix(this.node,n,"Start"),r=>ix(this.node,r,"End"))))}unmount(){}}class KF extends Kr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ma(ga(this.node.current,"focus",()=>this.onFocus()),ga(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ox(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&be.postRender(()=>o(t,Na(t)))}class XF extends Kr{mount(){const{current:t}=this.node;t&&(this.unmount=QA(t,n=>(ox(this.node,n,"Start"),(r,{success:i})=>ox(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const xd=new WeakMap,Mh=new WeakMap,QF=e=>{const t=xd.get(e.target);t&&t(e)},ZF=e=>{e.forEach(QF)};function JF({root:e,...t}){const n=e||document;Mh.has(n)||Mh.set(n,{});const r=Mh.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ZF,{root:e,...t})),r[i]}function e3(e,t,n){const r=JF(t);return xd.set(e,n),r.observe(e),()=>{xd.delete(e),r.unobserve(e)}}const t3={some:0,all:1};class n3 extends Kr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:t3[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),f=u?c:h;f&&f(l)};return e3(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(r3(t,n))&&this.startObserver()}unmount(){}}function r3({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const i3={inView:{Feature:n3},tap:{Feature:XF},focus:{Feature:KF},hover:{Feature:GF}},o3={layout:{ProjectionNode:rk,MeasureLayout:Kw}},vd={current:null},ik={current:!1};function s3(){if(ik.current=!0,!!Jp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>vd.current=e.matches;e.addListener(t),t()}else vd.current=!1}const a3=[...Lw,ut,Ur],l3=e=>a3.find(Aw(e)),sx=new WeakMap;function u3(e,t,n){for(const r in t){const i=t[r],o=n[r];if(ft(i))e.addValue(r,i);else if(ft(o))e.addValue(r,pa(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,pa(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ax=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class c3{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=bm,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=Vn.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,be.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:c}=s;this.onUpdate=c,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=vc(n),this.isVariantNode=O_(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const g=f[d];l[d]!==void 0&&ft(g)&&g.set(l[d],!1)}}mount(t){this.current=t,sx.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),ik.current||s3(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:vd.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){sx.delete(this.current),this.projection&&this.projection.unmount(),Vr(this.notifyUpdate),Vr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Pi.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&be.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ao){const n=Ao[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Re()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<ax.length;r++){const i=ax[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,s=t[o];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=u3(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=pa(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(bw(i)||yw(i))?i=parseFloat(i):!l3(i)&&Ur.test(n)&&(i=kw(t,n)),this.setBaseTarget(t,ft(i)?i.get():i)),ft(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const s=sm(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(i=s[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ft(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Cm),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class ok extends c3{constructor(){super(...arguments),this.KeyframeResolver=Pw}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ft(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function h3(e){return window.getComputedStyle(e)}class f3 extends ok{constructor(){super(...arguments),this.type="html",this.renderInstance=W_}readValueFromInstance(t,n){if(Pi.has(n)){const r=Tm(n);return r&&r.default||0}else{const r=h3(t),i=(U_(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Yw(t,n)}build(t,n,r){um(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return dm(t,n,r)}}class d3 extends ok{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Re}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Pi.has(n)){const r=Tm(n);return r&&r.default||0}return n=Y_.has(n)?n:rm(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return X_(t,n,r)}build(t,n,r){cm(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){G_(t,n,r,i)}mount(t){this.isSVGTag=fm(t.tagName),super.mount(t)}}const p3=(e,t)=>om(e)?new d3(t):new f3(t,{allowProjection:e!==R.Fragment}),m3=jA({...RP,...i3,...YF,...o3},p3),ve=tA(m3);/**
50
+ * @license lucide-react v0.344.0 - ISC
51
+ *
52
+ * This source code is licensed under the ISC license.
53
+ * See the LICENSE file in the root directory of this source tree.
54
+ */var g3={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
55
+ * @license lucide-react v0.344.0 - ISC
56
+ *
57
+ * This source code is licensed under the ISC license.
58
+ * See the LICENSE file in the root directory of this source tree.
59
+ */const y3=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),Ke=(e,t)=>{const n=R.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:a="",children:l,...u},c)=>R.createElement("svg",{ref:c,...g3,width:i,height:i,stroke:r,strokeWidth:s?Number(o)*24/Number(i):o,className:["lucide",`lucide-${y3(e)}`,a].join(" "),...u},[...t.map(([h,f])=>R.createElement(h,f)),...Array.isArray(l)?l:[l]]));return n.displayName=`${e}`,n};/**
60
+ * @license lucide-react v0.344.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */const Pm=Ke("Activity",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]);/**
65
+ * @license lucide-react v0.344.0 - ISC
66
+ *
67
+ * This source code is licensed under the ISC license.
68
+ * See the LICENSE file in the root directory of this source tree.
69
+ */const x3=Ke("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
70
+ * @license lucide-react v0.344.0 - ISC
71
+ *
72
+ * This source code is licensed under the ISC license.
73
+ * See the LICENSE file in the root directory of this source tree.
74
+ */const v3=Ke("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
75
+ * @license lucide-react v0.344.0 - ISC
76
+ *
77
+ * This source code is licensed under the ISC license.
78
+ * See the LICENSE file in the root directory of this source tree.
79
+ */const Cd=Ke("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
80
+ * @license lucide-react v0.344.0 - ISC
81
+ *
82
+ * This source code is licensed under the ISC license.
83
+ * See the LICENSE file in the root directory of this source tree.
84
+ */const C3=Ke("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
85
+ * @license lucide-react v0.344.0 - ISC
86
+ *
87
+ * This source code is licensed under the ISC license.
88
+ * See the LICENSE file in the root directory of this source tree.
89
+ */const _3=Ke("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
90
+ * @license lucide-react v0.344.0 - ISC
91
+ *
92
+ * This source code is licensed under the ISC license.
93
+ * See the LICENSE file in the root directory of this source tree.
94
+ */const w3=Ke("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
95
+ * @license lucide-react v0.344.0 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */const k3=Ke("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
100
+ * @license lucide-react v0.344.0 - ISC
101
+ *
102
+ * This source code is licensed under the ISC license.
103
+ * See the LICENSE file in the root directory of this source tree.
104
+ */const S3=Ke("Hammer",[["path",{d:"m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9",key:"eefl8a"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"b7pghm"}]]);/**
105
+ * @license lucide-react v0.344.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const T3=Ke("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/**
110
+ * @license lucide-react v0.344.0 - ISC
111
+ *
112
+ * This source code is licensed under the ISC license.
113
+ * See the LICENSE file in the root directory of this source tree.
114
+ */const lx=Ke("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
115
+ * @license lucide-react v0.344.0 - ISC
116
+ *
117
+ * This source code is licensed under the ISC license.
118
+ * See the LICENSE file in the root directory of this source tree.
119
+ */const wc=Ke("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
120
+ * @license lucide-react v0.344.0 - ISC
121
+ *
122
+ * This source code is licensed under the ISC license.
123
+ * See the LICENSE file in the root directory of this source tree.
124
+ */const sk=Ke("Map",[["polygon",{points:"3 6 9 3 15 6 21 3 21 18 15 21 9 18 3 21",key:"ok2ie8"}],["line",{x1:"9",x2:"9",y1:"3",y2:"18",key:"w34qz5"}],["line",{x1:"15",x2:"15",y1:"6",y2:"21",key:"volv9a"}]]);/**
125
+ * @license lucide-react v0.344.0 - ISC
126
+ *
127
+ * This source code is licensed under the ISC license.
128
+ * See the LICENSE file in the root directory of this source tree.
129
+ */const b3=Ke("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
130
+ * @license lucide-react v0.344.0 - ISC
131
+ *
132
+ * This source code is licensed under the ISC license.
133
+ * See the LICENSE file in the root directory of this source tree.
134
+ */const E3=Ke("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
135
+ * @license lucide-react v0.344.0 - ISC
136
+ *
137
+ * This source code is licensed under the ISC license.
138
+ * See the LICENSE file in the root directory of this source tree.
139
+ */const ak=Ke("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/**
140
+ * @license lucide-react v0.344.0 - ISC
141
+ *
142
+ * This source code is licensed under the ISC license.
143
+ * See the LICENSE file in the root directory of this source tree.
144
+ */const A3=Ke("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/**
145
+ * @license lucide-react v0.344.0 - ISC
146
+ *
147
+ * This source code is licensed under the ISC license.
148
+ * See the LICENSE file in the root directory of this source tree.
149
+ */const L3=Ke("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
150
+ * @license lucide-react v0.344.0 - ISC
151
+ *
152
+ * This source code is licensed under the ISC license.
153
+ * See the LICENSE file in the root directory of this source tree.
154
+ */const _d=Ke("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]);function P3({children:e,currentView:t,onViewChange:n}){const r=[{id:"soul",label:"The Soul",icon:Cd,description:"Project Memory"},{id:"map",label:"The Map",icon:sk,description:"Architecture"},{id:"pulse",label:"The Pulse",icon:Pm,description:"Oracle Feed"}];return C.jsxs("div",{className:"min-h-screen bg-vg-bg relative overflow-hidden",children:[C.jsx("div",{className:"fixed inset-0 gradient-mesh pointer-events-none"}),C.jsx("div",{className:"fixed inset-0 pointer-events-none opacity-[0.02]",style:{backgroundImage:`linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
155
+ linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px)`,backgroundSize:"64px 64px"}}),C.jsxs("aside",{className:"fixed left-0 top-0 h-full w-60 bg-white/[0.02] backdrop-blur-2xl border-r border-white/[0.06] z-50",children:[C.jsx("div",{className:"p-5 border-b border-white/[0.06]",children:C.jsxs("div",{className:"flex items-center gap-2.5",children:[C.jsxs("div",{className:"relative",children:[C.jsx("div",{className:"w-8 h-8 rounded-md bg-gradient-to-br from-vg-indigo to-vg-violet flex items-center justify-center",children:C.jsx(ak,{className:"w-4 h-4 text-white"})}),C.jsx("div",{className:"absolute inset-0 rounded-md bg-gradient-to-br from-vg-indigo to-vg-violet blur-lg opacity-40"})]}),C.jsxs("div",{children:[C.jsx("h1",{className:"text-base font-semibold text-vg-text tracking-tight",children:"VibeGuard"}),C.jsx("p",{className:"text-[10px] text-vg-textMuted uppercase tracking-widest",children:"The Librarian"})]})]})}),C.jsxs("nav",{className:"p-3 mt-2",children:[C.jsx("p",{className:"px-3 mb-2 text-[10px] font-medium text-vg-textDim uppercase tracking-widest",children:"Views"}),r.map(i=>{const o=i.icon,s=t===i.id;return C.jsxs(ve.button,{onClick:()=>n(i.id),whileHover:{x:2},whileTap:{scale:.98},className:`relative w-full flex items-center gap-3 px-3 py-2.5 mb-1 rounded-md transition-all duration-200 group ${s?"bg-white/[0.06] text-vg-text":"text-vg-textSecondary hover:text-vg-text hover:bg-white/[0.03]"}`,children:[s&&C.jsx(ve.div,{layoutId:"activeIndicator",className:"absolute left-0 top-1/2 -translate-y-1/2 w-0.5 h-5 bg-gradient-to-b from-vg-indigo to-vg-violet rounded-r-full",transition:{type:"spring",stiffness:400,damping:30}}),C.jsx(o,{size:16,className:`transition-colors duration-200 ${s?"text-vg-indigo":"text-vg-textMuted group-hover:text-vg-indigoLight"}`}),C.jsxs("div",{className:"flex flex-col items-start",children:[C.jsx("span",{className:"text-[13px] font-medium",children:i.label}),C.jsx("span",{className:"text-[10px] text-vg-textDim",children:i.description})]})]},i.id)})]}),C.jsx("div",{className:"absolute bottom-0 left-0 right-0 p-4 border-t border-white/[0.06]",children:C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsxs("div",{className:"relative",children:[C.jsx("div",{className:"w-2 h-2 rounded-full bg-vg-success"}),C.jsx("div",{className:"absolute inset-0 w-2 h-2 rounded-full bg-vg-success animate-ping opacity-75"})]}),C.jsx("span",{className:"text-[11px] text-vg-textMuted",children:"System Online"})]})})]}),C.jsx("main",{className:"ml-60 min-h-screen relative z-10",children:C.jsx("div",{className:"p-6 lg:p-8",children:e})})]})}function F3(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const B3=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,M3=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,N3={};function ux(e,t){return(N3.jsx?M3:B3).test(e)}const I3=/[ \t\n\f\r]/g;function D3(e){return typeof e=="object"?e.type==="text"?cx(e.value):!1:cx(e)}function cx(e){return e.replace(I3,"")===""}class Ia{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ia.prototype.normal={};Ia.prototype.property={};Ia.prototype.space=void 0;function lk(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Ia(n,r,t)}function wd(e){return e.toLowerCase()}class zt{constructor(t,n){this.attribute=n,this.property=t}}zt.prototype.attribute="";zt.prototype.booleanish=!1;zt.prototype.boolean=!1;zt.prototype.commaOrSpaceSeparated=!1;zt.prototype.commaSeparated=!1;zt.prototype.defined=!1;zt.prototype.mustUseProperty=!1;zt.prototype.number=!1;zt.prototype.overloadedBoolean=!1;zt.prototype.property="";zt.prototype.spaceSeparated=!1;zt.prototype.space=void 0;let O3=0;const le=Fi(),Ve=Fi(),kd=Fi(),j=Fi(),xe=Fi(),mo=Fi(),Vt=Fi();function Fi(){return 2**++O3}const Sd=Object.freeze(Object.defineProperty({__proto__:null,boolean:le,booleanish:Ve,commaOrSpaceSeparated:Vt,commaSeparated:mo,number:j,overloadedBoolean:kd,spaceSeparated:xe},Symbol.toStringTag,{value:"Module"})),Nh=Object.keys(Sd);class Fm extends zt{constructor(t,n,r,i){let o=-1;if(super(t,n),hx(this,"space",i),typeof r=="number")for(;++o<Nh.length;){const s=Nh[o];hx(this,Nh[o],(r&Sd[s])===Sd[s])}}}Fm.prototype.defined=!0;function hx(e,t,n){n&&(e[t]=n)}function Ho(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Fm(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[wd(r)]=r,n[wd(o.attribute)]=r}return new Ia(t,n,e.space)}const uk=Ho({properties:{ariaActiveDescendant:null,ariaAtomic:Ve,ariaAutoComplete:null,ariaBusy:Ve,ariaChecked:Ve,ariaColCount:j,ariaColIndex:j,ariaColSpan:j,ariaControls:xe,ariaCurrent:null,ariaDescribedBy:xe,ariaDetails:null,ariaDisabled:Ve,ariaDropEffect:xe,ariaErrorMessage:null,ariaExpanded:Ve,ariaFlowTo:xe,ariaGrabbed:Ve,ariaHasPopup:null,ariaHidden:Ve,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:xe,ariaLevel:j,ariaLive:null,ariaModal:Ve,ariaMultiLine:Ve,ariaMultiSelectable:Ve,ariaOrientation:null,ariaOwns:xe,ariaPlaceholder:null,ariaPosInSet:j,ariaPressed:Ve,ariaReadOnly:Ve,ariaRelevant:null,ariaRequired:Ve,ariaRoleDescription:xe,ariaRowCount:j,ariaRowIndex:j,ariaRowSpan:j,ariaSelected:Ve,ariaSetSize:j,ariaSort:null,ariaValueMax:j,ariaValueMin:j,ariaValueNow:j,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ck(e,t){return t in e?e[t]:t}function hk(e,t){return ck(e,t.toLowerCase())}const R3=Ho({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:mo,acceptCharset:xe,accessKey:xe,action:null,allow:null,allowFullScreen:le,allowPaymentRequest:le,allowUserMedia:le,alt:null,as:null,async:le,autoCapitalize:null,autoComplete:xe,autoFocus:le,autoPlay:le,blocking:xe,capture:null,charSet:null,checked:le,cite:null,className:xe,cols:j,colSpan:null,content:null,contentEditable:Ve,controls:le,controlsList:xe,coords:j|mo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:le,defer:le,dir:null,dirName:null,disabled:le,download:kd,draggable:Ve,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:le,formTarget:null,headers:xe,height:j,hidden:kd,high:j,href:null,hrefLang:null,htmlFor:xe,httpEquiv:xe,id:null,imageSizes:null,imageSrcSet:null,inert:le,inputMode:null,integrity:null,is:null,isMap:le,itemId:null,itemProp:xe,itemRef:xe,itemScope:le,itemType:xe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:le,low:j,manifest:null,max:null,maxLength:j,media:null,method:null,min:null,minLength:j,multiple:le,muted:le,name:null,nonce:null,noModule:le,noValidate:le,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:le,optimum:j,pattern:null,ping:xe,placeholder:null,playsInline:le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:le,referrerPolicy:null,rel:xe,required:le,reversed:le,rows:j,rowSpan:j,sandbox:xe,scope:null,scoped:le,seamless:le,selected:le,shadowRootClonable:le,shadowRootDelegatesFocus:le,shadowRootMode:null,shape:null,size:j,sizes:null,slot:null,span:j,spellCheck:Ve,src:null,srcDoc:null,srcLang:null,srcSet:null,start:j,step:null,style:null,tabIndex:j,target:null,title:null,translate:null,type:null,typeMustMatch:le,useMap:null,value:Ve,width:j,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:xe,axis:null,background:null,bgColor:null,border:j,borderColor:null,bottomMargin:j,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:le,declare:le,event:null,face:null,frame:null,frameBorder:null,hSpace:j,leftMargin:j,link:null,longDesc:null,lowSrc:null,marginHeight:j,marginWidth:j,noResize:le,noHref:le,noShade:le,noWrap:le,object:null,profile:null,prompt:null,rev:null,rightMargin:j,rules:null,scheme:null,scrolling:Ve,standby:null,summary:null,text:null,topMargin:j,valueType:null,version:null,vAlign:null,vLink:null,vSpace:j,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:le,disableRemotePlayback:le,prefix:null,property:null,results:j,security:null,unselectable:null},space:"html",transform:hk}),z3=Ho({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:Vt,accentHeight:j,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:j,amplitude:j,arabicForm:null,ascent:j,attributeName:null,attributeType:null,azimuth:j,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:j,by:null,calcMode:null,capHeight:j,className:xe,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:j,diffuseConstant:j,direction:null,display:null,dur:null,divisor:j,dominantBaseline:null,download:le,dx:null,dy:null,edgeMode:null,editable:null,elevation:j,enableBackground:null,end:null,event:null,exponent:j,externalResourcesRequired:null,fill:null,fillOpacity:j,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:mo,g2:mo,glyphName:mo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:j,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:j,horizOriginX:j,horizOriginY:j,id:null,ideographic:j,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:j,k:j,k1:j,k2:j,k3:j,k4:j,kernelMatrix:Vt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:j,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:j,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:j,overlineThickness:j,paintOrder:null,panose1:null,path:null,pathLength:j,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:xe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:j,pointsAtY:j,pointsAtZ:j,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Vt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Vt,rev:Vt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Vt,requiredFeatures:Vt,requiredFonts:Vt,requiredFormats:Vt,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:j,specularExponent:j,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:j,strikethroughThickness:j,string:null,stroke:null,strokeDashArray:Vt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:j,strokeOpacity:j,strokeWidth:null,style:null,surfaceScale:j,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Vt,tabIndex:j,tableValues:null,target:null,targetX:j,targetY:j,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Vt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:j,underlineThickness:j,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:j,values:null,vAlphabetic:j,vMathematical:j,vectorEffect:null,vHanging:j,vIdeographic:j,version:null,vertAdvY:j,vertOriginX:j,vertOriginY:j,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:j,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ck}),fk=Ho({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()}}),dk=Ho({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:hk}),pk=Ho({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),j3={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"},$3=/[A-Z]/g,fx=/-[a-z]/g,V3=/^data[-\w.:]+$/i;function U3(e,t){const n=wd(t);let r=t,i=zt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&V3.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(fx,H3);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!fx.test(o)){let s=o.replace($3,q3);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Fm}return new i(r,t)}function q3(e){return"-"+e.toLowerCase()}function H3(e){return e.charAt(1).toUpperCase()}const W3=lk([uk,R3,fk,dk,pk],"html"),Bm=lk([uk,z3,fk,dk,pk],"svg");function Y3(e){return e.join(" ").trim()}var Mm={},dx=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,G3=/\n/g,K3=/^\s*/,X3=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Q3=/^:\s*/,Z3=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,J3=/^[;\s]*/,eB=/^\s+|\s+$/g,tB=`
156
+ `,px="/",mx="*",li="",nB="comment",rB="declaration";function iB(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(g){var y=g.match(G3);y&&(n+=y.length);var k=g.lastIndexOf(tB);r=~k?g.length-k:r+g.length}function o(){var g={line:n,column:r};return function(y){return y.position=new s(g),u(),y}}function s(g){this.start=g,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function a(g){var y=new Error(t.source+":"+n+":"+r+": "+g);if(y.reason=g,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function l(g){var y=g.exec(e);if(y){var k=y[0];return i(k),e=e.slice(k.length),y}}function u(){l(K3)}function c(g){var y;for(g=g||[];y=h();)y!==!1&&g.push(y);return g}function h(){var g=o();if(!(px!=e.charAt(0)||mx!=e.charAt(1))){for(var y=2;li!=e.charAt(y)&&(mx!=e.charAt(y)||px!=e.charAt(y+1));)++y;if(y+=2,li===e.charAt(y-1))return a("End of comment missing");var k=e.slice(2,y-2);return r+=2,i(k),e=e.slice(y),r+=2,g({type:nB,comment:k})}}function f(){var g=o(),y=l(X3);if(y){if(h(),!l(Q3))return a("property missing ':'");var k=l(Z3),p=g({type:rB,property:gx(y[0].replace(dx,li)),value:k?gx(k[0].replace(dx,li)):li});return l(J3),p}}function d(){var g=[];c(g);for(var y;y=f();)y!==!1&&(g.push(y),c(g));return g}return u(),d()}function gx(e){return e?e.replace(eB,li):li}var oB=iB,sB=Gs&&Gs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Mm,"__esModule",{value:!0});Mm.default=lB;const aB=sB(oB);function lB(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,aB.default)(e),i=typeof t=="function";return r.forEach(o=>{if(o.type!=="declaration")return;const{property:s,value:a}=o;i?t(s,a,o):a&&(n=n||{},n[s]=a)}),n}var kc={};Object.defineProperty(kc,"__esModule",{value:!0});kc.camelCase=void 0;var uB=/^--[a-zA-Z0-9_-]+$/,cB=/-([a-z])/g,hB=/^[^-]+$/,fB=/^-(webkit|moz|ms|o|khtml)-/,dB=/^-(ms)-/,pB=function(e){return!e||hB.test(e)||uB.test(e)},mB=function(e,t){return t.toUpperCase()},yx=function(e,t){return"".concat(t,"-")},gB=function(e,t){return t===void 0&&(t={}),pB(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(dB,yx):e=e.replace(fB,yx),e.replace(cB,mB))};kc.camelCase=gB;var yB=Gs&&Gs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},xB=yB(Mm),vB=kc;function Td(e,t){var n={};return!e||typeof e!="string"||(0,xB.default)(e,function(r,i){r&&i&&(n[(0,vB.camelCase)(r,t)]=i)}),n}Td.default=Td;var CB=Td;const _B=Ju(CB),mk=gk("end"),Nm=gk("start");function gk(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function wB(e){const t=Nm(e),n=mk(e);if(t&&n)return{start:t,end:n}}function kB(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?xx(e.position):"start"in e||"end"in e?xx(e):"line"in e||"column"in e?bd(e):""}function bd(e){return vx(e&&e.line)+":"+vx(e&&e.column)}function xx(e){return bd(e&&e.start)+"-"+bd(e&&e.end)}function vx(e){return e&&typeof e=="number"?e:1}class mt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},s=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(s=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=kB(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}mt.prototype.file="";mt.prototype.name="";mt.prototype.reason="";mt.prototype.message="";mt.prototype.stack="";mt.prototype.column=void 0;mt.prototype.line=void 0;mt.prototype.ancestors=void 0;mt.prototype.cause=void 0;mt.prototype.fatal=void 0;mt.prototype.place=void 0;mt.prototype.ruleId=void 0;mt.prototype.source=void 0;const Im={}.hasOwnProperty,SB=new Map,TB=/[A-Z]/g,bB=new Set(["table","tbody","thead","tfoot","tr"]),EB=new Set(["td","th"]),yk="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function AB(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=DB(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=IB(n,t.jsx,t.jsxs)}const 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"?Bm:W3,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=xk(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function xk(e,t,n){if(t.type==="element")return LB(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return PB(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return BB(e,t,n);if(t.type==="mdxjsEsm")return FB(e,t);if(t.type==="root")return MB(e,t,n);if(t.type==="text")return NB(e,t)}function LB(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Bm,e.schema=i),e.ancestors.push(t);const o=Ck(e,t.tagName,!1),s=OB(e,t);let a=Om(e,t);return bB.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!D3(l):!0})),vk(e,s,o,t),Dm(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function PB(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ya(e,t.position)}function FB(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ya(e,t.position)}function BB(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Bm,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:Ck(e,t.name,!0),s=RB(e,t),a=Om(e,t);return vk(e,s,o,t),Dm(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function MB(e,t,n){const r={};return Dm(r,Om(e,t)),e.create(t,e.Fragment,r,n)}function NB(e,t){return t.value}function vk(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Dm(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function IB(e,t,n){return r;function r(i,o,s,a){const u=Array.isArray(s.children)?n:t;return a?u(o,s,a):u(o,s)}}function DB(e,t){return n;function n(r,i,o,s){const a=Array.isArray(o.children),l=Nm(r);return t(i,o,s,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function OB(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Im.call(t.properties,i)){const o=zB(e,i,t.properties[i]);if(o){const[s,a]=o;e.tableCellAlignToStyle&&s==="align"&&typeof a=="string"&&EB.has(t.tagName)?r=a:n[s]=a}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function RB(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const s=o.expression;s.type;const a=s.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else ya(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else ya(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function Om(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:SB;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const u=i.get(l)||0;s=l+"-"+u,i.set(l,u+1)}}const a=xk(e,o,s);a!==void 0&&n.push(a)}return n}function zB(e,t,n){const r=U3(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?F3(n):Y3(n)),r.property==="style"){let i=typeof n=="object"?n:jB(e,String(n));return e.stylePropertyNameCase==="css"&&(i=$B(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?j3[r.property]||r.property:r.attribute,n]}}function jB(e,t){try{return _B(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new mt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=yk+"#cannot-parse-style-attribute",i}}function Ck(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,s;for(;++o<i.length;){const a=ux(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};s=s?{type:"MemberExpression",object:s,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=s}else r=ux(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Im.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);ya(e)}function ya(e,t){const n=new mt("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=yk+"#cannot-handle-mdx-estrees-without-createevaluater",n}function $B(e){const t={};let n;for(n in e)Im.call(e,n)&&(t[VB(n)]=e[n]);return t}function VB(e){let t=e.replace(TB,UB);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function UB(e){return"-"+e.toLowerCase()}const Ih={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"]},qB={};function HB(e,t){const n=qB,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return _k(e,r,i)}function _k(e,t,n){if(WB(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 Cx(e.children,t,n)}return Array.isArray(e)?Cx(e,t,n):""}function Cx(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=_k(e[i],t,n);return r.join("")}function WB(e){return!!(e&&typeof e=="object")}const _x=document.createElement("i");function Rm(e){const t="&"+e+";";_x.innerHTML=t;const n=_x.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Hn(e,t,n,r){const i=e.length;let o=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);o<r.length;)s=r.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function on(e,t){return e.length>0?(Hn(e,e.length,0,t),e):t}const wx={}.hasOwnProperty;function YB(e){const t={};let n=-1;for(;++n<e.length;)GB(t,e[n]);return t}function GB(e,t){let n;for(n in t){const i=(wx.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let s;if(o)for(s in o){wx.call(i,s)||(i[s]=[]);const a=o[s];KB(i[s],Array.isArray(a)?a:a?[a]:[])}}}function KB(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Hn(e,0,0,r)}function wk(e,t){const 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 go(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Rn=Xr(/[A-Za-z]/),Cn=Xr(/[\dA-Za-z]/),XB=Xr(/[#-'*+\--9=?A-Z^-~]/);function Ed(e){return e!==null&&(e<32||e===127)}const Ad=Xr(/\d/),QB=Xr(/[\dA-Fa-f]/),ZB=Xr(/[!-/:-@[-`{-~]/);function oe(e){return e!==null&&e<-2}function Rt(e){return e!==null&&(e<0||e===32)}function me(e){return e===-2||e===-1||e===32}const JB=Xr(new RegExp("\\p{P}|\\p{S}","u")),eM=Xr(/\s/);function Xr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function _e(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(l){return me(l)?(e.enter(n),a(l)):t(l)}function a(l){return me(l)&&o++<i?(e.consume(l),a):(e.exit(n),t(l))}}const tM={tokenize:nM};function nM(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),_e(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(a)}function s(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return oe(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),s)}}const rM={tokenize:iM},kx={tokenize:oM};function iM(e){const t=this,n=[];let r=0,i,o,s;return a;function a(x){if(r<n.length){const S=n[r];return t.containerState=S[1],e.attempt(S[0].continuation,l,u)(x)}return u(x)}function l(x){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&m();const S=t.events.length;let b=S,w;for(;b--;)if(t.events[b][0]==="exit"&&t.events[b][1].type==="chunkFlow"){w=t.events[b][1].end;break}p(r);let L=S;for(;L<t.events.length;)t.events[L][1].end={...w},L++;return Hn(t.events,b+1,0,t.events.slice(S)),t.events.length=L,u(x)}return a(x)}function u(x){if(r===n.length){if(!i)return f(x);if(i.currentConstruct&&i.currentConstruct.concrete)return g(x);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(kx,c,h)(x)}function c(x){return i&&m(),p(r),f(x)}function h(x){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,g(x)}function f(x){return t.containerState={},e.attempt(kx,d,g)(x)}function d(x){return r++,n.push([t.currentConstruct,t.containerState]),f(x)}function g(x){if(x===null){i&&m(),p(0),e.consume(x);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),y(x)}function y(x){if(x===null){k(e.exit("chunkFlow"),!0),p(0),e.consume(x);return}return oe(x)?(e.consume(x),k(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(x),y)}function k(x,S){const b=t.sliceStream(x);if(S&&b.push(null),x.previous=o,o&&(o.next=x),o=x,i.defineSkip(x.start),i.write(b),t.parser.lazy[x.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<s&&(!i.events[w][1].end||i.events[w][1].end.offset>s))return;const L=t.events.length;let P=L,W,D;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(W){D=t.events[P][1].end;break}W=!0}for(p(r),w=L;w<t.events.length;)t.events[w][1].end={...D},w++;Hn(t.events,P+1,0,t.events.slice(L)),t.events.length=w}}function p(x){let S=n.length;for(;S-- >x;){const b=n[S];t.containerState=b[1],b[0].exit.call(t,e)}n.length=x}function m(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function oM(e,t,n){return _e(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Sx(e){if(e===null||Rt(e)||eM(e))return 1;if(JB(e))return 2}function zm(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const Ld={name:"attention",resolveAll:sM,tokenize:aM};function sM(e,t){let n=-1,r,i,o,s,a,l,u,c;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;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[r][1].end},f={...e[n][1].start};Tx(h,-l),Tx(f,l),s={type:l>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},o={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[r][1].end={...s.start},e[n][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=on(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=on(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),u=on(u,zm(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=on(u,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=on(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Hn(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function aM(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Sx(r);let o;return s;function s(l){return o=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===o)return e.consume(l),a;const u=e.exit("attentionSequence"),c=Sx(l),h=!c||c===2&&i||n.includes(l),f=!i||i===2&&c||n.includes(r);return u._open=!!(o===42?h:h&&(i||!f)),u._close=!!(o===42?f:f&&(c||!h)),t(l)}}function Tx(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const lM={name:"autolink",tokenize:uM};function uM(e,t,n){let r=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(d){return Rn(d)?(e.consume(d),s):d===64?n(d):u(d)}function s(d){return d===43||d===45||d===46||Cn(d)?(r=1,a(d)):u(d)}function a(d){return d===58?(e.consume(d),r=0,l):(d===43||d===45||d===46||Cn(d))&&r++<32?(e.consume(d),a):(r=0,u(d))}function l(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||Ed(d)?n(d):(e.consume(d),l)}function u(d){return d===64?(e.consume(d),c):XB(d)?(e.consume(d),u):n(d)}function c(d){return Cn(d)?h(d):n(d)}function h(d){return d===46?(e.consume(d),r=0,c):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):f(d)}function f(d){if((d===45||Cn(d))&&r++<63){const g=d===45?f:h;return e.consume(d),g}return n(d)}}const Sc={partial:!0,tokenize:cM};function cM(e,t,n){return r;function r(o){return me(o)?_e(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||oe(o)?t(o):n(o)}}const kk={continuation:{tokenize:fM},exit:dM,name:"blockQuote",tokenize:hM};function hM(e,t,n){const r=this;return i;function i(s){if(s===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return n(s)}function o(s){return me(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function fM(e,t,n){const r=this;return i;function i(s){return me(s)?_e(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(kk,t,n)(s)}}function dM(e){e.exit("blockQuote")}const Sk={name:"characterEscape",tokenize:pM};function pM(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return ZB(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Tk={name:"characterReference",tokenize:mM};function mM(e,t,n){const r=this;let i=0,o,s;return a;function a(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),l}function l(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,s=Cn,c(h))}function u(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=QB,c):(e.enter("characterReferenceValue"),o=7,s=Ad,c(h))}function c(h){if(h===59&&i){const f=e.exit("characterReferenceValue");return s===Cn&&!Rm(r.sliceSerialize(f))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(h)&&i++<o?(e.consume(h),c):n(h)}}const bx={partial:!0,tokenize:yM},Ex={concrete:!0,name:"codeFenced",tokenize:gM};function gM(e,t,n){const r=this,i={partial:!0,tokenize:b};let o=0,s=0,a;return l;function l(w){return u(w)}function u(w){const L=r.events[r.events.length-1];return o=L&&L[1].type==="linePrefix"?L[2].sliceSerialize(L[1],!0).length:0,a=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(w)}function c(w){return w===a?(s++,e.consume(w),c):s<3?n(w):(e.exit("codeFencedFenceSequence"),me(w)?_e(e,h,"whitespace")(w):h(w))}function h(w){return w===null||oe(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(bx,y,S)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(w))}function f(w){return w===null||oe(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(w)):me(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),_e(e,d,"whitespace")(w)):w===96&&w===a?n(w):(e.consume(w),f)}function d(w){return w===null||oe(w)?h(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===null||oe(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(w)):w===96&&w===a?n(w):(e.consume(w),g)}function y(w){return e.attempt(i,S,k)(w)}function k(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),p}function p(w){return o>0&&me(w)?_e(e,m,"linePrefix",o+1)(w):m(w)}function m(w){return w===null||oe(w)?e.check(bx,y,S)(w):(e.enter("codeFlowValue"),x(w))}function x(w){return w===null||oe(w)?(e.exit("codeFlowValue"),m(w)):(e.consume(w),x)}function S(w){return e.exit("codeFenced"),t(w)}function b(w,L,P){let W=0;return D;function D(N){return w.enter("lineEnding"),w.consume(N),w.exit("lineEnding"),B}function B(N){return w.enter("codeFencedFence"),me(N)?_e(w,Y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):Y(N)}function Y(N){return N===a?(w.enter("codeFencedFenceSequence"),ae(N)):P(N)}function ae(N){return N===a?(W++,w.consume(N),ae):W>=s?(w.exit("codeFencedFenceSequence"),me(N)?_e(w,H,"whitespace")(N):H(N)):P(N)}function H(N){return N===null||oe(N)?(w.exit("codeFencedFence"),L(N)):P(N)}}}function yM(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Dh={name:"codeIndented",tokenize:vM},xM={partial:!0,tokenize:CM};function vM(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),_e(e,o,"linePrefix",5)(u)}function o(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):oe(u)?e.attempt(xM,s,l)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||oe(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),a)}function l(u){return e.exit("codeIndented"),t(u)}}function CM(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):oe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):_e(e,o,"linePrefix",5)(s)}function o(s){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):oe(s)?i(s):n(s)}}const _M={name:"codeText",previous:kM,resolve:wM,tokenize:SM};function wM(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 kM(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function SM(e,t,n){let r=0,i,o;return s;function s(h){return e.enter("codeText"),e.enter("codeTextSequence"),a(h)}function a(h){return h===96?(e.consume(h),r++,a):(e.exit("codeTextSequence"),l(h))}function l(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),l):h===96?(o=e.enter("codeTextSequence"),i=0,c(h)):oe(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(h))}function u(h){return h===null||h===32||h===96||oe(h)?(e.exit("codeTextData"),l(h)):(e.consume(h),u)}function c(h){return h===96?(e.consume(h),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(o.type="codeTextData",u(h))}}class TM{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&as(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),as(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),as(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);as(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);as(this.left,n.reverse())}}}function as(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 bk(e){const t={};let n=-1,r,i,o,s,a,l,u;const c=new TM(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,bM(c,n)),n=t[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(s=c.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},a=c.slice(i,n),a.unshift(r),c.splice(i,n-i+1,a))}}return Hn(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function bM(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const a=s.events,l=[],u={};let c,h,f=-1,d=n,g=0,y=0;const k=[y];for(;d;){for(;e.get(++i)[1]!==d;);o.push(i),d._tokenizer||(c=r.sliceStream(d),d.next||c.push(null),h&&s.defineSkip(d.start),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=d,d=d.next}for(d=n;++f<a.length;)a[f][0]==="exit"&&a[f-1][0]==="enter"&&a[f][1].type===a[f-1][1].type&&a[f][1].start.line!==a[f][1].end.line&&(y=f+1,k.push(y),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(s.events=[],d?(d._tokenizer=void 0,d.previous=void 0):k.pop(),f=k.length;f--;){const p=a.slice(k[f],k[f+1]),m=o.pop();l.push([m,m+p.length-1]),e.splice(m,2,p)}for(l.reverse(),f=-1;++f<l.length;)u[g+l[f][0]]=g+l[f][1],g+=l[f][1]-l[f][0]-1;return u}const EM={resolve:LM,tokenize:PM},AM={partial:!0,tokenize:FM};function LM(e){return bk(e),e}function PM(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):oe(a)?e.check(AM,s,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function s(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function FM(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),_e(e,o,"linePrefix")}function o(s){if(s===null||oe(s))return n(s);const 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(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Ek(e,t,n,r,i,o,s,a,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return h;function h(p){return p===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(p),e.exit(o),f):p===null||p===32||p===41||Ed(p)?n(p):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),y(p))}function f(p){return p===62?(e.enter(o),e.consume(p),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===62?(e.exit("chunkString"),e.exit(a),f(p)):p===null||p===60||oe(p)?n(p):(e.consume(p),p===92?g:d)}function g(p){return p===60||p===62||p===92?(e.consume(p),d):d(p)}function y(p){return!c&&(p===null||p===41||Rt(p))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(p)):c<u&&p===40?(e.consume(p),c++,y):p===41?(e.consume(p),c--,y):p===null||p===32||p===40||Ed(p)?n(p):(e.consume(p),p===92?k:y)}function k(p){return p===40||p===41||p===92?(e.consume(p),y):y(p)}}function Ak(e,t,n,r,i,o){const s=this;let a=0,l;return u;function u(d){return e.enter(r),e.enter(i),e.consume(d),e.exit(i),e.enter(o),c}function c(d){return a>999||d===null||d===91||d===93&&!l||d===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):d===93?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):oe(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),h(d))}function h(d){return d===null||d===91||d===93||oe(d)||a++>999?(e.exit("chunkString"),c(d)):(e.consume(d),l||(l=!me(d)),d===92?f:h)}function f(d){return d===91||d===92||d===93?(e.consume(d),a++,h):h(d)}}function Lk(e,t,n,r,i,o){let s;return a;function a(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),s=f===40?41:f,l):n(f)}function l(f){return f===s?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(o),u(f))}function u(f){return f===s?(e.exit(o),l(s)):f===null?n(f):oe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),_e(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===s||f===null||oe(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?h:c)}function h(f){return f===s||f===92?(e.consume(f),c):c(f)}}function js(e,t){let n;return r;function r(i){return oe(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):me(i)?_e(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const BM={name:"definition",tokenize:NM},MM={partial:!0,tokenize:IM};function NM(e,t,n){const r=this;let i;return o;function o(d){return e.enter("definition"),s(d)}function s(d){return Ak.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function a(d){return i=go(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),l):n(d)}function l(d){return Rt(d)?js(e,u)(d):u(d)}function u(d){return Ek(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function c(d){return e.attempt(MM,h,h)(d)}function h(d){return me(d)?_e(e,f,"whitespace")(d):f(d)}function f(d){return d===null||oe(d)?(e.exit("definition"),r.parser.defined.push(i),t(d)):n(d)}}function IM(e,t,n){return r;function r(a){return Rt(a)?js(e,i)(a):n(a)}function i(a){return Lk(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return me(a)?_e(e,s,"whitespace")(a):s(a)}function s(a){return a===null||oe(a)?t(a):n(a)}}const DM={name:"hardBreakEscape",tokenize:OM};function OM(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return oe(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const RM={name:"headingAtx",resolve:zM,tokenize:jM};function zM(e,t){let n=e.length-2,r=3,i,o;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},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Hn(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function jM(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||Rt(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||oe(c)?(e.exit("atxHeading"),t(c)):me(c)?_e(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||Rt(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const $M=["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"],Ax=["pre","script","style","textarea"],VM={concrete:!0,name:"htmlFlow",resolveTo:HM,tokenize:WM},UM={partial:!0,tokenize:GM},qM={partial:!0,tokenize:YM};function HM(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 WM(e,t,n){const r=this;let i,o,s,a,l;return u;function u(_){return c(_)}function c(_){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(_),h}function h(_){return _===33?(e.consume(_),f):_===47?(e.consume(_),o=!0,y):_===63?(e.consume(_),i=3,r.interrupt?t:v):Rn(_)?(e.consume(_),s=String.fromCharCode(_),k):n(_)}function f(_){return _===45?(e.consume(_),i=2,d):_===91?(e.consume(_),i=5,a=0,g):Rn(_)?(e.consume(_),i=4,r.interrupt?t:v):n(_)}function d(_){return _===45?(e.consume(_),r.interrupt?t:v):n(_)}function g(_){const ue="CDATA[";return _===ue.charCodeAt(a++)?(e.consume(_),a===ue.length?r.interrupt?t:Y:g):n(_)}function y(_){return Rn(_)?(e.consume(_),s=String.fromCharCode(_),k):n(_)}function k(_){if(_===null||_===47||_===62||Rt(_)){const ue=_===47,se=s.toLowerCase();return!ue&&!o&&Ax.includes(se)?(i=1,r.interrupt?t(_):Y(_)):$M.includes(s.toLowerCase())?(i=6,ue?(e.consume(_),p):r.interrupt?t(_):Y(_)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(_):o?m(_):x(_))}return _===45||Cn(_)?(e.consume(_),s+=String.fromCharCode(_),k):n(_)}function p(_){return _===62?(e.consume(_),r.interrupt?t:Y):n(_)}function m(_){return me(_)?(e.consume(_),m):D(_)}function x(_){return _===47?(e.consume(_),D):_===58||_===95||Rn(_)?(e.consume(_),S):me(_)?(e.consume(_),x):D(_)}function S(_){return _===45||_===46||_===58||_===95||Cn(_)?(e.consume(_),S):b(_)}function b(_){return _===61?(e.consume(_),w):me(_)?(e.consume(_),b):x(_)}function w(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),l=_,L):me(_)?(e.consume(_),w):P(_)}function L(_){return _===l?(e.consume(_),l=null,W):_===null||oe(_)?n(_):(e.consume(_),L)}function P(_){return _===null||_===34||_===39||_===47||_===60||_===61||_===62||_===96||Rt(_)?b(_):(e.consume(_),P)}function W(_){return _===47||_===62||me(_)?x(_):n(_)}function D(_){return _===62?(e.consume(_),B):n(_)}function B(_){return _===null||oe(_)?Y(_):me(_)?(e.consume(_),B):n(_)}function Y(_){return _===45&&i===2?(e.consume(_),I):_===60&&i===1?(e.consume(_),O):_===62&&i===4?(e.consume(_),U):_===63&&i===3?(e.consume(_),v):_===93&&i===5?(e.consume(_),M):oe(_)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(UM,J,ae)(_)):_===null||oe(_)?(e.exit("htmlFlowData"),ae(_)):(e.consume(_),Y)}function ae(_){return e.check(qM,H,J)(_)}function H(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),N}function N(_){return _===null||oe(_)?ae(_):(e.enter("htmlFlowData"),Y(_))}function I(_){return _===45?(e.consume(_),v):Y(_)}function O(_){return _===47?(e.consume(_),s="",A):Y(_)}function A(_){if(_===62){const ue=s.toLowerCase();return Ax.includes(ue)?(e.consume(_),U):Y(_)}return Rn(_)&&s.length<8?(e.consume(_),s+=String.fromCharCode(_),A):Y(_)}function M(_){return _===93?(e.consume(_),v):Y(_)}function v(_){return _===62?(e.consume(_),U):_===45&&i===2?(e.consume(_),v):Y(_)}function U(_){return _===null||oe(_)?(e.exit("htmlFlowData"),J(_)):(e.consume(_),U)}function J(_){return e.exit("htmlFlow"),t(_)}}function YM(e,t,n){const r=this;return i;function i(s){return oe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):n(s)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function GM(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Sc,t,n)}}const KM={name:"htmlText",tokenize:XM};function XM(e,t,n){const r=this;let i,o,s;return a;function a(v){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(v),l}function l(v){return v===33?(e.consume(v),u):v===47?(e.consume(v),b):v===63?(e.consume(v),x):Rn(v)?(e.consume(v),P):n(v)}function u(v){return v===45?(e.consume(v),c):v===91?(e.consume(v),o=0,g):Rn(v)?(e.consume(v),m):n(v)}function c(v){return v===45?(e.consume(v),d):n(v)}function h(v){return v===null?n(v):v===45?(e.consume(v),f):oe(v)?(s=h,O(v)):(e.consume(v),h)}function f(v){return v===45?(e.consume(v),d):h(v)}function d(v){return v===62?I(v):v===45?f(v):h(v)}function g(v){const U="CDATA[";return v===U.charCodeAt(o++)?(e.consume(v),o===U.length?y:g):n(v)}function y(v){return v===null?n(v):v===93?(e.consume(v),k):oe(v)?(s=y,O(v)):(e.consume(v),y)}function k(v){return v===93?(e.consume(v),p):y(v)}function p(v){return v===62?I(v):v===93?(e.consume(v),p):y(v)}function m(v){return v===null||v===62?I(v):oe(v)?(s=m,O(v)):(e.consume(v),m)}function x(v){return v===null?n(v):v===63?(e.consume(v),S):oe(v)?(s=x,O(v)):(e.consume(v),x)}function S(v){return v===62?I(v):x(v)}function b(v){return Rn(v)?(e.consume(v),w):n(v)}function w(v){return v===45||Cn(v)?(e.consume(v),w):L(v)}function L(v){return oe(v)?(s=L,O(v)):me(v)?(e.consume(v),L):I(v)}function P(v){return v===45||Cn(v)?(e.consume(v),P):v===47||v===62||Rt(v)?W(v):n(v)}function W(v){return v===47?(e.consume(v),I):v===58||v===95||Rn(v)?(e.consume(v),D):oe(v)?(s=W,O(v)):me(v)?(e.consume(v),W):I(v)}function D(v){return v===45||v===46||v===58||v===95||Cn(v)?(e.consume(v),D):B(v)}function B(v){return v===61?(e.consume(v),Y):oe(v)?(s=B,O(v)):me(v)?(e.consume(v),B):W(v)}function Y(v){return v===null||v===60||v===61||v===62||v===96?n(v):v===34||v===39?(e.consume(v),i=v,ae):oe(v)?(s=Y,O(v)):me(v)?(e.consume(v),Y):(e.consume(v),H)}function ae(v){return v===i?(e.consume(v),i=void 0,N):v===null?n(v):oe(v)?(s=ae,O(v)):(e.consume(v),ae)}function H(v){return v===null||v===34||v===39||v===60||v===61||v===96?n(v):v===47||v===62||Rt(v)?W(v):(e.consume(v),H)}function N(v){return v===47||v===62||Rt(v)?W(v):n(v)}function I(v){return v===62?(e.consume(v),e.exit("htmlTextData"),e.exit("htmlText"),t):n(v)}function O(v){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),A}function A(v){return me(v)?_e(e,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(v):M(v)}function M(v){return e.enter("htmlTextData"),s(v)}}const jm={name:"labelEnd",resolveAll:e5,resolveTo:t5,tokenize:n5},QM={tokenize:r5},ZM={tokenize:i5},JM={tokenize:o5};function e5(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Hn(e,0,e.length,n),e}function t5(e,t){let n=e.length,r=0,i,o,s,a;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",l,t],["enter",u,t]],a=on(a,e.slice(o+1,o+r+3)),a=on(a,[["enter",c,t]]),a=on(a,zm(t.parser.constructs.insideSpan.null,e.slice(o+r+4,s-3),t)),a=on(a,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),a=on(a,e.slice(s+1)),a=on(a,[["exit",l,t]]),Hn(e,o,e.length,a),e}function n5(e,t,n){const r=this;let i=r.events.length,o,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(f){return o?o._inactive?h(f):(s=r.parser.defined.includes(go(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):n(f)}function l(f){return f===40?e.attempt(QM,c,s?c:h)(f):f===91?e.attempt(ZM,c,s?u:h)(f):s?c(f):h(f)}function u(f){return e.attempt(JM,c,h)(f)}function c(f){return t(f)}function h(f){return o._balanced=!0,n(f)}}function r5(e,t,n){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),i}function i(h){return Rt(h)?js(e,o)(h):o(h)}function o(h){return h===41?c(h):Ek(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function s(h){return Rt(h)?js(e,l)(h):c(h)}function a(h){return n(h)}function l(h){return h===34||h===39||h===40?Lk(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):c(h)}function u(h){return Rt(h)?js(e,c)(h):c(h)}function c(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function i5(e,t,n){const r=this;return i;function i(a){return Ak.call(r,e,o,s,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(go(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function s(a){return n(a)}}function o5(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const s5={name:"labelStartImage",resolveAll:jm.resolveAll,tokenize:a5};function a5(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),s):n(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const l5={name:"labelStartLink",resolveAll:jm.resolveAll,tokenize:u5};function u5(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Oh={name:"lineEnding",tokenize:c5};function c5(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),_e(e,t,"linePrefix")}}const jl={name:"thematicBreak",tokenize:h5};function h5(e,t,n){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),s(u)}function s(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||oe(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),me(u)?_e(e,a,"whitespace")(u):a(u))}}const Lt={continuation:{tokenize:m5},exit:y5,name:"list",tokenize:p5},f5={partial:!0,tokenize:x5},d5={partial:!0,tokenize:g5};function p5(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return a;function a(d){const g=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:Ad(d)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(jl,n,u)(d):u(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(d)}return n(d)}function l(d){return Ad(d)&&++s<10?(e.consume(d),l):(!r.interrupt||s<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),u(d)):n(d)}function u(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(Sc,r.interrupt?n:c,e.attempt(f5,f,h))}function c(d){return r.containerState.initialBlankLine=!0,o++,f(d)}function h(d){return me(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),f):n(d)}function f(d){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function m5(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Sc,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,_e(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!me(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(d5,t,s)(a))}function s(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,_e(e,e.attempt(Lt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function g5(e,t,n){const r=this;return _e(e,i,"listItemIndent",r.containerState.size+1);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(o):n(o)}}function y5(e){e.exit(this.containerState.type)}function x5(e,t,n){const r=this;return _e(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const s=r.events[r.events.length-1];return!me(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Lx={name:"setextUnderline",resolveTo:v5,tokenize:C5};function v5(e,t){let n=e.length,r,i,o;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),!o&&e[n][1].type==="definition"&&(o=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",s,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function C5(e,t,n){const r=this;let i;return o;function o(u){let c=r.events.length,h;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){h=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),i=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),me(u)?_e(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||oe(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const _5={tokenize:w5};function w5(e){const t=this,n=e.attempt(Sc,r,e.attempt(this.parser.constructs.flowInitial,i,_e(e,e.attempt(this.parser.constructs.flow,i,e.attempt(EM,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const k5={resolveAll:Fk()},S5=Pk("string"),T5=Pk("text");function Pk(e){return{resolveAll:Fk(e==="text"?b5:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,s,a);return s;function s(c){return u(c)?o(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),o(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const h=i[c];let f=-1;if(h)for(;++f<h.length;){const d=h[f];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}function Fk(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function b5(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,s=-1,a=0,l;for(;o--;){const u=i[o];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(u===-2)l=!0,a++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:r.start._bufferIndex+s,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const E5={42:Lt,43:Lt,45:Lt,48:Lt,49:Lt,50:Lt,51:Lt,52:Lt,53:Lt,54:Lt,55:Lt,56:Lt,57:Lt,62:kk},A5={91:BM},L5={[-2]:Dh,[-1]:Dh,32:Dh},P5={35:RM,42:jl,45:[Lx,jl],60:VM,61:Lx,95:jl,96:Ex,126:Ex},F5={38:Tk,92:Sk},B5={[-5]:Oh,[-4]:Oh,[-3]:Oh,33:s5,38:Tk,42:Ld,60:[lM,KM],91:l5,92:[DM,Sk],93:jm,95:Ld,96:_M},M5={null:[Ld,k5]},N5={null:[42,95]},I5={null:[]},D5=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:N5,contentInitial:A5,disable:I5,document:E5,flow:P5,flowInitial:L5,insideSpan:M5,string:F5,text:B5},Symbol.toStringTag,{value:"Module"}));function O5(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let s=[],a=[];const l={attempt:L(b),check:L(w),consume:m,enter:x,exit:S,interrupt:L(w,{interrupt:!0})},u={code:null,containerState:{},defineSkip:y,events:[],now:g,parser:e,previous:null,sliceSerialize:f,sliceStream:d,write:h};let c=t.tokenize.call(u,l);return t.resolveAll&&o.push(t),u;function h(B){return s=on(s,B),k(),s[s.length-1]!==null?[]:(P(t,0),u.events=zm(o,u.events,u),u.events)}function f(B,Y){return z5(d(B),Y)}function d(B){return R5(s,B)}function g(){const{_bufferIndex:B,_index:Y,line:ae,column:H,offset:N}=r;return{_bufferIndex:B,_index:Y,line:ae,column:H,offset:N}}function y(B){i[B.line]=B.column,D()}function k(){let B;for(;r._index<s.length;){const Y=s[r._index];if(typeof Y=="string")for(B=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===B&&r._bufferIndex<Y.length;)p(Y.charCodeAt(r._bufferIndex));else p(Y)}}function p(B){c=c(B)}function m(B){oe(B)?(r.line++,r.column=1,r.offset+=B===-3?2:1,D()):B!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=B}function x(B,Y){const ae=Y||{};return ae.type=B,ae.start=g(),u.events.push(["enter",ae,u]),a.push(ae),ae}function S(B){const Y=a.pop();return Y.end=g(),u.events.push(["exit",Y,u]),Y}function b(B,Y){P(B,Y.from)}function w(B,Y){Y.restore()}function L(B,Y){return ae;function ae(H,N,I){let O,A,M,v;return Array.isArray(H)?J(H):"tokenize"in H?J([H]):U(H);function U(ce){return Ne;function Ne(Oe){const Ze=Oe!==null&&ce[Oe],we=Oe!==null&&ce.null,it=[...Array.isArray(Ze)?Ze:Ze?[Ze]:[],...Array.isArray(we)?we:we?[we]:[]];return J(it)(Oe)}}function J(ce){return O=ce,A=0,ce.length===0?I:_(ce[A])}function _(ce){return Ne;function Ne(Oe){return v=W(),M=ce,ce.partial||(u.currentConstruct=ce),ce.name&&u.parser.constructs.disable.null.includes(ce.name)?se():ce.tokenize.call(Y?Object.assign(Object.create(u),Y):u,l,ue,se)(Oe)}}function ue(ce){return B(M,v),N}function se(ce){return v.restore(),++A<O.length?_(O[A]):I}}}function P(B,Y){B.resolveAll&&!o.includes(B)&&o.push(B),B.resolve&&Hn(u.events,Y,u.events.length-Y,B.resolve(u.events.slice(Y),u)),B.resolveTo&&(u.events=B.resolveTo(u.events,u))}function W(){const B=g(),Y=u.previous,ae=u.currentConstruct,H=u.events.length,N=Array.from(a);return{from:H,restore:I};function I(){r=B,u.previous=Y,u.currentConstruct=ae,u.events.length=H,a=N,D()}}function D(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function R5(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,o)];else{if(s=e.slice(n,i),r>-1){const a=s[0];typeof a=="string"?s[0]=a.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}function z5(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
157
+ `;break}case-3:{s=`\r
158
+ `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,r.push(s)}return r.join("")}function j5(e){const r={constructs:YB([D5,...(e||{}).extensions||[]]),content:i(tM),defined:[],document:i(rM),flow:i(_5),lazy:{},string:i(S5),text:i(T5)};return r;function i(o){return s;function s(a){return O5(r,o,a)}}}function $5(e){for(;!bk(e););return e}const Px=/[\0\t\n\r]/g;function V5(){let e=1,t="",n=!0,r;return i;function i(o,s,a){const l=[];let u,c,h,f,d;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),h=0,t="",n&&(o.charCodeAt(0)===65279&&h++,n=void 0);h<o.length;){if(Px.lastIndex=h,u=Px.exec(o),f=u&&u.index!==void 0?u.index:o.length,d=o.charCodeAt(f),!u){t=o.slice(h);break}if(d===10&&h===f&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),h<f&&(l.push(o.slice(h,f)),e+=f-h),d){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}h=f+1}return a&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const U5=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function q5(e){return e.replace(U5,H5)}function H5(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return wk(n.slice(o?2:1),o?16:10)}return Rm(n)||e}function $l(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Fx(e.position):"start"in e||"end"in e?Fx(e):"line"in e||"column"in e?Pd(e):""}function Pd(e){return Bx(e&&e.line)+":"+Bx(e&&e.column)}function Fx(e){return Pd(e&&e.start)+"-"+Pd(e&&e.end)}function Bx(e){return e&&typeof e=="number"?e:1}const Bk={}.hasOwnProperty;function W5(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Y5(n)($5(j5(n).document().write(V5()(e,t,!0))))}function Y5(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Zr),autolinkProtocol:W,autolinkEmail:W,atxHeading:o(En),blockQuote:o(we),characterEscape:W,characterReference:W,codeFenced:o(it),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(it,s),codeText:o(bn,s),codeTextData:W,data:W,codeFlowValue:W,definition:o(jt),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Ii),hardBreakEscape:o(Di),hardBreakTrailing:o(Di),htmlFlow:o(Oi,s),htmlFlowData:W,htmlText:o(Oi,s),htmlTextData:W,image:o(xr),label:s,link:o(Zr),listItem:o(Ua),listItemValue:f,listOrdered:o(Jr,h),listUnordered:o(Jr),paragraph:o(qa),reference:_,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(En),strong:o(Hc),thematicBreak:o(ei)},exit:{atxHeading:l(),atxHeadingSequence:b,autolink:l(),autolinkEmail:Ze,autolinkProtocol:Oe,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:se,characterReferenceMarkerNumeric:se,characterReferenceValue:ce,characterReference:Ne,codeFenced:l(k),codeFencedFence:y,codeFencedFenceInfo:d,codeFencedFenceMeta:g,codeFlowValue:D,codeIndented:l(p),codeText:l(N),codeTextData:D,data:D,definition:l(),definitionDestinationString:S,definitionLabelString:m,definitionTitleString:x,emphasis:l(),hardBreakEscape:l(Y),hardBreakTrailing:l(Y),htmlFlow:l(ae),htmlFlowData:D,htmlText:l(H),htmlTextData:D,image:l(O),label:M,labelText:A,lineEnding:B,link:l(I),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:ue,resourceDestinationString:v,resourceTitleString:U,resource:J,setextHeading:l(P),setextHeadingLineSequence:L,setextHeadingText:w,strong:l(),thematicBreak:l()}};Mk(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(F){let $={type:"root",children:[]};const re={stack:[$],tokenStack:[],config:t,enter:a,exit:u,buffer:s,resume:c,data:n},he=[];let ge=-1;for(;++ge<F.length;)if(F[ge][1].type==="listOrdered"||F[ge][1].type==="listUnordered")if(F[ge][0]==="enter")he.push(ge);else{const gt=he.pop();ge=i(F,gt,ge)}for(ge=-1;++ge<F.length;){const gt=t[F[ge][0]];Bk.call(gt,F[ge][1].type)&&gt[F[ge][1].type].call(Object.assign({sliceSerialize:F[ge][2].sliceSerialize},re),F[ge][1])}if(re.tokenStack.length>0){const gt=re.tokenStack[re.tokenStack.length-1];(gt[1]||Mx).call(re,void 0,gt[0])}for($.position={start:Cr(F.length>0?F[0][1].start:{line:1,column:1,offset:0}),end:Cr(F.length>0?F[F.length-2][1].end:{line:1,column:1,offset:0})},ge=-1;++ge<t.transforms.length;)$=t.transforms[ge]($)||$;return $}function i(F,$,re){let he=$-1,ge=-1,gt=!1,An,Et,Ln,yt;for(;++he<=re;){const je=F[he];switch(je[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{je[0]==="enter"?ge++:ge--,yt=void 0;break}case"lineEndingBlank":{je[0]==="enter"&&(An&&!yt&&!ge&&!Ln&&(Ln=he),yt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:yt=void 0}if(!ge&&je[0]==="enter"&&je[1].type==="listItemPrefix"||ge===-1&&je[0]==="exit"&&(je[1].type==="listUnordered"||je[1].type==="listOrdered")){if(An){let Pn=he;for(Et=void 0;Pn--;){const $t=F[Pn];if($t[1].type==="lineEnding"||$t[1].type==="lineEndingBlank"){if($t[0]==="exit")continue;Et&&(F[Et][1].type="lineEndingBlank",gt=!0),$t[1].type="lineEnding",Et=Pn}else if(!($t[1].type==="linePrefix"||$t[1].type==="blockQuotePrefix"||$t[1].type==="blockQuotePrefixWhitespace"||$t[1].type==="blockQuoteMarker"||$t[1].type==="listItemIndent"))break}Ln&&(!Et||Ln<Et)&&(An._spread=!0),An.end=Object.assign({},Et?F[Et][1].start:je[1].end),F.splice(Et||he,0,["exit",An,je[2]]),he++,re++}if(je[1].type==="listItemPrefix"){const Pn={type:"listItem",_spread:!1,start:Object.assign({},je[1].start),end:void 0};An=Pn,F.splice(he,0,["enter",Pn,je[2]]),he++,re++,Ln=void 0,yt=!0}}}return F[$][1]._spread=gt,re}function o(F,$){return re;function re(he){a.call(this,F(he),he),$&&$.call(this,he)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(F,$,re){this.stack[this.stack.length-1].children.push(F),this.stack.push(F),this.tokenStack.push([$,re||void 0]),F.position={start:Cr($.start),end:void 0}}function l(F){return $;function $(re){F&&F.call(this,re),u.call(this,re)}}function u(F,$){const re=this.stack.pop(),he=this.tokenStack.pop();if(he)he[0].type!==F.type&&($?$.call(this,F,he[0]):(he[1]||Mx).call(this,F,he[0]));else throw new Error("Cannot close `"+F.type+"` ("+$l({start:F.start,end:F.end})+"): it’s not open");re.position.end=Cr(F.end)}function c(){return HB(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function f(F){if(this.data.expectingFirstListItemValue){const $=this.stack[this.stack.length-2];$.start=Number.parseInt(this.sliceSerialize(F),10),this.data.expectingFirstListItemValue=void 0}}function d(){const F=this.resume(),$=this.stack[this.stack.length-1];$.lang=F}function g(){const F=this.resume(),$=this.stack[this.stack.length-1];$.meta=F}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const F=this.resume(),$=this.stack[this.stack.length-1];$.value=F.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function p(){const F=this.resume(),$=this.stack[this.stack.length-1];$.value=F.replace(/(\r?\n|\r)$/g,"")}function m(F){const $=this.resume(),re=this.stack[this.stack.length-1];re.label=$,re.identifier=go(this.sliceSerialize(F)).toLowerCase()}function x(){const F=this.resume(),$=this.stack[this.stack.length-1];$.title=F}function S(){const F=this.resume(),$=this.stack[this.stack.length-1];$.url=F}function b(F){const $=this.stack[this.stack.length-1];if(!$.depth){const re=this.sliceSerialize(F).length;$.depth=re}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function L(F){const $=this.stack[this.stack.length-1];$.depth=this.sliceSerialize(F).codePointAt(0)===61?1:2}function P(){this.data.setextHeadingSlurpLineEnding=void 0}function W(F){const re=this.stack[this.stack.length-1].children;let he=re[re.length-1];(!he||he.type!=="text")&&(he=Xo(),he.position={start:Cr(F.start),end:void 0},re.push(he)),this.stack.push(he)}function D(F){const $=this.stack.pop();$.value+=this.sliceSerialize(F),$.position.end=Cr(F.end)}function B(F){const $=this.stack[this.stack.length-1];if(this.data.atHardBreak){const re=$.children[$.children.length-1];re.position.end=Cr(F.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes($.type)&&(W.call(this,F),D.call(this,F))}function Y(){this.data.atHardBreak=!0}function ae(){const F=this.resume(),$=this.stack[this.stack.length-1];$.value=F}function H(){const F=this.resume(),$=this.stack[this.stack.length-1];$.value=F}function N(){const F=this.resume(),$=this.stack[this.stack.length-1];$.value=F}function I(){const F=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";F.type+="Reference",F.referenceType=$,delete F.url,delete F.title}else delete F.identifier,delete F.label;this.data.referenceType=void 0}function O(){const F=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";F.type+="Reference",F.referenceType=$,delete F.url,delete F.title}else delete F.identifier,delete F.label;this.data.referenceType=void 0}function A(F){const $=this.sliceSerialize(F),re=this.stack[this.stack.length-2];re.label=q5($),re.identifier=go($).toLowerCase()}function M(){const F=this.stack[this.stack.length-1],$=this.resume(),re=this.stack[this.stack.length-1];if(this.data.inReference=!0,re.type==="link"){const he=F.children;re.children=he}else re.alt=$}function v(){const F=this.resume(),$=this.stack[this.stack.length-1];$.url=F}function U(){const F=this.resume(),$=this.stack[this.stack.length-1];$.title=F}function J(){this.data.inReference=void 0}function _(){this.data.referenceType="collapsed"}function ue(F){const $=this.resume(),re=this.stack[this.stack.length-1];re.label=$,re.identifier=go(this.sliceSerialize(F)).toLowerCase(),this.data.referenceType="full"}function se(F){this.data.characterReferenceType=F.type}function ce(F){const $=this.sliceSerialize(F),re=this.data.characterReferenceType;let he;re?(he=wk($,re==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):he=Rm($);const ge=this.stack[this.stack.length-1];ge.value+=he}function Ne(F){const $=this.stack.pop();$.position.end=Cr(F.end)}function Oe(F){D.call(this,F);const $=this.stack[this.stack.length-1];$.url=this.sliceSerialize(F)}function Ze(F){D.call(this,F);const $=this.stack[this.stack.length-1];$.url="mailto:"+this.sliceSerialize(F)}function we(){return{type:"blockquote",children:[]}}function it(){return{type:"code",lang:null,meta:null,value:""}}function bn(){return{type:"inlineCode",value:""}}function jt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ii(){return{type:"emphasis",children:[]}}function En(){return{type:"heading",depth:0,children:[]}}function Di(){return{type:"break"}}function Oi(){return{type:"html",value:""}}function xr(){return{type:"image",title:null,url:"",alt:null}}function Zr(){return{type:"link",title:null,url:"",children:[]}}function Jr(F){return{type:"list",ordered:F.type==="listOrdered",start:null,spread:F._spread,children:[]}}function Ua(F){return{type:"listItem",spread:F._spread,checked:null,children:[]}}function qa(){return{type:"paragraph",children:[]}}function Hc(){return{type:"strong",children:[]}}function Xo(){return{type:"text",value:""}}function ei(){return{type:"thematicBreak"}}}function Cr(e){return{line:e.line,column:e.column,offset:e.offset}}function Mk(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Mk(e,r):G5(e,r)}}function G5(e,t){let n;for(n in t)if(Bk.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Mx(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+$l({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+$l({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+$l({start:t.start,end:t.end})+") is still open")}function K5(e){const t=this;t.parser=n;function n(r){return W5(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function X5(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Q5(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
159
+ `}]}function Z5(e,t){const n=t.value?t.value+`
160
+ `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function J5(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function eN(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Nx=tN(/[\dA-Za-z]/);function tN(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Wo(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(o===37&&Nx(e.charCodeAt(n+1))&&Nx(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(s=String.fromCharCode(o,a),i=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function nN(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Wo(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let s,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=o+1,a+=1,e.footnoteCounts.set(r,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function rN(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function iN(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Nk(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function oN(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Nk(e,t);const i={src:Wo(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function sN(e,t){const n={src:Wo(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function aN(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function lN(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Nk(e,t);const i={href:Wo(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function uN(e,t){const n={href:Wo(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function cN(e,t,n){const r=e.all(t),i=n?hN(n):Ik(t),o={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let h;c&&c.type==="element"&&c.tagName==="p"?h=c:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const c=r[a];(i||a!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
161
+ `}),c.type==="element"&&c.tagName==="p"&&!i?s.push(...c.children):s.push(c)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
162
+ `});const u={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,u),e.applyData(t,u)}function hN(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Ik(n[r])}return t}function Ik(e){const t=e.spread;return t??e.children.length>1}function fN(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function dN(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function pN(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function mN(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function gN(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=Nm(t.children[1]),l=mk(t.children[t.children.length-1]);a&&l&&(s.position={start:a,end:l}),i.push(s)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function yN(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,a=s?s.length:t.children.length;let l=-1;const u=[];for(;++l<a;){const h=t.children[l],f={},d=s?s[l]:void 0;d&&(f.align=d);let g={type:"element",tagName:o,properties:f,children:[]};h&&(g.children=e.all(h),e.patch(h,g),g=e.applyData(h,g)),u.push(g)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function xN(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Ix=9,Dx=32;function vN(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Ox(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Ox(t.slice(i),i>0,!1)),o.join("")}function Ox(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===Ix||o===Dx;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===Ix||o===Dx;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function CN(e,t){const n={type:"text",value:vN(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function _N(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const wN={blockquote:X5,break:Q5,code:Z5,delete:J5,emphasis:eN,footnoteReference:nN,heading:rN,html:iN,imageReference:oN,image:sN,inlineCode:aN,linkReference:lN,link:uN,listItem:cN,list:fN,paragraph:dN,root:pN,strong:mN,table:gN,tableCell:xN,tableRow:yN,text:CN,thematicBreak:_N,toml:pl,yaml:pl,definition:pl,footnoteDefinition:pl};function pl(){}const Dk=-1,Tc=0,$s=1,Lu=2,$m=3,Vm=4,Um=5,qm=6,Ok=7,Rk=8,Rx=typeof self=="object"?self:globalThis,kN=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,s]=t[i];switch(o){case Tc:case Dk:return n(s,i);case $s:{const a=n([],i);for(const l of s)a.push(r(l));return a}case Lu:{const a=n({},i);for(const[l,u]of s)a[r(l)]=r(u);return a}case $m:return n(new Date(s),i);case Vm:{const{source:a,flags:l}=s;return n(new RegExp(a,l),i)}case Um:{const a=n(new Map,i);for(const[l,u]of s)a.set(r(l),r(u));return a}case qm:{const a=n(new Set,i);for(const l of s)a.add(r(l));return a}case Ok:{const{name:a,message:l}=s;return n(new Rx[a](l),i)}case Rk:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:a}=new Uint8Array(s);return n(new DataView(a),s)}}return n(new Rx[o](s),i)};return r},zx=e=>kN(new Map,e)(0),$i="",{toString:SN}={},{keys:TN}=Object,ls=e=>{const t=typeof e;if(t!=="object"||!e)return[Tc,t];const n=SN.call(e).slice(8,-1);switch(n){case"Array":return[$s,$i];case"Object":return[Lu,$i];case"Date":return[$m,$i];case"RegExp":return[Vm,$i];case"Map":return[Um,$i];case"Set":return[qm,$i];case"DataView":return[$s,n]}return n.includes("Array")?[$s,n]:n.includes("Error")?[Ok,n]:[Lu,n]},ml=([e,t])=>e===Tc&&(t==="function"||t==="symbol"),bN=(e,t,n,r)=>{const i=(s,a)=>{const l=r.push(s)-1;return n.set(a,l),l},o=s=>{if(n.has(s))return n.get(s);let[a,l]=ls(s);switch(a){case Tc:{let c=s;switch(l){case"bigint":a=Rk,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([Dk],s)}return i([a,c],s)}case $s:{if(l){let f=s;return l==="DataView"?f=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(f=new Uint8Array(s)),i([l,[...f]],s)}const c=[],h=i([a,c],s);for(const f of s)c.push(o(f));return h}case Lu:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return o(s.toJSON());const c=[],h=i([a,c],s);for(const f of TN(s))(e||!ml(ls(s[f])))&&c.push([o(f),o(s[f])]);return h}case $m:return i([a,s.toISOString()],s);case Vm:{const{source:c,flags:h}=s;return i([a,{source:c,flags:h}],s)}case Um:{const c=[],h=i([a,c],s);for(const[f,d]of s)(e||!(ml(ls(f))||ml(ls(d))))&&c.push([o(f),o(d)]);return h}case qm:{const c=[],h=i([a,c],s);for(const f of s)(e||!ml(ls(f)))&&c.push(o(f));return h}}const{message:u}=s;return i([a,{name:l,message:u}],s)};return o},jx=(e,{json:t,lossy:n}={})=>{const r=[];return bN(!(t||n),!!t,new Map,r)(e),r},Pu=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?zx(jx(e,t)):structuredClone(e):(e,t)=>zx(jx(e,t));function EN(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function AN(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function LN(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||EN,r=e.options.footnoteBackLabel||AN,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),h=String(u.identifier).toUpperCase(),f=Wo(h.toLowerCase());let d=0;const g=[],y=e.footnoteCounts.get(h);for(;y!==void 0&&++d<=y;){g.length>0&&g.push({type:"text",value:" "});let m=typeof n=="string"?n:n(l,d);typeof m=="string"&&(m={type:"text",value:m}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,d),className:["data-footnote-backref"]},children:Array.isArray(m)?m:[m]})}const k=c[c.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const m=k.children[k.children.length-1];m&&m.type==="text"?m.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...g)}else c.push(...g);const p={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,p),a.push(p)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Pu(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
163
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
164
+ `}]}}const zk=function(e){if(e==null)return MN;if(typeof e=="function")return bc(e);if(typeof e=="object")return Array.isArray(e)?PN(e):FN(e);if(typeof e=="string")return BN(e);throw new Error("Expected function, string, or object as test")};function PN(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=zk(e[n]);return bc(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function FN(e){const t=e;return bc(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function BN(e){return bc(t);function t(n){return n&&n.type===e}}function bc(e){return t;function t(n,r,i){return!!(NN(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function MN(){return!0}function NN(e){return e!==null&&typeof e=="object"&&"type"in e}const jk=[],IN=!0,$x=!1,DN="skip";function ON(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=zk(i),s=r?-1:1;a(e,void 0,[])();function a(l,u,c){const h=l&&typeof l=="object"?l:{};if(typeof h.type=="string"){const d=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(d?"<"+d+">":""))+")"})}return f;function f(){let d=jk,g,y,k;if((!t||o(l,u,c[c.length-1]||void 0))&&(d=RN(n(l,c)),d[0]===$x))return d;if("children"in l&&l.children){const p=l;if(p.children&&d[0]!==DN)for(y=(r?p.children.length:-1)+s,k=c.concat(p);y>-1&&y<p.children.length;){const m=p.children[y];if(g=a(m,y,k)(),g[0]===$x)return g;y=typeof g[1]=="number"?g[1]:y+s}}return d}}}function RN(e){return Array.isArray(e)?e:typeof e=="number"?[IN,e]:e==null?jk:[e]}function $k(e,t,n,r){let i,o,s;typeof t=="function"&&typeof n!="function"?(o=void 0,s=t,i=n):(o=t,s=n,i=r),ON(e,o,a,i);function a(l,u){const c=u[u.length-1],h=c?c.children.indexOf(l):void 0;return s(l,h,c)}}const Fd={}.hasOwnProperty,zN={};function jN(e,t){const n=t||zN,r=new Map,i=new Map,o=new Map,s={...wN,...n.handlers},a={all:u,applyData:VN,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:l,options:n,patch:$N,wrap:qN};return $k(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const h=c.type==="definition"?r:i,f=String(c.identifier).toUpperCase();h.has(f)||h.set(f,c)}}),a;function l(c,h){const f=c.type,d=a.handlers[f];if(Fd.call(a.handlers,f)&&d)return d(a,c,h);if(a.options.passThrough&&a.options.passThrough.includes(f)){if("children"in c){const{children:y,...k}=c,p=Pu(k);return p.children=a.all(c),p}return Pu(c)}return(a.options.unknownHandler||UN)(a,c,h)}function u(c){const h=[];if("children"in c){const f=c.children;let d=-1;for(;++d<f.length;){const g=a.one(f[d],c);if(g){if(d&&f[d-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=Vx(g.value)),!Array.isArray(g)&&g.type==="element")){const y=g.children[0];y&&y.type==="text"&&(y.value=Vx(y.value))}Array.isArray(g)?h.push(...g):h.push(g)}}}return h}}function $N(e,t){e.position&&(t.position=wB(e))}function VN(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&o&&Object.assign(n.properties,Pu(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function UN(e,t){const n=t.data||{},r="value"in t&&!(Fd.call(n,"hProperties")||Fd.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 qN(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
165
+ `});++r<e.length;)r&&n.push({type:"text",value:`
166
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
167
+ `}),n}function Vx(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Ux(e,t){const n=jN(e,t),r=n.one(e,void 0),i=LN(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
168
+ `},i),o}function HN(e,t){return e&&"run"in e?async function(n,r){const i=Ux(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Ux(n,{file:r,...e||t})}}function qx(e){if(e)throw e}var Vl=Object.prototype.hasOwnProperty,Vk=Object.prototype.toString,Hx=Object.defineProperty,Wx=Object.getOwnPropertyDescriptor,Yx=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Vk.call(t)==="[object Array]"},Gx=function(t){if(!t||Vk.call(t)!=="[object Object]")return!1;var n=Vl.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Vl.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Vl.call(t,i)},Kx=function(t,n){Hx&&n.name==="__proto__"?Hx(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Xx=function(t,n){if(n==="__proto__")if(Vl.call(t,n)){if(Wx)return Wx(t,n).value}else return;return t[n]},WN=function e(){var t,n,r,i,o,s,a=arguments[0],l=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<u;++l)if(t=arguments[l],t!=null)for(n in t)r=Xx(a,n),i=Xx(t,n),a!==i&&(c&&i&&(Gx(i)||(o=Yx(i)))?(o?(o=!1,s=r&&Yx(r)?r:[]):s=r&&Gx(r)?r:{},Kx(a,{name:n,newValue:e(c,s,i)})):typeof i<"u"&&Kx(a,{name:n,newValue:i}));return a};const Rh=Ju(WN);function Bd(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function YN(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...i);function a(l,...u){const c=e[++o];let h=-1;if(l){s(l);return}for(;++h<i.length;)(u[h]===null||u[h]===void 0)&&(u[h]=i[h]);i=u,c?GN(c,a)(...u):s(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function GN(e,t){let n;return r;function r(...s){const a=e.length>s.length;let l;a&&s.push(i);try{l=e.apply(this,s)}catch(u){const c=u;if(a&&n)throw c;return i(c)}a||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(s,...a){n||(n=!0,t(s,...a))}function o(s){i(null,s)}}const In={basename:KN,dirname:XN,extname:QN,join:ZN,sep:"/"};function KN(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Da(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else s<0&&(o=!0,s=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function XN(e){if(Da(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||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function QN(e){Da(e);let t=e.length,n=-1,r=0,i=-1,o=0,s;for(;t--;){const a=e.codePointAt(t);if(a===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),a===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function ZN(...e){let t=-1,n;for(;++t<e.length;)Da(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":JN(n)}function JN(e){Da(e);const t=e.codePointAt(0)===47;let n=eI(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function eI(e,t){let n="",r=0,i=-1,o=0,s=-1,a,l;for(;++s<=e.length;){if(s<e.length)a=e.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=s,o=0;continue}}else if(n.length>0){n="",r=0,i=s,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,o=0}else a===46&&o>-1?o++:o=-1}return n}function Da(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const tI={cwd:nI};function nI(){return"/"}function Md(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function rI(e){if(typeof e=="string")e=new URL(e);else if(!Md(e)){const t=new 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:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return iI(e)}function iI(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const zh=["history","path","basename","stem","extname","dirname"];class Uk{constructor(t){let n;t?Md(t)?n={path:t}:typeof t=="string"||oI(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":tI.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<zh.length;){const o=zh[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)zh.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?In.basename(this.path):void 0}set basename(t){$h(t,"basename"),jh(t,"basename"),this.path=In.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?In.dirname(this.path):void 0}set dirname(t){Qx(this.basename,"dirname"),this.path=In.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?In.extname(this.path):void 0}set extname(t){if(jh(t,"extname"),Qx(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=In.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Md(t)&&(t=rI(t)),$h(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?In.basename(this.path,this.extname):void 0}set stem(t){$h(t,"stem"),jh(t,"stem"),this.path=In.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new mt(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function jh(e,t){if(e&&e.includes(In.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+In.sep+"`")}function $h(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Qx(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function oI(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const sI=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},aI={}.hasOwnProperty;class Hm extends sI{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=YN()}copy(){const t=new Hm;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Rh(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(qh("data",this.frozen),this.namespace[t]=n,this):aI.call(this.namespace,t)&&this.namespace[t]||void 0:t?(qh("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=gl(t),r=this.parser||this.Parser;return Vh("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Vh("process",this.parser||this.Parser),Uh("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,s){const a=gl(t),l=r.parse(a);r.run(l,a,function(c,h,f){if(c||!h||!f)return u(c);const d=h,g=r.stringify(d,f);cI(g)?f.value=g:f.result=g,u(c,f)});function u(c,h){c||!h?s(c):o?o(h):n(void 0,h)}}}processSync(t){let n=!1,r;return this.freeze(),Vh("processSync",this.parser||this.Parser),Uh("processSync",this.compiler||this.Compiler),this.process(t,i),Jx("processSync","process",n),r;function i(o,s){n=!0,qx(o),r=s}}run(t,n,r){Zx(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(s,a){const l=gl(n);i.run(t,l,u);function u(c,h,f){const d=h||t;c?a(c):s?s(d):r(void 0,d,f)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),Jx("runSync","run",r),i;function o(s,a){qx(s),i=a,r=!0}}stringify(t,n){this.freeze();const r=gl(n),i=this.compiler||this.Compiler;return Uh("stringify",i),Zx(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(qh("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...h]=u;l(c,h)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new 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");a(u.plugins),u.settings&&(i.settings=Rh(!0,i.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const h=u[c];o(h)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let h=-1,f=-1;for(;++h<r.length;)if(r[h][0]===u){f=h;break}if(f===-1)r.push([u,...c]);else if(c.length>0){let[d,...g]=c;const y=r[f][1];Bd(y)&&Bd(d)&&(d=Rh(!0,y,d)),r[f]=[u,d,...g]}}}}const lI=new Hm().freeze();function Vh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Uh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function qh(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Zx(e){if(!Bd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Jx(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function gl(e){return uI(e)?e:new Uk(e)}function uI(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function cI(e){return typeof e=="string"||hI(e)}function hI(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const fI="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",e1=[],t1={allowDangerousHtml:!0},dI=/^(https?|ircs?|mailto|xmpp)$/i,pI=[{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:"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 yl(e){const t=mI(e),n=gI(e);return yI(t.runSync(t.parse(n),n),e)}function mI(e){const t=e.rehypePlugins||e1,n=e.remarkPlugins||e1,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...t1}:t1;return lI().use(K5).use(n).use(HN,r).use(t)}function gI(e){const t=e.children||"",n=new Uk;return typeof t=="string"&&(n.value=t),n}function yI(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,s=t.skipHtml,a=t.unwrapDisallowed,l=t.urlTransform||xI;for(const c of pI)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+fI+c.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),$k(e,u),AB(e,{Fragment:C.Fragment,components:i,ignoreInvalidStyle:!0,jsx:C.jsx,jsxs:C.jsxs,passKeys:!0,passNode:!0});function u(c,h,f){if(c.type==="raw"&&f&&typeof h=="number")return s?f.children.splice(h,1):f.children[h]={type:"text",value:c.value},h;if(c.type==="element"){let d;for(d in Ih)if(Object.hasOwn(Ih,d)&&Object.hasOwn(c.properties,d)){const g=c.properties[d],y=Ih[d];(y===null||y.includes(c.tagName))&&(c.properties[d]=l(String(g||""),d,c))}}if(c.type==="element"){let d=n?!n.includes(c.tagName):o?o.includes(c.tagName):!1;if(!d&&r&&typeof h=="number"&&(d=!r(c,h,f)),d&&f&&typeof h=="number")return a&&c.children?f.children.splice(h,1,...c.children):f.children.splice(h,1),h}}}function xI(e){const 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||dI.test(e.slice(0,t))?e:""}function vI(){const[e,t]=R.useState(""),[n,r]=R.useState(!0),[i,o]=R.useState(null);R.useEffect(()=>{fetch("/api/soul").then(h=>{if(!h.ok)throw new Error(`Failed to fetch: ${h.statusText}`);return h.json()}).then(h=>{if(h.error)o(h.error),console.error("[TheSoul] API error:",h.error);else{const f=h.content||"";t(f),f?console.log("[TheSoul] Loaded content, length:",f.length):console.warn("[TheSoul] Content is empty")}r(!1)}).catch(h=>{o(h.message||"Failed to load PROJECT_MEMORY.md"),r(!1)})},[]);const a=(h=>{const f=[],d=h.split(`
169
+ `);let g={title:"",content:""};return d.forEach(y=>{y.startsWith("## ")?(g.title&&f.push({...g}),g={title:y.replace("## ",""),content:""}):g.title&&(g.content+=y+`
170
+ `)}),g.title&&f.push(g),f})(e),l=a.find(h=>h.title.includes("Recent Decisions")),u=a.find(h=>h.title.includes("Pinned Files")),c=a.filter(h=>!h.title.includes("Recent Decisions")&&!h.title.includes("Pinned Files"));return n?C.jsx("div",{className:"flex items-center justify-center h-64",children:C.jsxs("div",{className:"flex items-center gap-3 text-vg-textMuted",children:[C.jsx(wc,{className:"w-5 h-5 animate-spin text-vg-indigo"}),C.jsx("span",{className:"text-sm",children:"Loading PROJECT_MEMORY.md..."})]})}):i?C.jsxs(ve.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"bento-card border-vg-error/30 shadow-glow-error",children:[C.jsx("h2",{className:"text-vg-error font-medium text-sm mb-2",children:"Error Loading Soul"}),C.jsx("p",{className:"text-vg-textMuted text-xs mb-2",children:i}),C.jsx("p",{className:"text-vg-textMuted text-xs",children:"Make sure PROJECT_MEMORY.md exists in the project root."})]}):!n&&!i&&(!e||e.trim().length===0)?C.jsxs(ve.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"max-w-6xl",children:[C.jsxs(ve.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"mb-6",children:[C.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[C.jsx(Cd,{className:"w-5 h-5 text-vg-indigo"}),C.jsx("h1",{className:"text-xl font-semibold text-gradient",children:"The Soul"})]}),C.jsx("p",{className:"text-xs text-vg-textMuted ml-8",children:"Persistent project memory • PROJECT_MEMORY.md"})]}),C.jsxs(ve.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bento-card border-vg-warning/30",children:[C.jsx("h2",{className:"text-vg-warning font-medium text-sm mb-2",children:"Empty PROJECT_MEMORY.md"}),C.jsx("p",{className:"text-vg-textMuted text-xs mb-2",children:"The PROJECT_MEMORY.md file exists but is empty."}),C.jsxs("p",{className:"text-vg-textMuted text-xs",children:["Run ",C.jsx("code",{className:"px-1.5 py-0.5 bg-vg-bgSecondary rounded text-vg-textSecondary font-mono text-xs",children:"vibeguard init"})," to initialize it."]})]})]}):C.jsxs("div",{className:"max-w-6xl",children:[C.jsxs(ve.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"mb-6",children:[C.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[C.jsx(Cd,{className:"w-5 h-5 text-vg-indigo"}),C.jsx("h1",{className:"text-xl font-semibold text-gradient",children:"The Soul"})]}),C.jsx("p",{className:"text-xs text-vg-textMuted ml-8",children:"Persistent project memory • PROJECT_MEMORY.md"})]}),C.jsxs("div",{className:"grid grid-cols-12 gap-4",children:[l&&C.jsxs(ve.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"col-span-12 lg:col-span-8 bento-card",children:[C.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[C.jsx(_3,{className:"w-4 h-4 text-vg-indigo"}),C.jsx("h2",{className:"text-sm font-medium text-vg-text",children:l.title})]}),C.jsx("div",{className:"prose-vg max-h-[400px] overflow-y-auto pr-2",children:C.jsx(yl,{children:l.content})})]}),u&&C.jsxs(ve.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"col-span-12 lg:col-span-4 bento-card",children:[C.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[C.jsx(k3,{className:"w-4 h-4 text-vg-violet"}),C.jsx("h2",{className:"text-sm font-medium text-vg-text",children:u.title})]}),C.jsx("div",{className:"prose-vg",children:C.jsx(yl,{children:u.content})})]}),c.map((h,f)=>C.jsxs(ve.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3+f*.1},className:"col-span-12 md:col-span-6 bento-card",children:[C.jsx("h2",{className:"text-sm font-medium text-vg-text mb-3",children:h.title}),C.jsx("div",{className:"prose-vg",children:C.jsx(yl,{children:h.content})})]},h.title)),a.length===0&&e&&C.jsx(ve.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"col-span-12 bento-card",children:C.jsx("div",{className:"prose-vg",children:C.jsx(yl,{children:e})})})]})]})}function CI(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.from(typeof e=="string"?[e]:e);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var i=r.reduce(function(a,l){var u=l.match(/\n([\t ]+|(?!\s).)/g);return u?a.concat(u.map(function(c){var h,f;return(f=(h=c.match(/[\t ]/g))===null||h===void 0?void 0:h.length)!==null&&f!==void 0?f:0})):a},[]);if(i.length){var o=new RegExp(`
171
+ [ ]{`+Math.min.apply(Math,i)+"}","g");r=r.map(function(a){return a.replace(o,`
172
+ `)})}r[0]=r[0].replace(/^\r?\n/,"");var s=r[0];return t.forEach(function(a,l){var u=s.match(/(?:^|\n)( *)$/),c=u?u[1]:"",h=a;typeof a=="string"&&a.includes(`
173
+ `)&&(h=String(a).split(`
174
+ `).map(function(f,d){return d===0?f:""+c+f}).join(`
175
+ `)),s+=h+r[l+1]}),s}const _I="modulepreload",wI=function(e){return"/"+e},n1={},Me=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=wI(l),l in n1)return;n1[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":_I,u||(h.as="script"),h.crossOrigin="",h.href=l,a&&h.setAttribute("nonce",a),document.head.appendChild(h),u)return new Promise((f,d)=>{h.addEventListener("load",f),h.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};var qk={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Gs,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",s="second",a="minute",l="hour",u="day",c="week",h="month",f="quarter",d="year",g="date",y="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(H){var N=["th","st","nd","rd"],I=H%100;return"["+H+(N[(I-20)%10]||N[I]||N[0])+"]"}},x=function(H,N,I){var O=String(H);return!O||O.length>=N?H:""+Array(N+1-O.length).join(I)+H},S={s:x,z:function(H){var N=-H.utcOffset(),I=Math.abs(N),O=Math.floor(I/60),A=I%60;return(N<=0?"+":"-")+x(O,2,"0")+":"+x(A,2,"0")},m:function H(N,I){if(N.date()<I.date())return-H(I,N);var O=12*(I.year()-N.year())+(I.month()-N.month()),A=N.clone().add(O,h),M=I-A<0,v=N.clone().add(O+(M?-1:1),h);return+(-(O+(I-A)/(M?A-v:v-A))||0)},a:function(H){return H<0?Math.ceil(H)||0:Math.floor(H)},p:function(H){return{M:h,y:d,w:c,d:u,D:g,h:l,m:a,s,ms:o,Q:f}[H]||String(H||"").toLowerCase().replace(/s$/,"")},u:function(H){return H===void 0}},b="en",w={};w[b]=m;var L="$isDayjsObject",P=function(H){return H instanceof Y||!(!H||!H[L])},W=function H(N,I,O){var A;if(!N)return b;if(typeof N=="string"){var M=N.toLowerCase();w[M]&&(A=M),I&&(w[M]=I,A=M);var v=N.split("-");if(!A&&v.length>1)return H(v[0])}else{var U=N.name;w[U]=N,A=U}return!O&&A&&(b=A),A||!O&&b},D=function(H,N){if(P(H))return H.clone();var I=typeof N=="object"?N:{};return I.date=H,I.args=arguments,new Y(I)},B=S;B.l=W,B.i=P,B.w=function(H,N){return D(H,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var Y=function(){function H(I){this.$L=W(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[L]=!0}var N=H.prototype;return N.parse=function(I){this.$d=function(O){var A=O.date,M=O.utc;if(A===null)return new Date(NaN);if(B.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var v=A.match(k);if(v){var U=v[2]-1||0,J=(v[7]||"0").substring(0,3);return M?new Date(Date.UTC(v[1],U,v[3]||1,v[4]||0,v[5]||0,v[6]||0,J)):new Date(v[1],U,v[3]||1,v[4]||0,v[5]||0,v[6]||0,J)}}return new Date(A)}(I),this.init()},N.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},N.$utils=function(){return B},N.isValid=function(){return this.$d.toString()!==y},N.isSame=function(I,O){var A=D(I);return this.startOf(O)<=A&&A<=this.endOf(O)},N.isAfter=function(I,O){return D(I)<this.startOf(O)},N.isBefore=function(I,O){return this.endOf(O)<D(I)},N.$g=function(I,O,A){return B.u(I)?this[O]:this.set(A,I)},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this.$d.getTime()},N.startOf=function(I,O){var A=this,M=!!B.u(O)||O,v=B.p(I),U=function(Ze,we){var it=B.w(A.$u?Date.UTC(A.$y,we,Ze):new Date(A.$y,we,Ze),A);return M?it:it.endOf(u)},J=function(Ze,we){return B.w(A.toDate()[Ze].apply(A.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(we)),A)},_=this.$W,ue=this.$M,se=this.$D,ce="set"+(this.$u?"UTC":"");switch(v){case d:return M?U(1,0):U(31,11);case h:return M?U(1,ue):U(0,ue+1);case c:var Ne=this.$locale().weekStart||0,Oe=(_<Ne?_+7:_)-Ne;return U(M?se-Oe:se+(6-Oe),ue);case u:case g:return J(ce+"Hours",0);case l:return J(ce+"Minutes",1);case a:return J(ce+"Seconds",2);case s:return J(ce+"Milliseconds",3);default:return this.clone()}},N.endOf=function(I){return this.startOf(I,!1)},N.$set=function(I,O){var A,M=B.p(I),v="set"+(this.$u?"UTC":""),U=(A={},A[u]=v+"Date",A[g]=v+"Date",A[h]=v+"Month",A[d]=v+"FullYear",A[l]=v+"Hours",A[a]=v+"Minutes",A[s]=v+"Seconds",A[o]=v+"Milliseconds",A)[M],J=M===u?this.$D+(O-this.$W):O;if(M===h||M===d){var _=this.clone().set(g,1);_.$d[U](J),_.init(),this.$d=_.set(g,Math.min(this.$D,_.daysInMonth())).$d}else U&&this.$d[U](J);return this.init(),this},N.set=function(I,O){return this.clone().$set(I,O)},N.get=function(I){return this[B.p(I)]()},N.add=function(I,O){var A,M=this;I=Number(I);var v=B.p(O),U=function(ue){var se=D(M);return B.w(se.date(se.date()+Math.round(ue*I)),M)};if(v===h)return this.set(h,this.$M+I);if(v===d)return this.set(d,this.$y+I);if(v===u)return U(1);if(v===c)return U(7);var J=(A={},A[a]=r,A[l]=i,A[s]=n,A)[v]||1,_=this.$d.getTime()+I*J;return B.w(_,this)},N.subtract=function(I,O){return this.add(-1*I,O)},N.format=function(I){var O=this,A=this.$locale();if(!this.isValid())return A.invalidDate||y;var M=I||"YYYY-MM-DDTHH:mm:ssZ",v=B.z(this),U=this.$H,J=this.$m,_=this.$M,ue=A.weekdays,se=A.months,ce=A.meridiem,Ne=function(we,it,bn,jt){return we&&(we[it]||we(O,M))||bn[it].slice(0,jt)},Oe=function(we){return B.s(U%12||12,we,"0")},Ze=ce||function(we,it,bn){var jt=we<12?"AM":"PM";return bn?jt.toLowerCase():jt};return M.replace(p,function(we,it){return it||function(bn){switch(bn){case"YY":return String(O.$y).slice(-2);case"YYYY":return B.s(O.$y,4,"0");case"M":return _+1;case"MM":return B.s(_+1,2,"0");case"MMM":return Ne(A.monthsShort,_,se,3);case"MMMM":return Ne(se,_);case"D":return O.$D;case"DD":return B.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return Ne(A.weekdaysMin,O.$W,ue,2);case"ddd":return Ne(A.weekdaysShort,O.$W,ue,3);case"dddd":return ue[O.$W];case"H":return String(U);case"HH":return B.s(U,2,"0");case"h":return Oe(1);case"hh":return Oe(2);case"a":return Ze(U,J,!0);case"A":return Ze(U,J,!1);case"m":return String(J);case"mm":return B.s(J,2,"0");case"s":return String(O.$s);case"ss":return B.s(O.$s,2,"0");case"SSS":return B.s(O.$ms,3,"0");case"Z":return v}return null}(we)||v.replace(":","")})},N.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},N.diff=function(I,O,A){var M,v=this,U=B.p(O),J=D(I),_=(J.utcOffset()-this.utcOffset())*r,ue=this-J,se=function(){return B.m(v,J)};switch(U){case d:M=se()/12;break;case h:M=se();break;case f:M=se()/3;break;case c:M=(ue-_)/6048e5;break;case u:M=(ue-_)/864e5;break;case l:M=ue/i;break;case a:M=ue/r;break;case s:M=ue/n;break;default:M=ue}return A?M:B.a(M)},N.daysInMonth=function(){return this.endOf(h).$D},N.$locale=function(){return w[this.$L]},N.locale=function(I,O){if(!I)return this.$L;var A=this.clone(),M=W(I,O,!0);return M&&(A.$L=M),A},N.clone=function(){return B.w(this.$d,this)},N.toDate=function(){return new Date(this.valueOf())},N.toJSON=function(){return this.isValid()?this.toISOString():null},N.toISOString=function(){return this.$d.toISOString()},N.toString=function(){return this.$d.toUTCString()},H}(),ae=Y.prototype;return D.prototype=ae,[["$ms",o],["$s",s],["$m",a],["$H",l],["$W",u],["$M",h],["$y",d],["$D",g]].forEach(function(H){ae[H[1]]=function(N){return this.$g(N,H[0],H[1])}}),D.extend=function(H,N){return H.$i||(H(N,Y,D),H.$i=!0),D},D.locale=W,D.isDayjs=P,D.unix=function(H){return D(1e3*H)},D.en=w[b],D.Ls=w,D.p={},D})})(qk);var kI=qk.exports;const SI=Ju(kI);var Hk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeUrl=e.BLANK_URL=void 0;var t=/^([^\w]*)(javascript|data|vbscript)/im,n=/&#(\w+)(^\w|;)?/g,r=/&(newline|tab);/gi,i=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,o=/^.+(:|&colon;)/gim,s=[".","/"];e.BLANK_URL="about:blank";function a(c){return s.indexOf(c[0])>-1}function l(c){var h=c.replace(i,"");return h.replace(n,function(f,d){return String.fromCharCode(d)})}function u(c){if(!c)return e.BLANK_URL;var h=l(c).replace(r,"").replace(i,"").trim();if(!h)return e.BLANK_URL;if(a(h))return h;var f=h.match(o);if(!f)return h;var d=f[0];return t.test(d)?e.BLANK_URL:h}e.sanitizeUrl=u})(Hk);var TI={value:()=>{}};function Wk(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Ul(n)}function Ul(e){this._=e}function bI(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Ul.prototype=Wk.prototype={constructor:Ul,on:function(e,t){var n=this._,r=bI(e+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((i=(e=r[o]).type)&&(i=EI(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<s;)if(i=(e=r[o]).type)n[i]=r1(n[i],e.name,t);else if(t==null)for(i in n)n[i]=r1(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Ul(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],r=0,i=o.length;r<i;++r)o[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};function EI(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function r1(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=TI,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Nd="http://www.w3.org/1999/xhtml";const i1={svg:"http://www.w3.org/2000/svg",xhtml:Nd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ec(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),i1.hasOwnProperty(t)?{space:i1[t],local:e}:e}function AI(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Nd&&t.documentElement.namespaceURI===Nd?t.createElement(e):t.createElementNS(n,e)}}function LI(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Yk(e){var t=Ec(e);return(t.local?LI:AI)(t)}function PI(){}function Wm(e){return e==null?PI:function(){return this.querySelector(e)}}function FI(e){typeof e!="function"&&(e=Wm(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],s=o.length,a=r[i]=new Array(s),l,u,c=0;c<s;++c)(l=o[c])&&(u=e.call(l,l.__data__,c,o))&&("__data__"in l&&(u.__data__=l.__data__),a[c]=u);return new Kt(r,this._parents)}function BI(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function MI(){return[]}function Gk(e){return e==null?MI:function(){return this.querySelectorAll(e)}}function NI(e){return function(){return BI(e.apply(this,arguments))}}function II(e){typeof e=="function"?e=NI(e):e=Gk(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var s=t[o],a=s.length,l,u=0;u<a;++u)(l=s[u])&&(r.push(e.call(l,l.__data__,u,s)),i.push(l));return new Kt(r,i)}function Kk(e){return function(){return this.matches(e)}}function Xk(e){return function(t){return t.matches(e)}}var DI=Array.prototype.find;function OI(e){return function(){return DI.call(this.children,e)}}function RI(){return this.firstElementChild}function zI(e){return this.select(e==null?RI:OI(typeof e=="function"?e:Xk(e)))}var jI=Array.prototype.filter;function $I(){return Array.from(this.children)}function VI(e){return function(){return jI.call(this.children,e)}}function UI(e){return this.selectAll(e==null?$I:VI(typeof e=="function"?e:Xk(e)))}function qI(e){typeof e!="function"&&(e=Kk(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],s=o.length,a=r[i]=[],l,u=0;u<s;++u)(l=o[u])&&e.call(l,l.__data__,u,o)&&a.push(l);return new Kt(r,this._parents)}function Qk(e){return new Array(e.length)}function HI(){return new Kt(this._enter||this._groups.map(Qk),this._parents)}function Fu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Fu.prototype={constructor:Fu,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function WI(e){return function(){return e}}function YI(e,t,n,r,i,o){for(var s=0,a,l=t.length,u=o.length;s<u;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new Fu(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function GI(e,t,n,r,i,o,s){var a,l,u=new Map,c=t.length,h=o.length,f=new Array(c),d;for(a=0;a<c;++a)(l=t[a])&&(f[a]=d=s.call(l,l.__data__,a,t)+"",u.has(d)?i[a]=l:u.set(d,l));for(a=0;a<h;++a)d=s.call(e,o[a],a,o)+"",(l=u.get(d))?(r[a]=l,l.__data__=o[a],u.delete(d)):n[a]=new Fu(e,o[a]);for(a=0;a<c;++a)(l=t[a])&&u.get(f[a])===l&&(i[a]=l)}function KI(e){return e.__data__}function XI(e,t){if(!arguments.length)return Array.from(this,KI);var n=t?GI:YI,r=this._parents,i=this._groups;typeof e!="function"&&(e=WI(e));for(var o=i.length,s=new Array(o),a=new Array(o),l=new Array(o),u=0;u<o;++u){var c=r[u],h=i[u],f=h.length,d=QI(e.call(c,c&&c.__data__,u,r)),g=d.length,y=a[u]=new Array(g),k=s[u]=new Array(g),p=l[u]=new Array(f);n(c,h,y,k,p,d,t);for(var m=0,x=0,S,b;m<g;++m)if(S=y[m]){for(m>=x&&(x=m+1);!(b=k[x])&&++x<g;);S._next=b||null}}return s=new Kt(s,r),s._enter=a,s._exit=l,s}function QI(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function ZI(){return new Kt(this._exit||this._groups.map(Qk),this._parents)}function JI(e,t,n){var r=this.enter(),i=this,o=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function e4(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,s=Math.min(i,o),a=new Array(i),l=0;l<s;++l)for(var u=n[l],c=r[l],h=u.length,f=a[l]=new Array(h),d,g=0;g<h;++g)(d=u[g]||c[g])&&(f[g]=d);for(;l<i;++l)a[l]=n[l];return new Kt(a,this._parents)}function t4(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,o=r[i],s;--i>=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function n4(e){e||(e=r4);function t(h,f){return h&&f?e(h.__data__,f.__data__):!h-!f}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s=n[o],a=s.length,l=i[o]=new Array(a),u,c=0;c<a;++c)(u=s[c])&&(l[c]=u);l.sort(t)}return new Kt(i,this._parents).order()}function r4(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function i4(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function o4(){return Array.from(this)}function s4(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null}function a4(){let e=0;for(const t of this)++e;return e}function l4(){return!this.node()}function u4(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],o=0,s=i.length,a;o<s;++o)(a=i[o])&&e.call(a,a.__data__,o,i);return this}function c4(e){return function(){this.removeAttribute(e)}}function h4(e){return function(){this.removeAttributeNS(e.space,e.local)}}function f4(e,t){return function(){this.setAttribute(e,t)}}function d4(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function p4(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function m4(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function g4(e,t){var n=Ec(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?h4:c4:typeof t=="function"?n.local?m4:p4:n.local?d4:f4)(n,t))}function Zk(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function y4(e){return function(){this.style.removeProperty(e)}}function x4(e,t,n){return function(){this.style.setProperty(e,t,n)}}function v4(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function C4(e,t,n){return arguments.length>1?this.each((t==null?y4:typeof t=="function"?v4:x4)(e,t,n??"")):Po(this.node(),e)}function Po(e,t){return e.style.getPropertyValue(t)||Zk(e).getComputedStyle(e,null).getPropertyValue(t)}function _4(e){return function(){delete this[e]}}function w4(e,t){return function(){this[e]=t}}function k4(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function S4(e,t){return arguments.length>1?this.each((t==null?_4:typeof t=="function"?k4:w4)(e,t)):this.node()[e]}function Jk(e){return e.trim().split(/^|\s+/)}function Ym(e){return e.classList||new eS(e)}function eS(e){this._node=e,this._names=Jk(e.getAttribute("class")||"")}eS.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function tS(e,t){for(var n=Ym(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function nS(e,t){for(var n=Ym(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function T4(e){return function(){tS(this,e)}}function b4(e){return function(){nS(this,e)}}function E4(e,t){return function(){(t.apply(this,arguments)?tS:nS)(this,e)}}function A4(e,t){var n=Jk(e+"");if(arguments.length<2){for(var r=Ym(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?E4:t?T4:b4)(n,t))}function L4(){this.textContent=""}function P4(e){return function(){this.textContent=e}}function F4(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function B4(e){return arguments.length?this.each(e==null?L4:(typeof e=="function"?F4:P4)(e)):this.node().textContent}function M4(){this.innerHTML=""}function N4(e){return function(){this.innerHTML=e}}function I4(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function D4(e){return arguments.length?this.each(e==null?M4:(typeof e=="function"?I4:N4)(e)):this.node().innerHTML}function O4(){this.nextSibling&&this.parentNode.appendChild(this)}function R4(){return this.each(O4)}function z4(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function j4(){return this.each(z4)}function $4(e){var t=typeof e=="function"?e:Yk(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function V4(){return null}function U4(e,t){var n=typeof e=="function"?e:Yk(e),r=t==null?V4:typeof t=="function"?t:Wm(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function q4(){var e=this.parentNode;e&&e.removeChild(this)}function H4(){return this.each(q4)}function W4(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Y4(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function G4(e){return this.select(e?Y4:W4)}function K4(e){return arguments.length?this.property("__data__",e):this.node().__data__}function X4(e){return function(t){e.call(this,t,this.__data__)}}function Q4(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function Z4(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,o;n<i;++n)o=t[n],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++r]=o;++r?t.length=r:delete this.__on}}}function J4(e,t,n){return function(){var r=this.__on,i,o=X4(t);if(r){for(var s=0,a=r.length;s<a;++s)if((i=r[s]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=t;return}}this.addEventListener(e.type,o,n),i={type:e.type,name:e.name,value:t,listener:o,options:n},r?r.push(i):this.__on=[i]}}function eD(e,t,n){var r=Q4(e+""),i,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,u=a.length,c;l<u;++l)for(i=0,c=a[l];i<o;++i)if((s=r[i]).type===c.type&&s.name===c.name)return c.value}return}for(a=t?J4:Z4,i=0;i<o;++i)this.each(a(r[i],t,n));return this}function rS(e,t,n){var r=Zk(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function tD(e,t){return function(){return rS(this,e,t)}}function nD(e,t){return function(){return rS(this,e,t.apply(this,arguments))}}function rD(e,t){return this.each((typeof t=="function"?nD:tD)(e,t))}function*iD(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length,s;i<o;++i)(s=r[i])&&(yield s)}var iS=[null];function Kt(e,t){this._groups=e,this._parents=t}function Oa(){return new Kt([[document.documentElement]],iS)}function oD(){return this}Kt.prototype=Oa.prototype={constructor:Kt,select:FI,selectAll:II,selectChild:zI,selectChildren:UI,filter:qI,data:XI,enter:HI,exit:ZI,join:JI,merge:e4,selection:oD,order:t4,sort:n4,call:i4,nodes:o4,node:s4,size:a4,empty:l4,each:u4,attr:g4,style:C4,property:S4,classed:A4,text:B4,html:D4,raise:R4,lower:j4,append:$4,insert:U4,remove:H4,clone:G4,datum:K4,on:eD,dispatch:rD,[Symbol.iterator]:iD};function tn(e){return typeof e=="string"?new Kt([[document.querySelector(e)]],[document.documentElement]):new Kt([[e]],iS)}function Gm(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function oS(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ra(){}var xa=.7,Bu=1/xa,yo="\\s*([+-]?\\d+)\\s*",va="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Un="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",sD=/^#([0-9a-f]{3,8})$/,aD=new RegExp(`^rgb\\(${yo},${yo},${yo}\\)$`),lD=new RegExp(`^rgb\\(${Un},${Un},${Un}\\)$`),uD=new RegExp(`^rgba\\(${yo},${yo},${yo},${va}\\)$`),cD=new RegExp(`^rgba\\(${Un},${Un},${Un},${va}\\)$`),hD=new RegExp(`^hsl\\(${va},${Un},${Un}\\)$`),fD=new RegExp(`^hsla\\(${va},${Un},${Un},${va}\\)$`),o1={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Gm(Ra,Ca,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:s1,formatHex:s1,formatHex8:dD,formatHsl:pD,formatRgb:a1,toString:a1});function s1(){return this.rgb().formatHex()}function dD(){return this.rgb().formatHex8()}function pD(){return sS(this).formatHsl()}function a1(){return this.rgb().formatRgb()}function Ca(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=sD.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?l1(t):n===3?new Mt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?xl(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?xl(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=aD.exec(e))?new Mt(t[1],t[2],t[3],1):(t=lD.exec(e))?new Mt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=uD.exec(e))?xl(t[1],t[2],t[3],t[4]):(t=cD.exec(e))?xl(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=hD.exec(e))?h1(t[1],t[2]/100,t[3]/100,1):(t=fD.exec(e))?h1(t[1],t[2]/100,t[3]/100,t[4]):o1.hasOwnProperty(e)?l1(o1[e]):e==="transparent"?new Mt(NaN,NaN,NaN,0):null}function l1(e){return new Mt(e>>16&255,e>>8&255,e&255,1)}function xl(e,t,n,r){return r<=0&&(e=t=n=NaN),new Mt(e,t,n,r)}function mD(e){return e instanceof Ra||(e=Ca(e)),e?(e=e.rgb(),new Mt(e.r,e.g,e.b,e.opacity)):new Mt}function Id(e,t,n,r){return arguments.length===1?mD(e):new Mt(e,t,n,r??1)}function Mt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Gm(Mt,Id,oS(Ra,{brighter(e){return e=e==null?Bu:Math.pow(Bu,e),new Mt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?xa:Math.pow(xa,e),new Mt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Mt(xi(this.r),xi(this.g),xi(this.b),Mu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:u1,formatHex:u1,formatHex8:gD,formatRgb:c1,toString:c1}));function u1(){return`#${di(this.r)}${di(this.g)}${di(this.b)}`}function gD(){return`#${di(this.r)}${di(this.g)}${di(this.b)}${di((isNaN(this.opacity)?1:this.opacity)*255)}`}function c1(){const e=Mu(this.opacity);return`${e===1?"rgb(":"rgba("}${xi(this.r)}, ${xi(this.g)}, ${xi(this.b)}${e===1?")":`, ${e})`}`}function Mu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function di(e){return e=xi(e),(e<16?"0":"")+e.toString(16)}function h1(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new vn(e,t,n,r)}function sS(e){if(e instanceof vn)return new vn(e.h,e.s,e.l,e.opacity);if(e instanceof Ra||(e=Ca(e)),!e)return new vn;if(e instanceof vn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,a=o-i,l=(o+i)/2;return a?(t===o?s=(n-r)/a+(n<r)*6:n===o?s=(r-t)/a+2:s=(t-n)/a+4,a/=l<.5?o+i:2-o-i,s*=60):a=l>0&&l<1?0:s,new vn(s,a,l,e.opacity)}function yD(e,t,n,r){return arguments.length===1?sS(e):new vn(e,t,n,r??1)}function vn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Gm(vn,yD,oS(Ra,{brighter(e){return e=e==null?Bu:Math.pow(Bu,e),new vn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?xa:Math.pow(xa,e),new vn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Mt(Hh(e>=240?e-240:e+120,i,r),Hh(e,i,r),Hh(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new vn(f1(this.h),vl(this.s),vl(this.l),Mu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Mu(this.opacity);return`${e===1?"hsl(":"hsla("}${f1(this.h)}, ${vl(this.s)*100}%, ${vl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function f1(e){return e=(e||0)%360,e<0?e+360:e}function vl(e){return Math.max(0,Math.min(1,e||0))}function Hh(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Km=e=>()=>e;function aS(e,t){return function(n){return e+n*t}}function xD(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function FU(e,t){var n=t-e;return n?aS(e,n>180||n<-180?n-360*Math.round(n/360):n):Km(isNaN(e)?t:e)}function vD(e){return(e=+e)==1?lS:function(t,n){return n-t?xD(t,n,e):Km(isNaN(t)?n:t)}}function lS(e,t){var n=t-e;return n?aS(e,n):Km(isNaN(e)?t:e)}const d1=function e(t){var n=vD(t);function r(i,o){var s=n((i=Id(i)).r,(o=Id(o)).r),a=n(i.g,o.g),l=n(i.b,o.b),u=lS(i.opacity,o.opacity);return function(c){return i.r=s(c),i.g=a(c),i.b=l(c),i.opacity=u(c),i+""}}return r.gamma=e,r}(1);function Tr(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Dd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Wh=new RegExp(Dd.source,"g");function CD(e){return function(){return e}}function _D(e){return function(t){return e(t)+""}}function wD(e,t){var n=Dd.lastIndex=Wh.lastIndex=0,r,i,o,s=-1,a=[],l=[];for(e=e+"",t=t+"";(r=Dd.exec(e))&&(i=Wh.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:Tr(r,i)})),n=Wh.lastIndex;return n<t.length&&(o=t.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?_D(l[0].x):CD(t):(t=l.length,function(u){for(var c=0,h;c<t;++c)a[(h=l[c]).i]=h.x(u);return a.join("")})}var p1=180/Math.PI,Od={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function uS(e,t,n,r,i,o){var s,a,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),e*r<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*p1,skewX:Math.atan(l)*p1,scaleX:s,scaleY:a}}var Cl;function kD(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Od:uS(t.a,t.b,t.c,t.d,t.e,t.f)}function SD(e){return e==null||(Cl||(Cl=document.createElementNS("http://www.w3.org/2000/svg","g")),Cl.setAttribute("transform",e),!(e=Cl.transform.baseVal.consolidate()))?Od:(e=e.matrix,uS(e.a,e.b,e.c,e.d,e.e,e.f))}function cS(e,t,n,r){function i(u){return u.length?u.pop()+" ":""}function o(u,c,h,f,d,g){if(u!==h||c!==f){var y=d.push("translate(",null,t,null,n);g.push({i:y-4,x:Tr(u,h)},{i:y-2,x:Tr(c,f)})}else(h||f)&&d.push("translate("+h+t+f+n)}function s(u,c,h,f){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),f.push({i:h.push(i(h)+"rotate(",null,r)-2,x:Tr(u,c)})):c&&h.push(i(h)+"rotate("+c+r)}function a(u,c,h,f){u!==c?f.push({i:h.push(i(h)+"skewX(",null,r)-2,x:Tr(u,c)}):c&&h.push(i(h)+"skewX("+c+r)}function l(u,c,h,f,d,g){if(u!==h||c!==f){var y=d.push(i(d)+"scale(",null,",",null,")");g.push({i:y-4,x:Tr(u,h)},{i:y-2,x:Tr(c,f)})}else(h!==1||f!==1)&&d.push(i(d)+"scale("+h+","+f+")")}return function(u,c){var h=[],f=[];return u=e(u),c=e(c),o(u.translateX,u.translateY,c.translateX,c.translateY,h,f),s(u.rotate,c.rotate,h,f),a(u.skewX,c.skewX,h,f),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,h,f),u=c=null,function(d){for(var g=-1,y=f.length,k;++g<y;)h[(k=f[g]).i]=k.x(d);return h.join("")}}}var TD=cS(kD,"px, ","px)","deg)"),bD=cS(SD,", ",")",")"),Fo=0,ks=0,us=0,hS=1e3,Nu,Ss,Iu=0,Ti=0,Ac=0,_a=typeof performance=="object"&&performance.now?performance:Date,fS=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Xm(){return Ti||(fS(ED),Ti=_a.now()+Ac)}function ED(){Ti=0}function Du(){this._call=this._time=this._next=null}Du.prototype=dS.prototype={constructor:Du,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Xm():+n)+(t==null?0:+t),!this._next&&Ss!==this&&(Ss?Ss._next=this:Nu=this,Ss=this),this._call=e,this._time=n,Rd()},stop:function(){this._call&&(this._call=null,this._time=1/0,Rd())}};function dS(e,t,n){var r=new Du;return r.restart(e,t,n),r}function AD(){Xm(),++Fo;for(var e=Nu,t;e;)(t=Ti-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Fo}function m1(){Ti=(Iu=_a.now())+Ac,Fo=ks=0;try{AD()}finally{Fo=0,PD(),Ti=0}}function LD(){var e=_a.now(),t=e-Iu;t>hS&&(Ac-=t,Iu=e)}function PD(){for(var e,t=Nu,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Nu=n);Ss=e,Rd(r)}function Rd(e){if(!Fo){ks&&(ks=clearTimeout(ks));var t=e-Ti;t>24?(e<1/0&&(ks=setTimeout(m1,e-_a.now()-Ac)),us&&(us=clearInterval(us))):(us||(Iu=_a.now(),us=setInterval(LD,hS)),Fo=1,fS(m1))}}function g1(e,t,n){var r=new Du;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var FD=Wk("start","end","cancel","interrupt"),BD=[],pS=0,y1=1,zd=2,ql=3,x1=4,jd=5,Hl=6;function Lc(e,t,n,r,i,o){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;MD(e,n,{name:t,index:r,group:i,on:FD,tween:BD,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:pS})}function Qm(e,t){var n=Tn(e,t);if(n.state>pS)throw new Error("too late; already scheduled");return n}function Gn(e,t){var n=Tn(e,t);if(n.state>ql)throw new Error("too late; already running");return n}function Tn(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function MD(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=dS(o,0,n.time);function o(u){n.state=y1,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var c,h,f,d;if(n.state!==y1)return l();for(c in r)if(d=r[c],d.name===n.name){if(d.state===ql)return g1(s);d.state===x1?(d.state=Hl,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete r[c]):+c<t&&(d.state=Hl,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete r[c])}if(g1(function(){n.state===ql&&(n.state=x1,n.timer.restart(a,n.delay,n.time),a(u))}),n.state=zd,n.on.call("start",e,e.__data__,n.index,n.group),n.state===zd){for(n.state=ql,i=new Array(f=n.tween.length),c=0,h=-1;c<f;++c)(d=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++h]=d);i.length=h+1}}function a(u){for(var c=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(l),n.state=jd,1),h=-1,f=i.length;++h<f;)i[h].call(e,c);n.state===jd&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=Hl,n.timer.stop(),delete r[t];for(var u in r)return;delete e.__transition}}function ND(e,t){var n=e.__transition,r,i,o=!0,s;if(n){t=t==null?null:t+"";for(s in n){if((r=n[s]).name!==t){o=!1;continue}i=r.state>zd&&r.state<jd,r.state=Hl,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[s]}o&&delete e.__transition}}function ID(e){return this.each(function(){ND(this,e)})}function DD(e,t){var n,r;return function(){var i=Gn(this,e),o=i.tween;if(o!==n){r=n=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===t){r=r.slice(),r.splice(s,1);break}}i.tween=r}}function OD(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=Gn(this,e),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:t,value:n},l=0,u=i.length;l<u;++l)if(i[l].name===t){i[l]=a;break}l===u&&i.push(a)}o.tween=i}}function RD(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Tn(this.node(),n).tween,i=0,o=r.length,s;i<o;++i)if((s=r[i]).name===e)return s.value;return null}return this.each((t==null?DD:OD)(n,e,t))}function Zm(e,t,n){var r=e._id;return e.each(function(){var i=Gn(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return Tn(i,r).value[t]}}function mS(e,t){var n;return(typeof t=="number"?Tr:t instanceof Ca?d1:(n=Ca(t))?(t=n,d1):wD)(e,t)}function zD(e){return function(){this.removeAttribute(e)}}function jD(e){return function(){this.removeAttributeNS(e.space,e.local)}}function $D(e,t,n){var r,i=n+"",o;return function(){var s=this.getAttribute(e);return s===i?null:s===r?o:o=t(r=s,n)}}function VD(e,t,n){var r,i=n+"",o;return function(){var s=this.getAttributeNS(e.space,e.local);return s===i?null:s===r?o:o=t(r=s,n)}}function UD(e,t,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=t(r=s,a)))}}function qD(e,t,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=t(r=s,a)))}}function HD(e,t){var n=Ec(e),r=n==="transform"?bD:mS;return this.attrTween(e,typeof t=="function"?(n.local?qD:UD)(n,r,Zm(this,"attr."+e,t)):t==null?(n.local?jD:zD)(n):(n.local?VD:$D)(n,r,t))}function WD(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function YD(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function GD(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&YD(e,o)),n}return i._value=t,i}function KD(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&WD(e,o)),n}return i._value=t,i}function XD(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=Ec(e);return this.tween(n,(r.local?GD:KD)(r,t))}function QD(e,t){return function(){Qm(this,e).delay=+t.apply(this,arguments)}}function ZD(e,t){return t=+t,function(){Qm(this,e).delay=t}}function JD(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?QD:ZD)(t,e)):Tn(this.node(),t).delay}function eO(e,t){return function(){Gn(this,e).duration=+t.apply(this,arguments)}}function tO(e,t){return t=+t,function(){Gn(this,e).duration=t}}function nO(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?eO:tO)(t,e)):Tn(this.node(),t).duration}function rO(e,t){if(typeof t!="function")throw new Error;return function(){Gn(this,e).ease=t}}function iO(e){var t=this._id;return arguments.length?this.each(rO(t,e)):Tn(this.node(),t).ease}function oO(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Gn(this,e).ease=n}}function sO(e){if(typeof e!="function")throw new Error;return this.each(oO(this._id,e))}function aO(e){typeof e!="function"&&(e=Kk(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],s=o.length,a=r[i]=[],l,u=0;u<s;++u)(l=o[u])&&e.call(l,l.__data__,u,o)&&a.push(l);return new mr(r,this._parents,this._name,this._id)}function lO(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var l=t[a],u=n[a],c=l.length,h=s[a]=new Array(c),f,d=0;d<c;++d)(f=l[d]||u[d])&&(h[d]=f);for(;a<r;++a)s[a]=t[a];return new mr(s,this._parents,this._name,this._id)}function uO(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function cO(e,t,n){var r,i,o=uO(t)?Qm:Gn;return function(){var s=o(this,e),a=s.on;a!==r&&(i=(r=a).copy()).on(t,n),s.on=i}}function hO(e,t){var n=this._id;return arguments.length<2?Tn(this.node(),n).on.on(e):this.each(cO(n,e,t))}function fO(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function dO(){return this.on("end.remove",fO(this._id))}function pO(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Wm(e));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var a=r[s],l=a.length,u=o[s]=new Array(l),c,h,f=0;f<l;++f)(c=a[f])&&(h=e.call(c,c.__data__,f,a))&&("__data__"in c&&(h.__data__=c.__data__),u[f]=h,Lc(u[f],t,n,f,u,Tn(c,n)));return new mr(o,this._parents,t,n)}function mO(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Gk(e));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var l=r[a],u=l.length,c,h=0;h<u;++h)if(c=l[h]){for(var f=e.call(c,c.__data__,h,l),d,g=Tn(c,n),y=0,k=f.length;y<k;++y)(d=f[y])&&Lc(d,t,n,y,f,g);o.push(f),s.push(c)}return new mr(o,s,t,n)}var gO=Oa.prototype.constructor;function yO(){return new gO(this._groups,this._parents)}function xO(e,t){var n,r,i;return function(){var o=Po(this,e),s=(this.style.removeProperty(e),Po(this,e));return o===s?null:o===n&&s===r?i:i=t(n=o,r=s)}}function gS(e){return function(){this.style.removeProperty(e)}}function vO(e,t,n){var r,i=n+"",o;return function(){var s=Po(this,e);return s===i?null:s===r?o:o=t(r=s,n)}}function CO(e,t,n){var r,i,o;return function(){var s=Po(this,e),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(e),Po(this,e))),s===l?null:s===r&&l===i?o:(i=l,o=t(r=s,a))}}function _O(e,t){var n,r,i,o="style."+t,s="end."+o,a;return function(){var l=Gn(this,e),u=l.on,c=l.value[o]==null?a||(a=gS(t)):void 0;(u!==n||i!==c)&&(r=(n=u).copy()).on(s,i=c),l.on=r}}function wO(e,t,n){var r=(e+="")=="transform"?TD:mS;return t==null?this.styleTween(e,xO(e,r)).on("end.style."+e,gS(e)):typeof t=="function"?this.styleTween(e,CO(e,r,Zm(this,"style."+e,t))).each(_O(this._id,e)):this.styleTween(e,vO(e,r,t),n).on("end.style."+e,null)}function kO(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function SO(e,t,n){var r,i;function o(){var s=t.apply(this,arguments);return s!==i&&(r=(i=s)&&kO(e,s,n)),r}return o._value=t,o}function TO(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,SO(e,t,n??""))}function bO(e){return function(){this.textContent=e}}function EO(e){return function(){var t=e(this);this.textContent=t??""}}function AO(e){return this.tween("text",typeof e=="function"?EO(Zm(this,"text",e)):bO(e==null?"":e+""))}function LO(e){return function(t){this.textContent=e.call(this,t)}}function PO(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&LO(i)),t}return r._value=e,r}function FO(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,PO(e))}function BO(){for(var e=this._name,t=this._id,n=yS(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,u=0;u<a;++u)if(l=s[u]){var c=Tn(l,t);Lc(l,e,n,u,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new mr(r,this._parents,e,n)}function MO(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--i===0&&o()}};n.each(function(){var u=Gn(this,r),c=u.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),u.on=t}),i===0&&o()})}var NO=0;function mr(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function yS(){return++NO}var Zn=Oa.prototype;mr.prototype={constructor:mr,select:pO,selectAll:mO,selectChild:Zn.selectChild,selectChildren:Zn.selectChildren,filter:aO,merge:lO,selection:yO,transition:BO,call:Zn.call,nodes:Zn.nodes,node:Zn.node,size:Zn.size,empty:Zn.empty,each:Zn.each,on:hO,attr:HD,attrTween:XD,style:wO,styleTween:TO,text:AO,textTween:FO,remove:dO,tween:RD,delay:JD,duration:nO,ease:iO,easeVarying:sO,end:MO,[Symbol.iterator]:Zn[Symbol.iterator]};function IO(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var DO={time:null,delay:0,duration:250,ease:IO};function OO(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function RO(e){var t,n;e instanceof mr?(t=e._id,e=e._name):(t=yS(),(n=DO).time=Xm(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,u=0;u<a;++u)(l=s[u])&&Lc(l,e,t,u,s,n||OO(l,t));return new mr(r,this._parents,e,t)}Oa.prototype.interrupt=ID;Oa.prototype.transition=RO;const BU=Math.abs,MU=Math.atan2,NU=Math.cos,IU=Math.max,DU=Math.min,OU=Math.sin,RU=Math.sqrt,v1=1e-12,Jm=Math.PI,C1=Jm/2,zU=2*Jm;function jU(e){return e>1?0:e<-1?Jm:Math.acos(e)}function $U(e){return e>=1?C1:e<=-1?-C1:Math.asin(e)}function xS(e){this._context=e}xS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function zO(e){return new xS(e)}class vS{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function jO(e){return new vS(e,!0)}function $O(e){return new vS(e,!1)}function qr(){}function Ou(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Pc(e){this._context=e}Pc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ou(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ou(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function VO(e){return new Pc(e)}function CS(e){this._context=e}CS.prototype={areaStart:qr,areaEnd:qr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ou(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function UO(e){return new CS(e)}function _S(e){this._context=e}_S.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ou(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qO(e){return new _S(e)}function wS(e,t){this._basis=new Pc(e),this._beta=t}wS.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],o=e[n]-r,s=t[n]-i,a=-1,l;++a<=n;)l=a/n,this._basis.point(this._beta*e[a]+(1-this._beta)*(r+l*o),this._beta*t[a]+(1-this._beta)*(i+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const HO=function e(t){function n(r){return t===1?new Pc(r):new wS(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Ru(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function eg(e,t){this._context=e,this._k=(1-t)/6}eg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ru(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Ru(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const WO=function e(t){function n(r){return new eg(r,t)}return n.tension=function(r){return e(+r)},n}(0);function tg(e,t){this._context=e,this._k=(1-t)/6}tg.prototype={areaStart:qr,areaEnd:qr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ru(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const YO=function e(t){function n(r){return new tg(r,t)}return n.tension=function(r){return e(+r)},n}(0);function ng(e,t){this._context=e,this._k=(1-t)/6}ng.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ru(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const GO=function e(t){function n(r){return new ng(r,t)}return n.tension=function(r){return e(+r)},n}(0);function rg(e,t,n){var r=e._x1,i=e._y1,o=e._x2,s=e._y2;if(e._l01_a>v1){var a=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*a-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*a-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>v1){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*u+e._x1*e._l23_2a-t*e._l12_2a)/c,s=(s*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,s,e._x2,e._y2)}function kS(e,t){this._context=e,this._alpha=t}kS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:rg(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const KO=function e(t){function n(r){return t?new kS(r,t):new eg(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function SS(e,t){this._context=e,this._alpha=t}SS.prototype={areaStart:qr,areaEnd:qr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:rg(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const XO=function e(t){function n(r){return t?new SS(r,t):new tg(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function TS(e,t){this._context=e,this._alpha=t}TS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:rg(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const QO=function e(t){function n(r){return t?new TS(r,t):new ng(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function bS(e){this._context=e}bS.prototype={areaStart:qr,areaEnd:qr,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function ZO(e){return new bS(e)}function _1(e){return e<0?-1:1}function w1(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0),a=(o*i+s*r)/(r+i);return(_1(o)+_1(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function k1(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Yh(e,t,n){var r=e._x0,i=e._y0,o=e._x1,s=e._y1,a=(o-r)/3;e._context.bezierCurveTo(r+a,i+a*t,o-a,s-a*n,o,s)}function zu(e){this._context=e}zu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Yh(this,this._t0,k1(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Yh(this,k1(this,n=w1(this,e,t)),n);break;default:Yh(this,this._t0,n=w1(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function ES(e){this._context=new AS(e)}(ES.prototype=Object.create(zu.prototype)).point=function(e,t){zu.prototype.point.call(this,t,e)};function AS(e){this._context=e}AS.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function JO(e){return new zu(e)}function eR(e){return new ES(e)}function LS(e){this._context=e}LS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=S1(e),i=S1(t),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[s],t[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function S1(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),s=new Array(n);for(i[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,s[t]-=r*s[t-1];for(i[n-1]=s[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(s[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function tR(e){return new LS(e)}function Fc(e,t){this._context=e,this._t=t}Fc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function nR(e){return new Fc(e,.5)}function rR(e){return new Fc(e,0)}function iR(e){return new Fc(e,1)}function Ts(e,t,n){this.k=e,this.x=t,this.y=n}Ts.prototype={constructor:Ts,scale:function(e){return e===1?this:new Ts(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Ts(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};Ts.prototype;/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:PS,setPrototypeOf:T1,isFrozen:oR,getPrototypeOf:sR,getOwnPropertyDescriptor:aR}=Object;let{freeze:kt,seal:cn,create:$d}=Object,{apply:Vd,construct:Ud}=typeof Reflect<"u"&&Reflect;kt||(kt=function(t){return t});cn||(cn=function(t){return t});Vd||(Vd=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return t.apply(n,i)});Ud||(Ud=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return new t(...r)});const _l=St(Array.prototype.forEach),lR=St(Array.prototype.lastIndexOf),b1=St(Array.prototype.pop),cs=St(Array.prototype.push),uR=St(Array.prototype.splice),Wl=St(String.prototype.toLowerCase),Gh=St(String.prototype.toString),Kh=St(String.prototype.match),hs=St(String.prototype.replace),cR=St(String.prototype.indexOf),hR=St(String.prototype.trim),mn=St(Object.prototype.hasOwnProperty),xt=St(RegExp.prototype.test),fs=fR(TypeError);function St(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Vd(e,t,r)}}function fR(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ud(e,n)}}function fe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Wl;T1&&T1(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const o=n(i);o!==i&&(oR(t)||(t[r]=o),i=o)}e[i]=!0}return e}function dR(e){for(let t=0;t<e.length;t++)mn(e,t)||(e[t]=null);return e}function Mn(e){const t=$d(null);for(const[n,r]of PS(e))mn(e,n)&&(Array.isArray(r)?t[n]=dR(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=Mn(r):t[n]=r);return t}function ds(e,t){for(;e!==null;){const r=aR(e,t);if(r){if(r.get)return St(r.get);if(typeof r.value=="function")return St(r.value)}e=sR(e)}function n(){return null}return n}const E1=kt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Xh=kt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Qh=kt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),pR=kt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Zh=kt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),mR=kt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),A1=kt(["#text"]),L1=kt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Jh=kt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),P1=kt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),wl=kt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),gR=cn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),yR=cn(/<%[\w\W]*|[\w\W]*%>/gm),xR=cn(/\$\{[\w\W]*/gm),vR=cn(/^data-[\-\w.\u00B7-\uFFFF]+$/),CR=cn(/^aria-[\-\w]+$/),FS=cn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_R=cn(/^(?:\w+script|data):/i),wR=cn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),BS=cn(/^html$/i),kR=cn(/^[a-z][.\w]*(-[.\w]+)+$/i);var F1=Object.freeze({__proto__:null,ARIA_ATTR:CR,ATTR_WHITESPACE:wR,CUSTOM_ELEMENT:kR,DATA_ATTR:vR,DOCTYPE_NAME:BS,ERB_EXPR:yR,IS_ALLOWED_URI:FS,IS_SCRIPT_OR_DATA:_R,MUSTACHE_EXPR:gR,TMPLIT_EXPR:xR});const ps={element:1,text:3,progressingInstruction:7,comment:8,document:9},SR=function(){return typeof window>"u"?null:window},TR=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},B1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function MS(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:SR();const t=Z=>MS(Z);if(t.version="3.3.1",t.removed=[],!e||!e.document||e.document.nodeType!==ps.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:u,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:h,DOMParser:f,trustedTypes:d}=e,g=l.prototype,y=ds(g,"cloneNode"),k=ds(g,"remove"),p=ds(g,"nextSibling"),m=ds(g,"childNodes"),x=ds(g,"parentNode");if(typeof s=="function"){const Z=n.createElement("template");Z.content&&Z.content.ownerDocument&&(n=Z.content.ownerDocument)}let S,b="";const{implementation:w,createNodeIterator:L,createDocumentFragment:P,getElementsByTagName:W}=n,{importNode:D}=r;let B=B1();t.isSupported=typeof PS=="function"&&typeof x=="function"&&w&&w.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Y,ERB_EXPR:ae,TMPLIT_EXPR:H,DATA_ATTR:N,ARIA_ATTR:I,IS_SCRIPT_OR_DATA:O,ATTR_WHITESPACE:A,CUSTOM_ELEMENT:M}=F1;let{IS_ALLOWED_URI:v}=F1,U=null;const J=fe({},[...E1,...Xh,...Qh,...Zh,...A1]);let _=null;const ue=fe({},[...L1,...Jh,...P1,...wl]);let se=Object.seal($d(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ce=null,Ne=null;const Oe=Object.seal($d(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ze=!0,we=!0,it=!1,bn=!0,jt=!1,Ii=!0,En=!1,Di=!1,Oi=!1,xr=!1,Zr=!1,Jr=!1,Ua=!0,qa=!1;const Hc="user-content-";let Xo=!0,ei=!1,F={},$=null;const re=fe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let he=null;const ge=fe({},["audio","video","img","source","image","track"]);let gt=null;const An=fe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Et="http://www.w3.org/1998/Math/MathML",Ln="http://www.w3.org/2000/svg",yt="http://www.w3.org/1999/xhtml";let je=yt,Pn=!1,$t=null;const cb=fe({},[Et,Ln,yt],Gh);let Ha=fe({},["mi","mo","mn","ms","mtext"]),Wa=fe({},["annotation-xml"]);const hb=fe({},["title","style","font","a","script"]);let Qo=null;const fb=["application/xhtml+xml","text/html"],db="text/html";let We=null,Ri=null;const pb=n.createElement("form"),bg=function(T){return T instanceof RegExp||T instanceof Function},Wc=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ri&&Ri===T)){if((!T||typeof T!="object")&&(T={}),T=Mn(T),Qo=fb.indexOf(T.PARSER_MEDIA_TYPE)===-1?db:T.PARSER_MEDIA_TYPE,We=Qo==="application/xhtml+xml"?Gh:Wl,U=mn(T,"ALLOWED_TAGS")?fe({},T.ALLOWED_TAGS,We):J,_=mn(T,"ALLOWED_ATTR")?fe({},T.ALLOWED_ATTR,We):ue,$t=mn(T,"ALLOWED_NAMESPACES")?fe({},T.ALLOWED_NAMESPACES,Gh):cb,gt=mn(T,"ADD_URI_SAFE_ATTR")?fe(Mn(An),T.ADD_URI_SAFE_ATTR,We):An,he=mn(T,"ADD_DATA_URI_TAGS")?fe(Mn(ge),T.ADD_DATA_URI_TAGS,We):ge,$=mn(T,"FORBID_CONTENTS")?fe({},T.FORBID_CONTENTS,We):re,ce=mn(T,"FORBID_TAGS")?fe({},T.FORBID_TAGS,We):Mn({}),Ne=mn(T,"FORBID_ATTR")?fe({},T.FORBID_ATTR,We):Mn({}),F=mn(T,"USE_PROFILES")?T.USE_PROFILES:!1,Ze=T.ALLOW_ARIA_ATTR!==!1,we=T.ALLOW_DATA_ATTR!==!1,it=T.ALLOW_UNKNOWN_PROTOCOLS||!1,bn=T.ALLOW_SELF_CLOSE_IN_ATTR!==!1,jt=T.SAFE_FOR_TEMPLATES||!1,Ii=T.SAFE_FOR_XML!==!1,En=T.WHOLE_DOCUMENT||!1,xr=T.RETURN_DOM||!1,Zr=T.RETURN_DOM_FRAGMENT||!1,Jr=T.RETURN_TRUSTED_TYPE||!1,Oi=T.FORCE_BODY||!1,Ua=T.SANITIZE_DOM!==!1,qa=T.SANITIZE_NAMED_PROPS||!1,Xo=T.KEEP_CONTENT!==!1,ei=T.IN_PLACE||!1,v=T.ALLOWED_URI_REGEXP||FS,je=T.NAMESPACE||yt,Ha=T.MATHML_TEXT_INTEGRATION_POINTS||Ha,Wa=T.HTML_INTEGRATION_POINTS||Wa,se=T.CUSTOM_ELEMENT_HANDLING||{},T.CUSTOM_ELEMENT_HANDLING&&bg(T.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(se.tagNameCheck=T.CUSTOM_ELEMENT_HANDLING.tagNameCheck),T.CUSTOM_ELEMENT_HANDLING&&bg(T.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(se.attributeNameCheck=T.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),T.CUSTOM_ELEMENT_HANDLING&&typeof T.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(se.allowCustomizedBuiltInElements=T.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),jt&&(we=!1),Zr&&(xr=!0),F&&(U=fe({},A1),_=[],F.html===!0&&(fe(U,E1),fe(_,L1)),F.svg===!0&&(fe(U,Xh),fe(_,Jh),fe(_,wl)),F.svgFilters===!0&&(fe(U,Qh),fe(_,Jh),fe(_,wl)),F.mathMl===!0&&(fe(U,Zh),fe(_,P1),fe(_,wl))),T.ADD_TAGS&&(typeof T.ADD_TAGS=="function"?Oe.tagCheck=T.ADD_TAGS:(U===J&&(U=Mn(U)),fe(U,T.ADD_TAGS,We))),T.ADD_ATTR&&(typeof T.ADD_ATTR=="function"?Oe.attributeCheck=T.ADD_ATTR:(_===ue&&(_=Mn(_)),fe(_,T.ADD_ATTR,We))),T.ADD_URI_SAFE_ATTR&&fe(gt,T.ADD_URI_SAFE_ATTR,We),T.FORBID_CONTENTS&&($===re&&($=Mn($)),fe($,T.FORBID_CONTENTS,We)),T.ADD_FORBID_CONTENTS&&($===re&&($=Mn($)),fe($,T.ADD_FORBID_CONTENTS,We)),Xo&&(U["#text"]=!0),En&&fe(U,["html","head","body"]),U.table&&(fe(U,["tbody"]),delete ce.tbody),T.TRUSTED_TYPES_POLICY){if(typeof T.TRUSTED_TYPES_POLICY.createHTML!="function")throw fs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof T.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw fs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=T.TRUSTED_TYPES_POLICY,b=S.createHTML("")}else S===void 0&&(S=TR(d,i)),S!==null&&typeof b=="string"&&(b=S.createHTML(""));kt&&kt(T),Ri=T}},Eg=fe({},[...Xh,...Qh,...pR]),Ag=fe({},[...Zh,...mR]),mb=function(T){let V=x(T);(!V||!V.tagName)&&(V={namespaceURI:je,tagName:"template"});const K=Wl(T.tagName),Ee=Wl(V.tagName);return $t[T.namespaceURI]?T.namespaceURI===Ln?V.namespaceURI===yt?K==="svg":V.namespaceURI===Et?K==="svg"&&(Ee==="annotation-xml"||Ha[Ee]):!!Eg[K]:T.namespaceURI===Et?V.namespaceURI===yt?K==="math":V.namespaceURI===Ln?K==="math"&&Wa[Ee]:!!Ag[K]:T.namespaceURI===yt?V.namespaceURI===Ln&&!Wa[Ee]||V.namespaceURI===Et&&!Ha[Ee]?!1:!Ag[K]&&(hb[K]||!Eg[K]):!!(Qo==="application/xhtml+xml"&&$t[T.namespaceURI]):!1},Fn=function(T){cs(t.removed,{element:T});try{x(T).removeChild(T)}catch{k(T)}},ti=function(T,V){try{cs(t.removed,{attribute:V.getAttributeNode(T),from:V})}catch{cs(t.removed,{attribute:null,from:V})}if(V.removeAttribute(T),T==="is")if(xr||Zr)try{Fn(V)}catch{}else try{V.setAttribute(T,"")}catch{}},Lg=function(T){let V=null,K=null;if(Oi)T="<remove></remove>"+T;else{const $e=Kh(T,/^[\r\n\t ]+/);K=$e&&$e[0]}Qo==="application/xhtml+xml"&&je===yt&&(T='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+T+"</body></html>");const Ee=S?S.createHTML(T):T;if(je===yt)try{V=new f().parseFromString(Ee,Qo)}catch{}if(!V||!V.documentElement){V=w.createDocument(je,"template",null);try{V.documentElement.innerHTML=Pn?b:Ee}catch{}}const ot=V.body||V.documentElement;return T&&K&&ot.insertBefore(n.createTextNode(K),ot.childNodes[0]||null),je===yt?W.call(V,En?"html":"body")[0]:En?V.documentElement:ot},Pg=function(T){return L.call(T.ownerDocument||T,T,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Yc=function(T){return T instanceof h&&(typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||!(T.attributes instanceof c)||typeof T.removeAttribute!="function"||typeof T.setAttribute!="function"||typeof T.namespaceURI!="string"||typeof T.insertBefore!="function"||typeof T.hasChildNodes!="function")},Fg=function(T){return typeof a=="function"&&T instanceof a};function Xn(Z,T,V){_l(Z,K=>{K.call(t,T,V,Ri)})}const Bg=function(T){let V=null;if(Xn(B.beforeSanitizeElements,T,null),Yc(T))return Fn(T),!0;const K=We(T.nodeName);if(Xn(B.uponSanitizeElement,T,{tagName:K,allowedTags:U}),Ii&&T.hasChildNodes()&&!Fg(T.firstElementChild)&&xt(/<[/\w!]/g,T.innerHTML)&&xt(/<[/\w!]/g,T.textContent)||T.nodeType===ps.progressingInstruction||Ii&&T.nodeType===ps.comment&&xt(/<[/\w]/g,T.data))return Fn(T),!0;if(!(Oe.tagCheck instanceof Function&&Oe.tagCheck(K))&&(!U[K]||ce[K])){if(!ce[K]&&Ng(K)&&(se.tagNameCheck instanceof RegExp&&xt(se.tagNameCheck,K)||se.tagNameCheck instanceof Function&&se.tagNameCheck(K)))return!1;if(Xo&&!$[K]){const Ee=x(T)||T.parentNode,ot=m(T)||T.childNodes;if(ot&&Ee){const $e=ot.length;for(let At=$e-1;At>=0;--At){const Qn=y(ot[At],!0);Qn.__removalCount=(T.__removalCount||0)+1,Ee.insertBefore(Qn,p(T))}}}return Fn(T),!0}return T instanceof l&&!mb(T)||(K==="noscript"||K==="noembed"||K==="noframes")&&xt(/<\/no(script|embed|frames)/i,T.innerHTML)?(Fn(T),!0):(jt&&T.nodeType===ps.text&&(V=T.textContent,_l([Y,ae,H],Ee=>{V=hs(V,Ee," ")}),T.textContent!==V&&(cs(t.removed,{element:T.cloneNode()}),T.textContent=V)),Xn(B.afterSanitizeElements,T,null),!1)},Mg=function(T,V,K){if(Ua&&(V==="id"||V==="name")&&(K in n||K in pb))return!1;if(!(we&&!Ne[V]&&xt(N,V))){if(!(Ze&&xt(I,V))){if(!(Oe.attributeCheck instanceof Function&&Oe.attributeCheck(V,T))){if(!_[V]||Ne[V]){if(!(Ng(T)&&(se.tagNameCheck instanceof RegExp&&xt(se.tagNameCheck,T)||se.tagNameCheck instanceof Function&&se.tagNameCheck(T))&&(se.attributeNameCheck instanceof RegExp&&xt(se.attributeNameCheck,V)||se.attributeNameCheck instanceof Function&&se.attributeNameCheck(V,T))||V==="is"&&se.allowCustomizedBuiltInElements&&(se.tagNameCheck instanceof RegExp&&xt(se.tagNameCheck,K)||se.tagNameCheck instanceof Function&&se.tagNameCheck(K))))return!1}else if(!gt[V]){if(!xt(v,hs(K,A,""))){if(!((V==="src"||V==="xlink:href"||V==="href")&&T!=="script"&&cR(K,"data:")===0&&he[T])){if(!(it&&!xt(O,hs(K,A,"")))){if(K)return!1}}}}}}}return!0},Ng=function(T){return T!=="annotation-xml"&&Kh(T,M)},Ig=function(T){Xn(B.beforeSanitizeAttributes,T,null);const{attributes:V}=T;if(!V||Yc(T))return;const K={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:_,forceKeepAttr:void 0};let Ee=V.length;for(;Ee--;){const ot=V[Ee],{name:$e,namespaceURI:At,value:Qn}=ot,zi=We($e),Gc=Qn;let Je=$e==="value"?Gc:hR(Gc);if(K.attrName=zi,K.attrValue=Je,K.keepAttr=!0,K.forceKeepAttr=void 0,Xn(B.uponSanitizeAttribute,T,K),Je=K.attrValue,qa&&(zi==="id"||zi==="name")&&(ti($e,T),Je=Hc+Je),Ii&&xt(/((--!?|])>)|<\/(style|title|textarea)/i,Je)){ti($e,T);continue}if(zi==="attributename"&&Kh(Je,"href")){ti($e,T);continue}if(K.forceKeepAttr)continue;if(!K.keepAttr){ti($e,T);continue}if(!bn&&xt(/\/>/i,Je)){ti($e,T);continue}jt&&_l([Y,ae,H],Og=>{Je=hs(Je,Og," ")});const Dg=We(T.nodeName);if(!Mg(Dg,zi,Je)){ti($e,T);continue}if(S&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!At)switch(d.getAttributeType(Dg,zi)){case"TrustedHTML":{Je=S.createHTML(Je);break}case"TrustedScriptURL":{Je=S.createScriptURL(Je);break}}if(Je!==Gc)try{At?T.setAttributeNS(At,$e,Je):T.setAttribute($e,Je),Yc(T)?Fn(T):b1(t.removed)}catch{ti($e,T)}}Xn(B.afterSanitizeAttributes,T,null)},gb=function Z(T){let V=null;const K=Pg(T);for(Xn(B.beforeSanitizeShadowDOM,T,null);V=K.nextNode();)Xn(B.uponSanitizeShadowNode,V,null),Bg(V),Ig(V),V.content instanceof o&&Z(V.content);Xn(B.afterSanitizeShadowDOM,T,null)};return t.sanitize=function(Z){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},V=null,K=null,Ee=null,ot=null;if(Pn=!Z,Pn&&(Z="<!-->"),typeof Z!="string"&&!Fg(Z))if(typeof Z.toString=="function"){if(Z=Z.toString(),typeof Z!="string")throw fs("dirty is not a string, aborting")}else throw fs("toString is not a function");if(!t.isSupported)return Z;if(Di||Wc(T),t.removed=[],typeof Z=="string"&&(ei=!1),ei){if(Z.nodeName){const Qn=We(Z.nodeName);if(!U[Qn]||ce[Qn])throw fs("root node is forbidden and cannot be sanitized in-place")}}else if(Z instanceof a)V=Lg("<!---->"),K=V.ownerDocument.importNode(Z,!0),K.nodeType===ps.element&&K.nodeName==="BODY"||K.nodeName==="HTML"?V=K:V.appendChild(K);else{if(!xr&&!jt&&!En&&Z.indexOf("<")===-1)return S&&Jr?S.createHTML(Z):Z;if(V=Lg(Z),!V)return xr?null:Jr?b:""}V&&Oi&&Fn(V.firstChild);const $e=Pg(ei?Z:V);for(;Ee=$e.nextNode();)Bg(Ee),Ig(Ee),Ee.content instanceof o&&gb(Ee.content);if(ei)return Z;if(xr){if(Zr)for(ot=P.call(V.ownerDocument);V.firstChild;)ot.appendChild(V.firstChild);else ot=V;return(_.shadowroot||_.shadowrootmode)&&(ot=D.call(r,ot,!0)),ot}let At=En?V.outerHTML:V.innerHTML;return En&&U["!doctype"]&&V.ownerDocument&&V.ownerDocument.doctype&&V.ownerDocument.doctype.name&&xt(BS,V.ownerDocument.doctype.name)&&(At="<!DOCTYPE "+V.ownerDocument.doctype.name+`>
176
+ `+At),jt&&_l([Y,ae,H],Qn=>{At=hs(At,Qn," ")}),S&&Jr?S.createHTML(At):At},t.setConfig=function(){let Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Wc(Z),Di=!0},t.clearConfig=function(){Ri=null,Di=!1},t.isValidAttribute=function(Z,T,V){Ri||Wc({});const K=We(Z),Ee=We(T);return Mg(K,Ee,V)},t.addHook=function(Z,T){typeof T=="function"&&cs(B[Z],T)},t.removeHook=function(Z,T){if(T!==void 0){const V=lR(B[Z],T);return V===-1?void 0:uR(B[Z],V,1)[0]}return b1(B[Z])},t.removeHooks=function(Z){B[Z]=[]},t.removeAllHooks=function(){B=B1()},t}var Bo=MS();const Yl={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:t,l:n},r)=>{if(!t)return n*2.55;e/=360,t/=100,n/=100;const i=n<.5?n*(1+t):n+t-n*t,o=2*n-i;switch(r){case"r":return Yl.hue2rgb(o,i,e+1/3)*255;case"g":return Yl.hue2rgb(o,i,e)*255;case"b":return Yl.hue2rgb(o,i,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:n},r)=>{e/=255,t/=255,n/=255;const i=Math.max(e,t,n),o=Math.min(e,t,n),s=(i+o)/2;if(r==="l")return s*100;if(i===o)return 0;const a=i-o,l=s>.5?a/(2-i-o):a/(i+o);if(r==="s")return l*100;switch(i){case e:return((t-n)/a+(t<n?6:0))*60;case t:return((n-e)/a+2)*60;case n:return((e-t)/a+4)*60;default:return-1}}},bR={clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},ER={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},ie={channel:Yl,lang:bR,unit:ER},wr={};for(let e=0;e<=255;e++)wr[e]=ie.unit.dec2hex(e);const lt={ALL:0,RGB:1,HSL:2};class AR{constructor(){this.type=lt.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=lt.ALL}is(t){return this.type===t}}class LR{constructor(t,n){this.color=n,this.changed=!1,this.data=t,this.type=new AR}set(t,n){return this.color=n,this.changed=!1,this.data=t,this.type.type=lt.ALL,this}_ensureHSL(){const t=this.data,{h:n,s:r,l:i}=t;n===void 0&&(t.h=ie.channel.rgb2hsl(t,"h")),r===void 0&&(t.s=ie.channel.rgb2hsl(t,"s")),i===void 0&&(t.l=ie.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:n,g:r,b:i}=t;n===void 0&&(t.r=ie.channel.hsl2rgb(t,"r")),r===void 0&&(t.g=ie.channel.hsl2rgb(t,"g")),i===void 0&&(t.b=ie.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,n=t.r;return!this.type.is(lt.HSL)&&n!==void 0?n:(this._ensureHSL(),ie.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,n=t.g;return!this.type.is(lt.HSL)&&n!==void 0?n:(this._ensureHSL(),ie.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,n=t.b;return!this.type.is(lt.HSL)&&n!==void 0?n:(this._ensureHSL(),ie.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,n=t.h;return!this.type.is(lt.RGB)&&n!==void 0?n:(this._ensureRGB(),ie.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,n=t.s;return!this.type.is(lt.RGB)&&n!==void 0?n:(this._ensureRGB(),ie.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,n=t.l;return!this.type.is(lt.RGB)&&n!==void 0?n:(this._ensureRGB(),ie.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(lt.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(lt.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(lt.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(lt.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(lt.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(lt.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const Bc=new LR({r:0,g:0,b:0,a:0},"transparent"),xo={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(xo.re);if(!t)return;const n=t[1],r=parseInt(n,16),i=n.length,o=i%4===0,s=i>4,a=s?1:17,l=s?8:4,u=o?0:-1,c=s?255:15;return Bc.set({r:(r>>l*(u+3)&c)*a,g:(r>>l*(u+2)&c)*a,b:(r>>l*(u+1)&c)*a,a:o?(r&c)*a/255:1},e)},stringify:e=>{const{r:t,g:n,b:r,a:i}=e;return i<1?`#${wr[Math.round(t)]}${wr[Math.round(n)]}${wr[Math.round(r)]}${wr[Math.round(i*255)]}`:`#${wr[Math.round(t)]}${wr[Math.round(n)]}${wr[Math.round(r)]}`}},pi={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(pi.hueRe);if(t){const[,n,r]=t;switch(r){case"grad":return ie.channel.clamp.h(parseFloat(n)*.9);case"rad":return ie.channel.clamp.h(parseFloat(n)*180/Math.PI);case"turn":return ie.channel.clamp.h(parseFloat(n)*360)}}return ie.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const n=e.match(pi.re);if(!n)return;const[,r,i,o,s,a]=n;return Bc.set({h:pi._hue2deg(r),s:ie.channel.clamp.s(parseFloat(i)),l:ie.channel.clamp.l(parseFloat(o)),a:s?ie.channel.clamp.a(a?parseFloat(s)/100:parseFloat(s)):1},e)},stringify:e=>{const{h:t,s:n,l:r,a:i}=e;return i<1?`hsla(${ie.lang.round(t)}, ${ie.lang.round(n)}%, ${ie.lang.round(r)}%, ${i})`:`hsl(${ie.lang.round(t)}, ${ie.lang.round(n)}%, ${ie.lang.round(r)}%)`}},Vs={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=Vs.colors[e];if(t)return xo.parse(t)},stringify:e=>{const t=xo.stringify(e);for(const n in Vs.colors)if(Vs.colors[n]===t)return n}},bs={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const n=e.match(bs.re);if(!n)return;const[,r,i,o,s,a,l,u,c]=n;return Bc.set({r:ie.channel.clamp.r(i?parseFloat(r)*2.55:parseFloat(r)),g:ie.channel.clamp.g(s?parseFloat(o)*2.55:parseFloat(o)),b:ie.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:u?ie.channel.clamp.a(c?parseFloat(u)/100:parseFloat(u)):1},e)},stringify:e=>{const{r:t,g:n,b:r,a:i}=e;return i<1?`rgba(${ie.lang.round(t)}, ${ie.lang.round(n)}, ${ie.lang.round(r)}, ${ie.lang.round(i)})`:`rgb(${ie.lang.round(t)}, ${ie.lang.round(n)}, ${ie.lang.round(r)})`}},Wn={format:{keyword:Vs,hex:xo,rgb:bs,rgba:bs,hsl:pi,hsla:pi},parse:e=>{if(typeof e!="string")return e;const t=xo.parse(e)||bs.parse(e)||pi.parse(e)||Vs.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(lt.HSL)||e.data.r===void 0?pi.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?bs.stringify(e):xo.stringify(e)},NS=(e,t)=>{const n=Wn.parse(e);for(const r in t)n[r]=ie.channel.clamp[r](t[r]);return Wn.stringify(n)},Us=(e,t,n=0,r=1)=>{if(typeof e!="number")return NS(e,{a:t});const i=Bc.set({r:ie.channel.clamp.r(e),g:ie.channel.clamp.g(t),b:ie.channel.clamp.b(n),a:ie.channel.clamp.a(r)});return Wn.stringify(i)},PR=e=>{const{r:t,g:n,b:r}=Wn.parse(e),i=.2126*ie.channel.toLinear(t)+.7152*ie.channel.toLinear(n)+.0722*ie.channel.toLinear(r);return ie.lang.round(i)},FR=e=>PR(e)>=.5,za=e=>!FR(e),IS=(e,t,n)=>{const r=Wn.parse(e),i=r[t],o=ie.channel.clamp[t](i+n);return i!==o&&(r[t]=o),Wn.stringify(r)},X=(e,t)=>IS(e,"l",t),te=(e,t)=>IS(e,"l",-t),E=(e,t)=>{const n=Wn.parse(e),r={};for(const i in t)t[i]&&(r[i]=n[i]+t[i]);return NS(e,r)},BR=(e,t,n=50)=>{const{r,g:i,b:o,a:s}=Wn.parse(e),{r:a,g:l,b:u,a:c}=Wn.parse(t),h=n/100,f=h*2-1,d=s-c,y=((f*d===-1?f:(f+d)/(1+f*d))+1)/2,k=1-y,p=r*y+a*k,m=i*y+l*k,x=o*y+u*k,S=s*h+c*(1-h);return Us(p,m,x,S)},q=(e,t=100)=>{const n=Wn.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,BR(n,e,t)};var DS=typeof global=="object"&&global&&global.Object===Object&&global,MR=typeof self=="object"&&self&&self.Object===Object&&self,Kn=DS||MR||Function("return this")(),ju=Kn.Symbol,OS=Object.prototype,NR=OS.hasOwnProperty,IR=OS.toString,ms=ju?ju.toStringTag:void 0;function DR(e){var t=NR.call(e,ms),n=e[ms];try{e[ms]=void 0;var r=!0}catch{}var i=IR.call(e);return r&&(t?e[ms]=n:delete e[ms]),i}var OR=Object.prototype,RR=OR.toString;function zR(e){return RR.call(e)}var jR="[object Null]",$R="[object Undefined]",M1=ju?ju.toStringTag:void 0;function Yo(e){return e==null?e===void 0?$R:jR:M1&&M1 in Object(e)?DR(e):zR(e)}function Bi(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var VR="[object AsyncFunction]",UR="[object Function]",qR="[object GeneratorFunction]",HR="[object Proxy]";function ig(e){if(!Bi(e))return!1;var t=Yo(e);return t==UR||t==qR||t==VR||t==HR}var ef=Kn["__core-js_shared__"],N1=function(){var e=/[^.]+$/.exec(ef&&ef.keys&&ef.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function WR(e){return!!N1&&N1 in e}var YR=Function.prototype,GR=YR.toString;function Mi(e){if(e!=null){try{return GR.call(e)}catch{}try{return e+""}catch{}}return""}var KR=/[\\^$.*+?()[\]{}|]/g,XR=/^\[object .+?Constructor\]$/,QR=Function.prototype,ZR=Object.prototype,JR=QR.toString,e6=ZR.hasOwnProperty,t6=RegExp("^"+JR.call(e6).replace(KR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function n6(e){if(!Bi(e)||WR(e))return!1;var t=ig(e)?t6:XR;return t.test(Mi(e))}function r6(e,t){return e==null?void 0:e[t]}function Ni(e,t){var n=r6(e,t);return n6(n)?n:void 0}var wa=Ni(Object,"create");function i6(){this.__data__=wa?wa(null):{},this.size=0}function o6(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var s6="__lodash_hash_undefined__",a6=Object.prototype,l6=a6.hasOwnProperty;function u6(e){var t=this.__data__;if(wa){var n=t[e];return n===s6?void 0:n}return l6.call(t,e)?t[e]:void 0}var c6=Object.prototype,h6=c6.hasOwnProperty;function f6(e){var t=this.__data__;return wa?t[e]!==void 0:h6.call(t,e)}var d6="__lodash_hash_undefined__";function p6(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=wa&&t===void 0?d6:t,this}function bi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}bi.prototype.clear=i6;bi.prototype.delete=o6;bi.prototype.get=u6;bi.prototype.has=f6;bi.prototype.set=p6;function m6(){this.__data__=[],this.size=0}function Mc(e,t){return e===t||e!==e&&t!==t}function Nc(e,t){for(var n=e.length;n--;)if(Mc(e[n][0],t))return n;return-1}var g6=Array.prototype,y6=g6.splice;function x6(e){var t=this.__data__,n=Nc(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():y6.call(t,n,1),--this.size,!0}function v6(e){var t=this.__data__,n=Nc(t,e);return n<0?void 0:t[n][1]}function C6(e){return Nc(this.__data__,e)>-1}function _6(e,t){var n=this.__data__,r=Nc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function yr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}yr.prototype.clear=m6;yr.prototype.delete=x6;yr.prototype.get=v6;yr.prototype.has=C6;yr.prototype.set=_6;var ka=Ni(Kn,"Map");function w6(){this.size=0,this.__data__={hash:new bi,map:new(ka||yr),string:new bi}}function k6(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ic(e,t){var n=e.__data__;return k6(t)?n[typeof t=="string"?"string":"hash"]:n.map}function S6(e){var t=Ic(this,e).delete(e);return this.size-=t?1:0,t}function T6(e){return Ic(this,e).get(e)}function b6(e){return Ic(this,e).has(e)}function E6(e,t){var n=Ic(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Qr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Qr.prototype.clear=w6;Qr.prototype.delete=S6;Qr.prototype.get=T6;Qr.prototype.has=b6;Qr.prototype.set=E6;var A6="Expected a function";function ja(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(A6);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(ja.Cache||Qr),n}ja.Cache=Qr;function L6(){this.__data__=new yr,this.size=0}function P6(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function F6(e){return this.__data__.get(e)}function B6(e){return this.__data__.has(e)}var M6=200;function N6(e,t){var n=this.__data__;if(n instanceof yr){var r=n.__data__;if(!ka||r.length<M6-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qr(r)}return n.set(e,t),this.size=n.size,this}function Go(e){var t=this.__data__=new yr(e);this.size=t.size}Go.prototype.clear=L6;Go.prototype.delete=P6;Go.prototype.get=F6;Go.prototype.has=B6;Go.prototype.set=N6;var $u=function(){try{var e=Ni(Object,"defineProperty");return e({},"",{}),e}catch{}}();function og(e,t,n){t=="__proto__"&&$u?$u(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function qd(e,t,n){(n!==void 0&&!Mc(e[t],n)||n===void 0&&!(t in e))&&og(e,t,n)}function I6(e){return function(t,n,r){for(var i=-1,o=Object(t),s=r(t),a=s.length;a--;){var l=s[++i];if(n(o[l],l,o)===!1)break}return t}}var D6=I6(),RS=typeof exports=="object"&&exports&&!exports.nodeType&&exports,I1=RS&&typeof module=="object"&&module&&!module.nodeType&&module,O6=I1&&I1.exports===RS,D1=O6?Kn.Buffer:void 0,O1=D1?D1.allocUnsafe:void 0;function R6(e,t){if(t)return e.slice();var n=e.length,r=O1?O1(n):new e.constructor(n);return e.copy(r),r}var R1=Kn.Uint8Array;function z6(e){var t=new e.constructor(e.byteLength);return new R1(t).set(new R1(e)),t}function j6(e,t){var n=t?z6(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function $6(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var z1=Object.create,V6=function(){function e(){}return function(t){if(!Bi(t))return{};if(z1)return z1(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function zS(e,t){return function(n){return e(t(n))}}var jS=zS(Object.getPrototypeOf,Object),U6=Object.prototype;function Dc(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||U6;return e===n}function q6(e){return typeof e.constructor=="function"&&!Dc(e)?V6(jS(e)):{}}function $a(e){return e!=null&&typeof e=="object"}var H6="[object Arguments]";function j1(e){return $a(e)&&Yo(e)==H6}var $S=Object.prototype,W6=$S.hasOwnProperty,Y6=$S.propertyIsEnumerable,Vu=j1(function(){return arguments}())?j1:function(e){return $a(e)&&W6.call(e,"callee")&&!Y6.call(e,"callee")},Uu=Array.isArray,G6=9007199254740991;function VS(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=G6}function Oc(e){return e!=null&&VS(e.length)&&!ig(e)}function K6(e){return $a(e)&&Oc(e)}function X6(){return!1}var US=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$1=US&&typeof module=="object"&&module&&!module.nodeType&&module,Q6=$1&&$1.exports===US,V1=Q6?Kn.Buffer:void 0,Z6=V1?V1.isBuffer:void 0,sg=Z6||X6,J6="[object Object]",ez=Function.prototype,tz=Object.prototype,qS=ez.toString,nz=tz.hasOwnProperty,rz=qS.call(Object);function iz(e){if(!$a(e)||Yo(e)!=J6)return!1;var t=jS(e);if(t===null)return!0;var n=nz.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&qS.call(n)==rz}var oz="[object Arguments]",sz="[object Array]",az="[object Boolean]",lz="[object Date]",uz="[object Error]",cz="[object Function]",hz="[object Map]",fz="[object Number]",dz="[object Object]",pz="[object RegExp]",mz="[object Set]",gz="[object String]",yz="[object WeakMap]",xz="[object ArrayBuffer]",vz="[object DataView]",Cz="[object Float32Array]",_z="[object Float64Array]",wz="[object Int8Array]",kz="[object Int16Array]",Sz="[object Int32Array]",Tz="[object Uint8Array]",bz="[object Uint8ClampedArray]",Ez="[object Uint16Array]",Az="[object Uint32Array]",Se={};Se[Cz]=Se[_z]=Se[wz]=Se[kz]=Se[Sz]=Se[Tz]=Se[bz]=Se[Ez]=Se[Az]=!0;Se[oz]=Se[sz]=Se[xz]=Se[az]=Se[vz]=Se[lz]=Se[uz]=Se[cz]=Se[hz]=Se[fz]=Se[dz]=Se[pz]=Se[mz]=Se[gz]=Se[yz]=!1;function Lz(e){return $a(e)&&VS(e.length)&&!!Se[Yo(e)]}function Pz(e){return function(t){return e(t)}}var HS=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qs=HS&&typeof module=="object"&&module&&!module.nodeType&&module,Fz=qs&&qs.exports===HS,tf=Fz&&DS.process,U1=function(){try{var e=qs&&qs.require&&qs.require("util").types;return e||tf&&tf.binding&&tf.binding("util")}catch{}}(),q1=U1&&U1.isTypedArray,ag=q1?Pz(q1):Lz;function Hd(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Bz=Object.prototype,Mz=Bz.hasOwnProperty;function Nz(e,t,n){var r=e[t];(!(Mz.call(e,t)&&Mc(r,n))||n===void 0&&!(t in e))&&og(e,t,n)}function Iz(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var a=t[o],l=void 0;l===void 0&&(l=e[a]),i?og(n,a,l):Nz(n,a,l)}return n}function Dz(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Oz=9007199254740991,Rz=/^(?:0|[1-9]\d*)$/;function WS(e,t){var n=typeof e;return t=t??Oz,!!t&&(n=="number"||n!="symbol"&&Rz.test(e))&&e>-1&&e%1==0&&e<t}var zz=Object.prototype,jz=zz.hasOwnProperty;function $z(e,t){var n=Uu(e),r=!n&&Vu(e),i=!n&&!r&&sg(e),o=!n&&!r&&!i&&ag(e),s=n||r||i||o,a=s?Dz(e.length,String):[],l=a.length;for(var u in e)(t||jz.call(e,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||WS(u,l)))&&a.push(u);return a}function Vz(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Uz=Object.prototype,qz=Uz.hasOwnProperty;function Hz(e){if(!Bi(e))return Vz(e);var t=Dc(e),n=[];for(var r in e)r=="constructor"&&(t||!qz.call(e,r))||n.push(r);return n}function YS(e){return Oc(e)?$z(e,!0):Hz(e)}function Wz(e){return Iz(e,YS(e))}function Yz(e,t,n,r,i,o,s){var a=Hd(e,n),l=Hd(t,n),u=s.get(l);if(u){qd(e,n,u);return}var c=o?o(a,l,n+"",e,t,s):void 0,h=c===void 0;if(h){var f=Uu(l),d=!f&&sg(l),g=!f&&!d&&ag(l);c=l,f||d||g?Uu(a)?c=a:K6(a)?c=$6(a):d?(h=!1,c=R6(l,!0)):g?(h=!1,c=j6(l,!0)):c=[]:iz(l)||Vu(l)?(c=a,Vu(a)?c=Wz(a):(!Bi(a)||ig(a))&&(c=q6(l))):h=!1}h&&(s.set(l,c),i(c,l,r,o,s),s.delete(l)),qd(e,n,c)}function GS(e,t,n,r,i){e!==t&&D6(t,function(o,s){if(i||(i=new Go),Bi(o))Yz(e,t,s,n,GS,r,i);else{var a=r?r(Hd(e,s),o,s+"",e,t,i):void 0;a===void 0&&(a=o),qd(e,s,a)}},YS)}function KS(e){return e}function Gz(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var H1=Math.max;function Kz(e,t,n){return t=H1(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=H1(r.length-t,0),s=Array(o);++i<o;)s[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(s),Gz(e,this,a)}}function Xz(e){return function(){return e}}var Qz=$u?function(e,t){return $u(e,"toString",{configurable:!0,enumerable:!1,value:Xz(t),writable:!0})}:KS,Zz=800,Jz=16,ej=Date.now;function tj(e){var t=0,n=0;return function(){var r=ej(),i=Jz-(r-n);if(n=r,i>0){if(++t>=Zz)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var nj=tj(Qz);function rj(e,t){return nj(Kz(e,t,KS),e+"")}function ij(e,t,n){if(!Bi(n))return!1;var r=typeof t;return(r=="number"?Oc(n)&&WS(t,n.length):r=="string"&&t in n)?Mc(n[t],e):!1}function oj(e){return rj(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,s&&ij(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var a=n[r];a&&e(t,a,r,o)}return t})}var sj=oj(function(e,t,n){GS(e,t,n)}),XS="comm",QS="rule",ZS="decl",aj="@import",lj="@namespace",uj="@keyframes",cj="@layer",JS=Math.abs,lg=String.fromCharCode;function eT(e){return e.trim()}function Gl(e,t,n){return e.replace(t,n)}function hj(e,t,n){return e.indexOf(t,n)}function vo(e,t){return e.charCodeAt(t)|0}function Mo(e,t,n){return e.slice(t,n)}function Dn(e){return e.length}function fj(e){return e.length}function kl(e,t){return t.push(e),e}var Rc=1,No=1,tT=0,hn=0,Ue=0,Ko="";function ug(e,t,n,r,i,o,s,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Rc,column:No,length:s,return:"",siblings:a}}function dj(){return Ue}function pj(){return Ue=hn>0?vo(Ko,--hn):0,No--,Ue===10&&(No=1,Rc--),Ue}function kn(){return Ue=hn<tT?vo(Ko,hn++):0,No++,Ue===10&&(No=1,Rc++),Ue}function Pr(){return vo(Ko,hn)}function Kl(){return hn}function zc(e,t){return Mo(Ko,e,t)}function Sa(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function mj(e){return Rc=No=1,tT=Dn(Ko=e),hn=0,[]}function gj(e){return Ko="",e}function nf(e){return eT(zc(hn-1,Wd(e===91?e+2:e===40?e+1:e)))}function yj(e){for(;(Ue=Pr())&&Ue<33;)kn();return Sa(e)>2||Sa(Ue)>3?"":" "}function xj(e,t){for(;--t&&kn()&&!(Ue<48||Ue>102||Ue>57&&Ue<65||Ue>70&&Ue<97););return zc(e,Kl()+(t<6&&Pr()==32&&kn()==32))}function Wd(e){for(;kn();)switch(Ue){case e:return hn;case 34:case 39:e!==34&&e!==39&&Wd(Ue);break;case 40:e===41&&Wd(e);break;case 92:kn();break}return hn}function vj(e,t){for(;kn()&&e+Ue!==57;)if(e+Ue===84&&Pr()===47)break;return"/*"+zc(t,hn-1)+"*"+lg(e===47?e:kn())}function Cj(e){for(;!Sa(Pr());)kn();return zc(e,hn)}function _j(e){return gj(Xl("",null,null,null,[""],e=mj(e),0,[0],e))}function Xl(e,t,n,r,i,o,s,a,l){for(var u=0,c=0,h=s,f=0,d=0,g=0,y=1,k=1,p=1,m=0,x="",S=i,b=o,w=r,L=x;k;)switch(g=m,m=kn()){case 40:if(g!=108&&vo(L,h-1)==58){hj(L+=Gl(nf(m),"&","&\f"),"&\f",JS(u?a[u-1]:0))!=-1&&(p=-1);break}case 34:case 39:case 91:L+=nf(m);break;case 9:case 10:case 13:case 32:L+=yj(g);break;case 92:L+=xj(Kl()-1,7);continue;case 47:switch(Pr()){case 42:case 47:kl(wj(vj(kn(),Kl()),t,n,l),l),(Sa(g||1)==5||Sa(Pr()||1)==5)&&Dn(L)&&Mo(L,-1,void 0)!==" "&&(L+=" ");break;default:L+="/"}break;case 123*y:a[u++]=Dn(L)*p;case 125*y:case 59:case 0:switch(m){case 0:case 125:k=0;case 59+c:p==-1&&(L=Gl(L,/\f/g,"")),d>0&&(Dn(L)-h||y===0&&g===47)&&kl(d>32?Y1(L+";",r,n,h-1,l):Y1(Gl(L," ","")+";",r,n,h-2,l),l);break;case 59:L+=";";default:if(kl(w=W1(L,t,n,u,c,i,a,x,S=[],b=[],h,o),o),m===123)if(c===0)Xl(L,t,w,w,S,o,h,a,b);else{switch(f){case 99:if(vo(L,3)===110)break;case 108:if(vo(L,2)===97)break;default:c=0;case 100:case 109:case 115:}c?Xl(e,w,w,r&&kl(W1(e,w,w,0,0,i,a,x,i,S=[],h,b),b),i,b,h,a,r?S:b):Xl(L,w,w,w,[""],b,0,a,b)}}u=c=d=0,y=p=1,x=L="",h=s;break;case 58:h=1+Dn(L),d=g;default:if(y<1){if(m==123)--y;else if(m==125&&y++==0&&pj()==125)continue}switch(L+=lg(m),m*y){case 38:p=c>0?1:(L+="\f",-1);break;case 44:a[u++]=(Dn(L)-1)*p,p=1;break;case 64:Pr()===45&&(L+=nf(kn())),f=Pr(),c=h=Dn(x=L+=Cj(Kl())),m++;break;case 45:g===45&&Dn(L)==2&&(y=0)}}return o}function W1(e,t,n,r,i,o,s,a,l,u,c,h){for(var f=i-1,d=i===0?o:[""],g=fj(d),y=0,k=0,p=0;y<r;++y)for(var m=0,x=Mo(e,f+1,f=JS(k=s[y])),S=e;m<g;++m)(S=eT(k>0?d[m]+" "+x:Gl(x,/&\f/g,d[m])))&&(l[p++]=S);return ug(e,t,n,i===0?QS:a,l,u,c,h)}function wj(e,t,n,r){return ug(e,t,n,XS,lg(dj()),Mo(e,2,-2),0,r)}function Y1(e,t,n,r,i){return ug(e,t,n,ZS,Mo(e,0,r),Mo(e,r+1,-1),r,i)}function Yd(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function kj(e,t,n,r){switch(e.type){case cj:if(e.children.length)break;case aj:case lj:case ZS:return e.return=e.return||e.value;case XS:return"";case uj:return e.return=e.value+"{"+Yd(e.children,r)+"}";case QS:if(!Dn(e.value=e.props.join(",")))return""}return Dn(n=Yd(e.children,r))?e.return=e.value+"{"+n+"}":""}var Sj=zS(Object.keys,Object),Tj=Object.prototype,bj=Tj.hasOwnProperty;function Ej(e){if(!Dc(e))return Sj(e);var t=[];for(var n in Object(e))bj.call(e,n)&&n!="constructor"&&t.push(n);return t}var Gd=Ni(Kn,"DataView"),Kd=Ni(Kn,"Promise"),Xd=Ni(Kn,"Set"),Qd=Ni(Kn,"WeakMap"),G1="[object Map]",Aj="[object Object]",K1="[object Promise]",X1="[object Set]",Q1="[object WeakMap]",Z1="[object DataView]",Lj=Mi(Gd),Pj=Mi(ka),Fj=Mi(Kd),Bj=Mi(Xd),Mj=Mi(Qd),ai=Yo;(Gd&&ai(new Gd(new ArrayBuffer(1)))!=Z1||ka&&ai(new ka)!=G1||Kd&&ai(Kd.resolve())!=K1||Xd&&ai(new Xd)!=X1||Qd&&ai(new Qd)!=Q1)&&(ai=function(e){var t=Yo(e),n=t==Aj?e.constructor:void 0,r=n?Mi(n):"";if(r)switch(r){case Lj:return Z1;case Pj:return G1;case Fj:return K1;case Bj:return X1;case Mj:return Q1}return t});var Nj="[object Map]",Ij="[object Set]",Dj=Object.prototype,Oj=Dj.hasOwnProperty;function rf(e){if(e==null)return!0;if(Oc(e)&&(Uu(e)||typeof e=="string"||typeof e.splice=="function"||sg(e)||ag(e)||Vu(e)))return!e.length;var t=ai(e);if(t==Nj||t==Ij)return!e.size;if(Dc(e))return!Ej(e).length;for(var n in e)if(Oj.call(e,n))return!1;return!0}const Jn={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},ee={trace:(...e)=>{},debug:(...e)=>{},info:(...e)=>{},warn:(...e)=>{},error:(...e)=>{},fatal:(...e)=>{}},cg=function(e="fatal"){let t=Jn.fatal;typeof e=="string"?(e=e.toLowerCase(),e in Jn&&(t=Jn[e])):typeof e=="number"&&(t=e),ee.trace=()=>{},ee.debug=()=>{},ee.info=()=>{},ee.warn=()=>{},ee.error=()=>{},ee.fatal=()=>{},t<=Jn.fatal&&(ee.fatal=console.error?console.error.bind(console,Jt("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Jt("FATAL"))),t<=Jn.error&&(ee.error=console.error?console.error.bind(console,Jt("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Jt("ERROR"))),t<=Jn.warn&&(ee.warn=console.warn?console.warn.bind(console,Jt("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Jt("WARN"))),t<=Jn.info&&(ee.info=console.info?console.info.bind(console,Jt("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Jt("INFO"))),t<=Jn.debug&&(ee.debug=console.debug?console.debug.bind(console,Jt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Jt("DEBUG"))),t<=Jn.trace&&(ee.trace=console.debug?console.debug.bind(console,Jt("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Jt("TRACE")))},Jt=e=>`%c${SI().format("ss.SSS")} : ${e} : `,Va=/<br\s*\/?>/gi,Rj=e=>e?rT(e).replace(/\\n/g,"#br#").split("#br#"):[""],zj=(()=>{let e=!1;return()=>{e||(jj(),e=!0)}})();function jj(){const e="data-temp-href-target";Bo.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),Bo.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}const nT=e=>(zj(),Bo.sanitize(e)),J1=(e,t)=>{var n;if(((n=t.flowchart)==null?void 0:n.htmlLabels)!==!1){const r=t.securityLevel;r==="antiscript"||r==="strict"?e=nT(e):r!=="loose"&&(e=rT(e),e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"),e=e.replace(/=/g,"&equals;"),e=qj(e))}return e},Io=(e,t)=>e&&(t.dompurifyConfig?e=Bo.sanitize(J1(e,t),t.dompurifyConfig).toString():e=Bo.sanitize(J1(e,t),{FORBID_TAGS:["style"]}).toString(),e),$j=(e,t)=>typeof e=="string"?Io(e,t):e.flat().map(n=>Io(n,t)),Vj=e=>Va.test(e),Uj=e=>e.split(Va),qj=e=>e.replace(/#br#/g,"<br/>"),rT=e=>e.replace(Va,"#br#"),Hj=e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=t.replaceAll(/\(/g,"\\("),t=t.replaceAll(/\)/g,"\\)")),t},iT=e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),Wj=function(...e){const t=e.filter(n=>!isNaN(n));return Math.max(...t)},Yj=function(...e){const t=e.filter(n=>!isNaN(n));return Math.min(...t)},VU=function(e){const t=e.split(/(,)/),n=[];for(let r=0;r<t.length;r++){let i=t[r];if(i===","&&r>0&&r+1<t.length){const o=t[r-1],s=t[r+1];Gj(o,s)&&(i=o+","+s,r++,n.pop())}n.push(Kj(i))}return n.join("")},Zd=(e,t)=>Math.max(0,e.split(t).length-1),Gj=(e,t)=>{const n=Zd(e,"~"),r=Zd(t,"~");return n===1&&r===1},Kj=e=>{const t=Zd(e,"~");let n=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),n=!0);const r=[...e];let i=r.indexOf("~"),o=r.lastIndexOf("~");for(;i!==-1&&o!==-1&&i!==o;)r[i]="<",r[o]=">",i=r.indexOf("~"),o=r.lastIndexOf("~");return n&&r.unshift("~"),r.join("")},ev=()=>window.MathMLElement!==void 0,Jd=/\$\$(.*)\$\$/g,tv=e=>{var t;return(((t=e.match(Jd))==null?void 0:t.length)??0)>0},UU=async(e,t)=>{const n=document.createElement("div");n.innerHTML=await Qj(e,t),n.id="katex-temp",n.style.visibility="hidden",n.style.position="absolute",n.style.top="0";const r=document.querySelector("body");r==null||r.insertAdjacentElement("beforeend",n);const i={width:n.clientWidth,height:n.clientHeight};return n.remove(),i},Xj=async(e,t)=>{if(!tv(e))return e;if(!ev()&&!t.legacyMathML)return e.replace(Jd,"MathML is unsupported in this environment.");const{default:n}=await Me(async()=>{const{default:r}=await import("./katex-Cu_Erd72.js");return{default:r}},[]);return e.split(Va).map(r=>tv(r)?`
177
+ <div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">
178
+ ${r}
179
+ </div>
180
+ `:`<div>${r}</div>`).join("").replace(Jd,(r,i)=>n.renderToString(i,{throwOnError:!0,displayMode:!0,output:ev()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},Qj=async(e,t)=>Io(await Xj(e,t),t),hg={getRows:Rj,sanitizeText:Io,sanitizeTextOrArray:$j,hasBreaks:Vj,splitBreaks:Uj,lineBreakRegex:Va,removeScript:nT,getUrl:Hj,evaluate:iT,getMax:Wj,getMin:Yj},_t=(e,t)=>t?E(e,{s:-40,l:10}):E(e,{s:-40,l:-10}),jc="#ffffff",$c="#f2f2f2";let Zj=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var t,n,r,i,o,s,a,l,u,c,h;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||E(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||E(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||_t(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||_t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||_t(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||_t(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||q(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||q(this.tertiaryColor),this.lineColor=this.lineColor||q(this.background),this.arrowheadColor=this.arrowheadColor||q(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?te(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||te(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||q(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||X(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||E(this.primaryColor,{h:30}),this.cScale4=this.cScale4||E(this.primaryColor,{h:60}),this.cScale5=this.cScale5||E(this.primaryColor,{h:90}),this.cScale6=this.cScale6||E(this.primaryColor,{h:120}),this.cScale7=this.cScale7||E(this.primaryColor,{h:150}),this.cScale8=this.cScale8||E(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||E(this.primaryColor,{h:270}),this.cScale10=this.cScale10||E(this.primaryColor,{h:300}),this.cScale11=this.cScale11||E(this.primaryColor,{h:330}),this.darkMode)for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=te(this["cScale"+d],75);else for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=te(this["cScale"+d],25);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleInv"+d]=this["cScaleInv"+d]||q(this["cScale"+d]);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this.darkMode?this["cScalePeer"+d]=this["cScalePeer"+d]||X(this["cScale"+d],10):this["cScalePeer"+d]=this["cScalePeer"+d]||te(this["cScale"+d],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleLabel"+d]=this["cScaleLabel"+d]||this.scaleLabelColor;const f=this.darkMode?-4:-1;for(let d=0;d<5;d++)this["surface"+d]=this["surface"+d]||E(this.mainBkg,{h:180,s:-15,l:f*(5+d*3)}),this["surfacePeer"+d]=this["surfacePeer"+d]||E(this.mainBkg,{h:180,s:-15,l:f*(8+d*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||E(this.primaryColor,{h:64}),this.fillType3=this.fillType3||E(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||E(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||E(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||E(this.primaryColor,{h:128}),this.fillType7=this.fillType7||E(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||E(this.primaryColor,{l:-10}),this.pie5=this.pie5||E(this.secondaryColor,{l:-10}),this.pie6=this.pie6||E(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||E(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||E(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||E(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||E(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||E(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||E(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||E(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||E(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||E(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||E(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||E(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||E(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||za(this.quadrant1Fill)?X(this.quadrant1Fill):te(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((i=this.xyChart)==null?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((c=this.xyChart)==null?void 0:c.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((h=this.xyChart)==null?void 0:h.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?te(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||E(this.primaryColor,{h:-30}),this.git4=this.git4||E(this.primaryColor,{h:-60}),this.git5=this.git5||E(this.primaryColor,{h:-90}),this.git6=this.git6||E(this.primaryColor,{h:60}),this.git7=this.git7||E(this.primaryColor,{h:120}),this.darkMode?(this.git0=X(this.git0,25),this.git1=X(this.git1,25),this.git2=X(this.git2,25),this.git3=X(this.git3,25),this.git4=X(this.git4,25),this.git5=X(this.git5,25),this.git6=X(this.git6,25),this.git7=X(this.git7,25)):(this.git0=te(this.git0,25),this.git1=te(this.git1,25),this.git2=te(this.git2,25),this.git3=te(this.git3,25),this.git4=te(this.git4,25),this.git5=te(this.git5,25),this.git6=te(this.git6,25),this.git7=te(this.git7,25)),this.gitInv0=this.gitInv0||q(this.git0),this.gitInv1=this.gitInv1||q(this.git1),this.gitInv2=this.gitInv2||q(this.git2),this.gitInv3=this.gitInv3||q(this.git3),this.gitInv4=this.gitInv4||q(this.git4),this.gitInv5=this.gitInv5||q(this.git5),this.gitInv6=this.gitInv6||q(this.git6),this.gitInv7=this.gitInv7||q(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||jc,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||$c}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}};const Jj=e=>{const t=new Zj;return t.calculate(e),t};let e8=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=X(this.primaryColor,16),this.tertiaryColor=E(this.primaryColor,{h:-160}),this.primaryBorderColor=q(this.background),this.secondaryBorderColor=_t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=_t(this.tertiaryColor,this.darkMode),this.primaryTextColor=q(this.primaryColor),this.secondaryTextColor=q(this.secondaryColor),this.tertiaryTextColor=q(this.tertiaryColor),this.lineColor=q(this.background),this.textColor=q(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=X(q("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Us(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=te("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=te(this.sectionBkgColor,10),this.taskBorderColor=Us(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Us(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var t,n,r,i,o,s,a,l,u,c,h;this.secondBkg=X(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=X(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=X(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=E(this.primaryColor,{h:64}),this.fillType3=E(this.secondaryColor,{h:64}),this.fillType4=E(this.primaryColor,{h:-64}),this.fillType5=E(this.secondaryColor,{h:-64}),this.fillType6=E(this.primaryColor,{h:128}),this.fillType7=E(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||E(this.primaryColor,{h:30}),this.cScale4=this.cScale4||E(this.primaryColor,{h:60}),this.cScale5=this.cScale5||E(this.primaryColor,{h:90}),this.cScale6=this.cScale6||E(this.primaryColor,{h:120}),this.cScale7=this.cScale7||E(this.primaryColor,{h:150}),this.cScale8=this.cScale8||E(this.primaryColor,{h:210}),this.cScale9=this.cScale9||E(this.primaryColor,{h:270}),this.cScale10=this.cScale10||E(this.primaryColor,{h:300}),this.cScale11=this.cScale11||E(this.primaryColor,{h:330});for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||q(this["cScale"+f]);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScalePeer"+f]=this["cScalePeer"+f]||X(this["cScale"+f],10);for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||E(this.mainBkg,{h:30,s:-30,l:-(-10+f*4)}),this["surfacePeer"+f]=this["surfacePeer"+f]||E(this.mainBkg,{h:30,s:-30,l:-(-7+f*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.scaleLabelColor;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["pie"+f]=this["cScale"+f];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||E(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||E(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||E(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||E(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||E(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||E(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||za(this.quadrant1Fill)?X(this.quadrant1Fill):te(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((i=this.xyChart)==null?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((c=this.xyChart)==null?void 0:c.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((h=this.xyChart)==null?void 0:h.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?te(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=X(this.secondaryColor,20),this.git1=X(this.pie2||this.secondaryColor,20),this.git2=X(this.pie3||this.tertiaryColor,20),this.git3=X(this.pie4||E(this.primaryColor,{h:-30}),20),this.git4=X(this.pie5||E(this.primaryColor,{h:-60}),20),this.git5=X(this.pie6||E(this.primaryColor,{h:-90}),10),this.git6=X(this.pie7||E(this.primaryColor,{h:60}),10),this.git7=X(this.pie8||E(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||q(this.git0),this.gitInv1=this.gitInv1||q(this.git1),this.gitInv2=this.gitInv2||q(this.git2),this.gitInv3=this.gitInv3||q(this.git3),this.gitInv4=this.gitInv4||q(this.git4),this.gitInv5=this.gitInv5||q(this.git5),this.gitInv6=this.gitInv6||q(this.git6),this.gitInv7=this.gitInv7||q(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||q(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||q(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||X(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||X(this.background,2)}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}};const t8=e=>{const t=new e8;return t.calculate(e),t};let n8=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=E(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=E(this.primaryColor,{h:-160}),this.primaryBorderColor=_t(this.primaryColor,this.darkMode),this.secondaryBorderColor=_t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=_t(this.tertiaryColor,this.darkMode),this.primaryTextColor=q(this.primaryColor),this.secondaryTextColor=q(this.secondaryColor),this.tertiaryTextColor=q(this.tertiaryColor),this.lineColor=q(this.background),this.textColor=q(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=Us(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var t,n,r,i,o,s,a,l,u,c,h;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||E(this.primaryColor,{h:30}),this.cScale4=this.cScale4||E(this.primaryColor,{h:60}),this.cScale5=this.cScale5||E(this.primaryColor,{h:90}),this.cScale6=this.cScale6||E(this.primaryColor,{h:120}),this.cScale7=this.cScale7||E(this.primaryColor,{h:150}),this.cScale8=this.cScale8||E(this.primaryColor,{h:210}),this.cScale9=this.cScale9||E(this.primaryColor,{h:270}),this.cScale10=this.cScale10||E(this.primaryColor,{h:300}),this.cScale11=this.cScale11||E(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||te(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||te(this.tertiaryColor,40);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=te(this["cScale"+f],10),this["cScalePeer"+f]=this["cScalePeer"+f]||te(this["cScale"+f],25);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||E(this["cScale"+f],{h:180});for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||E(this.mainBkg,{h:30,l:-(5+f*5)}),this["surfacePeer"+f]=this["surfacePeer"+f]||E(this.mainBkg,{h:30,l:-(7+f*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||q(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||q(this.labelTextColor);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=X(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=E(this.primaryColor,{h:64}),this.fillType3=E(this.secondaryColor,{h:64}),this.fillType4=E(this.primaryColor,{h:-64}),this.fillType5=E(this.secondaryColor,{h:-64}),this.fillType6=E(this.primaryColor,{h:128}),this.fillType7=E(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||E(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||E(this.primaryColor,{l:-10}),this.pie5=this.pie5||E(this.secondaryColor,{l:-30}),this.pie6=this.pie6||E(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||E(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||E(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||E(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||E(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||E(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||E(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||E(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||E(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||E(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||E(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||E(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||E(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||za(this.quadrant1Fill)?X(this.quadrant1Fill):te(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((i=this.xyChart)==null?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((c=this.xyChart)==null?void 0:c.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((h=this.xyChart)==null?void 0:h.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||E(this.primaryColor,{h:-30}),this.git4=this.git4||E(this.primaryColor,{h:-60}),this.git5=this.git5||E(this.primaryColor,{h:-90}),this.git6=this.git6||E(this.primaryColor,{h:60}),this.git7=this.git7||E(this.primaryColor,{h:120}),this.darkMode?(this.git0=X(this.git0,25),this.git1=X(this.git1,25),this.git2=X(this.git2,25),this.git3=X(this.git3,25),this.git4=X(this.git4,25),this.git5=X(this.git5,25),this.git6=X(this.git6,25),this.git7=X(this.git7,25)):(this.git0=te(this.git0,25),this.git1=te(this.git1,25),this.git2=te(this.git2,25),this.git3=te(this.git3,25),this.git4=te(this.git4,25),this.git5=te(this.git5,25),this.git6=te(this.git6,25),this.git7=te(this.git7,25)),this.gitInv0=this.gitInv0||te(q(this.git0),25),this.gitInv1=this.gitInv1||q(this.git1),this.gitInv2=this.gitInv2||q(this.git2),this.gitInv3=this.gitInv3||q(this.git3),this.gitInv4=this.gitInv4||q(this.git4),this.gitInv5=this.gitInv5||q(this.git5),this.gitInv6=this.gitInv6||q(this.git6),this.gitInv7=this.gitInv7||q(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||q(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||q(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||jc,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||$c}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}};const r8=e=>{const t=new n8;return t.calculate(e),t};let i8=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=X("#cde498",10),this.primaryBorderColor=_t(this.primaryColor,this.darkMode),this.secondaryBorderColor=_t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=_t(this.tertiaryColor,this.darkMode),this.primaryTextColor=q(this.primaryColor),this.secondaryTextColor=q(this.secondaryColor),this.tertiaryTextColor=q(this.primaryColor),this.lineColor=q(this.background),this.textColor=q(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,n,r,i,o,s,a,l,u,c,h;this.actorBorder=te(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||E(this.primaryColor,{h:30}),this.cScale4=this.cScale4||E(this.primaryColor,{h:60}),this.cScale5=this.cScale5||E(this.primaryColor,{h:90}),this.cScale6=this.cScale6||E(this.primaryColor,{h:120}),this.cScale7=this.cScale7||E(this.primaryColor,{h:150}),this.cScale8=this.cScale8||E(this.primaryColor,{h:210}),this.cScale9=this.cScale9||E(this.primaryColor,{h:270}),this.cScale10=this.cScale10||E(this.primaryColor,{h:300}),this.cScale11=this.cScale11||E(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||te(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||te(this.tertiaryColor,40);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=te(this["cScale"+f],10),this["cScalePeer"+f]=this["cScalePeer"+f]||te(this["cScale"+f],25);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||E(this["cScale"+f],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.scaleLabelColor;for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||E(this.mainBkg,{h:30,s:-30,l:-(5+f*5)}),this["surfacePeer"+f]=this["surfacePeer"+f]||E(this.mainBkg,{h:30,s:-30,l:-(8+f*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=E(this.primaryColor,{h:64}),this.fillType3=E(this.secondaryColor,{h:64}),this.fillType4=E(this.primaryColor,{h:-64}),this.fillType5=E(this.secondaryColor,{h:-64}),this.fillType6=E(this.primaryColor,{h:128}),this.fillType7=E(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||E(this.primaryColor,{l:-30}),this.pie5=this.pie5||E(this.secondaryColor,{l:-30}),this.pie6=this.pie6||E(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||E(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||E(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||E(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||E(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||E(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||E(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||E(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||E(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||E(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||E(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||E(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||E(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||za(this.quadrant1Fill)?X(this.quadrant1Fill):te(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((i=this.xyChart)==null?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((c=this.xyChart)==null?void 0:c.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((h=this.xyChart)==null?void 0:h.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||E(this.primaryColor,{h:-30}),this.git4=this.git4||E(this.primaryColor,{h:-60}),this.git5=this.git5||E(this.primaryColor,{h:-90}),this.git6=this.git6||E(this.primaryColor,{h:60}),this.git7=this.git7||E(this.primaryColor,{h:120}),this.darkMode?(this.git0=X(this.git0,25),this.git1=X(this.git1,25),this.git2=X(this.git2,25),this.git3=X(this.git3,25),this.git4=X(this.git4,25),this.git5=X(this.git5,25),this.git6=X(this.git6,25),this.git7=X(this.git7,25)):(this.git0=te(this.git0,25),this.git1=te(this.git1,25),this.git2=te(this.git2,25),this.git3=te(this.git3,25),this.git4=te(this.git4,25),this.git5=te(this.git5,25),this.git6=te(this.git6,25),this.git7=te(this.git7,25)),this.gitInv0=this.gitInv0||q(this.git0),this.gitInv1=this.gitInv1||q(this.git1),this.gitInv2=this.gitInv2||q(this.git2),this.gitInv3=this.gitInv3||q(this.git3),this.gitInv4=this.gitInv4||q(this.git4),this.gitInv5=this.gitInv5||q(this.git5),this.gitInv6=this.gitInv6||q(this.git6),this.gitInv7=this.gitInv7||q(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||q(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||q(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||jc,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||$c}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}};const o8=e=>{const t=new i8;return t.calculate(e),t};class s8{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=X(this.contrast,55),this.background="#ffffff",this.tertiaryColor=E(this.primaryColor,{h:-160}),this.primaryBorderColor=_t(this.primaryColor,this.darkMode),this.secondaryBorderColor=_t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=_t(this.tertiaryColor,this.darkMode),this.primaryTextColor=q(this.primaryColor),this.secondaryTextColor=q(this.secondaryColor),this.tertiaryTextColor=q(this.tertiaryColor),this.lineColor=q(this.background),this.textColor=q(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,n,r,i,o,s,a,l,u,c,h;this.secondBkg=X(this.contrast,55),this.border2=this.contrast,this.actorBorder=X(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||q(this["cScale"+f]);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this.darkMode?this["cScalePeer"+f]=this["cScalePeer"+f]||X(this["cScale"+f],10):this["cScalePeer"+f]=this["cScalePeer"+f]||te(this["cScale"+f],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.scaleLabelColor;for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||E(this.mainBkg,{l:-(5+f*5)}),this["surfacePeer"+f]=this["surfacePeer"+f]||E(this.mainBkg,{l:-(8+f*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=X(this.contrast,30),this.sectionBkgColor2=X(this.contrast,30),this.taskBorderColor=te(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=X(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=te(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=E(this.primaryColor,{h:64}),this.fillType3=E(this.secondaryColor,{h:64}),this.fillType4=E(this.primaryColor,{h:-64}),this.fillType5=E(this.secondaryColor,{h:-64}),this.fillType6=E(this.primaryColor,{h:128}),this.fillType7=E(this.secondaryColor,{h:128});for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["pie"+f]=this["cScale"+f];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||E(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||E(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||E(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||E(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||E(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||E(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||za(this.quadrant1Fill)?X(this.quadrant1Fill):te(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((i=this.xyChart)==null?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((c=this.xyChart)==null?void 0:c.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((h=this.xyChart)==null?void 0:h.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=te(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||E(this.primaryColor,{h:-30}),this.git4=this.pie5||E(this.primaryColor,{h:-60}),this.git5=this.pie6||E(this.primaryColor,{h:-90}),this.git6=this.pie7||E(this.primaryColor,{h:60}),this.git7=this.pie8||E(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||q(this.git0),this.gitInv1=this.gitInv1||q(this.git1),this.gitInv2=this.gitInv2||q(this.git2),this.gitInv3=this.gitInv3||q(this.git3),this.gitInv4=this.gitInv4||q(this.git4),this.gitInv5=this.gitInv5||q(this.git5),this.gitInv6=this.gitInv6||q(this.git6),this.gitInv7=this.gitInv7||q(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||jc,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||$c}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}}const a8=e=>{const t=new s8;return t.calculate(e),t},ur={base:{getThemeVariables:Jj},dark:{getThemeVariables:t8},default:{getThemeVariables:r8},forest:{getThemeVariables:o8},neutral:{getThemeVariables:a8}},er={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},oT={...er,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:ur.default.getThemeVariables(),sequence:{...er.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...er.gantt,tickInterval:void 0,useWidth:void 0},c4:{...er.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...er.pie,useWidth:984},xyChart:{...er.xyChart,useWidth:void 0},requirement:{...er.requirement,useWidth:void 0},gitGraph:{...er.gitGraph,useMaxWidth:!1},sankey:{...er.sankey,useMaxWidth:!1}},sT=(e,t="")=>Object.keys(e).reduce((n,r)=>Array.isArray(e[r])?n:typeof e[r]=="object"&&e[r]!==null?[...n,t+r,...sT(e[r],"")]:[...n,t+r],[]),l8=new Set(sT(oT,"")),u8=oT,qu=e=>{if(ee.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>qu(t));return}for(const t of Object.keys(e)){if(ee.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!l8.has(t)||e[t]==null){ee.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){ee.debug("sanitizing object",t),qu(e[t]);continue}const n=["themeCSS","fontFamily","altFontFamily"];for(const r of n)t.includes(r)&&(ee.debug("sanitizing css option",t),e[t]=c8(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const n=e.themeVariables[t];n!=null&&n.match&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}ee.debug("After sanitization",e)}},c8=e=>{let t=0,n=0;for(const r of e){if(t<n)return"{ /* ERROR: Unbalanced CSS */ }";r==="{"?t++:r==="}"&&n++}return t!==n?"{ /* ERROR: Unbalanced CSS */ }":e},aT=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Hs=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,h8=/\s*%%.*\n/gm;class lT extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}}const Do={},Vc=function(e,t){e=e.replace(aT,"").replace(Hs,"").replace(h8,`
181
+ `);for(const[n,{detector:r}]of Object.entries(Do))if(r(e,t))return n;throw new lT(`No diagram type detected matching given configuration for text: ${e}`)},uT=(...e)=>{for(const{id:t,detector:n,loader:r}of e)cT(t,n,r)},cT=(e,t,n)=>{Do[e]?ee.error(`Detector with key ${e} already exists`):Do[e]={detector:t,loader:n},ee.debug(`Detector with key ${e} added${n?" with loader":""}`)},f8=e=>Do[e].loader,ep=(e,t,{depth:n=2,clobber:r=!1}={})=>{const i={depth:n,clobber:r};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(o=>ep(e,o,i)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(o=>{e.includes(o)||e.push(o)}),e):e===void 0||n<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(o=>{typeof t[o]=="object"&&(e[o]===void 0||typeof e[o]=="object")?(e[o]===void 0&&(e[o]=Array.isArray(t[o])?[]:{}),e[o]=ep(e[o],t[o],{depth:n-1,clobber:r})):(r||typeof e[o]!="object"&&typeof t[o]!="object")&&(e[o]=t[o])}),e)},ht=ep,d8="​",p8={curveBasis:VO,curveBasisClosed:UO,curveBasisOpen:qO,curveBumpX:jO,curveBumpY:$O,curveBundle:HO,curveCardinalClosed:YO,curveCardinalOpen:GO,curveCardinal:WO,curveCatmullRomClosed:XO,curveCatmullRomOpen:QO,curveCatmullRom:KO,curveLinear:zO,curveLinearClosed:ZO,curveMonotoneX:JO,curveMonotoneY:eR,curveNatural:tR,curveStep:nR,curveStepAfter:iR,curveStepBefore:rR},m8=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,g8=function(e,t){const n=hT(e,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(n)){const s=n.map(a=>a.args);qu(s),r=ht(r,[...s])}else r=n.args;if(!r)return;let i=Vc(e,t);const o="config";return r[o]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),r[i]=r[o],delete r[o]),r},hT=function(e,t=null){try{const n=new RegExp(`[%]{2}(?![{]${m8.source})(?=[}][%]{2}).*
182
+ `,"ig");e=e.trim().replace(n,"").replace(/'/gm,'"'),ee.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let r;const i=[];for(;(r=Hs.exec(e))!==null;)if(r.index===Hs.lastIndex&&Hs.lastIndex++,r&&!t||t&&r[1]&&r[1].match(t)||t&&r[2]&&r[2].match(t)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;i.push({type:o,args:s})}return i.length===0?{type:e,args:null}:i.length===1?i[0]:i}catch(n){return ee.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},y8=function(e){return e.replace(Hs,"")},x8=function(e,t){for(const[n,r]of t.entries())if(r.match(e))return n;return-1};function v8(e,t){if(!e)return t;const n=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return p8[n]??t}function C8(e,t){const n=e.trim();if(n)return t.securityLevel!=="loose"?Hk.sanitizeUrl(n):n}const _8=(e,...t)=>{const n=e.split("."),r=n.length-1,i=n[r];let o=window;for(let s=0;s<r;s++)if(o=o[n[s]],!o){ee.error(`Function name: ${e} not found in window`);return}o[i](...t)};function fT(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function w8(e){let t,n=0;e.forEach(i=>{n+=fT(i,t),t=i});const r=n/2;return fg(e,r)}function k8(e){return e.length===1?e[0]:w8(e)}const nv=(e,t=2)=>{const n=Math.pow(10,t);return Math.round(e*n)/n},fg=(e,t)=>{let n,r=t;for(const i of e){if(n){const o=fT(i,n);if(o<r)r-=o;else{const s=r/o;if(s<=0)return n;if(s>=1)return{x:i.x,y:i.y};if(s>0&&s<1)return{x:nv((1-s)*n.x+s*i.x,5),y:nv((1-s)*n.y+s*i.y,5)}}}n=i}throw new Error("Could not find a suitable point for the given distance")},S8=(e,t,n)=>{ee.info(`our points ${JSON.stringify(t)}`),t[0]!==n&&(t=t.reverse());const i=fg(t,25),o=e?10:5,s=Math.atan2(t[0].y-i.y,t[0].x-i.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(t[0].x+i.x)/2,a.y=-Math.cos(s)*o+(t[0].y+i.y)/2,a};function T8(e,t,n){const r=structuredClone(n);ee.info("our points",r),t!=="start_left"&&t!=="start_right"&&r.reverse();const i=25+e,o=fg(r,i),s=10+e*.5,a=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return t==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+o.y)/2):t==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+o.y)/2-5):t==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2),l}function b8(e){let t="",n="";for(const r of e)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?n=n+r+";":t=t+r+";");return{style:t,labelStyle:n}}let rv=0;const E8=()=>(rv++,"id-"+Math.random().toString(36).substr(2,12)+"-"+rv);function A8(e){let t="";const n="0123456789abcdef",r=n.length;for(let i=0;i<e;i++)t+=n.charAt(Math.floor(Math.random()*r));return t}const L8=e=>A8(e.length),P8=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},F8=function(e,t){const n=t.text.replace(hg.lineBreakRegex," "),[,r]=pg(t.fontSize),i=e.append("text");i.attr("x",t.x),i.attr("y",t.y),i.style("text-anchor",t.anchor),i.style("font-family",t.fontFamily),i.style("font-size",r),i.style("font-weight",t.fontWeight),i.attr("fill",t.fill),t.class!==void 0&&i.attr("class",t.class);const o=i.append("tspan");return o.attr("x",t.x+t.textMargin*2),o.attr("fill",t.fill),o.text(n),i},B8=ja((e,t,n)=>{if(!e||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),hg.lineBreakRegex.test(e)))return e;const r=e.split(" "),i=[];let o="";return r.forEach((s,a)=>{const l=Hu(`${s} `,n),u=Hu(o,n);if(l>t){const{hyphenatedStrings:f,remainingWord:d}=M8(s,t,"-",n);i.push(o,...f),o=d}else u+l>=t?(i.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&i.push(o)}),i.filter(s=>s!=="").join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),M8=ja((e,t,n="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const i=[...e],o=[];let s="";return i.forEach((a,l)=>{const u=`${s}${a}`;if(Hu(u,r)>=t){const h=l+1,f=i.length===h,d=`${u}${n}`;o.push(f?u:d),s=""}else s=u}),{hyphenatedStrings:o,remainingWord:s}},(e,t,n="-",r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function N8(e,t){return dg(e,t).height}function Hu(e,t){return dg(e,t).width}const dg=ja((e,t)=>{const{fontSize:n=12,fontFamily:r="Arial",fontWeight:i=400}=t;if(!e)return{width:0,height:0};const[,o]=pg(n),s=["sans-serif",r],a=e.split(hg.lineBreakRegex),l=[],u=tn("body");if(!u.remove)return{width:0,height:0,lineHeight:0};const c=u.append("svg");for(const f of s){let d=0;const g={width:0,height:0,lineHeight:0};for(const y of a){const k=P8();k.text=y||d8;const p=F8(c,k).style("font-size",o).style("font-weight",i).style("font-family",f),m=(p._groups||p)[0][0].getBBox();if(m.width===0&&m.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,m.width)),d=Math.round(m.height),g.height+=d,g.lineHeight=Math.round(Math.max(g.lineHeight,d))}l.push(g)}c.remove();const h=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[h]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`);class I8{constructor(t=!1,n){this.count=0,this.count=n?n.length:0,this.next=t?()=>this.count++:()=>Date.now()}}let Sl;const D8=function(e){return Sl=Sl||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Sl.innerHTML=e,unescape(Sl.textContent)};function dT(e){return"str"in e}const O8=(e,t,n,r)=>{var i;if(!r)return;const o=(i=e.node())==null?void 0:i.getBBox();o&&e.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-n).attr("class",t)},pg=e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]};function pT(e,t){return sj({},e,t)}const Ws={assignWithDepth:ht,wrapLabel:B8,calculateTextHeight:N8,calculateTextWidth:Hu,calculateTextDimensions:dg,cleanAndMerge:pT,detectInit:g8,detectDirective:hT,isSubstringInArray:x8,interpolateToCurve:v8,calcLabelPosition:k8,calcCardinalityPosition:S8,calcTerminalLabelPosition:T8,formatUrl:C8,getStylesFromArray:b8,generateId:E8,random:L8,runFunc:_8,entityDecode:D8,insertTitle:O8,parseFontSize:pg,InitIDGenerator:I8},R8=function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(n){return n.substring(0,n.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(n){return n.substring(0,n.length-1)}),t=t.replace(/#\w+;/g,function(n){const r=n.substring(1,n.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),t},z8=function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},iv="10.9.5",Oo=Object.freeze(u8);let Ft=ht({},Oo),mT,Ro=[],Ys=ht({},Oo);const Uc=(e,t)=>{let n=ht({},e),r={};for(const i of t)xT(i),r=ht(r,i);if(n=ht(n,r),r.theme&&r.theme in ur){const i=ht({},mT),o=ht(i.themeVariables||{},r.themeVariables);n.theme&&n.theme in ur&&(n.themeVariables=ur[n.theme].getThemeVariables(o))}return Ys=n,vT(Ys),Ys},j8=e=>(Ft=ht({},Oo),Ft=ht(Ft,e),e.theme&&ur[e.theme]&&(Ft.themeVariables=ur[e.theme].getThemeVariables(e.themeVariables)),Uc(Ft,Ro),Ft),$8=e=>{mT=ht({},e)},V8=e=>(Ft=ht(Ft,e),Uc(Ft,Ro),Ft),gT=()=>ht({},Ft),yT=e=>(vT(e),ht(Ys,e),Yn()),Yn=()=>ht({},Ys),xT=e=>{e&&(["secure",...Ft.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(ee.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&xT(e[t])}))},U8=e=>{qu(e),e.fontFamily&&(!e.themeVariables||!e.themeVariables.fontFamily)&&(e.themeVariables={fontFamily:e.fontFamily}),Ro.push(e),Uc(Ft,Ro)},Wu=(e=Ft)=>{Ro=[],Uc(e,Ro)},q8={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},ov={},H8=e=>{ov[e]||(ee.warn(q8[e]),ov[e]=!0)},vT=e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&H8("LAZY_LOAD_DEPRECATED")},CT="c4",W8=e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),Y8=async()=>{const{diagram:e}=await Me(async()=>{const{diagram:t}=await import("./c4Diagram-c83219d4-DErNj891.js");return{diagram:t}},__vite__mapDeps([0,1]));return{id:CT,diagram:e}},G8={id:CT,detector:W8,loader:Y8},K8=G8,_T="flowchart",X8=(e,t)=>{var n,r;return((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"||((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},Q8=async()=>{const{diagram:e}=await Me(async()=>{const{diagram:t}=await import("./flowDiagram-50d868cf-DYxwClWS.js");return{diagram:t}},__vite__mapDeps([2,3,4,5,6,7,8,9,10,11,12,13,14]));return{id:_T,diagram:e}},Z8={id:_T,detector:X8,loader:Q8},J8=Z8,wT="flowchart-v2",e$=(e,t)=>{var n,r,i;return((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-d3"||((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)&&((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e)},t$=async()=>{const{diagram:e}=await Me(async()=>{const{diagram:t}=await import("./flowDiagram-v2-4f6560a1-D7vEnO1T.js");return{diagram:t}},__vite__mapDeps([15,3,6,4,7,5,8,9,10,11,12,13,14]));return{id:wT,diagram:e}},n$={id:wT,detector:e$,loader:t$},r$=n$,kT="er",i$=e=>/^\s*erDiagram/.test(e),o$=async()=>{const{diagram:e}=await Me(async()=>{const{diagram:t}=await import("./erDiagram-0228fc6a-ClEp9Atg.js");return{diagram:t}},__vite__mapDeps([16,4,5,11,12,13]));return{id:kT,diagram:e}},s$={id:kT,detector:i$,loader:o$},a$=s$,ST="gitGraph",l$=e=>/^\s*gitGraph/.test(e),u$=async()=>{const{diagram:e}=await Me(async()=>{const{diagram:t}=await import("./gitGraphDiagram-82fe8481-ClxNoYya.js");return{diagram:t}},[]);return{id:ST,diagram:e}},c$={id:ST,detector:l$,loader:u$},h$=c$,TT="gantt",f$=e=>/^\s*gantt/.test(e),d$=async()=>{const{diagram:e}=await Me(async()=>{const{diagram:t}=await import("./ganttDiagram-a2739b55-DTeLavAj.js");return{diagram:t}},__vite__mapDeps([17,18,19]));return{id:TT,diagram:e}},p$={id:TT,detector:f$,loader:d$},m$=p$,bT="info",g$=e=>/^\s*info/.test(e),y$=async()=>{const{diagram:e}=await Me(async()=>{const{diagram:t}=await import("./infoDiagram-8eee0895-Zljudo5L.js");return{diagram:t}},[]);return{id:bT,diagram:e}},x$={id:bT,detector:g$,loader:y$},ET="pie",v$=e=>/^\s*pie/.test(e),C$=async()=>{const{diagram:e}=await Me(async()=>{const{diagram:t}=await import("./pieDiagram-a8764435-DtcOKNPc.js");return{diagram:t}},__vite__mapDeps([20,21,13,22,19,12]));return{id:ET,diagram:e}},_$={id:ET,detector:v$,loader:C$},AT="quadrantChart",w$=e=>/^\s*quadrantChart/.test(e),k$=async()=>{const{diagram:e}=await Me(async()=>{const{diagram:t}=await import("./quadrantDiagram-1e28029f-zoSI_Ltf.js");return{diagram:t}},__vite__mapDeps([23,18,19]));return{id:AT,diagram:e}},S$={id:AT,detector:w$,loader:k$},T$=S$,LT="xychart",b$=e=>/^\s*xychart-beta/.test(e),E$=async()=>{const{diagram:e}=await Me(async()=>{const{diagram:t}=await import("./xychartDiagram-f5964ef8-ByvzN0uj.js");return{diagram:t}},__vite__mapDeps([24,10,19,22,18,11,12,13]));return{id:LT,diagram:e}},A$={id:LT,detector:b$,loader:E$},L$=A$,PT="requirement",P$=e=>/^\s*requirement(Diagram)?/.test(e),F$=async()=>{const{diagram:e}=await Me(async()=>{const{diagram:t}=await import("./requirementDiagram-08caed73-TsQZ9lTB.js");return{diagram:t}},__vite__mapDeps([25,4,5,11,12,13]));return{id:PT,diagram:e}},B$={id:PT,detector:P$,loader:F$},M$=B$,FT="sequence",N$=e=>/^\s*sequenceDiagram/.test(e),I$=async()=>{const{diagram:e}=await Me(async()=>{const{diagram:t}=await import("./sequenceDiagram-c5b8d532-DhabPb2n.js");return{diagram:t}},__vite__mapDeps([26,1]));return{id:FT,diagram:e}},D$={id:FT,detector:N$,loader:I$},O$=D$,BT="class",R$=(e,t)=>{var n;return((n=t==null?void 0:t.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},z$=async()=>{const{diagram:e}=await Me(async()=>{const{diagram:t}=await import("./classDiagram-beda092f-Bj8IB6RW.js");return{diagram:t}},__vite__mapDeps([27,28,4,5,11,12,13]));return{id:BT,diagram:e}},j$={id:BT,detector:R$,loader:z$},$$=j$,MT="classDiagram",V$=(e,t)=>{var n;return/^\s*classDiagram/.test(e)&&((n=t==null?void 0:t.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},U$=async()=>{const{diagram:e}=await Me(async()=>{const{diagram:t}=await import("./classDiagram-v2-2358418a-BZtd2g5W.js");return{diagram:t}},__vite__mapDeps([29,28,4,7,5,8,9,10,11,12,13]));return{id:MT,diagram:e}},q$={id:MT,detector:V$,loader:U$},H$=q$,NT="state",W$=(e,t)=>{var n;return((n=t==null?void 0:t.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},Y$=async()=>{const{diagram:e}=await Me(async()=>{const{diagram:t}=await import("./stateDiagram-1ecb1508-Bg2q_YNx.js");return{diagram:t}},__vite__mapDeps([30,31,4,5,11,12,13]));return{id:NT,diagram:e}},G$={id:NT,detector:W$,loader:Y$},K$=G$,IT="stateDiagram",X$=(e,t)=>{var n;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((n=t==null?void 0:t.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper")},Q$=async()=>{const{diagram:e}=await Me(async()=>{const{diagram:t}=await import("./stateDiagram-v2-c2b004d7-Bs5iRjYB.js");return{diagram:t}},__vite__mapDeps([32,31,4,7,5,8,9,10,11,12,13]));return{id:IT,diagram:e}},Z$={id:IT,detector:X$,loader:Q$},J$=Z$,DT="journey",e9=e=>/^\s*journey/.test(e),t9=async()=>{const{diagram:e}=await Me(async()=>{const{diagram:t}=await import("./journeyDiagram-c64418c1-DXzTbuum.js");return{diagram:t}},__vite__mapDeps([33,1,21,13]));return{id:DT,diagram:e}},n9={id:DT,detector:e9,loader:t9},r9=n9,i9=function(e,t){for(let n of t)e.attr(n[0],n[1])},o9=function(e,t,n){let r=new Map;return n?(r.set("width","100%"),r.set("style",`max-width: ${t}px;`)):(r.set("height",e),r.set("width",t)),r},OT=function(e,t,n,r){const i=o9(t,n,r);i9(e,i)},s9=function(e,t,n,r){const i=t.node().getBBox(),o=i.width,s=i.height;ee.info(`SVG bounds: ${o}x${s}`,i);let a=0,l=0;ee.info(`Graph bounds: ${a}x${l}`,e),a=o+n*2,l=s+n*2,ee.info(`Calculated bounds: ${a}x${l}`),OT(t,l,a,r);const u=`${i.x-n} ${i.y-n} ${i.width+2*n} ${i.height+2*n}`;t.attr("viewBox",u)},Ql={},a9=(e,t,n)=>{let r="";return e in Ql&&Ql[e]?r=Ql[e](n):ee.warn(`No theme found for ${e}`),` & {
183
+ font-family: ${n.fontFamily};
184
+ font-size: ${n.fontSize};
185
+ fill: ${n.textColor}
186
+ }
187
+
188
+ /* Classes common for multiple diagrams */
189
+
190
+ & .error-icon {
191
+ fill: ${n.errorBkgColor};
192
+ }
193
+ & .error-text {
194
+ fill: ${n.errorTextColor};
195
+ stroke: ${n.errorTextColor};
196
+ }
197
+
198
+ & .edge-thickness-normal {
199
+ stroke-width: 2px;
200
+ }
201
+ & .edge-thickness-thick {
202
+ stroke-width: 3.5px
203
+ }
204
+ & .edge-pattern-solid {
205
+ stroke-dasharray: 0;
206
+ }
207
+
208
+ & .edge-pattern-dashed{
209
+ stroke-dasharray: 3;
210
+ }
211
+ .edge-pattern-dotted {
212
+ stroke-dasharray: 2;
213
+ }
214
+
215
+ & .marker {
216
+ fill: ${n.lineColor};
217
+ stroke: ${n.lineColor};
218
+ }
219
+ & .marker.cross {
220
+ stroke: ${n.lineColor};
221
+ }
222
+
223
+ & svg {
224
+ font-family: ${n.fontFamily};
225
+ font-size: ${n.fontSize};
226
+ }
227
+
228
+ ${r}
229
+
230
+ ${t}
231
+ `},l9=(e,t)=>{t!==void 0&&(Ql[e]=t)},u9=a9;let mg="",gg="",yg="";const xg=e=>Io(e,Yn()),c9=()=>{mg="",yg="",gg=""},h9=e=>{mg=xg(e).replace(/^\s+/g,"")},f9=()=>mg,d9=e=>{yg=xg(e).replace(/\n\s+/g,`
232
+ `)},p9=()=>yg,m9=e=>{gg=xg(e)},g9=()=>gg,y9=Object.freeze(Object.defineProperty({__proto__:null,clear:c9,getAccDescription:p9,getAccTitle:f9,getDiagramTitle:g9,setAccDescription:d9,setAccTitle:h9,setDiagramTitle:m9},Symbol.toStringTag,{value:"Module"})),x9=ee,v9=cg,vg=Yn,GU=yT,KU=Oo,C9=e=>Io(e,vg()),_9=s9,w9=()=>y9,Yu={},Gu=(e,t,n)=>{var r;if(Yu[e])throw new Error(`Diagram ${e} already registered.`);Yu[e]=t,n&&cT(e,n),l9(e,t.styles),(r=t.injectUtils)==null||r.call(t,x9,v9,vg,C9,_9,w9(),()=>{})},Cg=e=>{if(e in Yu)return Yu[e];throw new k9(e)};class k9 extends Error{constructor(t){super(`Diagram ${t} not found.`)}}const S9=e=>{var t;const{securityLevel:n}=vg();let r=tn("body");if(n==="sandbox"){const s=((t=tn(`#i${e}`).node())==null?void 0:t.contentDocument)??document;r=tn(s.body)}return r.select(`#${e}`)},T9=(e,t,n)=>{ee.debug(`rendering svg for syntax error
233
+ `);const r=S9(t),i=r.append("g");r.attr("viewBox","0 0 2412 512"),OT(r,100,512,!0),i.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),i.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),i.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),i.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),i.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),i.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)},RT={draw:T9},b9=RT,E9={db:{},renderer:RT,parser:{parser:{yy:{}},parse:()=>{}}},A9=E9,zT="flowchart-elk",L9=(e,t)=>{var n;return!!(/^\s*flowchart-elk/.test(e)||/^\s*flowchart|graph/.test(e)&&((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk")},P9=async()=>{const{diagram:e}=await Me(async()=>{const{diagram:t}=await import("./flowchart-elk-definition-6af322e1-C-wX1mNx.js");return{diagram:t}},__vite__mapDeps([34,3,9,10,11,12,13]));return{id:zT,diagram:e}},F9={id:zT,detector:L9,loader:P9},B9=F9,jT="timeline",M9=e=>/^\s*timeline/.test(e),N9=async()=>{const{diagram:e}=await Me(async()=>{const{diagram:t}=await import("./timeline-definition-faaaa080--sq0bTHe.js");return{diagram:t}},__vite__mapDeps([35,21,13]));return{id:jT,diagram:e}},I9={id:jT,detector:M9,loader:N9},D9=I9,$T="mindmap",O9=e=>/^\s*mindmap/.test(e),R9=async()=>{const{diagram:e}=await Me(async()=>{const{diagram:t}=await import("./mindmap-definition-8da855dc-BDLTNZYk.js");return{diagram:t}},__vite__mapDeps([36,10]));return{id:$T,diagram:e}},z9={id:$T,detector:O9,loader:R9},j9=z9,VT="sankey",$9=e=>/^\s*sankey-beta/.test(e),V9=async()=>{const{diagram:e}=await Me(async()=>{const{diagram:t}=await import("./sankeyDiagram-a04cb91d-DE5ciDwD.js");return{diagram:t}},__vite__mapDeps([37,22,19,38]));return{id:VT,diagram:e}},U9={id:VT,detector:$9,loader:V9},q9=U9,UT="block",H9=e=>/^\s*block-beta/.test(e),W9=async()=>{const{diagram:e}=await Me(async()=>{const{diagram:t}=await import("./blockDiagram-c4efeb88-BLITAZDl.js");return{diagram:t}},__vite__mapDeps([39,8,4,9,10,11,12,13,14,22,19,38]));return{id:UT,diagram:e}},Y9={id:UT,detector:H9,loader:W9},G9=Y9;let sv=!1;const _g=()=>{sv||(sv=!0,Gu("error",A9,e=>e.toLowerCase().trim()==="error"),Gu("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},e=>e.toLowerCase().trimStart().startsWith("---")),uT(K8,H$,$$,a$,m$,x$,_$,M$,O$,B9,r$,J8,j9,D9,h$,J$,K$,r9,T$,q9,L$,G9))};class qT{constructor(t,n={}){this.text=t,this.metadata=n,this.type="graph",this.text=R8(t),this.text+=`
234
+ `;const r=Yn();try{this.type=Vc(t,r)}catch(o){this.type="error",this.detectError=o}const i=Cg(this.type);ee.debug("Type "+this.type),this.db=i.db,this.renderer=i.renderer,this.parser=i.parser,this.parser.parser.yy=this.db,this.init=i.init,this.parse()}parse(){var t,n,r,i,o;if(this.detectError)throw this.detectError;(n=(t=this.db).clear)==null||n.call(t);const s=Yn();(r=this.init)==null||r.call(this,s),this.metadata.title&&((o=(i=this.db).setDiagramTitle)==null||o.call(i,this.metadata.title)),this.parser.parse(this.text)}async render(t,n){await this.renderer.draw(this.text,t,n,this)}getParser(){return this.parser}getType(){return this.type}}const K9=async(e,t={})=>{const n=Vc(e,Yn());try{Cg(n)}catch{const i=f8(n);if(!i)throw new lT(`Diagram ${n} not found.`);const{id:o,diagram:s}=await i();Gu(o,s)}return new qT(e,t)};let av=[];const X9=()=>{av.forEach(e=>{e()}),av=[]},Q9="graphics-document document";function Z9(e,t){e.attr("role",Q9),t!==""&&e.attr("aria-roledescription",t)}function J9(e,t,n,r){if(e.insert!==void 0){if(n){const i=`chart-desc-${r}`;e.attr("aria-describedby",i),e.insert("desc",":first-child").attr("id",i).text(n)}if(t){const i=`chart-title-${r}`;e.attr("aria-labelledby",i),e.insert("title",":first-child").attr("id",i).text(t)}}}const eV=e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function HT(e){return typeof e>"u"||e===null}function tV(e){return typeof e=="object"&&e!==null}function nV(e){return Array.isArray(e)?e:HT(e)?[]:[e]}function rV(e,t){var n,r,i,o;if(t)for(o=Object.keys(t),n=0,r=o.length;n<r;n+=1)i=o[n],e[i]=t[i];return e}function iV(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function oV(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var sV=HT,aV=tV,lV=nV,uV=iV,cV=oV,hV=rV,Ct={isNothing:sV,isObject:aV,toArray:lV,repeat:uV,isNegativeZero:cV,extend:hV};function WT(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
235
+
236
+ `+e.mark.snippet),r+" "+n):r}function Ta(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=WT(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ta.prototype=Object.create(Error.prototype);Ta.prototype.constructor=Ta;Ta.prototype.toString=function(t){return this.name+": "+WT(this,t)};var rr=Ta;function of(e,t,n,r,i){var o="",s="",a=Math.floor(i/2)-1;return r-t>a&&(o=" ... ",t=r-a+o.length),n-r>a&&(s=" ...",n=r+a-s.length),{str:o+e.slice(t,n).replace(/\t/g,"→")+s,pos:r-t+o.length}}function sf(e,t){return Ct.repeat(" ",t-e.length)+e}function fV(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],o,s=-1;o=n.exec(e.buffer);)i.push(o.index),r.push(o.index+o[0].length),e.position<=o.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var a="",l,u,c=Math.min(e.line+t.linesAfter,i.length).toString().length,h=t.maxLength-(t.indent+c+3);for(l=1;l<=t.linesBefore&&!(s-l<0);l++)u=of(e.buffer,r[s-l],i[s-l],e.position-(r[s]-r[s-l]),h),a=Ct.repeat(" ",t.indent)+sf((e.line-l+1).toString(),c)+" | "+u.str+`
237
+ `+a;for(u=of(e.buffer,r[s],i[s],e.position,h),a+=Ct.repeat(" ",t.indent)+sf((e.line+1).toString(),c)+" | "+u.str+`
238
+ `,a+=Ct.repeat("-",t.indent+c+3+u.pos)+`^
239
+ `,l=1;l<=t.linesAfter&&!(s+l>=i.length);l++)u=of(e.buffer,r[s+l],i[s+l],e.position-(r[s]-r[s+l]),h),a+=Ct.repeat(" ",t.indent)+sf((e.line+l+1).toString(),c)+" | "+u.str+`
240
+ `;return a.replace(/\n$/,"")}var dV=fV,pV=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],mV=["scalar","sequence","mapping"];function gV(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function yV(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(pV.indexOf(n)===-1)throw new rr('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=gV(t.styleAliases||null),mV.indexOf(this.kind)===-1)throw new rr('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var dt=yV;function lv(e,t){var n=[];return e[t].forEach(function(r){var i=n.length;n.forEach(function(o,s){o.tag===r.tag&&o.kind===r.kind&&o.multi===r.multi&&(i=s)}),n[i]=r}),n}function xV(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function tp(e){return this.extend(e)}tp.prototype.extend=function(t){var n=[],r=[];if(t instanceof dt)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new rr("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(o){if(!(o instanceof dt))throw new rr("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new rr("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new rr("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(o){if(!(o instanceof dt))throw new rr("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(tp.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=lv(i,"implicit"),i.compiledExplicit=lv(i,"explicit"),i.compiledTypeMap=xV(i.compiledImplicit,i.compiledExplicit),i};var vV=tp,CV=new dt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),_V=new dt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),wV=new dt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),kV=new vV({explicit:[CV,_V,wV]});function SV(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function TV(){return null}function bV(e){return e===null}var EV=new dt("tag:yaml.org,2002:null",{kind:"scalar",resolve:SV,construct:TV,predicate:bV,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function AV(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function LV(e){return e==="true"||e==="True"||e==="TRUE"}function PV(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var FV=new dt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:AV,construct:LV,predicate:PV,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function BV(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function MV(e){return 48<=e&&e<=55}function NV(e){return 48<=e&&e<=57}function IV(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===t)return!0;if(i=e[++n],i==="b"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;r=!0}return r&&i!=="_"}if(i==="x"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!BV(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="o"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!MV(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(!NV(e.charCodeAt(n)))return!1;r=!0}return!(!r||i==="_")}function DV(e){var t=e,n=1,r;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0")return 0;if(r==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function OV(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Ct.isNegativeZero(e)}var RV=new dt("tag:yaml.org,2002:int",{kind:"scalar",resolve:IV,construct:DV,predicate:OV,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),zV=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function jV(e){return!(e===null||!zV.test(e)||e[e.length-1]==="_")}function $V(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var VV=/^[-+]?[0-9]+e/;function UV(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ct.isNegativeZero(e))return"-0.0";return n=e.toString(10),VV.test(n)?n.replace("e",".e"):n}function qV(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Ct.isNegativeZero(e))}var HV=new dt("tag:yaml.org,2002:float",{kind:"scalar",resolve:jV,construct:$V,predicate:qV,represent:UV,defaultStyle:"lowercase"}),YT=kV.extend({implicit:[EV,FV,RV,HV]}),WV=YT,GT=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),KT=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function YV(e){return e===null?!1:GT.exec(e)!==null||KT.exec(e)!==null}function GV(e){var t,n,r,i,o,s,a,l=0,u=null,c,h,f;if(t=GT.exec(e),t===null&&(t=KT.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(o=+t[4],s=+t[5],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(c=+t[10],h=+(t[11]||0),u=(c*60+h)*6e4,t[9]==="-"&&(u=-u)),f=new Date(Date.UTC(n,r,i,o,s,a,l)),u&&f.setTime(f.getTime()-u),f}function KV(e){return e.toISOString()}var XV=new dt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:YV,construct:GV,instanceOf:Date,represent:KV});function QV(e){return e==="<<"||e===null}var ZV=new dt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:QV}),wg=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
241
+ \r`;function JV(e){if(e===null)return!1;var t,n,r=0,i=e.length,o=wg;for(n=0;n<i;n++)if(t=o.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function e7(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,o=wg,s=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(r.charAt(t));return n=i%4*6,n===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):n===18?(a.push(s>>10&255),a.push(s>>2&255)):n===12&&a.push(s>>4&255),new Uint8Array(a)}function t7(e){var t="",n=0,r,i,o=e.length,s=wg;for(r=0;r<o;r++)r%3===0&&r&&(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]),n=(n<<8)+e[r];return i=o%3,i===0?(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]):i===2?(t+=s[n>>10&63],t+=s[n>>4&63],t+=s[n<<2&63],t+=s[64]):i===1&&(t+=s[n>>2&63],t+=s[n<<4&63],t+=s[64],t+=s[64]),t}function n7(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var r7=new dt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:JV,construct:e7,predicate:n7,represent:t7}),i7=Object.prototype.hasOwnProperty,o7=Object.prototype.toString;function s7(e){if(e===null)return!0;var t=[],n,r,i,o,s,a=e;for(n=0,r=a.length;n<r;n+=1){if(i=a[n],s=!1,o7.call(i)!=="[object Object]")return!1;for(o in i)if(i7.call(i,o))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}function a7(e){return e!==null?e:[]}var l7=new dt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:s7,construct:a7}),u7=Object.prototype.toString;function c7(e){if(e===null)return!0;var t,n,r,i,o,s=e;for(o=new Array(s.length),t=0,n=s.length;t<n;t+=1){if(r=s[t],u7.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;o[t]=[i[0],r[i[0]]]}return!0}function h7(e){if(e===null)return[];var t,n,r,i,o,s=e;for(o=new Array(s.length),t=0,n=s.length;t<n;t+=1)r=s[t],i=Object.keys(r),o[t]=[i[0],r[i[0]]];return o}var f7=new dt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:c7,construct:h7}),d7=Object.prototype.hasOwnProperty;function p7(e){if(e===null)return!0;var t,n=e;for(t in n)if(d7.call(n,t)&&n[t]!==null)return!1;return!0}function m7(e){return e!==null?e:{}}var g7=new dt("tag:yaml.org,2002:set",{kind:"mapping",resolve:p7,construct:m7}),y7=WV.extend({implicit:[XV,ZV],explicit:[r7,l7,f7,g7]}),Hr=Object.prototype.hasOwnProperty,Ku=1,XT=2,QT=3,Xu=4,af=1,x7=2,uv=3,v7=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,C7=/[\x85\u2028\u2029]/,_7=/[,\[\]\{\}]/,ZT=/^(?:!|!!|![a-z\-]+!)$/i,JT=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function cv(e){return Object.prototype.toString.call(e)}function qn(e){return e===10||e===13}function vi(e){return e===9||e===32}function Nt(e){return e===9||e===32||e===10||e===13}function so(e){return e===44||e===91||e===93||e===123||e===125}function w7(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function k7(e){return e===120?2:e===117?4:e===85?8:0}function S7(e){return 48<=e&&e<=57?e-48:-1}function hv(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
242
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function T7(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var eb=new Array(256),tb=new Array(256);for(var Vi=0;Vi<256;Vi++)eb[Vi]=hv(Vi)?1:0,tb[Vi]=hv(Vi);function b7(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||y7,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function nb(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=dV(n),new rr(t,n)}function Q(e,t){throw nb(e,t)}function Qu(e,t){e.onWarning&&e.onWarning.call(null,nb(e,t))}var fv={YAML:function(t,n,r){var i,o,s;t.version!==null&&Q(t,"duplication of %YAML directive"),r.length!==1&&Q(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&Q(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&Q(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&Qu(t,"unsupported YAML version of the document")},TAG:function(t,n,r){var i,o;r.length!==2&&Q(t,"TAG directive accepts exactly two arguments"),i=r[0],o=r[1],ZT.test(i)||Q(t,"ill-formed tag handle (first argument) of the TAG directive"),Hr.call(t.tagMap,i)&&Q(t,'there is a previously declared suffix for "'+i+'" tag handle'),JT.test(o)||Q(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{Q(t,"tag prefix is malformed: "+o)}t.tagMap[i]=o}};function zr(e,t,n,r){var i,o,s,a;if(t<n){if(a=e.input.slice(t,n),r)for(i=0,o=a.length;i<o;i+=1)s=a.charCodeAt(i),s===9||32<=s&&s<=1114111||Q(e,"expected valid JSON character");else v7.test(a)&&Q(e,"the stream contains non-printable characters");e.result+=a}}function dv(e,t,n,r){var i,o,s,a;for(Ct.isObject(n)||Q(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),s=0,a=i.length;s<a;s+=1)o=i[s],Hr.call(t,o)||(t[o]=n[o],r[o]=!0)}function ao(e,t,n,r,i,o,s,a,l){var u,c;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,c=i.length;u<c;u+=1)Array.isArray(i[u])&&Q(e,"nested arrays are not supported inside keys"),typeof i=="object"&&cv(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&cv(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(u=0,c=o.length;u<c;u+=1)dv(e,t,o[u],n);else dv(e,t,o,n);else!e.json&&!Hr.call(n,i)&&Hr.call(t,i)&&(e.line=s||e.line,e.lineStart=a||e.lineStart,e.position=l||e.position,Q(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:o}):t[i]=o,delete n[i];return t}function kg(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Q(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function He(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;vi(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(qn(i))for(kg(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&Qu(e,"deficient indentation"),r}function qc(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||Nt(n)))}function Sg(e,t){t===1?e.result+=" ":t>1&&(e.result+=Ct.repeat(`
243
+ `,t-1))}function E7(e,t,n){var r,i,o,s,a,l,u,c,h=e.kind,f=e.result,d;if(d=e.input.charCodeAt(e.position),Nt(d)||so(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),Nt(i)||n&&so(i)))return!1;for(e.kind="scalar",e.result="",o=s=e.position,a=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),Nt(i)||n&&so(i))break}else if(d===35){if(r=e.input.charCodeAt(e.position-1),Nt(r))break}else{if(e.position===e.lineStart&&qc(e)||n&&so(d))break;if(qn(d))if(l=e.line,u=e.lineStart,c=e.lineIndent,He(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=l,e.lineStart=u,e.lineIndent=c;break}}a&&(zr(e,o,s,!1),Sg(e,e.line-l),o=s=e.position,a=!1),vi(d)||(s=e.position+1),d=e.input.charCodeAt(++e.position)}return zr(e,o,s,!1),e.result?!0:(e.kind=h,e.result=f,!1)}function A7(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(zr(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else qn(n)?(zr(e,r,i,!0),Sg(e,He(e,!1,t)),r=i=e.position):e.position===e.lineStart&&qc(e)?Q(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Q(e,"unexpected end of the stream within a single quoted scalar")}function L7(e,t){var n,r,i,o,s,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return zr(e,n,e.position,!0),e.position++,!0;if(a===92){if(zr(e,n,e.position,!0),a=e.input.charCodeAt(++e.position),qn(a))He(e,!1,t);else if(a<256&&eb[a])e.result+=tb[a],e.position++;else if((s=k7(a))>0){for(i=s,o=0;i>0;i--)a=e.input.charCodeAt(++e.position),(s=w7(a))>=0?o=(o<<4)+s:Q(e,"expected hexadecimal character");e.result+=T7(o),e.position++}else Q(e,"unknown escape sequence");n=r=e.position}else qn(a)?(zr(e,n,r,!0),Sg(e,He(e,!1,t)),n=r=e.position):e.position===e.lineStart&&qc(e)?Q(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}Q(e,"unexpected end of the stream within a double quoted scalar")}function P7(e,t){var n=!0,r,i,o,s=e.tag,a,l=e.anchor,u,c,h,f,d,g=Object.create(null),y,k,p,m;if(m=e.input.charCodeAt(e.position),m===91)c=93,d=!1,a=[];else if(m===123)c=125,d=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),m=e.input.charCodeAt(++e.position);m!==0;){if(He(e,!0,t),m=e.input.charCodeAt(e.position),m===c)return e.position++,e.tag=s,e.anchor=l,e.kind=d?"mapping":"sequence",e.result=a,!0;n?m===44&&Q(e,"expected the node content, but found ','"):Q(e,"missed comma between flow collection entries"),k=y=p=null,h=f=!1,m===63&&(u=e.input.charCodeAt(e.position+1),Nt(u)&&(h=f=!0,e.position++,He(e,!0,t))),r=e.line,i=e.lineStart,o=e.position,zo(e,t,Ku,!1,!0),k=e.tag,y=e.result,He(e,!0,t),m=e.input.charCodeAt(e.position),(f||e.line===r)&&m===58&&(h=!0,m=e.input.charCodeAt(++e.position),He(e,!0,t),zo(e,t,Ku,!1,!0),p=e.result),d?ao(e,a,g,k,y,p,r,i,o):h?a.push(ao(e,null,g,k,y,p,r,i,o)):a.push(y),He(e,!0,t),m=e.input.charCodeAt(e.position),m===44?(n=!0,m=e.input.charCodeAt(++e.position)):n=!1}Q(e,"unexpected end of the stream within a flow collection")}function F7(e,t){var n,r,i=af,o=!1,s=!1,a=t,l=0,u=!1,c,h;if(h=e.input.charCodeAt(e.position),h===124)r=!1;else if(h===62)r=!0;else return!1;for(e.kind="scalar",e.result="";h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)af===i?i=h===43?uv:x7:Q(e,"repeat of a chomping mode identifier");else if((c=S7(h))>=0)c===0?Q(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?Q(e,"repeat of an indentation width identifier"):(a=t+c-1,s=!0);else break;if(vi(h)){do h=e.input.charCodeAt(++e.position);while(vi(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!qn(h)&&h!==0)}for(;h!==0;){for(kg(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!s||e.lineIndent<a)&&h===32;)e.lineIndent++,h=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>a&&(a=e.lineIndent),qn(h)){l++;continue}if(e.lineIndent<a){i===uv?e.result+=Ct.repeat(`
244
+ `,o?1+l:l):i===af&&o&&(e.result+=`
245
+ `);break}for(r?vi(h)?(u=!0,e.result+=Ct.repeat(`
246
+ `,o?1+l:l)):u?(u=!1,e.result+=Ct.repeat(`
247
+ `,l+1)):l===0?o&&(e.result+=" "):e.result+=Ct.repeat(`
248
+ `,l):e.result+=Ct.repeat(`
249
+ `,o?1+l:l),o=!0,s=!0,l=0,n=e.position;!qn(h)&&h!==0;)h=e.input.charCodeAt(++e.position);zr(e,n,e.position,!1)}return!0}function pv(e,t){var n,r=e.tag,i=e.anchor,o=[],s,a=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Q(e,"tab characters must not be used in indentation")),!(l!==45||(s=e.input.charCodeAt(e.position+1),!Nt(s))));){if(a=!0,e.position++,He(e,!0,-1)&&e.lineIndent<=t){o.push(null),l=e.input.charCodeAt(e.position);continue}if(n=e.line,zo(e,t,QT,!1,!0),o.push(e.result),He(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&l!==0)Q(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}function B7(e,t,n){var r,i,o,s,a,l,u=e.tag,c=e.anchor,h={},f=Object.create(null),d=null,g=null,y=null,k=!1,p=!1,m;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),m=e.input.charCodeAt(e.position);m!==0;){if(!k&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Q(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),o=e.line,(m===63||m===58)&&Nt(r))m===63?(k&&(ao(e,h,f,d,g,null,s,a,l),d=g=y=null),p=!0,k=!0,i=!0):k?(k=!1,i=!0):Q(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,m=r;else{if(s=e.line,a=e.lineStart,l=e.position,!zo(e,n,XT,!1,!0))break;if(e.line===o){for(m=e.input.charCodeAt(e.position);vi(m);)m=e.input.charCodeAt(++e.position);if(m===58)m=e.input.charCodeAt(++e.position),Nt(m)||Q(e,"a whitespace character is expected after the key-value separator within a block mapping"),k&&(ao(e,h,f,d,g,null,s,a,l),d=g=y=null),p=!0,k=!1,i=!1,d=e.tag,g=e.result;else if(p)Q(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=c,!0}else if(p)Q(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=c,!0}if((e.line===o||e.lineIndent>t)&&(k&&(s=e.line,a=e.lineStart,l=e.position),zo(e,t,Xu,!0,i)&&(k?g=e.result:y=e.result),k||(ao(e,h,f,d,g,y,s,a,l),d=g=y=null),He(e,!0,-1),m=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&m!==0)Q(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return k&&ao(e,h,f,d,g,null,s,a,l),p&&(e.tag=u,e.anchor=c,e.kind="mapping",e.result=h),p}function M7(e){var t,n=!1,r=!1,i,o,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&Q(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(n=!0,s=e.input.charCodeAt(++e.position)):s===33?(r=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(o=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):Q(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Nt(s);)s===33&&(r?Q(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),ZT.test(i)||Q(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),_7.test(o)&&Q(e,"tag suffix cannot contain flow indicator characters")}o&&!JT.test(o)&&Q(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{Q(e,"tag name is malformed: "+o)}return n?e.tag=o:Hr.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:Q(e,'undeclared tag handle "'+i+'"'),!0}function N7(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&Q(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Nt(n)&&!so(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Q(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function I7(e){var t,n,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Nt(r)&&!so(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Q(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),Hr.call(e.anchorMap,n)||Q(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],He(e,!0,-1),!0}function zo(e,t,n,r,i){var o,s,a,l=1,u=!1,c=!1,h,f,d,g,y,k;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=Xu===n||QT===n,r&&He(e,!0,-1)&&(u=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;M7(e)||N7(e);)He(e,!0,-1)?(u=!0,a=o,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):a=!1;if(a&&(a=u||i),(l===1||Xu===n)&&(Ku===n||XT===n?y=t:y=t+1,k=e.position-e.lineStart,l===1?a&&(pv(e,k)||B7(e,k,y))||P7(e,y)?c=!0:(s&&F7(e,y)||A7(e,y)||L7(e,y)?c=!0:I7(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&Q(e,"alias node should not have any properties")):E7(e,y,Ku===n)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(c=a&&pv(e,k))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Q(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),h=0,f=e.implicitTypes.length;h<f;h+=1)if(g=e.implicitTypes[h],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Hr.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,d=e.typeMap.multi[e.kind||"fallback"],h=0,f=d.length;h<f;h+=1)if(e.tag.slice(0,d[h].tag.length)===d[h].tag){g=d[h];break}g||Q(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&Q(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Q(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function D7(e){var t=e.position,n,r,i,o=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(He(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(o=!0,s=e.input.charCodeAt(++e.position),n=e.position;s!==0&&!Nt(s);)s=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&Q(e,"directive name must not be less than one character in length");s!==0;){for(;vi(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!qn(s));break}if(qn(s))break;for(n=e.position;s!==0&&!Nt(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}s!==0&&kg(e),Hr.call(fv,r)?fv[r](e,r,i):Qu(e,'unknown document directive "'+r+'"')}if(He(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,He(e,!0,-1)):o&&Q(e,"directives end mark is expected"),zo(e,e.lineIndent-1,Xu,!1,!0),He(e,!0,-1),e.checkLineBreaks&&C7.test(e.input.slice(t,e.position))&&Qu(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&qc(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,He(e,!0,-1));return}if(e.position<e.length-1)Q(e,"end of the stream or a document separator is expected");else return}function O7(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
250
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new b7(e,t),r=e.indexOf("\0");for(r!==-1&&(n.position=r,Q(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)D7(n);return n.documents}function R7(e,t){var n=O7(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new rr("expected a single document in the stream, but found more")}}var z7=R7,j7={load:z7},$7=YT,V7=j7.load;function U7(e){const t=e.match(aT);if(!t)return{text:e,metadata:{}};let n=V7(t[1],{schema:$7})??{};n=typeof n=="object"&&!Array.isArray(n)?n:{};const r={};return n.displayMode&&(r.displayMode=n.displayMode.toString()),n.title&&(r.title=n.title.toString()),n.config&&(r.config=n.config),{text:e.slice(t[0].length),metadata:r}}const q7=e=>e.replace(/\r\n?/g,`
251
+ `).replace(/<(\w+)([^>]*)>/g,(t,n,r)=>"<"+n+r.replace(/="([^"]*)"/g,"='$1'")+">"),H7=e=>{const{text:t,metadata:n}=U7(e),{displayMode:r,title:i,config:o={}}=n;return r&&(o.gantt||(o.gantt={}),o.gantt.displayMode=r),{title:i,config:o,text:t}},W7=e=>{const t=Ws.detectInit(e)??{},n=Ws.detectDirective(e,"wrap");return Array.isArray(n)?t.wrap=n.some(({type:r})=>{}):(n==null?void 0:n.type)==="wrap"&&(t.wrap=!0),{text:y8(e),directive:t}};function rb(e){const t=q7(e),n=H7(t),r=W7(n.text),i=pT(n.config,r.directive);return e=eV(r.text),{code:e,title:n.title,config:i}}const Y7=5e4,G7="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",K7="sandbox",X7="loose",Q7="http://www.w3.org/2000/svg",Z7="http://www.w3.org/1999/xlink",J7="http://www.w3.org/1999/xhtml",eU="100%",tU="100%",nU="border:0;margin:0;",rU="margin:0",iU="allow-top-navigation-by-user-activation allow-popups",oU='The "iframe" tag is not supported by your browser.',sU=["foreignobject"],aU=["dominant-baseline"];function ib(e){const t=rb(e);return Wu(),U8(t.config??{}),t}async function lU(e,t){_g(),e=ib(e).code;try{await Tg(e)}catch(n){if(t!=null&&t.suppressErrors)return!1;throw n}return!0}const mv=(e,t,n=[])=>`
252
+ .${e} ${t} { ${n.join(" !important; ")} !important; }`,uU=(e,t={})=>{var n;let r="";if(e.themeCSS!==void 0&&(r+=`
253
+ ${e.themeCSS}`),e.fontFamily!==void 0&&(r+=`
254
+ :root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(r+=`
255
+ :root { --mermaid-alt-font-family: ${e.altFontFamily}}`),!rf(t)){const a=e.htmlLabels||((n=e.flowchart)==null?void 0:n.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const l in t){const u=t[l];rf(u.styles)||a.forEach(c=>{r+=mv(u.id,c,u.styles)}),rf(u.textStyles)||(r+=mv(u.id,"tspan",u.textStyles))}}return r},cU=(e,t,n,r)=>{const i=uU(e,n),o=u9(t,i,e.themeVariables);return Yd(_j(`${r}{${o}}`),kj)},hU=(e="",t,n)=>{let r=e;return!n&&!t&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=z8(r),r=r.replace(/<br>/g,"<br/>"),r},fU=(e="",t)=>{var n,r;const i=(r=(n=t==null?void 0:t.viewBox)==null?void 0:n.baseVal)!=null&&r.height?t.viewBox.baseVal.height+"px":tU,o=btoa('<body style="'+rU+'">'+e+"</body>");return`<iframe style="width:${eU};height:${i};${nU}" src="data:text/html;base64,${o}" sandbox="${iU}">
256
+ ${oU}
257
+ </iframe>`},gv=(e,t,n,r,i)=>{const o=e.append("div");o.attr("id",n),r&&o.attr("style",r);const s=o.append("svg").attr("id",t).attr("width","100%").attr("xmlns",Q7);return i&&s.attr("xmlns:xlink",i),s.append("g"),e};function yv(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const dU=(e,t,n,r)=>{var i,o,s;(i=e.getElementById(t))==null||i.remove(),(o=e.getElementById(n))==null||o.remove(),(s=e.getElementById(r))==null||s.remove()},pU=async function(e,t,n){var r,i,o,s,a,l;_g();const u=ib(t);t=u.code;const c=Yn();ee.debug(c),t.length>((c==null?void 0:c.maxTextSize)??Y7)&&(t=G7);const h="#"+e,f="i"+e,d="#"+f,g="d"+e,y="#"+g;let k=tn("body");const p=c.securityLevel===K7,m=c.securityLevel===X7,x=c.fontFamily;if(n!==void 0){if(n&&(n.innerHTML=""),p){const M=yv(tn(n),f);k=tn(M.nodes()[0].contentDocument.body),k.node().style.margin=0}else k=tn(n);gv(k,e,g,`font-family: ${x}`,Z7)}else{if(dU(document,e,g,f),p){const M=yv(tn("body"),f);k=tn(M.nodes()[0].contentDocument.body),k.node().style.margin=0}else k=tn("body");gv(k,e,g)}let S,b;try{S=await Tg(t,{title:u.title})}catch(M){S=new qT("error"),b=M}const w=k.select(y).node(),L=S.type,P=w.firstChild,W=P.firstChild,D=(i=(r=S.renderer).getClasses)==null?void 0:i.call(r,t,S),B=cU(c,L,D,h),Y=document.createElement("style");Y.innerHTML=B,P.insertBefore(Y,W);try{await S.renderer.draw(t,e,iv,S)}catch(M){throw b9.draw(t,e,iv),M}const ae=k.select(`${y} svg`),H=(s=(o=S.db).getAccTitle)==null?void 0:s.call(o),N=(l=(a=S.db).getAccDescription)==null?void 0:l.call(a);gU(L,ae,H,N),k.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",J7);let I=k.select(y).node().innerHTML;if(ee.debug("config.arrowMarkerAbsolute",c.arrowMarkerAbsolute),I=hU(I,p,iT(c.arrowMarkerAbsolute)),p){const M=k.select(y+" svg").node();I=fU(I,M)}else m||(I=Bo.sanitize(I,{ADD_TAGS:sU,ADD_ATTR:aU,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(X9(),b)throw b;const A=tn(p?d:y).node();return A&&"remove"in A&&A.remove(),{svg:I,bindFunctions:S.db.bindFunctions}};function mU(e={}){var t;e!=null&&e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),$8(e),e!=null&&e.theme&&e.theme in ur?e.themeVariables=ur[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=ur.default.getThemeVariables(e.themeVariables));const n=typeof e=="object"?j8(e):gT();cg(n.logLevel),_g()}const Tg=(e,t={})=>{const{code:n}=rb(e);return K9(n,t)};function gU(e,t,n,r){Z9(t,e),J9(t,n,r,t.attr("id"))}const Ei=Object.freeze({render:pU,parse:lU,getDiagramFromText:Tg,initialize:mU,getConfig:Yn,setConfig:yT,getSiteConfig:gT,updateSiteConfig:V8,reset:()=>{Wu()},globalReset:()=>{Wu(Oo)},defaultConfig:Oo});cg(Yn().logLevel);Wu(Yn());const yU=async()=>{ee.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(Do).map(async([n,{detector:r,loader:i}])=>{if(i)try{Cg(n)}catch{try{const{diagram:s,id:a}=await i();Gu(a,s,r)}catch(s){throw ee.error(`Failed to load external diagram with key ${n}. Removing from detectors.`),delete Do[n],s}}}))).filter(n=>n.status==="rejected");if(t.length>0){ee.error(`Failed to load ${t.length} external diagrams`);for(const n of t)ee.error(n);throw new Error(`Failed to load ${t.length} external diagrams`)}},xU=(e,t,n)=>{ee.warn(e),dT(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},ob=async function(e={querySelector:".mermaid"}){try{await vU(e)}catch(t){if(dT(t)&&ee.error(t.str),fn.parseError&&fn.parseError(t),!e.suppressErrors)throw ee.error("Use the suppressErrors option to suppress these errors"),t}},vU=async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:".mermaid"}){const r=Ei.getConfig();ee.debug(`${e?"":"No "}Callback function found`);let i;if(n)i=n;else if(t)i=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");ee.debug(`Found ${i.length} diagrams`),(r==null?void 0:r.startOnLoad)!==void 0&&(ee.debug("Start On Load: "+(r==null?void 0:r.startOnLoad)),Ei.updateSiteConfig({startOnLoad:r==null?void 0:r.startOnLoad}));const o=new Ws.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed);let s;const a=[];for(const l of Array.from(i)){ee.info("Rendering diagram: "+l.id);/*! Check if previously processed */if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const u=`mermaid-${o.next()}`;s=l.innerHTML,s=CI(Ws.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const c=Ws.detectInit(s);c&&ee.debug("Detected early reinit: ",c);try{const{svg:h,bindFunctions:f}=await ub(u,s,l);l.innerHTML=h,e&&await e(u),f&&f(l)}catch(h){xU(h,a,fn.parseError)}}if(a.length>0)throw a[0]},sb=function(e){Ei.initialize(e)},CU=async function(e,t,n){ee.warn("mermaid.init is deprecated. Please use run instead."),e&&sb(e);const r={postRenderCallback:n,querySelector:".mermaid"};typeof t=="string"?r.querySelector=t:t&&(t instanceof HTMLElement?r.nodes=[t]:r.nodes=t),await ob(r)},_U=async(e,{lazyLoad:t=!0}={})=>{uT(...e),t===!1&&await yU()},ab=function(){if(fn.startOnLoad){const{startOnLoad:e}=Ei.getConfig();e&&fn.run().catch(t=>ee.error("Mermaid failed to initialize",t))}};if(typeof document<"u"){/*!
258
+ * Wait for document loaded before starting the execution
259
+ */window.addEventListener("load",ab,!1)}const wU=function(e){fn.parseError=e},Zu=[];let lf=!1;const lb=async()=>{if(!lf){for(lf=!0;Zu.length>0;){const e=Zu.shift();if(e)try{await e()}catch(t){ee.error("Error executing queue",t)}}lf=!1}},kU=async(e,t)=>new Promise((n,r)=>{const i=()=>new Promise((o,s)=>{Ei.parse(e,t).then(a=>{o(a),n(a)},a=>{var l;ee.error("Error parsing",a),(l=fn.parseError)==null||l.call(fn,a),s(a),r(a)})});Zu.push(i),lb().catch(r)}),ub=(e,t,n)=>new Promise((r,i)=>{const o=()=>new Promise((s,a)=>{Ei.render(e,t,n).then(l=>{s(l),r(l)},l=>{var u;ee.error("Error parsing",l),(u=fn.parseError)==null||u.call(fn,l),a(l),i(l)})});Zu.push(o),lb().catch(i)}),fn={startOnLoad:!0,mermaidAPI:Ei,parse:kU,render:ub,init:CU,run:ob,registerExternalDiagrams:_U,initialize:sb,parseError:void 0,contentLoaded:ab,setParseErrorHandler:wU,detectType:Vc};function SU(){const[e,t]=R.useState(""),[n,r]=R.useState(!0),[i,o]=R.useState(null),[s,a]=R.useState(!1),l=R.useRef(null);return R.useEffect(()=>{fn.initialize({startOnLoad:!1,theme:"dark",themeVariables:{primaryColor:"#6366f1",primaryTextColor:"#fafafa",primaryBorderColor:"rgba(99, 102, 241, 0.3)",lineColor:"#6366f1",secondaryColor:"#111113",tertiaryColor:"rgba(255, 255, 255, 0.03)",background:"#09090b",mainBkg:"#111113",secondBkg:"rgba(255, 255, 255, 0.03)",textColor:"#a1a1aa",border1:"rgba(255, 255, 255, 0.08)",border2:"rgba(99, 102, 241, 0.3)",noteBkgColor:"rgba(99, 102, 241, 0.1)",noteTextColor:"#a1a1aa",noteBorderColor:"rgba(99, 102, 241, 0.2)",nodeBorder:"rgba(99, 102, 241, 0.3)",clusterBkg:"rgba(255, 255, 255, 0.02)",clusterBorder:"rgba(255, 255, 255, 0.06)",fontFamily:"Inter, system-ui, sans-serif",fontSize:"12px"}})},[]),R.useEffect(()=>{fetch("/api/map").then(u=>{if(!u.ok)throw new Error(`Failed to fetch: ${u.statusText}`);return u.json()}).then(u=>{t(u.content||""),r(!1)}).catch(u=>{o(u.message),r(!1)})},[]),R.useEffect(()=>{if(e&&l.current){const u=e.match(/```mermaid\n([\s\S]*?)```/);if(u){const c=u[1];l.current.innerHTML="";const h="mermaid-"+Date.now();fn.render(h,c).then(f=>{if(l.current){const d=f.svg.replace("<style>",`<style>
260
+ .node rect, .node circle, .node ellipse, .node polygon, .node path {
261
+ stroke-width: 1px !important;
262
+ }
263
+ .edgePath .path {
264
+ stroke-width: 1.5px !important;
265
+ }
266
+ .label {
267
+ font-family: 'Inter', system-ui, sans-serif !important;
268
+ }
269
+ `);l.current.innerHTML=d}}).catch(f=>{console.error("Mermaid render error:",f),l.current&&(l.current.innerHTML=`
270
+ <div class="flex flex-col items-center justify-center h-full text-center p-4">
271
+ <p class="text-vg-error text-xs mb-1">Error rendering diagram</p>
272
+ <p class="text-vg-textDim text-[10px]">${f.message}</p>
273
+ </div>
274
+ `)})}else l.current&&(l.current.innerHTML=`
275
+ <div class="flex flex-col items-center justify-center h-full text-center p-4">
276
+ <p class="text-vg-textMuted text-xs">No mermaid diagram found in DIAGRAM.md</p>
277
+ </div>
278
+ `)}},[e]),n?C.jsx("div",{className:"flex items-center justify-center h-64",children:C.jsxs("div",{className:"flex items-center gap-3 text-vg-textMuted",children:[C.jsx(wc,{className:"w-5 h-5 animate-spin text-vg-indigo"}),C.jsx("span",{className:"text-sm",children:"Loading DIAGRAM.md..."})]})}):i?C.jsxs(ve.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"bento-card border-vg-error/20",children:[C.jsxs("div",{className:"flex items-center gap-2 text-vg-error mb-2",children:[C.jsx(x3,{className:"w-4 h-4"}),C.jsx("h2",{className:"text-sm font-medium",children:"Error Loading Map"})]}),C.jsx("p",{className:"text-xs text-vg-textMuted",children:i})]}):C.jsxs("div",{className:"max-w-6xl",children:[C.jsxs(ve.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"mb-6",children:[C.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[C.jsx(sk,{className:"w-5 h-5 text-vg-indigo"}),C.jsx("h1",{className:"text-xl font-semibold text-gradient",children:"The Map"})]}),C.jsx("p",{className:"text-xs text-vg-textMuted ml-8",children:"Architecture visualization • DIAGRAM.md"})]}),C.jsxs(ve.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:`bento-card relative ${s?"fixed inset-4 z-50 m-0":""}`,children:[C.jsxs("div",{className:"flex items-center justify-between mb-4",children:[C.jsx("h2",{className:"text-sm font-medium text-vg-text",children:"Architecture Diagram"}),C.jsx("button",{onClick:()=>a(!s),className:"p-1.5 rounded-md hover:bg-white/[0.05] transition-colors","aria-label":s?"Exit fullscreen":"Enter fullscreen",children:C.jsx(b3,{className:"w-4 h-4 text-vg-textMuted"})})]}),C.jsx("div",{ref:l,className:`flex justify-center items-center overflow-auto bg-black/20 rounded-md border border-white/[0.04] ${s?"h-[calc(100%-60px)]":"min-h-[400px]"}`})]}),s&&C.jsx(ve.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-vg-bg/90 backdrop-blur-sm z-40",onClick:()=>a(!1)})]})}function TU(){const[e,t]=R.useState([]),[n,r]=R.useState(!0),[i,o]=R.useState(null);R.useEffect(()=>{let a=!0;const l=async()=>{try{o(null);const c=await fetch("/api/pulse");if(!c.ok)throw new Error(`Failed to fetch prophecies: ${c.statusText}`);const f=((await c.json()).prophecies||[]).map(d=>({id:d.id,type:d.type,title:d.title,description:d.description,suggestedAction:d.suggestedAction,timestamp:d.createdAt||d.timestamp||new Date().toISOString(),priority:d.priority}));t(d=>{const g=new Map(d.map(x=>[x.id,x])),y=new Map(f.map(x=>[x.id,x])),k=f.some(x=>!g.has(x.id)),p=d.some(x=>!y.has(x.id)),m=f.some(x=>{const S=g.get(x.id);return S&&(S.title!==x.title||S.description!==x.description||S.suggestedAction!==x.suggestedAction||S.type!==x.type||S.priority!==x.priority)});return k||p||m?f:d})}catch(c){a&&(console.error("Error fetching prophecies:",c),o(c.message||"Failed to load prophecies"))}};r(!0),l().finally(()=>{a&&r(!1)});const u=setInterval(l,1e4);return()=>{a=!1,clearInterval(u)}},[]);const s=R.useCallback(a=>{t(l=>l.filter(u=>u.id!==a))},[]);return{prophecies:e,loading:n,error:i,acknowledgeProphecy:s}}function bU({prophecy:e,onAcknowledge:t}){const[n,r]=R.useState(!1),[i,o]=R.useState(null),s=async()=>{var h;r(!0),o(null);try{const d=await(await fetch("/api/fix",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e.id})})).json();d.success?(alert(`Fix applied successfully!
279
+
280
+ Branch created: ${d.branchName}
281
+ Files changed: ${((h=d.filesChanged)==null?void 0:h.length)||0}
282
+
283
+ You can now review the changes and merge the branch.`),t(e.id)):o(d.error||"Failed to apply fix")}catch(f){o(f.message||"Failed to apply fix. Please try again.")}finally{r(!1)}},l=(()=>{switch(e.type){case"RuleViolation":return{icon:v3,accentColor:"vg-warning",bgMuted:"bg-vg-warningMuted",borderColor:"border-vg-warning/20",glowClass:"shadow-glow-warning",label:"Rule Violation"};case"Refactor":return{icon:S3,accentColor:"vg-violet",bgMuted:"bg-vg-violet/10",borderColor:"border-vg-violet/20",glowClass:"shadow-glow-violet",label:"Refactor"};case"Optimization":return{icon:_d,accentColor:"vg-success",bgMuted:"bg-vg-successMuted",borderColor:"border-vg-success/20",glowClass:"shadow-glow-success",label:"Optimization"}}})(),u=l.icon,c=h=>{const f=new Date(h),g=new Date().getTime()-f.getTime(),y=Math.floor(g/6e4),k=Math.floor(g/36e5);return y<1?"Just now":y<60?`${y}m ago`:k<24?`${k}h ago`:f.toLocaleDateString()};return C.jsxs(ve.div,{layout:!0,initial:{opacity:0,y:-10,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.95,filter:"blur(4px)",transition:{duration:.2}},transition:{type:"spring",stiffness:400,damping:30},className:`relative bg-white/[0.02] backdrop-blur-xl border ${l.borderColor} rounded-md p-4 transition-all duration-200 hover:bg-white/[0.04] group h-full flex flex-col`,children:[C.jsx("div",{className:`absolute left-0 top-4 bottom-4 w-0.5 rounded-r-full bg-${l.accentColor}`}),C.jsxs("div",{className:"flex items-start justify-between mb-3 pl-3",children:[C.jsxs("div",{className:"flex items-start gap-3",children:[C.jsx("div",{className:`w-8 h-8 rounded-md ${l.bgMuted} flex items-center justify-center flex-shrink-0`,children:C.jsx(u,{className:`w-4 h-4 text-${l.accentColor}`})}),C.jsxs("div",{className:"min-w-0",children:[C.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[C.jsx("span",{className:`text-[10px] font-medium uppercase tracking-wider text-${l.accentColor}`,children:l.label}),C.jsx("span",{className:"text-[10px] text-vg-textDim",children:c(e.timestamp)})]}),C.jsx("h3",{className:"text-sm font-medium text-vg-text leading-snug",children:e.title})]})]}),C.jsx("button",{onClick:()=>t(e.id),className:"p-1.5 rounded-md hover:bg-white/[0.05] transition-colors opacity-0 group-hover:opacity-100","aria-label":"Dismiss",children:C.jsx(L3,{className:"w-3.5 h-3.5 text-vg-textMuted"})})]}),C.jsx("div",{className:"pl-3 mb-4",children:C.jsx("p",{className:"text-xs text-vg-textSecondary leading-relaxed",children:e.description})}),C.jsxs("div",{className:"pl-3 mb-4 flex-grow",children:[C.jsxs("div",{className:"flex items-center gap-1.5 mb-2",children:[C.jsx(ak,{className:"w-3 h-3 text-vg-indigo"}),C.jsx("span",{className:"text-[10px] font-medium text-vg-indigo uppercase tracking-wider",children:"Suggested Action"})]}),C.jsx("code",{className:"block text-[11px] text-vg-cyan bg-black/30 px-3 py-2 rounded-md border border-white/[0.04] font-mono leading-relaxed whitespace-pre-wrap break-words",children:e.suggestedAction})]}),i&&C.jsx("div",{className:"pl-3 mb-3",children:C.jsx("div",{className:"p-2 bg-vg-errorMuted border border-vg-error/20 rounded-md text-[11px] text-vg-error",children:i})}),C.jsxs("div",{className:"flex gap-2 pl-3 pt-3 border-t border-white/[0.04] mt-auto",children:[C.jsx(ve.button,{whileHover:n?{}:{scale:1.01},whileTap:n?{}:{scale:.99},disabled:n,onClick:s,className:"flex-1 flex items-center justify-center gap-2 bg-gradient-to-r from-vg-indigo to-vg-violet text-white px-3 py-2 rounded-md text-xs font-medium transition-all disabled:opacity-50 disabled:cursor-not-allowed hover:shadow-oracle",children:n?C.jsxs(C.Fragment,{children:[C.jsx(wc,{className:"w-3.5 h-3.5 animate-spin"}),C.jsx("span",{children:"Applying Fix..."})]}):C.jsxs(C.Fragment,{children:[C.jsx("span",{children:"Fix with AI"}),C.jsx(C3,{className:"w-3.5 h-3.5"})]})}),C.jsx(ve.button,{whileHover:{scale:1.01},whileTap:{scale:.99},onClick:()=>t(e.id),className:"px-3 py-2 rounded-md text-xs font-medium border border-white/[0.08] text-vg-textSecondary hover:border-white/[0.15] hover:text-vg-text transition-all",children:"Acknowledge"})]})]})}function EU(){const{prophecies:e,loading:t,error:n,acknowledgeProphecy:r}=TU();return C.jsxs("div",{className:"w-full",children:[C.jsxs("div",{className:"flex items-center justify-between mb-4",children:[C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx(Pm,{className:"w-4 h-4 text-vg-indigo"}),C.jsx("h2",{className:"text-sm font-medium text-vg-text",children:"Oracle Feed"})]}),C.jsxs("span",{className:"text-[10px] px-2 py-1 rounded-full bg-white/[0.05] text-vg-textMuted font-mono",children:[e.length," active"]})]}),C.jsxs("div",{className:"relative",children:[C.jsx("div",{className:"overflow-y-auto max-h-[600px] pr-2",children:t?C.jsxs("div",{className:"flex flex-col items-center justify-center h-48 bg-white/[0.02] backdrop-blur-xl border border-white/[0.06] rounded-md",children:[C.jsx(wc,{className:"w-5 h-5 text-vg-indigo animate-spin mb-2"}),C.jsx("p",{className:"text-xs text-vg-textMuted",children:"Loading prophecies..."})]}):n?C.jsxs("div",{className:"flex flex-col items-center justify-center h-48 bg-vg-errorMuted border border-vg-error/20 rounded-md",children:[C.jsx("p",{className:"text-xs text-vg-error mb-1",children:"Error loading prophecies"}),C.jsx("p",{className:"text-[10px] text-vg-textMuted",children:n})]}):e.length===0?C.jsxs("div",{className:"flex flex-col items-center justify-center h-48 bg-white/[0.02] backdrop-blur-xl border border-white/[0.06] rounded-md",children:[C.jsx(T3,{className:"w-6 h-6 text-vg-textDim mb-2"}),C.jsx("p",{className:"text-xs text-vg-textMuted mb-1",children:"No prophecies detected"}),C.jsx("p",{className:"text-[10px] text-vg-textDim text-center max-w-[200px]",children:"The Oracle will surface insights as architectural drift is detected"})]}):C.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-3",children:C.jsx(B_,{mode:"popLayout",children:e.map(i=>C.jsx(bU,{prophecy:i,onAcknowledge:r},i.id))})})}),e.length>3&&C.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-8 bg-gradient-to-t from-vg-bg to-transparent pointer-events-none"})]})]})}function AU(){const[e,t]=R.useState(null),[n,r]=R.useState(null),[i,o]=R.useState([]),[s,a]=R.useState(!0);R.useEffect(()=>{const h=()=>{fetch("/api/status").then(d=>{if(!d.ok)throw new Error(`Failed to fetch status: ${d.statusText}`);return d.json()}).then(d=>{const g=d.status||"idle";t(y=>y!==g?g:y)}).catch(d=>{console.error("Error fetching status:",d)})};h();const f=setInterval(h,1e4);return()=>clearInterval(f)},[]),R.useEffect(()=>{const h=()=>{fetch("/api/token-usage").then(d=>{if(!d.ok)throw new Error(`Failed to fetch token usage: ${d.statusText}`);return d.json()}).then(d=>{r(d.summary),o(d.dailyBreakdown||[]),a(!1)}).catch(d=>{console.error("Error fetching token usage:",d),a(!1)})};h();const f=setInterval(h,3e4);return()=>clearInterval(f)},[]);const l=h=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:4}).format(h),u=h=>new Intl.NumberFormat("en-US").format(h),c=i.length>0?Math.max(...i.map(h=>h.cost),.01):.01;return C.jsxs("div",{className:"max-w-6xl",children:[C.jsxs(ve.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"mb-6",children:[C.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[C.jsx(Pm,{className:"w-5 h-5 text-vg-indigo"}),C.jsx("h1",{className:"text-xl font-semibold text-gradient",children:"The Pulse"})]}),C.jsx("p",{className:"text-xs text-vg-textMuted ml-8",children:"Real-time Oracle insights • Architectural heartbeat"})]}),C.jsxs("div",{className:"grid grid-cols-12 gap-4",children:[C.jsxs(ve.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"col-span-12 lg:col-span-4 bento-card",children:[C.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[C.jsx(E3,{className:"w-4 h-4 text-vg-violet"}),C.jsx("h2",{className:"text-sm font-medium text-vg-text",children:"Watcher Status"})]}),C.jsxs("div",{className:"flex items-center justify-between",children:[C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsxs("div",{className:"relative",children:[C.jsx("div",{className:`w-10 h-10 rounded-md flex items-center justify-center ${e==="active"?"bg-vg-successMuted":"bg-white/[0.05]"}`,children:C.jsx(_d,{className:`w-5 h-5 ${e==="active"?"text-vg-success":"text-vg-textMuted"}`})}),e==="active"&&C.jsx("div",{className:"absolute inset-0 rounded-md bg-vg-success/20 animate-ping"})]}),C.jsxs("div",{children:[C.jsx("p",{className:"text-sm font-medium text-vg-text capitalize",children:e||"Checking..."}),C.jsx("p",{className:"text-[10px] text-vg-textMuted",children:e==="active"?"Monitoring changes":"Watcher inactive"})]})]}),C.jsx("div",{className:`w-2.5 h-2.5 rounded-full ${e==="active"?"bg-vg-success shadow-glow-success":"bg-vg-textDim"}`})]})]}),C.jsxs(ve.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.15},className:"col-span-12 lg:col-span-8 bento-card",children:[C.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[C.jsx(lx,{className:"w-4 h-4 text-vg-indigo"}),C.jsx("h2",{className:"text-sm font-medium text-vg-text",children:"Token Analytics"})]}),s?C.jsx("div",{className:"flex items-center justify-center h-32",children:C.jsx("p",{className:"text-xs text-vg-textMuted",children:"Loading..."})}):n?C.jsxs("div",{className:"space-y-4",children:[C.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[C.jsxs("div",{className:"bg-white/[0.03] rounded-lg p-3 border border-vg-border/30",children:[C.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[C.jsx(w3,{className:"w-3 h-3 text-vg-textMuted"}),C.jsx("span",{className:"text-[10px] text-vg-textMuted",children:"Total Spend"})]}),C.jsx("p",{className:"text-lg font-semibold text-vg-text",children:l(n.totalSpend)})]}),C.jsxs("div",{className:"bg-white/[0.03] rounded-lg p-3 border border-vg-border/30",children:[C.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[C.jsx(A3,{className:"w-3 h-3 text-vg-success"}),C.jsx("span",{className:"text-[10px] text-vg-textMuted",children:"Total Saved"})]}),C.jsx("p",{className:"text-lg font-semibold text-vg-success",children:l(n.totalSavings)}),C.jsx("p",{className:"text-[9px] text-vg-textDim mt-1",children:"VibeGuard ROI"})]}),C.jsxs("div",{className:"bg-white/[0.03] rounded-lg p-3 border border-vg-border/30",children:[C.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[C.jsx(_d,{className:"w-3 h-3 text-vg-indigo"}),C.jsx("span",{className:"text-[10px] text-vg-textMuted",children:"Efficiency"})]}),C.jsx("p",{className:"text-lg font-semibold text-vg-indigo",children:(()=>{const h=n.totalSpend+n.totalSavings;return h>0?`${Math.round(n.totalSavings/h*100)}%`:"0%"})()}),C.jsx("p",{className:"text-[9px] text-vg-textDim mt-1",children:"vs High-IQ"})]}),C.jsxs("div",{className:"bg-white/[0.03] rounded-lg p-3 border border-vg-border/30",children:[C.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[C.jsx(lx,{className:"w-3 h-3 text-vg-textMuted"}),C.jsx("span",{className:"text-[10px] text-vg-textMuted",children:"Total Tokens"})]}),C.jsx("p",{className:"text-lg font-semibold text-vg-text",children:u(n.totalTokens)})]})]}),i.length>0&&C.jsxs("div",{children:[C.jsx("p",{className:"text-[10px] text-vg-textMuted mb-2",children:"Cost per Day (Last 7 Days)"}),C.jsx("div",{className:"flex items-end gap-1.5 h-20",children:i.map((h,f)=>{const d=h.cost/c*100;return C.jsxs("div",{className:"flex-1 flex flex-col items-center",children:[C.jsx("div",{className:"w-full bg-gradient-to-t from-vg-indigo/50 to-vg-violet/30 rounded-sm transition-all duration-300",style:{height:`${Math.max(d,5)}%`}}),C.jsx("p",{className:"text-[9px] text-vg-textDim mt-1",children:new Date(h.date).toLocaleDateString("en-US",{month:"short",day:"numeric"})})]},f)})})]}),i.length===0&&C.jsx("div",{className:"flex items-center justify-center h-20",children:C.jsx("p",{className:"text-[10px] text-vg-textDim",children:"No usage data available"})})]}):C.jsx("div",{className:"flex items-center justify-center h-32",children:C.jsx("p",{className:"text-xs text-vg-textMuted",children:"No token usage data"})})]}),C.jsxs(ve.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"col-span-12 lg:col-span-4 bento-card",children:[C.jsx("h2",{className:"text-sm font-medium text-vg-text mb-4",children:"Breakdown by Feature"}),s?C.jsx("div",{className:"flex items-center justify-center h-24",children:C.jsx("p",{className:"text-xs text-vg-textMuted",children:"Loading..."})}):n?C.jsx("div",{className:"space-y-3",children:Object.entries(n.breakdownByFeature).map(([h,f])=>C.jsxs("div",{className:"flex items-center justify-between",children:[C.jsx("span",{className:"text-xs text-vg-textMuted",children:h}),C.jsxs("div",{className:"flex flex-col items-end",children:[C.jsx("span",{className:"text-sm font-mono text-vg-text",children:l(f.spend)}),f.savings>0&&C.jsxs("span",{className:"text-[10px] text-vg-success",children:["Saved ",l(f.savings)]})]})]},h))}):C.jsx("div",{className:"flex items-center justify-center h-24",children:C.jsx("p",{className:"text-xs text-vg-textMuted",children:"No data"})})]}),C.jsx(ve.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.25},className:"col-span-12",children:C.jsx("div",{className:`bento-card oracle-glow-active border-vg-indigo/20 ${e==="active"?"oracle-glow":""}`,children:C.jsx(EU,{})})})]})]})}const uf={initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8}},cf={duration:.25,ease:[.25,.1,.25,1]};function LU(){const[e,t]=R.useState("soul");return C.jsx(P3,{currentView:e,onViewChange:t,children:C.jsxs(B_,{mode:"wait",children:[e==="soul"&&C.jsx(ve.div,{variants:uf,initial:"initial",animate:"animate",exit:"exit",transition:cf,children:C.jsx(vI,{})},"soul"),e==="map"&&C.jsx(ve.div,{variants:uf,initial:"initial",animate:"animate",exit:"exit",transition:cf,children:C.jsx(SU,{})},"map"),e==="pulse"&&C.jsx(ve.div,{variants:uf,initial:"initial",animate:"animate",exit:"exit",transition:cf,children:C.jsx(AU,{})},"pulse")]})})}hf.createRoot(document.getElementById("root")).render(C.jsx(Bb.StrictMode,{children:C.jsx(LU,{})}));export{Km as $,Us as A,Ws as B,g9 as C,m9 as D,c9 as E,VO as F,VU as G,_9 as H,L8 as I,mD as J,Gm as K,oS as L,Ra as M,lS as N,FU as O,Gs as P,Ju as Q,Mt as R,Kt as S,SI as T,S9 as U,zU as V,pT as W,pg as X,u8 as Y,r8 as Z,Yn as _,p9 as a,Qr as a$,Tr as a0,d1 as a1,wD as a2,Ca as a3,tv as a4,UU as a5,d8 as a6,E8 as a7,Bi as a8,nj as a9,RU as aA,DU as aB,BU as aC,MU as aD,$U as aE,IU as aF,jU as aG,ie as aH,Wn as aI,$a as aJ,Yo as aK,ju as aL,$z as aM,Ej as aN,ja as aO,Vu as aP,Iz as aQ,jS as aR,z6 as aS,j6 as aT,ai as aU,U1 as aV,$6 as aW,sg as aX,R6 as aY,q6 as aZ,Go as a_,Kz as aa,rj as ab,ij as ac,YS as ad,Mc as ae,Oc as af,Uu as ag,D6 as ah,og as ai,KS as aj,WS as ak,Nz as al,Pz as am,Xz as an,sj as ao,Va as ap,KU as aq,za as ar,X as as,te as at,y9 as au,Jm as av,NU as aw,OU as ax,C1 as ay,v1 as az,f9 as b,R1 as b0,ag as b1,VS as b2,Xd as b3,K6 as b4,rf as b5,z8 as b6,Rm as b7,CI as b8,h9 as c,tn as d,OT as e,ht as f,vg as g,Hu as h,Io as i,Hk as j,hg as k,ee as l,N8 as m,zO as n,s9 as o,b8 as p,v8 as q,iT as r,d9 as s,Qj as t,GU as u,iS as v,B8 as w,BI as x,iz as y,ig as z};