@mcpjam/inspector 0.3.9 → 0.8.1

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 (193) hide show
  1. package/.next/BUILD_ID +1 -0
  2. package/.next/app-build-manifest.json +89 -0
  3. package/.next/app-path-routes-manifest.json +13 -0
  4. package/.next/build-manifest.json +33 -0
  5. package/.next/cache/.previewinfo +1 -0
  6. package/.next/cache/.rscinfo +1 -0
  7. package/.next/cache/.tsbuildinfo +1 -0
  8. package/.next/cache/eslint/.cache_1pr0xfn +1 -0
  9. package/.next/cache/webpack/client-production/0.pack +0 -0
  10. package/.next/cache/webpack/client-production/index.pack +0 -0
  11. package/.next/cache/webpack/edge-server-production/0.pack +0 -0
  12. package/.next/cache/webpack/edge-server-production/index.pack +0 -0
  13. package/.next/cache/webpack/server-production/0.pack +0 -0
  14. package/.next/cache/webpack/server-production/index.pack +0 -0
  15. package/.next/diagnostics/build-diagnostics.json +6 -0
  16. package/.next/diagnostics/framework.json +1 -0
  17. package/.next/export-marker.json +6 -0
  18. package/.next/images-manifest.json +57 -0
  19. package/.next/next-minimal-server.js.nft.json +1 -0
  20. package/.next/next-server.js.nft.json +1 -0
  21. package/.next/package.json +1 -0
  22. package/.next/prerender-manifest.json +41 -0
  23. package/.next/react-loadable-manifest.json +1 -0
  24. package/.next/required-server-files.json +318 -0
  25. package/.next/routes-manifest.json +65 -0
  26. package/.next/server/app/_not-found/page.js +2 -0
  27. package/.next/server/app/_not-found/page.js.nft.json +1 -0
  28. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
  29. package/.next/server/app/api/mcp/chat/route.js +45 -0
  30. package/.next/server/app/api/mcp/chat/route.js.nft.json +1 -0
  31. package/.next/server/app/api/mcp/chat/route_client-reference-manifest.js +1 -0
  32. package/.next/server/app/api/mcp/connect/route.js +1 -0
  33. package/.next/server/app/api/mcp/connect/route.js.nft.json +1 -0
  34. package/.next/server/app/api/mcp/connect/route_client-reference-manifest.js +1 -0
  35. package/.next/server/app/api/mcp/prompts/get/route.js +1 -0
  36. package/.next/server/app/api/mcp/prompts/get/route.js.nft.json +1 -0
  37. package/.next/server/app/api/mcp/prompts/get/route_client-reference-manifest.js +1 -0
  38. package/.next/server/app/api/mcp/prompts/list/route.js +1 -0
  39. package/.next/server/app/api/mcp/prompts/list/route.js.nft.json +1 -0
  40. package/.next/server/app/api/mcp/prompts/list/route_client-reference-manifest.js +1 -0
  41. package/.next/server/app/api/mcp/resources/list/route.js +1 -0
  42. package/.next/server/app/api/mcp/resources/list/route.js.nft.json +1 -0
  43. package/.next/server/app/api/mcp/resources/list/route_client-reference-manifest.js +1 -0
  44. package/.next/server/app/api/mcp/resources/read/route.js +1 -0
  45. package/.next/server/app/api/mcp/resources/read/route.js.nft.json +1 -0
  46. package/.next/server/app/api/mcp/resources/read/route_client-reference-manifest.js +1 -0
  47. package/.next/server/app/api/mcp/tools/route.js +21 -0
  48. package/.next/server/app/api/mcp/tools/route.js.nft.json +1 -0
  49. package/.next/server/app/api/mcp/tools/route_client-reference-manifest.js +1 -0
  50. package/.next/server/app/favicon.ico/route.js +1 -0
  51. package/.next/server/app/favicon.ico/route.js.nft.json +1 -0
  52. package/.next/server/app/favicon.ico.body +0 -0
  53. package/.next/server/app/favicon.ico.meta +1 -0
  54. package/.next/server/app/oauth/callback/page.js +2 -0
  55. package/.next/server/app/oauth/callback/page.js.nft.json +1 -0
  56. package/.next/server/app/oauth/callback/page_client-reference-manifest.js +1 -0
  57. package/.next/server/app/page.js +16 -0
  58. package/.next/server/app/page.js.nft.json +1 -0
  59. package/.next/server/app/page_client-reference-manifest.js +1 -0
  60. package/.next/server/app-paths-manifest.json +13 -0
  61. package/.next/server/chunks/175.js +8 -0
  62. package/.next/server/chunks/260.js +82 -0
  63. package/.next/server/chunks/546.js +1 -0
  64. package/.next/server/chunks/548.js +6 -0
  65. package/.next/server/chunks/55.js +1 -0
  66. package/.next/server/chunks/985.js +22 -0
  67. package/.next/server/functions-config-manifest.json +4 -0
  68. package/.next/server/interception-route-rewrite-manifest.js +1 -0
  69. package/.next/server/middleware-build-manifest.js +1 -0
  70. package/.next/server/middleware-manifest.json +6 -0
  71. package/.next/server/middleware-react-loadable-manifest.js +1 -0
  72. package/.next/server/next-font-manifest.js +1 -0
  73. package/.next/server/next-font-manifest.json +1 -0
  74. package/.next/server/pages/500.html +1 -0
  75. package/.next/server/pages/_app.js +1 -0
  76. package/.next/server/pages/_app.js.nft.json +1 -0
  77. package/.next/server/pages/_document.js +1 -0
  78. package/.next/server/pages/_document.js.nft.json +1 -0
  79. package/.next/server/pages/_error.js +19 -0
  80. package/.next/server/pages/_error.js.nft.json +1 -0
  81. package/.next/server/pages-manifest.json +5 -0
  82. package/.next/server/server-reference-manifest.js +1 -0
  83. package/.next/server/server-reference-manifest.json +1 -0
  84. package/.next/server/webpack-runtime.js +1 -0
  85. package/.next/static/Pq27RIJUfrYOGSjOrYx4E/_buildManifest.js +1 -0
  86. package/.next/static/Pq27RIJUfrYOGSjOrYx4E/_ssgManifest.js +1 -0
  87. package/.next/static/chunks/14-ae3a01e72ea53777.js +1 -0
  88. package/.next/static/chunks/214-cc4c35d88f2695ed.js +1 -0
  89. package/.next/static/chunks/4bd1b696-cf72ae8a39fa05aa.js +1 -0
  90. package/.next/static/chunks/866-04c19dda4c52f2bf.js +1 -0
  91. package/.next/static/chunks/964-eda38e26c0391a47.js +1 -0
  92. package/.next/static/chunks/app/_not-found/page-8601c49989b0be94.js +1 -0
  93. package/.next/static/chunks/app/api/mcp/chat/route-0341498a8bf5f2da.js +1 -0
  94. package/.next/static/chunks/app/api/mcp/connect/route-0341498a8bf5f2da.js +1 -0
  95. package/.next/static/chunks/app/api/mcp/prompts/get/route-0341498a8bf5f2da.js +1 -0
  96. package/.next/static/chunks/app/api/mcp/prompts/list/route-0341498a8bf5f2da.js +1 -0
  97. package/.next/static/chunks/app/api/mcp/resources/list/route-0341498a8bf5f2da.js +1 -0
  98. package/.next/static/chunks/app/api/mcp/resources/read/route-0341498a8bf5f2da.js +1 -0
  99. package/.next/static/chunks/app/api/mcp/tools/route-0341498a8bf5f2da.js +1 -0
  100. package/.next/static/chunks/app/layout-9e8115d4bf656fa0.js +1 -0
  101. package/.next/static/chunks/app/oauth/callback/page-cf6cb1ac31175f40.js +1 -0
  102. package/.next/static/chunks/app/page-fdd433623879220d.js +1 -0
  103. package/.next/static/chunks/framework-7c95b8e5103c9e90.js +1 -0
  104. package/.next/static/chunks/main-app-4e9e28316818cdde.js +1 -0
  105. package/.next/static/chunks/main-bbdafee21a7bd1d6.js +1 -0
  106. package/.next/static/chunks/pages/_app-0a0020ddd67f79cf.js +1 -0
  107. package/.next/static/chunks/pages/_error-03529f2c21436739.js +1 -0
  108. package/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  109. package/.next/static/chunks/webpack-cdfccaf38062dd25.js +1 -0
  110. package/.next/static/css/1e852d83e9c1d0c6.css +1 -0
  111. package/.next/static/css/f30152c0704fba31.css +1 -0
  112. package/.next/static/css/fe751fdbe975e9ca.css +1 -0
  113. package/.next/static/media/569ce4b8f30dc480-s.p.woff2 +0 -0
  114. package/.next/static/media/747892c23ea88013-s.woff2 +0 -0
  115. package/.next/static/media/8d697b304b401681-s.woff2 +0 -0
  116. package/.next/static/media/93f479601ee12b01-s.p.woff2 +0 -0
  117. package/.next/static/media/9610d9e46709d722-s.woff2 +0 -0
  118. package/.next/static/media/ba015fad6dcf6784-s.woff2 +0 -0
  119. package/.next/static/media/ollama_dark.9af45ac0.png +0 -0
  120. package/.next/static/media/ollama_logo.9f08a95b.svg +7 -0
  121. package/.next/static/media/openai_logo.3f83154a.png +0 -0
  122. package/.next/trace +35 -0
  123. package/.next/types/app/api/mcp/chat/route.ts +347 -0
  124. package/.next/types/app/api/mcp/connect/route.ts +347 -0
  125. package/.next/types/app/api/mcp/prompts/get/route.ts +347 -0
  126. package/.next/types/app/api/mcp/prompts/list/route.ts +347 -0
  127. package/.next/types/app/api/mcp/resources/list/route.ts +347 -0
  128. package/.next/types/app/api/mcp/resources/read/route.ts +347 -0
  129. package/.next/types/app/api/mcp/tools/route.ts +347 -0
  130. package/.next/types/app/layout.ts +84 -0
  131. package/.next/types/app/oauth/callback/page.ts +84 -0
  132. package/.next/types/app/page.ts +84 -0
  133. package/.next/types/cache-life.d.ts +141 -0
  134. package/.next/types/package.json +1 -0
  135. package/README.md +76 -161
  136. package/bin/start.js +504 -0
  137. package/next.config.ts +7 -0
  138. package/package.json +71 -54
  139. package/public/claude_logo.png +0 -0
  140. package/public/demo_1.png +0 -0
  141. package/public/demo_2.png +0 -0
  142. package/public/demo_3.png +0 -0
  143. package/public/file.svg +1 -0
  144. package/public/globe.svg +1 -0
  145. package/public/mcp.svg +1 -0
  146. package/public/next.svg +1 -0
  147. package/public/ollama_dark.png +0 -0
  148. package/public/ollama_logo.svg +7 -0
  149. package/public/openai_logo.png +0 -0
  150. package/public/vercel.svg +1 -0
  151. package/public/window.svg +1 -0
  152. package/LICENSE +0 -200
  153. package/cli/build/cli.js +0 -251
  154. package/cli/build/client/connection.js +0 -33
  155. package/cli/build/client/index.js +0 -6
  156. package/cli/build/client/prompts.js +0 -23
  157. package/cli/build/client/resources.js +0 -30
  158. package/cli/build/client/tools.js +0 -64
  159. package/cli/build/client/types.js +0 -1
  160. package/cli/build/error-handler.js +0 -18
  161. package/cli/build/index.js +0 -166
  162. package/cli/build/transport.js +0 -47
  163. package/client/bin/client.js +0 -71
  164. package/client/bin/start.js +0 -143
  165. package/client/dist/assets/OAuthCallback-BSOXmPlE.js +0 -56
  166. package/client/dist/assets/OAuthDebugCallback-DyzqkofK.js +0 -44
  167. package/client/dist/assets/index-BT03cD-1.js +0 -63301
  168. package/client/dist/assets/index-Bwd_BFIj.css +0 -4164
  169. package/client/dist/index.html +0 -14
  170. package/client/dist/ollama_logo.png +0 -0
  171. package/client/dist/openai_logo.png +0 -0
  172. package/server/build/database/DatabaseManager.js +0 -108
  173. package/server/build/database/index.js +0 -8
  174. package/server/build/database/routes.js +0 -86
  175. package/server/build/database/types.js +0 -27
  176. package/server/build/database/utils.js +0 -86
  177. package/server/build/index.js +0 -331
  178. package/server/build/mcpProxy.js +0 -54
  179. package/server/build/shared/MCPProxyService.js +0 -221
  180. package/server/build/shared/TransportFactory.js +0 -130
  181. package/server/build/shared/index.js +0 -4
  182. package/server/build/shared/types.js +0 -1
  183. package/server/build/shared/utils.js +0 -27
  184. package/server/build/test-server.js +0 -145
  185. package/server/build/testing/HealthCheck.js +0 -42
  186. package/server/build/testing/TestExecutor.js +0 -240
  187. package/server/build/testing/TestRunner.js +0 -198
  188. package/server/build/testing/TestServer.js +0 -440
  189. package/server/build/testing/types.js +0 -1
  190. /package/{client/dist/claude_logo.png → .next/static/media/claude_logo.d33b25b0.png} +0 -0
  191. /package/{client/dist → public}/mcp_jam.svg +0 -0
  192. /package/{client/dist → public}/mcp_jam_dark.png +0 -0
  193. /package/{client/dist → public}/mcp_jam_light.png +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[14],{83:(e,t,n)=>{"use strict";n.d(t,{UC:()=>eM,In:()=>eA,q7:()=>eO,VF:()=>eN,p4:()=>eD,ZL:()=>ej,bL:()=>eE,wn:()=>eI,PP:()=>eL,l9:()=>eT,WT:()=>eP,LM:()=>eR});var r=n(2115),i=n(7650),o=n(9367),a=n(5185),s=n(7328),l=n(6101),u=n(6081),c=n(4315),d=n(9178),h=n(2293),f=n(7900),p=n(1285),m=n(8795),g=n(4378),y=n(3655),v=n(9708),x=n(9033),b=n(5845),w=n(2712),k=n(2564),C=n(8168),S=n(3795),_=n(5155),E=[" ","Enter","ArrowUp","ArrowDown"],T=[" ","Enter"],P="Select",[A,j,M]=(0,s.N)(P),[R,O]=(0,u.A)(P,[M,m.Bk]),D=(0,m.Bk)(),[N,L]=R(P),[I,F]=R(P),z=e=>{let{__scopeSelect:t,children:n,open:i,defaultOpen:o,onOpenChange:a,value:s,defaultValue:l,onValueChange:u,dir:d,name:h,autoComplete:f,disabled:g,required:y,form:v}=e,x=D(t),[w,k]=r.useState(null),[C,S]=r.useState(null),[E,T]=r.useState(!1),j=(0,c.jH)(d),[M,R]=(0,b.i)({prop:i,defaultProp:null!=o&&o,onChange:a,caller:P}),[O,L]=(0,b.i)({prop:s,defaultProp:l,onChange:u,caller:P}),F=r.useRef(null),z=!w||v||!!w.closest("form"),[V,B]=r.useState(new Set),H=Array.from(V).map(e=>e.props.value).join(";");return(0,_.jsx)(m.bL,{...x,children:(0,_.jsxs)(N,{required:y,scope:t,trigger:w,onTriggerChange:k,valueNode:C,onValueNodeChange:S,valueNodeHasChildren:E,onValueNodeHasChildrenChange:T,contentId:(0,p.B)(),value:O,onValueChange:L,open:M,onOpenChange:R,dir:j,triggerPointerDownPosRef:F,disabled:g,children:[(0,_.jsx)(A.Provider,{scope:t,children:(0,_.jsx)(I,{scope:e.__scopeSelect,onNativeOptionAdd:r.useCallback(e=>{B(t=>new Set(t).add(e))},[]),onNativeOptionRemove:r.useCallback(e=>{B(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),z?(0,_.jsxs)(ek,{"aria-hidden":!0,required:y,tabIndex:-1,name:h,autoComplete:f,value:O,onChange:e=>L(e.target.value),disabled:g,form:v,children:[void 0===O?(0,_.jsx)("option",{value:""}):null,Array.from(V)]},H):null]})})};z.displayName=P;var V="SelectTrigger",B=r.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:i=!1,...o}=e,s=D(n),u=L(V,n),c=u.disabled||i,d=(0,l.s)(t,u.onTriggerChange),h=j(n),f=r.useRef("touch"),[p,g,v]=eS(e=>{let t=h().filter(e=>!e.disabled),n=t.find(e=>e.value===u.value),r=e_(t,e,n);void 0!==r&&u.onValueChange(r.value)}),x=e=>{c||(u.onOpenChange(!0),v()),e&&(u.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,_.jsx)(m.Mz,{asChild:!0,...s,children:(0,_.jsx)(y.sG.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":eC(u.value)?"":void 0,...o,ref:d,onClick:(0,a.m)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==f.current&&x(e)}),onPointerDown:(0,a.m)(o.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(x(e),e.preventDefault())}),onKeyDown:(0,a.m)(o.onKeyDown,e=>{let t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||g(e.key),(!t||" "!==e.key)&&E.includes(e.key)&&(x(),e.preventDefault())})})})});B.displayName=V;var H="SelectValue",U=r.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,children:o,placeholder:a="",...s}=e,u=L(H,n),{onValueNodeHasChildrenChange:c}=u,d=void 0!==o,h=(0,l.s)(t,u.onValueNodeChange);return(0,w.N)(()=>{c(d)},[c,d]),(0,_.jsx)(y.sG.span,{...s,ref:h,style:{pointerEvents:"none"},children:eC(u.value)?(0,_.jsx)(_.Fragment,{children:a}):o})});U.displayName=H;var W=r.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,_.jsx)(y.sG.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});W.displayName="SelectIcon";var $=e=>(0,_.jsx)(g.Z,{asChild:!0,...e});$.displayName="SelectPortal";var Z="SelectContent",q=r.forwardRef((e,t)=>{let n=L(Z,e.__scopeSelect),[o,a]=r.useState();return((0,w.N)(()=>{a(new DocumentFragment)},[]),n.open)?(0,_.jsx)(X,{...e,ref:t}):o?i.createPortal((0,_.jsx)(K,{scope:e.__scopeSelect,children:(0,_.jsx)(A.Slot,{scope:e.__scopeSelect,children:(0,_.jsx)("div",{children:e.children})})}),o):null});q.displayName=Z;var[K,Y]=R(Z),G=(0,v.TL)("SelectContent.RemoveScroll"),X=r.forwardRef((e,t)=>{let{__scopeSelect:n,position:i="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:u,side:c,sideOffset:p,align:m,alignOffset:g,arrowPadding:y,collisionBoundary:v,collisionPadding:x,sticky:b,hideWhenDetached:w,avoidCollisions:k,...E}=e,T=L(Z,n),[P,A]=r.useState(null),[M,R]=r.useState(null),O=(0,l.s)(t,e=>A(e)),[D,N]=r.useState(null),[I,F]=r.useState(null),z=j(n),[V,B]=r.useState(!1),H=r.useRef(!1);r.useEffect(()=>{if(P)return(0,C.Eq)(P)},[P]),(0,h.Oh)();let U=r.useCallback(e=>{let[t,...n]=z().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&M&&(M.scrollTop=0),n===r&&M&&(M.scrollTop=M.scrollHeight),null==n||n.focus(),document.activeElement!==i))return},[z,M]),W=r.useCallback(()=>U([D,P]),[U,D,P]);r.useEffect(()=>{V&&W()},[V,W]);let{onOpenChange:$,triggerPointerDownPosRef:q}=T;r.useEffect(()=>{if(P){let e={x:0,y:0},t=t=>{var n,r,i,o;e={x:Math.abs(Math.round(t.pageX)-(null!=(i=null==(n=q.current)?void 0:n.x)?i:0)),y:Math.abs(Math.round(t.pageY)-(null!=(o=null==(r=q.current)?void 0:r.y)?o:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():P.contains(n.target)||$(!1),document.removeEventListener("pointermove",t),q.current=null};return null!==q.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[P,$,q]),r.useEffect(()=>{let e=()=>$(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[$]);let[Y,X]=eS(e=>{let t=z().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=e_(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),ee=r.useCallback((e,t,n)=>{let r=!H.current&&!n;(void 0!==T.value&&T.value===t||r)&&(N(e),r&&(H.current=!0))},[T.value]),et=r.useCallback(()=>null==P?void 0:P.focus(),[P]),en=r.useCallback((e,t,n)=>{let r=!H.current&&!n;(void 0!==T.value&&T.value===t||r)&&F(e)},[T.value]),er="popper"===i?J:Q,ei=er===J?{side:c,sideOffset:p,align:m,alignOffset:g,arrowPadding:y,collisionBoundary:v,collisionPadding:x,sticky:b,hideWhenDetached:w,avoidCollisions:k}:{};return(0,_.jsx)(K,{scope:n,content:P,viewport:M,onViewportChange:R,itemRefCallback:ee,selectedItem:D,onItemLeave:et,itemTextRefCallback:en,focusSelectedItem:W,selectedItemText:I,position:i,isPositioned:V,searchRef:Y,children:(0,_.jsx)(S.A,{as:G,allowPinchZoom:!0,children:(0,_.jsx)(f.n,{asChild:!0,trapped:T.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,a.m)(o,e=>{var t;null==(t=T.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,_.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:(0,_.jsx)(er,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:e=>e.preventDefault(),...E,...ei,onPlaced:()=>B(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:(0,a.m)(E.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||X(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=z().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>U(t)),e.preventDefault()}})})})})})})});X.displayName="SelectContentImpl";var Q=r.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:i,...a}=e,s=L(Z,n),u=Y(Z,n),[c,d]=r.useState(null),[h,f]=r.useState(null),p=(0,l.s)(t,e=>f(e)),m=j(n),g=r.useRef(!1),v=r.useRef(!0),{viewport:x,selectedItem:b,selectedItemText:k,focusSelectedItem:C}=u,S=r.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&h&&x&&b&&k){let e=s.trigger.getBoundingClientRect(),t=h.getBoundingClientRect(),n=s.valueNode.getBoundingClientRect(),r=k.getBoundingClientRect();if("rtl"!==s.dir){let i=r.left-t.left,a=n.left-i,s=e.left-a,l=e.width+s,u=Math.max(l,t.width),d=window.innerWidth-10,h=(0,o.q)(a,[10,Math.max(10,d-u)]);c.style.minWidth=l+"px",c.style.left=h+"px"}else{let i=t.right-r.right,a=window.innerWidth-n.right-i,s=window.innerWidth-e.right-a,l=e.width+s,u=Math.max(l,t.width),d=window.innerWidth-10,h=(0,o.q)(a,[10,Math.max(10,d-u)]);c.style.minWidth=l+"px",c.style.right=h+"px"}let a=m(),l=window.innerHeight-20,u=x.scrollHeight,d=window.getComputedStyle(h),f=parseInt(d.borderTopWidth,10),p=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),v=f+p+u+parseInt(d.paddingBottom,10)+y,w=Math.min(5*b.offsetHeight,v),C=window.getComputedStyle(x),S=parseInt(C.paddingTop,10),_=parseInt(C.paddingBottom,10),E=e.top+e.height/2-10,T=b.offsetHeight/2,P=f+p+(b.offsetTop+T);if(P<=E){let e=a.length>0&&b===a[a.length-1].ref.current;c.style.bottom="0px";let t=Math.max(l-E,T+(e?_:0)+(h.clientHeight-x.offsetTop-x.offsetHeight)+y);c.style.height=P+t+"px"}else{let e=a.length>0&&b===a[0].ref.current;c.style.top="0px";let t=Math.max(E,f+x.offsetTop+(e?S:0)+T);c.style.height=t+(v-P)+"px",x.scrollTop=P-E+x.offsetTop}c.style.margin="".concat(10,"px 0"),c.style.minHeight=w+"px",c.style.maxHeight=l+"px",null==i||i(),requestAnimationFrame(()=>g.current=!0)}},[m,s.trigger,s.valueNode,c,h,x,b,k,s.dir,i]);(0,w.N)(()=>S(),[S]);let[E,T]=r.useState();(0,w.N)(()=>{h&&T(window.getComputedStyle(h).zIndex)},[h]);let P=r.useCallback(e=>{e&&!0===v.current&&(S(),null==C||C(),v.current=!1)},[S,C]);return(0,_.jsx)(ee,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:P,children:(0,_.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:(0,_.jsx)(y.sG.div,{...a,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});Q.displayName="SelectItemAlignedPosition";var J=r.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:i=10,...o}=e,a=D(n);return(0,_.jsx)(m.UC,{...a,...o,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});J.displayName="SelectPopperPosition";var[ee,et]=R(Z,{}),en="SelectViewport",er=r.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:i,...o}=e,s=Y(en,n),u=et(en,n),c=(0,l.s)(t,s.onViewportChange),d=r.useRef(0);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,_.jsx)(A.Slot,{scope:n,children:(0,_.jsx)(y.sG.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,a.m)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=u;if((null==r?void 0:r.current)&&n){let e=Math.abs(d.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,i=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(i<r){let o=i+e,a=Math.min(r,o),s=o-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})});er.displayName=en;var ei="SelectGroup",[eo,ea]=R(ei);r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=(0,p.B)();return(0,_.jsx)(eo,{scope:n,id:i,children:(0,_.jsx)(y.sG.div,{role:"group","aria-labelledby":i,...r,ref:t})})}).displayName=ei;var es="SelectLabel";r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=ea(es,n);return(0,_.jsx)(y.sG.div,{id:i.id,...r,ref:t})}).displayName=es;var el="SelectItem",[eu,ec]=R(el),ed=r.forwardRef((e,t)=>{let{__scopeSelect:n,value:i,disabled:o=!1,textValue:s,...u}=e,c=L(el,n),d=Y(el,n),h=c.value===i,[f,m]=r.useState(null!=s?s:""),[g,v]=r.useState(!1),x=(0,l.s)(t,e=>{var t;return null==(t=d.itemRefCallback)?void 0:t.call(d,e,i,o)}),b=(0,p.B)(),w=r.useRef("touch"),k=()=>{o||(c.onValueChange(i),c.onOpenChange(!1))};if(""===i)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,_.jsx)(eu,{scope:n,value:i,disabled:o,textId:b,isSelected:h,onItemTextChange:r.useCallback(e=>{m(t=>{var n;return t||(null!=(n=null==e?void 0:e.textContent)?n:"").trim()})},[]),children:(0,_.jsx)(A.ItemSlot,{scope:n,value:i,disabled:o,textValue:f,children:(0,_.jsx)(y.sG.div,{role:"option","aria-labelledby":b,"data-highlighted":g?"":void 0,"aria-selected":h&&g,"data-state":h?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...u,ref:x,onFocus:(0,a.m)(u.onFocus,()=>v(!0)),onBlur:(0,a.m)(u.onBlur,()=>v(!1)),onClick:(0,a.m)(u.onClick,()=>{"mouse"!==w.current&&k()}),onPointerUp:(0,a.m)(u.onPointerUp,()=>{"mouse"===w.current&&k()}),onPointerDown:(0,a.m)(u.onPointerDown,e=>{w.current=e.pointerType}),onPointerMove:(0,a.m)(u.onPointerMove,e=>{if(w.current=e.pointerType,o){var t;null==(t=d.onItemLeave)||t.call(d)}else"mouse"===w.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,a.m)(u.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null==(t=d.onItemLeave)||t.call(d)}}),onKeyDown:(0,a.m)(u.onKeyDown,e=>{var t;((null==(t=d.searchRef)?void 0:t.current)===""||" "!==e.key)&&(T.includes(e.key)&&k()," "===e.key&&e.preventDefault())})})})})});ed.displayName=el;var eh="SelectItemText",ef=r.forwardRef((e,t)=>{let{__scopeSelect:n,className:o,style:a,...s}=e,u=L(eh,n),c=Y(eh,n),d=ec(eh,n),h=F(eh,n),[f,p]=r.useState(null),m=(0,l.s)(t,e=>p(e),d.onItemTextChange,e=>{var t;return null==(t=c.itemTextRefCallback)?void 0:t.call(c,e,d.value,d.disabled)}),g=null==f?void 0:f.textContent,v=r.useMemo(()=>(0,_.jsx)("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:x,onNativeOptionRemove:b}=h;return(0,w.N)(()=>(x(v),()=>b(v)),[x,b,v]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(y.sG.span,{id:d.textId,...s,ref:m}),d.isSelected&&u.valueNode&&!u.valueNodeHasChildren?i.createPortal(s.children,u.valueNode):null]})});ef.displayName=eh;var ep="SelectItemIndicator",em=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return ec(ep,n).isSelected?(0,_.jsx)(y.sG.span,{"aria-hidden":!0,...r,ref:t}):null});em.displayName=ep;var eg="SelectScrollUpButton",ey=r.forwardRef((e,t)=>{let n=Y(eg,e.__scopeSelect),i=et(eg,e.__scopeSelect),[o,a]=r.useState(!1),s=(0,l.s)(t,i.onScrollButtonChange);return(0,w.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,_.jsx)(eb,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});ey.displayName=eg;var ev="SelectScrollDownButton",ex=r.forwardRef((e,t)=>{let n=Y(ev,e.__scopeSelect),i=et(ev,e.__scopeSelect),[o,a]=r.useState(!1),s=(0,l.s)(t,i.onScrollButtonChange);return(0,w.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,_.jsx)(eb,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});ex.displayName=ev;var eb=r.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:i,...o}=e,s=Y("SelectScrollButton",n),l=r.useRef(null),u=j(n),c=r.useCallback(()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)},[]);return r.useEffect(()=>()=>c(),[c]),(0,w.N)(()=>{var e;let t=u().find(e=>e.ref.current===document.activeElement);null==t||null==(e=t.ref.current)||e.scrollIntoView({block:"nearest"})},[u]),(0,_.jsx)(y.sG.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,a.m)(o.onPointerDown,()=>{null===l.current&&(l.current=window.setInterval(i,50))}),onPointerMove:(0,a.m)(o.onPointerMove,()=>{var e;null==(e=s.onItemLeave)||e.call(s),null===l.current&&(l.current=window.setInterval(i,50))}),onPointerLeave:(0,a.m)(o.onPointerLeave,()=>{c()})})});r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,_.jsx)(y.sG.div,{"aria-hidden":!0,...r,ref:t})}).displayName="SelectSeparator";var ew="SelectArrow";r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=D(n),o=L(ew,n),a=Y(ew,n);return o.open&&"popper"===a.position?(0,_.jsx)(m.i3,{...i,...r,ref:t}):null}).displayName=ew;var ek=r.forwardRef((e,t)=>{let{__scopeSelect:n,value:i,...o}=e,a=r.useRef(null),s=(0,l.s)(t,a),u=function(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(i);return r.useEffect(()=>{let e=a.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(u!==i&&t){let n=new Event("change",{bubbles:!0});t.call(e,i),e.dispatchEvent(n)}},[u,i]),(0,_.jsx)(y.sG.select,{...o,style:{...k.Qg,...o.style},ref:s,defaultValue:i})});function eC(e){return""===e||void 0===e}function eS(e){let t=(0,x.c)(e),n=r.useRef(""),i=r.useRef(0),o=r.useCallback(e=>{let r=n.current+e;t(r),function e(t){n.current=t,window.clearTimeout(i.current),""!==t&&(i.current=window.setTimeout(()=>e(""),1e3))}(r)},[t]),a=r.useCallback(()=>{n.current="",window.clearTimeout(i.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(i.current),[]),[n,o,a]}function e_(e,t,n){var r,i;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=n?e.indexOf(n):-1,s=(r=e,i=Math.max(a,0),r.map((e,t)=>r[(i+t)%r.length]));1===o.length&&(s=s.filter(e=>e!==n));let l=s.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}ek.displayName="SelectBubbleInput";var eE=z,eT=B,eP=U,eA=W,ej=$,eM=q,eR=er,eO=ed,eD=ef,eN=em,eL=ey,eI=ex},133:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},381:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},492:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]])},646:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},760:(e,t,n)=>{"use strict";n.d(t,{N:()=>v});var r=n(5155),i=n(2115),o=n(869),a=n(2885),s=n(7494),l=n(845),u=n(7351),c=n(1508);class d extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=(0,u.s)(e)&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function h(e){let{children:t,isPresent:n,anchorX:o,root:a}=e,s=(0,i.useId)(),l=(0,i.useRef)(null),u=(0,i.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:h}=(0,i.useContext)(c.Q);return(0,i.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:i,right:c}=u.current;if(n||!l.current||!e||!t)return;l.current.dataset.motionPopId=s;let d=document.createElement("style");h&&(d.nonce=h);let f=null!=a?a:document.head;return f.appendChild(d),d.sheet&&d.sheet.insertRule('\n [data-motion-pop-id="'.concat(s,'"] {\n position: absolute !important;\n width: ').concat(e,"px !important;\n height: ").concat(t,"px !important;\n ").concat("left"===o?"left: ".concat(i):"right: ".concat(c),"px !important;\n top: ").concat(r,"px !important;\n }\n ")),()=>{f.removeChild(d),f.contains(d)&&f.removeChild(d)}},[n]),(0,r.jsx)(d,{isPresent:n,childRef:l,sizeRef:u,children:i.cloneElement(t,{ref:l})})}let f=e=>{let{children:t,initial:n,isPresent:o,onExitComplete:s,custom:u,presenceAffectsLayout:c,mode:d,anchorX:f,root:m}=e,g=(0,a.M)(p),y=(0,i.useId)(),v=!0,x=(0,i.useMemo)(()=>(v=!1,{id:y,initial:n,isPresent:o,custom:u,onExitComplete:e=>{for(let t of(g.set(e,!0),g.values()))if(!t)return;s&&s()},register:e=>(g.set(e,!1),()=>g.delete(e))}),[o,g,s]);return c&&v&&(x={...x}),(0,i.useMemo)(()=>{g.forEach((e,t)=>g.set(t,!1))},[o]),i.useEffect(()=>{o||g.size||!s||s()},[o]),"popLayout"===d&&(t=(0,r.jsx)(h,{isPresent:o,anchorX:f,root:m,children:t})),(0,r.jsx)(l.t.Provider,{value:x,children:t})};function p(){return new Map}var m=n(2082);let g=e=>e.key||"";function y(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}let v=e=>{let{children:t,custom:n,initial:l=!0,onExitComplete:u,presenceAffectsLayout:c=!0,mode:d="sync",propagate:h=!1,anchorX:p="left",root:v}=e,[x,b]=(0,m.xQ)(h),w=(0,i.useMemo)(()=>y(t),[t]),k=h&&!x?[]:w.map(g),C=(0,i.useRef)(!0),S=(0,i.useRef)(w),_=(0,a.M)(()=>new Map),[E,T]=(0,i.useState)(w),[P,A]=(0,i.useState)(w);(0,s.E)(()=>{C.current=!1,S.current=w;for(let e=0;e<P.length;e++){let t=g(P[e]);k.includes(t)?_.delete(t):!0!==_.get(t)&&_.set(t,!1)}},[P,k.length,k.join("-")]);let j=[];if(w!==E){let e=[...w];for(let t=0;t<P.length;t++){let n=P[t],r=g(n);k.includes(r)||(e.splice(t,0,n),j.push(n))}return"wait"===d&&j.length&&(e=j),A(y(e)),T(w),null}let{forceRender:M}=(0,i.useContext)(o.L);return(0,r.jsx)(r.Fragment,{children:P.map(e=>{let t=g(e),i=(!h||!!x)&&(w===P||k.includes(t));return(0,r.jsx)(f,{isPresent:i,initial:(!C.current||!!l)&&void 0,custom:n,presenceAffectsLayout:c,mode:d,root:v,onExitComplete:i?void 0:()=>{if(!_.has(t))return;_.set(t,!0);let e=!0;_.forEach(t=>{t||(e=!1)}),e&&(null==M||M(),A(S.current),h&&(null==b||b()),u&&u())},anchorX:p,children:e},t)})})}},845:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});let r=(0,n(2115).createContext)(null)},869:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});let r=(0,n(2115).createContext)({})},901:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});let r=n(8229)._(n(2115)).default.createContext(null)},968:(e,t,n)=>{"use strict";n.d(t,{b:()=>s});var r=n(2115),i=n(3655),o=n(5155),a=r.forwardRef((e,t)=>(0,o.jsx)(i.sG.label,{...e,ref:t,onMouseDown:t=>{var n;t.target.closest("button, input, select, textarea")||(null==(n=e.onMouseDown)||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));a.displayName="Label";var s=a},1193:(e,t)=>{"use strict";function n(e){var t;let{config:n,src:r,width:i,quality:o}=e,a=o||(null==(t=n.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return n.path+"?url="+encodeURIComponent(r)+"&w="+i+"&q="+a+(r.startsWith("/_next/static/media/"),"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},1274:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("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"}]])},1285:(e,t,n)=>{"use strict";n.d(t,{B:()=>l});var r,i=n(2115),o=n(2712),a=(r||(r=n.t(i,2)))[" useId ".trim().toString()]||(()=>void 0),s=0;function l(e){let[t,n]=i.useState(a());return(0,o.N)(()=>{e||n(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},1300:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||i.test(u)||n.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,l):e.replace(o,l)).replace(r,s))}},1366:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("message-circle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]])},1392:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("glasses",[["circle",{cx:"6",cy:"15",r:"4",key:"vux9w4"}],["circle",{cx:"18",cy:"15",r:"4",key:"18o8ve"}],["path",{d:"M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2",key:"1ag4bs"}],["path",{d:"M2.5 13 5 7c.7-1.3 1.4-2 3-2",key:"1hm1gs"}],["path",{d:"M21.5 13 19 7c-.7-1.3-1.5-2-3-2",key:"1r31ai"}]])},1469:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},getImageProps:function(){return s}});let r=n(8229),i=n(8883),o=n(3063),a=r._(n(1193));function s(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let l=o.Image},1497:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("message-square",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]])},1508:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});let r=(0,n(2115).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},1603:(e,t,n)=>{"use strict";function r(e,t,n,r){let i,o=e.length,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)(i=r.slice(a,a+1e4)).unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function i(e,t){return e.length>0?(r(e,e.length,0,t),e):t}n.d(t,{V:()=>i,m:()=>r})},1729:(e,t,n)=>{"use strict";let r,i;n.d(t,{TW:()=>eb,YZ:()=>ey,Zk:()=>m});var o,a=n(2115);let s=(0,a.createContext)(null);s.displayName="PanelGroupContext";let l={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},u=a.useLayoutEffect,c=(o||(o=n.t(a,2)))["useId".toString()],d="function"==typeof c?c:()=>null,h=0;function f(e=null){let t=d(),n=(0,a.useRef)(e||t||null);return null===n.current&&(n.current=""+h++),null!=e?e:n.current}function p({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:o,id:c,maxSize:d,minSize:h,onCollapse:p,onExpand:m,onResize:g,order:y,style:v,tagName:x="div",...b}){let w=(0,a.useContext)(s);if(null===w)throw Error("Panel components must be rendered within a PanelGroup container");let{collapsePanel:k,expandPanel:C,getPanelSize:S,getPanelStyle:_,groupId:E,isPanelCollapsed:T,reevaluatePanelConstraints:P,registerPanel:A,resizePanel:j,unregisterPanel:M}=w,R=f(c),O=(0,a.useRef)({callbacks:{onCollapse:p,onExpand:m,onResize:g},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:d,minSize:h},id:R,idIsFromProps:void 0!==c,order:y});(0,a.useRef)({didLogMissingDefaultSizeWarning:!1}),u(()=>{let{callbacks:e,constraints:t}=O.current,o={...t};O.current.id=R,O.current.idIsFromProps=void 0!==c,O.current.order=y,e.onCollapse=p,e.onExpand=m,e.onResize=g,t.collapsedSize=n,t.collapsible=r,t.defaultSize=i,t.maxSize=d,t.minSize=h,(o.collapsedSize!==t.collapsedSize||o.collapsible!==t.collapsible||o.maxSize!==t.maxSize||o.minSize!==t.minSize)&&P(O.current,o)}),u(()=>{let e=O.current;return A(e),()=>{M(e)}},[y,R,A,M]),(0,a.useImperativeHandle)(o,()=>({collapse:()=>{k(O.current)},expand:e=>{C(O.current,e)},getId:()=>R,getSize:()=>S(O.current),isCollapsed:()=>T(O.current),isExpanded:()=>!T(O.current),resize:e=>{j(O.current,e)}}),[k,C,S,T,R,j]);let D=_(O.current,i);return(0,a.createElement)(x,{...b,children:e,className:t,id:R,style:{...D,...v},[l.groupId]:E,[l.panel]:"",[l.panelCollapsible]:r||void 0,[l.panelId]:R,[l.panelSize]:parseFloat(""+D.flexGrow).toFixed(1)})}let m=(0,a.forwardRef)((e,t)=>(0,a.createElement)(p,{...e,forwardedRef:t}));p.displayName="Panel",m.displayName="forwardRef(Panel)";let g=null,y=-1,v=null;function x(e,t){var n,i,o;let a=function(e,t){if(t){let e=(t&A)!=0,n=(t&j)!=0,r=(t&M)!=0,i=(t&R)!=0;if(e)if(r)return"se-resize";else if(i)return"ne-resize";else return"e-resize";if(n)if(r)return"sw-resize";else if(i)return"nw-resize";else return"w-resize";if(r)return"s-resize";else if(i)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}(e,t);g!==a&&(g=a,null===v&&(v=document.createElement("style"),r&&v.setAttribute("nonce",r),document.head.appendChild(v)),y>=0&&(null==(o=v.sheet)||o.removeRule(y)),y=null!=(n=null==(i=v.sheet)?void 0:i.insertRule(`*{cursor: ${a} !important;}`))?n:-1)}function b(e){return"keydown"===e.type}function w(e){return e.type.startsWith("pointer")}function k(e){return e.type.startsWith("mouse")}function C(e){if(w(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(k(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}let S=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function _(e){let t=e.length;for(;t--;){let n=e[t];if(q(n,"Missing node"),function(e){let t=getComputedStyle(e);return!!("fixed"===t.position||"auto"!==t.zIndex&&("static"!==t.position||function(e){var t;let n=getComputedStyle(null!=(t=P(e))?t:e).display;return"flex"===n||"inline-flex"===n}(e))||1>+t.opacity||"transform"in t&&"none"!==t.transform||"webkitTransform"in t&&"none"!==t.webkitTransform||"mixBlendMode"in t&&"normal"!==t.mixBlendMode||"filter"in t&&"none"!==t.filter||"webkitFilter"in t&&"none"!==t.webkitFilter||"isolation"in t&&"isolate"===t.isolation||S.test(t.willChange))||"touch"===t.webkitOverflowScrolling}(n))return n}return null}function E(e){return e&&Number(getComputedStyle(e).zIndex)||0}function T(e){let t=[];for(;e;)t.push(e),e=P(e);return t}function P(e){let{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}let A=1,j=2,M=4,R=8,O="coarse"===function(){if("function"==typeof matchMedia)return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}(),D=[],N=!1,L=new Map,I=new Map,F=new Set;function z(e){let{target:t}=e,{x:n,y:r}=C(e);N=!0,U({target:t,x:n,y:r}),$(),D.length>0&&(Z("down",e),e.preventDefault(),H(t)||e.stopImmediatePropagation())}function V(e){let{x:t,y:n}=C(e);if(N&&0===e.buttons&&(N=!1,Z("up",e)),!N){let{target:r}=e;U({target:r,x:t,y:n})}Z("move",e),W(),D.length>0&&e.preventDefault()}function B(e){let{target:t}=e,{x:n,y:r}=C(e);I.clear(),N=!1,D.length>0&&(e.preventDefault(),H(t)||e.stopImmediatePropagation()),Z("up",e),U({target:t,x:n,y:r}),W(),$()}function H(e){let t=e;for(;t;){if(t.hasAttribute(l.resizeHandle))return!0;t=t.parentElement}return!1}function U({target:e,x:t,y:n}){D.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),F.forEach(e=>{let{element:i,hitAreaMargins:o}=e,a=i.getBoundingClientRect(),{bottom:s,left:l,right:u,top:c}=a,d=O?o.coarse:o.fine;if(t>=l-d&&t<=u+d&&n>=c-d&&n<=s+d){if(null!==r&&document.contains(r)&&i!==r&&!i.contains(r)&&!r.contains(i)&&function(e,t){let n;if(e===t)throw Error("Cannot compare node with itself");let r={a:T(e),b:T(t)};for(;r.a.at(-1)===r.b.at(-1);)e=r.a.pop(),t=r.b.pop(),n=e;q(n,"Stacking order can only be calculated for elements with a common ancestor");let i={a:E(_(r.a)),b:E(_(r.b))};if(i.a===i.b){let e=n.childNodes,t={a:r.a.at(-1),b:r.b.at(-1)},i=e.length;for(;i--;){let n=e[i];if(n===t.a)return 1;if(n===t.b)return -1}}return Math.sign(i.a-i.b)}(r,i)>0){let e=r,t=!1;for(;e;){var h;if(e.contains(i))break;if(h=e.getBoundingClientRect(),h.x<a.x+a.width&&h.x+h.width>a.x&&h.y<a.y+a.height&&h.y+h.height>a.y){t=!0;break}e=e.parentElement}if(t)return}D.push(e)}})}function W(){let e=!1,t=!1;D.forEach(n=>{let{direction:r}=n;"horizontal"===r?e=!0:t=!0});let n=0;I.forEach(e=>{n|=e}),e&&t?x("intersection",n):e?x("horizontal",n):t?x("vertical",n):null!==v&&(document.head.removeChild(v),g=null,v=null,y=-1)}function $(){var e;null==(e=i)||e.abort();let t={capture:!0,signal:(i=new AbortController).signal};F.size&&(N?(D.length>0&&L.forEach((e,n)=>{let{body:r}=n;e>0&&(r.addEventListener("contextmenu",B,t),r.addEventListener("pointerleave",V,t),r.addEventListener("pointermove",V,t))}),L.forEach((e,n)=>{let{body:r}=n;r.addEventListener("pointerup",B,t),r.addEventListener("pointercancel",B,t)})):L.forEach((e,n)=>{let{body:r}=n;e>0&&(r.addEventListener("pointerdown",z,t),r.addEventListener("pointermove",V,t))}))}function Z(e,t){F.forEach(n=>{let{setResizeHandlerState:r}=n;r(e,D.includes(n),t)})}function q(e,t){if(!e)throw console.error(t),Error(t)}function K(e,t,n=10){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function Y(e,t,n=10){return 0===K(e,t,n)}function G(e,t,n){return 0===K(e,t,n)}function X({panelConstraints:e,panelIndex:t,size:n}){let r=e[t];q(null!=r,`Panel constraints not found for index ${t}`);let{collapsedSize:i=0,collapsible:o,maxSize:a=100,minSize:s=0}=r;return 0>K(n,s)&&(n=o&&0>K(n,(i+s)/2)?i:s),n=parseFloat((n=Math.min(a,n)).toFixed(10))}function Q({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:o}){if(G(e,0))return t;let a=[...t],[s,l]=r;q(null!=s,"Invalid first pivot index"),q(null!=l,"Invalid second pivot index");let u=0;if("keyboard"===o){{let r=e<0?l:s,i=n[r];q(i,`Panel constraints not found for index ${r}`);let{collapsedSize:o=0,collapsible:a,minSize:u=0}=i;if(a){let n=t[r];if(q(null!=n,`Previous layout not found for panel index ${r}`),G(n,o)){let t=u-n;K(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{let r=e<0?s:l,i=n[r];q(i,`No panel constraints found for index ${r}`);let{collapsedSize:o=0,collapsible:a,minSize:u=0}=i;if(a){let n=t[r];if(q(null!=n,`Previous layout not found for panel index ${r}`),G(n,u)){let t=n-o;K(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}{let r=e<0?1:-1,i=e<0?l:s,o=0;for(;;){let e=t[i];if(q(null!=e,`Previous layout not found for panel index ${i}`),o+=X({panelConstraints:n,panelIndex:i,size:100})-e,(i+=r)<0||i>=n.length)break}let a=Math.min(Math.abs(e),Math.abs(o));e=e<0?0-a:a}{let r=e<0?s:l;for(;r>=0&&r<n.length;){let i=Math.abs(e)-Math.abs(u),o=t[r];q(null!=o,`Previous layout not found for panel index ${r}`);let s=X({panelConstraints:n,panelIndex:r,size:o-i});if(!G(o,s)&&(u+=o-s,a[r]=s,u.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?r--:r++}}if(function(e,t,n){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!G(e[n],t[n],void 0))return!1;return!0}(i,a))return i;{let r=e<0?l:s,i=t[r];q(null!=i,`Previous layout not found for panel index ${r}`);let o=i+u,c=X({panelConstraints:n,panelIndex:r,size:o});if(a[r]=c,!G(c,o)){let t=o-c,r=e<0?l:s;for(;r>=0&&r<n.length;){let i=a[r];q(null!=i,`Previous layout not found for panel index ${r}`);let o=X({panelConstraints:n,panelIndex:r,size:i+t});if(G(i,o)||(t-=o-i,a[r]=o),G(t,0))break;e>0?r--:r++}}}return G(a.reduce((e,t)=>t+e,0),100)?a:i}function J(e,t=document){return Array.from(t.querySelectorAll(`[${l.resizeHandleId}][data-panel-group-id="${e}"]`))}function ee(e,t,n=document){let r=J(e,n).findIndex(e=>e.getAttribute(l.resizeHandleId)===t);return null!=r?r:null}function et(e,t,n){let r=ee(e,t,n);return null!=r?[r,r+1]:[-1,-1]}function en(e,t=document){if((t instanceof HTMLElement||"object"==typeof t&&null!==t&&"tagName"in t&&"getAttribute"in t)&&t.dataset.panelGroupId==e)return t;let n=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return n||null}function er(e,t=document){let n=t.querySelector(`[${l.resizeHandleId}="${e}"]`);return n||null}function ei(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function eo(e,t){let{x:n,y:r}=C(t);return"horizontal"===e?n:r}function ea(e,t,n){t.forEach((t,r)=>{let i=e[r];q(i,`Panel data not found for index ${r}`);let{callbacks:o,constraints:a,id:s}=i,{collapsedSize:l=0,collapsible:u}=a,c=n[s];if(null==c||t!==c){n[s]=t;let{onCollapse:e,onExpand:r,onResize:i}=o;i&&i(t,c),u&&(e||r)&&(r&&(null==c||Y(c,l))&&!Y(t,l)&&r(),e&&(null==c||!Y(c,l))&&Y(t,l)&&e())}})}function es(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function el(e){try{if("undefined"!=typeof localStorage)e.getItem=e=>localStorage.getItem(e),e.setItem=(e,t)=>{localStorage.setItem(e,t)};else throw Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function eu(e){return`react-resizable-panels:${e}`}function ec(e){return e.map(e=>{let{constraints:t,id:n,idIsFromProps:r,order:i}=e;return r?n:i?`${i}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function ed(e,t){try{let n=eu(e),r=t.getItem(n);if(r){let e=JSON.parse(r);if("object"==typeof e&&null!=e)return e}}catch(e){}return null}function eh(e,t,n,r,i){var o;let a=eu(e),s=ec(t),l=null!=(o=ed(e,i))?o:{};l[s]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(a,JSON.stringify(l))}catch(e){console.error(e)}}function ef({layout:e,panelConstraints:t}){let n=[...e],r=n.reduce((e,t)=>e+t,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(e=>`${e}%`).join(", ")}`);if(!G(r,100)&&n.length>0)for(let e=0;e<t.length;e++){let t=n[e];q(null!=t,`No layout data found for index ${e}`);let i=100/r*t;n[e]=i}let i=0;for(let e=0;e<t.length;e++){let r=n[e];q(null!=r,`No layout data found for index ${e}`);let o=X({panelConstraints:t,panelIndex:e,size:r});r!=o&&(i+=r-o,n[e]=o)}if(!G(i,0))for(let e=0;e<t.length;e++){let r=n[e];q(null!=r,`No layout data found for index ${e}`);let o=X({panelConstraints:t,panelIndex:e,size:r+i});if(r!==o&&(i-=o-r,n[e]=o,G(i,0)))break}return n}let ep={getItem:e=>(el(ep),ep.getItem(e)),setItem:(e,t)=>{el(ep),ep.setItem(e,t)}},em={};function eg({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:i,id:o=null,onLayout:c=null,keyboardResizeBy:d=null,storage:h=ep,style:p,tagName:m="div",...g}){let y=f(o),v=(0,a.useRef)(null),[x,C]=(0,a.useState)(null),[S,_]=(0,a.useState)([]),E=function(){let[e,t]=(0,a.useState)(0);return(0,a.useCallback)(()=>t(e=>e+1),[])}(),T=(0,a.useRef)({}),P=(0,a.useRef)(new Map),O=(0,a.useRef)(0),D=(0,a.useRef)({autoSaveId:e,direction:r,dragState:x,id:y,keyboardResizeBy:d,onLayout:c,storage:h}),N=(0,a.useRef)({layout:S,panelDataArray:[],panelDataArrayChanged:!1});(0,a.useRef)({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),(0,a.useImperativeHandle)(i,()=>({getId:()=>D.current.id,getLayout:()=>{let{layout:e}=N.current;return e},setLayout:e=>{let{onLayout:t}=D.current,{layout:n,panelDataArray:r}=N.current,i=ef({layout:e,panelConstraints:r.map(e=>e.constraints)});ei(n,i)||(_(i),N.current.layout=i,t&&t(i),ea(r,i,T.current))}}),[]),u(()=>{D.current.autoSaveId=e,D.current.direction=r,D.current.dragState=x,D.current.id=y,D.current.onLayout=c,D.current.storage=h}),function({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:s}){(0,a.useRef)({didWarnAboutMissingResizeHandle:!1}),u(()=>{if(!o)return;let e=J(n,o);for(let t=0;t<i.length-1;t++){let{valueMax:n,valueMin:o,valueNow:a}=function({layout:e,panelsArray:t,pivotIndices:n}){let r=0,i=100,o=0,a=0,s=n[0];return q(null!=s,"No pivot index found"),t.forEach((e,t)=>{let{constraints:n}=e,{maxSize:l=100,minSize:u=0}=n;t===s?(r=u,i=l):(o+=u,a+=l)}),{valueMax:Math.min(i,100-o),valueMin:Math.max(r,100-a),valueNow:e[s]}}({layout:r,panelsArray:i,pivotIndices:[t,t+1]}),s=e[t];if(null==s);else{let e=i[t];q(e,`No panel data found for index "${t}"`),s.setAttribute("aria-controls",e.id),s.setAttribute("aria-valuemax",""+Math.round(n)),s.setAttribute("aria-valuemin",""+Math.round(o)),s.setAttribute("aria-valuenow",null!=a?""+Math.round(a):"")}}return()=>{e.forEach((e,t)=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-valuemax"),e.removeAttribute("aria-valuemin"),e.removeAttribute("aria-valuenow")})}},[n,r,i,o]),(0,a.useEffect)(()=>{if(!o)return;let e=t.current;q(e,"Eager values not found");let{panelDataArray:i}=e;q(null!=en(n,o),`No group found for id "${n}"`);let a=J(n,o);q(a,`No resize handles found for group id "${n}"`);let u=a.map(e=>{let t=e.getAttribute(l.resizeHandleId);q(t,"Resize handle element has no handle id attribute");let[a,u]=function(e,t,n,r=document){var i,o,a,s;let l=er(t,r),u=J(e,r),c=l?u.indexOf(l):-1;return[null!=(i=null==(o=n[c])?void 0:o.id)?i:null,null!=(a=null==(s=n[c+1])?void 0:s.id)?a:null]}(n,t,i,o);if(null==a||null==u)return()=>{};let c=e=>{if(!e.defaultPrevented&&"Enter"===e.key){e.preventDefault();let l=i.findIndex(e=>e.id===a);if(l>=0){let e=i[l];q(e,`No panel data found for index ${l}`);let a=r[l],{collapsedSize:u=0,collapsible:c,minSize:d=0}=e.constraints;if(null!=a&&c){let e=Q({delta:G(a,u)?d-u:u-a,initialLayout:r,panelConstraints:i.map(e=>e.constraints),pivotIndices:et(n,t,o),prevLayout:r,trigger:"keyboard"});r!==e&&s(e)}}}};return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}});return()=>{u.forEach(e=>e())}},[o,e,t,n,r,i,s])}({committedValuesRef:D,eagerValuesRef:N,groupId:y,layout:S,panelDataArray:N.current.panelDataArray,setLayout:_,panelGroupElement:v.current}),(0,a.useEffect)(()=>{let{panelDataArray:t}=N.current;if(e){if(0===S.length||S.length!==t.length)return;let n=em[e];null==n&&(n=function(e,t=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}(eh,100),em[e]=n),n(e,[...t],new Map(P.current),S,h)}},[e,S,h]),(0,a.useEffect)(()=>{});let L=(0,a.useCallback)(e=>{let{onLayout:t}=D.current,{layout:n,panelDataArray:r}=N.current;if(e.constraints.collapsible){let i=r.map(e=>e.constraints),{collapsedSize:o=0,panelSize:a,pivotIndices:s}=ex(r,e,n);if(q(null!=a,`Panel size not found for panel "${e.id}"`),!Y(a,o)){P.current.set(e.id,a);let l=Q({delta:ev(r,e)===r.length-1?a-o:o-a,initialLayout:n,panelConstraints:i,pivotIndices:s,prevLayout:n,trigger:"imperative-api"});es(n,l)||(_(l),N.current.layout=l,t&&t(l),ea(r,l,T.current))}}},[]),F=(0,a.useCallback)((e,t)=>{let{onLayout:n}=D.current,{layout:r,panelDataArray:i}=N.current;if(e.constraints.collapsible){let o=i.map(e=>e.constraints),{collapsedSize:a=0,panelSize:s=0,minSize:l=0,pivotIndices:u}=ex(i,e,r),c=null!=t?t:l;if(Y(s,a)){let t=P.current.get(e.id),a=null!=t&&t>=c?t:c,l=Q({delta:ev(i,e)===i.length-1?s-a:a-s,initialLayout:r,panelConstraints:o,pivotIndices:u,prevLayout:r,trigger:"imperative-api"});es(r,l)||(_(l),N.current.layout=l,n&&n(l),ea(i,l,T.current))}}},[]),z=(0,a.useCallback)(e=>{let{layout:t,panelDataArray:n}=N.current,{panelSize:r}=ex(n,e,t);return q(null!=r,`Panel size not found for panel "${e.id}"`),r},[]),V=(0,a.useCallback)((e,t)=>{let{panelDataArray:n}=N.current,r=ev(n,e);return function({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:i,precision:o=3}){let a=n[i];return{flexBasis:0,flexGrow:null==a?void 0!=e?e.toPrecision(o):"1":1===r.length?"1":a.toPrecision(o),flexShrink:1,overflow:"hidden",pointerEvents:null!==t?"none":void 0}}({defaultSize:t,dragState:x,layout:S,panelData:n,panelIndex:r})},[x,S]),B=(0,a.useCallback)(e=>{let{layout:t,panelDataArray:n}=N.current,{collapsedSize:r=0,collapsible:i,panelSize:o}=ex(n,e,t);return q(null!=o,`Panel size not found for panel "${e.id}"`),!0===i&&Y(o,r)},[]),H=(0,a.useCallback)(e=>{let{layout:t,panelDataArray:n}=N.current,{collapsedSize:r=0,collapsible:i,panelSize:o}=ex(n,e,t);return q(null!=o,`Panel size not found for panel "${e.id}"`),!i||K(o,r)>0},[]),U=(0,a.useCallback)(e=>{let{panelDataArray:t}=N.current;t.push(e),t.sort((e,t)=>{let n=e.order,r=t.order;return null==n&&null==r?0:null==n?-1:null==r?1:n-r}),N.current.panelDataArrayChanged=!0,E()},[E]);u(()=>{if(N.current.panelDataArrayChanged){N.current.panelDataArrayChanged=!1;let{autoSaveId:i,onLayout:o,storage:a}=D.current,{layout:s,panelDataArray:l}=N.current,u=null;if(i){var e,t,n,r;let o=(e=i,t=l,null!=(r=(null!=(n=ed(e,a))?n:{})[ec(t)])?r:null);o&&(P.current=new Map(Object.entries(o.expandToSizes)),u=o.layout)}null==u&&(u=function({panelDataArray:e}){let t=Array(e.length),n=e.map(e=>e.constraints),r=0,i=100;for(let o=0;o<e.length;o++){let e=n[o];q(e,`Panel constraints not found for index ${o}`);let{defaultSize:a}=e;null!=a&&(r++,t[o]=a,i-=a)}for(let o=0;o<e.length;o++){let a=n[o];q(a,`Panel constraints not found for index ${o}`);let{defaultSize:s}=a;if(null!=s)continue;let l=i/(e.length-r);r++,t[o]=l,i-=l}return t}({panelDataArray:l}));let c=ef({layout:u,panelConstraints:l.map(e=>e.constraints)});ei(s,c)||(_(c),N.current.layout=c,o&&o(c),ea(l,c,T.current))}}),u(()=>{let e=N.current;return()=>{e.layout=[]}},[]);let W=(0,a.useCallback)(e=>{let t=!1,n=v.current;return n&&"rtl"===window.getComputedStyle(n,null).getPropertyValue("direction")&&(t=!0),function(n){var r,i;n.preventDefault();let o=v.current;if(!o)return()=>null;let{direction:a,dragState:s,id:u,keyboardResizeBy:c,onLayout:d}=D.current,{layout:h,panelDataArray:f}=N.current,{initialLayout:p}=null!=s?s:{},m=et(u,e,o),g=function(e,t,n,r,i,o){if(!b(e))return null==r?0:function(e,t,n,r,i){let o="horizontal"===n,a=er(t,i);q(a,`No resize handle element found for id "${t}"`);let s=a.getAttribute(l.groupId);q(s,"Resize handle element has no group id attribute");let{initialCursorPosition:u}=r,c=eo(n,e),d=en(s,i);q(d,`No group element found for id "${s}"`);let h=d.getBoundingClientRect();return(c-u)/(o?h.width:h.height)*100}(e,t,n,r,o);{let t="horizontal"===n,r=0;r=e.shiftKey?100:null!=i?i:10;let o=0;switch(e.key){case"ArrowDown":o=t?0:r;break;case"ArrowLeft":o=t?-r:0;break;case"ArrowRight":o=t?r:0;break;case"ArrowUp":o=t?0:-r;break;case"End":o=100;break;case"Home":o=-100}return o}}(n,e,a,s,c,o),y="horizontal"===a;y&&t&&(g=-g);let x=Q({delta:g,initialLayout:null!=p?p:h,panelConstraints:f.map(e=>e.constraints),pivotIndices:m,prevLayout:h,trigger:b(n)?"keyboard":"mouse-or-touch"}),C=!es(h,x);(w(n)||k(n))&&O.current!=g&&((O.current=g,C||0===g)?I.set(e,0):y?(r=g<0?A:j,I.set(e,r)):(i=g<0?M:R,I.set(e,i))),C&&(_(x),N.current.layout=x,d&&d(x),ea(f,x,T.current))}},[]),$=(0,a.useCallback)((e,t)=>{let{onLayout:n}=D.current,{layout:r,panelDataArray:i}=N.current,o=i.map(e=>e.constraints),{panelSize:a,pivotIndices:s}=ex(i,e,r);q(null!=a,`Panel size not found for panel "${e.id}"`);let l=Q({delta:ev(i,e)===i.length-1?a-t:t-a,initialLayout:r,panelConstraints:o,pivotIndices:s,prevLayout:r,trigger:"imperative-api"});es(r,l)||(_(l),N.current.layout=l,n&&n(l),ea(i,l,T.current))},[]),Z=(0,a.useCallback)((e,t)=>{let{layout:n,panelDataArray:r}=N.current,{collapsedSize:i=0,collapsible:o}=t,{collapsedSize:a=0,collapsible:s,maxSize:l=100,minSize:u=0}=e.constraints,{panelSize:c}=ex(r,e,n);null!=c&&(o&&s&&Y(c,i)?Y(i,a)||$(e,a):c<u?$(e,u):c>l&&$(e,l))},[$]),X=(0,a.useCallback)((e,t)=>{let{direction:n}=D.current,{layout:r}=N.current;if(!v.current)return;let i=er(e,v.current);q(i,`Drag handle element not found for id "${e}"`);let o=eo(n,t);C({dragHandleId:e,dragHandleRect:i.getBoundingClientRect(),initialCursorPosition:o,initialLayout:r})},[]),ee=(0,a.useCallback)(()=>{C(null)},[]),el=(0,a.useCallback)(e=>{let{panelDataArray:t}=N.current,n=ev(t,e);n>=0&&(t.splice(n,1),delete T.current[e.id],N.current.panelDataArrayChanged=!0,E())},[E]),eu=(0,a.useMemo)(()=>({collapsePanel:L,direction:r,dragState:x,expandPanel:F,getPanelSize:z,getPanelStyle:V,groupId:y,isPanelCollapsed:B,isPanelExpanded:H,reevaluatePanelConstraints:Z,registerPanel:U,registerResizeHandle:W,resizePanel:$,startDragging:X,stopDragging:ee,unregisterPanel:el,panelGroupElement:v.current}),[L,x,r,F,z,V,y,B,H,Z,U,W,$,X,ee,el]);return(0,a.createElement)(s.Provider,{value:eu},(0,a.createElement)(m,{...g,children:t,className:n,id:o,ref:v,style:{display:"flex",flexDirection:"horizontal"===r?"row":"column",height:"100%",overflow:"hidden",width:"100%",...p},[l.group]:"",[l.groupDirection]:r,[l.groupId]:y}))}let ey=(0,a.forwardRef)((e,t)=>(0,a.createElement)(eg,{...e,forwardedRef:t}));function ev(e,t){return e.findIndex(e=>e===t||e.id===t.id)}function ex(e,t,n){let r=ev(e,t),i=r===e.length-1,o=n[r];return{...t.constraints,panelSize:o,pivotIndices:i?[r-1,r]:[r,r+1]}}function eb({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:i,onBlur:o,onClick:c,onDragging:d,onFocus:h,onPointerDown:p,onPointerUp:m,style:g={},tabIndex:y=0,tagName:v="div",...x}){var b,w;let k=(0,a.useRef)(null),C=(0,a.useRef)({onClick:c,onDragging:d,onPointerDown:p,onPointerUp:m});(0,a.useEffect)(()=>{C.current.onClick=c,C.current.onDragging=d,C.current.onPointerDown=p,C.current.onPointerUp=m});let S=(0,a.useContext)(s);if(null===S)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");let{direction:_,groupId:E,registerResizeHandle:T,startDragging:P,stopDragging:A,panelGroupElement:j}=S,M=f(i),[R,O]=(0,a.useState)("inactive"),[N,z]=(0,a.useState)(!1),[V,B]=(0,a.useState)(null),H=(0,a.useRef)({state:R});u(()=>{H.current.state=R}),(0,a.useEffect)(()=>{if(n)B(null);else{let e=T(M);B(()=>e)}},[n,M,T]);let U=null!=(b=null==r?void 0:r.coarse)?b:15,Z=null!=(w=null==r?void 0:r.fine)?w:5;return(0,a.useEffect)(()=>{if(n||null==V)return;let e=k.current;q(e,"Element ref not attached");let t=!1;return function(e,t,n,r,i){var o;let{ownerDocument:a}=t,s={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:i},l=null!=(o=L.get(a))?o:0;return L.set(a,l+1),F.add(s),$(),function(){var t;I.delete(e),F.delete(s);let n=null!=(t=L.get(a))?t:1;if(L.set(a,n-1),$(),1===n&&L.delete(a),D.includes(s)){let e=D.indexOf(s);e>=0&&D.splice(e,1),W(),i("up",!0,null)}}}(M,e,_,{coarse:U,fine:Z},(e,n,r)=>{if(!n)return void O("inactive");switch(e){case"down":{O("drag"),t=!1,q(r,'Expected event to be defined for "down" action'),P(M,r);let{onDragging:e,onPointerDown:n}=C.current;null==e||e(!0),null==n||n();break}case"move":{let{state:e}=H.current;t=!0,"drag"!==e&&O("hover"),q(r,'Expected event to be defined for "move" action'),V(r);break}case"up":{O("hover"),A();let{onClick:e,onDragging:n,onPointerUp:r}=C.current;null==n||n(!1),null==r||r(),t||null==e||e()}}})},[U,_,n,Z,T,M,V,P,A]),!function({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){(0,a.useEffect)(()=>{if(e||null==n||null==r)return;let i=er(t,r);if(null==i)return;let o=e=>{if(!e.defaultPrevented)switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":e.preventDefault(),n(e);break;case"F6":{e.preventDefault();let n=i.getAttribute(l.groupId);q(n,`No group element found for id "${n}"`);let o=J(n,r),a=ee(n,t,r);q(null!==a,`No resize element found for id "${t}"`);let s=e.shiftKey?a>0?a-1:o.length-1:a+1<o.length?a+1:0;o[s].focus()}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[r,e,t,n])}({disabled:n,handleId:M,resizeHandler:V,panelGroupElement:j}),(0,a.createElement)(v,{...x,children:e,className:t,id:i,onBlur:()=>{z(!1),null==o||o()},onFocus:()=>{z(!0),null==h||h()},ref:k,role:"separator",style:{touchAction:"none",userSelect:"none",...g},tabIndex:y,[l.groupDirection]:_,[l.groupId]:E,[l.resizeHandle]:"",[l.resizeHandleActive]:"drag"===R?"pointer":N?"keyboard":void 0,[l.resizeHandleEnabled]:!n,[l.resizeHandleId]:M,[l.resizeHandleState]:R})}eg.displayName="PanelGroup",ey.displayName="forwardRef(PanelGroup)",eb.displayName="PanelResizeHandle"},1876:(e,t,n)=>{"use strict";n.d(t,{Cg:()=>o,my:()=>r,s0:()=>a,w4:()=>i});let r=6048e5,i=864e5,o=6e4,a=36e5},1877:(e,t,n)=>{"use strict";function r(e,t,n){let r=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}n.d(t,{W:()=>r})},1922:(e,t,n)=>{"use strict";n.d(t,{dc:()=>o,VG:()=>a});var r=n(7915);let i=[],o=!1;function a(e,t,n,a){let s;"function"==typeof t&&"function"!=typeof n?(a=n,n=t):s=t;let l=(0,r.C)(s),u=a?-1:1;(function e(r,s,c){let d=r&&"object"==typeof r?r:{};if("string"==typeof d.type){let e="string"==typeof d.tagName?d.tagName:"string"==typeof d.name?d.name:void 0;Object.defineProperty(h,"name",{value:"node ("+r.type+(e?"<"+e+">":"")+")"})}return h;function h(){var d;let h,f,p,m=i;if((!t||l(r,s,c[c.length-1]||void 0))&&(m=Array.isArray(d=n(r,c))?d:"number"==typeof d?[!0,d]:null==d?i:[d])[0]===o)return m;if("children"in r&&r.children&&r.children&&"skip"!==m[0])for(f=(a?r.children.length:-1)+u,p=c.concat(r);f>-1&&f<r.children.length;){if((h=e(r.children[f],f,p)())[0]===o)return h;f="number"==typeof h[1]?h[1]:f+u}return m}})(e,void 0,[])()}},2082:(e,t,n)=>{"use strict";n.d(t,{xQ:()=>o});var r=n(2115),i=n(845);function o(e=!0){let t=(0,r.useContext)(i.t);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:a,register:s}=t,l=(0,r.useId)();(0,r.useEffect)(()=>{if(e)return s(l)},[e]);let u=(0,r.useCallback)(()=>e&&a&&a(l),[l,a,e]);return!n&&a?[!1,u]:[!0]}},2085:(e,t,n)=>{"use strict";n.d(t,{F:()=>a});var r=n(2596);let i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,o=r.$,a=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return o(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],r=null==s?void 0:s[e];if(null===t)return null;let o=i(t)||i(r);return a[e][o]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return o(e,l,null==t||null==(r=t.compoundVariants)?void 0:r.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...u}[t]):({...s,...u})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},2098:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]])},2293:(e,t,n)=>{"use strict";n.d(t,{Oh:()=>o});var r=n(2115),i=0;function o(){r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:a()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:a()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},2432:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]])},2464:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return r}});let r=n(8229)._(n(2115)).default.createContext({})},2556:(e,t,n)=>{"use strict";n.d(t,{BM:()=>s,CW:()=>r,Ee:()=>d,HP:()=>c,JQ:()=>a,Ny:()=>p,On:()=>h,cx:()=>o,es:()=>f,lV:()=>i,ok:()=>l,ol:()=>u});let r=m(/[A-Za-z]/),i=m(/[\dA-Za-z]/),o=m(/[#-'*+\--9=?A-Z^-~]/);function a(e){return null!==e&&(e<32||127===e)}let s=m(/\d/),l=m(/[\dA-Fa-f]/),u=m(/[!-/:-@[-`{-~]/);function c(e){return null!==e&&e<-2}function d(e){return null!==e&&(e<0||32===e)}function h(e){return -2===e||-1===e||32===e}let f=m(/\p{P}|\p{S}/u),p=m(/\s/);function m(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}},2564:(e,t,n)=>{"use strict";n.d(t,{Qg:()=>a,bL:()=>l});var r=n(2115),i=n(3655),o=n(5155),a=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),s=r.forwardRef((e,t)=>(0,o.jsx)(i.sG.span,{...e,ref:t,style:{...a,...e.style}}));s.displayName="VisuallyHidden";var l=s},2572:(e,t,n)=>{"use strict";n.d(t,{GP:()=>F});let r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function i(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}let o={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(e){return(t,n)=>{let r;if("formatting"===((null==n?void 0:n.context)?String(n.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=(null==n?void 0:n.width)?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=(null==n?void 0:n.width)?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function l(e){return function(t){let n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;let s=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(l,e=>e.test(s)):function(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(l,e=>e.test(s));return n=e.valueCallback?e.valueCallback(u):u,{value:n=r.valueCallback?r.valueCallback(n):n,rest:t.slice(s.length)}}}let u={code:"en-US",formatDistance:(e,t,n)=>{let i,o=r[e];if(i="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null==n?void 0:n.addSuffix)if(n.comparison&&n.comparison>0)return"in "+i;else return i+" ago";return i},formatLong:o,formatRelative:(e,t,n,r)=>a[e],localize:{ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:s({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:s({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:s({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;let i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(i.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:l({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:l({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:l({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},c={};var d=n(1876);function h(e){let t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):new Date("number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?e:NaN)}function f(e){let t=h(e);return t.setHours(0,0,0,0),t}function p(e){let t=h(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-n}function m(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function g(e,t){var n,r,i,o,a,s,l,u;let d=null!=(u=null!=(l=null!=(s=null!=(a=null==t?void 0:t.weekStartsOn)?a:null==t||null==(r=t.locale)||null==(n=r.options)?void 0:n.weekStartsOn)?s:c.weekStartsOn)?l:null==(o=c.locale)||null==(i=o.options)?void 0:i.weekStartsOn)?u:0,f=h(e),p=f.getDay();return f.setDate(f.getDate()-(7*(p<d)+p-d)),f.setHours(0,0,0,0),f}function y(e){return g(e,{weekStartsOn:1})}function v(e){let t=h(e),n=t.getFullYear(),r=m(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);let i=y(r),o=m(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);let a=y(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function x(e,t){var n,r,i,o,a,s,l,u;let d=h(e),f=d.getFullYear(),p=null!=(u=null!=(l=null!=(s=null!=(a=null==t?void 0:t.firstWeekContainsDate)?a:null==t||null==(r=t.locale)||null==(n=r.options)?void 0:n.firstWeekContainsDate)?s:c.firstWeekContainsDate)?l:null==(o=c.locale)||null==(i=o.options)?void 0:i.firstWeekContainsDate)?u:1,y=m(e,0);y.setFullYear(f+1,0,p),y.setHours(0,0,0,0);let v=g(y,t),x=m(e,0);x.setFullYear(f,0,p),x.setHours(0,0,0,0);let b=g(x,t);return d.getTime()>=v.getTime()?f+1:d.getTime()>=b.getTime()?f:f-1}function b(e,t){let n=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+n}let w={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return b("yy"===t?r%100:r,t.length)},M(e,t){let n=e.getMonth();return"M"===t?String(n+1):b(n+1,2)},d:(e,t)=>b(e.getDate(),t.length),a(e,t){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>b(e.getHours()%12||12,t.length),H:(e,t)=>b(e.getHours(),t.length),m:(e,t)=>b(e.getMinutes(),t.length),s:(e,t)=>b(e.getSeconds(),t.length),S(e,t){let n=t.length;return b(Math.trunc(e.getMilliseconds()*Math.pow(10,n-3)),t.length)}},k={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},C={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){let t=e.getFullYear();return n.ordinalNumber(t>0?t:1-t,{unit:"year"})}return w.y(e,t)},Y:function(e,t,n,r){let i=x(e,r),o=i>0?i:1-i;return"YY"===t?b(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):b(o,t.length)},R:function(e,t){return b(v(e),t.length)},u:function(e,t){return b(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return b(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return b(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){let r=e.getMonth();switch(t){case"M":case"MM":return w.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){let r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return b(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){let i=function(e,t){let n=h(e);return Math.round((g(n,t)-function(e,t){var n,r,i,o,a,s,l,u;let d=null!=(u=null!=(l=null!=(s=null!=(a=null==t?void 0:t.firstWeekContainsDate)?a:null==t||null==(r=t.locale)||null==(n=r.options)?void 0:n.firstWeekContainsDate)?s:c.firstWeekContainsDate)?l:null==(o=c.locale)||null==(i=o.options)?void 0:i.firstWeekContainsDate)?u:1,h=x(e,t),f=m(e,0);return f.setFullYear(h,0,d),f.setHours(0,0,0,0),g(f,t)}(n,t))/d.my)+1}(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):b(i,t.length)},I:function(e,t,n){let r=function(e){let t=h(e);return Math.round((y(t)-function(e){let t=v(e),n=m(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),y(n)}(t))/d.my)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):b(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):w.d(e,t)},D:function(e,t,n){let r=function(e){let t=h(e);return function(e,t){let n=f(e),r=f(t);return Math.round((n-p(n)-(r-p(r)))/d.w4)}(t,function(e){let t=h(e),n=m(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):b(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){let i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return b(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){let i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return b(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){let r=e.getDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return b(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){let r,i=e.getHours();switch(r=12===i?k.noon:0===i?k.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){let r,i=e.getHours();switch(r=i>=17?k.evening:i>=12?k.afternoon:i>=4?k.morning:k.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return w.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):w.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):b(r,t.length)},k:function(e,t,n){let r=e.getHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):b(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):w.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):w.s(e,t)},S:function(e,t){return w.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return _(r);case"XXXX":case"XX":return E(r);default:return E(r,":")}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"x":return _(r);case"xxxx":case"xx":return E(r);default:return E(r,":")}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+S(r,":");default:return"GMT"+E(r,":")}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+S(r,":");default:return"GMT"+E(r,":")}},t:function(e,t,n){return b(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return b(e.getTime(),t.length)}};function S(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+t+b(o,2)}function _(e,t){return e%60==0?(e>0?"-":"+")+b(Math.abs(e)/60,2):E(e,t)}function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Math.abs(e);return(e>0?"-":"+")+b(Math.trunc(n/60),2)+t+b(n%60,2)}let T=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},P=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},A={p:P,P:(e,t)=>{let n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return T(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",T(i,t)).replace("{{time}}",P(o,t))}},j=/^D+$/,M=/^Y+$/,R=["D","DD","YY","YYYY"],O=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,N=/^'([^]*?)'?$/,L=/''/g,I=/[a-zA-Z]/;function F(e,t,n){var r,i,o,a,s,l,d,f,p,m,g,y,v,x,b,w,k,S;let _=null!=(m=null!=(p=null==n?void 0:n.locale)?p:c.locale)?m:u,E=null!=(x=null!=(v=null!=(y=null!=(g=null==n?void 0:n.firstWeekContainsDate)?g:null==n||null==(i=n.locale)||null==(r=i.options)?void 0:r.firstWeekContainsDate)?y:c.firstWeekContainsDate)?v:null==(a=c.locale)||null==(o=a.options)?void 0:o.firstWeekContainsDate)?x:1,T=null!=(S=null!=(k=null!=(w=null!=(b=null==n?void 0:n.weekStartsOn)?b:null==n||null==(l=n.locale)||null==(s=l.options)?void 0:s.weekStartsOn)?w:c.weekStartsOn)?k:null==(f=c.locale)||null==(d=f.options)?void 0:d.weekStartsOn)?S:0,P=h(e);if(!((P instanceof Date||"object"==typeof P&&"[object Date]"===Object.prototype.toString.call(P)||"number"==typeof P)&&!isNaN(Number(h(P)))))throw RangeError("Invalid time value");let F=t.match(D).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,A[t])(e,_.formatLong):e}).join("").match(O).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t)return{isToken:!1,value:function(e){let t=e.match(N);return t?t[1].replace(L,"'"):e}(e)};if(C[t])return{isToken:!0,value:e};if(t.match(I))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});_.localize.preprocessor&&(F=_.localize.preprocessor(P,F));let z={firstWeekContainsDate:E,weekStartsOn:T,locale:_};return F.map(r=>{if(!r.isToken)return r.value;let i=r.value;return(!(null==n?void 0:n.useAdditionalWeekYearTokens)&&M.test(i)||!(null==n?void 0:n.useAdditionalDayOfYearTokens)&&j.test(i))&&function(e,t,n){let r=function(e,t,n){let r="Y"===e[0]?"years":"days of the month";return"Use `".concat(e.toLowerCase(),"` instead of `").concat(e,"` (in `").concat(t,"`) for formatting ").concat(r," to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}(e,t,n);if(console.warn(r),R.includes(e))throw RangeError(r)}(i,t,String(e)),(0,C[i[0]])(P,i,_.localize,z)}).join("")}},2605:(e,t,n)=>{"use strict";let r;n.d(t,{P:()=>of});var i=n(2115);let o=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],a=new Set(o),s=e=>180*e/Math.PI,l=e=>c(s(Math.atan2(e[1],e[0]))),u={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:l,rotateZ:l,skewX:e=>s(Math.atan(e[1])),skewY:e=>s(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},c=e=>((e%=360)<0&&(e+=360),e),d=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),h=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),f={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:d,scaleY:h,scale:e=>(d(e)+h(e))/2,rotateX:e=>c(s(Math.atan2(e[6],e[5]))),rotateY:e=>c(s(Math.atan2(-e[2],e[0]))),rotateZ:l,rotate:l,skewX:e=>s(Math.atan(e[4])),skewY:e=>s(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function p(e){return+!!e.includes("scale")}function m(e,t){let n,r;if(!e||"none"===e)return p(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)n=f,r=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=u,r=t}if(!r)return p(t);let o=n[t],a=r[1].split(",").map(g);return"function"==typeof o?o(a):a[o]}function g(e){return parseFloat(e.trim())}let y=e=>t=>"string"==typeof t&&t.startsWith(e),v=y("--"),x=y("var(--"),b=e=>!!x(e)&&w.test(e.split("/*")[0].trim()),w=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function k({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}let C=(e,t,n)=>e+(t-e)*n;function S(e){return void 0===e||1===e}function _({scale:e,scaleX:t,scaleY:n}){return!S(e)||!S(t)||!S(n)}function E(e){return _(e)||T(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function T(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function P(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function A(e,t=0,n=1,r,i){e.min=P(e.min,t,n,r,i),e.max=P(e.max,t,n,r,i)}function j(e,{x:t,y:n}){A(e.x,t.translate,t.scale,t.originPoint),A(e.y,n.translate,n.scale,n.originPoint)}function M(e,t){e.min=e.min+t,e.max=e.max+t}function R(e,t,n,r,i=.5){let o=C(e.min,e.max,i);A(e,t,n,o,r)}function O(e,t){R(e.x,t.x,t.scaleX,t.scale,t.originX),R(e.y,t.y,t.scaleY,t.scale,t.originY)}function D(e,t){return k(function(e,t){if(!t)return e;let 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}}(e.getBoundingClientRect(),t))}let N=new Set(["width","height","top","left","right","bottom",...o]),L=(e,t,n)=>n>t?t:n<e?e:n,I={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},F={...I,transform:e=>L(0,1,e)},z={...I,default:1},V=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),B=V("deg"),H=V("%"),U=V("px"),W=V("vh"),$=V("vw"),Z={...H,parse:e=>H.parse(e)/100,transform:e=>H.transform(100*e)},q=e=>t=>t.test(e),K=[I,U,H,B,$,W,{test:e=>"auto"===e,parse:e=>e}],Y=e=>K.find(q(e)),G=()=>{},X=()=>{},Q=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),J=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ee=e=>e===I||e===U,et=new Set(["x","y","z"]),en=o.filter(e=>!et.has(e)),er={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:(e,{transform:t})=>m(t,"x"),y:(e,{transform:t})=>m(t,"y")};er.translateX=er.x,er.translateY=er.y;let ei=e=>e,eo={},ea=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],es={value:null,addProjectionMetrics:null};function el(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=ea.reduce((e,n)=>(e[n]=function(e,t){let n=new Set,r=new Set,i=!1,o=!1,a=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},l=0;function u(t){a.has(t)&&(c.schedule(t),e()),l++,t(s)}let c={schedule:(e,t=!1,o=!1)=>{let s=o&&i?n:r;return t&&a.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),a.delete(e)},process:e=>{if(s=e,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),t&&es.value&&es.value.frameloop[t].push(l),l=0,n.clear(),i=!1,o&&(o=!1,c.process(e))}};return c}(o,t?n:void 0),e),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:h,render:f,postRender:p}=a,m=()=>{let o=eo.useManualTiming?i.timestamp:performance.now();n=!1,eo.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,40),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),l.process(i),u.process(i),c.process(i),d.process(i),h.process(i),f.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))};return{schedule:ea.reduce((t,o)=>{let s=a[o];return t[o]=(t,o=!1,a=!1)=>(!n&&(n=!0,r=!0,i.isProcessing||e(m)),s.schedule(t,o,a)),t},{}),cancel:e=>{for(let t=0;t<ea.length;t++)a[ea[t]].cancel(e)},state:i,steps:a}}let{schedule:eu,cancel:ec,state:ed,steps:eh}=el("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:ei,!0),ef=new Set,ep=!1,em=!1,eg=!1;function ey(){if(em){let e=Array.from(ef).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=function(e){let t=[];return en.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}em=!1,ep=!1,ef.forEach(e=>e.complete(eg)),ef.clear()}function ev(){ef.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(em=!0)})}class ex{constructor(e,t,n,r,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(ef.add(this),ep||(ep=!0,eu.read(ev),eu.resolveKeyframes(ey))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let i=r?.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ef.delete(this)}cancel(){"scheduled"===this.state&&(ef.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let eb=e=>/^0[^.\s]+$/u.test(e),ew=e=>Math.round(1e5*e)/1e5,ek=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,eC=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,eS=(e,t)=>n=>!!("string"==typeof n&&eC.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),e_=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[i,o,a,s]=r.match(ek);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},eE={...I,transform:e=>Math.round(L(0,255,e))},eT={test:eS("rgb","red"),parse:e_("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+eE.transform(e)+", "+eE.transform(t)+", "+eE.transform(n)+", "+ew(F.transform(r))+")"},eP={test:eS("#"),parse:function(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}},transform:eT.transform},eA={test:eS("hsl","hue"),parse:e_("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+H.transform(ew(t))+", "+H.transform(ew(n))+", "+ew(F.transform(r))+")"},ej={test:e=>eT.test(e)||eP.test(e)||eA.test(e),parse:e=>eT.test(e)?eT.parse(e):eA.test(e)?eA.parse(e):eP.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?eT.transform(e):eA.transform(e),getAnimatableNone:e=>{let t=ej.parse(e);return t.alpha=0,ej.transform(t)}},eM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,eR="number",eO="color",eD=/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 eN(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],o=0,a=t.replace(eD,e=>(ej.test(e)?(r.color.push(o),i.push(eO),n.push(ej.parse(e))):e.startsWith("var(")?(r.var.push(o),i.push("var"),n.push(e)):(r.number.push(o),i.push(eR),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:a,indexes:r,types:i}}function eL(e){return eN(e).values}function eI(e){let{split:t,types:n}=eN(e),r=t.length;return e=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],void 0!==e[o]){let t=n[o];t===eR?i+=ew(e[o]):t===eO?i+=ej.transform(e[o]):i+=e[o]}return i}}let eF=e=>"number"==typeof e?0:ej.test(e)?ej.getAnimatableNone(e):e,ez={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(ek)?.length||0)+(e.match(eM)?.length||0)>0},parse:eL,createTransformer:eI,getAnimatableNone:function(e){let t=eL(e);return eI(e)(t.map(eF))}},eV=new Set(["brightness","contrast","saturate","opacity"]);function eB(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(ek)||[];if(!r)return e;let i=n.replace(r,""),o=+!!eV.has(t);return r!==n&&(o*=100),t+"("+o+i+")"}let eH=/\b([a-z-]*)\(.*?\)/gu,eU={...ez,getAnimatableNone:e=>{let t=e.match(eH);return t?t.map(eB).join(" "):e}},eW={...I,transform:Math.round},e$={borderWidth:U,borderTopWidth:U,borderRightWidth:U,borderBottomWidth:U,borderLeftWidth:U,borderRadius:U,radius:U,borderTopLeftRadius:U,borderTopRightRadius:U,borderBottomRightRadius:U,borderBottomLeftRadius:U,width:U,maxWidth:U,height:U,maxHeight:U,top:U,right:U,bottom:U,left:U,padding:U,paddingTop:U,paddingRight:U,paddingBottom:U,paddingLeft:U,margin:U,marginTop:U,marginRight:U,marginBottom:U,marginLeft:U,backgroundPositionX:U,backgroundPositionY:U,rotate:B,rotateX:B,rotateY:B,rotateZ:B,scale:z,scaleX:z,scaleY:z,scaleZ:z,skew:B,skewX:B,skewY:B,distance:U,translateX:U,translateY:U,translateZ:U,x:U,y:U,z:U,perspective:U,transformPerspective:U,opacity:F,originX:Z,originY:Z,originZ:U,zIndex:eW,fillOpacity:F,strokeOpacity:F,numOctaves:eW},eZ={...e$,color:ej,backgroundColor:ej,outlineColor:ej,fill:ej,stroke:ej,borderColor:ej,borderTopColor:ej,borderRightColor:ej,borderBottomColor:ej,borderLeftColor:ej,filter:eU,WebkitFilter:eU},eq=e=>eZ[e];function eK(e,t){let n=eq(e);return n!==eU&&(n=ez),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let eY=new Set(["auto","none","0"]);class eG extends ex{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&b(r=r.trim())){let i=function e(t,n,r=1){X(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[i,o]=function(e){let t=J.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}(t);if(!i)return;let a=window.getComputedStyle(n).getPropertyValue(i);if(a){let e=a.trim();return Q(e)?parseFloat(e):e}return b(o)?e(o,n,r+1):o}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!N.has(n)||2!==e.length)return;let[r,i]=e,o=Y(r),a=Y(i);if(o!==a)if(ee(o)&&ee(a))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else er[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++){var r;(null===e[t]||("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||eb(r)))&&n.push(t)}n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!eY.has(t)&&eN(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=eK(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=er[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,o=n[i];n[i]=er[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let eX=e=>!!(e&&e.getVelocity);function eQ(){r=void 0}let eJ={now:()=>(void 0===r&&eJ.set(ed.isProcessing||eo.useManualTiming?ed.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(eQ)}};function e0(e,t){-1===e.indexOf(t)&&e.push(t)}function e1(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class e2{constructor(){this.subscriptions=[]}add(e){return e0(this.subscriptions,e),()=>e1(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let e5={current:void 0};class e4{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let n=eJ.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty();t&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=eJ.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new e2);let n=this.events[e].add(t);return"change"===e?()=>{n(),eu.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return e5.current&&e5.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=eJ.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function e3(e,t){return new e4(e,t)}let e9=[...K,ej,ez],{schedule:e6}=el(queueMicrotask,!1),e7={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"]},e8={};for(let e in e7)e8[e]={isEnabled:t=>e7[e].some(e=>!!t[e])};let te=()=>({translate:0,scale:1,origin:0,originPoint:0}),tt=()=>({x:te(),y:te()}),tn=()=>({min:0,max:0}),tr=()=>({x:tn(),y:tn()});var ti=n(8972);let to={current:null},ta={current:!1},ts=new WeakMap;function tl(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tu(e){return"string"==typeof e||Array.isArray(e)}let tc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],td=["initial",...tc];function th(e){return tl(e.animate)||td.some(t=>tu(e[t]))}function tf(e){return!!(th(e)||e.variants)}function tp(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function tm(e,t,n,r){if("function"==typeof t){let[i,o]=tp(r);t=t(void 0!==n?n:e.custom,i,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,o]=tp(r);t=t(void 0!==n?n:e.custom,i,o)}return t}let tg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ty{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ex,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=()=>{let e=eJ.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,eu.render(this.render,!1,!0))};let{latestValues:s,renderState:l}=o;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=th(t),this.isVariantNode=tf(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in c){let t=c[e];void 0!==s[e]&&eX(t)&&t.set(s[e],!1)}}mount(e){this.current=e,ts.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),ta.current||function(){if(ta.current=!0,ti.B)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>to.current=e.matches;e.addEventListener("change",t),t()}else to.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||to.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),ec(this.notifyUpdate),ec(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let n;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let r=a.has(e);r&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eu.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),o(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in e8){let t=e8[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):tr()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tg.length;t++){let n=tg[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],o=n[r];if(eX(i))e.addValue(r,i);else if(eX(o))e.addValue(r,e3(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,e3(void 0!==t?t:i,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=e3(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=n){if("string"==typeof n&&(Q(n)||eb(n)))n=parseFloat(n);else{let r;r=n,!e9.find(q(r))&&ez.test(t)&&(n=eK(e,t))}this.setBaseTarget(e,eX(n)?n.get():n)}return eX(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=tm(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||eX(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new e2),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){e6.render(this.render)}}class tv extends ty{constructor(){super(...arguments),this.KeyframeResolver=eG}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;eX(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}let tx=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tb={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tw=o.length;function tk(e,t,n){let{style:r,vars:i,transformOrigin:s}=e,l=!1,u=!1;for(let e in t){let n=t[e];if(a.has(e)){l=!0;continue}if(v(e)){i[e]=n;continue}{let t=tx(n,e$[e]);e.startsWith("origin")?(u=!0,s[e]=t):r[e]=t}}if(!t.transform&&(l||n?r.transform=function(e,t,n){let r="",i=!0;for(let a=0;a<tw;a++){let s=o[a],l=e[s];if(void 0===l)continue;let u=!0;if(!(u="number"==typeof l?l===+!!s.startsWith("scale"):0===parseFloat(l))||n){let e=tx(l,e$[s]);if(!u){i=!1;let t=tb[s]||s;r+=`${t}(${e}) `}n&&(t[s]=e)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),u){let{originX:e="50%",originY:t="50%",originZ:n=0}=s;r.transformOrigin=`${e} ${t} ${n}`}}function tC(e,{style:t,vars:n},r,i){let o,a=e.style;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}let tS={};function t_(e,{layout:t,layoutId:n}){return a.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!tS[e]||"opacity"===e)}function tE(e,t,n){let{style:r}=e,i={};for(let o in r)(eX(r[o])||t.style&&eX(t.style[o])||t_(o,e)||n?.getValue(o)?.liveStyle!==void 0)&&(i[o]=r[o]);return i}class tT extends tv{constructor(){super(...arguments),this.type="html",this.renderInstance=tC}readValueFromInstance(e,t){if(a.has(t))return this.projection?.isProjecting?p(t):((e,t)=>{let{transform:n="none"}=getComputedStyle(e);return m(n,t)})(e,t);{let n=window.getComputedStyle(e),r=(v(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return D(e,t)}build(e,t,n){tk(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return tE(e,t,n)}}let tP=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tA={offset:"stroke-dashoffset",array:"stroke-dasharray"},tj={offset:"strokeDashoffset",array:"strokeDasharray"};function tM(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:a=0,...s},l,u,c){if(tk(e,s,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=c?.transformBox??"fill-box",delete d.transformBox),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==i&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?tA:tj;e[o.offset]=U.transform(-r);let a=U.transform(t),s=U.transform(n);e[o.array]=`${a} ${s}`}(d,i,o,a,!1)}let tR=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"]),tO=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tD(e,t,n){let r=tE(e,t,n);for(let n in e)(eX(e[n])||eX(t[n]))&&(r[-1!==o.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}class tN extends tv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tr}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(a.has(t)){let e=eq(t);return e&&e.default||0}return t=tR.has(t)?t:tP(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return tD(e,t,n)}build(e,t,n){tM(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){for(let n in tC(e,t,void 0,r),t.attrs)e.setAttribute(tR.has(n)?n:tP(n),t.attrs[n])}mount(e){this.isSVGTag=tO(e.tagName),super.mount(e)}}let tL=["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 tI(e){if("string"!=typeof e||e.includes("-"));else if(tL.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var tF=n(5155),tz=n(869);let tV=(0,i.createContext)({strict:!1});var tB=n(1508);let tH=(0,i.createContext)({});function tU(e){return Array.isArray(e)?e.join(" "):e}let tW=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function t$(e,t,n){for(let r in t)eX(t[r])||t_(r,n)||(e[r]=t[r])}let tZ=()=>({...tW(),attrs:{}}),tq=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 tK(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||tq.has(e)}let tY=e=>!tK(e);try{!function(e){"function"==typeof e&&(tY=t=>t.startsWith("on")?!tK(t):e(t))}(require("@emotion/is-prop-valid").default)}catch{}var tG=n(845),tX=n(2885);function tQ(e){return eX(e)?e.get():e}let tJ=e=>(t,n)=>{let r=(0,i.useContext)(tH),o=(0,i.useContext)(tG.t),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:function(e,t,n,r){let i={},o=r(e,{});for(let e in o)i[e]=tQ(o[e]);let{initial:a,animate:s}=e,l=th(e),u=tf(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===a)?s:a;if(d&&"boolean"!=typeof d&&!tl(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=tm(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(n,r,i,e),renderState:t()}})(e,t,r,o);return n?a():(0,tX.M)(a)},t0=tJ({scrapeMotionValuesFromProps:tE,createRenderState:tW}),t1=tJ({scrapeMotionValuesFromProps:tD,createRenderState:tZ}),t2=Symbol.for("motionComponentSymbol");function t5(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let t4="data-"+tP("framerAppearId"),t3=(0,i.createContext)({});var t9=n(7494);function t6(e){var t,n;let{forwardMotionProps:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;o&&function(e){for(let t in e)e8[t]={...e8[t],...e[t]}}(o);let s=tI(e)?t1:t0;function l(t,n){var o;let l,u={...(0,i.useContext)(tB.Q),...t,layoutId:function(e){let{layoutId:t}=e,n=(0,i.useContext)(tz.L).id;return n&&void 0!==t?n+"-"+t:t}(t)},{isStatic:c}=u,d=function(e){let{initial:t,animate:n}=function(e,t){if(th(e)){let{initial:t,animate:n}=e;return{initial:!1===t||tu(t)?t:void 0,animate:tu(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,i.useContext)(tH));return(0,i.useMemo)(()=>({initial:t,animate:n}),[tU(t),tU(n)])}(t),h=s(t,c);if(!c&&ti.B){(0,i.useContext)(tV).strict;let t=function(e){let{drag:t,layout:n}=e8;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(u);l=t.MeasureLayout,d.visualElement=function(e,t,n,r,o){let{visualElement:a}=(0,i.useContext)(tH),s=(0,i.useContext)(tV),l=(0,i.useContext)(tG.t),u=(0,i.useContext)(tB.Q).reducedMotion,c=(0,i.useRef)(null);r=r||s.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:a,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u}));let d=c.current,h=(0,i.useContext)(t3);d&&!d.projection&&o&&("html"===d.type||"svg"===d.type)&&function(e,t,n,r){let{layoutId:i,layout:o,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||s&&t5(s),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}(c.current,n,o,h);let f=(0,i.useRef)(!1);(0,i.useInsertionEffect)(()=>{d&&f.current&&d.update(n,l)});let p=n[t4],m=(0,i.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return(0,t9.E)(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),m.current&&d.animationState&&d.animationState.animateChanges())}),(0,i.useEffect)(()=>{d&&(!m.current&&d.animationState&&d.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),m.current=!1))}),d}(e,h,u,a,t.ProjectionNode)}return(0,tF.jsxs)(tH.Provider,{value:d,children:[l&&d.visualElement?(0,tF.jsx)(l,{visualElement:d.visualElement,...u}):null,function(e,t,n,{latestValues:r},o,a=!1){let s=(tI(e)?function(e,t,n,r){let o=(0,i.useMemo)(()=>{let n=tZ();return tM(n,t,tO(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};t$(t,e.style,e),o.style={...t,...o.style}}return o}:function(e,t){let n={},r=function(e,t){let n=e.style||{},r={};return t$(r,n,e),Object.assign(r,function({transformTemplate:e},t){return(0,i.useMemo)(()=>{let n=tW();return tk(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n})(t,r,o,e),l=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(tY(i)||!0===n&&tK(i)||!t&&!tK(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(t,"string"==typeof e,a),u=e!==i.Fragment?{...l,...s,ref:n}:{},{children:c}=t,d=(0,i.useMemo)(()=>eX(c)?c.get():c,[c]);return(0,i.createElement)(e,{...u,children:d})}(e,t,(o=d.visualElement,(0,i.useCallback)(e=>{e&&h.onMount&&h.onMount(e),o&&(e?o.mount(e):o.unmount()),n&&("function"==typeof n?n(e):t5(n)&&(n.current=e))},[o])),h,c,r)]})}l.displayName="motion.".concat("string"==typeof e?e:"create(".concat(null!=(n=null!=(t=e.displayName)?t:e.name)?n:"",")"));let u=(0,i.forwardRef)(l);return u[t2]=e,u}function t7(e,t,n){let r=e.getProps();return tm(r,t,void 0!==n?n:r.custom,e)}function t8(e,t){return e?.[t]??e?.default??e}let ne=e=>Array.isArray(e);function nt(e,t){let n=e.getValue("willChange");if(eX(n)&&n.add)return n.add(t);if(!n&&eo.WillChange){let n=new eo.WillChange("auto");e.addValue("willChange",n),n.add(t)}}let nn=(e,t)=>n=>t(e(n)),nr=(...e)=>e.reduce(nn),ni=e=>1e3*e,no={layout:0,mainThread:0,waapi:0};function na(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ns(e,t){return n=>n>0?t:e}let nl=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},nu=[eP,eT,eA];function nc(e){let t=nu.find(t=>t.test(e));if(G(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===eA&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=na(s,r,e+1/3),o=na(s,r,e),a=na(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(n)),n}let nd=(e,t)=>{let n=nc(e),r=nc(t);if(!n||!r)return ns(e,t);let i={...n};return e=>(i.red=nl(n.red,r.red,e),i.green=nl(n.green,r.green,e),i.blue=nl(n.blue,r.blue,e),i.alpha=C(n.alpha,r.alpha,e),eT.transform(i))},nh=new Set(["none","hidden"]);function nf(e,t){return n=>C(e,t,n)}function np(e){return"number"==typeof e?nf:"string"==typeof e?b(e)?ns:ej.test(e)?nd:ny:Array.isArray(e)?nm:"object"==typeof e?ej.test(e)?nd:ng:ns}function nm(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>np(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function ng(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=np(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let ny=(e,t)=>{let n=ez.createTransformer(t),r=eN(e),i=eN(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?nh.has(e)&&!i.values.length||nh.has(t)&&!r.values.length?function(e,t){return nh.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):nr(nm(function(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let o=t.types[i],a=e.indexes[o][r[o]],s=e.values[a]??0;n[i]=s,r[o]++}return n}(r,i),i.values),n):(G(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),ns(e,t))};function nv(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?C(e,t,n):np(e)(e,t)}let nx=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>eu.update(t,e),stop:()=>ec(t),now:()=>ed.isProcessing?ed.timestamp:eJ.now()}},nb=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`};function nw(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function nk(e,t,n){var r,i;let o=Math.max(t-5,0);return r=n-e(o),(i=t-o)?1e3/i*r:0}let nC={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};function nS(e,t){return e*Math.sqrt(1-t*t)}let n_=["duration","bounce"],nE=["stiffness","damping","mass"];function nT(e,t){return t.some(t=>void 0!==e[t])}function nP(e=nC.visualDuration,t=nC.bounce){let n,r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:o}=r,a=r.keyframes[0],s=r.keyframes[r.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:c,mass:d,duration:h,velocity:f,isResolvedFromDuration:p}=function(e){let t={velocity:nC.velocity,stiffness:nC.stiffness,damping:nC.damping,mass:nC.mass,isResolvedFromDuration:!1,...e};if(!nT(e,nE)&&nT(e,n_))if(e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*L(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:nC.mass,stiffness:r,damping:i}}else{let n=function({duration:e=nC.duration,bounce:t=nC.bounce,velocity:n=nC.velocity,mass:r=nC.mass}){let i,o;G(e<=ni(nC.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=L(nC.minDamping,nC.maxDamping,a),e=L(nC.minDuration,nC.maxDuration,e/1e3),a<1?(i=t=>{let r=t*a,i=r*e;return .001-(r-n)/nS(t,a)*Math.exp(-i)},o=t=>{let r=t*a*e,o=Math.pow(a,2)*Math.pow(t,2)*e,s=Math.exp(-r),l=nS(Math.pow(t,2),a);return(r*n+n-o)*s*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=ni(e),isNaN(s))return{stiffness:nC.stiffness,damping:nC.damping,duration:e};{let t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t={...t,...n,mass:nC.mass}).isResolvedFromDuration=!0}return t}({...r,velocity:-((r.velocity||0)/1e3)}),m=f||0,g=c/(2*Math.sqrt(u*d)),y=s-a,v=Math.sqrt(u/d)/1e3,x=5>Math.abs(y);if(i||(i=x?nC.restSpeed.granular:nC.restSpeed.default),o||(o=x?nC.restDelta.granular:nC.restDelta.default),g<1){let e=nS(v,g);n=t=>s-Math.exp(-g*v*t)*((m+g*v*y)/e*Math.sin(e*t)+y*Math.cos(e*t))}else if(1===g)n=e=>s-Math.exp(-v*e)*(y+(m+v*y)*e);else{let e=v*Math.sqrt(g*g-1);n=t=>{let n=Math.exp(-g*v*t),r=Math.min(e*t,300);return s-n*((m+g*v*y)*Math.sinh(r)+e*y*Math.cosh(r))/e}}let b={calculatedDuration:p&&h||null,next:e=>{let t=n(e);if(p)l.done=e>=h;else{let r=0===e?m:0;g<1&&(r=0===e?ni(m):nk(n,e,t));let a=Math.abs(s-t)<=o;l.done=Math.abs(r)<=i&&a}return l.value=l.done?s:t,l},toString:()=>{let e=Math.min(nw(b),2e4),t=nb(t=>b.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return b}function nA({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d,h,f=e[0],p={done:!1,value:f},m=n*t,g=f+m,y=void 0===a?g:a(g);y!==g&&(m=y-f);let v=e=>-m*Math.exp(-e/r),x=e=>y+v(e),b=e=>{let t=v(e),n=x(e);p.done=Math.abs(t)<=u,p.value=p.done?y:n},w=e=>{let t;if(t=p.value,void 0!==s&&t<s||void 0!==l&&t>l){var n;d=e,h=nP({keyframes:[p.value,(n=p.value,void 0===s?l:void 0===l||Math.abs(s-n)<Math.abs(l-n)?s:l)],velocity:nk(x,e,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:c})}};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,b(e),w(e)),void 0!==d&&e>=d)?h.next(e-d):(t||b(e),p)}}}nP.applyToOptions=e=>{let t=function(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(nw(r),2e4);return{type:"keyframes",ease:e=>r.next(i*e).value/t,duration:i/1e3}}(e,100,nP);return e.ease=t.ease,e.duration=ni(t.duration),e.type="keyframes",e};let nj=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function nM(e,t,n,r){return e===t&&n===r?ei:i=>0===i||1===i?i:nj(function(e,t,n,r,i){let o,a,s=0;do(o=nj(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<12);return a}(i,0,1,e,n),t,r)}let nR=nM(.42,0,1,1),nO=nM(0,0,.58,1),nD=nM(.42,0,.58,1),nN=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,nL=e=>t=>1-e(1-t),nI=nM(.33,1.53,.69,.99),nF=nL(nI),nz=nN(nF),nV=e=>(e*=2)<1?.5*nF(e):.5*(2-Math.pow(2,-10*(e-1))),nB=e=>1-Math.sin(Math.acos(e)),nH=nL(nB),nU=nN(nB),nW=e=>Array.isArray(e)&&"number"==typeof e[0],n$={linear:ei,easeIn:nR,easeInOut:nD,easeOut:nO,circIn:nB,circInOut:nU,circOut:nH,backIn:nF,backInOut:nz,backOut:nI,anticipate:nV},nZ=e=>{if(nW(e)){X(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,r,i]=e;return nM(t,n,r,i)}return"string"==typeof e?(X(void 0!==n$[e],`Invalid easing type '${e}'`,"invalid-easing-type"),n$[e]):e},nq=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r};function nK({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var i;let o=Array.isArray(r)&&"number"!=typeof r[0]?r.map(nZ):nZ(r),a={done:!1,value:t[0]},s=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;if(X(o===t.length,"Both input and output ranges must be the same length","range-length"),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,n){let r=[],i=n||eo.mix||nv,o=e.length-1;for(let n=0;n<o;n++){let o=i(e[n],e[n+1]);t&&(o=nr(Array.isArray(t)?t[n]||ei:t,o)),r.push(o)}return r}(t,r,i),l=s.length,u=n=>{if(a&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=nq(e[r],e[r+1],n);return s[r](i)};return n?t=>u(L(e[0],e[o-1],t)):u}((i=n&&n.length===t.length?n:function(e){let t=[0];return!function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=nq(0,t,r);e.push(C(n,1,i))}}(t,e.length-1),t}(t),i.map(t=>t*e)),t,{ease:Array.isArray(o)?o:t.map(()=>o||nD).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=s(t),a.done=t>=e,a)}}let nY=e=>null!==e;function nG(e,{repeat:t,repeatType:n="loop"},r,i=1){let o=e.filter(nY),a=i<0||t&&"loop"!==n&&t%2==1?0:o.length-1;return a&&void 0!==r?r:o[a]}let nX={decay:nA,inertia:nA,tween:nK,keyframes:nK,spring:nP};function nQ(e){"string"==typeof e.type&&(e.type=nX[e.type])}class nJ{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let n0=e=>e/100;class n1 extends nJ{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==eJ.now()&&this.tick(eJ.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},no.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;nQ(e);let{type:t=nK,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=e,{keyframes:a}=e,s=t||nK;s!==nK&&"number"!=typeof a[0]&&(this.mixKeyframes=nr(n0,nv(a[0],a[1])),a=[0,100]);let l=s({...e,keyframes:a});"mirror"===i&&(this.mirroredGenerator=s({...e,keyframes:[...a].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=nw(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:s}=this;if(null===this.startTime)return n.next(0);let{delay:l=0,keyframes:u,repeat:c,repeatType:d,repeatDelay:h,type:f,onUpdate:p,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let v=this.currentTime,x=n;if(c){let e=Math.min(this.currentTime,r)/a,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,c+1))%2&&("reverse"===d?(n=1-n,h&&(n-=h/a)):"mirror"===d&&(x=o)),v=L(0,1,n)*a}let b=y?{done:!1,value:u[0]}:x.next(v);i&&(b.value=i(b.value));let{done:w}=b;y||null===s||(w=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return k&&f!==nA&&(b.value=nG(u,this.options,m,this.speed)),p&&p(b.value),k&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get time(){return this.currentTime/1e3}set time(e){e=ni(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(eJ.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=nx,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(eJ.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,no.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function n2(e){let t;return()=>(void 0===t&&(t=e()),t)}let n5=n2(()=>void 0!==window.ScrollTimeline),n4={},n3=function(e,t){let n=n2(e);return()=>n4[t]??n()}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),n9=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,n6={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:n9([0,.65,.55,1]),circOut:n9([.55,0,1,.45]),backIn:n9([.31,.01,.66,-.59]),backOut:n9([.33,1.53,.69,.99])};function n7(e){return"function"==typeof e&&"applyToOptions"in e}class n8 extends nJ{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=e,X("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:e,...t}){return n7(e)&&n3()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s="easeOut",times:l}={},u){let c={[t]:n};l&&(c.offset=l);let d=function e(t,n){if(t)return"function"==typeof t?n3()?nb(t,n):"ease-out":nW(t)?n9(t):Array.isArray(t)?t.map(t=>e(t,n)||n6.easeOut):n6[t]}(s,i);Array.isArray(d)&&(c.easing=d),es.value&&no.waapi++;let h={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"};u&&(h.pseudoElement=u);let f=e.animate(c,h);return es.value&&f.finished.finally(()=>{no.waapi--}),f}(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=nG(r,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(e):function(e,t,n){t.startsWith("--")?e.style.setProperty(t,n):e.style[t]=n}(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){this.finishedTime=null,this.animation.currentTime=ni(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&n5())?(this.animation.timeline=e,ei):t(this)}}let re={anticipate:nV,backInOut:nz,circInOut:nU};class rt extends n8{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in re&&(e.ease=re[e.ease])}(e),nQ(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...o}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new n1({...o,autoplay:!1}),s=ni(this.finishedTime??this.time);t.setWithVelocity(a.sample(s-10).value,a.sample(s).value,10),a.stop()}}let rn=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(ez.test(e)||"0"===e)&&!e.startsWith("url(")),rr=new Set(["opacity","clipPath","filter","transform"]),ri=n2(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class ro extends nJ{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:s,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=eJ.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,name:s,motionValue:l,element:u,...c},h=u?.KeyframeResolver||ex;this.keyframeResolver=new h(a,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:o,velocity:a,delay:s,isHandoff:l,onUpdate:u}=n;this.resolvedAt=eJ.now(),!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],a=rn(i,t),s=rn(o,t);return G(a===s,`You are trying to animate ${t} from "${i}" to "${o}". "${a?o:i}" is not an animatable value.`,"value-not-animatable"),!!a&&!!s&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||n7(n))&&r)}(e,i,o,a)&&((eo.instantAnimations||!s)&&u?.(nG(e,n,t)),e[0]=e[e.length-1],n.duration=0,n.repeat=0);let c={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!l&&function(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:s,transformTemplate:l}=t.owner.getProps();return ri()&&n&&rr.has(n)&&("transform"!==n||!l)&&!s&&!r&&"mirror"!==i&&0!==o&&"inertia"!==a}(c)?new rt({...c,element:c.motionValue.owner.current}):new n1(c);d.finished.then(()=>this.notifyFinished()).catch(ei),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eg=!0,ev(),ey(),eg=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let ra=e=>null!==e,rs={type:"spring",stiffness:500,damping:25,restSpeed:10},rl={type:"keyframes",duration:.8},ru={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rc=(e,t,n,r={},i,o)=>s=>{let l=t8(r,e)||{},u=l.delay||r.delay||0,{elapsed:c=0}=r;c-=ni(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-c,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:i};!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(l)&&Object.assign(d,((e,{keyframes:t})=>t.length>2?rl:a.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:rs:ru)(e,d)),d.duration&&(d.duration=ni(d.duration)),d.repeatDelay&&(d.repeatDelay=ni(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let h=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(d.duration=0,0===d.delay&&(h=!0)),(eo.instantAnimations||eo.skipAnimations)&&(h=!0,d.duration=0,d.delay=0),d.allowFlatten=!l.type&&!l.ease,h&&!o&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:n="loop"},r){let i=e.filter(ra),o=t&&"loop"!==n&&t%2==1?0:i.length-1;return i[o]}(d.keyframes,l);if(void 0!==e)return void eu.update(()=>{d.onUpdate(e),d.onComplete()})}return l.isSync?new n1(d):new ro(d)};function rd(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...s}=t;r&&(o=r);let l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(void 0===i||u&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(u,t))continue;let a={delay:n,...t8(o||{},t)},c=r.get();if(void 0!==c&&!r.isAnimating&&!Array.isArray(i)&&i===c&&!a.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let n=e.props[t4];if(n){let e=window.MotionHandoffAnimation(n,t,eu);null!==e&&(a.startTime=e,d=!0)}}nt(e,t),r.start(rc(t,r,i,e.shouldReduceMotion&&N.has(t)?{type:!1}:a,e,d));let h=r.animation;h&&l.push(h)}return a&&Promise.all(l).then(()=>{eu.update(()=>{a&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=t7(e,t)||{};for(let t in i={...i,...n}){var o;let n=ne(o=i[t])?o[o.length-1]||0:o;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,e3(n))}}(e,a)})}),l}function rh(e,t,n={}){let r=t7(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let o=r?()=>Promise.all(rd(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,r=0,i=0,o=1,a){let s=[],l=e.variantChildren.size,u=(l-1)*i,c="function"==typeof r,d=c?e=>r(e,l):1===o?(e=0)=>e*i:(e=0)=>u-e*i;return Array.from(e.variantChildren).sort(rf).forEach((e,i)=>{e.notify("AnimationStart",t),s.push(rh(e,t,{...a,delay:n+(c?0:r)+d(i)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,r,o,a,s,n)}:()=>Promise.resolve(),{when:s}=i;if(!s)return Promise.all([o(),a(n.delay)]);{let[e,t]="beforeChildren"===s?[o,a]:[a,o];return e().then(()=>t())}}function rf(e,t){return e.sortNodePosition(t)}function rp(e,t){if(!Array.isArray(t))return!1;let 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}let rm=td.length,rg=[...tc].reverse(),ry=tc.length;function rv(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rx(){return{animate:rv(!0),whileInView:rv(),whileHover:rv(),whileTap:rv(),whileDrag:rv(),whileFocus:rv(),exit:rv()}}class rb{constructor(e){this.isMounted=!1,this.node=e}update(){}}class rw extends rb{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>rh(e,t,n)));else if("string"==typeof t)r=rh(e,t,n);else{let i="function"==typeof t?t7(e,t,n.custom):t;r=Promise.all(rd(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=rx(),r=!0,i=t=>(n,r)=>{let i=t7(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(o){let{props:a}=e,s=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<rm;e++){let r=td[e],i=t.props[r];(tu(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},l=[],u=new Set,c={},d=1/0;for(let t=0;t<ry;t++){var h,f;let p=rg[t],m=n[p],g=void 0!==a[p]?a[p]:s[p],y=tu(g),v=p===o?m.isActive:null;!1===v&&(d=t);let x=g===s[p]&&g!==a[p]&&y;if(x&&r&&e.manuallyAnimateOnMount&&(x=!1),m.protectedKeys={...c},!m.isActive&&null===v||!g&&!m.prevProp||tl(g)||"boolean"==typeof g)continue;let b=(h=m.prevProp,"string"==typeof(f=g)?f!==h:!!Array.isArray(f)&&!rp(f,h)),w=b||p===o&&m.isActive&&!x&&y||t>d&&y,k=!1,C=Array.isArray(g)?g:[g],S=C.reduce(i(p),{});!1===v&&(S={});let{prevResolvedValues:_={}}=m,E={..._,...S},T=t=>{w=!0,u.has(t)&&(k=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in E){let t=S[e],n=_[e];if(!c.hasOwnProperty(e))(ne(t)&&ne(n)?rp(t,n):t===n)?void 0!==t&&u.has(e)?T(e):m.protectedKeys[e]=!0:null!=t?T(e):u.add(e)}m.prevProp=g,m.prevResolvedValues=S,m.isActive&&(c={...c,...S}),r&&e.blockInitialAnimation&&(w=!1);let P=!(x&&b)||k;w&&P&&l.push(...C.map(e=>({animation:e,options:{type:p}})))}if(u.size){let t={};if("boolean"!=typeof a.initial){let n=t7(e,Array.isArray(a.initial)?a.initial[0]:a.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(l):Promise.resolve()}return{animateChanges:o,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=o(t);for(let e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=rx(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();tl(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let rk=0;class rC extends rb{constructor(){super(...arguments),this.id=rk++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let rS={x:!1,y:!1};function r_(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}let rE=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function rT(e){return{point:{x:e.pageX,y:e.pageY}}}function rP(e,t,n,r){return r_(e,t,e=>rE(e)&&n(e,rT(e)),r)}function rA(e){return e.max-e.min}function rj(e,t,n,r=.5){e.origin=r,e.originPoint=C(t.min,t.max,e.origin),e.scale=rA(n)/rA(t),e.translate=C(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function rM(e,t,n,r){rj(e.x,t.x,n.x,r?r.originX:void 0),rj(e.y,t.y,n.y,r?r.originY:void 0)}function rR(e,t,n){e.min=n.min+t.min,e.max=e.min+rA(t)}function rO(e,t,n){e.min=t.min-n.min,e.max=e.min+rA(t)}function rD(e,t,n){rO(e.x,t.x,n.x),rO(e.y,t.y,n.y)}function rN(e){return[e("x"),e("y")]}let rL=({current:e})=>e?e.ownerDocument.defaultView:null,rI=(e,t)=>Math.abs(e-t);class rF{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=rB(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){return Math.sqrt(rI(e.x,t.x)**2+rI(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=ed;this.history.push({...r,timestamp:i});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=rz(t,this.transformPagePoint),eu.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=rB("pointercancel"===e.type?this.lastMoveEventInfo:rz(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!rE(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=r||window;let a=rz(rT(e),this.transformPagePoint),{point:s}=a,{timestamp:l}=ed;this.history=[{...s,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,rB(a,this.history)),this.removeListeners=nr(rP(this.contextWindow,"pointermove",this.handlePointerMove),rP(this.contextWindow,"pointerup",this.handlePointerUp),rP(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ec(this.updatePoint)}}function rz(e,t){return t?{point:t(e.point)}:e}function rV(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rB({point:e},t){return{point:e,delta:rV(e,rH(t)),offset:rV(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=rH(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ni(.1)));)n--;if(!r)return{x:0,y:0};let o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,.1)}}function rH(e){return e[e.length-1]}function rU(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function rW(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 r$(e,t,n){return{min:rZ(e,t),max:rZ(e,n)}}function rZ(e,t){return"number"==typeof e?e:e[t]||0}let rq=new WeakMap;class rK{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=tr(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let{dragSnapToOrigin:i}=this.getProps();this.panSession=new rF(e,{onSessionStart:e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(rT(e).point)},onStart:(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(rS[e])return null;else return rS[e]=!0,()=>{rS[e]=!1};return rS.x||rS.y?null:(rS.x=rS.y=!0,()=>{rS.x=rS.y=!1})}(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rN(e=>{let t=this.getAxisMotionValue(e).get()||0;if(H.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=rA(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&eu.postRender(()=>i(e,t)),nt(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>rN(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,distanceThreshold:n,contextWindow:rL(this.visualElement)})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:o}=r;this.startAnimation(o);let{onDragEnd:a}=this.getProps();a&&eu.postRender(()=>a(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!rY(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?C(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?C(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&t5(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:rU(e.x,n,i),y:rU(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:r$(e,"left","right"),y:r$(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&rN(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!t5(t))return!1;let r=t.current;X(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,n){let r=D(e,n),{scroll:i}=t;return i&&(M(r.x,i.offset.x),M(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a=(e=i.layout.layoutBox,{x:rW(e.x,o.x),y:rW(e.y,o.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=k(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(rN(a=>{if(!rY(a,t,this.currentDirection))return;let l=s&&s[a]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return nt(this.visualElement,e),n.start(rc(e,n,0,t,this.visualElement,!1))}stopAnimation(){rN(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){rN(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){rN(t=>{let{drag:n}=this.getProps();if(!rY(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[t];i.set(e[t]-C(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!t5(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};rN(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();r[e]=function(e,t){let n=.5,r=rA(e),i=rA(t);return i>r?n=nq(t.min,t.max-r,e.min):r>i&&(n=nq(e.min,e.max-i,t.min)),L(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),rN(t=>{if(!rY(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(C(i,o,r[t]))})}addListeners(){if(!this.visualElement.current)return;rq.set(this.visualElement,this);let e=rP(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();t5(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),eu.read(t);let i=r_(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rN(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),r(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function rY(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class rG extends rb{constructor(e){super(e),this.removeGroupControls=ei,this.removeListeners=ei,this.controls=new rK(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ei}unmount(){this.removeGroupControls(),this.removeListeners()}}let rX=e=>(t,n)=>{e&&eu.postRender(()=>e(t,n))};class rQ extends rb{constructor(){super(...arguments),this.removePointerDownListener=ei}onPointerDown(e){this.session=new rF(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rL(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:rX(e),onStart:rX(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&eu.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=rP(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var rJ=n(2082);let r0={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function r1(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let r2={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!U.test(e))return e;else e=parseFloat(e);let n=r1(e,t.target.x),r=r1(e,t.target.y);return`${n}% ${r}%`}},r5=!1;class r4 extends i.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;for(let e in r9)tS[e]=r9[e],v(e)&&(tS[e].isCSSVariable=!0);i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),r5&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),r0.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:o}=n;return o&&(o.isPresent=i,r5=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||eu.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),e6.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function r3(e){let[t,n]=(0,rJ.xQ)(),r=(0,i.useContext)(tz.L);return(0,tF.jsx)(r4,{...e,layoutGroup:r,switchLayoutGroup:(0,i.useContext)(t3),isPresent:t,safeToRemove:n})}let r9={borderRadius:{...r2,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:r2,borderTopRightRadius:r2,borderBottomLeftRadius:r2,borderBottomRightRadius:r2,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=ez.parse(e);if(r.length>5)return e;let i=ez.createTransformer(e),o=+("number"!=typeof r[0]),a=n.x.scale*t.x,s=n.y.scale*t.y;r[0+o]/=a,r[1+o]/=s;let l=C(a,s,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),i(r)}}};var r6=n(6983);function r7(e){return(0,r6.G)(e)&&"ownerSVGElement"in e}let r8=(e,t)=>e.depth-t.depth;class ie{constructor(){this.children=[],this.isDirty=!1}add(e){e0(this.children,e),this.isDirty=!0}remove(e){e1(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(r8),this.isDirty=!1,this.children.forEach(e)}}let it=["TopLeft","TopRight","BottomLeft","BottomRight"],ir=it.length,ii=e=>"string"==typeof e?parseFloat(e):e,io=e=>"number"==typeof e||U.test(e);function ia(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let is=iu(0,.5,nH),il=iu(.5,.95,ei);function iu(e,t,n){return r=>r<e?0:r>t?1:n(nq(e,t,r))}function ic(e,t){e.min=t.min,e.max=t.max}function id(e,t){ic(e.x,t.x),ic(e.y,t.y)}function ih(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function ip(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function im(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(H.test(t)&&(t=parseFloat(t),t=C(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=C(o.min,o.max,r);e===o&&(s-=t),e.min=ip(e.min,t,n,s,i),e.max=ip(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let ig=["x","scaleX","originX"],iy=["y","scaleY","originY"];function iv(e,t,n,r){im(e.x,t,ig,n?n.x:void 0,r?r.x:void 0),im(e.y,t,iy,n?n.y:void 0,r?r.y:void 0)}function ix(e){return 0===e.translate&&1===e.scale}function ib(e){return ix(e.x)&&ix(e.y)}function iw(e,t){return e.min===t.min&&e.max===t.max}function ik(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function iC(e,t){return ik(e.x,t.x)&&ik(e.y,t.y)}function iS(e){return rA(e.x)/rA(e.y)}function i_(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class iE{constructor(){this.members=[]}add(e){e0(this.members,e),e.scheduleRender()}remove(e){if(e1(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let iT={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},iP=["","X","Y","Z"],iA=0;function ij(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function iM({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=iA++,this.animationId=0,this.animationCommitId=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,es.value&&(iT.nodes=iT.calculatedTargetDeltas=iT.calculatedProjections=0),this.nodes.forEach(iD),this.nodes.forEach(iB),this.nodes.forEach(iH),this.nodes.forEach(iN),es.addProjectionMetrics&&es.addProjectionMetrics(iT)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new ie)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new e2),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=r7(t)&&!(r7(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;eu.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=eJ.now(),r=({timestamp:t})=>{let i=t-n;i>=250&&(ec(r),e(i-250))};return eu.setup(r,!0),()=>ec(r)}(i,250),r0.hasAnimatedSinceResize&&(r0.hasAnimatedSinceResize=!1,this.nodes.forEach(iV)))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||i.getDefaultTransition()||iK,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!iC(this.targetLayout,r),u=!t&&n;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...t8(o,"layout"),onPlay:a,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u)}else t||iV(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ec(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(iU),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[t4];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",eu,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(iI);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(iF);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(iz),this.nodes.forEach(iR),this.nodes.forEach(iO)):this.nodes.forEach(iF),this.clearAllSnapshots();let e=eJ.now();ed.delta=L(0,1e3/60,e-ed.timestamp),ed.timestamp=e,ed.isProcessing=!0,eh.update.process(ed),eh.preRender.process(ed),eh.render.process(ed),ed.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,e6.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iL),this.sharedNodes.forEach(iW)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eu.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eu.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||rA(this.snapshot.measuredBox.x)||rA(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=tr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!ib(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||E(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),iX((t=r).x),iX(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return tr();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(iJ))){let{scroll:e}=this.root;e&&(M(t.x,e.offset.x),M(t.y,e.offset.y))}return t}removeElementScroll(e){let t=tr();if(id(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;r!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&id(t,e),M(t.x,i.offset.x),M(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=tr();id(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&O(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),E(r.latestValues)&&O(n,r.latestValues)}return E(this.latestValues)&&O(n,this.latestValues),n}removeTransform(e){let t=tr();id(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!E(n.latestValues))continue;_(n.latestValues)&&n.updateSnapshot();let r=tr();id(r,n.measurePageBox()),iv(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return E(this.latestValues)&&iv(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}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!==ed.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(this.layout&&(r||i)){if(this.resolvedRelativeTargetAt=ed.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tr(),this.relativeTargetOrigin=tr(),rD(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),id(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=tr(),this.targetWithTransforms=tr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,s;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,s=this.relativeParent.target,rR(o.x,a.x,s.x),rR(o.y,a.y,s.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):id(this.target,this.layout.layoutBox),j(this.target,this.targetDelta)):id(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tr(),this.relativeTargetOrigin=tr(),rD(this.relativeTargetOrigin,this.target,e.target),id(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}es.value&&iT.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||_(this.parent.latestValues)||T(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===ed.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;id(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){let i,o,a=n.length;if(a){t.x=t.y=1;for(let s=0;s<a;s++){o=(i=n[s]).projectionDelta;let{visualElement:a}=i.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&O(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,j(e,o)),r&&E(i.latestValues)&&O(e,i.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=tr());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(ih(this.prevProjectionDelta.x,this.projectionDelta.x),ih(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rM(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&i_(this.projectionDelta.x,this.prevProjectionDelta.x)&&i_(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s)),es.value&&iT.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=tt(),this.projectionDelta=tt(),this.projectionDeltaWithTransform=tt()}setAnimationOrigin(e,t=!1){let n,r=this.snapshot,i=r?r.latestValues:{},o={...this.latestValues},a=tt();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=tr(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(iq));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(i$(a.x,e.x,r),i$(a.y,e.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,f,p,m,g;rD(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,m=s,g=r,iZ(f.x,p.x,m.x,g),iZ(f.y,p.y,m.y,g),n&&(u=this.relativeTarget,h=n,iw(u.x,h.x)&&iw(u.y,h.y))&&(this.isProjectionDirty=!1),n||(n=tr()),id(n,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,n,r,i,o){i?(e.opacity=C(0,n.opacity??1,is(r)),e.opacityExit=C(t.opacity??1,0,il(r))):o&&(e.opacity=C(t.opacity??1,n.opacity??1,r));for(let i=0;i<ir;i++){let o=`border${it[i]}Radius`,a=ia(t,o),s=ia(n,o);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||io(a)===io(s)?(e[o]=Math.max(C(ii(a),ii(s),r),0),(H.test(s)||H.test(a))&&(e[o]+="%")):e[o]=s)}(t.rotate||n.rotate)&&(e.rotate=C(t.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,r,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ec(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eu.update(()=>{r0.hasAnimatedSinceResize=!0,no.layout++,this.motionValue||(this.motionValue=e3(0)),this.currentAnimation=function(e,t,n){let r=eX(e)?e:e3(e);return r.start(rc("",r,t,n)),r.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{no.layout--},onComplete:()=>{no.layout--,e.onComplete&&e.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);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&iQ(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||tr();let t=rA(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=rA(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}id(t,n),O(t,i),rM(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new iE),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&ij("z",e,r,this.animationValues);for(let t=0;t<iP.length;t++)ij(`rotate${iP[t]}`,e,r,this.animationValues),ij(`skew${iP[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=tQ(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tQ(t?.pointerEvents)||""),this.hasProjected&&!E(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let o=function(e,t,n){let r="",i=e.x.translate/t.x,o=e.y.translate/t.y,a=n?.z||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:o,skewX:a,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),o&&(r+=`rotateY(${o}deg) `),a&&(r+=`skewX(${a}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(r+=`scale(${s}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);n&&(o=n(i,o)),e.transform=o;let{x:a,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*s.origin}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,tS){if(void 0===i[t])continue;let{correct:n,applyTo:a,isCSSVariable:s}=tS[t],l="none"===o?i[t]:n(i[t],r);if(a){let t=a.length;for(let n=0;n<t;n++)e[a[n]]=l}else s?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?tQ(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(iI),this.root.sharedNodes.clear()}}}function iR(e){e.updateLayout()}function iO(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;"size"===i?rN(e=>{let r=o?t.measuredBox[e]:t.layoutBox[e],i=rA(r);r.min=n[e].min,r.max=r.min+i}):iQ(i,t.layoutBox,n)&&rN(r=>{let i=o?t.measuredBox[r]:t.layoutBox[r],a=rA(n[r]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=tt();rM(a,n,t.layoutBox);let s=tt();o?rM(s,e.applyTransform(r,!0),t.measuredBox):rM(s,n,t.layoutBox);let l=!ib(a),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let a=tr();rD(a,t.layoutBox,i.layoutBox);let s=tr();rD(s,n,o.layoutBox),iC(a,s)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function iD(e){es.value&&iT.nodes++,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 iN(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iL(e){e.clearSnapshot()}function iI(e){e.clearMeasurements()}function iF(e){e.isLayoutDirty=!1}function iz(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function iV(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function iB(e){e.resolveTargetDelta()}function iH(e){e.calcProjection()}function iU(e){e.resetSkewAndRotation()}function iW(e){e.removeLeadSnapshot()}function i$(e,t,n){e.translate=C(t.translate,0,n),e.scale=C(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function iZ(e,t,n,r){e.min=C(t.min,n.min,r),e.max=C(t.max,n.max,r)}function iq(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let iK={duration:.45,ease:[.4,0,.1,1]},iY=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),iG=iY("applewebkit/")&&!iY("chrome/")?Math.round:ei;function iX(e){e.min=iG(e.min),e.max=iG(e.max)}function iQ(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(iS(t)-iS(n)))}function iJ(e){return e!==e.root&&e.scroll?.wasRoot}let i0=iM({attachResizeListener:(e,t)=>r_(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),i1={current:void 0},i2=iM({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!i1.current){let e=new i0({});e.mount(window),e.setOptions({layoutScroll:!0}),i1.current=e}return i1.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function i5(e,t){let n=function(e,t,n){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document,n=(void 0)??t.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function i4(e){return!("touch"===e.pointerType||rS.x||rS.y)}function i3(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&eu.postRender(()=>i(t,rT(t)))}class i9 extends rb{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,o]=i5(e,n),a=e=>{if(!i4(e))return;let{target:n}=e,r=t(n,e);if("function"!=typeof r||!n)return;let o=e=>{i4(e)&&(r(e),n.removeEventListener("pointerleave",o))};n.addEventListener("pointerleave",o,i)};return r.forEach(e=>{e.addEventListener("pointerenter",a,i)}),o}(e,(e,t)=>(i3(this.node,t,"Start"),e=>i3(this.node,e,"End"))))}unmount(){}}class i6 extends rb{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&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=nr(r_(this.node.current,"focus",()=>this.onFocus()),r_(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var i7=n(7351);let i8=(e,t)=>!!t&&(e===t||i8(e,t.parentElement)),oe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),ot=new WeakSet;function on(e){return t=>{"Enter"===t.key&&e(t)}}function or(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function oi(e){return rE(e)&&!(rS.x||rS.y)}function oo(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&eu.postRender(()=>i(t,rT(t)))}class oa extends rb{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,o]=i5(e,n),a=e=>{let r=e.currentTarget;if(!oi(e))return;ot.add(r);let o=t(r,e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),ot.has(r)&&ot.delete(r),oi(e)&&"function"==typeof o&&o(e,{success:t})},s=e=>{a(e,r===window||r===document||n.useGlobalTarget||i8(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",l,i)};return r.forEach(e=>{((n.useGlobalTarget?window:e).addEventListener("pointerdown",a,i),(0,i7.s)(e))&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let r=on(()=>{if(ot.has(n))return;or(n,"down");let e=on(()=>{or(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>or(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,i)),oe.has(e.tagName)||-1!==e.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(oo(this.node,t,"Start"),(e,{success:t})=>oo(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let os=new WeakMap,ol=new WeakMap,ou=e=>{let t=os.get(e.target);t&&t(e)},oc=e=>{e.forEach(ou)},od={some:0,all:1};class oh extends rb{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:od[r]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;ol.has(n)||ol.set(n,{});let r=ol.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(oc,{root:e,...t})),r[i]}(t);return os.set(e,n),r.observe(e),()=>{os.delete(e),r.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}let of=function(e,t){if("undefined"==typeof Proxy)return t6;let n=new Map,r=(n,r)=>t6(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,o)=>"create"===o?r:(n.has(o)||n.set(o,t6(o,void 0,e,t)),n.get(o))})}({animation:{Feature:rw},exit:{Feature:rC},inView:{Feature:oh},tap:{Feature:oa},focus:{Feature:i6},hover:{Feature:i9},pan:{Feature:rQ},drag:{Feature:rG,ProjectionNode:i2,MeasureLayout:r3},layout:{ProjectionNode:i2,MeasureLayout:r3}},(e,t)=>tI(e)?new tN(t):new tT(t,{allowProjection:e!==i.Fragment}))},2657:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},2664:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return o}});let r=n(9991),i=n(7102);function o(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,i.hasBasePath)(n.pathname)}catch(e){return!1}}},2712:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(2115),i=globalThis?.document?r.useLayoutEffect:()=>{}},2757:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return o},formatWithValidation:function(){return s},urlObjectKeys:function(){return a}});let r=n(6966)._(n(8859)),i=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:n}=e,o=e.protocol||"",a=e.pathname||"",s=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(r.urlQueryToSearchParams(l)));let c=e.search||l&&"?"+l||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||i.test(o))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),""+o+u+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+s}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return o(e)}},2885:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var r=n(2115);function i(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},3052:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},3063:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return b}});let r=n(8229),i=n(6966),o=n(5155),a=i._(n(2115)),s=r._(n(7650)),l=r._(n(5564)),u=n(8883),c=n(5840),d=n(6752);n(3230);let h=n(901),f=r._(n(1193)),p=n(6654),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,n,r,i,o,a){let s=null==e?void 0:e.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function y(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}let v=(0,a.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:s,width:l,decoding:u,className:c,style:d,fetchPriority:h,placeholder:f,loading:m,unoptimized:v,fill:x,onLoadRef:b,onLoadingCompleteRef:w,setBlurComplete:k,setShowAltText:C,sizesInput:S,onLoad:_,onError:E,...T}=e,P=(0,a.useCallback)(e=>{e&&(E&&(e.src=e.src),e.complete&&g(e,f,b,w,k,v,S))},[n,f,b,w,k,E,v,S]),A=(0,p.useMergedRef)(t,P);return(0,o.jsx)("img",{...T,...y(h),loading:m,width:l,height:s,decoding:u,"data-nimg":x?"fill":"1",className:c,style:d,sizes:i,srcSet:r,src:n,ref:A,onLoad:e=>{g(e.currentTarget,f,b,w,k,v,S)},onError:e=>{C(!0),"empty"!==f&&k(!0),E&&E(e)}})});function x(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...y(n.fetchPriority)};return t&&s.default.preload?(s.default.preload(n.src,r),null):(0,o.jsx)(l.default,{children:(0,o.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...r},"__nimg-"+n.src+n.srcSet+n.sizes)})}let b=(0,a.forwardRef)((e,t)=>{let n=(0,a.useContext)(h.RouterContext),r=(0,a.useContext)(d.ImageConfigContext),i=(0,a.useMemo)(()=>{var e;let t=m||r||c.imageConfigDefault,n=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),i=t.deviceSizes.sort((e,t)=>e-t),o=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:n,deviceSizes:i,qualities:o}},[r]),{onLoad:s,onLoadingComplete:l}=e,p=(0,a.useRef)(s);(0,a.useEffect)(()=>{p.current=s},[s]);let g=(0,a.useRef)(l);(0,a.useEffect)(()=>{g.current=l},[l]);let[y,b]=(0,a.useState)(!1),[w,k]=(0,a.useState)(!1),{props:C,meta:S}=(0,u.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:y,showAltText:w});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v,{...C,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:k,sizesInput:e.sizes,ref:t}),S.priority?(0,o.jsx)(x,{isAppRouter:!n,imgAttributes:C}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3180:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},3343:(e,t,n)=>{"use strict";n.d(t,{H:()=>i});var r=n(1876);function i(e,t){var n;let i,f,p=null!=(n=null==t?void 0:t.additionalDigits)?n:2,m=function(e){let t,n={},r=e.split(o.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],o.timeZoneDelimiter.test(n.date)&&(n.date=e.split(o.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){let e=o.timezone.exec(t);e?(n.time=t.replace(e[1],""),n.timezone=e[1]):n.time=t}return n}(e);if(m.date){let e=function(e,t){let n=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};let i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(m.date,p);i=function(e,t){var n,r,i,o,s,l,c;if(null===t)return new Date(NaN);let f=e.match(a);if(!f)return new Date(NaN);let p=!!f[4],m=u(f[1]),g=u(f[2])-1,y=u(f[3]),v=u(f[4]),x=u(f[5])-1;if(p){return(n=v,r=x,n>=1&&n<=53&&r>=0&&r<=6)?function(e,t,n){let r=new Date(0);r.setUTCFullYear(e,0,4);let i=r.getUTCDay()||7;return r.setUTCDate(r.getUTCDate()+((t-1)*7+n+1-i)),r}(t,v,x):new Date(NaN)}{let e=new Date(0);return(i=t,o=g,s=y,o>=0&&o<=11&&s>=1&&s<=(d[o]||(h(i)?29:28))&&(l=t,(c=m)>=1&&c<=(h(l)?366:365)))?(e.setUTCFullYear(t,g,Math.max(m,y)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);let g=i.getTime(),y=0;if(m.time&&isNaN(y=function(e){var t,n,i;let o=e.match(s);if(!o)return NaN;let a=c(o[1]),l=c(o[2]),u=c(o[3]);return(t=a,n=l,i=u,24===t?0===n&&0===i:i>=0&&i<60&&n>=0&&n<60&&t>=0&&t<25)?a*r.s0+l*r.Cg+1e3*u:NaN}(m.time)))return new Date(NaN);if(m.timezone){if(isNaN(f=function(e){var t;if("Z"===e)return 0;let n=e.match(l);if(!n)return 0;let i="+"===n[1]?-1:1,o=parseInt(n[2]),a=n[3]&&parseInt(n[3])||0;return(t=a)>=0&&t<=59?i*(o*r.s0+a*r.Cg):NaN}(m.timezone)))return new Date(NaN)}else{let e=new Date(g+y),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return new Date(g+y+f)}let o={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},a=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,s=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,l=/^([+-])(\d{2})(?::?(\d{2}))?$/;function u(e){return e?parseInt(e):1}function c(e){return e&&parseFloat(e.replace(",","."))||0}let d=[31,null,31,30,31,30,31,31,30,31,30,31];function h(e){return e%400==0||e%4==0&&e%100!=0}},3347:()=>{},3360:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;else if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,d=arguments[0],h=1,f=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},h=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});h<f;++h)if(t=arguments[h],null!=t)for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,c,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},3386:(e,t,n)=>{"use strict";function r(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}n.d(t,{B:()=>r})},3509:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]])},3596:()=>{},3655:(e,t,n)=>{"use strict";n.d(t,{hO:()=>l,sG:()=>s});var r=n(2115),i=n(7650),o=n(9708),a=n(5155),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,o.TL)(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(i?n:t,{...o,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function l(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},3724:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(7924)),i=n(1300);function o(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}o.default=o,e.exports=o},3795:(e,t,n)=>{"use strict";n.d(t,{A:()=>Z});var r,i,o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}Object.create;Object.create;var s=("function"==typeof SuppressedError&&SuppressedError,n(2115)),l="right-scroll-bar-position",u="width-before-scroll-bar";function c(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var d="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,h=new WeakMap;function f(e){return e}var p=function(e){void 0===e&&(e={});var t,n,r,i=(void 0===t&&(t=f),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}});return i.options=o({async:!0,ssr:!1},e),i}(),m=function(){},g=s.forwardRef(function(e,t){var n,r,i,l,u=s.useRef(null),f=s.useState({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:m}),g=f[0],y=f[1],v=e.forwardProps,x=e.children,b=e.className,w=e.removeScrollBar,k=e.enabled,C=e.shards,S=e.sideCar,_=e.noRelative,E=e.noIsolation,T=e.inert,P=e.allowPinchZoom,A=e.as,j=e.gapMode,M=a(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=(n=[u,t],r=function(e){return n.forEach(function(t){return c(t,e)})},(i=(0,s.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,l=i.facade,d(function(){var e=h.get(l);if(e){var t=new Set(e),r=new Set(n),i=l.current;t.forEach(function(e){r.has(e)||c(e,null)}),r.forEach(function(e){t.has(e)||c(e,i)})}h.set(l,n)},[n]),l),O=o(o({},M),g);return s.createElement(s.Fragment,null,k&&s.createElement(S,{sideCar:p,removeScrollBar:w,shards:C,noRelative:_,noIsolation:E,inert:T,setCallbacks:y,allowPinchZoom:!!P,lockRef:u,gapMode:j}),v?s.cloneElement(s.Children.only(x),o(o({},O),{ref:R})):s.createElement(void 0===A?"div":A,o({},O,{className:b,ref:R}),x))});g.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},g.classNames={fullWidth:u,zeroRight:l};var y=function(e){var t=e.sideCar,n=a(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return s.createElement(r,o({},n))};y.isSideCarExport=!0;var v=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,a;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},x=function(){var e=v();return function(t,n){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},b=function(){var e=x();return function(t){return e(t.styles,t.dynamic),null}},w={left:0,top:0,right:0,gap:0},k=function(e){return parseInt(e||"",10)||0},C=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[k(n),k(r),k(i)]},S=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return w;var t=C(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},_=b(),E="data-scroll-locked",T=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(E,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(l," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(u," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(l," .").concat(l," {\n right: 0 ").concat(r,";\n }\n \n .").concat(u," .").concat(u," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(E,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},P=function(){var e=parseInt(document.body.getAttribute(E)||"0",10);return isFinite(e)?e:0},A=function(){s.useEffect(function(){return document.body.setAttribute(E,(P()+1).toString()),function(){var e=P()-1;e<=0?document.body.removeAttribute(E):document.body.setAttribute(E,e.toString())}},[])},j=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;A();var o=s.useMemo(function(){return S(i)},[i]);return s.createElement(_,{styles:T(o,!t,i,n?"":"!important")})},M=!1;if("undefined"!=typeof window)try{var R=Object.defineProperty({},"passive",{get:function(){return M=!0,!0}});window.addEventListener("test",R,R),window.removeEventListener("test",R,R)}catch(e){M=!1}var O=!!M&&{passive:!1},D=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},N=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),L(e,r)){var i=I(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},L=function(e,t){return"v"===e?D(t,"overflowY"):D(t,"overflowX")},I=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},F=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,l=n.target,u=t.contains(l),c=!1,d=s>0,h=0,f=0;do{if(!l)break;var p=I(e,l),m=p[0],g=p[1]-p[2]-a*m;(m||g)&&L(e,l)&&(h+=g,f+=m);var y=l.parentNode;l=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(h)||!i&&s>h)?c=!0:!d&&(i&&1>Math.abs(f)||!i&&-s>f)&&(c=!0),c},z=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},V=function(e){return[e.deltaX,e.deltaY]},B=function(e){return e&&"current"in e?e.current:e},H=0,U=[];let W=(r=function(e){var t=s.useRef([]),n=s.useRef([0,0]),r=s.useRef(),i=s.useState(H++)[0],o=s.useState(b)[0],a=s.useRef(e);s.useEffect(function(){a.current=e},[e]),s.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(B),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=s.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var i,o=z(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var h=N(d,c);if(!h)return!0;if(h?i=d:(i="v"===d?"h":"v",h=N(d,c)),!h)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var f=r.current||i;return F(f,t,e,"h"===f?l:u,!0)},[]),u=s.useCallback(function(e){if(U.length&&U[U.length-1]===o){var n="deltaY"in e?V(e):z(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(a.current.shards||[]).map(B).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?l(e,i[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=s.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),d=s.useCallback(function(e){n.current=z(e),r.current=void 0},[]),h=s.useCallback(function(t){c(t.type,V(t),t.target,l(t,e.lockRef.current))},[]),f=s.useCallback(function(t){c(t.type,z(t),t.target,l(t,e.lockRef.current))},[]);s.useEffect(function(){return U.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",u,O),document.addEventListener("touchmove",u,O),document.addEventListener("touchstart",d,O),function(){U=U.filter(function(e){return e!==o}),document.removeEventListener("wheel",u,O),document.removeEventListener("touchmove",u,O),document.removeEventListener("touchstart",d,O)}},[]);var p=e.removeScrollBar,m=e.inert;return s.createElement(s.Fragment,null,m?s.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?s.createElement(j,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},p.useMedium(r),y);var $=s.forwardRef(function(e,t){return s.createElement(g,o({},e,{ref:t,sideCar:W}))});$.classNames=g.classNames;let Z=$},3904:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},4020:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]])},4093:(e,t,n)=>{"use strict";function r(){}function i(){}n.d(t,{HB:()=>i,ok:()=>r})},4186:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},4213:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},4315:(e,t,n)=>{"use strict";n.d(t,{jH:()=>o});var r=n(2115);n(5155);var i=r.createContext(void 0);function o(e){let t=r.useContext(i);return e||t||"ltr"}},4357:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},4378:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(2115),i=n(7650),o=n(3655),a=n(2712),s=n(5155),l=r.forwardRef((e,t)=>{var n,l;let{container:u,...c}=e,[d,h]=r.useState(!1);(0,a.N)(()=>h(!0),[]);let f=u||d&&(null==(l=globalThis)||null==(n=l.document)?void 0:n.body);return f?i.createPortal((0,s.jsx)(o.sG.div,{...c,ref:t}),f):null});l.displayName="Portal"},4392:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});let r={};function i(e,t){let n=t||r;return o(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function o(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return a(e.children,t,n)}return Array.isArray(e)?a(e,t,n):""}function a(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=o(e[i],t,n);return r.join("")}},4395:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]])},4416:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},4477:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{callServer:function(){return r.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return i.findSourceMapURL}});let r=n(3806),i=n(1818),o=n(7197)},4581:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(2556);function i(e,t,n,i){let o=i?i-1:1/0,a=0;return function(i){return(0,r.On)(i)?(e.enter(n),function i(s){return(0,r.On)(s)&&a++<o?(e.consume(s),i):(e.exit(n),t(s))}(i)):t(i)}}},4616:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},4861:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},5029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(2115),i=r.useLayoutEffect,o=r.useEffect;function a(e){let{headManager:t,reduceComponentsToState:n}=e;function a(){if(t&&t.mountedInstances){let i=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(i,e))}}return i(()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}}),i(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),o(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},5100:(e,t)=>{"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=r?40*r:t,l=i?40*i:n,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},5185:(e,t,n)=>{"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{m:()=>r})},5196:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},5333:(e,t,n)=>{"use strict";n.d(t,{B:()=>o});var r=n(4581),i=n(2556);let o={partial:!0,tokenize:function(e,t,n){return function(t){return(0,i.On)(t)?(0,r.N)(e,o,"linePrefix")(t):o(t)};function o(e){return null===e||(0,i.HP)(e)?t(e):n(e)}}}},5405:(e,t,n)=>{"use strict";function r(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}n.d(t,{A:()=>eO});var i=n(4093),o=n(2556),a=n(1922),s=n(7915);let l="phrasing",u=["autolink","link","image","label"];function c(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function d(e){this.config.enter.autolinkProtocol.call(this,e)}function h(e){this.config.exit.autolinkProtocol.call(this,e)}function f(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];(0,i.ok)("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function p(e){this.config.exit.autolinkEmail.call(this,e)}function m(e){this.exit(e)}function g(e){!function(e,t,n){let r=(0,s.C)((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),o=-1;for(;++o<i.length;)(0,a.VG)(e,"text",l);function l(e,t){let n,a=-1;for(;++a<t.length;){let e=t[a],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[o][0],a=i[o][1],s=0,l=n.children.indexOf(e),u=!1,c=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},o=a(...d,i);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(s!==n&&c.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(o)?c.push(...o):o&&c.push(o),s=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}return u?(s<e.value.length&&c.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...c)):c=[e],l+c.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,y],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,v]],{ignore:["link","linkReference"]})}function y(e,t,n,i,o){let a="";if(!x(o)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!function(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n)))return!1;let s=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")"),o=r(e,"("),a=r(e,")");for(;-1!==i&&o>a;)e+=n.slice(0,i+1),i=(n=n.slice(i+1)).indexOf(")"),a++;return[e,n]}(n+i);if(!s[0])return!1;let l={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function v(e,t,n,r){return!(!x(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function x(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||(0,o.Ny)(n)||(0,o.es)(n))&&(!t||47!==n)}var b=n(3386);function w(){this.buffer()}function k(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function C(){this.buffer()}function S(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function _(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteReference"===n.type),n.identifier=(0,b.B)(this.sliceSerialize(e)).toLowerCase(),n.label=t}function E(e){this.exit(e)}function T(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteDefinition"===n.type),n.identifier=(0,b.B)(this.sliceSerialize(e)).toLowerCase(),n.label=t}function P(e){this.exit(e)}function A(e,t,n,r){let i=n.createTracker(r),o=i.move("[^"),a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),s(),a(),o+=i.move("]")}function j(e,t,n){return 0===t?e:M(e,t,n)}function M(e,t,n){return(n?"":" ")+e}A.peek=function(){return"["};let R=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function O(e){this.enter({type:"delete",children:[]},e)}function D(e){this.exit(e)}function N(e,t,n,r){let i=n.createTracker(r),o=n.enter("strikethrough"),a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function L(e){return e.length}function I(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}N.peek=function(){return"~"};var F=n(9535);n(8428);n(4392);function z(e,t,n){let r=e.value||"",i="`",o=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){let e,t=n.unsafe[o],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}z.peek=function(){return"`"};(0,s.C)(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let V={inlineCode:z,listItem:function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),o=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let a=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));let s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);let l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){return t?(n?"":" ".repeat(a))+e:(n?o:o+" ".repeat(a-o.length))+e});return l(),u}};function B(e){let t=e._align;(0,i.ok)(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function H(e){this.exit(e),this.data.inTable=void 0}function U(e){this.enter({type:"tableRow",children:[]},e)}function W(e){this.exit(e)}function $(e){this.enter({type:"tableCell",children:[]},e)}function Z(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,q));let n=this.stack[this.stack.length-1];(0,i.ok)("inlineCode"===n.type),n.value=t,this.exit(e)}function q(e,t){return"|"===t?t:e}function K(e){let t=this.stack[this.stack.length-2];(0,i.ok)("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function Y(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];(0,i.ok)("paragraph"===e.type);let n=e.children[0];if(n&&"text"===n.type){let r,i=t.children,o=-1;for(;++o<i.length;){let e=i[o];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function G(e,t,n,r){let i=e.children[0],o="boolean"==typeof e.checked&&i&&"paragraph"===i.type,a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(a);let l=V.listItem(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+a})),l}var X=n(9381);let Q={tokenize:function(e,t,n){let r=0;return function t(o){return(87===o||119===o)&&r<3?(r++,e.consume(o),t):46===o&&3===r?(e.consume(o),i):n(o)};function i(e){return null===e?n(e):t(e)}},partial:!0},J={tokenize:function(e,t,n){let r,i,a;return s;function s(t){return 46===t||95===t?e.check(et,u,l)(t):null===t||(0,o.Ee)(t)||(0,o.Ny)(t)||45!==t&&(0,o.es)(t)?u(t):(a=!0,e.consume(t),s)}function l(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),s}function u(e){return i||r||!a?n(e):t(e)}},partial:!0},ee={tokenize:function(e,t){let n=0,r=0;return i;function i(s){return 40===s?(n++,e.consume(s),i):41===s&&r<n?a(s):33===s||34===s||38===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||60===s||63===s||93===s||95===s||126===s?e.check(et,t,a)(s):null===s||(0,o.Ee)(s)||(0,o.Ny)(s)?t(s):(e.consume(s),i)}function a(t){return 41===t&&r++,e.consume(t),i}},partial:!0},et={tokenize:function(e,t,n){return r;function r(s){return 33===s||34===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||63===s||95===s||126===s?(e.consume(s),r):38===s?(e.consume(s),a):93===s?(e.consume(s),i):60===s||null===s||(0,o.Ee)(s)||(0,o.Ny)(s)?t(s):n(s)}function i(e){return null===e||40===e||91===e||(0,o.Ee)(e)||(0,o.Ny)(e)?t(e):r(e)}function a(t){return(0,o.CW)(t)?function t(i){return 59===i?(e.consume(i),r):(0,o.CW)(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},en={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return(0,o.lV)(e)?n(e):t(e)}},partial:!0},er={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!el.call(r,r.previous)||eh(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Q,e.attempt(J,e.attempt(ee,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:el},ei={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",a=!1;return function(t){return(72===t||104===t)&&eu.call(r,r.previous)&&!eh(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),s):n(t)};function s(t){if((0,o.CW)(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),l}return n(t)}function l(t){return 47===t?(e.consume(t),a)?u:(a=!0,l):n(t)}function u(t){return null===t||(0,o.JQ)(t)||(0,o.Ee)(t)||(0,o.Ny)(t)||(0,o.es)(t)?n(t):e.attempt(J,e.attempt(ee,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:eu},eo={name:"emailAutolink",tokenize:function(e,t,n){let r,i,a=this;return function(t){return!ed(t)||!ec.call(a,a.previous)||eh(a.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return ed(r)?(e.consume(r),t):64===r?(e.consume(r),s):n(r)}(t))};function s(t){return 46===t?e.check(en,u,l)(t):45===t||95===t||(0,o.lV)(t)?(i=!0,e.consume(t),s):u(t)}function l(t){return e.consume(t),r=!0,s}function u(s){return i&&r&&(0,o.CW)(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(s)):n(s)}},previous:ec},ea={},es=48;for(;es<123;)ea[es]=eo,58==++es?es=65:91===es&&(es=97);function el(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||(0,o.Ee)(e)}function eu(e){return!(0,o.CW)(e)}function ec(e){return!(47===e||ed(e))}function ed(e){return 43===e||45===e||46===e||95===e||(0,o.lV)(e)}function eh(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}ea[43]=eo,ea[45]=eo,ea[46]=eo,ea[95]=eo,ea[72]=[eo,ei],ea[104]=[eo,ei],ea[87]=[eo,er],ea[119]=[eo,er];var ef=n(5333),ep=n(4581);let em={tokenize:function(e,t,n){let r=this;return(0,ep.N)(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function eg(e,t,n){let r,i=this,o=i.events.length,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;o--;){let e=i.events[o][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!r||!r._balanced)return n(o);let s=(0,b.B)(i.sliceSerialize({start:r.end,end:i.now()}));return 94===s.codePointAt(0)&&a.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)):n(o)}}function ey(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function ev(e,t,n){let r,i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),l};function l(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(l){if(s>999||93===l&&!r||null===l||91===l||(0,o.Ee)(l))return n(l);if(93===l){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return a.includes((0,b.B)(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(l)}return(0,o.Ee)(l)||(r=!0),s++,e.consume(l),92===l?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function ex(e,t,n){let r,i,a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]),l=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),u};function u(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(l>999||93===t&&!i||null===t||91===t||(0,o.Ee)(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=(0,b.B)(a.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return(0,o.Ee)(t)||(i=!0),l++,e.consume(t),92===t?d:c}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s.includes(r)||s.push(r),(0,ep.N)(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function eb(e,t,n){return e.check(ef.B,t,e.attempt(em,t,n))}function ew(e){e.exit("gfmFootnoteDefinition")}var ek=n(1603),eC=n(1877);class eS{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}function e_(e,t,n){let r,i=this,a=0,s=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,o="tableHead"===r||"tableRow"===r?x:l;return o===x&&i.parser.lazy[i.now().line]?n(e):o(e)};function l(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,s+=1),u(n)}function u(t){return null===t?n(t):(0,o.HP)(t)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):n(t):(0,o.On)(t)?(0,ep.N)(e,u,"whitespace")(t):(s+=1,r&&(r=!1,a+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,u):(e.enter("data"),c(t))}function c(t){return null===t||124===t||(0,o.Ee)(t)?(e.exit("data"),u(t)):(e.consume(t),92===t?d:c)}function d(t){return 92===t||124===t?(e.consume(t),c):c(t)}function h(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,(0,o.On)(t))?(0,ep.N)(e,f,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t)}function f(t){return 45===t||58===t?m(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):n(t)}function p(t){return(0,o.On)(t)?(0,ep.N)(e,m,"whitespace")(t):m(t)}function m(t){return 58===t?(s+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):45===t?(s+=1,g(t)):null===t||(0,o.HP)(t)?v(t):n(t)}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(n))}(t)):n(t)}function y(t){return(0,o.On)(t)?(0,ep.N)(e,v,"whitespace")(t):v(t)}function v(i){if(124===i)return f(i);if(null===i||(0,o.HP)(i))return r&&a===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function x(t){return e.enter("tableRow"),b(t)}function b(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),b):null===n||(0,o.HP)(n)?(e.exit("tableRow"),t(n)):(0,o.On)(n)?(0,ep.N)(e,b,"whitespace")(n):(e.enter("data"),w(n))}function w(t){return null===t||124===t||(0,o.Ee)(t)?(e.exit("data"),b(t)):(e.consume(t),92===t?k:w)}function k(t){return 92===t||124===t?(e.consume(t),w):w(t)}}function eE(e,t){let n,r,i,o=-1,a=!0,s=0,l=[0,0,0,0],u=[0,0,0,0],c=!1,d=0,h=new eS;for(;++o<e.length;){let f=e[o],p=f[1];"enter"===f[0]?"tableHead"===p.type?(c=!1,0!==d&&(eP(h,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},h.add(o,0,[["enter",n,t]])):"tableRow"===p.type||"tableDelimiterRow"===p.type?(a=!0,i=void 0,l=[0,0,0,0],u=[0,o+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},h.add(o,0,[["enter",r,t]])),s="tableDelimiterRow"===p.type?2:r?3:1):s&&("data"===p.type||"tableDelimiterMarker"===p.type||"tableDelimiterFiller"===p.type)?(a=!1,0===u[2]&&(0!==l[1]&&(u[0]=u[1],i=eT(h,t,l,s,void 0,i),l=[0,0,0,0]),u[2]=o)):"tableCellDivider"===p.type&&(a?a=!1:(0!==l[1]&&(u[0]=u[1],i=eT(h,t,l,s,void 0,i)),u=[(l=u)[1],o,0,0])):"tableHead"===p.type?(c=!0,d=o):"tableRow"===p.type||"tableDelimiterRow"===p.type?(d=o,0!==l[1]?(u[0]=u[1],i=eT(h,t,l,s,o,i)):0!==u[1]&&(i=eT(h,t,u,s,o,i)),s=0):s&&("data"===p.type||"tableDelimiterMarker"===p.type||"tableDelimiterFiller"===p.type)&&(u[3]=o)}for(0!==d&&eP(h,t,d,n,r),h.consume(t.events),o=-1;++o<t.events.length;){let e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,o))}return e}function eT(e,t,n,r,i,o){0!==n[0]&&(o.end=Object.assign({},eA(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));let a=eA(t.events,n[1]);if(o={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){let i=eA(t.events,n[2]),o=eA(t.events,n[3]),a={type:"tableContent",start:Object.assign({},i),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==i&&(o.end=Object.assign({},eA(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function eP(e,t,n,r,i){let o=[],a=eA(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function eA(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let ej={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return(0,o.Ee)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):n(t)}function a(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(t)}function s(r){return(0,o.HP)(r)?t(r):(0,o.On)(r)?e.check({tokenize:eM},t,n)(r):n(r)}}};function eM(e,t,n){return(0,ep.N)(e,function(e){return null===e?n(e):t(e)},"whitespace")}let eR={};function eO(e){let t,n=e||eR,r=this.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push((0,X.y)([{text:ea},{document:{91:{name:"gfmFootnoteDefinition",tokenize:ex,continuation:{tokenize:eb},exit:ew}},text:{91:{name:"gfmFootnoteCall",tokenize:ev},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:eg,resolveTo:ey}}},function(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,o=this.events,a=0;return function(s){return 126===i&&"characterEscape"!==o[o.length-1][1].type?r(s):(e.enter("strikethroughSequenceTemporary"),function o(s){let l=(0,F.S)(i);if(126===s)return a>1?r(s):(e.consume(s),a++,o);if(a<2&&!t)return r(s);let u=e.exit("strikethroughSequenceTemporary"),c=(0,F.S)(s);return u._open=!c||2===c&&!!l,u._close=!l||2===l&&!!c,n(s)}(s))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],s=t.parser.constructs.insideSpan.null;s&&(0,ek.m)(a,a.length,0,(0,eC.W)(s,e.slice(r+1,n),t)),(0,ek.m)(a,a.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),(0,ek.m)(e,r-1,n-r+3,a),n=r+a.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}(n),{flow:{null:{name:"table",tokenize:e_,resolveAll:eE}}},{text:{91:ej}}])),o.push([{transforms:[g],enter:{literalAutolink:c,literalAutolinkEmail:d,literalAutolinkHttp:d,literalAutolinkWww:d},exit:{literalAutolink:m,literalAutolinkEmail:p,literalAutolinkHttp:h,literalAutolinkWww:f}},{enter:{gfmFootnoteCallString:w,gfmFootnoteCall:k,gfmFootnoteDefinitionLabelString:C,gfmFootnoteDefinition:S},exit:{gfmFootnoteCallString:_,gfmFootnoteCall:E,gfmFootnoteDefinitionLabelString:T,gfmFootnoteDefinition:P}},{canContainEols:["delete"],enter:{strikethrough:O},exit:{strikethrough:D}},{enter:{table:B,tableData:$,tableHeader:$,tableRow:U},exit:{codeText:Z,table:H,tableData:W,tableHeader:W,tableRow:W}},{exit:{taskListCheckValueChecked:K,taskListCheckValueUnchecked:K,paragraph:Y}}]),a.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:l,notInConstruct:u},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:l,notInConstruct:u},{character:":",before:"[ps]",after:"\\/",inConstruct:l,notInConstruct:u}]},(t=!1,n&&n.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,i){let o=r.createTracker(i),a=o.move("[^"),s=r.enter("footnoteDefinition"),l=r.enter("label");return a+=o.move(r.safe(r.associationId(e),{before:a,after:"]"})),l(),a+=o.move("]:"),e.children&&e.children.length>0&&(o.shift(4),a+=o.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,o.current()),t?M:j))),s(),a},footnoteReference:A},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:R}],handlers:{delete:N}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=V.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return s(function(e,t,n){let r=e.children,i=-1,o=[],a=t.enter("table");for(;++i<r.length;)o[i]=l(r[i],t,n);return a(),o}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){let i=s([l(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function a(e,t,n,r){let i=n.enter("tableCell"),a=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:o,after:o});return a(),i(),s}function s(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||L,o=[],a=[],s=[],l=[],u=0,c=-1;for(;++c<e.length;){let t=[],r=[],o=-1;for(e[c].length>u&&(u=e[c].length);++o<e[c].length;){var d;let a=null==(d=e[c][o])?"":String(d);if(!1!==n.alignDelimiters){let e=i(a);r[o]=e,(void 0===l[o]||e>l[o])&&(l[o]=e)}t.push(a)}a[c]=t,s[c]=r}let h=-1;if("object"==typeof r&&"length"in r)for(;++h<u;)o[h]=I(r[h]);else{let e=I(r);for(;++h<u;)o[h]=e}h=-1;let f=[],p=[];for(;++h<u;){let e=o[h],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,l[h]-t.length-r.length),a=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>l[h]&&(l[h]=i),p[h]=i),f[h]=a}a.splice(1,0,f),s.splice(1,0,p),c=-1;let m=[];for(;++c<a.length;){let e=a[c],t=s[c];h=-1;let r=[];for(;++h<u;){let i=e[h]||"",a="",s="";if(!1!==n.alignDelimiters){let e=l[h]-(t[h]||0),n=o[h];114===n?a=" ".repeat(e):99===n?e%2?(a=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):s=a=" ".repeat(e/2):s=" ".repeat(e)}!1===n.delimiterStart||h||r.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==i)&&(!1!==n.delimiterStart||h)&&r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(i),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||h!==u-1)&&r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){let r=e.children,i=-1,o=[],s=t.enter("tableRow");for(;++i<r.length;)o[i]=a(r[i],e,t,n);return s(),o}}(n),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:G}}]})}},5452:(e,t,n)=>{"use strict";n.d(t,{UC:()=>ee,VY:()=>en,ZL:()=>Q,bL:()=>X,bm:()=>er,hE:()=>et,hJ:()=>J});var r=n(2115),i=n(5185),o=n(6101),a=n(6081),s=n(1285),l=n(5845),u=n(9178),c=n(7900),d=n(4378),h=n(8905),f=n(3655),p=n(2293),m=n(3795),g=n(8168),y=n(9708),v=n(5155),x="Dialog",[b,w]=(0,a.A)(x),[k,C]=b(x),S=e=>{let{__scopeDialog:t,children:n,open:i,defaultOpen:o,onOpenChange:a,modal:u=!0}=e,c=r.useRef(null),d=r.useRef(null),[h,f]=(0,l.i)({prop:i,defaultProp:null!=o&&o,onChange:a,caller:x});return(0,v.jsx)(k,{scope:t,triggerRef:c,contentRef:d,contentId:(0,s.B)(),titleId:(0,s.B)(),descriptionId:(0,s.B)(),open:h,onOpenChange:f,onOpenToggle:r.useCallback(()=>f(e=>!e),[f]),modal:u,children:n})};S.displayName=x;var _="DialogTrigger";r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=C(_,n),s=(0,o.s)(t,a.triggerRef);return(0,v.jsx)(f.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":$(a.open),...r,ref:s,onClick:(0,i.m)(e.onClick,a.onOpenToggle)})}).displayName=_;var E="DialogPortal",[T,P]=b(E,{forceMount:void 0}),A=e=>{let{__scopeDialog:t,forceMount:n,children:i,container:o}=e,a=C(E,t);return(0,v.jsx)(T,{scope:t,forceMount:n,children:r.Children.map(i,e=>(0,v.jsx)(h.C,{present:n||a.open,children:(0,v.jsx)(d.Z,{asChild:!0,container:o,children:e})}))})};A.displayName=E;var j="DialogOverlay",M=r.forwardRef((e,t)=>{let n=P(j,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=C(j,e.__scopeDialog);return o.modal?(0,v.jsx)(h.C,{present:r||o.open,children:(0,v.jsx)(O,{...i,ref:t})}):null});M.displayName=j;var R=(0,y.TL)("DialogOverlay.RemoveScroll"),O=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=C(j,n);return(0,v.jsx)(m.A,{as:R,allowPinchZoom:!0,shards:[i.contentRef],children:(0,v.jsx)(f.sG.div,{"data-state":$(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),D="DialogContent",N=r.forwardRef((e,t)=>{let n=P(D,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=C(D,e.__scopeDialog);return(0,v.jsx)(h.C,{present:r||o.open,children:o.modal?(0,v.jsx)(L,{...i,ref:t}):(0,v.jsx)(I,{...i,ref:t})})});N.displayName=D;var L=r.forwardRef((e,t)=>{let n=C(D,e.__scopeDialog),a=r.useRef(null),s=(0,o.s)(t,n.contentRef,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,g.Eq)(e)},[]),(0,v.jsx)(F,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,i.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault())})}),I=r.forwardRef((e,t)=>{let n=C(D,e.__scopeDialog),i=r.useRef(!1),o=r.useRef(!1);return(0,v.jsx)(F,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,a;null==(r=e.onCloseAutoFocus)||r.call(e,t),t.defaultPrevented||(i.current||null==(a=n.triggerRef.current)||a.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{var r,a;null==(r=e.onInteractOutside)||r.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let s=t.target;(null==(a=n.triggerRef.current)?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),F=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,...l}=e,d=C(D,n),h=r.useRef(null),f=(0,o.s)(t,h);return(0,p.Oh)(),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(c.n,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:s,children:(0,v.jsx)(u.qW,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":$(d.open),...l,ref:f,onDismiss:()=>d.onOpenChange(!1)})}),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(Y,{titleId:d.titleId}),(0,v.jsx)(G,{contentRef:h,descriptionId:d.descriptionId})]})]})}),z="DialogTitle",V=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=C(z,n);return(0,v.jsx)(f.sG.h2,{id:i.titleId,...r,ref:t})});V.displayName=z;var B="DialogDescription",H=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=C(B,n);return(0,v.jsx)(f.sG.p,{id:i.descriptionId,...r,ref:t})});H.displayName=B;var U="DialogClose",W=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=C(U,n);return(0,v.jsx)(f.sG.button,{type:"button",...r,ref:t,onClick:(0,i.m)(e.onClick,()=>o.onOpenChange(!1))})});function $(e){return e?"open":"closed"}W.displayName=U;var Z="DialogTitleWarning",[q,K]=(0,a.q)(Z,{contentName:D,titleName:z,docsSlug:"dialog"}),Y=e=>{let{titleId:t}=e,n=K(Z),i="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return r.useEffect(()=>{t&&(document.getElementById(t)||console.error(i))},[i,t]),null},G=e=>{let{contentRef:t,descriptionId:n}=e,i=K("DialogDescriptionWarning"),o="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(i.contentName,"}.");return r.useEffect(()=>{var e;let r=null==(e=t.current)?void 0:e.getAttribute("aria-describedby");n&&r&&(document.getElementById(n)||console.warn(o))},[o,t,n]),null},X=S,Q=A,J=M,ee=N,et=V,en=H,er=W},5543:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},5564:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return m},defaultHead:function(){return d}});let r=n(8229),i=n(6966),o=n(5155),a=i._(n(2115)),s=r._(n(5029)),l=n(2464),u=n(2830),c=n(7544);function d(e){void 0===e&&(e=!1);let t=[(0,o.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,o.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function h(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(3230);let f=["name","httpEquiv","charSet","itemProp"];function p(e,t){let{inAmpMode:n}=t;return e.reduce(h,[]).reverse().concat(d(n).reverse()).filter(function(){let e=new Set,t=new Set,n=new Set,r={};return i=>{let o=!0,a=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){a=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?o=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?o=!1:t.add(i.type);break;case"meta":for(let e=0,t=f.length;e<t;e++){let t=f[e];if(i.props.hasOwnProperty(t))if("charSet"===t)n.has(t)?o=!1:n.add(t);else{let e=i.props[t],n=r[t]||new Set;("name"!==t||!a)&&n.has(e)?o=!1:(n.add(e),r[t]=n)}}}return o}}()).reverse().map((e,t)=>{let n=e.key||t;return a.default.cloneElement(e,{key:n})})}let m=function(e){let{children:t}=e,n=(0,a.useContext)(l.AmpStateContext),r=(0,a.useContext)(u.HeadManagerContext);return(0,o.jsx)(s.default,{reduceComponentsToState:p,headManager:r,inAmpMode:(0,c.isInAmpMode)(n),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5690:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},5840:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{VALID_LOADERS:function(){return n},imageConfigDefault:function(){return r}});let n=["default","imgix","cloudinary","akamai","custom"],r={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},5845:(e,t,n)=>{"use strict";n.d(t,{i:()=>s});var r,i=n(2115),o=n(2712),a=(r||(r=n.t(i,2)))[" useInsertionEffect ".trim().toString()]||o.N;function s({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,s,l]=function({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),o=i.useRef(n),s=i.useRef(t);return a(()=>{s.current=t},[t]),i.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}({defaultProp:t,onChange:n}),u=void 0!==e,c=u?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,r])}return[c,i.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&l.current?.(n)}else s(t)},[u,e,s,l])]}Symbol("RADIX:SYNC_STATE")},6081:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,q:()=>o});var r=n(2115),i=n(5155);function o(e,t){let n=r.createContext(t),o=e=>{let{children:t,...o}=e,a=r.useMemo(()=>o,Object.values(o));return(0,i.jsx)(n.Provider,{value:a,children:t})};return o.displayName=e+"Provider",[o,function(i){let o=r.useContext(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function a(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return o.scopeName=e,[function(t,o){let a=r.createContext(o),s=n.length;n=[...n,o];let l=t=>{let{scope:n,children:o,...l}=t,u=n?.[e]?.[s]||a,c=r.useMemo(()=>l,Object.values(l));return(0,i.jsx)(u.Provider,{value:c,children:o})};return l.displayName=t+"Provider",[l,function(n,i){let l=i?.[e]?.[s]||a,u=r.useContext(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(o,...t)]}},6101:(e,t,n)=>{"use strict";n.d(t,{s:()=>a,t:()=>o});var r=n(2115);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():i(e[t],null)}}}}function a(...e){return r.useCallback(o(...e),e)}},6208:(e,t,n)=>{"use strict";var r,i,o,a,s;let l,u;async function c(e){return(await l).getRandomValues(new Uint8Array(e))}async function d(e){let t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",n="",r=await c(e);for(let i=0;i<e;i++){let e=r[i]%t.length;n+=t[e]}return n}async function h(e){return await d(e)}async function f(e){return btoa(String.fromCharCode(...new Uint8Array(await (await l).subtle.digest("SHA-256",new TextEncoder().encode(e))))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function p(e){if(e||(e=43),e<43||e>128)throw`Expected a length between 43 and 128. Received ${e}.`;let t=await h(e),n=await f(t);return{code_verifier:t,code_challenge:n}}n.d(t,{j2:()=>nP}),l=globalThis.crypto,function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(r||(r={})),(i||(i={})).mergeShapes=(e,t)=>({...e,...t});let m=r.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),g=e=>{switch(typeof e){case"undefined":return m.undefined;case"string":return m.string;case"number":return Number.isNaN(e)?m.nan:m.number;case"boolean":return m.boolean;case"function":return m.function;case"bigint":return m.bigint;case"symbol":return m.symbol;case"object":if(Array.isArray(e))return m.array;if(null===e)return m.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return m.promise;if("undefined"!=typeof Map&&e instanceof Map)return m.map;if("undefined"!=typeof Set&&e instanceof Set)return m.set;if("undefined"!=typeof Date&&e instanceof Date)return m.date;return m.object;default:return m.unknown}},y=r.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class v extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof v))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,r.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},n=[];for(let r of this.issues)if(r.path.length>0){let n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}v.create=e=>new v(e);let x=(e,t)=>{let n;switch(e.code){case y.invalid_type:n=e.received===m.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case y.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,r.jsonStringifyReplacer)}`;break;case y.unrecognized_keys:n=`Unrecognized key(s) in object: ${r.joinValues(e.keys,", ")}`;break;case y.invalid_union:n="Invalid input";break;case y.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${r.joinValues(e.options)}`;break;case y.invalid_enum_value:n=`Invalid enum value. Expected ${r.joinValues(e.options)}, received '${e.received}'`;break;case y.invalid_arguments:n="Invalid function arguments";break;case y.invalid_return_type:n="Invalid function return type";break;case y.invalid_date:n="Invalid date";break;case y.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:r.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case y.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case y.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case y.custom:n="Invalid input";break;case y.invalid_intersection_types:n="Intersection results could not be merged";break;case y.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case y.not_finite:n="Number must be finite";break;default:n=t.defaultError,r.assertNever(e)}return{message:n}};!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(o||(o={}));let b=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],a={...i,path:o};if(void 0!==i.message)return{...i,path:o,message:i.message};let s="";for(let e of r.filter(e=>!!e).slice().reverse())s=e(a,{data:t,defaultError:s}).message;return{...i,path:o,message:s}};function w(e,t){let n=b({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,x,void 0].filter(e=>!!e)});e.common.issues.push(n)}class k{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return C;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let e of t){let t=await e.key,r=await e.value;n.push({key:t,value:r})}return k.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if("aborted"===t.status||"aborted"===i.status)return C;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}}let C=Object.freeze({status:"aborted"}),S=e=>({status:"dirty",value:e}),_=e=>({status:"valid",value:e}),E=e=>"undefined"!=typeof Promise&&e instanceof Promise;class T{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let P=(e,t)=>{if("valid"===t.status)return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new v(e.common.issues);return this._error=t,this._error}}};function A(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:o}=e;return"invalid_enum_value"===t.code?{message:o??i.defaultError}:void 0===i.data?{message:o??r??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:o??n??i.defaultError}},description:i}}class j{get description(){return this._def.description}_getType(e){return g(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:g(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new k,ctx:{common:e.parent.common,data:e.data,parsedType:g(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(E(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:g(e)},r=this._parseSync({data:e,path:n.path,parent:n});return P(n,r)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:g(e)};if(!this["~standard"].async)try{let n=this._parseSync({data:e,path:[],parent:t});return"valid"===n.status?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>"valid"===e.status?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:g(e)},r=this._parse({data:e,path:n.path,parent:n});return P(n,await (E(r)?r:Promise.resolve(r)))}refine(e,t){return this._refinement((n,r)=>{let i=e(n),o=()=>r.addIssue({code:y.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(n):t});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(o(),!1)):!!i||(o(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new eC({schema:this,typeName:a.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return eS.create(this,this._def)}nullable(){return e_.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ea.create(this)}promise(){return ek.create(this,this._def)}or(e){return el.create([this,e],this._def)}and(e){return ed.create(this,e,this._def)}transform(e){return new eC({...A(this._def),schema:this,typeName:a.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new eE({...A(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:a.ZodDefault})}brand(){return new eA({typeName:a.ZodBranded,type:this,...A(this._def)})}catch(e){return new eT({...A(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:a.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return ej.create(this,e)}readonly(){return eM.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let M=/^c[^\s-]{8,}$/i,R=/^[0-9a-z]+$/,O=/^[0-9A-HJKMNP-TV-Z]{26}$/i,D=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,N=/^[a-z0-9_-]{21}$/i,L=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,I=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,F=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,z=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,V=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,B=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,H=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,U=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,W=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,$="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Z=RegExp(`^${$}$`);function q(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}class K extends j{_parse(e){var t,n,i,o;let a;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==m.string){let t=this._getOrReturnCtx(e);return w(t,{code:y.invalid_type,expected:m.string,received:t.parsedType}),C}let s=new k;for(let l of this._def.checks)if("min"===l.kind)e.data.length<l.value&&(w(a=this._getOrReturnCtx(e,a),{code:y.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),s.dirty());else if("max"===l.kind)e.data.length>l.value&&(w(a=this._getOrReturnCtx(e,a),{code:y.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),s.dirty());else if("length"===l.kind){let t=e.data.length>l.value,n=e.data.length<l.value;(t||n)&&(a=this._getOrReturnCtx(e,a),t?w(a,{code:y.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}):n&&w(a,{code:y.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}),s.dirty())}else if("email"===l.kind)F.test(e.data)||(w(a=this._getOrReturnCtx(e,a),{validation:"email",code:y.invalid_string,message:l.message}),s.dirty());else if("emoji"===l.kind)u||(u=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),u.test(e.data)||(w(a=this._getOrReturnCtx(e,a),{validation:"emoji",code:y.invalid_string,message:l.message}),s.dirty());else if("uuid"===l.kind)D.test(e.data)||(w(a=this._getOrReturnCtx(e,a),{validation:"uuid",code:y.invalid_string,message:l.message}),s.dirty());else if("nanoid"===l.kind)N.test(e.data)||(w(a=this._getOrReturnCtx(e,a),{validation:"nanoid",code:y.invalid_string,message:l.message}),s.dirty());else if("cuid"===l.kind)M.test(e.data)||(w(a=this._getOrReturnCtx(e,a),{validation:"cuid",code:y.invalid_string,message:l.message}),s.dirty());else if("cuid2"===l.kind)R.test(e.data)||(w(a=this._getOrReturnCtx(e,a),{validation:"cuid2",code:y.invalid_string,message:l.message}),s.dirty());else if("ulid"===l.kind)O.test(e.data)||(w(a=this._getOrReturnCtx(e,a),{validation:"ulid",code:y.invalid_string,message:l.message}),s.dirty());else if("url"===l.kind)try{new URL(e.data)}catch{w(a=this._getOrReturnCtx(e,a),{validation:"url",code:y.invalid_string,message:l.message}),s.dirty()}else"regex"===l.kind?(l.regex.lastIndex=0,l.regex.test(e.data)||(w(a=this._getOrReturnCtx(e,a),{validation:"regex",code:y.invalid_string,message:l.message}),s.dirty())):"trim"===l.kind?e.data=e.data.trim():"includes"===l.kind?e.data.includes(l.value,l.position)||(w(a=this._getOrReturnCtx(e,a),{code:y.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),s.dirty()):"toLowerCase"===l.kind?e.data=e.data.toLowerCase():"toUpperCase"===l.kind?e.data=e.data.toUpperCase():"startsWith"===l.kind?e.data.startsWith(l.value)||(w(a=this._getOrReturnCtx(e,a),{code:y.invalid_string,validation:{startsWith:l.value},message:l.message}),s.dirty()):"endsWith"===l.kind?e.data.endsWith(l.value)||(w(a=this._getOrReturnCtx(e,a),{code:y.invalid_string,validation:{endsWith:l.value},message:l.message}),s.dirty()):"datetime"===l.kind?(function(e){let t=`${$}T${q(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,RegExp(`^${t}$`)})(l).test(e.data)||(w(a=this._getOrReturnCtx(e,a),{code:y.invalid_string,validation:"datetime",message:l.message}),s.dirty()):"date"===l.kind?Z.test(e.data)||(w(a=this._getOrReturnCtx(e,a),{code:y.invalid_string,validation:"date",message:l.message}),s.dirty()):"time"===l.kind?RegExp(`^${q(l)}$`).test(e.data)||(w(a=this._getOrReturnCtx(e,a),{code:y.invalid_string,validation:"time",message:l.message}),s.dirty()):"duration"===l.kind?I.test(e.data)||(w(a=this._getOrReturnCtx(e,a),{validation:"duration",code:y.invalid_string,message:l.message}),s.dirty()):"ip"===l.kind?(t=e.data,!(("v4"===(n=l.version)||!n)&&z.test(t)||("v6"===n||!n)&&B.test(t))&&1&&(w(a=this._getOrReturnCtx(e,a),{validation:"ip",code:y.invalid_string,message:l.message}),s.dirty())):"jwt"===l.kind?!function(e,t){if(!L.test(e))return!1;try{let[n]=e.split(".");if(!n)return!1;let r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}(e.data,l.alg)&&(w(a=this._getOrReturnCtx(e,a),{validation:"jwt",code:y.invalid_string,message:l.message}),s.dirty()):"cidr"===l.kind?(i=e.data,!(("v4"===(o=l.version)||!o)&&V.test(i)||("v6"===o||!o)&&H.test(i))&&1&&(w(a=this._getOrReturnCtx(e,a),{validation:"cidr",code:y.invalid_string,message:l.message}),s.dirty())):"base64"===l.kind?U.test(e.data)||(w(a=this._getOrReturnCtx(e,a),{validation:"base64",code:y.invalid_string,message:l.message}),s.dirty()):"base64url"===l.kind?W.test(e.data)||(w(a=this._getOrReturnCtx(e,a),{validation:"base64url",code:y.invalid_string,message:l.message}),s.dirty()):r.assertNever(l);return{status:s.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:y.invalid_string,...o.errToObj(n)})}_addCheck(e){return new K({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...o.errToObj(e)})}url(e){return this._addCheck({kind:"url",...o.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...o.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...o.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...o.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...o.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...o.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...o.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...o.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...o.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...o.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...o.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...o.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...o.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...o.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...o.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...o.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...o.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...o.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...o.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...o.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...o.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...o.errToObj(t)})}nonempty(e){return this.min(1,o.errToObj(e))}trim(){return new K({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new K({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new K({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}K.create=e=>new K({checks:[],typeName:a.ZodString,coerce:e?.coerce??!1,...A(e)});class Y extends j{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==m.number){let t=this._getOrReturnCtx(e);return w(t,{code:y.invalid_type,expected:m.number,received:t.parsedType}),C}let n=new k;for(let i of this._def.checks)"int"===i.kind?r.isInteger(e.data)||(w(t=this._getOrReturnCtx(e,t),{code:y.invalid_type,expected:"integer",received:"float",message:i.message}),n.dirty()):"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(w(t=this._getOrReturnCtx(e,t),{code:y.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(w(t=this._getOrReturnCtx(e,t),{code:y.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):"multipleOf"===i.kind?0!==function(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}(e.data,i.value)&&(w(t=this._getOrReturnCtx(e,t),{code:y.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):"finite"===i.kind?Number.isFinite(e.data)||(w(t=this._getOrReturnCtx(e,t),{code:y.not_finite,message:i.message}),n.dirty()):r.assertNever(i);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,o.toString(t))}gt(e,t){return this.setLimit("min",e,!1,o.toString(t))}lte(e,t){return this.setLimit("max",e,!0,o.toString(t))}lt(e,t){return this.setLimit("max",e,!1,o.toString(t))}setLimit(e,t,n,r){return new Y({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:o.toString(r)}]})}_addCheck(e){return new Y({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:o.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:o.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:o.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:o.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:o.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:o.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:o.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:o.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:o.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&r.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;else"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value);return Number.isFinite(t)&&Number.isFinite(e)}}Y.create=e=>new Y({checks:[],typeName:a.ZodNumber,coerce:e?.coerce||!1,...A(e)});class G extends j{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==m.bigint)return this._getInvalidInput(e);let n=new k;for(let i of this._def.checks)"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(w(t=this._getOrReturnCtx(e,t),{code:y.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(w(t=this._getOrReturnCtx(e,t),{code:y.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):"multipleOf"===i.kind?e.data%i.value!==BigInt(0)&&(w(t=this._getOrReturnCtx(e,t),{code:y.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):r.assertNever(i);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return w(t,{code:y.invalid_type,expected:m.bigint,received:t.parsedType}),C}gte(e,t){return this.setLimit("min",e,!0,o.toString(t))}gt(e,t){return this.setLimit("min",e,!1,o.toString(t))}lte(e,t){return this.setLimit("max",e,!0,o.toString(t))}lt(e,t){return this.setLimit("max",e,!1,o.toString(t))}setLimit(e,t,n,r){return new G({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:o.toString(r)}]})}_addCheck(e){return new G({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:o.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:o.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:o.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:o.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:o.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}G.create=e=>new G({checks:[],typeName:a.ZodBigInt,coerce:e?.coerce??!1,...A(e)});class X extends j{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==m.boolean){let t=this._getOrReturnCtx(e);return w(t,{code:y.invalid_type,expected:m.boolean,received:t.parsedType}),C}return _(e.data)}}X.create=e=>new X({typeName:a.ZodBoolean,coerce:e?.coerce||!1,...A(e)});class Q extends j{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==m.date){let t=this._getOrReturnCtx(e);return w(t,{code:y.invalid_type,expected:m.date,received:t.parsedType}),C}if(Number.isNaN(e.data.getTime()))return w(this._getOrReturnCtx(e),{code:y.invalid_date}),C;let n=new k;for(let i of this._def.checks)"min"===i.kind?e.data.getTime()<i.value&&(w(t=this._getOrReturnCtx(e,t),{code:y.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),n.dirty()):"max"===i.kind?e.data.getTime()>i.value&&(w(t=this._getOrReturnCtx(e,t),{code:y.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):r.assertNever(i);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Q({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:o.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:o.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Q.create=e=>new Q({checks:[],coerce:e?.coerce||!1,typeName:a.ZodDate,...A(e)});class J extends j{_parse(e){if(this._getType(e)!==m.symbol){let t=this._getOrReturnCtx(e);return w(t,{code:y.invalid_type,expected:m.symbol,received:t.parsedType}),C}return _(e.data)}}J.create=e=>new J({typeName:a.ZodSymbol,...A(e)});class ee extends j{_parse(e){if(this._getType(e)!==m.undefined){let t=this._getOrReturnCtx(e);return w(t,{code:y.invalid_type,expected:m.undefined,received:t.parsedType}),C}return _(e.data)}}ee.create=e=>new ee({typeName:a.ZodUndefined,...A(e)});class et extends j{_parse(e){if(this._getType(e)!==m.null){let t=this._getOrReturnCtx(e);return w(t,{code:y.invalid_type,expected:m.null,received:t.parsedType}),C}return _(e.data)}}et.create=e=>new et({typeName:a.ZodNull,...A(e)});class en extends j{constructor(){super(...arguments),this._any=!0}_parse(e){return _(e.data)}}en.create=e=>new en({typeName:a.ZodAny,...A(e)});class er extends j{constructor(){super(...arguments),this._unknown=!0}_parse(e){return _(e.data)}}er.create=e=>new er({typeName:a.ZodUnknown,...A(e)});class ei extends j{_parse(e){let t=this._getOrReturnCtx(e);return w(t,{code:y.invalid_type,expected:m.never,received:t.parsedType}),C}}ei.create=e=>new ei({typeName:a.ZodNever,...A(e)});class eo extends j{_parse(e){if(this._getType(e)!==m.undefined){let t=this._getOrReturnCtx(e);return w(t,{code:y.invalid_type,expected:m.void,received:t.parsedType}),C}return _(e.data)}}eo.create=e=>new eo({typeName:a.ZodVoid,...A(e)});class ea extends j{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==m.array)return w(t,{code:y.invalid_type,expected:m.array,received:t.parsedType}),C;if(null!==r.exactLength){let e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(w(t,{code:e?y.too_big:y.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(w(t,{code:y.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(w(t,{code:y.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new T(t,e,t.path,n)))).then(e=>k.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new T(t,e,t.path,n)));return k.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new ea({...this._def,minLength:{value:e,message:o.toString(t)}})}max(e,t){return new ea({...this._def,maxLength:{value:e,message:o.toString(t)}})}length(e,t){return new ea({...this._def,exactLength:{value:e,message:o.toString(t)}})}nonempty(e){return this.min(1,e)}}ea.create=(e,t)=>new ea({type:e,minLength:null,maxLength:null,exactLength:null,typeName:a.ZodArray,...A(t)});class es extends j{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=r.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==m.object){let t=this._getOrReturnCtx(e);return w(t,{code:y.invalid_type,expected:m.object,received:t.parsedType}),C}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof ei&&"strip"===this._def.unknownKeys))for(let e in n.data)i.includes(e)||o.push(e);let a=[];for(let e of i){let t=r[e],i=n.data[e];a.push({key:{status:"valid",value:e},value:t._parse(new T(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof ei){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of o)a.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)o.length>0&&(w(n,{code:y.unrecognized_keys,keys:o}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of o){let r=n.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new T(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of a){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>k.mergeObjectSync(t,e)):k.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return o.errToObj,new es({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{let r=this._def.errorMap?.(t,n).message??n.defaultError;return"unrecognized_keys"===t.code?{message:o.errToObj(e).message??r}:{message:r}}}:{}})}strip(){return new es({...this._def,unknownKeys:"strip"})}passthrough(){return new es({...this._def,unknownKeys:"passthrough"})}extend(e){return new es({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new es({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:a.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new es({...this._def,catchall:e})}pick(e){let t={};for(let n of r.objectKeys(e))e[n]&&this.shape[n]&&(t[n]=this.shape[n]);return new es({...this._def,shape:()=>t})}omit(e){let t={};for(let n of r.objectKeys(this.shape))e[n]||(t[n]=this.shape[n]);return new es({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof es){let n={};for(let r in t.shape){let i=t.shape[r];n[r]=eS.create(e(i))}return new es({...t._def,shape:()=>n})}if(t instanceof ea)return new ea({...t._def,type:e(t.element)});if(t instanceof eS)return eS.create(e(t.unwrap()));if(t instanceof e_)return e_.create(e(t.unwrap()));if(t instanceof eh)return eh.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let n of r.objectKeys(this.shape)){let r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}return new es({...this._def,shape:()=>t})}required(e){let t={};for(let n of r.objectKeys(this.shape))if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof eS;)e=e._def.innerType;t[n]=e}return new es({...this._def,shape:()=>t})}keyof(){return ex(r.objectKeys(this.shape))}}es.create=(e,t)=>new es({shape:()=>e,unknownKeys:"strip",catchall:ei.create(),typeName:a.ZodObject,...A(t)}),es.strictCreate=(e,t)=>new es({shape:()=>e,unknownKeys:"strict",catchall:ei.create(),typeName:a.ZodObject,...A(t)}),es.lazycreate=(e,t)=>new es({shape:e,unknownKeys:"strip",catchall:ei.create(),typeName:a.ZodObject,...A(t)});class el extends j{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new v(e.ctx.common.issues));return w(t,{code:y.invalid_union,unionErrors:n}),C});{let e,r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},o=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new v(e));return w(t,{code:y.invalid_union,unionErrors:i}),C}}get options(){return this._def.options}}el.create=(e,t)=>new el({options:e,typeName:a.ZodUnion,...A(t)});let eu=e=>{if(e instanceof ey)return eu(e.schema);if(e instanceof eC)return eu(e.innerType());if(e instanceof ev)return[e.value];if(e instanceof eb)return e.options;if(e instanceof ew)return r.objectValues(e.enum);else if(e instanceof eE)return eu(e._def.innerType);else if(e instanceof ee)return[void 0];else if(e instanceof et)return[null];else if(e instanceof eS)return[void 0,...eu(e.unwrap())];else if(e instanceof e_)return[null,...eu(e.unwrap())];else if(e instanceof eA)return eu(e.unwrap());else if(e instanceof eM)return eu(e.unwrap());else if(e instanceof eT)return eu(e._def.innerType);else return[]};class ec extends j{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==m.object)return w(t,{code:y.invalid_type,expected:m.object,received:t.parsedType}),C;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(w(t,{code:y.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),C)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let r=new Map;for(let n of t){let t=eu(n.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(r.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);r.set(i,n)}}return new ec({typeName:a.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...A(n)})}}class ed extends j{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),i=(e,i)=>{if("aborted"===e.status||"aborted"===i.status)return C;let o=function e(t,n){let i=g(t),o=g(n);if(t===n)return{valid:!0,data:t};if(i===m.object&&o===m.object){let i=r.objectKeys(n),o=r.objectKeys(t).filter(e=>-1!==i.indexOf(e)),a={...t,...n};for(let r of o){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1};a[r]=i.data}return{valid:!0,data:a}}if(i===m.array&&o===m.array){if(t.length!==n.length)return{valid:!1};let r=[];for(let i=0;i<t.length;i++){let o=e(t[i],n[i]);if(!o.valid)return{valid:!1};r.push(o.data)}return{valid:!0,data:r}}if(i===m.date&&o===m.date&&+t==+n)return{valid:!0,data:t};return{valid:!1}}(e.value,i.value);return o.valid?(("dirty"===e.status||"dirty"===i.status)&&t.dirty(),{status:t.value,value:o.data}):(w(n,{code:y.invalid_intersection_types}),C)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>i(e,t)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}ed.create=(e,t,n)=>new ed({left:e,right:t,typeName:a.ZodIntersection,...A(n)});class eh extends j{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==m.array)return w(n,{code:y.invalid_type,expected:m.array,received:n.parsedType}),C;if(n.data.length<this._def.items.length)return w(n,{code:y.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),C;!this._def.rest&&n.data.length>this._def.items.length&&(w(n,{code:y.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new T(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>k.mergeArray(t,e)):k.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new eh({...this._def,rest:e})}}eh.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new eh({items:e,typeName:a.ZodTuple,rest:null,...A(t)})};class ef extends j{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==m.object)return w(n,{code:y.invalid_type,expected:m.object,received:n.parsedType}),C;let r=[],i=this._def.keyType,o=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new T(n,e,n.path,e)),value:o._parse(new T(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?k.mergeObjectAsync(t,r):k.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new ef(t instanceof j?{keyType:e,valueType:t,typeName:a.ZodRecord,...A(n)}:{keyType:K.create(),valueType:e,typeName:a.ZodRecord,...A(t)})}}class ep extends j{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==m.map)return w(n,{code:y.invalid_type,expected:m.map,received:n.parsedType}),C;let r=this._def.keyType,i=this._def.valueType,o=[...n.data.entries()].map(([e,t],o)=>({key:r._parse(new T(n,e,n.path,[o,"key"])),value:i._parse(new T(n,t,n.path,[o,"value"]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of o){let r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return C;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of o){let r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return C;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}ep.create=(e,t,n)=>new ep({valueType:t,keyType:e,typeName:a.ZodMap,...A(n)});class em extends j{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==m.set)return w(n,{code:y.invalid_type,expected:m.set,received:n.parsedType}),C;let r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(w(n,{code:y.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(w(n,{code:y.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function o(e){let n=new Set;for(let r of e){if("aborted"===r.status)return C;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let a=[...n.data.values()].map((e,t)=>i._parse(new T(n,e,n.path,t)));return n.common.async?Promise.all(a).then(e=>o(e)):o(a)}min(e,t){return new em({...this._def,minSize:{value:e,message:o.toString(t)}})}max(e,t){return new em({...this._def,maxSize:{value:e,message:o.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}em.create=(e,t)=>new em({valueType:e,minSize:null,maxSize:null,typeName:a.ZodSet,...A(t)});class eg extends j{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==m.function)return w(t,{code:y.invalid_type,expected:m.function,received:t.parsedType}),C;function n(e,n){return b({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,x,x].filter(e=>!!e),issueData:{code:y.invalid_arguments,argumentsError:n}})}function r(e,n){return b({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,x,x].filter(e=>!!e),issueData:{code:y.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof ek){let e=this;return _(async function(...t){let a=new v([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw a.addIssue(n(t,e)),a}),l=await Reflect.apply(o,this,s);return await e._def.returns._def.type.parseAsync(l,i).catch(e=>{throw a.addIssue(r(l,e)),a})})}{let e=this;return _(function(...t){let a=e._def.args.safeParse(t,i);if(!a.success)throw new v([n(t,a.error)]);let s=Reflect.apply(o,this,a.data),l=e._def.returns.safeParse(s,i);if(!l.success)throw new v([r(s,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eg({...this._def,args:eh.create(e).rest(er.create())})}returns(e){return new eg({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new eg({args:e||eh.create([]).rest(er.create()),returns:t||er.create(),typeName:a.ZodFunction,...A(n)})}}class ey extends j{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ey.create=(e,t)=>new ey({getter:e,typeName:a.ZodLazy,...A(t)});class ev extends j{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return w(t,{received:t.data,code:y.invalid_literal,expected:this._def.value}),C}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ex(e,t){return new eb({values:e,typeName:a.ZodEnum,...A(t)})}ev.create=(e,t)=>new ev({value:e,typeName:a.ZodLiteral,...A(t)});class eb extends j{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return w(t,{expected:r.joinValues(n),received:t.parsedType,code:y.invalid_type}),C}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return w(t,{received:t.data,code:y.invalid_enum_value,options:n}),C}return _(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return eb.create(e,{...this._def,...t})}exclude(e,t=this._def){return eb.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}eb.create=ex;class ew extends j{_parse(e){let t=r.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==m.string&&n.parsedType!==m.number){let e=r.objectValues(t);return w(n,{expected:r.joinValues(e),received:n.parsedType,code:y.invalid_type}),C}if(this._cache||(this._cache=new Set(r.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=r.objectValues(t);return w(n,{received:n.data,code:y.invalid_enum_value,options:e}),C}return _(e.data)}get enum(){return this._def.values}}ew.create=(e,t)=>new ew({values:e,typeName:a.ZodNativeEnum,...A(t)});class ek extends j{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==m.promise&&!1===t.common.async?(w(t,{code:y.invalid_type,expected:m.promise,received:t.parsedType}),C):_((t.parsedType===m.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ek.create=(e,t)=>new ek({type:e,typeName:a.ZodPromise,...A(t)});class eC extends j{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===a.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),i=this._def.effect||null,o={addIssue:e=>{w(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),"preprocess"===i.type){let e=i.transform(n.data,o);if(n.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return C;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?C:"dirty"===r.status||"dirty"===t.value?S(r.value):r});{if("aborted"===t.value)return C;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?C:"dirty"===r.status||"dirty"===t.value?S(r.value):r}}if("refinement"===i.type){let e=e=>{let t=i.refinement(e,o);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?C:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))));{let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?C:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===i.type)if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>"valid"!==e.status?C:Promise.resolve(i.transform(e.value,o)).then(e=>({status:t.value,value:e})));else{let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if("valid"!==e.status)return C;let r=i.transform(e.value,o);if(r instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:r}}r.assertNever(i)}}eC.create=(e,t,n)=>new eC({schema:e,typeName:a.ZodEffects,effect:t,...A(n)}),eC.createWithPreprocess=(e,t,n)=>new eC({schema:t,effect:{type:"preprocess",transform:e},typeName:a.ZodEffects,...A(n)});class eS extends j{_parse(e){return this._getType(e)===m.undefined?_(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eS.create=(e,t)=>new eS({innerType:e,typeName:a.ZodOptional,...A(t)});class e_ extends j{_parse(e){return this._getType(e)===m.null?_(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}e_.create=(e,t)=>new e_({innerType:e,typeName:a.ZodNullable,...A(t)});class eE extends j{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===m.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eE.create=(e,t)=>new eE({innerType:e,typeName:a.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...A(t)});class eT extends j{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return E(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new v(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new v(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}eT.create=(e,t)=>new eT({innerType:e,typeName:a.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...A(t)});class eP extends j{_parse(e){if(this._getType(e)!==m.nan){let t=this._getOrReturnCtx(e);return w(t,{code:y.invalid_type,expected:m.nan,received:t.parsedType}),C}return{status:"valid",value:e.data}}}eP.create=e=>new eP({typeName:a.ZodNaN,...A(e)}),Symbol("zod_brand");class eA extends j{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class ej extends j{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?C:"dirty"===e.status?(t.dirty(),S(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?C:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new ej({in:e,out:t,typeName:a.ZodPipeline})}}class eM extends j{_parse(e){let t=this._def.innerType._parse(e),n=e=>("valid"===e.status&&(e.value=Object.freeze(e.value)),e);return E(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}}eM.create=(e,t)=>new eM({innerType:e,typeName:a.ZodReadonly,...A(t)}),es.lazycreate,function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(a||(a={}));let eR=K.create,eO=Y.create;eP.create,G.create;let eD=X.create;Q.create,J.create,ee.create,et.create;let eN=en.create,eL=er.create;ei.create,eo.create;let eI=ea.create,eF=es.create;es.strictCreate;let ez=el.create,eV=ec.create;ed.create,eh.create;let eB=ef.create;ep.create,em.create,eg.create,ey.create;let eH=ev.create,eU=eb.create;ew.create,ek.create,eC.create;let eW=eS.create;e_.create,eC.createWithPreprocess,ej.create;let e$="2025-06-18",eZ=ez([eR(),eO().int()]),eq=eR(),eK=eF({progressToken:eW(eZ)}).passthrough(),eY=eF({_meta:eW(eK)}).passthrough(),eG=eF({method:eR(),params:eW(eY)}),eX=eF({_meta:eW(eF({}).passthrough())}).passthrough(),eQ=eF({method:eR(),params:eW(eX)}),eJ=eF({_meta:eW(eF({}).passthrough())}).passthrough(),e0=ez([eR(),eO().int()]),e1=eF({jsonrpc:eH("2.0"),id:e0}).merge(eG).strict(),e2=eF({jsonrpc:eH("2.0")}).merge(eQ).strict(),e5=eF({jsonrpc:eH("2.0"),id:e0,result:eJ}).strict();!function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError"}(s||(s={})),ez([e1,e2,e5,eF({jsonrpc:eH("2.0"),id:e0,error:eF({code:eO().int(),message:eR(),data:eW(eL())})}).strict()]);let e4=eJ.strict(),e3=eQ.extend({method:eH("notifications/cancelled"),params:eX.extend({requestId:e0,reason:eR().optional()})}),e9=eF({name:eR(),title:eW(eR())}).passthrough(),e6=e9.extend({version:eR()}),e7=eF({experimental:eW(eF({}).passthrough()),sampling:eW(eF({}).passthrough()),elicitation:eW(eF({}).passthrough()),roots:eW(eF({listChanged:eW(eD())}).passthrough())}).passthrough(),e8=eG.extend({method:eH("initialize"),params:eY.extend({protocolVersion:eR(),capabilities:e7,clientInfo:e6})}),te=eF({experimental:eW(eF({}).passthrough()),logging:eW(eF({}).passthrough()),completions:eW(eF({}).passthrough()),prompts:eW(eF({listChanged:eW(eD())}).passthrough()),resources:eW(eF({subscribe:eW(eD()),listChanged:eW(eD())}).passthrough()),tools:eW(eF({listChanged:eW(eD())}).passthrough())}).passthrough(),tt=eJ.extend({protocolVersion:eR(),capabilities:te,serverInfo:e6,instructions:eW(eR())}),tn=eQ.extend({method:eH("notifications/initialized")}),tr=eG.extend({method:eH("ping")}),ti=eF({progress:eO(),total:eW(eO()),message:eW(eR())}).passthrough(),to=eQ.extend({method:eH("notifications/progress"),params:eX.merge(ti).extend({progressToken:eZ})}),ta=eG.extend({params:eY.extend({cursor:eW(eq)}).optional()}),ts=eJ.extend({nextCursor:eW(eq)}),tl=eF({uri:eR(),mimeType:eW(eR()),_meta:eW(eF({}).passthrough())}).passthrough(),tu=tl.extend({text:eR()}),tc=tl.extend({blob:eR().base64()}),td=e9.extend({uri:eR(),description:eW(eR()),mimeType:eW(eR()),_meta:eW(eF({}).passthrough())}),th=e9.extend({uriTemplate:eR(),description:eW(eR()),mimeType:eW(eR()),_meta:eW(eF({}).passthrough())}),tf=ta.extend({method:eH("resources/list")}),tp=ts.extend({resources:eI(td)}),tm=ta.extend({method:eH("resources/templates/list")}),tg=ts.extend({resourceTemplates:eI(th)}),ty=eG.extend({method:eH("resources/read"),params:eY.extend({uri:eR()})}),tv=eJ.extend({contents:eI(ez([tu,tc]))}),tx=eQ.extend({method:eH("notifications/resources/list_changed")}),tb=eG.extend({method:eH("resources/subscribe"),params:eY.extend({uri:eR()})}),tw=eG.extend({method:eH("resources/unsubscribe"),params:eY.extend({uri:eR()})}),tk=eQ.extend({method:eH("notifications/resources/updated"),params:eX.extend({uri:eR()})}),tC=eF({name:eR(),description:eW(eR()),required:eW(eD())}).passthrough(),tS=e9.extend({description:eW(eR()),arguments:eW(eI(tC)),_meta:eW(eF({}).passthrough())}),t_=ta.extend({method:eH("prompts/list")}),tE=ts.extend({prompts:eI(tS)}),tT=eG.extend({method:eH("prompts/get"),params:eY.extend({name:eR(),arguments:eW(eB(eR()))})}),tP=eF({type:eH("text"),text:eR(),_meta:eW(eF({}).passthrough())}).passthrough(),tA=eF({type:eH("image"),data:eR().base64(),mimeType:eR(),_meta:eW(eF({}).passthrough())}).passthrough(),tj=eF({type:eH("audio"),data:eR().base64(),mimeType:eR(),_meta:eW(eF({}).passthrough())}).passthrough(),tM=eF({type:eH("resource"),resource:ez([tu,tc]),_meta:eW(eF({}).passthrough())}).passthrough(),tR=ez([tP,tA,tj,td.extend({type:eH("resource_link")}),tM]),tO=eF({role:eU(["user","assistant"]),content:tR}).passthrough(),tD=eJ.extend({description:eW(eR()),messages:eI(tO)}),tN=eQ.extend({method:eH("notifications/prompts/list_changed")}),tL=eF({title:eW(eR()),readOnlyHint:eW(eD()),destructiveHint:eW(eD()),idempotentHint:eW(eD()),openWorldHint:eW(eD())}).passthrough(),tI=e9.extend({description:eW(eR()),inputSchema:eF({type:eH("object"),properties:eW(eF({}).passthrough()),required:eW(eI(eR()))}).passthrough(),outputSchema:eW(eF({type:eH("object"),properties:eW(eF({}).passthrough()),required:eW(eI(eR()))}).passthrough()),annotations:eW(tL),_meta:eW(eF({}).passthrough())}),tF=ta.extend({method:eH("tools/list")}),tz=ts.extend({tools:eI(tI)}),tV=eJ.extend({content:eI(tR).default([]),structuredContent:eF({}).passthrough().optional(),isError:eW(eD())});tV.or(eJ.extend({toolResult:eL()}));let tB=eG.extend({method:eH("tools/call"),params:eY.extend({name:eR(),arguments:eW(eB(eL()))})}),tH=eQ.extend({method:eH("notifications/tools/list_changed")}),tU=eU(["debug","info","notice","warning","error","critical","alert","emergency"]),tW=eG.extend({method:eH("logging/setLevel"),params:eY.extend({level:tU})}),t$=eQ.extend({method:eH("notifications/message"),params:eX.extend({level:tU,logger:eW(eR()),data:eL()})}),tZ=eF({name:eR().optional()}).passthrough(),tq=eF({hints:eW(eI(tZ)),costPriority:eW(eO().min(0).max(1)),speedPriority:eW(eO().min(0).max(1)),intelligencePriority:eW(eO().min(0).max(1))}).passthrough(),tK=eF({role:eU(["user","assistant"]),content:ez([tP,tA,tj])}).passthrough(),tY=eG.extend({method:eH("sampling/createMessage"),params:eY.extend({messages:eI(tK),systemPrompt:eW(eR()),includeContext:eW(eU(["none","thisServer","allServers"])),temperature:eW(eO()),maxTokens:eO().int(),stopSequences:eW(eI(eR())),metadata:eW(eF({}).passthrough()),modelPreferences:eW(tq)})}),tG=eJ.extend({model:eR(),stopReason:eW(eU(["endTurn","stopSequence","maxTokens"]).or(eR())),role:eU(["user","assistant"]),content:eV("type",[tP,tA,tj])}),tX=eF({type:eH("boolean"),title:eW(eR()),description:eW(eR()),default:eW(eD())}).passthrough(),tQ=eF({type:eH("string"),title:eW(eR()),description:eW(eR()),minLength:eW(eO()),maxLength:eW(eO()),format:eW(eU(["email","uri","date","date-time"]))}).passthrough(),tJ=ez([tX,tQ,eF({type:eU(["number","integer"]),title:eW(eR()),description:eW(eR()),minimum:eW(eO()),maximum:eW(eO())}).passthrough(),eF({type:eH("string"),title:eW(eR()),description:eW(eR()),enum:eI(eR()),enumNames:eW(eI(eR()))}).passthrough()]),t0=eG.extend({method:eH("elicitation/create"),params:eY.extend({message:eR(),requestedSchema:eF({type:eH("object"),properties:eB(eR(),tJ),required:eW(eI(eR()))}).passthrough()})}),t1=eJ.extend({action:eU(["accept","decline","cancel"]),content:eW(eB(eR(),eL()))}),t2=eF({type:eH("ref/resource"),uri:eR()}).passthrough(),t5=eF({type:eH("ref/prompt"),name:eR()}).passthrough(),t4=eG.extend({method:eH("completion/complete"),params:eY.extend({ref:ez([t5,t2]),argument:eF({name:eR(),value:eR()}).passthrough(),context:eW(eF({arguments:eW(eB(eR(),eR()))}))})}),t3=eJ.extend({completion:eF({values:eI(eR()).max(100),total:eW(eO().int()),hasMore:eW(eD())}).passthrough()}),t9=eF({uri:eR().startsWith("file://"),name:eW(eR()),_meta:eW(eF({}).passthrough())}).passthrough(),t6=eG.extend({method:eH("roots/list")}),t7=eJ.extend({roots:eI(t9)}),t8=eQ.extend({method:eH("notifications/roots/list_changed")});ez([tr,e8,t4,tW,tT,t_,tf,tm,ty,tb,tw,tB,tF]),ez([e3,to,tn,t8]),ez([e4,tG,t1,t7]),ez([tr,tY,t0,t6]),ez([e3,to,t$,tk,tx,tH,tN]),ez([e4,tt,t3,tD,tE,tp,tg,tv,tV,tz]);let ne=eF({resource:eR().url(),authorization_servers:eI(eR().url()).optional(),jwks_uri:eR().url().optional(),scopes_supported:eI(eR()).optional(),bearer_methods_supported:eI(eR()).optional(),resource_signing_alg_values_supported:eI(eR()).optional(),resource_name:eR().optional(),resource_documentation:eR().optional(),resource_policy_uri:eR().url().optional(),resource_tos_uri:eR().url().optional(),tls_client_certificate_bound_access_tokens:eD().optional(),authorization_details_types_supported:eI(eR()).optional(),dpop_signing_alg_values_supported:eI(eR()).optional(),dpop_bound_access_tokens_required:eD().optional()}).passthrough(),nt=eF({issuer:eR(),authorization_endpoint:eR(),token_endpoint:eR(),registration_endpoint:eR().optional(),scopes_supported:eI(eR()).optional(),response_types_supported:eI(eR()),response_modes_supported:eI(eR()).optional(),grant_types_supported:eI(eR()).optional(),token_endpoint_auth_methods_supported:eI(eR()).optional(),token_endpoint_auth_signing_alg_values_supported:eI(eR()).optional(),service_documentation:eR().optional(),revocation_endpoint:eR().optional(),revocation_endpoint_auth_methods_supported:eI(eR()).optional(),revocation_endpoint_auth_signing_alg_values_supported:eI(eR()).optional(),introspection_endpoint:eR().optional(),introspection_endpoint_auth_methods_supported:eI(eR()).optional(),introspection_endpoint_auth_signing_alg_values_supported:eI(eR()).optional(),code_challenge_methods_supported:eI(eR()).optional()}).passthrough(),nn=eF({access_token:eR(),id_token:eR().optional(),token_type:eR(),expires_in:eO().optional(),scope:eR().optional(),refresh_token:eR().optional()}).strip(),nr=eF({error:eR(),error_description:eR().optional(),error_uri:eR().optional()}),ni=eF({redirect_uris:eI(eR()).refine(e=>e.every(e=>URL.canParse(e)),{message:"redirect_uris must contain valid URLs"}),token_endpoint_auth_method:eR().optional(),grant_types:eI(eR()).optional(),response_types:eI(eR()).optional(),client_name:eR().optional(),client_uri:eR().optional(),logo_uri:eR().optional(),scope:eR().optional(),contacts:eI(eR()).optional(),tos_uri:eR().optional(),policy_uri:eR().optional(),jwks_uri:eR().optional(),jwks:eN().optional(),software_id:eR().optional(),software_version:eR().optional(),software_statement:eR().optional()}).strip(),no=eF({client_id:eR(),client_secret:eR().optional(),client_id_issued_at:eO().optional(),client_secret_expires_at:eO().optional()}).strip(),na=ni.merge(no);eF({error:eR(),error_description:eR().optional()}).strip(),eF({token:eR(),token_type_hint:eR().optional()}).strip();class ns extends Error{constructor(e,t){super(e),this.errorUri=t,this.name=this.constructor.name}toResponseObject(){let e={error:this.errorCode,error_description:this.message};return this.errorUri&&(e.error_uri=this.errorUri),e}get errorCode(){return this.constructor.errorCode}}class nl extends ns{}nl.errorCode="invalid_request";class nu extends ns{}nu.errorCode="invalid_client";class nc extends ns{}nc.errorCode="invalid_grant";class nd extends ns{}nd.errorCode="unauthorized_client";class nh extends ns{}nh.errorCode="unsupported_grant_type";class nf extends ns{}nf.errorCode="invalid_scope";class np extends ns{}np.errorCode="access_denied";class nm extends ns{}nm.errorCode="server_error";class ng extends ns{}ng.errorCode="temporarily_unavailable";class ny extends ns{}ny.errorCode="unsupported_response_type";class nv extends ns{}nv.errorCode="unsupported_token_type";class nx extends ns{}nx.errorCode="invalid_token";class nb extends ns{}nb.errorCode="method_not_allowed";class nw extends ns{}nw.errorCode="too_many_requests";class nk extends ns{}nk.errorCode="invalid_client_metadata";class nC extends ns{}nC.errorCode="insufficient_scope";let nS={[nl.errorCode]:nl,[nu.errorCode]:nu,[nc.errorCode]:nc,[nd.errorCode]:nd,[nh.errorCode]:nh,[nf.errorCode]:nf,[np.errorCode]:np,[nm.errorCode]:nm,[ng.errorCode]:ng,[ny.errorCode]:ny,[nv.errorCode]:nv,[nx.errorCode]:nx,[nb.errorCode]:nb,[nw.errorCode]:nw,[nk.errorCode]:nk,[nC.errorCode]:nC};function n_(e,t){let n=void 0!==e.client_secret;return 0===t.length?n?"client_secret_post":"none":n&&t.includes("client_secret_basic")?"client_secret_basic":n&&t.includes("client_secret_post")?"client_secret_post":t.includes("none")?"none":n?"client_secret_post":"none"}function nE(e,t,n,r){let{client_id:i,client_secret:o}=t;switch(e){case"client_secret_basic":var a,s,l,u,c=i,d=o,h=n;if(!d)throw Error("client_secret_basic authentication requires a client_secret");let f=btoa(`${c}:${d}`);h.set("Authorization",`Basic ${f}`);return;case"client_secret_post":a=i,s=o,(l=r).set("client_id",a),s&&l.set("client_secret",s);return;case"none":u=i,r.set("client_id",u);return;default:throw Error(`Unsupported client authentication method: ${e}`)}}async function nT(e){let t=e instanceof Response?e.status:void 0,n=e instanceof Response?await e.text():e;try{let{error:e,error_description:t,error_uri:r}=nr.parse(JSON.parse(n));return new(nS[e]||nm)(t||"",r)}catch(e){return new nm(`${t?`HTTP ${t}: `:""}Invalid OAuth error response: ${e}. Raw body: ${n}`)}}async function nP(e,t){var n,r;try{return await nA(e,t)}catch(i){if(i instanceof nu||i instanceof nd)return await (null==(n=e.invalidateCredentials)?void 0:n.call(e,"all")),await nA(e,t);if(i instanceof nc)return await (null==(r=e.invalidateCredentials)?void 0:r.call(e,"tokens")),await nA(e,t);throw i}}async function nA(e,{serverUrl:t,authorizationCode:n,scope:r,resourceMetadataUrl:i,fetchFn:o}){let a,s=t;try{(a=await nM(t,{resourceMetadataUrl:i},o)).authorization_servers&&a.authorization_servers.length>0&&(s=a.authorization_servers[0])}catch(e){}let l=await nj(t,e,a),u=await nN(t,{authorizationServerUrl:s},o),c=await Promise.resolve(e.clientInformation());if(!c){if(void 0!==n)throw Error("Existing OAuth client information is required when exchanging an authorization code");if(!e.saveClientInformation)throw Error("OAuth client information must be saveable for dynamic registration");let t=await nz(s,{metadata:u,clientMetadata:e.clientMetadata});await e.saveClientInformation(t),c=t}if(void 0!==n){let t=await e.codeVerifier(),r=await nI(s,{metadata:u,clientInformation:c,authorizationCode:n,codeVerifier:t,redirectUri:e.redirectUrl,resource:l,addClientAuthentication:e.addClientAuthentication,fetchFn:o});return await e.saveTokens(r),"AUTHORIZED"}let d=await e.tokens();if(null==d?void 0:d.refresh_token)try{let t=await nF(s,{metadata:u,clientInformation:c,refreshToken:d.refresh_token,resource:l,addClientAuthentication:e.addClientAuthentication});return await e.saveTokens(t),"AUTHORIZED"}catch(e){if(!(e instanceof ns)||e instanceof nm);else throw e}let h=e.state?await e.state():void 0,{authorizationUrl:f,codeVerifier:p}=await nL(s,{metadata:u,clientInformation:c,state:h,redirectUrl:e.redirectUrl,scope:r||e.clientMetadata.scope,resource:l});return await e.saveCodeVerifier(p),await e.redirectToAuthorization(f),"REDIRECT"}async function nj(e,t,n){let r=function(e){let t=new URL("string"==typeof e?e:e.href);return t.hash="",t}(e);if(t.validateResourceURL)return await t.validateResourceURL(r,null==n?void 0:n.resource);if(n){if(!function({requestedResource:e,configuredResource:t}){let n=new URL("string"==typeof e?e:e.href),r=new URL("string"==typeof t?t:t.href);if(n.origin!==r.origin||n.pathname.length<r.pathname.length)return!1;let i=n.pathname.endsWith("/")?n.pathname:n.pathname+"/",o=r.pathname.endsWith("/")?r.pathname:r.pathname+"/";return i.startsWith(o)}({requestedResource:r,configuredResource:n.resource}))throw Error(`Protected resource ${n.resource} does not match expected ${r} (or origin)`);return new URL(n.resource)}}async function nM(e,t,n=fetch){let r=await nD(e,"oauth-protected-resource",n,{protocolVersion:null==t?void 0:t.protocolVersion,metadataUrl:null==t?void 0:t.resourceMetadataUrl});if(!r||404===r.status)throw Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!r.ok)throw Error(`HTTP ${r.status} trying to load well-known OAuth protected resource metadata.`);return ne.parse(await r.json())}async function nR(e,t,n=fetch){try{return await n(e,{headers:t})}catch(r){if(r instanceof TypeError)if(t)return nR(e,void 0,n);else return;throw r}}async function nO(e,t,n=fetch){return await nR(e,{"MCP-Protocol-Version":t},n)}async function nD(e,t,n,r){var i,o,a,s,l;let u,c=new URL(e),d=null!=(i=null==r?void 0:r.protocolVersion)?i:e$;if(null==r?void 0:r.metadataUrl)u=new URL(r.metadataUrl);else{let e;(u=new URL((a=c.pathname,e=`/.well-known/${t}${a}`,a.endsWith("/")&&(e=e.slice(0,-1)),e),null!=(o=null==r?void 0:r.metadataServerUrl)?o:c)).search=c.search}let h=await nO(u,d,n);if(!(null==r?void 0:r.metadataUrl)&&(s=h,l=c.pathname,!s||404===s.status&&"/"!==l)){let e=new URL(`/.well-known/${t}`,c);h=await nO(e,d,n)}return h}async function nN(e,{authorizationServerUrl:t,protocolVersion:n}={},r=fetch){"string"==typeof e&&(e=new URL(e)),t||(t=e),"string"==typeof t&&(t=new URL(t)),null!=n||(n=e$);let i=await nD(t,"oauth-authorization-server",r,{protocolVersion:n,metadataServerUrl:t});if(i&&404!==i.status){if(!i.ok)throw Error(`HTTP ${i.status} trying to load well-known OAuth metadata`);return nt.parse(await i.json())}}async function nL(e,{metadata:t,clientInformation:n,redirectUrl:r,scope:i,state:o,resource:a}){let s,l="code",u="S256";if(t){if(s=new URL(t.authorization_endpoint),!t.response_types_supported.includes(l))throw Error(`Incompatible auth server: does not support response type ${l}`);if(!t.code_challenge_methods_supported||!t.code_challenge_methods_supported.includes(u))throw Error(`Incompatible auth server: does not support code challenge method ${u}`)}else s=new URL("/authorize",e);let c=await p(),d=c.code_verifier,h=c.code_challenge;return s.searchParams.set("response_type",l),s.searchParams.set("client_id",n.client_id),s.searchParams.set("code_challenge",h),s.searchParams.set("code_challenge_method",u),s.searchParams.set("redirect_uri",String(r)),o&&s.searchParams.set("state",o),i&&s.searchParams.set("scope",i),(null==i?void 0:i.includes("offline_access"))&&s.searchParams.append("prompt","consent"),a&&s.searchParams.set("resource",a.href),{authorizationUrl:s,codeVerifier:d}}async function nI(e,{metadata:t,clientInformation:n,authorizationCode:r,codeVerifier:i,redirectUri:o,resource:a,addClientAuthentication:s,fetchFn:l}){var u;let c="authorization_code",d=(null==t?void 0:t.token_endpoint)?new URL(t.token_endpoint):new URL("/token",e);if((null==t?void 0:t.grant_types_supported)&&!t.grant_types_supported.includes(c))throw Error(`Incompatible auth server: does not support grant type ${c}`);let h=new Headers({"Content-Type":"application/x-www-form-urlencoded"}),f=new URLSearchParams({grant_type:c,code:r,code_verifier:i,redirect_uri:String(o)});s?s(h,f,e,t):nE(n_(n,null!=(u=null==t?void 0:t.token_endpoint_auth_methods_supported)?u:[]),n,h,f),a&&f.set("resource",a.href);let p=await (null!=l?l:fetch)(d,{method:"POST",headers:h,body:f});if(!p.ok)throw await nT(p);return nn.parse(await p.json())}async function nF(e,{metadata:t,clientInformation:n,refreshToken:r,resource:i,addClientAuthentication:o,fetchFn:a}){var s;let l,u="refresh_token";if(t){if(l=new URL(t.token_endpoint),t.grant_types_supported&&!t.grant_types_supported.includes(u))throw Error(`Incompatible auth server: does not support grant type ${u}`)}else l=new URL("/token",e);let c=new Headers({"Content-Type":"application/x-www-form-urlencoded"}),d=new URLSearchParams({grant_type:u,refresh_token:r});o?o(c,d,e,t):nE(n_(n,null!=(s=null==t?void 0:t.token_endpoint_auth_methods_supported)?s:[]),n,c,d),i&&d.set("resource",i.href);let h=await (null!=a?a:fetch)(l,{method:"POST",headers:c,body:d});if(!h.ok)throw await nT(h);return nn.parse({refresh_token:r,...await h.json()})}async function nz(e,{metadata:t,clientMetadata:n,fetchFn:r}){let i;if(t){if(!t.registration_endpoint)throw Error("Incompatible auth server: does not support dynamic client registration");i=new URL(t.registration_endpoint)}else i=new URL("/register",e);let o=await (null!=r?r:fetch)(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!o.ok)throw await nT(o);return na.parse(await o.json())}},6301:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var c=1,d=1;function h(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function f(){var e={line:c,column:d};return function(t){return t.position=new p(e),y(r),t}}function p(e){this.start=e,this.end={line:c,column:d},this.source=l.source}p.prototype.content=e;var m=[];function g(t){var n=Error(l.source+":"+c+":"+d+": "+t);if(n.reason=t,n.filename=l.source,n.line=c,n.column=d,n.source=e,l.silent)m.push(n);else throw n}function y(t){var n=t.exec(e);if(n){var r=n[0];return h(r),e=e.slice(r.length),n}}function v(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return d+=2,h(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}y(r);var b,w=[];for(v(w);b=function(){var e=f(),n=y(i);if(n){if(x(),!y(o))return g("property missing ':'");var r=y(a),l=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return y(s),l}}();)!1!==b&&(w.push(b),v(w));return w}},6474:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},6517:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]])},6654:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let r=n(2115);function i(e,t){let n=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(n.current=o(e,r)),t&&(i.current=o(t,r))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return o}});let r=n(8229)._(n(2115)),i=n(5840),o=r.default.createContext(i.imageConfigDefault)},6766:(e,t,n)=>{"use strict";n.d(t,{default:()=>i.a});var r=n(1469),i=n.n(r)},6874:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return g},useLinkStatus:function(){return v}});let r=n(6966),i=n(5155),o=r._(n(2115)),a=n(2757),s=n(5227),l=n(9818),u=n(6654),c=n(9991),d=n(5929);n(3230);let h=n(4930),f=n(2664),p=n(6634);function m(e){return"string"==typeof e?e:(0,a.formatUrl)(e)}function g(e){let t,n,r,[a,g]=(0,o.useOptimistic)(h.IDLE_LINK_STATUS),v=(0,o.useRef)(null),{href:x,as:b,children:w,prefetch:k=null,passHref:C,replace:S,shallow:_,scroll:E,onClick:T,onMouseEnter:P,onTouchStart:A,legacyBehavior:j=!1,onNavigate:M,ref:R,unstable_dynamicOnHover:O,...D}=e;t=w,j&&("string"==typeof t||"number"==typeof t)&&(t=(0,i.jsx)("a",{children:t}));let N=o.default.useContext(s.AppRouterContext),L=!1!==k,I=null===k||"auto"===k?l.PrefetchKind.AUTO:l.PrefetchKind.FULL,{href:F,as:z}=o.default.useMemo(()=>{let e=m(x);return{href:e,as:b?m(b):e}},[x,b]);j&&(n=o.default.Children.only(t));let V=j?n&&"object"==typeof n&&n.ref:R,B=o.default.useCallback(e=>(null!==N&&(v.current=(0,h.mountLinkInstance)(e,F,N,I,L,g)),()=>{v.current&&((0,h.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,h.unmountPrefetchableInstance)(e)}),[L,F,N,I,g]),H={ref:(0,u.useMergedRef)(B,V),onClick(e){j||"function"!=typeof T||T(e),j&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),N&&(e.defaultPrevented||function(e,t,n,r,i,a,s){let{nodeName:l}=e.currentTarget;if(!("A"===l.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,f.isLocalURL)(t)){i&&(e.preventDefault(),location.replace(t));return}if(e.preventDefault(),s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}o.default.startTransition(()=>{(0,p.dispatchNavigateAction)(n||t,i?"replace":"push",null==a||a,r.current)})}}(e,F,z,v,S,E,M))},onMouseEnter(e){j||"function"!=typeof P||P(e),j&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),N&&L&&(0,h.onNavigationIntent)(e.currentTarget,!0===O)},onTouchStart:function(e){j||"function"!=typeof A||A(e),j&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),N&&L&&(0,h.onNavigationIntent)(e.currentTarget,!0===O)}};return(0,c.isAbsoluteUrl)(z)?H.href=z:j&&!C&&("a"!==n.type||"href"in n.props)||(H.href=(0,d.addBasePath)(z)),r=j?o.default.cloneElement(n,H):(0,i.jsx)("a",{...D,...H,children:t}),(0,i.jsx)(y.Provider,{value:a,children:r})}n(3180);let y=(0,o.createContext)(h.IDLE_LINK_STATUS),v=()=>(0,o.useContext)(y);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6983:(e,t,n)=>{"use strict";function r(e){return"object"==typeof e&&null!==e}n.d(t,{G:()=>r})},7328:(e,t,n)=>{"use strict";function r(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function i(e,t){var n=r(e,t,"get");return n.get?n.get.call(e):n.value}function o(e,t,n){var i=r(e,t,"set");if(i.set)i.set.call(e,n);else{if(!i.writable)throw TypeError("attempted to set read only private field");i.value=n}return n}n.d(t,{N:()=>h});var a,s=n(2115),l=n(6081),u=n(6101),c=n(9708),d=n(5155);function h(e){let t=e+"CollectionProvider",[n,r]=(0,l.A)(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{let{scope:t,children:n}=e,r=s.useRef(null),o=s.useRef(new Map).current;return(0,d.jsx)(i,{scope:t,itemMap:o,collectionRef:r,children:n})};a.displayName=t;let h=e+"CollectionSlot",f=(0,c.TL)(h),p=s.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(h,n),a=(0,u.s)(t,i.collectionRef);return(0,d.jsx)(f,{ref:a,children:r})});p.displayName=h;let m=e+"CollectionItemSlot",g="data-radix-collection-item",y=(0,c.TL)(m),v=s.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=s.useRef(null),l=(0,u.s)(t,a),c=o(m,n);return s.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),(0,d.jsx)(y,{...{[g]:""},ref:l,children:r})});return v.displayName=m,[{Provider:a,Slot:p,ItemSlot:v},function(t){let n=o(e+"CollectionConsumer",t);return s.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(g,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var f=new WeakMap;function p(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=function(e,t){let n=e.length,r=m(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}(e,t);return -1===n?void 0:e[n]}function m(e){return e!=e||0===e?0:Math.trunc(e)}a=new WeakMap,class e extends Map{set(e,t){return f.get(this)&&(this.has(e)?i(this,a)[i(this,a).indexOf(e)]=e:i(this,a).push(e)),super.set(e,t),this}insert(e,t,n){let r,o=this.has(t),s=i(this,a).length,l=m(e),u=l>=0?l:s+l,c=u<0||u>=s?-1:u;if(c===this.size||o&&c===this.size-1||-1===c)return this.set(t,n),this;let d=this.size+ +!o;l<0&&u++;let h=[...i(this,a)],f=!1;for(let e=u;e<d;e++)if(u===e){let i=h[e];h[e]===t&&(i=h[e+1]),o&&this.delete(t),r=this.get(i),this.set(t,n)}else{f||h[e-1]!==t||(f=!0);let n=h[f?e:e-1],i=r;r=this.get(n),this.delete(n),this.set(n,i)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=i(this,a).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=i(this,a).indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=i(this,a).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=i(this,a).indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return o(this,a,[]),super.clear()}delete(e){let t=super.delete(e);return t&&i(this,a).splice(i(this,a).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=p(i(this,a),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=p(i(this,a),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return i(this,a).indexOf(e)}keyAt(e){return p(i(this,a),e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i]=t,o=0,a=null!=i?i:this.at(0);for(let e of this)a=0===o&&1===t.length?e:Reflect.apply(r,this,[a,e,o,this]),o++;return a}reduceRight(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i]=t,o=null!=i?i:this.at(-1);for(let e=this.size-1;e>=0;e--){let n=this.at(e);o=e===this.size-1&&1===t.length?n:Reflect.apply(r,this,[o,n,e,this])}return o}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=[...this.entries()];return i.splice(...n),new e(i)}slice(t,n){let r=new e,i=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}constructor(e){super(e),function(e,t,n){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}(this,a,{writable:!0,value:void 0}),o(this,a,[...super.keys()]),f.set(this,!0)}}},7351:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});var r=n(6983);function i(e){return(0,r.G)(e)&&"offsetHeight"in e}},7489:(e,t,n)=>{"use strict";n.d(t,{b:()=>u});var r=n(2115),i=n(3655),o=n(5155),a="horizontal",s=["horizontal","vertical"],l=r.forwardRef((e,t)=>{var n;let{decorative:r,orientation:l=a,...u}=e,c=(n=l,s.includes(n))?l:a;return(0,o.jsx)(i.sG.div,{"data-orientation":c,...r?{role:"none"}:{"aria-orientation":"vertical"===c?c:void 0,role:"separator"},...u,ref:t})});l.displayName="Separator";var u=l},7494:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(2115);let i=n(8972).B?r.useLayoutEffect:r.useEffect},7544:(e,t)=>{"use strict";function n(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:r=!1}=void 0===e?{}:e;return t||n&&r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return n}})},7639:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("link-2-off",[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]])},7655:(e,t,n)=>{"use strict";n.d(t,{LM:()=>K,OK:()=>Y,VM:()=>C,bL:()=>q,lr:()=>D});var r=n(2115),i=n(3655),o=n(8905),a=n(6081),s=n(6101),l=n(9033),u=n(4315),c=n(2712),d=n(9367),h=n(5185),f=n(5155),p="ScrollArea",[m,g]=(0,a.A)(p),[y,v]=m(p),x=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:o="hover",dir:a,scrollHideDelay:l=600,...c}=e,[d,h]=r.useState(null),[p,m]=r.useState(null),[g,v]=r.useState(null),[x,b]=r.useState(null),[w,k]=r.useState(null),[C,S]=r.useState(0),[_,E]=r.useState(0),[T,P]=r.useState(!1),[A,j]=r.useState(!1),M=(0,s.s)(t,e=>h(e)),R=(0,u.jH)(a);return(0,f.jsx)(y,{scope:n,type:o,dir:R,scrollHideDelay:l,scrollArea:d,viewport:p,onViewportChange:m,content:g,onContentChange:v,scrollbarX:x,onScrollbarXChange:b,scrollbarXEnabled:T,onScrollbarXEnabledChange:P,scrollbarY:w,onScrollbarYChange:k,scrollbarYEnabled:A,onScrollbarYEnabledChange:j,onCornerWidthChange:S,onCornerHeightChange:E,children:(0,f.jsx)(i.sG.div,{dir:R,...c,ref:M,style:{position:"relative","--radix-scroll-area-corner-width":C+"px","--radix-scroll-area-corner-height":_+"px",...e.style}})})});x.displayName=p;var b="ScrollAreaViewport",w=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:o,nonce:a,...l}=e,u=v(b,n),c=r.useRef(null),d=(0,s.s)(t,c,u.onViewportChange);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),(0,f.jsx)(i.sG.div,{"data-radix-scroll-area-viewport":"",...l,ref:d,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,f.jsx)("div",{ref:u.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});w.displayName=b;var k="ScrollAreaScrollbar",C=r.forwardRef((e,t)=>{let{forceMount:n,...i}=e,o=v(k,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:s}=o,l="horizontal"===e.orientation;return r.useEffect(()=>(l?a(!0):s(!0),()=>{l?a(!1):s(!1)}),[l,a,s]),"hover"===o.type?(0,f.jsx)(S,{...i,ref:t,forceMount:n}):"scroll"===o.type?(0,f.jsx)(_,{...i,ref:t,forceMount:n}):"auto"===o.type?(0,f.jsx)(E,{...i,ref:t,forceMount:n}):"always"===o.type?(0,f.jsx)(T,{...i,ref:t}):null});C.displayName=k;var S=r.forwardRef((e,t)=>{let{forceMount:n,...i}=e,a=v(k,e.__scopeScrollArea),[s,l]=r.useState(!1);return r.useEffect(()=>{let e=a.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),l(!0)},r=()=>{t=window.setTimeout(()=>l(!1),a.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[a.scrollArea,a.scrollHideDelay]),(0,f.jsx)(o.C,{present:n||s,children:(0,f.jsx)(E,{"data-state":s?"visible":"hidden",...i,ref:t})})}),_=r.forwardRef((e,t)=>{var n;let{forceMount:i,...a}=e,s=v(k,e.__scopeScrollArea),l="horizontal"===e.orientation,u=$(()=>d("SCROLL_END"),100),[c,d]=(n={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},"hidden"));return r.useEffect(()=>{if("idle"===c){let e=window.setTimeout(()=>d("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(e)}},[c,s.scrollHideDelay,d]),r.useEffect(()=>{let e=s.viewport,t=l?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(d("SCROLL"),u()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[s.viewport,l,d,u]),(0,f.jsx)(o.C,{present:i||"hidden"!==c,children:(0,f.jsx)(T,{"data-state":"hidden"===c?"hidden":"visible",...a,ref:t,onPointerEnter:(0,h.m)(e.onPointerEnter,()=>d("POINTER_ENTER")),onPointerLeave:(0,h.m)(e.onPointerLeave,()=>d("POINTER_LEAVE"))})})}),E=r.forwardRef((e,t)=>{let n=v(k,e.__scopeScrollArea),{forceMount:i,...a}=e,[s,l]=r.useState(!1),u="horizontal"===e.orientation,c=$(()=>{if(n.viewport){let e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;l(u?e:t)}},10);return Z(n.viewport,c),Z(n.content,c),(0,f.jsx)(o.C,{present:i||s,children:(0,f.jsx)(T,{"data-state":s?"visible":"hidden",...a,ref:t})})}),T=r.forwardRef((e,t)=>{let{orientation:n="vertical",...i}=e,o=v(k,e.__scopeScrollArea),a=r.useRef(null),s=r.useRef(0),[l,u]=r.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=V(l.viewport,l.content),d={...i,sizes:l,onSizesChange:u,hasThumb:!!(c>0&&c<1),onThumbChange:e=>a.current=e,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:e=>s.current=e};function h(e,t){return function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr",i=B(n),o=t||i/2,a=n.scrollbar.paddingStart+o,s=n.scrollbar.size-n.scrollbar.paddingEnd-(i-o),l=n.content-n.viewport;return U([a,s],"ltr"===r?[0,l]:[-1*l,0])(e)}(e,s.current,l,t)}return"horizontal"===n?(0,f.jsx)(P,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){let e=H(o.viewport.scrollLeft,l,o.dir);a.current.style.transform="translate3d(".concat(e,"px, 0, 0)")}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollLeft=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollLeft=h(e,o.dir))}}):"vertical"===n?(0,f.jsx)(A,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){let e=H(o.viewport.scrollTop,l);a.current.style.transform="translate3d(0, ".concat(e,"px, 0)")}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollTop=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollTop=h(e))}}):null}),P=r.forwardRef((e,t)=>{let{sizes:n,onSizesChange:i,...o}=e,a=v(k,e.__scopeScrollArea),[l,u]=r.useState(),c=r.useRef(null),d=(0,s.s)(t,c,a.onScrollbarXChange);return r.useEffect(()=>{c.current&&u(getComputedStyle(c.current))},[c]),(0,f.jsx)(R,{"data-orientation":"horizontal",...o,ref:d,sizes:n,style:{bottom:0,left:"rtl"===a.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===a.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":B(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),function(e,t){return e>0&&e<t}(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&l&&i({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:z(l.paddingLeft),paddingEnd:z(l.paddingRight)}})}})}),A=r.forwardRef((e,t)=>{let{sizes:n,onSizesChange:i,...o}=e,a=v(k,e.__scopeScrollArea),[l,u]=r.useState(),c=r.useRef(null),d=(0,s.s)(t,c,a.onScrollbarYChange);return r.useEffect(()=>{c.current&&u(getComputedStyle(c.current))},[c]),(0,f.jsx)(R,{"data-orientation":"vertical",...o,ref:d,sizes:n,style:{top:0,right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":B(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),function(e,t){return e>0&&e<t}(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&l&&i({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:z(l.paddingTop),paddingEnd:z(l.paddingBottom)}})}})}),[j,M]=m(k),R=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:o,hasThumb:a,onThumbChange:u,onThumbPointerUp:c,onThumbPointerDown:d,onThumbPositionChange:p,onDragScroll:m,onWheelScroll:g,onResize:y,...x}=e,b=v(k,n),[w,C]=r.useState(null),S=(0,s.s)(t,e=>C(e)),_=r.useRef(null),E=r.useRef(""),T=b.viewport,P=o.content-o.viewport,A=(0,l.c)(g),M=(0,l.c)(p),R=$(y,10);function O(e){_.current&&m({x:e.clientX-_.current.left,y:e.clientY-_.current.top})}return r.useEffect(()=>{let e=e=>{let t=e.target;(null==w?void 0:w.contains(t))&&A(e,P)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[T,w,P,A]),r.useEffect(M,[o,M]),Z(w,R),Z(b.content,R),(0,f.jsx)(j,{scope:n,scrollbar:w,hasThumb:a,onThumbChange:(0,l.c)(u),onThumbPointerUp:(0,l.c)(c),onThumbPositionChange:M,onThumbPointerDown:(0,l.c)(d),children:(0,f.jsx)(i.sG.div,{...x,ref:S,style:{position:"absolute",...x.style},onPointerDown:(0,h.m)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),_.current=w.getBoundingClientRect(),E.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",b.viewport&&(b.viewport.style.scrollBehavior="auto"),O(e))}),onPointerMove:(0,h.m)(e.onPointerMove,O),onPointerUp:(0,h.m)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=E.current,b.viewport&&(b.viewport.style.scrollBehavior=""),_.current=null})})})}),O="ScrollAreaThumb",D=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=M(O,e.__scopeScrollArea);return(0,f.jsx)(o.C,{present:n||i.hasThumb,children:(0,f.jsx)(N,{ref:t,...r})})}),N=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:o,...a}=e,l=v(O,n),u=M(O,n),{onThumbPositionChange:c}=u,d=(0,s.s)(t,e=>u.onThumbChange(e)),p=r.useRef(void 0),m=$(()=>{p.current&&(p.current(),p.current=void 0)},100);return r.useEffect(()=>{let e=l.viewport;if(e){let t=()=>{m(),p.current||(p.current=W(e,c),c())};return c(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[l.viewport,m,c]),(0,f.jsx)(i.sG.div,{"data-state":u.hasThumb?"visible":"hidden",...a,ref:d,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:(0,h.m)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;u.onThumbPointerDown({x:n,y:r})}),onPointerUp:(0,h.m)(e.onPointerUp,u.onThumbPointerUp)})});D.displayName=O;var L="ScrollAreaCorner",I=r.forwardRef((e,t)=>{let n=v(L,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?(0,f.jsx)(F,{...e,ref:t}):null});I.displayName=L;var F=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,...o}=e,a=v(L,n),[s,l]=r.useState(0),[u,c]=r.useState(0),d=!!(s&&u);return Z(a.scrollbarX,()=>{var e;let t=(null==(e=a.scrollbarX)?void 0:e.offsetHeight)||0;a.onCornerHeightChange(t),c(t)}),Z(a.scrollbarY,()=>{var e;let t=(null==(e=a.scrollbarY)?void 0:e.offsetWidth)||0;a.onCornerWidthChange(t),l(t)}),d?(0,f.jsx)(i.sG.div,{...o,ref:t,style:{width:s,height:u,position:"absolute",right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:0,...e.style}}):null});function z(e){return e?parseInt(e,10):0}function V(e,t){let n=e/t;return isNaN(n)?0:n}function B(e){let t=V(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-n)*t,18)}function H(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",r=B(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s=(0,d.q)(e,"ltr"===n?[0,a]:[-1*a,0]);return U([0,a],[0,o-r])(s)}function U(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}var W=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n={left:e.scrollLeft,top:e.scrollTop},r=0;return!function i(){let o={left:e.scrollLeft,top:e.scrollTop},a=n.left!==o.left,s=n.top!==o.top;(a||s)&&t(),n=o,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function $(e,t){let n=(0,l.c)(e),i=r.useRef(0);return r.useEffect(()=>()=>window.clearTimeout(i.current),[]),r.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(n,t)},[n,t])}function Z(e,t){let n=(0,l.c)(t);(0,c.N)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var q=x,K=w,Y=I},7863:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},7900:(e,t,n)=>{"use strict";n.d(t,{n:()=>d});var r=n(2115),i=n(6101),o=n(3655),a=n(9033),s=n(5155),l="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",c={bubbles:!1,cancelable:!0},d=r.forwardRef((e,t)=>{let{loop:n=!1,trapped:d=!1,onMountAutoFocus:g,onUnmountAutoFocus:y,...v}=e,[x,b]=r.useState(null),w=(0,a.c)(g),k=(0,a.c)(y),C=r.useRef(null),S=(0,i.s)(t,e=>b(e)),_=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(d){let e=function(e){if(_.paused||!x)return;let t=e.target;x.contains(t)?C.current=t:p(C.current,{select:!0})},t=function(e){if(_.paused||!x)return;let t=e.relatedTarget;null!==t&&(x.contains(t)||p(C.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&p(x)});return x&&n.observe(x,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[d,x,_.paused]),r.useEffect(()=>{if(x){m.add(_);let e=document.activeElement;if(!x.contains(e)){let t=new CustomEvent(l,c);x.addEventListener(l,w),x.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(p(r,{select:t}),document.activeElement!==n)return}(h(x).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&p(x))}return()=>{x.removeEventListener(l,w),setTimeout(()=>{let t=new CustomEvent(u,c);x.addEventListener(u,k),x.dispatchEvent(t),t.defaultPrevented||p(null!=e?e:document.body,{select:!0}),x.removeEventListener(u,k),m.remove(_)},0)}}},[x,w,k,_]);let E=r.useCallback(e=>{if(!n&&!d||_.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[i,o]=function(e){let t=h(e);return[f(t,e),f(t.reverse(),e)]}(t);i&&o?e.shiftKey||r!==o?e.shiftKey&&r===i&&(e.preventDefault(),n&&p(o,{select:!0})):(e.preventDefault(),n&&p(i,{select:!0})):r===t&&e.preventDefault()}},[n,d,_.paused]);return(0,s.jsx)(o.sG.div,{tabIndex:-1,...v,ref:S,onKeyDown:E})});function h(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function f(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function p(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}d.displayName="FocusScope";var m=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=g(e,t)).unshift(t)},remove(t){var n;null==(n=(e=g(e,t))[0])||n.resume()}}}();function g(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},7915:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});let r=function(e){var t,n;if(null==e)return o;if("function"==typeof e)return i(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=r(e[n]);return i(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,i(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,i(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function i(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function o(){return!0}},7924:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,i.default)(e),o="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,i=e.value;o?t(r,i,e):i&&((n=n||{})[r]=i)}}),n};var i=r(n(6301))},8021:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]])},8168:(e,t,n)=>{"use strict";n.d(t,{Eq:()=>u});var r=new WeakMap,i=new WeakMap,o={},a=0,s=function(e){return e&&(e.host||s(e.parentNode))},l=function(e,t,n,l){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=s(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});o[n]||(o[n]=new WeakMap);var c=o[n],d=[],h=new Set,f=new Set(u),p=function(e){!e||h.has(e)||(h.add(e),p(e.parentNode))};u.forEach(p);var m=function(e){!e||f.has(e)||Array.prototype.forEach.call(e.children,function(e){if(h.has(e))m(e);else try{var t=e.getAttribute(l),o=null!==t&&"false"!==t,a=(r.get(e)||0)+1,s=(c.get(e)||0)+1;r.set(e,a),c.set(e,s),d.push(e),1===a&&o&&i.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute(l,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),h.clear(),a++,function(){d.forEach(function(e){var t=r.get(e)-1,o=c.get(e)-1;r.set(e,t),c.set(e,o),t||(i.has(e)||e.removeAttribute(l),i.delete(e)),o||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,i=new WeakMap,o={})}},u=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),l(r,i,n,"aria-hidden")):function(){return null}}},8240:(e,t,n)=>{"use strict";n.d(t,{oz:()=>nc});var r={};n.r(r),n.d(r,{boolean:()=>y,booleanish:()=>v,commaOrSpaceSeparated:()=>C,commaSeparated:()=>k,number:()=>b,overloadedBoolean:()=>x,spaceSeparated:()=>w});var i={};n.r(i),n.d(i,{attentionMarkers:()=>tf,contentInitial:()=>ts,disable:()=>tp,document:()=>ta,flow:()=>tu,flowInitial:()=>tl,insideSpan:()=>th,string:()=>tc,text:()=>td});var o=n(4093);let a=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,s=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,l={};function u(e,t){return((t||l).jsx?s:a).test(e)}let c=/[ \t\n\f\r]/g;function d(e){return""===e.replace(c,"")}class h{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function f(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new h(n,r,t)}function p(e){return e.toLowerCase()}h.prototype.normal={},h.prototype.property={},h.prototype.space=void 0;class m{constructor(e,t){this.attribute=t,this.property=e}}m.prototype.attribute="",m.prototype.booleanish=!1,m.prototype.boolean=!1,m.prototype.commaOrSpaceSeparated=!1,m.prototype.commaSeparated=!1,m.prototype.defined=!1,m.prototype.mustUseProperty=!1,m.prototype.number=!1,m.prototype.overloadedBoolean=!1,m.prototype.property="",m.prototype.spaceSeparated=!1,m.prototype.space=void 0;let g=0,y=S(),v=S(),x=S(),b=S(),w=S(),k=S(),C=S();function S(){return 2**++g}let _=Object.keys(r);class E extends m{constructor(e,t,n,i){let o=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",i),"number"==typeof n)for(;++o<_.length;){let e=_[o];!function(e,t,n){n&&(e[t]=n)}(this,_[o],(n&r[e])===r[e])}}}function T(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let o=new E(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[p(r)]=r,n[p(o.attribute)]=r}return new h(t,n,e.space)}E.prototype.defined=!0;let P=T({properties:{ariaActiveDescendant:null,ariaAtomic:v,ariaAutoComplete:null,ariaBusy:v,ariaChecked:v,ariaColCount:b,ariaColIndex:b,ariaColSpan:b,ariaControls:w,ariaCurrent:null,ariaDescribedBy:w,ariaDetails:null,ariaDisabled:v,ariaDropEffect:w,ariaErrorMessage:null,ariaExpanded:v,ariaFlowTo:w,ariaGrabbed:v,ariaHasPopup:null,ariaHidden:v,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:w,ariaLevel:b,ariaLive:null,ariaModal:v,ariaMultiLine:v,ariaMultiSelectable:v,ariaOrientation:null,ariaOwns:w,ariaPlaceholder:null,ariaPosInSet:b,ariaPressed:v,ariaReadOnly:v,ariaRelevant:null,ariaRequired:v,ariaRoleDescription:w,ariaRowCount:b,ariaRowIndex:b,ariaRowSpan:b,ariaSelected:v,ariaSetSize:b,ariaSort:null,ariaValueMax:b,ariaValueMin:b,ariaValueNow:b,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function A(e,t){return t in e?e[t]:t}function j(e,t){return A(e,t.toLowerCase())}let M=T({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:k,acceptCharset:w,accessKey:w,action:null,allow:null,allowFullScreen:y,allowPaymentRequest:y,allowUserMedia:y,alt:null,as:null,async:y,autoCapitalize:null,autoComplete:w,autoFocus:y,autoPlay:y,blocking:w,capture:null,charSet:null,checked:y,cite:null,className:w,cols:b,colSpan:null,content:null,contentEditable:v,controls:y,controlsList:w,coords:b|k,crossOrigin:null,data:null,dateTime:null,decoding:null,default:y,defer:y,dir:null,dirName:null,disabled:y,download:x,draggable:v,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:y,formTarget:null,headers:w,height:b,hidden:x,high:b,href:null,hrefLang:null,htmlFor:w,httpEquiv:w,id:null,imageSizes:null,imageSrcSet:null,inert:y,inputMode:null,integrity:null,is:null,isMap:y,itemId:null,itemProp:w,itemRef:w,itemScope:y,itemType:w,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:y,low:b,manifest:null,max:null,maxLength:b,media:null,method:null,min:null,minLength:b,multiple:y,muted:y,name:null,nonce:null,noModule:y,noValidate:y,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:y,optimum:b,pattern:null,ping:w,placeholder:null,playsInline:y,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:y,referrerPolicy:null,rel:w,required:y,reversed:y,rows:b,rowSpan:b,sandbox:w,scope:null,scoped:y,seamless:y,selected:y,shadowRootClonable:y,shadowRootDelegatesFocus:y,shadowRootMode:null,shape:null,size:b,sizes:null,slot:null,span:b,spellCheck:v,src:null,srcDoc:null,srcLang:null,srcSet:null,start:b,step:null,style:null,tabIndex:b,target:null,title:null,translate:null,type:null,typeMustMatch:y,useMap:null,value:v,width:b,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:w,axis:null,background:null,bgColor:null,border:b,borderColor:null,bottomMargin:b,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:y,declare:y,event:null,face:null,frame:null,frameBorder:null,hSpace:b,leftMargin:b,link:null,longDesc:null,lowSrc:null,marginHeight:b,marginWidth:b,noResize:y,noHref:y,noShade:y,noWrap:y,object:null,profile:null,prompt:null,rev:null,rightMargin:b,rules:null,scheme:null,scrolling:v,standby:null,summary:null,text:null,topMargin:b,valueType:null,version:null,vAlign:null,vLink:null,vSpace:b,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:y,disableRemotePlayback:y,prefix:null,property:null,results:b,security:null,unselectable:null},space:"html",transform:j}),R=T({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:C,accentHeight:b,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:b,amplitude:b,arabicForm:null,ascent:b,attributeName:null,attributeType:null,azimuth:b,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:b,by:null,calcMode:null,capHeight:b,className:w,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:b,diffuseConstant:b,direction:null,display:null,dur:null,divisor:b,dominantBaseline:null,download:y,dx:null,dy:null,edgeMode:null,editable:null,elevation:b,enableBackground:null,end:null,event:null,exponent:b,externalResourcesRequired:null,fill:null,fillOpacity:b,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:k,g2:k,glyphName:k,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:b,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:b,horizOriginX:b,horizOriginY:b,id:null,ideographic:b,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:b,k:b,k1:b,k2:b,k3:b,k4:b,kernelMatrix:C,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:b,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:b,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:b,overlineThickness:b,paintOrder:null,panose1:null,path:null,pathLength:b,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:w,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:b,pointsAtY:b,pointsAtZ:b,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:C,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:C,rev:C,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:C,requiredFeatures:C,requiredFonts:C,requiredFormats:C,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:b,specularExponent:b,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:b,strikethroughThickness:b,string:null,stroke:null,strokeDashArray:C,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:b,strokeOpacity:b,strokeWidth:null,style:null,surfaceScale:b,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:C,tabIndex:b,tableValues:null,target:null,targetX:b,targetY:b,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:C,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:b,underlineThickness:b,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:b,values:null,vAlphabetic:b,vMathematical:b,vectorEffect:null,vHanging:b,vIdeographic:b,version:null,vertAdvY:b,vertOriginX:b,vertOriginY:b,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:b,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:A}),O=T({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),D=T({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:j}),N=T({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),L=f([P,M,O,D,N],"html"),I=f([P,R,O,D,N],"svg"),F=/[A-Z]/g,z=/-[a-z]/g,V=/^data[-\w.:]+$/i;function B(e){return"-"+e.toLowerCase()}function H(e){return e.charAt(1).toUpperCase()}let U={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"};var W=n(3724);let $=q("end"),Z=q("start");function q(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function K(e){return e&&"object"==typeof e?"position"in e||"type"in e?G(e.position):"start"in e||"end"in e?G(e):"line"in e||"column"in e?Y(e):"":""}function Y(e){return X(e&&e.line)+":"+X(e&&e.column)}function G(e){return Y(e&&e.start)+"-"+Y(e&&e.end)}function X(e){return e&&"number"==typeof e?e:1}class Q extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=K(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Q.prototype.file="",Q.prototype.name="",Q.prototype.reason="",Q.prototype.message="",Q.prototype.stack="",Q.prototype.column=void 0,Q.prototype.line=void 0,Q.prototype.ancestors=void 0,Q.prototype.cause=void 0,Q.prototype.fatal=void 0,Q.prototype.place=void 0,Q.prototype.ruleId=void 0,Q.prototype.source=void 0;let J={}.hasOwnProperty,ee=new Map,et=/[A-Z]/g,en=new Set(["table","tbody","thead","tfoot","tr"]),er=new Set(["td","th"]),ei="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function eo(e,t,n){return"element"===t.type?function(e,t,n){let r=e.schema;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(e.schema=I),e.ancestors.push(t);let i=eu(e,t.tagName,!1),o=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&J.call(t.properties,r)){let o=function(e,t,n){let r=function(e,t){let n=p(t),r=t,i=m;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&V.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(z,H);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!z.test(e)){let n=e.replace(F,B);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=E}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){let n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return W(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new Q("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=ei+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)J.call(e,t)&&(n[function(e){let t=e.replace(et,ed);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?U[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(o){let[r,a]=o;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof a&&er.has(t.tagName)?n=a:i[r]=a}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(e,t),a=el(e,t);return en.has(t.tagName)&&(a=a.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&d(e.value):d(e))})),ea(e,o,i,t),es(o,a),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return(0,o.ok)("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}ec(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema;"svg"===t.name&&"html"===r.space&&(e.schema=I),e.ancestors.push(t);let i=null===t.name?e.Fragment:eu(e,t.name,!0),a=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];(0,o.ok)("ExpressionStatement"===t.type);let i=t.expression;(0,o.ok)("ObjectExpression"===i.type);let a=i.properties[0];(0,o.ok)("SpreadElement"===a.type),Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else ec(e,t.position);else{let i,a=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];(0,o.ok)("ExpressionStatement"===t.type),i=e.evaluater.evaluateExpression(t.expression)}else ec(e,t.position);else i=null===r.value||r.value;n[a]=i}return n}(e,t),s=el(e,t);return ea(e,a,i,t),es(a,s),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ec(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return es(r,el(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?t.value:void 0}function ea(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function es(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function el(e,t){let n=[],r=-1,i=e.passKeys?new Map:ee;for(;++r<t.children.length;){let o,a=t.children[r];if(e.passKeys){let e="element"===a.type?a.tagName:"mdxJsxFlowElement"===a.type||"mdxJsxTextElement"===a.type?a.name:void 0;if(e){let t=i.get(e)||0;o=e+"-"+t,i.set(e,t+1)}}let s=eo(e,a,o);void 0!==s&&n.push(s)}return n}function eu(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),i=-1;for(;++i<n.length;){let t=u(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}(0,o.ok)(e,"always a result"),r=e}else r=u(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return J.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);ec(e)}function ec(e,t){let n=new Q("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=ei+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ed(e){return"-"+e.toLowerCase()}let eh={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"]};var ef=n(5155);n(2115);var ep=n(4392),em=n(1603);class eg{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&ey(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),ey(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ey(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);ey(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);ey(this.left,t.reverse())}}}function ey(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 ev(e){let t,n,r,i,o,a,s,l={},u=-1,c=new eg(e);for(;++u<c.length;){for(;u in l;)u=l[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((r=0)<(a=t[1]._tokenizer.events).length&&"lineEndingBlank"===a[r][1].type&&(r+=2),r<a.length&&"content"===a[r][1].type))for(;++r<a.length&&"content"!==a[r][1].type;)"chunkText"===a[r][1].type&&(a[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(l,function(e,t){let n,r,i=e.get(t)[1],o=e.get(t)[2],a=t-1,s=[],l=i._tokenizer;!l&&(l=o.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));let u=l.events,c=[],d={},h=-1,f=i,p=0,m=0,g=[0];for(;f;){for(;e.get(++a)[1]!==f;);s.push(a),!f._tokenizer&&(n=o.sliceStream(f),f.next||n.push(null),r&&l.defineSkip(f.start),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(n),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),r=f,f=f.next}for(f=i;++h<u.length;)"exit"===u[h][0]&&"enter"===u[h-1][0]&&u[h][1].type===u[h-1][1].type&&u[h][1].start.line!==u[h][1].end.line&&(m=h+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(l.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),h=g.length;h--;){let t=u.slice(g[h],g[h+1]),n=s.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),h=-1;++h<c.length;)d[p+c[h][0]]=p+c[h][1],p+=c[h][1]-c[h][0]-1;return d}(c,u)),u=l[u],s=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(i=c.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(o=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,o))}}return(0,em.m)(e,0,1/0,c.slice(0)),!s}var ex=n(9381),eb=n(4581),ew=n(2556);let ek={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,eb.N)(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return(0,ew.HP)(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},eC={tokenize:function(e){let t,n,r,i=this,o=[],a=0;return s;function s(t){if(a<o.length){let n=o[a];return i.containerState=n[1],e.attempt(n[0].continuation,l,u)(t)}return u(t)}function l(e){if(a++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&y();let r=i.events.length,o=r;for(;o--;)if("exit"===i.events[o][0]&&"chunkFlow"===i.events[o][1].type){n=i.events[o][1].end;break}g(a);let s=r;for(;s<i.events.length;)i.events[s][1].end={...n},s++;return(0,em.m)(i.events,o+1,0,i.events.slice(r)),i.events.length=s,u(e)}return s(e)}function u(n){if(a===o.length){if(!t)return h(n);if(t.currentConstruct&&t.currentConstruct.concrete)return p(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(eS,c,d)(n)}function c(e){return t&&y(),g(a),h(e)}function d(e){return i.parser.lazy[i.now().line]=a!==o.length,r=i.now().offset,p(e)}function h(t){return i.containerState={},e.attempt(eS,f,p)(t)}function f(e){return a++,o.push([i.currentConstruct,i.containerState]),h(e)}function p(r){if(null===r){t&&y(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return(0,ew.HP)(n)?(e.consume(n),m(e.exit("chunkFlow")),a=0,i.interrupt=void 0,s):(e.consume(n),t)}(r)}function m(e,o){let s=i.sliceStream(e);if(o&&s.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(s),i.parser.lazy[e.start.line]){let e,n,o=t.events.length;for(;o--;)if(t.events[o][1].start.offset<r&&(!t.events[o][1].end||t.events[o][1].end.offset>r))return;let s=i.events.length,l=s;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){if(e){n=i.events[l][1].end;break}e=!0}for(g(a),o=s;o<i.events.length;)i.events[o][1].end={...n},o++;(0,em.m)(i.events,l+1,0,i.events.slice(s)),i.events.length=o}}function g(t){let n=o.length;for(;n-- >t;){let t=o[n];i.containerState=t[1],t[0].exit.call(i,e)}o.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},eS={tokenize:function(e,t,n){return(0,eb.N)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var e_=n(5333);let eE={resolve:function(e){return ev(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):(0,ew.HP)(t)?e.check(eT,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},eT={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,eb.N)(e,i,"linePrefix")};function i(i){if(null===i||(0,ew.HP)(i))return n(i);let o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},eP={tokenize:function(e){let t=this,n=e.attempt(e_.B,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,(0,eb.N)(e,e.attempt(this.parser.constructs.flow,r,e.attempt(eE,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},eA={resolveAll:eO()},ej=eR("string"),eM=eR("text");function eR(e){return{resolveAll:eO("text"===e?eD:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return l(e)?i(e):a(e)}function a(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),s)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function eO(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function eD(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],o=t.sliceStream(i),a=o.length,s=-1,l=0;for(;a--;){let e=o[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)r=!0,l++;else if(-1===e);else{a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){let o={type:n===e.length||r||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:i.start._bufferIndex+s,_index:i.start._index+a,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...o.start},i.start.offset===i.end.offset?Object.assign(i,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}let eN={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(o){var a;return e.enter("thematicBreak"),r=a=o,function o(a){return a===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),(0,ew.On)(n)?(0,eb.N)(e,o,"whitespace")(n):o(n))}(a)):i>=3&&(null===a||(0,ew.HP)(a))?(e.exit("thematicBreak"),t(a)):n(a)}(a)}}},eL={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(e_.B,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,(0,eb.N)(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!(0,ew.On)(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eF,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,(0,eb.N)(e,e.attempt(eL,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:(0,ew.BM)(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(eN,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return(0,ew.BM)(i)&&++a<10?(e.consume(i),t):(!r.interrupt||a<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),s(i)):n(i)}(t)}return n(t)};function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(e_.B,r.interrupt?n:l,e.attempt(eI,c,u))}function l(e){return r.containerState.initialBlankLine=!0,o++,c(e)}function u(t){return(0,ew.On)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},eI={partial:!0,tokenize:function(e,t,n){let r=this;return(0,eb.N)(e,function(e){let i=r.events[r.events.length-1];return!(0,ew.On)(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},eF={partial:!0,tokenize:function(e,t,n){let r=this;return(0,eb.N)(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},ez={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return(0,ew.On)(t)?(0,eb.N)(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(ez,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return(0,ew.On)(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function eV(e,t,n,r,i,o,a,s,l){let u=l||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),d):null===t||32===t||41===t||(0,ew.JQ)(t)?n(t):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),p(t))};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(n))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||(0,ew.HP)(t)?n(t):(e.consume(t),92===t?f:h)}function f(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function p(i){return!c&&(null===i||41===i||(0,ew.Ee)(i))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(i)):c<u&&40===i?(e.consume(i),c++,p):41===i?(e.consume(i),c--,p):null===i||32===i||40===i||(0,ew.JQ)(i)?n(i):(e.consume(i),92===i?m:p)}function m(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function eB(e,t,n,r,i,o){let a,s=this,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),u};function u(d){return l>999||null===d||91===d||93===d&&!a||94===d&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):93===d?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(0,ew.HP)(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||(0,ew.HP)(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),a||(a=!(0,ew.On)(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function eH(e,t,n,r,i,o){let a;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s):n(t)};function s(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===a?(e.exit(o),s(a)):null===t?n(t):(0,ew.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,eb.N)(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===a||null===t||(0,ew.HP)(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return t===a||92===t?(e.consume(t),u):u(t)}}function eU(e,t){let n;return function r(i){return(0,ew.HP)(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):(0,ew.On)(i)?(0,eb.N)(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}var eW=n(3386);let e$={partial:!0,tokenize:function(e,t,n){return function(t){return(0,ew.Ee)(t)?eU(e,r)(t):n(t)};function r(t){return eH(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return(0,ew.On)(t)?(0,eb.N)(e,o,"whitespace")(t):o(t)}function o(e){return null===e||(0,ew.HP)(e)?t(e):n(e)}}},eZ={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),(0,eb.N)(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?o(n):(0,ew.HP)(n)?e.attempt(eq,t,o)(n):(e.enter("codeFlowValue"),function n(r){return null===r||(0,ew.HP)(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function o(n){return e.exit("codeIndented"),t(n)}}},eq={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):(0,ew.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):(0,eb.N)(e,o,"linePrefix",5)(t)}function o(e){let o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):(0,ew.HP)(e)?i(e):n(e)}}},eK={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);let a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=a,e.push(["exit",a,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var a;let s,l=i.events.length;for(;l--;)if("lineEnding"!==i.events[l][1].type&&"linePrefix"!==i.events[l][1].type&&"content"!==i.events[l][1].type){s="paragraph"===i.events[l][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||s)?(e.enter("setextHeadingLine"),r=t,a=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),(0,ew.On)(n)?(0,eb.N)(e,o,"lineSuffix")(n):o(n))}(a)):n(t)};function o(r){return null===r||(0,ew.HP)(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},eY=["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"],eG=["pre","script","style","textarea"],eX={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(e_.B,t,n)}}},eQ={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return(0,ew.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},eJ={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},e0={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(t){return e.enter("codeFencedFence"),(0,ew.On)(t)?(0,eb.N)(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o>=s?(e.exit("codeFencedFenceSequence"),(0,ew.On)(i)?(0,eb.N)(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||(0,ew.HP)(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},a=0,s=0;return function(t){var o=t;let u=i.events[i.events.length-1];return a=u&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=o,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(s++,e.consume(i),t):s<3?n(i):(e.exit("codeFencedFenceSequence"),(0,ew.On)(i)?(0,eb.N)(e,l,"whitespace")(i):l(i))}(o)};function l(o){return null===o||(0,ew.HP)(o)?(e.exit("codeFencedFence"),i.interrupt?t(o):e.check(eJ,c,p)(o)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,ew.HP)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(i)):(0,ew.On)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,eb.N)(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(o))}function u(t){return null===t||(0,ew.HP)(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,ew.HP)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(o,p,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h}function h(t){return a>0&&(0,ew.On)(t)?(0,eb.N)(e,f,"linePrefix",a+1)(t):f(t)}function f(t){return null===t||(0,ew.HP)(t)?e.check(eJ,c,p)(t):(e.enter("codeFlowValue"),function t(n){return null===n||(0,ew.HP)(n)?(e.exit("codeFlowValue"),f(n)):(e.consume(n),t)}(t))}function p(n){return e.exit("codeFenced"),t(n)}}},e1=document.createElement("i");function e2(e){let t="&"+e+";";e1.innerHTML=t;let n=e1.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let e5={name:"characterReference",tokenize:function(e,t,n){let r,i,o=this,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=ew.lV,u(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=ew.ok,u):(e.enter("characterReferenceValue"),r=7,i=ew.BM,u(t))}function u(s){if(59===s&&a){let r=e.exit("characterReferenceValue");return i!==ew.lV||e2(o.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&a++<r?(e.consume(s),u):n(s)}}},e4={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return(0,ew.ol)(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},e3={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),(0,eb.N)(e,t,"linePrefix")}}};var e9=n(1877);let e6={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&(0,em.m)(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,o,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=a);let l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[i-2][1].start}};return o=[["enter",l,t],["enter",u,t]],o=(0,em.V)(o,e.slice(r+1,r+s+3)),o=(0,em.V)(o,[["enter",c,t]]),o=(0,em.V)(o,(0,e9.W)(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),o=(0,em.V)(o,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),o=(0,em.V)(o,e.slice(i+1)),o=(0,em.V)(o,[["exit",l,t]]),(0,em.m)(e,r,e.length,o),e},tokenize:function(e,t,n){let r,i,o=this,a=o.events.length;for(;a--;)if(("labelImage"===o.events[a][1].type||"labelLink"===o.events[a][1].type)&&!o.events[a][1]._balanced){r=o.events[a][1];break}return function(t){return r?r._inactive?c(t):(i=o.parser.defined.includes((0,eW.B)(o.sliceSerialize({start:r.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(e7,u,i?u:c)(t):91===t?e.attempt(e8,u,i?l:c)(t):i?u(t):c(t)}function l(t){return e.attempt(te,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},e7={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return(0,ew.Ee)(t)?eU(e,i)(t):i(t)}function i(t){return 41===t?u(t):eV(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return(0,ew.Ee)(t)?eU(e,s)(t):u(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?eH(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function l(t){return(0,ew.Ee)(t)?eU(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},e8={tokenize:function(e,t,n){let r=this;return function(t){return eB.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes((0,eW.B)(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},te={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},tt={name:"labelStartImage",resolveAll:e6.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};var tn=n(9535);let tr={name:"attention",resolveAll:function(e,t){let n,r,i,o,a,s,l,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let d={...e[n][1].end},h={...e[c][1].start};ti(d,-s),ti(h,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:h},i={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:s>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[n][1].end={...o.start},e[c][1].start={...a.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=(0,em.V)(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=(0,em.V)(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=(0,em.V)(l,(0,e9.W)(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),l=(0,em.V)(l,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,l=(0,em.V)(l,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,(0,em.m)(e,n-1,c-n+3,l),c=n+l.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,o=(0,tn.S)(i);return function(a){return n=a,e.enter("attentionSequence"),function a(s){if(s===n)return e.consume(s),a;let l=e.exit("attentionSequence"),u=(0,tn.S)(s),c=!u||2===u&&o||r.includes(s),d=!o||2===o&&u||r.includes(i);return l._open=!!(42===n?c:c&&(o||!d)),l._close=!!(42===n?d:d&&(u||!c)),t(s)}(a)}}};function ti(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let to={name:"labelStartLink",resolveAll:e6.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},ta={42:eL,43:eL,45:eL,48:eL,49:eL,50:eL,51:eL,52:eL,53:eL,54:eL,55:eL,56:eL,57:eL,62:ez},ts={91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,eB.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function o(t){return(r=(0,eW.B)(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return(0,ew.Ee)(t)?eU(e,s)(t):s(t)}function s(t){return eV(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(e$,u,u)(t)}function u(t){return(0,ew.On)(t)?(0,eb.N)(e,c,"whitespace")(t):c(t)}function c(o){return null===o||(0,ew.HP)(o)?(e.exit("definition"),i.parser.defined.push(r),t(o)):n(o)}}}},tl={[-2]:eZ,[-1]:eZ,32:eZ},tu={35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;return"whitespace"===e[3][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},(0,em.m)(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var o;return e.enter("atxHeading"),o=i,e.enter("atxHeadingSequence"),function i(o){return 35===o&&r++<6?(e.consume(o),i):null===o||(0,ew.Ee)(o)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||(0,ew.HP)(r)?(e.exit("atxHeading"),t(r)):(0,ew.On)(r)?(0,eb.N)(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||(0,ew.Ee)(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(o)):n(o)}(o)}}},42:eN,45:[eK,eN],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(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},tokenize:function(e,t,n){let r,i,o,a,s,l=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(a){return 33===a?(e.consume(a),c):47===a?(e.consume(a),i=!0,f):63===a?(e.consume(a),r=3,l.interrupt?t:R):(0,ew.CW)(a)?(e.consume(a),o=String.fromCharCode(a),p):n(a)}function c(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,a=0,h):(0,ew.CW)(i)?(e.consume(i),r=4,l.interrupt?t:R):n(i)}function d(r){return 45===r?(e.consume(r),l.interrupt?t:R):n(r)}function h(r){let i="CDATA[";return r===i.charCodeAt(a++)?(e.consume(r),a===i.length)?l.interrupt?t:S:h:n(r)}function f(t){return(0,ew.CW)(t)?(e.consume(t),o=String.fromCharCode(t),p):n(t)}function p(a){if(null===a||47===a||62===a||(0,ew.Ee)(a)){let s=47===a,u=o.toLowerCase();return!s&&!i&&eG.includes(u)?(r=1,l.interrupt?t(a):S(a)):eY.includes(o.toLowerCase())?(r=6,s)?(e.consume(a),m):l.interrupt?t(a):S(a):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(a):i?function t(n){return(0,ew.On)(n)?(e.consume(n),t):k(n)}(a):g(a))}return 45===a||(0,ew.lV)(a)?(e.consume(a),o+=String.fromCharCode(a),p):n(a)}function m(r){return 62===r?(e.consume(r),l.interrupt?t:S):n(r)}function g(t){return 47===t?(e.consume(t),k):58===t||95===t||(0,ew.CW)(t)?(e.consume(t),y):(0,ew.On)(t)?(e.consume(t),g):k(t)}function y(t){return 45===t||46===t||58===t||95===t||(0,ew.lV)(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),x):(0,ew.On)(t)?(e.consume(t),v):g(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,b):(0,ew.On)(t)?(e.consume(t),x):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||(0,ew.Ee)(n)?v(n):(e.consume(n),t)}(t)}function b(t){return t===s?(e.consume(t),s=null,w):null===t||(0,ew.HP)(t)?n(t):(e.consume(t),b)}function w(e){return 47===e||62===e||(0,ew.On)(e)?g(e):n(e)}function k(t){return 62===t?(e.consume(t),C):n(t)}function C(t){return null===t||(0,ew.HP)(t)?S(t):(0,ew.On)(t)?(e.consume(t),C):n(t)}function S(t){return 45===t&&2===r?(e.consume(t),P):60===t&&1===r?(e.consume(t),A):62===t&&4===r?(e.consume(t),O):63===t&&3===r?(e.consume(t),R):93===t&&5===r?(e.consume(t),M):(0,ew.HP)(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(eX,D,_)(t)):null===t||(0,ew.HP)(t)?(e.exit("htmlFlowData"),_(t)):(e.consume(t),S)}function _(t){return e.check(eQ,E,D)(t)}function E(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return null===t||(0,ew.HP)(t)?_(t):(e.enter("htmlFlowData"),S(t))}function P(t){return 45===t?(e.consume(t),R):S(t)}function A(t){return 47===t?(e.consume(t),o="",j):S(t)}function j(t){if(62===t){let n=o.toLowerCase();return eG.includes(n)?(e.consume(t),O):S(t)}return(0,ew.CW)(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),j):S(t)}function M(t){return 93===t?(e.consume(t),R):S(t)}function R(t){return 62===t?(e.consume(t),O):45===t&&2===r?(e.consume(t),R):S(t)}function O(t){return null===t||(0,ew.HP)(t)?(e.exit("htmlFlowData"),D(t)):(e.consume(t),O)}function D(n){return e.exit("htmlFlow"),t(n)}}},61:eK,95:eN,96:e0,126:e0},tc={38:e5,92:e4},td={[-5]:e3,[-4]:e3,[-3]:e3,33:tt,38:e5,42:tr,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return(0,ew.CW)(t)?(e.consume(t),o):64===t?n(t):s(t)}function o(t){return 43===t||45===t||46===t||(0,ew.lV)(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,a):(43===n||45===n||46===n||(0,ew.lV)(n))&&r++<32?(e.consume(n),t):(r=0,s(n))}(t)):s(t)}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||(0,ew.JQ)(r)?n(r):(e.consume(r),a)}function s(t){return 64===t?(e.consume(t),l):(0,ew.cx)(t)?(e.consume(t),s):n(t)}function l(i){return(0,ew.lV)(i)?function i(o){return 46===o?(e.consume(o),r=0,l):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(o){if((45===o||(0,ew.lV)(o))&&r++<63){let n=45===o?t:i;return e.consume(o),n}return n(o)}(o)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,o,a=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),b):63===t?(e.consume(t),v):(0,ew.CW)(t)?(e.consume(t),k):n(t)}function l(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,f):(0,ew.CW)(t)?(e.consume(t),y):n(t)}function u(t){return 45===t?(e.consume(t),h):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):(0,ew.HP)(t)?(o=c,j(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),h):c(t)}function h(e){return 62===e?A(e):45===e?d(e):c(e)}function f(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?p:f):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),m):(0,ew.HP)(t)?(o=p,j(t)):(e.consume(t),p)}function m(t){return 93===t?(e.consume(t),g):p(t)}function g(t){return 62===t?A(t):93===t?(e.consume(t),g):p(t)}function y(t){return null===t||62===t?A(t):(0,ew.HP)(t)?(o=y,j(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),x):(0,ew.HP)(t)?(o=v,j(t)):(e.consume(t),v)}function x(e){return 62===e?A(e):v(e)}function b(t){return(0,ew.CW)(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||(0,ew.lV)(t)?(e.consume(t),w):function t(n){return(0,ew.HP)(n)?(o=t,j(n)):(0,ew.On)(n)?(e.consume(n),t):A(n)}(t)}function k(t){return 45===t||(0,ew.lV)(t)?(e.consume(t),k):47===t||62===t||(0,ew.Ee)(t)?C(t):n(t)}function C(t){return 47===t?(e.consume(t),A):58===t||95===t||(0,ew.CW)(t)?(e.consume(t),S):(0,ew.HP)(t)?(o=C,j(t)):(0,ew.On)(t)?(e.consume(t),C):A(t)}function S(t){return 45===t||46===t||58===t||95===t||(0,ew.lV)(t)?(e.consume(t),S):function t(n){return 61===n?(e.consume(n),_):(0,ew.HP)(n)?(o=t,j(n)):(0,ew.On)(n)?(e.consume(n),t):C(n)}(t)}function _(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,E):(0,ew.HP)(t)?(o=_,j(t)):(0,ew.On)(t)?(e.consume(t),_):(e.consume(t),T)}function E(t){return t===r?(e.consume(t),r=void 0,P):null===t?n(t):(0,ew.HP)(t)?(o=E,j(t)):(e.consume(t),E)}function T(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||(0,ew.Ee)(t)?C(t):(e.consume(t),T)}function P(e){return 47===e||62===e||(0,ew.Ee)(e)?C(e):n(e)}function A(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function j(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),M}function M(t){return(0,ew.On)(t)?(0,eb.N)(e,R,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):R(t)}function R(t){return e.enter("htmlTextData"),o(t)}}}],91:to,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return(0,ew.HP)(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},e4],93:e6,95:tr,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),o++,t):(e.exit("codeTextSequence"),a(n))}(t)};function a(l){return null===l?n(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),a):96===l?(i=e.enter("codeTextSequence"),r=0,function n(a){return 96===a?(e.consume(a),r++,n):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(a)):(i.type="codeTextData",s(a))}(l)):(0,ew.HP)(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):(e.enter("codeTextData"),s(l))}function s(t){return null===t||32===t||96===t||(0,ew.HP)(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),s)}}}},th={null:[tr,eA]},tf={null:[42,95]},tp={null:[]},tm=/[\0\t\n\r]/g;function tg(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let ty=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tv(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return tg(n.slice(t?2:1),t?16:10)}return e2(n)||e}let tx={}.hasOwnProperty;function tb(e){return{line:e.line,column:e.column,offset:e.offset}}function tw(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+K({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+K({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+K({start:t.start,end:t.end})+") is still open")}function tk(e){let t=this;t.parser=function(n){var r,o;let a,s,l,u;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(o=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(p),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(f),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(f,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,i),htmlFlowData:u,htmlText:r(g,i),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(v),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(p),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:a(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:a(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:a(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=tg(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=e2(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=tb(e.end)},codeFenced:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:a(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,eW.B)(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:a(),hardBreakEscape:a(d),hardBreakTrailing:a(d),htmlFlow:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(ty,tv),n.identifier=(0,eW.B)(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=tb(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),c.call(this,e))},link:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,eW.B)(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:a(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:a(),thematicBreak:a()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(tx.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},a={stack:[r],tokenStack:[],config:t,enter:o,exit:s,buffer:i,resume:l,data:n},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,n){let r,i,o,a,s=t-1,l=-1,u=!1;for(;++s<=n;){let t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||l||o||(o=s),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=s;for(i=void 0;a--;){let t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=a}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(s,0,["enter",i,t[2]]),s++,n++,o=void 0,a=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];tx.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},a),e[c][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||tw).call(a,void 0,e[0])}for(r.position={start:tb(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tb(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){o.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function o(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:tb(t.start),end:void 0}}function a(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||tw).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+K({start:e.start,end:e.end})+"): it’s not open");n.position.end=tb(e.end)}function l(){return(0,ep.d)(this.stack.pop())}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:tb(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=tb(e.end)}function d(){this.data.atHardBreak=!0}function h(e){this.data.characterReferenceType=e.type}function f(){return{type:"code",lang:null,meta:null,value:""}}function p(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(o)(function(e){for(;!ev(e););return e}((function(e){let t={constructs:(0,ex.y)([i,...(e||{}).extensions||[]]),content:n(ek),defined:[],document:n(eC),flow:n(eP),lazy:{},string:n(ej),text:n(eM)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},o=[],a=[],s=[],l={attempt:p(function(e,t){m(e,t.from)}),check:p(f),consume:function(e){(0,ew.HP)(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=h(),u.events.push(["enter",n,u]),s.push(n),n},exit:function(e){let t=s.pop();return t.end=h(),u.events.push(["exit",t,u]),t},interrupt:p(f,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:h,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let o,a=e[r];if("string"==typeof a)o=a;else switch(a){case -5:o="\r";break;case -4:o="\n";break;case -3:o="\r\n";break;case -2:o=t?" ":" ";break;case -1:if(!t&&n)continue;o=" ";break;default:o=String.fromCharCode(a)}n=-2===a,i.push(o)}return i.join("")}(d(e),t)},sliceStream:d,write:function(e){return(a=(0,em.V)(a,e),function(){let e;for(;r._index<a.length;){let n=a[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==a[a.length-1])?[]:(m(t,0),u.events=(0,e9.W)(o,u.events,u),u.events)}},c=t.tokenize.call(u,l);return t.resolveAll&&o.push(t),u;function d(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;if(r===o)n=[e[r].slice(i,a)];else{if(n=e.slice(r,o),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}a>0&&n.push(e[o].slice(0,a))}return n}(a,e)}function h(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:o}}function f(e,t){t.restore()}function p(e,t){return function(n,i,o){var a;let c,d,f,p;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(a=n,function(e){let t=null!==e&&a[e],n=null!==e&&a.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,d=0,0===e.length)?o:y(e[d])}function y(e){return function(n){return(p=function(){let e=h(),t=u.previous,n=u.currentConstruct,i=u.events.length,o=Array.from(s);return{from:i,restore:function(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=i,s=o,g()}}}(),f=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?x(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,l,v,x)(n)}}function v(t){return e(f,p),i}function x(e){return(p.restore(),++d<c.length)?y(c[d]):o}}}function m(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&(0,em.m)(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(o).document().write((s=1,l="",u=!0,function(e,t,n){let r,i,o,c,d,h=[];for(e=l+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),o=0,l="",u&&(65279===e.charCodeAt(0)&&o++,u=void 0);o<e.length;){if(tm.lastIndex=o,c=(r=tm.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(c),!r){l=e.slice(o);break}if(10===d&&o===c&&a)h.push(-3),a=void 0;else switch(a&&(h.push(-5),a=void 0),o<c&&(h.push(e.slice(o,c)),s+=c-o),d){case 0:h.push(65533),s++;break;case 9:for(i=4*Math.ceil(s/4),h.push(-2);s++<i;)h.push(-1);break;case 10:h.push(-4),s=1;break;default:a=!0,s=1}o=c+1}return n&&(a&&h.push(-5),l&&h.push(l),h.push(null)),h})(n,r,!0))))}}let tC="object"==typeof self?self:globalThis,tS=e=>((e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[o,a]=t[i];switch(o){case 0:case -1:return n(a,i);case 1:{let e=n([],i);for(let t of a)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),i);case 4:{let{source:e,flags:t}=a;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of a)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of a)e.add(r(t));return e}case 7:{let{name:e,message:t}=a;return n(new tC[e](t),i)}case 8:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{let{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(new tC[o](a),i)};return r})(new Map,e)(0),{toString:t_}={},{keys:tE}=Object,tT=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=t_.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},tP=([e,t])=>0===e&&("function"===t||"symbol"===t),tA=(e,{json:t,lossy:n}={})=>{let r=[];return((e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},o=r=>{if(n.has(r))return n.get(r);let[a,s]=tT(r);switch(a){case 0:{let t=r;switch(s){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([-1],r)}return i([a,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([a,e],r);for(let t of r)e.push(o(t));return t}case 2:{if(s)switch(s){case"BigInt":return i([s,r.toString()],r);case"Boolean":case"Number":case"String":return i([s,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());let n=[],l=i([a,n],r);for(let t of tE(r))(e||!tP(tT(r[t])))&&n.push([o(t),o(r[t])]);return l}case 3:return i([a,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([a,{source:e,flags:t}],r)}case 5:{let t=[],n=i([a,t],r);for(let[n,i]of r)(e||!(tP(tT(n))||tP(tT(i))))&&t.push([o(n),o(i)]);return n}case 6:{let t=[],n=i([a,t],r);for(let n of r)(e||!tP(tT(n)))&&t.push(o(n));return n}}let{message:l}=r;return i([a,{name:s,message:l}],r)};return o})(!(t||n),!!t,new Map,r)(e),r},tj="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?tS(tA(e,t)):structuredClone(e):(e,t)=>tS(tA(e,t));function tM(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let o=e.charCodeAt(n),a="";if(37===o&&(0,ew.lV)(e.charCodeAt(n+1))&&(0,ew.lV)(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){let t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(a=String.fromCharCode(o,t),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function tR(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function tO(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}var tD=n(8428);function tN(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});let a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push({type:"text",value:r}),i}function tL(e){let t=e.spread;return null==t?e.children.length>1:t}function tI(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let tF={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),o=tM(i.toLowerCase()),a=e.footnoteOrder.indexOf(i),s=e.footnoteCounts.get(i);void 0===s?(s=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=a+1,s+=1,e.footnoteCounts.set(i,s);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,l);let u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return tN(e,t);let i={src:tM(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){let n={src:tM(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return tN(e,t);let i={href:tM(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){let n={href:tM(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=tL(n[r])}return t}(n):tL(t),o={},a=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){let e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?a.push(e):a.push(...e.children)}let l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Z(t.children[1]),a=$(t.children[t.children.length-1]);o&&a&&(r.position={start:o,end:a}),i.push(r)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,a=o?o.length:t.children.length,s=-1,l=[];for(;++s<a;){let n=t.children[s],r={},a=o?o[s]:void 0;a&&(r.align=a);let u={type:"element",tagName:i,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),l.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,o=[];for(;r;)o.push(tI(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(tI(t.slice(i),i>0,!1)),o.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:tz,yaml:tz,definition:tz,footnoteDefinition:tz};function tz(){}let tV={}.hasOwnProperty,tB={};function tH(e,t){e.position&&(t.position=function(e){let t=Z(e),n=$(e);if(t&&n)return{start:t,end:n}}(e))}function tU(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,tj(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function tW(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function t$(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function tZ(e,t){let n=function(e,t){let n=t||tB,r=new Map,i=new Map,o={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=o.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=t$(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=t$(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:tU,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...tF,...n.handlers},one:function(e,t){let n=e.type,r=o.handlers[n];if(tV.call(o.handlers,n)&&r)return r(o,e,t);if(o.options.passThrough&&o.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=tj(n);return r.children=o.all(e),r}return tj(e)}return(o.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(tV.call(n,"hProperties")||tV.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)})(o,e,t)},options:n,patch:tH,wrap:tW};return(0,tD.YR)(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),o}(e,t),r=n.one(e,void 0),i=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||tR,r=e.options.footnoteBackLabel||tO,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[],l=-1;for(;++l<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;let o=e.all(i),a=String(i.identifier).toUpperCase(),u=tM(a.toLowerCase()),c=0,d=[],h=e.footnoteCounts.get(a);for(;void 0!==h&&++c<=h;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,c);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let f=o[o.length-1];if(f&&"element"===f.type&&"p"===f.tagName){let e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...d)}else o.push(...d);let p={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(o,!0)};e.patch(i,p),s.push(p)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...tj(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&((0,o.ok)("children"in a),a.children.push({type:"text",value:"\n"},i)),a}function tq(e,t){return e&&"run"in e?async function(n,r){let i=tZ(n,{file:r,...t});await e.run(i,r)}:function(n,r){return tZ(n,{file:r,...e||t})}}function tK(e){if(e)throw e}var tY=n(3360);function tG(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let tX={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');tQ(e);let r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,s=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(i=o):(s=-1,i=a));return r===i?i=a:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(tQ(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;tQ(e);let n=e.length,r=-1,i=0,o=-1,a=0;for(;n--;){let s=e.codePointAt(n);if(47===s){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==a&&(a=1):o>-1&&(a=-1)}return o<0||r<0||0===a||1===a&&o===r-1&&o===i+1?"":e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)tQ(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){tQ(e);let t=47===e.codePointAt(0),n=function(e,t){let n,r,i="",o=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else if(47===n)break;else n=47;if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),a=l,s=0;continue}}else if(i.length>0){i="",o=0,a=l,s=0;continue}}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(a+1,l):i=e.slice(a+1,l),o=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function tQ(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let tJ={cwd:function(){return"/"}};function t0(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let t1=["history","path","basename","stem","extname","dirname"];class t2{constructor(e){let t,n;t=e?t0(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":tJ.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<t1.length;){let e=t1[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)t1.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?tX.basename(this.path):void 0}set basename(e){t4(e,"basename"),t5(e,"basename"),this.path=tX.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?tX.dirname(this.path):void 0}set dirname(e){t3(this.basename,"dirname"),this.path=tX.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?tX.extname(this.path):void 0}set extname(e){if(t5(e,"extname"),t3(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=tX.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){t0(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!t0(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),t4(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?tX.basename(this.path,this.extname):void 0}set stem(e){t4(e,"stem"),t5(e,"stem"),this.path=tX.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new Q(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function t5(e,t){if(e&&e.includes(tX.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+tX.sep+"`")}function t4(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function t3(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let t9=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},t6={}.hasOwnProperty;class t7 extends t9{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=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function i(o,...a){let s=e[++n],l=-1;if(o)return void r(o);for(;++l<t.length;)(null===a[l]||void 0===a[l])&&(a[l]=t[l]);t=a,s?(function(e,t){let n;return function(...t){let o,a=e.length>t.length;a&&t.push(r);try{o=e.apply(this,t)}catch(e){if(a&&n)throw e;return r(e)}a||(o&&o.then&&"function"==typeof o.then?o.then(i,r):o instanceof Error?r(o):i(o))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(s,i)(...a):r(null,...a)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new t7,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(tY(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(nn("data",this.frozen),this.namespace[e]=t,this):t6.call(this.namespace,e)&&this.namespace[e]||void 0:e?(nn("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=no(e),n=this.parser||this.Parser;return ne("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),ne("process",this.parser||this.Parser),nt("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=no(e),s=n.parse(a);function l(e,n){e||!n?i(e):r?r(n):((0,o.ok)(t,"`done` is defined if `resolve` is not"),t(void 0,n))}n.run(s,a,function(e,t,r){var i,o;if(e||!t||!r)return l(e);let a=n.stringify(t,r);"string"==typeof(i=a)||(o=i)&&"object"==typeof o&&"byteLength"in o&&"byteOffset"in o?r.value=a:r.result=a,l(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),ne("processSync",this.parser||this.Parser),nt("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,tK(e),t=r}),ni("processSync","process",n),(0,o.ok)(t,"we either bailed on an error or have a tree"),t}run(e,t,n){nr(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){(0,o.ok)("function"!=typeof t,"`file` can’t be a `done` anymore, we checked");let s=no(t);r.run(e,s,function(t,r,s){let l=r||e;t?a(t):i?i(l):((0,o.ok)(n,"`done` is defined if `resolve` is not"),n(void 0,l,s))})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){tK(e),n=t,r=!0}),ni("runSync","run",r),(0,o.ok)(n,"we either bailed on an error or have a tree"),n}stringify(e,t){this.freeze();let n=no(t),r=this.compiler||this.Compiler;return nt("stringify",r),nr(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(nn("use",this.frozen),null==e);else if("function"==typeof e)a(e,t);else if("object"==typeof e)Array.isArray(e)?o(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=tY(!0,r.settings,e.settings))}function o(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;){var n=e[t];if("function"==typeof n)a(n,[]);else if("object"==typeof n)if(Array.isArray(n)){let[e,...t]=n;a(e,t)}else i(n);else throw TypeError("Expected usable value, not `"+n+"`")}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function a(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...o]=t,a=n[i][1];tG(a)&&tG(r)&&(r=tY(!0,a,r)),n[i]=[e,r,...o]}}}}let t8=new t7().freeze();function ne(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function nt(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function nn(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nr(e){if(!tG(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function ni(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function no(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new t2(e)}let na=[],ns={allowDangerousHtml:!0},nl=/^(https?|ircs?|mailto|xmpp)$/i,nu=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function nc(e){let t=function(e){let t=e.rehypePlugins||na,n=e.remarkPlugins||na,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ns}:ns;return t8().use(tk).use(n).use(tq,r).use(t)}(e),n=function(e){let t=e.children||"",n=new t2;return"string"==typeof t?n.value=t:(0,o.HB)("Unexpected value `"+t+"` for `children` prop, expected `string`"),n}(e);return function(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,s=t.skipHtml,l=t.unwrapDisallowed,u=t.urlTransform||nd;for(let e of nu)Object.hasOwn(t,e.from)&&(0,o.HB)("Unexpected `"+e.from+"` prop, "+(e.to?"use `"+e.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+e.id+"> for more info)");return n&&a&&(0,o.HB)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),(0,tD.YR)(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return s?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in eh)if(Object.hasOwn(eh,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=eh[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=u(String(n||""),t,e))}}if("element"===e.type){let o=n?!n.includes(e.tagName):!!a&&a.includes(e.tagName);if(!o&&r&&"number"==typeof t&&(o=!r(e,t,i)),o&&i&&"number"==typeof t)return l&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){var n,r,i,o;let a;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let s=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=s,r=t.jsxDEV,a=function(e,t,i,o){let a=Array.isArray(i.children),s=Z(e);return r(t,i,o,a,{columnNumber:s?s.column-1:void 0,fileName:n,lineNumber:s?s.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,o=t.jsxs,a=function(e,t,n,r){let a=Array.isArray(n.children)?o:i;return r?a(t,n,r):a(t,n)}}let l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:s,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?I:L,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=eo(l,e,void 0);return u&&"string"!=typeof u?u:l.create(e,l.Fragment,{children:u||void 0},void 0)}(e,{Fragment:ef.Fragment,components:i,ignoreInvalidStyle:!0,jsx:ef.jsx,jsxs:ef.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function nd(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||nl.test(e.slice(0,t))?e:""}},8313:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]])},8428:(e,t,n)=>{"use strict";n.d(t,{YR:()=>i});var r=n(1922);function i(e,t,n,i){let o,a,s;"function"==typeof t&&"function"!=typeof n?(a=void 0,s=t,o=n):(a=t,s=n,o=i),(0,r.VG)(e,a,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return s(e,r,n)},o)}},8749:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},8795:(e,t,n)=>{"use strict";n.d(t,{Mz:()=>e0,i3:()=>e2,UC:()=>e1,bL:()=>eJ,Bk:()=>eI});var r=n(2115);let i=["top","right","bottom","left"],o=Math.min,a=Math.max,s=Math.round,l=Math.floor,u=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},d={start:"end",end:"start"};function h(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}let y=new Set(["top","bottom"]);function v(e){return y.has(f(e))?"y":"x"}function x(e){return e.replace(/start|end/g,e=>d[e])}let b=["left","right"],w=["right","left"],k=["top","bottom"],C=["bottom","top"];function S(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function _(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function E(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function T(e,t,n){let r,{reference:i,floating:o}=e,a=v(t),s=m(v(t)),l=g(s),u=f(t),c="y"===a,d=i.x+i.width/2-o.width/2,h=i.y+i.height/2-o.height/2,y=i[l]/2-o[l]/2;switch(u){case"top":r={x:d,y:i.y-o.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:h};break;case"left":r={x:i.x-o.width,y:h};break;default:r={x:i.x,y:i.y}}switch(p(t)){case"start":r[s]-=y*(n&&c?-1:1);break;case"end":r[s]+=y*(n&&c?-1:1)}return r}let P=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=T(u,r,l),h=r,f={},p=0;for(let n=0;n<s.length;n++){let{name:o,fn:m}=s[n],{x:g,y:y,data:v,reset:x}=await m({x:c,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:f,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=y?y:d,f={...f,[o]:{...f[o],...v}},x&&p<=50&&(p++,"object"==typeof x&&(x.placement&&(h=x.placement),x.rects&&(u=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:c,y:d}=T(u,h,l)),n=-1)}return{x:c,y:d,placement:h,strategy:i,middlewareData:f}};async function A(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=h(t,e),m=_(p),g=s[f?"floating"===d?"reference":"floating":d],y=E(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),v="floating"===d?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,x=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),b=await (null==o.isElement?void 0:o.isElement(x))&&await (null==o.getScale?void 0:o.getScale(x))||{x:1,y:1},w=E(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:x,strategy:l}):v);return{top:(y.top-w.top+m.top)/b.y,bottom:(w.bottom-y.bottom+m.bottom)/b.y,left:(y.left-w.left+m.left)/b.x,right:(w.right-y.right+m.right)/b.x}}function j(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function M(e){return i.some(t=>e[t]>=0)}let R=new Set(["left","top"]);async function O(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=f(n),s=p(n),l="y"===v(n),u=R.has(a)?-1:1,c=o&&l?-1:1,d=h(t,e),{mainAxis:m,crossAxis:g,alignmentAxis:y}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof y&&(g="end"===s?-1*y:y),l?{x:g*c,y:m*u}:{x:m*u,y:g*c}}function D(){return"undefined"!=typeof window}function N(e){return F(e)?(e.nodeName||"").toLowerCase():"#document"}function L(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function I(e){var t;return null==(t=(F(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function F(e){return!!D()&&(e instanceof Node||e instanceof L(e).Node)}function z(e){return!!D()&&(e instanceof Element||e instanceof L(e).Element)}function V(e){return!!D()&&(e instanceof HTMLElement||e instanceof L(e).HTMLElement)}function B(e){return!!D()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof L(e).ShadowRoot)}let H=new Set(["inline","contents"]);function U(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!H.has(i)}let W=new Set(["table","td","th"]),$=[":popover-open",":modal"];function Z(e){return $.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let q=["transform","translate","scale","rotate","perspective"],K=["transform","translate","scale","rotate","perspective","filter"],Y=["paint","layout","strict","content"];function G(e){let t=X(),n=z(e)?ee(e):e;return q.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||K.some(e=>(n.willChange||"").includes(e))||Y.some(e=>(n.contain||"").includes(e))}function X(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let Q=new Set(["html","body","#document"]);function J(e){return Q.has(N(e))}function ee(e){return L(e).getComputedStyle(e)}function et(e){return z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function en(e){if("html"===N(e))return e;let t=e.assignedSlot||e.parentNode||B(e)&&e.host||I(e);return B(t)?t.host:t}function er(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=en(t);return J(n)?t.ownerDocument?t.ownerDocument.body:t.body:V(n)&&U(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=L(i);if(o){let e=ei(a);return t.concat(a,a.visualViewport||[],U(i)?i:[],e&&n?er(e):[])}return t.concat(i,er(i,[],n))}function ei(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eo(e){let t=ee(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=V(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=s(n)!==o||s(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function ea(e){return z(e)?e:e.contextElement}function es(e){let t=ea(e);if(!V(t))return u(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=eo(t),a=(o?s(n.width):n.width)/r,l=(o?s(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let el=u(0);function eu(e){let t=L(e);return X()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:el}function ec(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),a=ea(e),s=u(1);t&&(r?z(r)&&(s=es(r)):s=es(e));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===L(a))&&i)?eu(a):u(0),c=(o.left+l.x)/s.x,d=(o.top+l.y)/s.y,h=o.width/s.x,f=o.height/s.y;if(a){let e=L(a),t=r&&z(r)?L(r):r,n=e,i=ei(n);for(;i&&r&&t!==n;){let e=es(i),t=i.getBoundingClientRect(),r=ee(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,d*=e.y,h*=e.x,f*=e.y,c+=o,d+=a,i=ei(n=L(i))}}return E({width:h,height:f,x:c,y:d})}function ed(e,t){let n=et(e).scrollLeft;return t?t.left+n:ec(I(e)).left+n}function eh(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:ed(e,r)),y:r.top+t.scrollTop}}let ef=new Set(["absolute","fixed"]);function ep(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=L(e),r=I(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=X();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){let t=I(e),n=et(e),r=e.ownerDocument.body,i=a(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=a(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-n.scrollLeft+ed(e),l=-n.scrollTop;return"rtl"===ee(r).direction&&(s+=a(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:l}}(I(e));else if(z(t))r=function(e,t){let n=ec(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=V(e)?es(e):u(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y;return{width:a,height:s,x:i*o.x,y:r*o.y}}(t,n);else{let n=eu(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return E(r)}function em(e){return"static"===ee(e).position}function eg(e,t){if(!V(e)||"fixed"===ee(e).position)return null;if(t)return t(e);let n=e.offsetParent;return I(e)===n&&(n=n.ownerDocument.body),n}function ey(e,t){var n;let r=L(e);if(Z(e))return r;if(!V(e)){let t=en(e);for(;t&&!J(t);){if(z(t)&&!em(t))return t;t=en(t)}return r}let i=eg(e,t);for(;i&&(n=i,W.has(N(n)))&&em(i);)i=eg(i,t);return i&&J(i)&&em(i)&&!G(i)?r:i||function(e){let t=en(e);for(;V(t)&&!J(t);){if(G(t))return t;if(Z(t))break;t=en(t)}return null}(e)||r}let ev=async function(e){let t=this.getOffsetParent||ey,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=V(t),i=I(t),o="fixed"===n,a=ec(e,!0,o,t),s={scrollLeft:0,scrollTop:0},l=u(0);if(r||!r&&!o)if(("body"!==N(t)||U(i))&&(s=et(t)),r){let e=ec(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=ed(i));o&&!r&&i&&(l.x=ed(i));let c=!i||r||o?u(0):eh(i,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ex={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,a=I(r),s=!!t&&Z(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=u(1),d=u(0),h=V(r);if((h||!h&&!o)&&(("body"!==N(r)||U(a))&&(l=et(r)),V(r))){let e=ec(r);c=es(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let f=!a||h||o?u(0):eh(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+f.x,y:n.y*c.y-l.scrollTop*c.y+d.y+f.y}},getDocumentElement:I,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,s=[..."clippingAncestors"===n?Z(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=er(e,[],!1).filter(e=>z(e)&&"body"!==N(e)),i=null,o="fixed"===ee(e).position,a=o?en(e):e;for(;z(a)&&!J(a);){let t=ee(a),n=G(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&ef.has(i.position)||U(a)&&!n&&function e(t,n){let r=en(t);return!(r===n||!z(r)||J(r))&&("fixed"===ee(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):i=t,a=en(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=s[0],u=s.reduce((e,n)=>{let r=ep(t,n,i);return e.top=a(r.top,e.top),e.right=o(r.right,e.right),e.bottom=o(r.bottom,e.bottom),e.left=a(r.left,e.left),e},ep(t,l,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:ey,getElementRects:ev,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eo(e);return{width:t,height:n}},getScale:es,isElement:z,isRTL:function(e){return"rtl"===ee(e).direction}};function eb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let ew=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:s,platform:l,elements:u,middlewareData:c}=t,{element:d,padding:f=0}=h(e,t)||{};if(null==d)return{};let y=_(f),x={x:n,y:r},b=m(v(i)),w=g(b),k=await l.getDimensions(d),C="y"===b,S=C?"clientHeight":"clientWidth",E=s.reference[w]+s.reference[b]-x[b]-s.floating[w],T=x[b]-s.reference[b],P=await (null==l.getOffsetParent?void 0:l.getOffsetParent(d)),A=P?P[S]:0;A&&await (null==l.isElement?void 0:l.isElement(P))||(A=u.floating[S]||s.floating[w]);let j=A/2-k[w]/2-1,M=o(y[C?"top":"left"],j),R=o(y[C?"bottom":"right"],j),O=A-k[w]-R,D=A/2-k[w]/2+(E/2-T/2),N=a(M,o(D,O)),L=!c.arrow&&null!=p(i)&&D!==N&&s.reference[w]/2-(D<M?M:R)-k[w]/2<0,I=L?D<M?D-M:D-O:0;return{[b]:x[b]+I,data:{[b]:N,centerOffset:D-N-I,...L&&{alignmentOffset:I}},reset:L}}});var ek=n(7650),eC="undefined"!=typeof document?r.useLayoutEffect:function(){};function eS(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eS(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!eS(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function e_(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eE(e,t){let n=e_(e);return Math.round(t*n)/n}function eT(e){let t=r.useRef(e);return eC(()=>{t.current=e}),t}var eP=n(3655),eA=n(5155),ej=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,eA.jsx)(eP.sG.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eA.jsx)("polygon",{points:"0,0 30,0 15,10"})})});ej.displayName="Arrow";var eM=n(6101),eR=n(6081),eO=n(9033),eD=n(2712),eN="Popper",[eL,eI]=(0,eR.A)(eN),[eF,ez]=eL(eN),eV=e=>{let{__scopePopper:t,children:n}=e,[i,o]=r.useState(null);return(0,eA.jsx)(eF,{scope:t,anchor:i,onAnchorChange:o,children:n})};eV.displayName=eN;var eB="PopperAnchor",eH=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:i,...o}=e,a=ez(eB,n),s=r.useRef(null),l=(0,eM.s)(t,s);return r.useEffect(()=>{a.onAnchorChange((null==i?void 0:i.current)||s.current)}),i?null:(0,eA.jsx)(eP.sG.div,{...o,ref:l})});eH.displayName=eB;var eU="PopperContent",[eW,e$]=eL(eU),eZ=r.forwardRef((e,t)=>{var n,i,s,u,c,d,y,_;let{__scopePopper:E,side:T="bottom",sideOffset:D=0,align:N="center",alignOffset:L=0,arrowPadding:F=0,avoidCollisions:z=!0,collisionBoundary:V=[],collisionPadding:B=0,sticky:H="partial",hideWhenDetached:U=!1,updatePositionStrategy:W="optimized",onPlaced:$,...Z}=e,q=ez(eU,E),[K,Y]=r.useState(null),G=(0,eM.s)(t,e=>Y(e)),[X,Q]=r.useState(null),J=function(e){let[t,n]=r.useState(void 0);return(0,eD.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(X),ee=null!=(y=null==J?void 0:J.width)?y:0,et=null!=(_=null==J?void 0:J.height)?_:0,en="number"==typeof B?B:{top:0,right:0,bottom:0,left:0,...B},ei=Array.isArray(V)?V:[V],eo=ei.length>0,es={padding:en,boundary:ei.filter(eG),altBoundary:eo},{refs:el,floatingStyles:eu,placement:ed,isPositioned:eh,middlewareData:ef}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,h]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=r.useState(i);eS(f,i)||p(i);let[m,g]=r.useState(null),[y,v]=r.useState(null),x=r.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),b=r.useCallback(e=>{e!==S.current&&(S.current=e,v(e))},[]),w=a||m,k=s||y,C=r.useRef(null),S=r.useRef(null),_=r.useRef(d),E=null!=u,T=eT(u),A=eT(o),j=eT(c),M=r.useCallback(()=>{if(!C.current||!S.current)return;let e={placement:t,strategy:n,middleware:f};A.current&&(e.platform=A.current),((e,t,n)=>{let r=new Map,i={platform:ex,...n},o={...i.platform,_c:r};return P(e,t,{...i,platform:o})})(C.current,S.current,e).then(e=>{let t={...e,isPositioned:!1!==j.current};R.current&&!eS(_.current,t)&&(_.current=t,ek.flushSync(()=>{h(t)}))})},[f,t,n,A,j]);eC(()=>{!1===c&&_.current.isPositioned&&(_.current.isPositioned=!1,h(e=>({...e,isPositioned:!1})))},[c]);let R=r.useRef(!1);eC(()=>(R.current=!0,()=>{R.current=!1}),[]),eC(()=>{if(w&&(C.current=w),k&&(S.current=k),w&&k){if(T.current)return T.current(w,k,M);M()}},[w,k,M,T,E]);let O=r.useMemo(()=>({reference:C,floating:S,setReference:x,setFloating:b}),[x,b]),D=r.useMemo(()=>({reference:w,floating:k}),[w,k]),N=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=eE(D.floating,d.x),r=eE(D.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...e_(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,D.floating,d.x,d.y]);return r.useMemo(()=>({...d,update:M,refs:O,elements:D,floatingStyles:N}),[d,M,O,D,N])}({strategy:"fixed",placement:T+("center"!==N?"-"+N:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:h=!1}=r,f=ea(e),p=s||u?[...f?er(f):[],...er(t)]:[];p.forEach(e=>{s&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let m=f&&d?function(e,t){let n,r=null,i=I(e);function s(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function u(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),s();let h=e.getBoundingClientRect(),{left:f,top:p,width:m,height:g}=h;if(c||t(),!m||!g)return;let y=l(p),v=l(i.clientWidth-(f+m)),x={rootMargin:-y+"px "+-v+"px "+-l(i.clientHeight-(p+g))+"px "+-l(f)+"px",threshold:a(0,o(1,d))||1},b=!0;function w(t){let r=t[0].intersectionRatio;if(r!==d){if(!b)return u();r?u(!1,r):n=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==r||eb(h,e.getBoundingClientRect())||u(),b=!1}try{r=new IntersectionObserver(w,{...x,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(w,x)}r.observe(e)}(!0),s}(f,n):null,g=-1,y=null;c&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===f&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),f&&!h&&y.observe(f),y.observe(t));let v=h?ec(e):null;return h&&function t(){let r=ec(e);v&&!eb(v,r)&&n(),v=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{s&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=y)||e.disconnect(),y=null,h&&cancelAnimationFrame(i)}}(...t,{animationFrame:"always"===W})},elements:{reference:q.anchor},middleware:[((e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:a,middlewareData:s}=t,l=await O(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}}(e),options:[e,t]}))({mainAxis:D+et,alignmentAxis:L}),z&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=h(e,t),d={x:n,y:r},p=await A(t,c),g=v(f(i)),y=m(g),x=d[y],b=d[g];if(s){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=x+p[e],r=x-p[t];x=a(n,o(x,r))}if(l){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=b+p[e],r=b-p[t];b=a(n,o(b,r))}let w=u.fn({...t,[y]:x,[g]:b});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[y]:s,[g]:l}}}}}}(e),options:[e,t]}))({mainAxis:!0,crossAxis:!1,limiter:"partial"===H?((e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=h(e,t),c={x:n,y:r},d=v(i),p=m(d),g=c[p],y=c[d],x=h(s,t),b="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(l){let e="y"===p?"height":"width",t=o.reference[p]-o.floating[e]+b.mainAxis,n=o.reference[p]+o.reference[e]-b.mainAxis;g<t?g=t:g>n&&(g=n)}if(u){var w,k;let e="y"===p?"width":"height",t=R.has(f(i)),n=o.reference[d]-o.floating[e]+(t&&(null==(w=a.offset)?void 0:w[d])||0)+(t?0:b.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:(null==(k=a.offset)?void 0:k[d])||0)-(t?b.crossAxis:0);y<n?y=n:y>r&&(y=r)}return{[p]:g,[d]:y}}}}(e),options:[e,t]}))():void 0,...es}),z&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,a;let{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:y}=t,{mainAxis:_=!0,crossAxis:E=!0,fallbackPlacements:T,fallbackStrategy:P="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:M=!0,...R}=h(e,t);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};let O=f(s),D=v(c),N=f(c)===c,L=await (null==d.isRTL?void 0:d.isRTL(y.floating)),I=T||(N||!M?[S(c)]:function(e){let t=S(e);return[x(e),t,x(t)]}(c)),F="none"!==j;!T&&F&&I.push(...function(e,t,n,r){let i=p(e),o=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?w:b;return t?b:w;case"left":case"right":return t?k:C;default:return[]}}(f(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(x)))),o}(c,M,j,L));let z=[c,...I],V=await A(t,R),B=[],H=(null==(r=l.flip)?void 0:r.overflows)||[];if(_&&B.push(V[O]),E){let e=function(e,t,n){void 0===n&&(n=!1);let r=p(e),i=m(v(e)),o=g(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=S(a)),[a,S(a)]}(s,u,L);B.push(V[e[0]],V[e[1]])}if(H=[...H,{placement:s,overflows:B}],!B.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=z[e];if(t&&("alignment"!==E||D===v(t)||H.every(e=>e.overflows[0]>0&&v(e.placement)===D)))return{data:{index:e,overflows:H},reset:{placement:t}};let n=null==(o=H.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(P){case"bestFit":{let e=null==(a=H.filter(e=>{if(F){let t=v(e.placement);return t===D||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=c}if(s!==n)return{reset:{placement:n}}}return{}}}}(e),options:[e,t]}))({...es}),((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let i,s,{placement:l,rects:u,platform:c,elements:d}=t,{apply:m=()=>{},...g}=h(e,t),y=await A(t,g),x=f(l),b=p(l),w="y"===v(l),{width:k,height:C}=u.floating;"top"===x||"bottom"===x?(i=x,s=b===(await (null==c.isRTL?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(s=x,i="end"===b?"top":"bottom");let S=C-y.top-y.bottom,_=k-y.left-y.right,E=o(C-y[i],S),T=o(k-y[s],_),P=!t.middlewareData.shift,j=E,M=T;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(M=_),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(j=S),P&&!b){let e=a(y.left,0),t=a(y.right,0),n=a(y.top,0),r=a(y.bottom,0);w?M=k-2*(0!==e||0!==t?e+t:a(y.left,y.right)):j=C-2*(0!==n||0!==r?n+r:a(y.top,y.bottom))}await m({...t,availableWidth:M,availableHeight:j});let R=await c.getDimensions(d.floating);return k!==R.width||C!==R.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}))({...es,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:i}=e,{width:o,height:a}=n.reference,s=t.floating.style;s.setProperty("--radix-popper-available-width","".concat(r,"px")),s.setProperty("--radix-popper-available-height","".concat(i,"px")),s.setProperty("--radix-popper-anchor-width","".concat(o,"px")),s.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}}),X&&((e,t)=>({...(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?ew({element:n.current,padding:r}).fn(t):{}:n?ew({element:n,padding:r}).fn(t):{}}}))(e),options:[e,t]}))({element:X,padding:F}),eX({arrowWidth:ee,arrowHeight:et}),U&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...i}=h(e,t);switch(r){case"referenceHidden":{let e=j(await A(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:M(e)}}}case"escaped":{let e=j(await A(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:M(e)}}}default:return{}}}}}(e),options:[e,t]}))({strategy:"referenceHidden",...es})]}),[ep,em]=eQ(ed),eg=(0,eO.c)($);(0,eD.N)(()=>{eh&&(null==eg||eg())},[eh,eg]);let ey=null==(n=ef.arrow)?void 0:n.x,ev=null==(i=ef.arrow)?void 0:i.y,ej=(null==(s=ef.arrow)?void 0:s.centerOffset)!==0,[eR,eN]=r.useState();return(0,eD.N)(()=>{K&&eN(window.getComputedStyle(K).zIndex)},[K]),(0,eA.jsx)("div",{ref:el.setFloating,"data-radix-popper-content-wrapper":"",style:{...eu,transform:eh?eu.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eR,"--radix-popper-transform-origin":[null==(u=ef.transformOrigin)?void 0:u.x,null==(c=ef.transformOrigin)?void 0:c.y].join(" "),...(null==(d=ef.hide)?void 0:d.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eA.jsx)(eW,{scope:E,placedSide:ep,onArrowChange:Q,arrowX:ey,arrowY:ev,shouldHideArrow:ej,children:(0,eA.jsx)(eP.sG.div,{"data-side":ep,"data-align":em,...Z,ref:G,style:{...Z.style,animation:eh?void 0:"none"}})})})});eZ.displayName=eU;var eq="PopperArrow",eK={top:"bottom",right:"left",bottom:"top",left:"right"},eY=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=e$(eq,n),o=eK[i.placedSide];return(0,eA.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,eA.jsx)(ej,{...r,ref:t,style:{...r.style,display:"block"}})})});function eG(e){return null!==e}eY.displayName=eq;var eX=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null==(n=u.arrow)?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,h=c?0:e.arrowHeight,[f,p]=eQ(s),m={start:"0%",center:"50%",end:"100%"}[p],g=(null!=(o=null==(r=u.arrow)?void 0:r.x)?o:0)+d/2,y=(null!=(a=null==(i=u.arrow)?void 0:i.y)?a:0)+h/2,v="",x="";return"bottom"===f?(v=c?m:"".concat(g,"px"),x="".concat(-h,"px")):"top"===f?(v=c?m:"".concat(g,"px"),x="".concat(l.floating.height+h,"px")):"right"===f?(v="".concat(-h,"px"),x=c?m:"".concat(y,"px")):"left"===f&&(v="".concat(l.floating.width+h,"px"),x=c?m:"".concat(y,"px")),{data:{x:v,y:x}}}});function eQ(e){let[t,n="center"]=e.split("-");return[t,n]}var eJ=eV,e0=eH,e1=eZ,e2=eY},8832:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]])},8859:(e,t)=>{"use strict";function n(e){let t={};for(let[n,r]of e.entries()){let e=t[n];void 0===e?t[n]=r:Array.isArray(e)?e.push(r):t[n]=[e,r]}return t}function r(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[n,i]of Object.entries(e))if(Array.isArray(i))for(let e of i)t.append(n,r(e));else t.set(n,r(i));return t}function o(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(let t of n){for(let n of t.keys())e.delete(n);for(let[n,r]of t.entries())e.append(n,r)}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{assign:function(){return o},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return i}})},8883:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return l}}),n(3230);let r=n(5100),i=n(5840),o=["-moz-initial","fill","none","scale-down",void 0];function a(e){return void 0!==e.default}function s(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function l(e,t){var n,l;let u,c,d,{src:h,sizes:f,unoptimized:p=!1,priority:m=!1,loading:g,className:y,quality:v,width:x,height:b,fill:w=!1,style:k,overrideSrc:C,onLoad:S,onLoadingComplete:_,placeholder:E="empty",blurDataURL:T,fetchPriority:P,decoding:A="async",layout:j,objectFit:M,objectPosition:R,lazyBoundary:O,lazyRoot:D,...N}=e,{imgConf:L,showAltText:I,blurComplete:F,defaultLoader:z}=t,V=L||i.imageConfigDefault;if("allSizes"in V)u=V;else{let e=[...V.deviceSizes,...V.imageSizes].sort((e,t)=>e-t),t=V.deviceSizes.sort((e,t)=>e-t),r=null==(n=V.qualities)?void 0:n.sort((e,t)=>e-t);u={...V,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===z)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let B=N.loader||z;delete N.loader,delete N.srcSet;let H="__next_img_default"in B;if(H){if("custom"===u.loader)throw Object.defineProperty(Error('Image with src "'+h+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=B;B=t=>{let{config:n,...r}=t;return e(r)}}if(j){"fill"===j&&(w=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[j];e&&(k={...k,...e});let t={responsive:"100vw",fill:"100vw"}[j];t&&!f&&(f=t)}let U="",W=s(x),$=s(b);if((l=h)&&"object"==typeof l&&(a(l)||void 0!==l.src)){let e=a(h)?h.default:h;if(!e.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(c=e.blurWidth,d=e.blurHeight,T=T||e.blurDataURL,U=e.src,!w)if(W||$){if(W&&!$){let t=W/e.width;$=Math.round(e.height*t)}else if(!W&&$){let t=$/e.height;W=Math.round(e.width*t)}}else W=e.width,$=e.height}let Z=!m&&("lazy"===g||void 0===g);(!(h="string"==typeof h?h:U)||h.startsWith("data:")||h.startsWith("blob:"))&&(p=!0,Z=!1),u.unoptimized&&(p=!0),H&&!u.dangerouslyAllowSVG&&h.split("?",1)[0].endsWith(".svg")&&(p=!0);let q=s(v),K=Object.assign(w?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:M,objectPosition:R}:{},I?{}:{color:"transparent"},k),Y=F||"empty"===E?null:"blur"===E?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:W,heightInt:$,blurWidth:c,blurHeight:d,blurDataURL:T||"",objectFit:K.objectFit})+'")':'url("'+E+'")',G=o.includes(K.objectFit)?"fill"===K.objectFit?"100% 100%":"cover":K.objectFit,X=Y?{backgroundSize:G,backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Y}:{},Q=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:o,sizes:a,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:o,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:s({config:t,src:n,quality:o,width:l[c]})}}({config:u,src:h,unoptimized:p,width:W,quality:q,sizes:f,loader:B});return{props:{...N,loading:Z?"lazy":g,fetchPriority:P,width:W,height:$,decoding:A,className:y,style:{...K,...X},sizes:Q.sizes,srcSet:Q.srcSet,src:C||Q.src},meta:{unoptimized:p,priority:m,placeholder:E,fill:w}}}},8905:(e,t,n)=>{"use strict";n.d(t,{C:()=>a});var r=n(2115),i=n(6101),o=n(2712),a=e=>{let{present:t,children:n}=e,a=function(e){var t,n;let[i,a]=r.useState(),l=r.useRef(null),u=r.useRef(e),c=r.useRef("none"),[d,h]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=s(l.current);c.current="mounted"===d?e:"none"},[d]),(0,o.N)(()=>{let t=l.current,n=u.current;if(n!==e){let r=c.current,i=s(t);e?h("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?h("UNMOUNT"):n&&r!==i?h("ANIMATION_OUT"):h("UNMOUNT"),u.current=e}},[e,h]),(0,o.N)(()=>{if(i){var e;let t,n=null!=(e=i.ownerDocument.defaultView)?e:window,r=e=>{let r=s(l.current).includes(e.animationName);if(e.target===i&&r&&(h("ANIMATION_END"),!u.current)){let e=i.style.animationFillMode;i.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=e)})}},o=e=>{e.target===i&&(c.current=s(l.current))};return i.addEventListener("animationstart",o),i.addEventListener("animationcancel",r),i.addEventListener("animationend",r),()=>{n.clearTimeout(t),i.removeEventListener("animationstart",o),i.removeEventListener("animationcancel",r),i.removeEventListener("animationend",r)}}h("ANIMATION_END")},[i,h]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{l.current=e?getComputedStyle(e):null,a(e)},[])}}(t),l="function"==typeof n?n({present:a.isPresent}):r.Children.only(n),u=(0,i.s)(a.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?e.ref:(i=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(l));return"function"==typeof n||a.isPresent?r.cloneElement(l,{ref:u}):null};function s(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},8972:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});let r="undefined"!=typeof window},8979:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]])},9033:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(2115);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},9178:(e,t,n)=>{"use strict";n.d(t,{qW:()=>h});var r,i=n(2115),o=n(5185),a=n(3655),s=n(6101),l=n(9033),u=n(5155),c="dismissableLayer.update",d=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h=i.forwardRef((e,t)=>{var n,h;let{disableOutsidePointerEvents:m=!1,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:v,onInteractOutside:x,onDismiss:b,...w}=e,k=i.useContext(d),[C,S]=i.useState(null),_=null!=(h=null==C?void 0:C.ownerDocument)?h:null==(n=globalThis)?void 0:n.document,[,E]=i.useState({}),T=(0,s.s)(t,e=>S(e)),P=Array.from(k.layers),[A]=[...k.layersWithOutsidePointerEventsDisabled].slice(-1),j=P.indexOf(A),M=C?P.indexOf(C):-1,R=k.layersWithOutsidePointerEventsDisabled.size>0,O=M>=j,D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,l.c)(e),o=i.useRef(!1),a=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){p("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...k.branches].some(e=>e.contains(t));O&&!n&&(null==y||y(e),null==x||x(e),e.defaultPrevented||null==b||b())},_),N=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,l.c)(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!o.current&&p("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;![...k.branches].some(e=>e.contains(t))&&(null==v||v(e),null==x||x(e),e.defaultPrevented||null==b||b())},_);return!function(e,t=globalThis?.document){let n=(0,l.c)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{M===k.layers.size-1&&(null==g||g(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},_),i.useEffect(()=>{if(C)return m&&(0===k.layersWithOutsidePointerEventsDisabled.size&&(r=_.body.style.pointerEvents,_.body.style.pointerEvents="none"),k.layersWithOutsidePointerEventsDisabled.add(C)),k.layers.add(C),f(),()=>{m&&1===k.layersWithOutsidePointerEventsDisabled.size&&(_.body.style.pointerEvents=r)}},[C,_,m,k]),i.useEffect(()=>()=>{C&&(k.layers.delete(C),k.layersWithOutsidePointerEventsDisabled.delete(C),f())},[C,k]),i.useEffect(()=>{let e=()=>E({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(a.sG.div,{...w,ref:T,style:{pointerEvents:R?O?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.m)(e.onFocusCapture,N.onFocusCapture),onBlurCapture:(0,o.m)(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:(0,o.m)(e.onPointerDownCapture,D.onPointerDownCapture)})});function f(){let e=new CustomEvent(c);document.dispatchEvent(e)}function p(e,t,n,r){let{discrete:i}=r,o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),i?(0,a.hO)(o,s):o.dispatchEvent(s)}h.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(d),r=i.useRef(null),o=(0,s.s)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(a.sG.div,{...e,ref:o})}).displayName="DismissableLayerBranch"},9367:(e,t,n)=>{"use strict";function r(e,[t,n]){return Math.min(n,Math.max(t,e))}n.d(t,{q:()=>r})},9376:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("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"}]])},9381:(e,t,n)=>{"use strict";n.d(t,{y:()=>o});var r=n(1603);let i={}.hasOwnProperty;function o(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let o,a=(i.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];if(s)for(o in s){i.call(a,o)||(a[o]=[]);let e=s[o];!function(e,t){let n=-1,i=[];for(;++n<t.length;)("after"===t[n].add?e:i).push(t[n]);(0,r.m)(e,0,0,i)}(a[o],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}},9449:(e,t,n)=>{"use strict";n.d(t,{UC:()=>e6,q7:()=>e7,ZL:()=>e9,bL:()=>e4,l9:()=>e3});var r=n(2115),i=n(5185),o=n(6101),a=n(6081),s=n(5845),l=n(3655),u=n(7328),c=n(4315),d=n(9178),h=n(2293),f=n(7900),p=n(1285),m=n(8795),g=n(4378),y=n(8905),v=n(9033),x=n(5155),b="rovingFocusGroup.onEntryFocus",w={bubbles:!1,cancelable:!0},k="RovingFocusGroup",[C,S,_]=(0,u.N)(k),[E,T]=(0,a.A)(k,[_]),[P,A]=E(k),j=r.forwardRef((e,t)=>(0,x.jsx)(C.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,x.jsx)(C.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,x.jsx)(M,{...e,ref:t})})}));j.displayName=k;var M=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:a,loop:u=!1,dir:d,currentTabStopId:h,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:p,onEntryFocus:m,preventScrollOnEntryFocus:g=!1,...y}=e,C=r.useRef(null),_=(0,o.s)(t,C),E=(0,c.jH)(d),[T,A]=(0,s.i)({prop:h,defaultProp:null!=f?f:null,onChange:p,caller:k}),[j,M]=r.useState(!1),R=(0,v.c)(m),O=S(n),D=r.useRef(!1),[L,I]=r.useState(0);return r.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(b,R),()=>e.removeEventListener(b,R)},[R]),(0,x.jsx)(P,{scope:n,orientation:a,dir:E,loop:u,currentTabStopId:T,onItemFocus:r.useCallback(e=>A(e),[A]),onItemShiftTab:r.useCallback(()=>M(!0),[]),onFocusableItemAdd:r.useCallback(()=>I(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>I(e=>e-1),[]),children:(0,x.jsx)(l.sG.div,{tabIndex:j||0===L?-1:0,"data-orientation":a,...y,ref:_,style:{outline:"none",...e.style},onMouseDown:(0,i.m)(e.onMouseDown,()=>{D.current=!0}),onFocus:(0,i.m)(e.onFocus,e=>{let t=!D.current;if(e.target===e.currentTarget&&t&&!j){let t=new CustomEvent(b,w);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=O().filter(e=>e.focusable);N([e.find(e=>e.active),e.find(e=>e.id===T),...e].filter(Boolean).map(e=>e.ref.current),g)}}D.current=!1}),onBlur:(0,i.m)(e.onBlur,()=>M(!1))})})}),R="RovingFocusGroupItem",O=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:o=!0,active:a=!1,tabStopId:s,children:u,...c}=e,d=(0,p.B)(),h=s||d,f=A(R,n),m=f.currentTabStopId===h,g=S(n),{onFocusableItemAdd:y,onFocusableItemRemove:v,currentTabStopId:b}=f;return r.useEffect(()=>{if(o)return y(),()=>v()},[o,y,v]),(0,x.jsx)(C.ItemSlot,{scope:n,id:h,focusable:o,active:a,children:(0,x.jsx)(l.sG.span,{tabIndex:m?0:-1,"data-orientation":f.orientation,...c,ref:t,onMouseDown:(0,i.m)(e.onMouseDown,e=>{o?f.onItemFocus(h):e.preventDefault()}),onFocus:(0,i.m)(e.onFocus,()=>f.onItemFocus(h)),onKeyDown:(0,i.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void f.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return D[i]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=f.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>N(n))}}),children:"function"==typeof u?u({isCurrentTabStop:m,hasTabStop:null!=b}):u})})});O.displayName=R;var D={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function N(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var L=n(9708),I=n(8168),F=n(3795),z=["Enter"," "],V=["ArrowUp","PageDown","End"],B=["ArrowDown","PageUp","Home",...V],H={ltr:[...z,"ArrowRight"],rtl:[...z,"ArrowLeft"]},U={ltr:["ArrowLeft"],rtl:["ArrowRight"]},W="Menu",[$,Z,q]=(0,u.N)(W),[K,Y]=(0,a.A)(W,[q,m.Bk,T]),G=(0,m.Bk)(),X=T(),[Q,J]=K(W),[ee,et]=K(W),en=e=>{let{__scopeMenu:t,open:n=!1,children:i,dir:o,onOpenChange:a,modal:s=!0}=e,l=G(t),[u,d]=r.useState(null),h=r.useRef(!1),f=(0,v.c)(a),p=(0,c.jH)(o);return r.useEffect(()=>{let e=()=>{h.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>h.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,x.jsx)(m.bL,{...l,children:(0,x.jsx)(Q,{scope:t,open:n,onOpenChange:f,content:u,onContentChange:d,children:(0,x.jsx)(ee,{scope:t,onClose:r.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:h,dir:p,modal:s,children:i})})})};en.displayName=W;var er=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=G(n);return(0,x.jsx)(m.Mz,{...i,...r,ref:t})});er.displayName="MenuAnchor";var ei="MenuPortal",[eo,ea]=K(ei,{forceMount:void 0}),es=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=J(ei,t);return(0,x.jsx)(eo,{scope:t,forceMount:n,children:(0,x.jsx)(y.C,{present:n||o.open,children:(0,x.jsx)(g.Z,{asChild:!0,container:i,children:r})})})};es.displayName=ei;var el="MenuContent",[eu,ec]=K(el),ed=r.forwardRef((e,t)=>{let n=ea(el,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=J(el,e.__scopeMenu),a=et(el,e.__scopeMenu);return(0,x.jsx)($.Provider,{scope:e.__scopeMenu,children:(0,x.jsx)(y.C,{present:r||o.open,children:(0,x.jsx)($.Slot,{scope:e.__scopeMenu,children:a.modal?(0,x.jsx)(eh,{...i,ref:t}):(0,x.jsx)(ef,{...i,ref:t})})})})}),eh=r.forwardRef((e,t)=>{let n=J(el,e.__scopeMenu),a=r.useRef(null),s=(0,o.s)(t,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,I.Eq)(e)},[]),(0,x.jsx)(em,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),ef=r.forwardRef((e,t)=>{let n=J(el,e.__scopeMenu);return(0,x.jsx)(em,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ep=(0,L.TL)("MenuContent.ScrollLock"),em=r.forwardRef((e,t)=>{let{__scopeMenu:n,loop:a=!1,trapFocus:s,onOpenAutoFocus:l,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEntryFocus:p,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:v,onInteractOutside:b,onDismiss:w,disableOutsideScroll:k,...C}=e,S=J(el,n),_=et(el,n),E=G(n),T=X(n),P=Z(n),[A,M]=r.useState(null),R=r.useRef(null),O=(0,o.s)(t,R,S.onContentChange),D=r.useRef(0),N=r.useRef(""),L=r.useRef(0),I=r.useRef(null),z=r.useRef("right"),H=r.useRef(0),U=k?F.A:r.Fragment;r.useEffect(()=>()=>window.clearTimeout(D.current),[]),(0,h.Oh)();let W=r.useCallback(e=>{var t,n;return z.current===(null==(t=I.current)?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let a=t[e],s=t[o],l=a.x,u=a.y,c=s.x,d=s.y;u>r!=d>r&&n<(c-l)*(r-u)/(d-u)+l&&(i=!i)}return i}({x:e.clientX,y:e.clientY},t)}(e,null==(n=I.current)?void 0:n.area)},[]);return(0,x.jsx)(eu,{scope:n,searchRef:N,onItemEnter:r.useCallback(e=>{W(e)&&e.preventDefault()},[W]),onItemLeave:r.useCallback(e=>{var t;W(e)||(null==(t=R.current)||t.focus(),M(null))},[W]),onTriggerLeave:r.useCallback(e=>{W(e)&&e.preventDefault()},[W]),pointerGraceTimerRef:L,onPointerGraceIntentChange:r.useCallback(e=>{I.current=e},[]),children:(0,x.jsx)(U,{...k?{as:ep,allowPinchZoom:!0}:void 0,children:(0,x.jsx)(f.n,{asChild:!0,trapped:s,onMountAutoFocus:(0,i.m)(l,e=>{var t;e.preventDefault(),null==(t=R.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,x.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:v,onInteractOutside:b,onDismiss:w,children:(0,x.jsx)(j,{asChild:!0,...T,dir:_.dir,orientation:"vertical",loop:a,currentTabStopId:A,onCurrentTabStopIdChange:M,onEntryFocus:(0,i.m)(p,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,x.jsx)(m.UC,{role:"menu","aria-orientation":"vertical","data-state":eB(S.open),"data-radix-menu-content":"",dir:_.dir,...E,...C,ref:O,style:{outline:"none",...C.style},onKeyDown:(0,i.m)(C.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{var t,n;let r=N.current+e,i=P().filter(e=>!e.disabled),o=document.activeElement,a=null==(t=i.find(e=>e.ref.current===o))?void 0:t.textValue,s=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1,a=(r=Math.max(o,0),e.map((t,n)=>e[(r+n)%e.length]));1===i.length&&(a=a.filter(e=>e!==n));let s=a.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return s!==n?s:void 0}(i.map(e=>e.textValue),r,a),l=null==(n=i.find(e=>e.textValue===s))?void 0:n.ref.current;!function e(t){N.current=t,window.clearTimeout(D.current),""!==t&&(D.current=window.setTimeout(()=>e(""),1e3))}(r),l&&setTimeout(()=>l.focus())})(e.key));let i=R.current;if(e.target!==i||!B.includes(e.key))return;e.preventDefault();let o=P().filter(e=>!e.disabled).map(e=>e.ref.current);V.includes(e.key)&&o.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(o)}),onBlur:(0,i.m)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(D.current),N.current="")}),onPointerMove:(0,i.m)(e.onPointerMove,eW(e=>{let t=e.target,n=H.current!==e.clientX;e.currentTarget.contains(t)&&n&&(z.current=e.clientX>H.current?"right":"left",H.current=e.clientX)}))})})})})})})});ed.displayName=el;var eg=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,x.jsx)(l.sG.div,{role:"group",...r,ref:t})});eg.displayName="MenuGroup";var ey=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,x.jsx)(l.sG.div,{...r,ref:t})});ey.displayName="MenuLabel";var ev="MenuItem",ex="menu.itemSelect",eb=r.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:a,...s}=e,u=r.useRef(null),c=et(ev,e.__scopeMenu),d=ec(ev,e.__scopeMenu),h=(0,o.s)(t,u),f=r.useRef(!1);return(0,x.jsx)(ew,{...s,ref:h,disabled:n,onClick:(0,i.m)(e.onClick,()=>{let e=u.current;if(!n&&e){let t=new CustomEvent(ex,{bubbles:!0,cancelable:!0});e.addEventListener(ex,e=>null==a?void 0:a(e),{once:!0}),(0,l.hO)(e,t),t.defaultPrevented?f.current=!1:c.onClose()}}),onPointerDown:t=>{var n;null==(n=e.onPointerDown)||n.call(e,t),f.current=!0},onPointerUp:(0,i.m)(e.onPointerUp,e=>{var t;f.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;n||t&&" "===e.key||z.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eb.displayName=ev;var ew=r.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:a=!1,textValue:s,...u}=e,c=ec(ev,n),d=X(n),h=r.useRef(null),f=(0,o.s)(t,h),[p,m]=r.useState(!1),[g,y]=r.useState("");return r.useEffect(()=>{let e=h.current;if(e){var t;y((null!=(t=e.textContent)?t:"").trim())}},[u.children]),(0,x.jsx)($.ItemSlot,{scope:n,disabled:a,textValue:null!=s?s:g,children:(0,x.jsx)(O,{asChild:!0,...d,focusable:!a,children:(0,x.jsx)(l.sG.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...u,ref:f,onPointerMove:(0,i.m)(e.onPointerMove,eW(e=>{a?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,i.m)(e.onPointerLeave,eW(e=>c.onItemLeave(e))),onFocus:(0,i.m)(e.onFocus,()=>m(!0)),onBlur:(0,i.m)(e.onBlur,()=>m(!1))})})})}),ek=r.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...o}=e;return(0,x.jsx)(ej,{scope:e.__scopeMenu,checked:n,children:(0,x.jsx)(eb,{role:"menuitemcheckbox","aria-checked":eH(n)?"mixed":n,...o,ref:t,"data-state":eU(n),onSelect:(0,i.m)(o.onSelect,()=>null==r?void 0:r(!!eH(n)||!n),{checkForDefaultPrevented:!1})})})});ek.displayName="MenuCheckboxItem";var eC="MenuRadioGroup",[eS,e_]=K(eC,{value:void 0,onValueChange:()=>{}}),eE=r.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,o=(0,v.c)(r);return(0,x.jsx)(eS,{scope:e.__scopeMenu,value:n,onValueChange:o,children:(0,x.jsx)(eg,{...i,ref:t})})});eE.displayName=eC;var eT="MenuRadioItem",eP=r.forwardRef((e,t)=>{let{value:n,...r}=e,o=e_(eT,e.__scopeMenu),a=n===o.value;return(0,x.jsx)(ej,{scope:e.__scopeMenu,checked:a,children:(0,x.jsx)(eb,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":eU(a),onSelect:(0,i.m)(r.onSelect,()=>{var e;return null==(e=o.onValueChange)?void 0:e.call(o,n)},{checkForDefaultPrevented:!1})})})});eP.displayName=eT;var eA="MenuItemIndicator",[ej,eM]=K(eA,{checked:!1}),eR=r.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,o=eM(eA,n);return(0,x.jsx)(y.C,{present:r||eH(o.checked)||!0===o.checked,children:(0,x.jsx)(l.sG.span,{...i,ref:t,"data-state":eU(o.checked)})})});eR.displayName=eA;var eO=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,x.jsx)(l.sG.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});eO.displayName="MenuSeparator";var eD=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=G(n);return(0,x.jsx)(m.i3,{...i,...r,ref:t})});eD.displayName="MenuArrow";var[eN,eL]=K("MenuSub"),eI="MenuSubTrigger",eF=r.forwardRef((e,t)=>{let n=J(eI,e.__scopeMenu),a=et(eI,e.__scopeMenu),s=eL(eI,e.__scopeMenu),l=ec(eI,e.__scopeMenu),u=r.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=l,h={__scopeMenu:e.__scopeMenu},f=r.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return r.useEffect(()=>f,[f]),r.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),d(null)}},[c,d]),(0,x.jsx)(er,{asChild:!0,...h,children:(0,x.jsx)(ew,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":s.contentId,"data-state":eB(n.open),...e,ref:(0,o.t)(t,s.onTriggerChange),onClick:t=>{var r;null==(r=e.onClick)||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,i.m)(e.onPointerMove,eW(t=>{l.onItemEnter(t),!t.defaultPrevented&&(e.disabled||n.open||u.current||(l.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100)))})),onPointerLeave:(0,i.m)(e.onPointerLeave,eW(e=>{var t,r;f();let i=null==(t=n.content)?void 0:t.getBoundingClientRect();if(i){let t=null==(r=n.content)?void 0:r.dataset.side,o="right"===t,a=i[o?"left":"right"],s=i[o?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:a,y:i.top},{x:s,y:i.top},{x:s,y:i.bottom},{x:a,y:i.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:(0,i.m)(e.onKeyDown,t=>{let r=""!==l.searchRef.current;if(!e.disabled&&(!r||" "!==t.key)&&H[a.dir].includes(t.key)){var i;n.onOpenChange(!0),null==(i=n.content)||i.focus(),t.preventDefault()}})})})});eF.displayName=eI;var ez="MenuSubContent",eV=r.forwardRef((e,t)=>{let n=ea(el,e.__scopeMenu),{forceMount:a=n.forceMount,...s}=e,l=J(el,e.__scopeMenu),u=et(el,e.__scopeMenu),c=eL(ez,e.__scopeMenu),d=r.useRef(null),h=(0,o.s)(t,d);return(0,x.jsx)($.Provider,{scope:e.__scopeMenu,children:(0,x.jsx)(y.C,{present:a||l.open,children:(0,x.jsx)($.Slot,{scope:e.__scopeMenu,children:(0,x.jsx)(em,{id:c.contentId,"aria-labelledby":c.triggerId,...s,ref:h,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;u.isUsingKeyboardRef.current&&(null==(t=d.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>{e.target!==c.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:(0,i.m)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=U[u.dir].includes(e.key);if(t&&n){var r;l.onOpenChange(!1),null==(r=c.trigger)||r.focus(),e.preventDefault()}})})})})})});function eB(e){return e?"open":"closed"}function eH(e){return"indeterminate"===e}function eU(e){return eH(e)?"indeterminate":e?"checked":"unchecked"}function eW(e){return t=>"mouse"===t.pointerType?e(t):void 0}eV.displayName=ez;var e$="DropdownMenu",[eZ,eq]=(0,a.A)(e$,[Y]),eK=Y(),[eY,eG]=eZ(e$),eX=e=>{let{__scopeDropdownMenu:t,children:n,dir:i,open:o,defaultOpen:a,onOpenChange:l,modal:u=!0}=e,c=eK(t),d=r.useRef(null),[h,f]=(0,s.i)({prop:o,defaultProp:null!=a&&a,onChange:l,caller:e$});return(0,x.jsx)(eY,{scope:t,triggerId:(0,p.B)(),triggerRef:d,contentId:(0,p.B)(),open:h,onOpenChange:f,onOpenToggle:r.useCallback(()=>f(e=>!e),[f]),modal:u,children:(0,x.jsx)(en,{...c,open:h,onOpenChange:f,dir:i,modal:u,children:n})})};eX.displayName=e$;var eQ="DropdownMenuTrigger",eJ=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...a}=e,s=eG(eQ,n),u=eK(n);return(0,x.jsx)(er,{asChild:!0,...u,children:(0,x.jsx)(l.sG.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...a,ref:(0,o.t)(t,s.triggerRef),onPointerDown:(0,i.m)(e.onPointerDown,e=>{!r&&0===e.button&&!1===e.ctrlKey&&(s.onOpenToggle(),s.open||e.preventDefault())}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&s.onOpenToggle(),"ArrowDown"===e.key&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});eJ.displayName=eQ;var e0=e=>{let{__scopeDropdownMenu:t,...n}=e,r=eK(t);return(0,x.jsx)(es,{...r,...n})};e0.displayName="DropdownMenuPortal";var e1="DropdownMenuContent",e2=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,a=eG(e1,n),s=eK(n),l=r.useRef(!1);return(0,x.jsx)(ed,{id:a.contentId,"aria-labelledby":a.triggerId,...s,...o,ref:t,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{var t;l.current||null==(t=a.triggerRef.current)||t.focus(),l.current=!1,e.preventDefault()}),onInteractOutside:(0,i.m)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!a.modal||r)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});e2.displayName=e1,r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=eK(n);return(0,x.jsx)(eg,{...i,...r,ref:t})}).displayName="DropdownMenuGroup",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=eK(n);return(0,x.jsx)(ey,{...i,...r,ref:t})}).displayName="DropdownMenuLabel";var e5=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=eK(n);return(0,x.jsx)(eb,{...i,...r,ref:t})});e5.displayName="DropdownMenuItem",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=eK(n);return(0,x.jsx)(ek,{...i,...r,ref:t})}).displayName="DropdownMenuCheckboxItem",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=eK(n);return(0,x.jsx)(eE,{...i,...r,ref:t})}).displayName="DropdownMenuRadioGroup",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=eK(n);return(0,x.jsx)(eP,{...i,...r,ref:t})}).displayName="DropdownMenuRadioItem",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=eK(n);return(0,x.jsx)(eR,{...i,...r,ref:t})}).displayName="DropdownMenuItemIndicator",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=eK(n);return(0,x.jsx)(eO,{...i,...r,ref:t})}).displayName="DropdownMenuSeparator",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=eK(n);return(0,x.jsx)(eD,{...i,...r,ref:t})}).displayName="DropdownMenuArrow",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=eK(n);return(0,x.jsx)(eF,{...i,...r,ref:t})}).displayName="DropdownMenuSubTrigger",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=eK(n);return(0,x.jsx)(eV,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var e4=eX,e3=eJ,e9=e0,e6=e2,e7=e5},9535:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var r=n(2556);function i(e){return null===e||(0,r.Ee)(e)||(0,r.Ny)(e)?1:(0,r.es)(e)?2:void 0}},9613:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>W,UC:()=>K,ZL:()=>q,bL:()=>$,i3:()=>Y,l9:()=>Z});var r=n(2115),i=n(5185),o=n(6101),a=n(6081),s=n(9178),l=n(1285),u=n(8795),c=n(4378),d=n(8905),h=n(3655),f=n(9708),p=n(5845),m=n(2564),g=n(5155),[y,v]=(0,a.A)("Tooltip",[u.Bk]),x=(0,u.Bk)(),b="TooltipProvider",w="tooltip.open",[k,C]=y(b),S=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:a}=e,s=r.useRef(!0),l=r.useRef(!1),u=r.useRef(0);return r.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,g.jsx)(k,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:r.useCallback(()=>{window.clearTimeout(u.current),s.current=!1},[]),onClose:r.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.current=!0,i)},[i]),isPointerInTransitRef:l,onPointerInTransitChange:r.useCallback(e=>{l.current=e},[]),disableHoverableContent:o,children:a})};S.displayName=b;var _="Tooltip",[E,T]=y(_),P=e=>{let{__scopeTooltip:t,children:n,open:i,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:c}=e,d=C(_,e.__scopeTooltip),h=x(t),[f,m]=r.useState(null),y=(0,l.B)(),v=r.useRef(0),b=null!=s?s:d.disableHoverableContent,k=null!=c?c:d.delayDuration,S=r.useRef(!1),[T,P]=(0,p.i)({prop:i,defaultProp:null!=o&&o,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(w))):d.onClose(),null==a||a(e)},caller:_}),A=r.useMemo(()=>T?S.current?"delayed-open":"instant-open":"closed",[T]),j=r.useCallback(()=>{window.clearTimeout(v.current),v.current=0,S.current=!1,P(!0)},[P]),M=r.useCallback(()=>{window.clearTimeout(v.current),v.current=0,P(!1)},[P]),R=r.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{S.current=!0,P(!0),v.current=0},k)},[k,P]);return r.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),(0,g.jsx)(u.bL,{...h,children:(0,g.jsx)(E,{scope:t,contentId:y,open:T,stateAttribute:A,trigger:f,onTriggerChange:m,onTriggerEnter:r.useCallback(()=>{d.isOpenDelayedRef.current?R():j()},[d.isOpenDelayedRef,R,j]),onTriggerLeave:r.useCallback(()=>{b?M():(window.clearTimeout(v.current),v.current=0)},[M,b]),onOpen:j,onClose:M,disableHoverableContent:b,children:n})})};P.displayName=_;var A="TooltipTrigger",j=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...a}=e,s=T(A,n),l=C(A,n),c=x(n),d=r.useRef(null),f=(0,o.s)(t,d,s.onTriggerChange),p=r.useRef(!1),m=r.useRef(!1),y=r.useCallback(()=>p.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),(0,g.jsx)(u.Mz,{asChild:!0,...c,children:(0,g.jsx)(h.sG.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...a,ref:f,onPointerMove:(0,i.m)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(m.current||l.isPointerInTransitRef.current||(s.onTriggerEnter(),m.current=!0))}),onPointerLeave:(0,i.m)(e.onPointerLeave,()=>{s.onTriggerLeave(),m.current=!1}),onPointerDown:(0,i.m)(e.onPointerDown,()=>{s.open&&s.onClose(),p.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:(0,i.m)(e.onFocus,()=>{p.current||s.onOpen()}),onBlur:(0,i.m)(e.onBlur,s.onClose),onClick:(0,i.m)(e.onClick,s.onClose)})})});j.displayName=A;var M="TooltipPortal",[R,O]=y(M,{forceMount:void 0}),D=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=T(M,t);return(0,g.jsx)(R,{scope:t,forceMount:n,children:(0,g.jsx)(d.C,{present:n||o.open,children:(0,g.jsx)(c.Z,{asChild:!0,container:i,children:r})})})};D.displayName=M;var N="TooltipContent",L=r.forwardRef((e,t)=>{let n=O(N,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=T(N,e.__scopeTooltip);return(0,g.jsx)(d.C,{present:r||a.open,children:a.disableHoverableContent?(0,g.jsx)(B,{side:i,...o,ref:t}):(0,g.jsx)(I,{side:i,...o,ref:t})})}),I=r.forwardRef((e,t)=>{let n=T(N,e.__scopeTooltip),i=C(N,e.__scopeTooltip),a=r.useRef(null),s=(0,o.s)(t,a),[l,u]=r.useState(null),{trigger:c,onClose:d}=n,h=a.current,{onPointerInTransitChange:f}=i,p=r.useCallback(()=>{u(null),f(!1)},[f]),m=r.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());u(function(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,i),...function(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect())])),f(!0)},[f]);return r.useEffect(()=>()=>p(),[p]),r.useEffect(()=>{if(c&&h){let e=e=>m(e,h),t=e=>m(e,c);return c.addEventListener("pointerleave",e),h.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),h.removeEventListener("pointerleave",t)}}},[c,h,m,p]),r.useEffect(()=>{if(l){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==h?void 0:h.contains(t)),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let a=t[e],s=t[o],l=a.x,u=a.y,c=s.x,d=s.y;u>r!=d>r&&n<(c-l)*(r-u)/(d-u)+l&&(i=!i)}return i}(n,l);r?p():i&&(p(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,h,l,d,p]),(0,g.jsx)(B,{...e,ref:s})}),[F,z]=y(_,{isInside:!1}),V=(0,f.Dc)("TooltipContent"),B=r.forwardRef((e,t)=>{let{__scopeTooltip:n,children:i,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:l,...c}=e,d=T(N,n),h=x(n),{onClose:f}=d;return r.useEffect(()=>(document.addEventListener(w,f),()=>document.removeEventListener(w,f)),[f]),r.useEffect(()=>{if(d.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(d.trigger))&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,f]),(0,g.jsx)(s.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:f,children:(0,g.jsxs)(u.UC,{"data-state":d.stateAttribute,...h,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,g.jsx)(V,{children:i}),(0,g.jsx)(F,{scope:n,isInside:!0,children:(0,g.jsx)(m.bL,{id:d.contentId,role:"tooltip",children:o||i})})]})})});L.displayName=N;var H="TooltipArrow",U=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=x(n);return z(H,n).isInside?null:(0,g.jsx)(u.i3,{...i,...r,ref:t})});U.displayName=H;var W=S,$=P,Z=j,q=D,K=L,Y=U},9708:(e,t,n)=>{"use strict";n.d(t,{DX:()=>s,Dc:()=>u,TL:()=>a});var r=n(2115),i=n(6101),o=n(5155);function a(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){var a;let e,s,l=(a=n,(s=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(s=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(u.ref=t?(0,i.t)(t,l):l),r.cloneElement(n,u)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:i,...a}=e,s=r.Children.toArray(i),l=s.find(c);if(l){let e=l.props.children,i=s.map(t=>t!==l?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,o.jsx)(t,{...a,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return(0,o.jsx)(t,{...a,ref:n,children:i})});return n.displayName=`${e}.Slot`,n}var s=a("Slot"),l=Symbol("radix.slottable");function u(e){let t=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=l,t}function c(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l}},9803:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]])},9881:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]])},9890:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("file",[["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"}]])},9991:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DecodeError:function(){return p},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return y},NormalizeError:function(){return m},PageNotFoundError:function(){return g},SP:function(){return h},ST:function(){return f},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return l},getLocationOrigin:function(){return a},getURL:function(){return s},isAbsoluteUrl:function(){return o},isResSent:function(){return u},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return x}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return n||(n=!0,t=e(...i)),t}}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>i.test(e);function a(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function s(){let{href:e}=window.location,t=a();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&u(n))return r;if(!r)throw Object.defineProperty(Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return r}let h="undefined"!=typeof performance,f=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class p extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function x(e){return JSON.stringify({message:e.message,stack:e.stack})}},9994:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>eu});var r,i,o,a,s,l,u,c,d,h,f,p,m,g,y,v=n(5155),x=n(2115);"function"==typeof SuppressedError&&SuppressedError;var b=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}},w={"text/plain":"Text","text/html":"Url",default:"Text"},k=function(e,t){var n,r,i,o,a,s,l,u,c=!1;t||(t={}),i=t.debug||!1;try{if(a=b(),s=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){i&&console.warn("unable to use e.clipboardData"),i&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=w[t.format]||w.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(u),s.selectNodeContents(u),l.addRange(s),!document.execCommand("copy"))throw Error("copy command was unsuccessful");c=!0}catch(a){i&&console.error("unable to copy using execCommand: ",a),i&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(a){i&&console.error("unable to copy using clipboardData: ",a),i&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",r=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",o=n.replace(/#{\s*key\s*}/g,r),window.prompt(o,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),u&&document.body.removeChild(u),a()}return c};function C(e){return"[object Object]"===Object.prototype.toString.call(e)}function S(e){return Array.isArray(e)?e.length:C(e)?Object.keys(e).length:0}function _(e,t,n,r,i,o){if(o&&void 0!==o.collapsed)return!!o.collapsed;if("boolean"==typeof r)return r;if("number"==typeof r&&t>r)return!0;let a=S(e);if("function"==typeof r){let i=P(r,[{node:e,depth:t,indexOrName:n,size:a}]);if("boolean"==typeof i)return i}return!!(Array.isArray(e)&&a>i||C(e)&&a>i)}function E(e,t,n,r,i,o){if(o&&void 0!==o.collapsed)return!!o.collapsed;if("boolean"==typeof r)return r;if("number"==typeof r&&t>r)return!0;let a=Math.ceil(e.length/100);if("function"==typeof r){let i=P(r,[{node:e,depth:t,indexOrName:n,size:a}]);if("boolean"==typeof i)return i}return!!(Array.isArray(e)&&a>i||C(e)&&a>i)}function T(e,t,n){return"boolean"==typeof e?e:"number"==typeof e&&!!(t>e)||"collapsed"===e&&!!n||"expanded"===e&&!n}function P(e,t){try{return e(...t)}catch(e){reportError(e)}}function A(e){if(!0===e||C(e)&&!0===e.add)return!0}function j(e){if(!0===e||C(e)&&!0===e.edit)return!0}function M(e){if(!0===e||C(e)&&!0===e.delete)return!0}function R(e){return!e||void 0===e.add||!!e.add}function O(e){return!e||void 0===e.edit||!!e.edit}function D(e){return!e||void 0===e.delete||!!e.delete}function N(e){return!e||void 0===e.enableClipboard||!!e.enableClipboard}function L(){return(L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var I=function(e){return x.createElement("svg",L({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r||(r=x.createElement("path",{fill:"currentColor",d:"M12.473 5.806a.666.666 0 0 0-.946 0L8.473 8.86a.667.667 0 0 1-.946 0L4.473 5.806a.667.667 0 1 0-.946.94l3.06 3.06a2 2 0 0 0 2.826 0l3.06-3.06a.667.667 0 0 0 0-.94Z"})))};function F(){return(F=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var z=function(e){return x.createElement("svg",F({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),i||(i=x.createElement("path",{fill:"currentColor",d:"M17.542 2.5h-4.75a3.963 3.963 0 0 0-3.959 3.958v4.75a3.963 3.963 0 0 0 3.959 3.959h4.75a3.963 3.963 0 0 0 3.958-3.959v-4.75A3.963 3.963 0 0 0 17.542 2.5Zm2.375 8.708a2.378 2.378 0 0 1-2.375 2.375h-4.75a2.378 2.378 0 0 1-2.375-2.375v-4.75a2.378 2.378 0 0 1 2.375-2.375h4.75a2.378 2.378 0 0 1 2.375 2.375v4.75Zm-4.75 6.334a3.963 3.963 0 0 1-3.959 3.958h-4.75A3.963 3.963 0 0 1 2.5 17.542v-4.75a3.963 3.963 0 0 1 3.958-3.959.791.791 0 1 1 0 1.584 2.378 2.378 0 0 0-2.375 2.375v4.75a2.378 2.378 0 0 0 2.375 2.375h4.75a2.378 2.378 0 0 0 2.375-2.375.792.792 0 1 1 1.584 0Z"})))};function V(){return(V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var B=function(e){return x.createElement("svg",V({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),o||(o=x.createElement("path",{fill:"currentColor",d:"M17.25 3H6.75A3.755 3.755 0 0 0 3 6.75v10.5A3.754 3.754 0 0 0 6.75 21h10.5A3.754 3.754 0 0 0 21 17.25V6.75A3.755 3.755 0 0 0 17.25 3Zm2.25 14.25a2.25 2.25 0 0 1-2.25 2.25H6.75a2.25 2.25 0 0 1-2.25-2.25V6.75A2.25 2.25 0 0 1 6.75 4.5h10.5a2.25 2.25 0 0 1 2.25 2.25v10.5Z"})),a||(a=x.createElement("path",{fill:"#14C786",d:"M10.312 14.45 7.83 11.906a.625.625 0 0 0-.896 0 .659.659 0 0 0 0 .918l2.481 2.546a1.264 1.264 0 0 0 .896.381 1.237 1.237 0 0 0 .895-.38l5.858-6.011a.658.658 0 0 0 0-.919.625.625 0 0 0-.896 0l-5.857 6.01Z"})))};function H({node:e,nodeMeta:t}){let{customizeCopy:n,CopyComponent:r,CopiedComponent:i}=(0,x.useContext)(el),[o,a]=(0,x.useState)(!1),s=r=>{r.stopPropagation();let i=n(e,t);"string"==typeof i&&i&&function(e){var t,n,r,i;t=this,n=void 0,r=void 0,i=function*(){try{yield navigator.clipboard.writeText(e)}catch(t){k(e)}},new(r||(r=Promise))(function(e,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(t){var n;t.done?e(t.value):((n=t.value)instanceof r?n:new r(function(e){e(n)})).then(a,s)}l((i=i.apply(t,n||[])).next())})}(i),a(!0),setTimeout(()=>a(!1),3e3)};return o?"function"==typeof i?(0,v.jsx)(i,{className:"json-view--copy",style:{display:"inline-block"}}):(0,v.jsx)(B,{className:"json-view--copy",style:{display:"inline-block"}}):"function"==typeof r?(0,v.jsx)(r,{onClick:s,className:"json-view--copy"}):(0,v.jsx)(z,{onClick:s,className:"json-view--copy"})}function U({indexOrName:e,value:t,depth:n,deleteHandle:r,editHandle:i,parent:o,parentPath:a}){let{displayArrayIndex:s}=(0,x.useContext)(el),l=Array.isArray(o);return(0,v.jsxs)("div",Object.assign({className:"json-view--pair"},{children:[!l||l&&s?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("span",Object.assign({className:"number"==typeof e?"json-view--index":"json-view--property"},{children:e})),":"," "]}):(0,v.jsx)(v.Fragment,{}),(0,v.jsx)(ea,{node:t,depth:n+1,deleteHandle:(e,t)=>r(e,t),editHandle:(e,t,n,r)=>i(e,t,n,r),parent:o,indexOrName:e,parentPath:a})]}))}function W(){return(W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var $=function(e){return x.createElement("svg",W({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),s||(s=x.createElement("path",{fill:"currentColor",d:"M18.75 6h-2.325a3.757 3.757 0 0 0-3.675-3h-1.5a3.757 3.757 0 0 0-3.675 3H5.25a.75.75 0 0 0 0 1.5H6v9.75A3.754 3.754 0 0 0 9.75 21h4.5A3.754 3.754 0 0 0 18 17.25V7.5h.75a.75.75 0 1 0 0-1.5Zm-7.5-1.5h1.5A2.255 2.255 0 0 1 14.872 6H9.128a2.255 2.255 0 0 1 2.122-1.5Zm5.25 12.75a2.25 2.25 0 0 1-2.25 2.25h-4.5a2.25 2.25 0 0 1-2.25-2.25V7.5h9v9.75Z"})),l||(l=x.createElement("path",{fill:"#DA0000",d:"M10.5 16.5a.75.75 0 0 0 .75-.75v-4.5a.75.75 0 1 0-1.5 0v4.5a.75.75 0 0 0 .75.75ZM13.5 16.5a.75.75 0 0 0 .75-.75v-4.5a.75.75 0 1 0-1.5 0v4.5a.75.75 0 0 0 .75.75Z"})))};function Z(){return(Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var q=function(e){return x.createElement("svg",Z({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),u||(u=x.createElement("path",{fill:"currentColor",d:"M21 6.75v10.5A3.754 3.754 0 0 1 17.25 21H6.75A3.754 3.754 0 0 1 3 17.25V6.75A3.754 3.754 0 0 1 6.75 3h10.5A3.754 3.754 0 0 1 21 6.75Zm-1.5 0c0-1.24-1.01-2.25-2.25-2.25H6.75C5.51 4.5 4.5 5.51 4.5 6.75v10.5c0 1.24 1.01 2.25 2.25 2.25h10.5c1.24 0 2.25-1.01 2.25-2.25V6.75Z"})),c||(c=x.createElement("path",{fill:"#14C786",d:"M15 12.75a.75.75 0 1 0 0-1.5h-2.25V9a.75.75 0 1 0-1.5 0v2.25H9a.75.75 0 1 0 0 1.5h2.25V15a.75.75 0 1 0 1.5 0v-2.25H15Z"})))};function K(){return(K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Y=function(e){return x.createElement("svg",K({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),d||(d=x.createElement("path",{fill:"currentColor",d:"M12 3a9 9 0 1 0 9 9 9.01 9.01 0 0 0-9-9Zm0 16.5a7.5 7.5 0 1 1 7.5-7.5 7.509 7.509 0 0 1-7.5 7.5Z"})),h||(h=x.createElement("path",{fill:"#14C786",d:"m10.85 13.96-1.986-2.036a.5.5 0 0 0-.716 0 .527.527 0 0 0 0 .735l1.985 2.036a1.01 1.01 0 0 0 .717.305.99.99 0 0 0 .716-.305l4.686-4.808a.526.526 0 0 0 0-.735.5.5 0 0 0-.716 0l-4.687 4.809Z"})))};function G(){return(G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var X=function(e){return x.createElement("svg",G({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),f||(f=x.createElement("path",{fill:"#DA0000",d:"M15 9a.75.75 0 0 0-1.06 0L12 10.94 10.06 9A.75.75 0 0 0 9 10.06L10.94 12 9 13.94A.75.75 0 0 0 10.06 15L12 13.06 13.94 15A.75.75 0 0 0 15 13.94L13.06 12 15 10.06A.75.75 0 0 0 15 9Z"})),p||(p=x.createElement("path",{fill:"currentColor",d:"M12 3a9 9 0 1 0 9 9 9.01 9.01 0 0 0-9-9Zm0 16.5a7.5 7.5 0 1 1 7.5-7.5 7.509 7.509 0 0 1-7.5 7.5Z"})))};function Q({originNode:e,node:t,depth:n,index:r,deleteHandle:i,customOptions:o,startIndex:a,parent:s,parentPath:l}){let{enableClipboard:u,src:c,onEdit:d,onChange:h,forceUpdate:f,displaySize:p,CustomOperation:m}=(0,x.useContext)(el),g=[...l,String(r)],[y,b]=(0,x.useState)(!0),w=(0,x.useCallback)((t,r,i)=>{e[t]=r,d&&d({newValue:r,oldValue:i,depth:n,src:c,indexOrName:t,parentType:"array",parentPath:l}),h&&h({type:"edit",depth:n,src:c,indexOrName:t,parentType:"array",parentPath:l}),f()},[t,d,h,f]),k=t=>{e.splice(t,1),i&&i(t,l),f()},C=(0,v.jsxs)(v.Fragment,{children:[!y&&(0,v.jsxs)("span",Object.assign({onClick:()=>b(!0),className:"jv-size-chevron"},{children:[T(p,n,y)&&(0,v.jsxs)("span",Object.assign({className:"jv-size"},{children:[S(t)," Items"]})),(0,v.jsx)(I,{className:"jv-chevron"})]})),!y&&u&&N(o)&&(0,v.jsx)(H,{node:t,nodeMeta:{depth:n,indexOrName:r,parent:s,parentPath:l,currentPath:g}}),"function"==typeof m?(0,v.jsx)(m,{node:t}):null]});return(0,v.jsxs)("div",{children:[(0,v.jsx)("span",{children:"["}),C,y?(0,v.jsxs)("button",Object.assign({onClick:()=>b(!1),className:"jv-button"},{children:[a," ... ",a+t.length-1]})):(0,v.jsx)("div",Object.assign({className:"jv-indent"},{children:t.map((e,i)=>(0,v.jsx)(U,{indexOrName:i+a,value:e,depth:n,parent:t,deleteHandle:k,editHandle:w,parentPath:l},String(r)+String(i)))})),(0,v.jsx)("span",{children:"]"})]})}function J({node:e,depth:t,deleteHandle:n,indexOrName:r,customOptions:i,parent:o,parentPath:a}){let s=void 0!==r?[...a,String(r)]:a,l=[];for(let t=0;t<e.length;t+=100)l.push(e.slice(t,t+100));let{collapsed:u,enableClipboard:c,collapseObjectsAfterLength:d,editable:h,onDelete:f,src:p,onAdd:m,CustomOperation:g,onChange:y,forceUpdate:b,displaySize:w}=(0,x.useContext)(el),[k,C]=(0,x.useState)(E(e,t,r,u,d,i));(0,x.useEffect)(()=>{C(E(e,t,r,u,d,i))},[u,d]);let[S,_]=(0,x.useState)(!1),[P,j]=(0,x.useState)(!1),O=()=>{e.push(null),m&&m({indexOrName:e.length-1,depth:t,src:p,parentType:"array",parentPath:a}),y&&y({type:"add",indexOrName:e.length-1,depth:t,src:p,parentType:"array",parentPath:a}),b()},L=S||P,F=(0,v.jsxs)(v.Fragment,{children:[!k&&!L&&(0,v.jsxs)("span",Object.assign({onClick:()=>C(!0),className:"jv-size-chevron"},{children:[T(w,t,k)&&(0,v.jsxs)("span",Object.assign({className:"jv-size"},{children:[e.length," Items"]})),(0,v.jsx)(I,{className:"jv-chevron"})]})),L&&(0,v.jsx)(Y,{className:"json-view--edit",style:{display:"inline-block"},onClick:P?O:()=>{_(!1),n&&n(r,a),f&&f({value:e,depth:t,src:p,indexOrName:r,parentType:"array",parentPath:a}),y&&y({type:"delete",depth:t,src:p,indexOrName:r,parentType:"array",parentPath:a})}}),L&&(0,v.jsx)(X,{className:"json-view--edit",style:{display:"inline-block"},onClick:()=>{_(!1),j(!1)}}),!k&&!L&&c&&N(i)&&(0,v.jsx)(H,{node:e,nodeMeta:{depth:t,indexOrName:r,parent:o,parentPath:a,currentPath:s}}),!k&&!L&&A(h)&&R(i)&&(0,v.jsx)(q,{className:"json-view--edit",onClick:()=>{O()}}),!k&&!L&&M(h)&&D(i)&&n&&(0,v.jsx)($,{className:"json-view--edit",onClick:()=>_(!0)}),"function"==typeof g?(0,v.jsx)(g,{node:e}):null]});return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("span",{children:"["}),F,k?(0,v.jsx)("button",Object.assign({onClick:()=>C(!1),className:"jv-button"},{children:"..."})):(0,v.jsx)("div",Object.assign({className:"jv-indent"},{children:l.map((o,s)=>(0,v.jsx)(Q,{originNode:e,node:o,depth:t,index:s,startIndex:100*s,deleteHandle:n,customOptions:i,parentPath:a},String(r)+String(s)))})),(0,v.jsx)("span",{children:"]"}),k&&T(w,t,k)&&(0,v.jsxs)("span",Object.assign({onClick:()=>C(!1),className:"jv-size"},{children:[e.length," Items"]}))]})}function ee({node:e,depth:t,indexOrName:n,deleteHandle:r,customOptions:i,parent:o,parentPath:a}){let{collapsed:s,onCollapse:l,enableClipboard:u,ignoreLargeArray:c,collapseObjectsAfterLength:d,editable:h,onDelete:f,src:p,onAdd:m,onEdit:g,onChange:y,forceUpdate:b,displaySize:w,CustomOperation:k}=(0,x.useContext)(el),E=void 0!==n?[...a,String(n)]:a;if(!c&&Array.isArray(e)&&e.length>100)return(0,v.jsx)(J,{node:e,depth:t,indexOrName:n,deleteHandle:r,customOptions:i,parentPath:E});let P=C(e),[j,O]=(0,x.useState)(_(e,t,n,s,d,i)),L=r=>{null==l||l({isCollapsing:!r,node:e,depth:t,indexOrName:n}),O(r)};(0,x.useEffect)(()=>{L(_(e,t,n,s,d,i))},[s,d]);let F=(0,x.useCallback)((n,r,i)=>{Array.isArray(e)?e[+n]=r:e&&(e[n]=r),g&&g({newValue:r,oldValue:i,depth:t,src:p,indexOrName:n,parentType:P?"object":"array",parentPath:E}),y&&y({type:"edit",depth:t,src:p,indexOrName:n,parentType:P?"object":"array",parentPath:E}),b()},[e,g,y,b]),z=t=>{Array.isArray(e)?e.splice(+t,1):e&&delete e[t],b()},[V,B]=(0,x.useState)(!1),[W,Z]=(0,x.useState)(!1),K=(0,x.useRef)(null),G=()=>{var n;if(P){let r=null==(n=K.current)?void 0:n.value;r&&(e[r]=null,K.current&&(K.current.value=""),Z(!1),m&&m({indexOrName:r,depth:t,src:p,parentType:"object",parentPath:E}),y&&y({type:"add",indexOrName:r,depth:t,src:p,parentType:"object",parentPath:E}))}else Array.isArray(e)&&(e.push(null),m&&m({indexOrName:e.length-1,depth:t,src:p,parentType:"array",parentPath:E}),y&&y({type:"add",indexOrName:e.length-1,depth:t,src:p,parentType:"array",parentPath:E}));b()},Q=V||W,ee=()=>{B(!1),Z(!1)},et=(0,v.jsxs)(v.Fragment,{children:[!j&&!Q&&(0,v.jsxs)("span",Object.assign({onClick:()=>L(!0),className:"jv-size-chevron"},{children:[T(w,t,j)&&(0,v.jsxs)("span",Object.assign({className:"jv-size"},{children:[S(e)," Items"]})),(0,v.jsx)(I,{className:"jv-chevron"})]})),W&&P&&(0,v.jsx)("input",{className:"json-view--input",placeholder:"property",ref:K,onKeyDown:e=>{"Enter"===e.key?(e.preventDefault(),G()):"Escape"===e.key&&ee()}}),Q&&(0,v.jsx)(Y,{className:"json-view--edit",style:{display:"inline-block"},onClick:W?G:()=>{B(!1),r&&r(n,E),f&&f({value:e,depth:t,src:p,indexOrName:n,parentType:P?"object":"array",parentPath:E}),y&&y({type:"delete",depth:t,src:p,indexOrName:n,parentType:P?"object":"array",parentPath:E})}}),Q&&(0,v.jsx)(X,{className:"json-view--edit",style:{display:"inline-block"},onClick:ee}),!j&&!Q&&u&&N(i)&&(0,v.jsx)(H,{node:e,nodeMeta:{depth:t,indexOrName:n,parent:o,parentPath:a,currentPath:E}}),!j&&!Q&&A(h)&&R(i)&&(0,v.jsx)(q,{className:"json-view--edit",onClick:()=>{P?(Z(!0),setTimeout(()=>{var e;return null==(e=K.current)?void 0:e.focus()})):G()}}),!j&&!Q&&M(h)&&D(i)&&r&&(0,v.jsx)($,{className:"json-view--edit",onClick:()=>B(!0)}),"function"==typeof k?(0,v.jsx)(k,{node:e}):null]});return Array.isArray(e)?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("span",{children:"["}),et,j?(0,v.jsx)("button",Object.assign({onClick:()=>L(!1),className:"jv-button"},{children:"..."})):(0,v.jsx)("div",Object.assign({className:"jv-indent"},{children:e.map((r,i)=>(0,v.jsx)(U,{indexOrName:i,value:r,depth:t,parent:e,deleteHandle:z,editHandle:F,parentPath:E},String(n)+String(i)))})),(0,v.jsx)("span",{children:"]"}),j&&T(w,t,j)&&(0,v.jsxs)("span",Object.assign({onClick:()=>L(!1),className:"jv-size"},{children:[S(e)," Items"]}))]}):P?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("span",{children:"{"}),et,j?(0,v.jsx)("button",Object.assign({onClick:()=>L(!1),className:"jv-button"},{children:"..."})):(0,v.jsx)("div",Object.assign({className:"jv-indent"},{children:Object.entries(e).map(([r,i])=>(0,v.jsx)(U,{indexOrName:r,value:i,depth:t,parent:e,deleteHandle:z,editHandle:F,parentPath:E},String(n)+String(r)))})),(0,v.jsx)("span",{children:"}"}),j&&T(w,t,j)&&(0,v.jsxs)("span",Object.assign({onClick:()=>L(!1),className:"jv-size"},{children:[S(e)," Items"]}))]}):(0,v.jsx)("span",{children:String(e)})}let et=x.forwardRef(({str:e,className:t,ctrlClick:n},r)=>{let{collapseStringMode:i,collapseStringsAfterLength:o,customizeCollapseStringUI:a}=(0,x.useContext)(el),[s,l]=(0,x.useState)(!0),u=(0,x.useRef)(null);o=o>0?o:0;let c=e.replace(/\s+/g," "),d="function"==typeof a?a(c,s):"string"==typeof a?a:"...",h=e=>{var t;if((e.ctrlKey||e.metaKey)&&n)n(e);else{let e=window.getSelection();if(e&&e.anchorOffset!==e.focusOffset&&(null==(t=e.anchorNode)?void 0:t.parentElement)===u.current)return;l(!s)}};if(e.length<=o)return(0,v.jsxs)("span",Object.assign({ref:u,className:t,onClick:n},{children:['"',e,'"']}));if("address"===i)return e.length<=10?(0,v.jsxs)("span",Object.assign({ref:u,className:t,onClick:n},{children:['"',e,'"']})):(0,v.jsxs)("span",Object.assign({ref:u,onClick:h,className:t+" cursor-pointer"},{children:['"',s?[c.slice(0,6),d,c.slice(-4)]:e,'"']}));if("directly"===i)return(0,v.jsxs)("span",Object.assign({ref:u,onClick:h,className:t+" cursor-pointer"},{children:['"',s?[c.slice(0,o),d]:e,'"']}));if("word"===i){let n=o,r=o+1,i=c,a=1;for(;;){if(/\W/.test(e[n])){i=e.slice(0,n);break}if(/\W/.test(e[r])){i=e.slice(0,r);break}if(6===a){i=e.slice(0,o);break}a++,n--,r++}return(0,v.jsxs)("span",Object.assign({ref:u,onClick:h,className:t+" cursor-pointer"},{children:['"',s?[i,d]:e,'"']}))}return(0,v.jsxs)("span",Object.assign({ref:u,className:t},{children:['"',e,'"']}))});function en(){return(en=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var er=function(e){return x.createElement("svg",en({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),m||(m=x.createElement("path",{fill:"currentColor",d:"M17.25 3H6.75A3.754 3.754 0 0 0 3 6.75v10.5A3.754 3.754 0 0 0 6.75 21h10.5A3.754 3.754 0 0 0 21 17.25V6.75A3.754 3.754 0 0 0 17.25 3Zm2.25 14.25c0 1.24-1.01 2.25-2.25 2.25H6.75c-1.24 0-2.25-1.01-2.25-2.25V6.75c0-1.24 1.01-2.25 2.25-2.25h10.5c1.24 0 2.25 1.01 2.25 2.25v10.5Zm-6.09-9.466-5.031 5.03a2.981 2.981 0 0 0-.879 2.121v1.19c0 .415.336.75.75.75h1.19c.8 0 1.554-.312 2.12-.879l5.03-5.03a2.252 2.252 0 0 0 0-3.182c-.85-.85-2.331-.85-3.18 0Zm-2.91 7.151c-.28.28-.666.44-1.06.44H9v-.44c0-.4.156-.777.44-1.06l3.187-3.188 1.06 1.061-3.187 3.188Zm5.03-5.03-.782.783-1.06-1.061.782-.782a.766.766 0 0 1 1.06 0 .75.75 0 0 1 0 1.06Z"})))};function ei(){return(ei=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var eo=function(e){return x.createElement("svg",ei({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),g||(g=x.createElement("path",{fill:"currentColor",d:"M6.75 3h5.5v1.5h-5.5C5.51 4.5 4.5 5.51 4.5 6.75v10.5c0 1.24 1.01 2.25 2.25 2.25h10.5c1.24 0 2.25-1.01 2.25-2.25v-5.5H21v5.5A3.754 3.754 0 0 1 17.25 21H6.75A3.754 3.754 0 0 1 3 17.25V6.75A3.754 3.754 0 0 1 6.75 3Z"})),y||(y=x.createElement("path",{fill:"currentColor",d:"M20.013 3h-3.946a.987.987 0 0 0 0 1.973h1.564l-6.342 6.342a1.004 1.004 0 0 0 0 1.396 1.004 1.004 0 0 0 1.396 0l6.342-6.342v1.564a.987.987 0 0 0 1.973 0V3.987A.987.987 0 0 0 20.013 3Z"})))};function ea({node:e,depth:t,deleteHandle:n,indexOrName:r,parent:i,editHandle:o,parentPath:a}){let s,{collapseStringsAfterLength:l,enableClipboard:u,editable:c,src:d,onDelete:h,onChange:f,customizeNode:p,matchesURL:m,urlRegExp:g,EditComponent:y,DoneComponent:b,CancelComponent:w,CustomOperation:k}=(0,x.useContext)(el);if("function"==typeof p&&(s=P(p,[{node:e,depth:t,indexOrName:r}])),s){if((0,x.isValidElement)(s))return s;else if("function"==typeof s){let n=s;return(0,v.jsx)(n,{node:e,depth:t,indexOrName:r})}}if(Array.isArray(e)||C(e))return(0,v.jsx)(ee,{parent:i,node:e,depth:t,indexOrName:r,deleteHandle:n,parentPath:a,customOptions:"object"==typeof s?s:void 0});{var S;let p=typeof e,C=void 0!==r?[...a,String(r)]:a,[_,E]=(0,x.useState)(!1),[T,P]=(0,x.useState)(!1),A=(0,x.useRef)(null),R=()=>{E(!0),setTimeout(()=>{var e,t;null==(e=window.getSelection())||e.selectAllChildren(A.current),null==(t=A.current)||t.focus()})},L=(0,x.useCallback)(()=>{let t=A.current.innerText;try{let n=JSON.parse(t);o&&o(r,n,e,a)}catch(i){let n="string"===p?t.trim().replace(/^\"([\s\S]+?)\"$/,"$1"):t;o&&o(r,n,e,a)}E(!1)},[o,r,e,a,p]),I=()=>{E(!1),P(!1)},F=()=>{P(!1),n&&n(r,a),h&&h({value:e,depth:t,src:d,indexOrName:r,parentType:Array.isArray(i)?"array":"object",parentPath:a}),f&&f({depth:t,src:d,indexOrName:r,parentType:Array.isArray(i)?"array":"object",type:"delete",parentPath:a})},z=(0,x.useCallback)(e=>{"Enter"===e.key?(e.preventDefault(),L()):"Escape"===e.key&&I()},[L]),V=_||T,B=!V&&j(c)&&O(s)&&o?e=>{(e.ctrlKey||e.metaKey)&&R()}:void 0,U=(0,v.jsxs)(v.Fragment,{children:[V&&("function"==typeof b?(0,v.jsx)(b,{className:"json-view--edit",style:{display:"inline-block"},onClick:T?F:L}):(0,v.jsx)(Y,{className:"json-view--edit",style:{display:"inline-block"},onClick:T?F:L})),V&&("function"==typeof w?(0,v.jsx)(w,{className:"json-view--edit",style:{display:"inline-block"},onClick:I}):(0,v.jsx)(X,{className:"json-view--edit",style:{display:"inline-block"},onClick:I})),!V&&u&&N(s)&&(0,v.jsx)(H,{node:e,nodeMeta:{depth:t,indexOrName:r,parent:i,parentPath:a,currentPath:C}}),!V&&m&&"string"===p&&g.test(e)&&(!(S=s)||void 0===S.matchesURL||!!S.matchesURL)&&(0,v.jsx)("a",Object.assign({href:e,target:"_blank",className:"json-view--link"},{children:(0,v.jsx)(eo,{})})),!V&&j(c)&&O(s)&&o&&("function"==typeof y?(0,v.jsx)(y,{className:"json-view--edit",onClick:R}):(0,v.jsx)(er,{className:"json-view--edit",onClick:R})),!V&&M(c)&&D(s)&&n&&(0,v.jsx)($,{className:"json-view--edit",onClick:()=>P(!0)}),"function"==typeof k?(0,v.jsx)(k,{node:e}):null]}),W="json-view--string";switch(p){case"number":case"bigint":W="json-view--number";break;case"boolean":W="json-view--boolean";break;case"object":W="json-view--null"}"string"==typeof(null==s?void 0:s.className)&&(W+=" "+s.className),T&&(W+=" json-view--deleting");let Z=String(e);"bigint"===p&&(Z+="n");let q=(0,x.useMemo)(()=>(0,v.jsx)("span",{contentEditable:!0,className:W,dangerouslySetInnerHTML:{__html:"string"===p?`"${Z}"`:Z},ref:A,onKeyDown:z}),[Z,p,z]);if("string"===p)return(0,v.jsxs)(v.Fragment,{children:[_?q:e.length>l?(0,v.jsx)(et,{str:e,ref:A,className:W,ctrlClick:B}):(0,v.jsxs)("span",Object.assign({className:W,onClick:B},{children:['"',Z,'"']})),U]});return(0,v.jsxs)(v.Fragment,{children:[_?q:(0,v.jsx)("span",Object.assign({className:W,onClick:B},{children:Z})),U]})}}let es=/^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/,el=(0,x.createContext)({src:void 0,collapseStringsAfterLength:99,collapseStringMode:"directly",customizeCollapseStringUI:void 0,collapseObjectsAfterLength:20,collapsed:!1,onCollapse:void 0,enableClipboard:!0,editable:!1,onEdit:void 0,onDelete:void 0,onAdd:void 0,onChange:void 0,forceUpdate:()=>{},customizeNode:void 0,customizeCopy:()=>{},displaySize:void 0,displayArrayIndex:!0,matchesURL:!1,urlRegExp:es,ignoreLargeArray:!1,CopyComponent:void 0,CopiedComponent:void 0,EditComponent:void 0,CancelComponent:void 0,DoneComponent:void 0,CustomOperation:void 0});function eu({src:e,collapseStringsAfterLength:t=99,collapseStringMode:n="directly",customizeCollapseStringUI:r,collapseObjectsAfterLength:i=99,collapsed:o,onCollapse:a,enableClipboard:s=!0,editable:l=!1,onEdit:u,onDelete:c,onAdd:d,onChange:h,dark:f=!1,theme:p="default",customizeNode:m,customizeCopy:g=e=>(function(e,t){if("string"==typeof e)return e;try{return JSON.stringify(e,(e,t)=>{switch(typeof t){case"bigint":return String(t)+"n";case"number":case"boolean":case"object":case"string":return t;default:return String(t)}},void 0)}catch(e){return`${e.name}: ${e.message}`||"JSON.stringify failed"}})(e),displaySize:y,displayArrayIndex:b=!0,style:w,className:k,matchesURL:C=!1,urlRegExp:S=es,ignoreLargeArray:_=!1,CopyComponent:E,CopiedComponent:T,EditComponent:P,CancelComponent:A,DoneComponent:j,CustomOperation:M}){let[R,O]=(0,x.useState)(0),D=(0,x.useCallback)(()=>O(e=>++e),[]),[N,L]=(0,x.useState)(e);return(0,x.useEffect)(()=>L(e),[e]),(0,v.jsx)(el.Provider,Object.assign({value:{src:N,collapseStringsAfterLength:t,collapseStringMode:n,customizeCollapseStringUI:r,collapseObjectsAfterLength:i,collapsed:o,onCollapse:a,enableClipboard:s,editable:l,onEdit:u,onDelete:c,onAdd:d,onChange:h,forceUpdate:D,customizeNode:m,customizeCopy:g,displaySize:y,displayArrayIndex:b,matchesURL:C,urlRegExp:S,ignoreLargeArray:_,CopyComponent:E,CopiedComponent:T,EditComponent:P,CancelComponent:A,DoneComponent:j,CustomOperation:M}},{children:(0,v.jsx)("code",Object.assign({className:"json-view"+(f?" dark":"")+(p&&"default"!==p?" json-view_"+p:"")+(k?" "+k:""),style:w},{children:(0,v.jsx)(ea,{node:N,depth:1,editHandle:(e,t,n,r)=>{L(t),u&&u({newValue:t,oldValue:n,depth:1,src:N,indexOrName:e,parentType:null,parentPath:r}),h&&h({type:"edit",depth:1,src:N,indexOrName:e,parentType:null,parentPath:r})},deleteHandle:(e,t)=>{L(void 0),c&&c({value:N,depth:1,src:N,indexOrName:e,parentType:null,parentPath:t}),h&&h({depth:1,src:N,indexOrName:e,parentType:null,type:"delete",parentPath:t})},parentPath:[]})}))}))}}}]);