clawpad 0.3.1 → 0.3.2

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 (169) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/app-path-routes-manifest.json +13 -13
  3. package/.next/standalone/.next/build-manifest.json +3 -3
  4. package/.next/standalone/.next/prerender-manifest.json +3 -3
  5. package/.next/standalone/.next/react-loadable-manifest.json +1 -1
  6. package/.next/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  7. package/.next/standalone/.next/server/app/_global-error.html +2 -2
  8. package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  9. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  10. package/.next/standalone/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  11. package/.next/standalone/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  12. package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  13. package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  14. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  15. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  16. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  17. package/.next/standalone/.next/server/app/_not-found.rsc +4 -4
  18. package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
  19. package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  20. package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +4 -4
  21. package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  22. package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  23. package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  24. package/.next/standalone/.next/server/app/api/ai/write/route_client-reference-manifest.js +1 -1
  25. package/.next/standalone/.next/server/app/api/changes/[id]/route_client-reference-manifest.js +1 -1
  26. package/.next/standalone/.next/server/app/api/changes/record/route_client-reference-manifest.js +1 -1
  27. package/.next/standalone/.next/server/app/api/changes/revert/route_client-reference-manifest.js +1 -1
  28. package/.next/standalone/.next/server/app/api/changes/route_client-reference-manifest.js +1 -1
  29. package/.next/standalone/.next/server/app/api/changes/run/route_client-reference-manifest.js +1 -1
  30. package/.next/standalone/.next/server/app/api/chat/abort/route_client-reference-manifest.js +1 -1
  31. package/.next/standalone/.next/server/app/api/chat/route_client-reference-manifest.js +1 -1
  32. package/.next/standalone/.next/server/app/api/files/pages/[...path]/route_client-reference-manifest.js +1 -1
  33. package/.next/standalone/.next/server/app/api/files/recent/route_client-reference-manifest.js +1 -1
  34. package/.next/standalone/.next/server/app/api/files/search/route_client-reference-manifest.js +1 -1
  35. package/.next/standalone/.next/server/app/api/files/spaces/[space]/pages/route_client-reference-manifest.js +1 -1
  36. package/.next/standalone/.next/server/app/api/files/spaces/route_client-reference-manifest.js +1 -1
  37. package/.next/standalone/.next/server/app/api/files/watch/route_client-reference-manifest.js +1 -1
  38. package/.next/standalone/.next/server/app/api/gateway/detect/route_client-reference-manifest.js +1 -1
  39. package/.next/standalone/.next/server/app/api/gateway/events/route_client-reference-manifest.js +1 -1
  40. package/.next/standalone/.next/server/app/api/gateway/features/route_client-reference-manifest.js +1 -1
  41. package/.next/standalone/.next/server/app/api/gateway/history/route_client-reference-manifest.js +1 -1
  42. package/.next/standalone/.next/server/app/api/gateway/resolve/route_client-reference-manifest.js +1 -1
  43. package/.next/standalone/.next/server/app/api/gateway/sessions/route_client-reference-manifest.js +1 -1
  44. package/.next/standalone/.next/server/app/api/gateway/status/route_client-reference-manifest.js +1 -1
  45. package/.next/standalone/.next/server/app/api/openclaw/commands/route_client-reference-manifest.js +1 -1
  46. package/.next/standalone/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
  47. package/.next/standalone/.next/server/app/api/settings/search-status/route_client-reference-manifest.js +1 -1
  48. package/.next/standalone/.next/server/app/api/setup/bootstrap/route.js +83 -1
  49. package/.next/standalone/.next/server/app/api/setup/bootstrap/route_client-reference-manifest.js +1 -1
  50. package/.next/standalone/.next/server/app/api/setup/bootstrap-workspace/route.js +1 -1
  51. package/.next/standalone/.next/server/app/api/setup/bootstrap-workspace/route_client-reference-manifest.js +1 -1
  52. package/.next/standalone/.next/server/app/api/setup/status/route.js +1 -1
  53. package/.next/standalone/.next/server/app/api/setup/status/route_client-reference-manifest.js +1 -1
  54. package/.next/standalone/.next/server/app/api/setup/trigger-onboarding/route.js +123 -10
  55. package/.next/standalone/.next/server/app/api/setup/trigger-onboarding/route.js.nft.json +1 -1
  56. package/.next/standalone/.next/server/app/api/setup/trigger-onboarding/route_client-reference-manifest.js +1 -1
  57. package/.next/standalone/.next/server/app/index.html +1 -1
  58. package/.next/standalone/.next/server/app/index.rsc +4 -4
  59. package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  60. package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +4 -4
  61. package/.next/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
  62. package/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +4 -4
  63. package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  64. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  65. package/.next/standalone/.next/server/app/settings/connection/page_client-reference-manifest.js +1 -1
  66. package/.next/standalone/.next/server/app/settings/connection.html +1 -1
  67. package/.next/standalone/.next/server/app/settings/connection.rsc +4 -4
  68. package/.next/standalone/.next/server/app/settings/connection.segments/_full.segment.rsc +4 -4
  69. package/.next/standalone/.next/server/app/settings/connection.segments/_head.segment.rsc +1 -1
  70. package/.next/standalone/.next/server/app/settings/connection.segments/_index.segment.rsc +4 -4
  71. package/.next/standalone/.next/server/app/settings/connection.segments/_tree.segment.rsc +2 -2
  72. package/.next/standalone/.next/server/app/settings/connection.segments/settings/connection/__PAGE__.segment.rsc +1 -1
  73. package/.next/standalone/.next/server/app/settings/connection.segments/settings/connection.segment.rsc +1 -1
  74. package/.next/standalone/.next/server/app/settings/connection.segments/settings.segment.rsc +1 -1
  75. package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  76. package/.next/standalone/.next/server/app/settings.html +1 -1
  77. package/.next/standalone/.next/server/app/settings.rsc +4 -4
  78. package/.next/standalone/.next/server/app/settings.segments/_full.segment.rsc +4 -4
  79. package/.next/standalone/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  80. package/.next/standalone/.next/server/app/settings.segments/_index.segment.rsc +4 -4
  81. package/.next/standalone/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
  82. package/.next/standalone/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +1 -1
  83. package/.next/standalone/.next/server/app/settings.segments/settings.segment.rsc +1 -1
  84. package/.next/standalone/.next/server/app/setup/page.js +2 -2
  85. package/.next/standalone/.next/server/app/setup/page.js.nft.json +1 -1
  86. package/.next/standalone/.next/server/app/setup/page_client-reference-manifest.js +1 -1
  87. package/.next/standalone/.next/server/app/setup.html +1 -1
  88. package/.next/standalone/.next/server/app/setup.rsc +5 -5
  89. package/.next/standalone/.next/server/app/setup.segments/_full.segment.rsc +5 -5
  90. package/.next/standalone/.next/server/app/setup.segments/_head.segment.rsc +1 -1
  91. package/.next/standalone/.next/server/app/setup.segments/_index.segment.rsc +4 -4
  92. package/.next/standalone/.next/server/app/setup.segments/_tree.segment.rsc +2 -2
  93. package/.next/standalone/.next/server/app/setup.segments/setup/__PAGE__.segment.rsc +2 -2
  94. package/.next/standalone/.next/server/app/setup.segments/setup.segment.rsc +1 -1
  95. package/.next/standalone/.next/server/app/workspace/[...path]/page.js +1 -1
  96. package/.next/standalone/.next/server/app/workspace/[...path]/page.js.nft.json +1 -1
  97. package/.next/standalone/.next/server/app/workspace/[...path]/page_client-reference-manifest.js +1 -1
  98. package/.next/standalone/.next/server/app/workspace/page.js +2 -2
  99. package/.next/standalone/.next/server/app/workspace/page.js.nft.json +1 -1
  100. package/.next/standalone/.next/server/app/workspace/page_client-reference-manifest.js +1 -1
  101. package/.next/standalone/.next/server/app/workspace/search/page.js +2 -2
  102. package/.next/standalone/.next/server/app/workspace/search/page.js.nft.json +1 -1
  103. package/.next/standalone/.next/server/app/workspace/search/page_client-reference-manifest.js +1 -1
  104. package/.next/standalone/.next/server/app/workspace/search.html +2 -2
  105. package/.next/standalone/.next/server/app/workspace/search.rsc +6 -6
  106. package/.next/standalone/.next/server/app/workspace/search.segments/_full.segment.rsc +6 -6
  107. package/.next/standalone/.next/server/app/workspace/search.segments/_head.segment.rsc +1 -1
  108. package/.next/standalone/.next/server/app/workspace/search.segments/_index.segment.rsc +4 -4
  109. package/.next/standalone/.next/server/app/workspace/search.segments/_tree.segment.rsc +2 -2
  110. package/.next/standalone/.next/server/app/workspace/search.segments/workspace/search/__PAGE__.segment.rsc +2 -2
  111. package/.next/standalone/.next/server/app/workspace/search.segments/workspace/search.segment.rsc +1 -1
  112. package/.next/standalone/.next/server/app/workspace/search.segments/workspace.segment.rsc +2 -2
  113. package/.next/standalone/.next/server/app/workspace.html +2 -2
  114. package/.next/standalone/.next/server/app/workspace.rsc +6 -6
  115. package/.next/standalone/.next/server/app/workspace.segments/_full.segment.rsc +6 -6
  116. package/.next/standalone/.next/server/app/workspace.segments/_head.segment.rsc +1 -1
  117. package/.next/standalone/.next/server/app/workspace.segments/_index.segment.rsc +4 -4
  118. package/.next/standalone/.next/server/app/workspace.segments/_tree.segment.rsc +2 -2
  119. package/.next/standalone/.next/server/app/workspace.segments/workspace/__PAGE__.segment.rsc +2 -2
  120. package/.next/standalone/.next/server/app/workspace.segments/workspace.segment.rsc +2 -2
  121. package/.next/standalone/.next/server/app-paths-manifest.json +13 -13
  122. package/.next/standalone/.next/server/chunks/2470.js +3 -3
  123. package/.next/standalone/.next/server/chunks/3251.js +2 -3
  124. package/.next/standalone/.next/server/chunks/4098.js +9 -0
  125. package/.next/standalone/.next/server/chunks/{9703.js → 7035.js} +3 -3
  126. package/.next/standalone/.next/server/chunks/7772.js +1 -0
  127. package/.next/standalone/.next/server/middleware-build-manifest.js +1 -1
  128. package/.next/standalone/.next/server/middleware-react-loadable-manifest.js +1 -1
  129. package/.next/standalone/.next/server/pages/404.html +1 -1
  130. package/.next/standalone/.next/server/pages/500.html +2 -2
  131. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  132. package/.next/standalone/package.json +2 -1
  133. package/.next/static/chunks/1178-f2f0bd687a63b9f8.js +4 -0
  134. package/.next/static/chunks/1592-8d48cfb007c02ef4.js +9 -0
  135. package/.next/static/chunks/{4839-8d9e473f5fea81c8.js → 20-4cfa0dd1c497eee3.js} +8 -8
  136. package/.next/static/chunks/3505-9fff91cc0bc3d611.js +1 -0
  137. package/.next/static/chunks/3678.620cb571eead466f.js +1 -0
  138. package/.next/static/chunks/385-4c7c8d3ad3b6b7db.js +1 -0
  139. package/.next/static/chunks/4559-722e02df6a03e69f.js +1 -0
  140. package/.next/static/chunks/6217-dcce2b95259e116b.js +1 -0
  141. package/.next/static/chunks/app/layout-c12666d2d05cce33.js +1 -0
  142. package/.next/static/chunks/app/setup/page-6e4deef7f9c6fa78.js +1 -0
  143. package/.next/static/chunks/app/workspace/[...path]/page-5c4919e22385a024.js +1 -0
  144. package/.next/static/chunks/app/workspace/layout-1b1ab0e3ede2544b.js +6 -0
  145. package/.next/static/chunks/app/workspace/page-3869e183f908f2fc.js +1 -0
  146. package/.next/static/chunks/app/workspace/search/page-d50c5815a7c7dc09.js +1 -0
  147. package/.next/static/chunks/{ba12c10f-9f20c2943b757ccd.js → ba12c10f-d2d630b861c021fb.js} +1 -1
  148. package/.next/static/chunks/{webpack-4017efb7c7e87263.js → webpack-2f676db6328b0d7d.js} +1 -1
  149. package/.next/static/css/a44c237eaaac8354.css +1 -0
  150. package/bin/clawpad.js +174 -9
  151. package/package.json +2 -1
  152. package/public/install.sh +32 -4
  153. package/skills/README.md +40 -0
  154. package/skills/workspace-manager/SKILL.md +449 -0
  155. package/.next/standalone/.next/server/chunks/8385.js +0 -9
  156. package/.next/static/chunks/3016-27e0c450e2ada8a3.js +0 -1
  157. package/.next/static/chunks/3678.7aa2a1e7fc03b615.js +0 -1
  158. package/.next/static/chunks/5488-cb187354d8aaa3d6.js +0 -1
  159. package/.next/static/chunks/7005-2786bffdf3d8496e.js +0 -9
  160. package/.next/static/chunks/8485-4d3e303f8e277e8d.js +0 -1
  161. package/.next/static/chunks/app/layout-8a46ab4a3e2d5cb0.js +0 -4
  162. package/.next/static/chunks/app/setup/page-a2a70f253bbf4382.js +0 -1
  163. package/.next/static/chunks/app/workspace/[...path]/page-d59a1f3dbc96308f.js +0 -4
  164. package/.next/static/chunks/app/workspace/layout-504ed80ab2d05d25.js +0 -10
  165. package/.next/static/chunks/app/workspace/page-677a7fccfea3cce2.js +0 -4
  166. package/.next/static/chunks/app/workspace/search/page-c00e5c231c4a1fdd.js +0 -1
  167. package/.next/static/css/3084c1365b9c9e06.css +0 -1
  168. /package/.next/static/{wrTc1IgxHQI9epHN29OBD → Vdp_rUF6W0savCIJ0kRdG}/_buildManifest.js +0 -0
  169. /package/.next/static/{wrTc1IgxHQI9epHN29OBD → Vdp_rUF6W0savCIJ0kRdG}/_ssgManifest.js +0 -0
@@ -1,9 +0,0 @@
1
- "use strict";exports.id=8385,exports.ids=[8385],exports.modules={2389:(a,b,c)=>{c.d(b,{G:()=>d});function d(a){return"object"==typeof a&&null!==a}},6079:(a,b,c)=>{c.d(b,{A:()=>d});let d=(0,c(47408).A)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]])},8455:(a,b,c)=>{c.d(b,{A:()=>d});let d=(0,c(47408).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},19794:(a,b,c)=>{c.d(b,{A:()=>d});let d=(0,c(47408).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},22622:(a,b,c)=>{c.d(b,{E:()=>e});var d=c(67484);let e=c(94122).B?d.useLayoutEffect:d.useEffect},42515:(a,b,c)=>{c.d(b,{Uu:()=>f});var d=c(59260);let e="u">typeof window;function f(){if(d.r.current=!0,e)if(window.matchMedia){let a=window.matchMedia("(prefers-reduced-motion)"),b=()=>d.O.current=a.matches;a.addEventListener("change",b),b()}else d.O.current=!1}},42742:(a,b,c)=>{c.d(b,{A:()=>d});let d=(0,c(47408).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},58712:(a,b,c)=>{let d,e,f,g,h;c.d(b,{P:()=>fG});let i=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],j=new Set(i),k=(a,b,c)=>c>b?b:c<a?a:c,l={test:a=>"number"==typeof a,parse:parseFloat,transform:a=>a},m={...l,transform:a=>k(0,1,a)},n={...l,default:1},o=a=>Math.round(1e5*a)/1e5,p=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,q=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,r=(a,b)=>c=>!!("string"==typeof c&&q.test(c)&&c.startsWith(a)||b&&null!=c&&Object.prototype.hasOwnProperty.call(c,b)),s=(a,b,c)=>d=>{if("string"!=typeof d)return d;let[e,f,g,h]=d.match(p);return{[a]:parseFloat(e),[b]:parseFloat(f),[c]:parseFloat(g),alpha:void 0!==h?parseFloat(h):1}},t={...l,transform:a=>Math.round(k(0,255,a))},u={test:r("rgb","red"),parse:s("red","green","blue"),transform:({red:a,green:b,blue:c,alpha:d=1})=>"rgba("+t.transform(a)+", "+t.transform(b)+", "+t.transform(c)+", "+o(m.transform(d))+")"},v={test:r("#"),parse:function(a){let b="",c="",d="",e="";return a.length>5?(b=a.substring(1,3),c=a.substring(3,5),d=a.substring(5,7),e=a.substring(7,9)):(b=a.substring(1,2),c=a.substring(2,3),d=a.substring(3,4),e=a.substring(4,5),b+=b,c+=c,d+=d,e+=e),{red:parseInt(b,16),green:parseInt(c,16),blue:parseInt(d,16),alpha:e?parseInt(e,16)/255:1}},transform:u.transform},w=a=>({test:b=>"string"==typeof b&&b.endsWith(a)&&1===b.split(" ").length,parse:parseFloat,transform:b=>`${b}${a}`}),x=w("deg"),y=w("%"),z=w("px"),A=w("vh"),B=w("vw"),C={...y,parse:a=>y.parse(a)/100,transform:a=>y.transform(100*a)},D={test:r("hsl","hue"),parse:s("hue","saturation","lightness"),transform:({hue:a,saturation:b,lightness:c,alpha:d=1})=>"hsla("+Math.round(a)+", "+y.transform(o(b))+", "+y.transform(o(c))+", "+o(m.transform(d))+")"},E={test:a=>u.test(a)||v.test(a)||D.test(a),parse:a=>u.test(a)?u.parse(a):D.test(a)?D.parse(a):v.parse(a),transform:a=>"string"==typeof a?a:a.hasOwnProperty("red")?u.transform(a):D.transform(a),getAnimatableNone:a=>{let b=E.parse(a);return b.alpha=0,E.transform(b)}},F=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,G="number",H="color",I=/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 J(a){let b=a.toString(),c=[],d={color:[],number:[],var:[]},e=[],f=0,g=b.replace(I,a=>(E.test(a)?(d.color.push(f),e.push(H),c.push(E.parse(a))):a.startsWith("var(")?(d.var.push(f),e.push("var"),c.push(a)):(d.number.push(f),e.push(G),c.push(parseFloat(a))),++f,"${}")).split("${}");return{values:c,split:g,indexes:d,types:e}}function K(a){return J(a).values}function L(a){let{split:b,types:c}=J(a),d=b.length;return a=>{let e="";for(let f=0;f<d;f++)if(e+=b[f],void 0!==a[f]){let b=c[f];b===G?e+=o(a[f]):b===H?e+=E.transform(a[f]):e+=a[f]}return e}}let M=a=>"number"==typeof a?0:E.test(a)?E.getAnimatableNone(a):a,N={test:function(a){return isNaN(a)&&"string"==typeof a&&(a.match(p)?.length||0)+(a.match(F)?.length||0)>0},parse:K,createTransformer:L,getAnimatableNone:function(a){let b=K(a);return L(a)(b.map(M))}},O=new Set(["brightness","contrast","saturate","opacity"]);function P(a){let[b,c]=a.slice(0,-1).split("(");if("drop-shadow"===b)return a;let[d]=c.match(p)||[];if(!d)return a;let e=c.replace(d,""),f=+!!O.has(b);return d!==c&&(f*=100),b+"("+f+e+")"}let Q=/\b([a-z-]*)\(.*?\)/gu,R={...N,getAnimatableNone:a=>{let b=a.match(Q);return b?b.map(P).join(" "):a}},S={...l,transform:Math.round},T={borderWidth:z,borderTopWidth:z,borderRightWidth:z,borderBottomWidth:z,borderLeftWidth:z,borderRadius:z,borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomRightRadius:z,borderBottomLeftRadius:z,width:z,maxWidth:z,height:z,maxHeight:z,top:z,right:z,bottom:z,left:z,inset:z,insetBlock:z,insetBlockStart:z,insetBlockEnd:z,insetInline:z,insetInlineStart:z,insetInlineEnd:z,padding:z,paddingTop:z,paddingRight:z,paddingBottom:z,paddingLeft:z,paddingBlock:z,paddingBlockStart:z,paddingBlockEnd:z,paddingInline:z,paddingInlineStart:z,paddingInlineEnd:z,margin:z,marginTop:z,marginRight:z,marginBottom:z,marginLeft:z,marginBlock:z,marginBlockStart:z,marginBlockEnd:z,marginInline:z,marginInlineStart:z,marginInlineEnd:z,fontSize:z,backgroundPositionX:z,backgroundPositionY:z,rotate:x,rotateX:x,rotateY:x,rotateZ:x,scale:n,scaleX:n,scaleY:n,scaleZ:n,skew:x,skewX:x,skewY:x,distance:z,translateX:z,translateY:z,translateZ:z,x:z,y:z,z:z,perspective:z,transformPerspective:z,opacity:m,originX:C,originY:C,originZ:z,zIndex:S,fillOpacity:m,strokeOpacity:m,numOctaves:S},U={...T,color:E,backgroundColor:E,outlineColor:E,fill:E,stroke:E,borderColor:E,borderTopColor:E,borderRightColor:E,borderBottomColor:E,borderLeftColor:E,filter:R,WebkitFilter:R},V=a=>U[a],W=()=>({translate:0,scale:1,origin:0,originPoint:0}),X=()=>({x:W(),y:W()}),Y=()=>({min:0,max:0}),Z=()=>({x:Y(),y:Y()}),$=a=>!!(a&&a.getVelocity),_=new Set(["width","height","top","left","right","bottom",...i]),aa=a=>b=>b.test(a),ab=[l,z,y,x,B,A,{test:a=>"auto"===a,parse:a=>a}],ac=a=>ab.find(aa(a)),ad=()=>{},ae=()=>{},af=a=>b=>"string"==typeof b&&b.startsWith(a),ag=af("--"),ah=af("var(--"),ai=a=>!!ah(a)&&aj.test(a.split("/*")[0].trim()),aj=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ak(a){return"string"==typeof a&&a.split("/*")[0].includes("var(--")}let al=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,am=a=>180*a/Math.PI,an=a=>ap(am(Math.atan2(a[1],a[0]))),ao={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:an,rotateZ:an,skewX:a=>am(Math.atan(a[1])),skewY:a=>am(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},ap=a=>((a%=360)<0&&(a+=360),a),aq=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),ar=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),as={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:aq,scaleY:ar,scale:a=>(aq(a)+ar(a))/2,rotateX:a=>ap(am(Math.atan2(a[6],a[5]))),rotateY:a=>ap(am(Math.atan2(-a[2],a[0]))),rotateZ:an,rotate:an,skewX:a=>am(Math.atan(a[4])),skewY:a=>am(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function at(a){return+!!a.includes("scale")}function au(a,b){let c,d;if(!a||"none"===a)return at(b);let e=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(e)c=as,d=e;else{let b=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);c=ao,d=b}if(!d)return at(b);let f=c[b],g=d[1].split(",").map(av);return"function"==typeof f?f(g):g[f]}function av(a){return parseFloat(a.trim())}let aw=a=>a===l||a===z,ax=new Set(["x","y","z"]),ay=i.filter(a=>!ax.has(a)),az={width:({x:a},{paddingLeft:b="0",paddingRight:c="0"})=>a.max-a.min-parseFloat(b)-parseFloat(c),height:({y:a},{paddingTop:b="0",paddingBottom:c="0"})=>a.max-a.min-parseFloat(b)-parseFloat(c),top:(a,{top:b})=>parseFloat(b),left:(a,{left:b})=>parseFloat(b),bottom:({y:a},{top:b})=>parseFloat(b)+(a.max-a.min),right:({x:a},{left:b})=>parseFloat(b)+(a.max-a.min),x:(a,{transform:b})=>au(b,"x"),y:(a,{transform:b})=>au(b,"y")};az.translateX=az.x,az.translateY=az.y;let aA=a=>a,aB={},aC=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function aD(a,b){let c=!1,d=!0,e={delta:0,timestamp:0,isProcessing:!1},f=()=>c=!0,g=aC.reduce((a,c)=>(a[c]=function(a,b){let c=new Set,d=new Set,e=!1,f=!1,g=new WeakSet,h={delta:0,timestamp:0,isProcessing:!1},i=0;function j(b){g.has(b)&&(k.schedule(b),a()),i++,b(h)}let k={schedule:(a,b=!1,f=!1)=>{let h=f&&e?c:d;return b&&g.add(a),h.has(a)||h.add(a),a},cancel:a=>{d.delete(a),g.delete(a)},process:a=>{if(h=a,e){f=!0;return}e=!0,[c,d]=[d,c],c.forEach(j),b,i=0,c.clear(),e=!1,f&&(f=!1,k.process(a))}};return k}(f,b?c:void 0),a),{}),{setup:h,read:i,resolveKeyframes:j,preUpdate:k,update:l,preRender:m,render:n,postRender:o}=g,p=()=>{let f=aB.useManualTiming?e.timestamp:performance.now();c=!1,aB.useManualTiming||(e.delta=d?1e3/60:Math.max(Math.min(f-e.timestamp,40),1)),e.timestamp=f,e.isProcessing=!0,h.process(e),i.process(e),j.process(e),k.process(e),l.process(e),m.process(e),n.process(e),o.process(e),e.isProcessing=!1,c&&b&&(d=!1,a(p))};return{schedule:aC.reduce((b,f)=>{let h=g[f];return b[f]=(b,f=!1,g=!1)=>(!c&&(c=!0,d=!0,e.isProcessing||a(p)),h.schedule(b,f,g)),b},{}),cancel:a=>{for(let b=0;b<aC.length;b++)g[aC[b]].cancel(a)},state:e,steps:g}}let{schedule:aE,cancel:aF,state:aG,steps:aH}=aD("u">typeof requestAnimationFrame?requestAnimationFrame:aA,!0),aI=new Set,aJ=!1,aK=!1,aL=!1;function aM(){if(aK){let a=Array.from(aI).filter(a=>a.needsMeasurement),b=new Set(a.map(a=>a.element)),c=new Map;b.forEach(a=>{let b,d=(b=[],ay.forEach(c=>{let d=a.getValue(c);void 0!==d&&(b.push([c,d.get()]),d.set(+!!c.startsWith("scale")))}),b);d.length&&(c.set(a,d),a.render())}),a.forEach(a=>a.measureInitialState()),b.forEach(a=>{a.render();let b=c.get(a);b&&b.forEach(([b,c])=>{a.getValue(b)?.set(c)})}),a.forEach(a=>a.measureEndState()),a.forEach(a=>{void 0!==a.suspendedScrollY&&window.scrollTo(0,a.suspendedScrollY)})}aK=!1,aJ=!1,aI.forEach(a=>a.complete(aL)),aI.clear()}function aN(){aI.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(aK=!0)})}class aO{constructor(a,b,c,d,e,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=b,this.name=c,this.motionValue=d,this.element=e,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(aI.add(this),aJ||(aJ=!0,aE.read(aN),aE.resolveKeyframes(aM))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:a,name:b,element:c,motionValue:d}=this;if(null===a[0]){let e=d?.get(),f=a[a.length-1];if(void 0!==e)a[0]=e;else if(c&&b){let d=c.readValue(b,f);null!=d&&(a[0]=d)}void 0===a[0]&&(a[0]=f),d&&void 0===e&&d.set(a[0])}for(let b=1;b<a.length;b++)a[b]??(a[b]=a[b-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),aI.delete(this)}cancel(){"scheduled"===this.state&&(aI.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}function aP(a,b){let c=V(a);return c!==R&&(c=N),c.getAnimatableNone?c.getAnimatableNone(b):void 0}let aQ=new Set(["auto","none","0"]);class aR extends aO{constructor(a,b,c,d,e){super(a,b,c,d,e,!0)}readKeyframes(){let{unresolvedKeyframes:a,element:b,name:c}=this;if(!b||!b.current)return;super.readKeyframes();for(let c=0;c<a.length;c++){let d=a[c];if("string"==typeof d&&ai(d=d.trim())){let e=function a(b,c,d=1){ae(d<=4,`Max CSS variable fallback depth detected in property "${b}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[e,f]=function(a){let b=al.exec(a);if(!b)return[,];let[,c,d,e]=b;return[`--${c??d}`,e]}(b);if(!e)return;let g=window.getComputedStyle(c).getPropertyValue(e);if(g){let a=g.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a)?parseFloat(a):a}return ai(f)?a(f,c,d+1):f}(d,b.current);void 0!==e&&(a[c]=e),c===a.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!_.has(c)||2!==a.length)return;let[d,e]=a,f=ac(d),g=ac(e);if(ak(d)!==ak(e)&&az[c]){this.needsMeasurement=!0;return}if(f!==g)if(aw(f)&&aw(g))for(let b=0;b<a.length;b++){let c=a[b];"string"==typeof c&&(a[b]=parseFloat(c))}else az[c]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:a,name:b}=this,c=[];for(let b=0;b<a.length;b++)(null===a[b]||function(a){if("number"==typeof a)return 0===a;if(null===a)return!0;return"none"===a||"0"===a||/^0[^.\s]+$/u.test(a)}(a[b]))&&c.push(b);c.length&&function(a,b,c){let d,e=0;for(;e<a.length&&!d;){let b=a[e];"string"==typeof b&&!aQ.has(b)&&J(b).values.length&&(d=a[e]),e++}if(d&&c)for(let e of b)a[e]=aP(c,d)}(a,c,b)}measureInitialState(){let{element:a,unresolvedKeyframes:b,name:c}=this;if(!a||!a.current)return;"height"===c&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=az[c](a.measureViewportBox(),window.getComputedStyle(a.current)),b[0]=this.measuredOrigin;let d=b[b.length-1];void 0!==d&&a.getValue(c,d).jump(d,!1)}measureEndState(){let{element:a,name:b,unresolvedKeyframes:c}=this;if(!a||!a.current)return;let d=a.getValue(b);d&&d.jump(this.measuredOrigin,!1);let e=c.length-1,f=c[e];c[e]=az[b](a.measureViewportBox(),window.getComputedStyle(a.current)),null!==f&&void 0===this.finalKeyframe&&(this.finalKeyframe=f),this.removedTransforms?.length&&this.removedTransforms.forEach(([b,c])=>{a.getValue(b).set(c)}),this.resolveNoneKeyframes()}}function aS(a,b){-1===a.indexOf(b)&&a.push(b)}function aT(a,b){let c=a.indexOf(b);c>-1&&a.splice(c,1)}class aU{constructor(){this.subscriptions=[]}add(a){return aS(this.subscriptions,a),()=>aT(this.subscriptions,a)}notify(a,b,c){let d=this.subscriptions.length;if(d)if(1===d)this.subscriptions[0](a,b,c);else for(let e=0;e<d;e++){let d=this.subscriptions[e];d&&d(a,b,c)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let{schedule:aV}=aD(queueMicrotask,!1);function aW(){d=void 0}let aX={now:()=>(void 0===d&&aX.set(aG.isProcessing||aB.useManualTiming?aG.timestamp:performance.now()),d),set:a=>{d=a,queueMicrotask(aW)}};class aY{constructor(a,b={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{let b=aX.now();if(this.updatedAt!==b&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(a),this.owner=b.owner}setCurrent(a){this.current=a,this.updatedAt=aX.now(),null===this.canTrackVelocity&&void 0!==a&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,b){this.events[a]||(this.events[a]=new aU);let c=this.events[a].add(b);return"change"===a?()=>{c(),aE.read(()=>{this.events.change.getSize()||this.stop()})}:c}clearListeners(){for(let a in this.events)this.events[a].clear()}attach(a,b){this.passiveEffect=a,this.stopPassiveEffect=b}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,b,c){this.set(b),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-c}jump(a,b=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,b&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(a){this.dependents||(this.dependents=new Set),this.dependents.add(a)}removeDependent(a){this.dependents&&this.dependents.delete(a)}get(){return h&&h.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var a;let b=aX.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||b-this.updatedAt>30)return 0;let c=Math.min(this.updatedAt-this.prevUpdatedAt,30);return a=parseFloat(this.current)-parseFloat(this.prevFrameValue),c?1e3/c*a:0}start(a){return this.stop(),new Promise(b=>{this.hasAnimated=!0,this.animation=a(b),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 aZ(a,b){return new aY(a,b)}let a$=[...ab,E,N];var a_,a0=c(42515);let a1=new WeakMap;function a2(a){return null!==a&&"object"==typeof a&&"function"==typeof a.start}function a3(a){return"string"==typeof a||Array.isArray(a)}let a4=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],a5=["initial",...a4];function a6(a){return a2(a.animate)||a5.some(b=>a3(a[b]))}function a7(a){return!!(a6(a)||a.variants)}function a8(a){let b=[{},{}];return a?.values.forEach((a,c)=>{b[0][c]=a.get(),b[1][c]=a.getVelocity()}),b}function a9(a,b,c,d){if("function"==typeof b){let[e,f]=a8(d);b=b(void 0!==c?c:a.custom,e,f)}if("string"==typeof b&&(b=a.variants&&a.variants[b]),"function"==typeof b){let[e,f]=a8(d);b=b(void 0!==c?c:a.custom,e,f)}return b}var ba=c(59260);let bb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],bc={};class bd{scrapeMotionValuesFromProps(a,b,c){return{}}constructor({parent:a,props:b,presenceContext:c,reducedMotionConfig:d,skipAnimations:e,blockInitialAnimation:f,visualState:g},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=aO,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 a=aX.now();this.renderScheduledAt<a&&(this.renderScheduledAt=a,aE.render(this.render,!1,!0))};const{latestValues:i,renderState:j}=g;this.latestValues=i,this.baseTarget={...i},this.initialValues=b.initial?{...i}:{},this.renderState=j,this.parent=a,this.props=b,this.presenceContext=c,this.depth=a?a.depth+1:0,this.reducedMotionConfig=d,this.skipAnimationsConfig=e,this.options=h,this.blockInitialAnimation=!!f,this.isControllingVariants=a6(b),this.isVariantNode=a7(b),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:k,...l}=this.scrapeMotionValuesFromProps(b,{},this);for(const a in l){const b=l[a];void 0!==i[a]&&$(b)&&b.set(i[a])}}mount(a){if(this.hasBeenMounted)for(let a in this.initialValues)this.values.get(a)?.jump(this.initialValues[a]),this.latestValues[a]=this.initialValues[a];this.current=a,a1.set(a,this),this.projection&&!this.projection.instance&&this.projection.mount(a),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,b)=>this.bindToMotionValue(b,a)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(ba.r.current||(0,a0.Uu)(),this.shouldReduceMotion=ba.O.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let a in this.projection&&this.projection.unmount(),aF(this.notifyUpdate),aF(this.render),this.valueSubscriptions.forEach(a=>a()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[a].clear();for(let a in this.features){let b=this.features[a];b&&(b.unmount(),b.isMounted=!1)}this.current=null}addChild(a){this.children.add(a),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(a)}removeChild(a){this.children.delete(a),this.enteringChildren&&this.enteringChildren.delete(a)}bindToMotionValue(a,b){let c;this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)();let d=j.has(a);d&&this.onBindTransform&&this.onBindTransform();let e=b.on("change",b=>{this.latestValues[a]=b,this.props.onUpdate&&aE.preRender(this.notifyUpdate),d&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,a,b)),this.valueSubscriptions.set(a,()=>{e(),c&&c(),b.owner&&b.stop()})}sortNodePosition(a){return this.current&&this.sortInstanceNodePosition&&this.type===a.type?this.sortInstanceNodePosition(this.current,a.current):0}updateFeatures(){let a="animation";for(a in bc){let b=bc[a];if(!b)continue;let{isEnabled:c,Feature:d}=b;if(!this.features[a]&&d&&c(this.props)&&(this.features[a]=new d(this)),this.features[a]){let b=this.features[a];b.isMounted?b.update():(b.mount(),b.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Z()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,b){this.latestValues[a]=b}update(a,b){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=b;for(let b=0;b<bb.length;b++){let c=bb[b];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);let d=a["on"+c];d&&(this.propEventSubscriptions[c]=this.on(c,d))}this.prevMotionValues=function(a,b,c){for(let d in b){let e=b[d],f=c[d];if($(e))a.addValue(d,e);else if($(f))a.addValue(d,aZ(e,{owner:a}));else if(f!==e)if(a.hasValue(d)){let b=a.getValue(d);!0===b.liveStyle?b.jump(e):b.hasAnimated||b.set(e)}else{let b=a.getStaticValue(d);a.addValue(d,aZ(void 0!==b?b:e,{owner:a}))}}for(let d in c)void 0===b[d]&&a.removeValue(d);return b}(this,this.scrapeMotionValuesFromProps(a,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(a){return this.props.variants?this.props.variants[a]: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(a){let b=this.getClosestVariantNode();if(b)return b.variantChildren&&b.variantChildren.add(a),()=>b.variantChildren.delete(a)}addValue(a,b){let c=this.values.get(a);b!==c&&(c&&this.removeValue(a),this.bindToMotionValue(a,b),this.values.set(a,b),this.latestValues[a]=b.get())}removeValue(a){this.values.delete(a);let b=this.valueSubscriptions.get(a);b&&(b(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,b){if(this.props.values&&this.props.values[a])return this.props.values[a];let c=this.values.get(a);return void 0===c&&void 0!==b&&(c=aZ(null===b?void 0:b,{owner:this}),this.addValue(a,c)),c}readValue(a,b){let c=void 0===this.latestValues[a]&&this.current?this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options):this.latestValues[a];if(null!=c){let d,e;if("string"==typeof c&&(d=c,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(d)||(e=c,/^0[^.\s]+$/u.test(e))))c=parseFloat(c);else{let d;d=c,!a$.find(aa(d))&&N.test(b)&&(c=aP(a,b))}this.setBaseTarget(a,$(c)?c.get():c)}return $(c)?c.get():c}setBaseTarget(a,b){this.baseTarget[a]=b}getBaseTarget(a){let b,{initial:c}=this.props;if("string"==typeof c||"object"==typeof c){let d=a9(this.props,c,this.presenceContext?.custom);d&&(b=d[a])}if(c&&void 0!==b)return b;let d=this.getBaseTargetFromProps(this.props,a);return void 0===d||$(d)?void 0!==this.initialValues[a]&&void 0===b?void 0:this.baseTarget[a]:d}on(a,b){return this.events[a]||(this.events[a]=new aU),this.events[a].add(b)}notify(a,...b){this.events[a]&&this.events[a].notify(...b)}scheduleRenderMicrotask(){aV.render(this.render)}}class be extends bd{constructor(){super(...arguments),this.KeyframeResolver=aR}sortInstanceNodePosition(a,b){return 2&a.compareDocumentPosition(b)?1:-1}getBaseTargetFromProps(a,b){let c=a.style;return c?c[b]:void 0}removeValueFromRenderState(a,{vars:b,style:c}){delete b[a],delete c[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:a}=this.props;$(a)&&(this.childSubscription=a.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}function bf(a){return a.replace(/([A-Z])/g,a=>`-${a.toLowerCase()}`)}let bg=(a,b)=>b&&"number"==typeof a?b.transform(a):a,bh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bi=i.length;function bj(a,b,c){let{style:d,vars:e,transformOrigin:f}=a,g=!1,h=!1;for(let a in b){let c=b[a];if(j.has(a)){g=!0;continue}if(ag(a)){e[a]=c;continue}{let b=bg(c,T[a]);a.startsWith("origin")?(h=!0,f[a]=b):d[a]=b}}if(!b.transform&&(g||c?d.transform=function(a,b,c){let d="",e=!0;for(let f=0;f<bi;f++){let g=i[f],h=a[g];if(void 0===h)continue;let j=!0;if("number"==typeof h)j=h===+!!g.startsWith("scale");else{let a=parseFloat(h);j=g.startsWith("scale")?1===a:0===a}if(!j||c){let a=bg(h,T[g]);if(!j){e=!1;let b=bh[g]||g;d+=`${b}(${a}) `}c&&(b[g]=a)}}return d=d.trim(),c?d=c(b,e?"":d):e&&(d="none"),d}(b,a.transform,c):d.transform&&(d.transform="none")),h){let{originX:a="50%",originY:b="50%",originZ:c=0}=f;d.transformOrigin=`${a} ${b} ${c}`}}let bk={offset:"stroke-dashoffset",array:"stroke-dasharray"},bl={offset:"strokeDashoffset",array:"strokeDasharray"},bm=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function bn(a,{attrX:b,attrY:c,attrScale:d,pathLength:e,pathSpacing:f=1,pathOffset:g=0,...h},i,j,k){if(bj(a,h,j),i){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};let{attrs:l,style:m}=a;for(let a of(l.transform&&(m.transform=l.transform,delete l.transform),(m.transform||l.transformOrigin)&&(m.transformOrigin=l.transformOrigin??"50% 50%",delete l.transformOrigin),m.transform&&(m.transformBox=k?.transformBox??"fill-box",delete l.transformBox),bm))void 0!==l[a]&&(m[a]=l[a],delete l[a]);void 0!==b&&(l.x=b),void 0!==c&&(l.y=c),void 0!==d&&(l.scale=d),void 0!==e&&function(a,b,c=1,d=0,e=!0){a.pathLength=1;let f=e?bk:bl;a[f.offset]=`${-d}`,a[f.array]=`${b} ${c}`}(l,e,f,g,!1)}let bo=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"]),bp=a=>"string"==typeof a&&"svg"===a.toLowerCase();function bq(a,{style:b,vars:c},d,e){let f,g=a.style;for(f in b)g[f]=b[f];for(f in e?.applyProjectionStyles(g,d),c)g.setProperty(f,c[f])}function br(a,b){return b.max===b.min?0:a/(b.max-b.min)*100}let bs={correct:(a,b)=>{if(!b.target)return a;if("string"==typeof a)if(!z.test(a))return a;else a=parseFloat(a);let c=br(a,b.target.x),d=br(a,b.target.y);return`${c}% ${d}%`}},bt=(a,b,c)=>a+(b-a)*c,bu={borderRadius:{...bs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:bs,borderTopRightRadius:bs,borderBottomLeftRadius:bs,borderBottomRightRadius:bs,boxShadow:{correct:(a,{treeScale:b,projectionDelta:c})=>{let d=N.parse(a);if(d.length>5)return a;let e=N.createTransformer(a),f=+("number"!=typeof d[0]),g=c.x.scale*b.x,h=c.y.scale*b.y;d[0+f]/=g,d[1+f]/=h;let i=bt(g,h,.5);return"number"==typeof d[2+f]&&(d[2+f]/=i),"number"==typeof d[3+f]&&(d[3+f]/=i),e(d)}}};function bv(a,{layout:b,layoutId:c}){return j.has(a)||a.startsWith("origin")||(b||void 0!==c)&&(!!bu[a]||"opacity"===a)}function bw(a,b,c){let d=a.style,e=b?.style,f={};if(!d)return f;for(let b in d)($(d[b])||e&&$(e[b])||bv(b,a)||c?.getValue(b)?.liveStyle!==void 0)&&(f[b]=d[b]);return f}function bx(a,b,c){let d=bw(a,b,c);for(let c in a)($(a[c])||$(b[c]))&&(d[-1!==i.indexOf(c)?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c]=a[c]);return d}class by extends be{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Z}getBaseTargetFromProps(a,b){return a[b]}readValueFromInstance(a,b){if(j.has(b)){let a=V(b);return a&&a.default||0}return b=bo.has(b)?b:bf(b),a.getAttribute(b)}scrapeMotionValuesFromProps(a,b,c){return bx(a,b,c)}build(a,b,c){bn(a,b,this.isSVGTag,c.transformTemplate,c.style)}renderInstance(a,b,c,d){for(let c in bq(a,b,void 0,d),b.attrs)a.setAttribute(bo.has(c)?c:bf(c),b.attrs[c])}mount(a){this.isSVGTag=bp(a.tagName),super.mount(a)}}function bz({top:a,left:b,right:c,bottom:d}){return{x:{min:b,max:c},y:{min:a,max:d}}}function bA(a){return void 0===a||1===a}function bB({scale:a,scaleX:b,scaleY:c}){return!bA(a)||!bA(b)||!bA(c)}function bC(a){return bB(a)||bD(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function bD(a){var b,c;return(b=a.x)&&"0%"!==b||(c=a.y)&&"0%"!==c}function bE(a,b,c,d,e){return void 0!==e&&(a=d+e*(a-d)),d+c*(a-d)+b}function bF(a,b=0,c=1,d,e){a.min=bE(a.min,b,c,d,e),a.max=bE(a.max,b,c,d,e)}function bG(a,{x:b,y:c}){bF(a.x,b.translate,b.scale,b.originPoint),bF(a.y,c.translate,c.scale,c.originPoint)}function bH(a,b){a.min=a.min+b,a.max=a.max+b}function bI(a,b,c,d,e=.5){let f=bt(a.min,a.max,e);bF(a,b,c,f,d)}function bJ(a,b){bI(a.x,b.x,b.scaleX,b.scale,b.originX),bI(a.y,b.y,b.scaleY,b.scale,b.originY)}function bK(a,b){return bz(function(a,b){if(!b)return a;let c=b({x:a.left,y:a.top}),d=b({x:a.right,y:a.bottom});return{top:c.y,left:c.x,bottom:d.y,right:d.x}}(a.getBoundingClientRect(),b))}class bL extends be{constructor(){super(...arguments),this.type="html",this.renderInstance=bq}readValueFromInstance(a,b){if(j.has(b))return this.projection?.isProjecting?at(b):((a,b)=>{let{transform:c="none"}=getComputedStyle(a);return au(c,b)})(a,b);{let c=window.getComputedStyle(a),d=(ag(b)?c.getPropertyValue(b):c[b])||0;return"string"==typeof d?d.trim():d}}measureInstanceViewportBox(a,{transformPagePoint:b}){return bK(a,b)}build(a,b,c){bj(a,b,c.transformTemplate)}scrapeMotionValuesFromProps(a,b,c){return bw(a,b,c)}}var bM=c(67484);let bN=["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 bO(a){if("string"!=typeof a||a.includes("-"));else if(bN.indexOf(a)>-1||/[A-Z]/u.test(a))return!0;return!1}var bP=c(48249),bQ=c(79875);let bR=(0,bM.createContext)({strict:!1});var bS=c(69320);let bT=(0,bM.createContext)({});function bU(a){return Array.isArray(a)?a.join(" "):a}let bV=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function bW(a,b,c){for(let d in b)$(b[d])||bv(d,c)||(a[d]=b[d])}let bX=()=>({...bV(),attrs:{}}),bY=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","propagate","ignoreStrict","viewport"]);function bZ(a){return a.startsWith("while")||a.startsWith("drag")&&"draggable"!==a||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||bY.has(a)}let b$=a=>!bZ(a);try{a_=require("@emotion/is-prop-valid").default,"function"==typeof a_&&(b$=a=>a.startsWith("on")?!bZ(a):a_(a))}catch{}function b_(a){return $(a)?a.get():a}var b0=c(64337),b1=c(82423);let b2=a=>(b,c)=>{let d=(0,bM.useContext)(bT),e=(0,bM.useContext)(b0.t),f=()=>(function({scrapeMotionValuesFromProps:a,createRenderState:b},c,d,e){return{latestValues:function(a,b,c,d){let e={},f=d(a,{});for(let a in f)e[a]=b_(f[a]);let{initial:g,animate:h}=a,i=a6(a),j=a7(a);b&&j&&!i&&!1!==a.inherit&&(void 0===g&&(g=b.initial),void 0===h&&(h=b.animate));let k=!!c&&!1===c.initial,l=(k=k||!1===g)?h:g;if(l&&"boolean"!=typeof l&&!a2(l)){let b=Array.isArray(l)?l:[l];for(let c=0;c<b.length;c++){let d=a9(a,b[c]);if(d){let{transitionEnd:a,transition:b,...c}=d;for(let a in c){let b=c[a];if(Array.isArray(b)){let a=k?b.length-1:0;b=b[a]}null!==b&&(e[a]=b)}for(let b in a)e[b]=a[b]}}}return e}(c,d,e,a),renderState:b()}})(a,b,d,e);return c?f():(0,b1.M)(f)},b3=b2({scrapeMotionValuesFromProps:bw,createRenderState:bV}),b4=b2({scrapeMotionValuesFromProps:bx,createRenderState:bX});var b5=c(94122);let b6={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"]},b7=!1;function b8(){return!function(){if(b7)return;let a={};for(let b in b6)a[b]={isEnabled:a=>b6[b].some(b=>!!a[b])};bc=a,b7=!0}(),bc}let b9=Symbol.for("motionComponentSymbol"),ca="data-"+bf("framerAppearId"),cb=(0,bM.createContext)({});function cc(a){return a&&"object"==typeof a&&Object.prototype.hasOwnProperty.call(a,"current")}var cd=c(22622);function ce(a,{forwardMotionProps:b=!1,type:c}={},d,e){d&&function(a){let b=b8();for(let c in a)b[c]={...b[c],...a[c]};bc=b}(d);let f=c?"svg"===c:bO(a),g=f?b4:b3;function h(c,d){var h;let i,j,k,l={...(0,bM.useContext)(bS.Q),...c,layoutId:function({layoutId:a}){let b=(0,bM.useContext)(bQ.L).id;return b&&void 0!==a?b+"-"+a:a}(c)},{isStatic:m}=l,n=function(a){let{initial:b,animate:c}=function(a,b){if(a6(a)){let{initial:b,animate:c}=a;return{initial:!1===b||a3(b)?b:void 0,animate:a3(c)?c:void 0}}return!1!==a.inherit?b:{}}(a,(0,bM.useContext)(bT));return(0,bM.useMemo)(()=>({initial:b,animate:c}),[bU(b),bU(c)])}(c),o=g(c,m);if(!m&&b5.B){(0,bM.useContext)(bR).strict;let b=function(a){let{drag:b,layout:c}=b8();if(!b&&!c)return{};let d={...b,...c};return{MeasureLayout:b?.isEnabled(a)||c?.isEnabled(a)?d.MeasureLayout:void 0,ProjectionNode:d.ProjectionNode}}(l);i=b.MeasureLayout,n.visualElement=function(a,b,c,d,e,f){let{visualElement:g}=(0,bM.useContext)(bT),h=(0,bM.useContext)(bR),i=(0,bM.useContext)(b0.t),j=(0,bM.useContext)(bS.Q),k=j.reducedMotion,l=j.skipAnimations,m=(0,bM.useRef)(null),n=(0,bM.useRef)(!1);d=d||h.renderer,!m.current&&d&&(m.current=d(a,{visualState:b,parent:g,props:c,presenceContext:i,blockInitialAnimation:!!i&&!1===i.initial,reducedMotionConfig:k,skipAnimations:l,isSVG:f}),n.current&&m.current&&(m.current.manuallyAnimateOnMount=!0));let o=m.current,p=(0,bM.useContext)(cb);o&&!o.projection&&e&&("html"===o.type||"svg"===o.type)&&function(a,b,c,d){let{layoutId:e,layout:f,drag:g,dragConstraints:h,layoutScroll:i,layoutRoot:j,layoutCrossfade:k}=b;a.projection=new c(a.latestValues,b["data-framer-portal-id"]?void 0:function a(b){if(b)return!1!==b.options.allowProjection?b.projection:a(b.parent)}(a.parent)),a.projection.setOptions({layoutId:e,layout:f,alwaysMeasureLayout:!!g||h&&cc(h),visualElement:a,animationType:"string"==typeof f?f:"both",initialPromotionConfig:d,crossfade:k,layoutScroll:i,layoutRoot:j})}(m.current,c,e,p);let q=(0,bM.useRef)(!1);(0,bM.useInsertionEffect)(()=>{o&&q.current&&o.update(c,i)});let r=c[ca],s=(0,bM.useRef)(!!r&&!window.MotionHandoffIsComplete?.(r)&&window.MotionHasOptimisedAnimation?.(r));return(0,cd.E)(()=>{n.current=!0,o&&(q.current=!0,window.MotionIsMounted=!0,o.updateFeatures(),o.scheduleRenderMicrotask(),s.current&&o.animationState&&o.animationState.animateChanges())}),o}(a,o,l,e,b.ProjectionNode,f)}return(0,bP.jsxs)(bT.Provider,{value:n,children:[i&&n.visualElement?(0,bP.jsx)(i,{visualElement:n.visualElement,...l}):null,function(a,b,c,{latestValues:d},e,f=!1,g){let h=(g??bO(a)?function(a,b,c,d){let e=(0,bM.useMemo)(()=>{let c=bX();return bn(c,b,bp(d),a.transformTemplate,a.style),{...c.attrs,style:{...c.style}}},[b]);if(a.style){let b={};bW(b,a.style,a),e.style={...b,...e.style}}return e}:function(a,b){let c,d,e={},f=(c=a.style||{},bW(d={},c,a),Object.assign(d,function({transformTemplate:a},b){return(0,bM.useMemo)(()=>{let c=bV();return bj(c,b,a),Object.assign({},c.vars,c.style)},[b])}(a,b)),d);return a.drag&&!1!==a.dragListener&&(e.draggable=!1,f.userSelect=f.WebkitUserSelect=f.WebkitTouchCallout="none",f.touchAction=!0===a.drag?"none":`pan-${"x"===a.drag?"y":"x"}`),void 0===a.tabIndex&&(a.onTap||a.onTapStart||a.whileTap)&&(e.tabIndex=0),e.style=f,e})(b,d,e,a),i=function(a,b,c){let d={};for(let e in a)("values"!==e||"object"!=typeof a.values)&&(b$(e)||!0===c&&bZ(e)||!b&&!bZ(e)||a.draggable&&e.startsWith("onDrag"))&&(d[e]=a[e]);return d}(b,"string"==typeof a,f),j=a!==bM.Fragment?{...i,...h,ref:c}:{},{children:k}=b,l=(0,bM.useMemo)(()=>$(k)?k.get():k,[k]);return(0,bM.createElement)(a,{...j,children:l})}(a,c,(h=n.visualElement,j=(0,bM.useRef)(d),(0,bM.useInsertionEffect)(()=>{j.current=d}),k=(0,bM.useRef)(null),(0,bM.useCallback)(a=>{a&&o.onMount?.(a),h&&(a?h.mount(a):h.unmount());let b=j.current;if("function"==typeof b)if(a){let c=b(a);"function"==typeof c&&(k.current=c)}else k.current?(k.current(),k.current=null):b(a);else b&&(b.current=a)},[h])),o,m,b,f)]})}h.displayName=`motion.${"string"==typeof a?a:`create(${a.displayName??a.name??""})`}`;let i=(0,bM.forwardRef)(h);return i[b9]=a,i}class cf{constructor(a){this.isMounted=!1,this.node=a}update(){}}function cg(a,b,c){let d=a.getProps();return a9(d,b,void 0!==c?c:d.custom,a)}function ch(a,b){if(a?.inherit&&b){let{inherit:c,...d}=a;return{...b,...d}}return a}function ci(a,b){let c=a?.[b]??a?.default??a;return c!==a?ch(c,a):c}let cj=a=>Array.isArray(a);function ck(a,b){let c=a.getValue("willChange");if($(c)&&c.add)return c.add(b);if(!c&&aB.WillChange){let c=new aB.WillChange("auto");a.addValue("willChange",c),c.add(b)}}let cl=a=>1e3*a,cm=(a,b)=>c=>b(a(c)),cn=(...a)=>a.reduce(cm),co={layout:0,mainThread:0,waapi:0};function cp(a,b,c){return(c<0&&(c+=1),c>1&&(c-=1),c<1/6)?a+(b-a)*6*c:c<.5?b:c<2/3?a+(b-a)*(2/3-c)*6:a}function cq(a,b){return c=>c>0?b:a}let cr=(a,b,c)=>{let d=a*a,e=c*(b*b-d)+d;return e<0?0:Math.sqrt(e)},cs=[v,u,D];function ct(a){let b=cs.find(b=>b.test(a));if(ad(!!b,`'${a}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!b)return!1;let c=b.parse(a);return b===D&&(c=function({hue:a,saturation:b,lightness:c,alpha:d}){a/=360,c/=100;let e=0,f=0,g=0;if(b/=100){let d=c<.5?c*(1+b):c+b-c*b,h=2*c-d;e=cp(h,d,a+1/3),f=cp(h,d,a),g=cp(h,d,a-1/3)}else e=f=g=c;return{red:Math.round(255*e),green:Math.round(255*f),blue:Math.round(255*g),alpha:d}}(c)),c}let cu=(a,b)=>{let c=ct(a),d=ct(b);if(!c||!d)return cq(a,b);let e={...c};return a=>(e.red=cr(c.red,d.red,a),e.green=cr(c.green,d.green,a),e.blue=cr(c.blue,d.blue,a),e.alpha=bt(c.alpha,d.alpha,a),u.transform(e))},cv=new Set(["none","hidden"]);function cw(a,b){return c=>bt(a,b,c)}function cx(a){return"number"==typeof a?cw:"string"==typeof a?ai(a)?cq:E.test(a)?cu:cA:Array.isArray(a)?cy:"object"==typeof a?E.test(a)?cu:cz:cq}function cy(a,b){let c=[...a],d=c.length,e=a.map((a,c)=>cx(a)(a,b[c]));return a=>{for(let b=0;b<d;b++)c[b]=e[b](a);return c}}function cz(a,b){let c={...a,...b},d={};for(let e in c)void 0!==a[e]&&void 0!==b[e]&&(d[e]=cx(a[e])(a[e],b[e]));return a=>{for(let b in d)c[b]=d[b](a);return c}}let cA=(a,b)=>{let c=N.createTransformer(b),d=J(a),e=J(b);if(!(d.indexes.var.length===e.indexes.var.length&&d.indexes.color.length===e.indexes.color.length&&d.indexes.number.length>=e.indexes.number.length))return ad(!0,`Complex values '${a}' and '${b}' 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"),cq(a,b);if(cv.has(a)&&!e.values.length||cv.has(b)&&!d.values.length)return cv.has(a)?c=>c<=0?a:b:c=>c>=1?b:a;return cn(cy(function(a,b){let c=[],d={color:0,var:0,number:0};for(let e=0;e<b.values.length;e++){let f=b.types[e],g=a.indexes[f][d[f]],h=a.values[g]??0;c[e]=h,d[f]++}return c}(d,e),e.values),c)};function cB(a,b,c){return"number"==typeof a&&"number"==typeof b&&"number"==typeof c?bt(a,b,c):cx(a)(a,b)}let cC=a=>{let b=({timestamp:b})=>a(b);return{start:(a=!0)=>aE.update(b,a),stop:()=>aF(b),now:()=>aG.isProcessing?aG.timestamp:aX.now()}},cD=(a,b,c=10)=>{let d="",e=Math.max(Math.round(b/c),2);for(let b=0;b<e;b++)d+=Math.round(1e4*a(b/(e-1)))/1e4+", ";return`linear(${d.substring(0,d.length-2)})`};function cE(a){let b=0,c=a.next(b);for(;!c.done&&b<2e4;)b+=50,c=a.next(b);return b>=2e4?1/0:b}function cF(a,b,c){var d,e;let f=Math.max(b-5,0);return d=c-a(f),(e=b-f)?1e3/e*d:0}let cG=.01,cH=2,cI=.005,cJ=.5;function cK(a,b){return a*Math.sqrt(1-b*b)}let cL=["duration","bounce"],cM=["stiffness","damping","mass"];function cN(a,b){return b.some(b=>void 0!==a[b])}function cO(a=.3,b=.3){let c,d="object"!=typeof a?{visualDuration:a,keyframes:[0,1],bounce:b}:a,{restSpeed:e,restDelta:f}=d,g=d.keyframes[0],h=d.keyframes[d.keyframes.length-1],i={done:!1,value:g},{stiffness:j,damping:l,mass:m,duration:n,velocity:o,isResolvedFromDuration:p}=function(a){let b={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...a};if(!cN(a,cM)&&cN(a,cL))if(a.visualDuration){let c=2*Math.PI/(1.2*a.visualDuration),d=c*c,e=2*k(.05,1,1-(a.bounce||0))*Math.sqrt(d);b={...b,mass:1,stiffness:d,damping:e}}else{let c=function({duration:a=800,bounce:b=.3,velocity:c=0,mass:d=1}){let e,f;ad(a<=cl(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let g=1-b;g=k(.05,1,g),a=k(.01,10,a/1e3),g<1?(e=b=>{let d=b*g,e=d*a;return .001-(d-c)/cK(b,g)*Math.exp(-e)},f=b=>{let d=b*g*a,f=Math.pow(g,2)*Math.pow(b,2)*a,h=Math.exp(-d),i=cK(Math.pow(b,2),g);return(d*c+c-f)*h*(-e(b)+.001>0?-1:1)/i}):(e=b=>-.001+Math.exp(-b*a)*((b-c)*a+1),f=b=>a*a*(c-b)*Math.exp(-b*a));let h=function(a,b,c){let d=c;for(let c=1;c<12;c++)d-=a(d)/b(d);return d}(e,f,5/a);if(a=cl(a),isNaN(h))return{stiffness:100,damping:10,duration:a};{let b=Math.pow(h,2)*d;return{stiffness:b,damping:2*g*Math.sqrt(d*b),duration:a}}}(a);(b={...b,...c,mass:1}).isResolvedFromDuration=!0}return b}({...d,velocity:-((d.velocity||0)/1e3)}),q=o||0,r=l/(2*Math.sqrt(j*m)),s=h-g,t=Math.sqrt(j/m)/1e3,u=5>Math.abs(s);if(e||(e=u?cG:cH),f||(f=u?cI:cJ),r<1){let a=cK(t,r);c=b=>h-Math.exp(-r*t*b)*((q+r*t*s)/a*Math.sin(a*b)+s*Math.cos(a*b))}else if(1===r)c=a=>h-Math.exp(-t*a)*(s+(q+t*s)*a);else{let a=t*Math.sqrt(r*r-1);c=b=>{let c=Math.exp(-r*t*b),d=Math.min(a*b,300);return h-c*((q+r*t*s)*Math.sinh(d)+a*s*Math.cosh(d))/a}}let v={calculatedDuration:p&&n||null,next:a=>{let b=c(a);if(p)i.done=a>=n;else{let d=0===a?q:0;r<1&&(d=0===a?cl(q):cF(c,a,b));let g=Math.abs(h-b)<=f;i.done=Math.abs(d)<=e&&g}return i.value=i.done?h:b,i},toString:()=>{let a=Math.min(cE(v),2e4),b=cD(b=>v.next(a*b).value,a,30);return a+"ms "+b},toTransition:()=>{}};return v}function cP({keyframes:a,velocity:b=0,power:c=.8,timeConstant:d=325,bounceDamping:e=10,bounceStiffness:f=500,modifyTarget:g,min:h,max:i,restDelta:j=.5,restSpeed:k}){let l,m,n=a[0],o={done:!1,value:n},p=c*b,q=n+p,r=void 0===g?q:g(q);r!==q&&(p=r-n);let s=a=>-p*Math.exp(-a/d),t=a=>r+s(a),u=a=>{let b=s(a),c=t(a);o.done=Math.abs(b)<=j,o.value=o.done?r:c},v=a=>{let b;if(b=o.value,void 0!==h&&b<h||void 0!==i&&b>i){var c;l=a,m=cO({keyframes:[o.value,(c=o.value,void 0===h?i:void 0===i||Math.abs(h-c)<Math.abs(i-c)?h:i)],velocity:cF(t,a,o.value),damping:e,stiffness:f,restDelta:j,restSpeed:k})}};return v(0),{calculatedDuration:null,next:a=>{let b=!1;return(m||void 0!==l||(b=!0,u(a),v(a)),void 0!==l&&a>=l)?m.next(a-l):(b||u(a),o)}}}cO.applyToOptions=a=>{let b=function(a,b=100,c){let d=c({...a,keyframes:[0,b]}),e=Math.min(cE(d),2e4);return{type:"keyframes",ease:a=>d.next(e*a).value/b,duration:e/1e3}}(a,100,cO);return a.ease=b.ease,a.duration=cl(b.duration),a.type="keyframes",a};let cQ=(a,b,c)=>(((1-3*c+3*b)*a+(3*c-6*b))*a+3*b)*a;function cR(a,b,c,d){return a===b&&c===d?aA:e=>0===e||1===e?e:cQ(function(a,b,c,d,e){let f,g,h=0;do(f=cQ(g=b+(c-b)/2,d,e)-a)>0?c=g:b=g;while(Math.abs(f)>1e-7&&++h<12);return g}(e,0,1,a,c),b,d)}let cS=cR(.42,0,1,1),cT=cR(0,0,.58,1),cU=cR(.42,0,.58,1),cV=a=>b=>b<=.5?a(2*b)/2:(2-a(2*(1-b)))/2,cW=a=>b=>1-a(1-b),cX=cR(.33,1.53,.69,.99),cY=cW(cX),cZ=cV(cY),c$=a=>(a*=2)<1?.5*cY(a):.5*(2-Math.pow(2,-10*(a-1))),c_=a=>1-Math.sin(Math.acos(a)),c0=cW(c_),c1=cV(c_),c2=a=>Array.isArray(a)&&"number"==typeof a[0],c3={linear:aA,easeIn:cS,easeInOut:cU,easeOut:cT,circIn:c_,circInOut:c1,circOut:c0,backIn:cY,backInOut:cZ,backOut:cX,anticipate:c$},c4=a=>{if(c2(a)){ae(4===a.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[b,c,d,e]=a;return cR(b,c,d,e)}return"string"==typeof a?(ae(void 0!==c3[a],`Invalid easing type '${a}'`,"invalid-easing-type"),c3[a]):a},c5=(a,b,c)=>{let d=b-a;return 0===d?1:(c-a)/d};function c6({duration:a=300,keyframes:b,times:c,ease:d="easeInOut"}){var e;let f,g=Array.isArray(d)&&"number"!=typeof d[0]?d.map(c4):c4(d),h={done:!1,value:b[0]},i=function(a,b,{clamp:c=!0,ease:d,mixer:e}={}){let f=a.length;if(ae(f===b.length,"Both input and output ranges must be the same length","range-length"),1===f)return()=>b[0];if(2===f&&b[0]===b[1])return()=>b[1];let g=a[0]===a[1];a[0]>a[f-1]&&(a=[...a].reverse(),b=[...b].reverse());let h=function(a,b,c){let d=[],e=c||aB.mix||cB,f=a.length-1;for(let c=0;c<f;c++){let f=e(a[c],a[c+1]);b&&(f=cn(Array.isArray(b)?b[c]||aA:b,f)),d.push(f)}return d}(b,d,e),i=h.length,j=c=>{if(g&&c<a[0])return b[0];let d=0;if(i>1)for(;d<a.length-2&&!(c<a[d+1]);d++);let e=c5(a[d],a[d+1],c);return h[d](e)};return c?b=>j(k(a[0],a[f-1],b)):j}((e=c&&c.length===b.length?c:(!function(a,b){let c=a[a.length-1];for(let d=1;d<=b;d++){let e=c5(0,b,d);a.push(bt(c,1,e))}}(f=[0],b.length-1),f),e.map(b=>b*a)),b,{ease:Array.isArray(g)?g:b.map(()=>g||cU).splice(0,b.length-1)});return{calculatedDuration:a,next:b=>(h.value=i(b),h.done=b>=a,h)}}let c7=a=>null!==a;function c8(a,{repeat:b,repeatType:c="loop"},d,e=1){let f=a.filter(c7),g=e<0||b&&"loop"!==c&&b%2==1?0:f.length-1;return g&&void 0!==d?d:f[g]}let c9={decay:cP,inertia:cP,tween:c6,keyframes:c6,spring:cO};function da(a){"string"==typeof a.type&&(a.type=c9[a.type])}class db{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(a=>{this.resolve=a})}notifyFinished(){this.resolve()}then(a,b){return this.finished.then(a,b)}}let dc=a=>a/100;class dd extends db{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:a}=this.options;a&&a.updatedAt!==aX.now()&&this.tick(aX.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},co.mainThread++,this.options=a,this.initAnimation(),this.play(),!1===a.autoplay&&this.pause()}initAnimation(){let{options:a}=this;da(a);let{type:b=c6,repeat:c=0,repeatDelay:d=0,repeatType:e,velocity:f=0}=a,{keyframes:g}=a,h=b||c6;h!==c6&&"number"!=typeof g[0]&&(this.mixKeyframes=cn(dc,cB(g[0],g[1])),g=[0,100]);let i=h({...a,keyframes:g});"mirror"===e&&(this.mirroredGenerator=h({...a,keyframes:[...g].reverse(),velocity:-f})),null===i.calculatedDuration&&(i.calculatedDuration=cE(i));let{calculatedDuration:j}=i;this.calculatedDuration=j,this.resolvedDuration=j+d,this.totalDuration=this.resolvedDuration*(c+1)-d,this.generator=i}updateTime(a){let b=Math.round(a-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=b}tick(a,b=!1){let{generator:c,totalDuration:d,mixKeyframes:e,mirroredGenerator:f,resolvedDuration:g,calculatedDuration:h}=this;if(null===this.startTime)return c.next(0);let{delay:i=0,keyframes:j,repeat:l,repeatType:m,repeatDelay:n,type:o,onUpdate:p,finalKeyframe:q}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-d/this.speed,this.startTime)),b?this.currentTime=a:this.updateTime(a);let r=this.currentTime-i*(this.playbackSpeed>=0?1:-1),s=this.playbackSpeed>=0?r<0:r>d;this.currentTime=Math.max(r,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=d);let t=this.currentTime,u=c;if(l){let a=Math.min(this.currentTime,d)/g,b=Math.floor(a),c=a%1;!c&&a>=1&&(c=1),1===c&&b--,(b=Math.min(b,l+1))%2&&("reverse"===m?(c=1-c,n&&(c-=n/g)):"mirror"===m&&(u=f)),t=k(0,1,c)*g}let v=s?{done:!1,value:j[0]}:u.next(t);e&&(v.value=e(v.value));let{done:w}=v;s||null===h||(w=this.playbackSpeed>=0?this.currentTime>=d:this.currentTime<=0);let x=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return x&&o!==cP&&(v.value=c8(j,this.options,q,this.speed)),p&&p(v.value),x&&this.finish(),v}then(a,b){return this.finished.then(a,b)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:a=0}=this.options||{};return this.duration+a/1e3}get time(){return this.currentTime/1e3}set time(a){a=cl(a),this.currentTime=a,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(a){this.updateTime(aX.now());let b=this.playbackSpeed!==a;this.playbackSpeed=a,b&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:a=cC,startTime:b}=this.options;this.driver||(this.driver=a(a=>this.tick(a))),this.options.onPlay?.();let c=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=c):null!==this.holdTime?this.startTime=c-this.holdTime:this.startTime||(this.startTime=b??c),"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(aX.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,co.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),a.observe(this)}}function de(a){let b;return()=>(void 0===b&&(b=a()),b)}let df=de(()=>void 0!==window.ScrollTimeline),dg={},dh=(g=de(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(a){return!1}return!0}),()=>dg.linearEasing??g()),di=([a,b,c,d])=>`cubic-bezier(${a}, ${b}, ${c}, ${d})`,dj={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:di([0,.65,.55,1]),circOut:di([.55,0,1,.45]),backIn:di([.31,.01,.66,-.59]),backOut:di([.33,1.53,.69,.99])};function dk(a){return"function"==typeof a&&"applyToOptions"in a}class dl extends db{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!a)return;const{element:b,name:c,keyframes:d,pseudoElement:e,allowFlatten:f=!1,finalKeyframe:g,onComplete:h}=a;this.isPseudoElement=!!e,this.allowFlatten=f,this.options=a,ae("string"!=typeof a.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const i=function({type:a,...b}){return dk(a)&&dh()?a.applyToOptions(b):(b.duration??(b.duration=300),b.ease??(b.ease="easeOut"),b)}(a);this.animation=function(a,b,c,{delay:d=0,duration:e=300,repeat:f=0,repeatType:g="loop",ease:h="easeOut",times:i}={},j){let k={[b]:c};i&&(k.offset=i);let l=function a(b,c){if(b)return"function"==typeof b?dh()?cD(b,c):"ease-out":c2(b)?di(b):Array.isArray(b)?b.map(b=>a(b,c)||dj.easeOut):dj[b]}(h,e);Array.isArray(l)&&(k.easing=l);let m={delay:d,duration:e,easing:Array.isArray(l)?"linear":l,fill:"both",iterations:f+1,direction:"reverse"===g?"alternate":"normal"};j&&(m.pseudoElement=j);let n=a.animate(k,m);return n}(b,c,d,i,e),!1===i.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!e){let a=c8(d,this.options,g,this.speed);this.updateMotionValue?this.updateMotionValue(a):c.startsWith("--")?b.style.setProperty(c,a):b.style[c]=a,this.animation.cancel()}h?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(a){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:a}=this;"idle"!==a&&"finished"!==a&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let a=this.options?.element;!this.isPseudoElement&&a?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:a=0}=this.options||{};return this.duration+a/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(a){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=cl(a)}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(a){this.manualStartTime=this.animation.startTime=a}attachTimeline({timeline:a,observe:b}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,a&&df())?(this.animation.timeline=a,aA):b(this)}}let dm={anticipate:c$,backInOut:cZ,circInOut:c1};class dn extends dl{constructor(a){!function(a){"string"==typeof a.ease&&a.ease in dm&&(a.ease=dm[a.ease])}(a),da(a),super(a),void 0!==a.startTime&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){let{motionValue:b,onUpdate:c,onComplete:d,element:e,...f}=this.options;if(!b)return;if(void 0!==a)return void b.set(a);let g=new dd({...f,autoplay:!1}),h=Math.max(10,aX.now()-this.startTime),i=k(0,10,h-10);b.setWithVelocity(g.sample(Math.max(0,h-i)).value,g.sample(h).value,i),g.stop()}}let dp=(a,b)=>"zIndex"!==b&&!!("number"==typeof a||Array.isArray(a)||"string"==typeof a&&(N.test(a)||"0"===a)&&!a.startsWith("url("));function dq(a){a.duration=0,a.type="keyframes"}let dr=new Set(["opacity","clipPath","filter","transform"]),ds=de(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class dt extends db{constructor({autoplay:a=!0,delay:b=0,type:c="keyframes",repeat:d=0,repeatDelay:e=0,repeatType:f="loop",keyframes:g,name:h,motionValue:i,element:j,...k}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=aX.now();const l={autoplay:a,delay:b,type:c,repeat:d,repeatDelay:e,repeatType:f,name:h,motionValue:i,element:j,...k},m=j?.KeyframeResolver||aO;this.keyframeResolver=new m(g,(a,b,c)=>this.onKeyframesResolved(a,b,l,!c),h,i,j),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(a,b,c,d){this.keyframeResolver=void 0;let{name:e,type:f,velocity:g,delay:h,isHandoff:i,onUpdate:j}=c;this.resolvedAt=aX.now(),!function(a,b,c,d){let e=a[0];if(null===e)return!1;if("display"===b||"visibility"===b)return!0;let f=a[a.length-1],g=dp(e,b),h=dp(f,b);return ad(g===h,`You are trying to animate ${b} from "${e}" to "${f}". "${g?f:e}" is not an animatable value.`,"value-not-animatable"),!!g&&!!h&&(function(a){let b=a[0];if(1===a.length)return!0;for(let c=0;c<a.length;c++)if(a[c]!==b)return!0}(a)||("spring"===c||dk(c))&&d)}(a,e,f,g)&&((aB.instantAnimations||!h)&&j?.(c8(a,c,b)),a[0]=a[a.length-1],dq(c),c.repeat=0);let k={startTime:d?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:b,...c,keyframes:a},l=!i&&function(a){let{motionValue:b,name:c,repeatDelay:d,repeatType:e,damping:f,type:g}=a;if(!(b?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:h,transformTemplate:i}=b.owner.getProps();return ds()&&c&&dr.has(c)&&("transform"!==c||!i)&&!h&&!d&&"mirror"!==e&&0!==f&&"inertia"!==g}(k),m=k.motionValue?.owner?.current,n=l?new dn({...k,element:m}):new dd(k);n.finished.then(()=>{this.notifyFinished()}).catch(aA),this.pendingTimeline&&(this.stopTimeline=n.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=n}get finished(){return this._animation?this.animation.finished:this._finished}then(a,b){return this.finished.finally(a).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),aL=!0,aN(),aM(),aL=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let du={type:"spring",stiffness:500,damping:25,restSpeed:10},dv={type:"keyframes",duration:.8},dw={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dx=a=>null!==a,dy=(a,b,c,d={},e,f)=>g=>{let h=ci(d,a)||{},i=h.delay||d.delay||0,{elapsed:k=0}=d;k-=cl(i);let l={keyframes:Array.isArray(c)?c:[null,c],ease:"easeOut",velocity:b.getVelocity(),...h,delay:-k,onUpdate:a=>{b.set(a),h.onUpdate&&h.onUpdate(a)},onComplete:()=>{g(),h.onComplete&&h.onComplete()},name:a,motionValue:b,element:f?void 0:e};!function({when:a,delay:b,delayChildren:c,staggerChildren:d,staggerDirection:e,repeat:f,repeatType:g,repeatDelay:h,from:i,elapsed:j,...k}){return!!Object.keys(k).length}(h)&&Object.assign(l,((a,{keyframes:b})=>b.length>2?dv:j.has(a)?a.startsWith("scale")?{type:"spring",stiffness:550,damping:0===b[1]?2*Math.sqrt(550):30,restSpeed:10}:du:dw)(a,l)),l.duration&&(l.duration=cl(l.duration)),l.repeatDelay&&(l.repeatDelay=cl(l.repeatDelay)),void 0!==l.from&&(l.keyframes[0]=l.from);let m=!1;if(!1!==l.type&&(0!==l.duration||l.repeatDelay)||(dq(l),0===l.delay&&(m=!0)),(aB.instantAnimations||aB.skipAnimations||e?.shouldSkipAnimations)&&(m=!0,dq(l),l.delay=0),l.allowFlatten=!h.type&&!h.ease,m&&!f&&void 0!==b.get()){let a=function(a,{repeat:b,repeatType:c="loop"},d){let e=a.filter(dx),f=b&&"loop"!==c&&b%2==1?0:e.length-1;return e[f]}(l.keyframes,h);if(void 0!==a)return void aE.update(()=>{l.onUpdate(a),l.onComplete()})}return h.isSync?new dd(l):new dt(l)};function dz(a,b,{delay:c=0,transitionOverride:d,type:e}={}){let{transition:f,transitionEnd:g,...h}=b,i=a.getDefaultTransition();f=f?ch(f,i):i;let j=f?.reduceMotion;d&&(f=d);let k=[],l=e&&a.animationState&&a.animationState.getState()[e];for(let b in h){let d=a.getValue(b,a.latestValues[b]??null),e=h[b];if(void 0===e||l&&function({protectedKeys:a,needsAnimating:b},c){let d=a.hasOwnProperty(c)&&!0!==b[c];return b[c]=!1,d}(l,b))continue;let g={delay:c,...ci(f||{},b)},i=d.get();if(void 0!==i&&!d.isAnimating&&!Array.isArray(e)&&e===i&&!g.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){let c=a.props[ca];if(c){let a=window.MotionHandoffAnimation(c,b,aE);null!==a&&(g.startTime=a,m=!0)}}ck(a,b);let n=j??a.shouldReduceMotion;d.start(dy(b,d,e,n&&_.has(b)?{type:!1}:g,a,m));let o=d.animation;o&&k.push(o)}if(g){let b=()=>aE.update(()=>{g&&function(a,b){let{transitionEnd:c={},transition:d={},...e}=cg(a,b)||{};for(let b in e={...e,...c}){var f;let c=cj(f=e[b])?f[f.length-1]||0:f;a.hasValue(b)?a.getValue(b).set(c):a.addValue(b,aZ(c))}}(a,g)});k.length?Promise.all(k).then(b):b()}return k}function dA(a,b,c,d=0,e=1){let f=Array.from(a).sort((a,b)=>a.sortNodePosition(b)).indexOf(b),g=a.size,h=(g-1)*d;return"function"==typeof c?c(f,g):1===e?f*d:h-f*d}function dB(a,b,c={}){let d=cg(a,b,"exit"===c.type?a.presenceContext?.custom:void 0),{transition:e=a.getDefaultTransition()||{}}=d||{};c.transitionOverride&&(e=c.transitionOverride);let f=d?()=>Promise.all(dz(a,d,c)):()=>Promise.resolve(),g=a.variantChildren&&a.variantChildren.size?(d=0)=>{let{delayChildren:f=0,staggerChildren:g,staggerDirection:h}=e;return function(a,b,c=0,d=0,e=0,f=1,g){let h=[];for(let i of a.variantChildren)i.notify("AnimationStart",b),h.push(dB(i,b,{...g,delay:c+("function"==typeof d?0:d)+dA(a.variantChildren,i,d,e,f)}).then(()=>i.notify("AnimationComplete",b)));return Promise.all(h)}(a,b,d,f,g,h,c)}:()=>Promise.resolve(),{when:h}=e;if(!h)return Promise.all([f(),g(c.delay)]);{let[a,b]="beforeChildren"===h?[f,g]:[g,f];return a().then(()=>b())}}let dC=a5.length;function dD(a,b){if(!Array.isArray(b))return!1;let c=b.length;if(c!==a.length)return!1;for(let d=0;d<c;d++)if(b[d]!==a[d])return!1;return!0}let dE=[...a4].reverse(),dF=a4.length;function dG(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function dH(){return{animate:dG(!0),whileInView:dG(),whileHover:dG(),whileTap:dG(),whileDrag:dG(),whileFocus:dG(),exit:dG()}}class dI extends cf{constructor(a){super(a),a.animationState||(a.animationState=function(a){let b=b=>Promise.all(b.map(({animation:b,options:c})=>(function(a,b,c={}){let d;if(a.notify("AnimationStart",b),Array.isArray(b))d=Promise.all(b.map(b=>dB(a,b,c)));else if("string"==typeof b)d=dB(a,b,c);else{let e="function"==typeof b?cg(a,b,c.custom):b;d=Promise.all(dz(a,e,c))}return d.then(()=>{a.notify("AnimationComplete",b)})})(a,b,c))),c=dH(),d=!0,e=b=>(c,d)=>{let e=cg(a,d,"exit"===b?a.presenceContext?.custom:void 0);if(e){let{transition:a,transitionEnd:b,...d}=e;c={...c,...d,...b}}return c};function f(f){let{props:g}=a,h=function a(b){if(!b)return;if(!b.isControllingVariants){let c=b.parent&&a(b.parent)||{};return void 0!==b.props.initial&&(c.initial=b.props.initial),c}let c={};for(let a=0;a<dC;a++){let d=a5[a],e=b.props[d];(a3(e)||!1===e)&&(c[d]=e)}return c}(a.parent)||{},i=[],j=new Set,k={},l=1/0;for(let b=0;b<dF;b++){var m,n;let o=dE[b],p=c[o],q=void 0!==g[o]?g[o]:h[o],r=a3(q),s=o===f?p.isActive:null;!1===s&&(l=b);let t=q===h[o]&&q!==g[o]&&r;if(t&&d&&a.manuallyAnimateOnMount&&(t=!1),p.protectedKeys={...k},!p.isActive&&null===s||!q&&!p.prevProp||a2(q)||"boolean"==typeof q)continue;let u=(m=p.prevProp,"string"==typeof(n=q)?n!==m:!!Array.isArray(n)&&!dD(n,m)),v=u||o===f&&p.isActive&&!t&&r||b>l&&r,w=!1,x=Array.isArray(q)?q:[q],y=x.reduce(e(o),{});!1===s&&(y={});let{prevResolvedValues:z={}}=p,A={...z,...y},B=b=>{v=!0,j.has(b)&&(w=!0,j.delete(b)),p.needsAnimating[b]=!0;let c=a.getValue(b);c&&(c.liveStyle=!1)};for(let a in A){let b=y[a],c=z[a];if(!k.hasOwnProperty(a))(cj(b)&&cj(c)?dD(b,c):b===c)?void 0!==b&&j.has(a)?B(a):p.protectedKeys[a]=!0:null!=b?B(a):j.add(a)}p.prevProp=q,p.prevResolvedValues=y,p.isActive&&(k={...k,...y}),d&&a.blockInitialAnimation&&(v=!1);let C=t&&u,D=!C||w;v&&D&&i.push(...x.map(b=>{let c={type:o};if("string"==typeof b&&d&&!C&&a.manuallyAnimateOnMount&&a.parent){let{parent:d}=a,e=cg(d,b);if(d.enteringChildren&&e){let{delayChildren:b}=e.transition||{};c.delay=dA(d.enteringChildren,a,b)}}return{animation:b,options:c}}))}if(j.size){let b={};if("boolean"!=typeof g.initial){let c=cg(a,Array.isArray(g.initial)?g.initial[0]:g.initial);c&&c.transition&&(b.transition=c.transition)}j.forEach(c=>{let d=a.getBaseTarget(c),e=a.getValue(c);e&&(e.liveStyle=!0),b[c]=d??null}),i.push({animation:b})}let o=!!i.length;return d&&(!1===g.initial||g.initial===g.animate)&&!a.manuallyAnimateOnMount&&(o=!1),d=!1,o?b(i):Promise.resolve()}return{animateChanges:f,setActive:function(b,d){if(c[b].isActive===d)return Promise.resolve();a.variantChildren?.forEach(a=>a.animationState?.setActive(b,d)),c[b].isActive=d;let e=f(b);for(let a in c)c[a].protectedKeys={};return e},setAnimateFunction:function(c){b=c(a)},getState:()=>c,reset:()=>{c=dH()}}}(a))}updateAnimationControlsSubscription(){let{animate:a}=this.node.getProps();a2(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:a}=this.node.getProps(),{animate:b}=this.node.prevProps||{};a!==b&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let dJ=0;class dK extends cf{constructor(){super(...arguments),this.id=dJ++}update(){if(!this.node.presenceContext)return;let{isPresent:a,onExitComplete:b}=this.node.presenceContext,{isPresent:c}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===c)return;let d=this.node.animationState.setActive("exit",!a);b&&!a&&d.then(()=>{b(this.id)})}mount(){let{register:a,onExitComplete:b}=this.node.presenceContext||{};b&&b(this.id),a&&(this.unmount=a(this.id))}unmount(){}}let dL={x:!1,y:!1};function dM(a){return[a("x"),a("y")]}function dN(a){return a.max-a.min}function dO(a,b,c,d=.5){a.origin=d,a.originPoint=bt(b.min,b.max,a.origin),a.scale=dN(c)/dN(b),a.translate=bt(c.min,c.max,a.origin)-a.originPoint,(a.scale>=.9999&&a.scale<=1.0001||isNaN(a.scale))&&(a.scale=1),(a.translate>=-.01&&a.translate<=.01||isNaN(a.translate))&&(a.translate=0)}function dP(a,b,c,d){dO(a.x,b.x,c.x,d?d.originX:void 0),dO(a.y,b.y,c.y,d?d.originY:void 0)}function dQ(a,b,c){a.min=c.min+b.min,a.max=a.min+dN(b)}function dR(a,b,c){a.min=b.min-c.min,a.max=a.min+dN(b)}function dS(a,b,c){dR(a.x,b.x,c.x),dR(a.y,b.y,c.y)}let dT=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),dU=new Set(["INPUT","SELECT","TEXTAREA"]);function dV(a,b,c,d={passive:!0}){return a.addEventListener(b,c,d),()=>a.removeEventListener(b,c)}var dW=c(2389);function dX(a){return(0,dW.G)(a)&&"ownerSVGElement"in a}function dY(a,b,c){if(null==a)return[];if(a instanceof EventTarget)return[a];if("string"==typeof a){let d=document;b&&(d=b.current);let e=c?.[a]??d.querySelectorAll(a);return e?Array.from(e):[]}return Array.from(a).filter(a=>null!=a)}let dZ=new WeakMap,d$=(a,b,c)=>(d,e)=>e&&e[0]?e[0][a+"Size"]:dX(d)&&"getBBox"in d?d.getBBox()[b]:d[c],d_=d$("inline","width","offsetWidth"),d0=d$("block","height","offsetHeight");function d1({target:a,borderBoxSize:b}){dZ.get(a)?.forEach(c=>{c(a,{get width(){return d_(a,b)},get height(){return d0(a,b)}})})}function d2(a){a.forEach(d1)}let d3=new Set;function d4(a,b){let c;return"function"==typeof a?(d3.add(a),f||(f=()=>{let a={get width(){return window.innerWidth},get height(){return window.innerHeight}};d3.forEach(b=>b(a))},window.addEventListener("resize",f)),()=>{d3.delete(a),d3.size||"function"!=typeof f||(window.removeEventListener("resize",f),f=void 0)}):(!e&&"u">typeof ResizeObserver&&(e=new ResizeObserver(d2)),(c=dY(a)).forEach(a=>{let c=dZ.get(a);c||(c=new Set,dZ.set(a,c)),c.add(b),e?.observe(a)}),()=>{c.forEach(a=>{let c=dZ.get(a);c?.delete(b),c?.size||e?.unobserve(a)})})}let d5=a=>"mouse"===a.pointerType?"number"!=typeof a.button||a.button<=0:!1!==a.isPrimary;function d6(a){return{point:{x:a.pageX,y:a.pageY}}}function d7(a,b,c,d){return dV(a,b,a=>d5(a)&&c(a,d6(a)),d)}let d8=({current:a})=>a?a.ownerDocument.defaultView:null,d9=(a,b)=>Math.abs(a-b),ea=new Set(["auto","scroll"]);class eb{constructor(a,b,{transformPagePoint:c,contextWindow:d=window,dragSnapToOrigin:e=!1,distanceThreshold:f=3,element:g}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=a=>{this.handleScroll(a.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var a,b;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let c=ee(this.lastMoveEventInfo,this.history),d=null!==this.startEvent,e=(a=c.offset,b={x:0,y:0},Math.sqrt(d9(a.x,b.x)**2+d9(a.y,b.y)**2)>=this.distanceThreshold);if(!d&&!e)return;let{point:f}=c,{timestamp:g}=aG;this.history.push({...f,timestamp:g});let{onStart:h,onMove:i}=this.handlers;d||(h&&h(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),i&&i(this.lastMoveEvent,c)},this.handlePointerMove=(a,b)=>{this.lastMoveEvent=a,this.lastMoveEventInfo=ec(b,this.transformPagePoint),aE.update(this.updatePoint,!0)},this.handlePointerUp=(a,b)=>{this.end();let{onEnd:c,onSessionEnd:d,resumeAnimation:e}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&e&&e(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let f=ee("pointercancel"===a.type?this.lastMoveEventInfo:ec(b,this.transformPagePoint),this.history);this.startEvent&&c&&c(a,f),d&&d(a,f)},!d5(a))return;this.dragSnapToOrigin=e,this.handlers=b,this.transformPagePoint=c,this.distanceThreshold=f,this.contextWindow=d||window;const h=ec(d6(a),this.transformPagePoint),{point:i}=h,{timestamp:j}=aG;this.history=[{...i,timestamp:j}];const{onSessionStart:k}=b;k&&k(a,ee(h,this.history)),this.removeListeners=cn(d7(this.contextWindow,"pointermove",this.handlePointerMove),d7(this.contextWindow,"pointerup",this.handlePointerUp),d7(this.contextWindow,"pointercancel",this.handlePointerUp)),g&&this.startScrollTracking(g)}startScrollTracking(a){let b=a.parentElement;for(;b;){let a=getComputedStyle(b);(ea.has(a.overflowX)||ea.has(a.overflowY))&&this.scrollPositions.set(b,{x:b.scrollLeft,y:b.scrollTop}),b=b.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(a){let b=this.scrollPositions.get(a);if(!b)return;let c=a===window,d=c?{x:window.scrollX,y:window.scrollY}:{x:a.scrollLeft,y:a.scrollTop},e={x:d.x-b.x,y:d.y-b.y};(0!==e.x||0!==e.y)&&(c?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=e.x,this.lastMoveEventInfo.point.y+=e.y):this.history.length>0&&(this.history[0].x-=e.x,this.history[0].y-=e.y),this.scrollPositions.set(a,d),aE.update(this.updatePoint,!0))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),aF(this.updatePoint)}}function ec(a,b){return b?{point:b(a.point)}:a}function ed(a,b){return{x:a.x-b.x,y:a.y-b.y}}function ee({point:a},b){return{point:a,delta:ed(a,ef(b)),offset:ed(a,b[0]),velocity:function(a,b){if(a.length<2)return{x:0,y:0};let c=a.length-1,d=null,e=ef(a);for(;c>=0&&(d=a[c],!(e.timestamp-d.timestamp>cl(.1)));)c--;if(!d)return{x:0,y:0};d===a[0]&&a.length>2&&e.timestamp-d.timestamp>2*cl(.1)&&(d=a[1]);let f=(e.timestamp-d.timestamp)/1e3;if(0===f)return{x:0,y:0};let g={x:(e.x-d.x)/f,y:(e.y-d.y)/f};return g.x===1/0&&(g.x=0),g.y===1/0&&(g.y=0),g}(b,.1)}}function ef(a){return a[a.length-1]}function eg(a,b,c){return{min:void 0!==b?a.min+b:void 0,max:void 0!==c?a.max+c-(a.max-a.min):void 0}}function eh(a,b){let c=b.min-a.min,d=b.max-a.max;return b.max-b.min<a.max-a.min&&([c,d]=[d,c]),{min:c,max:d}}function ei(a,b,c){return{min:ej(a,b),max:ej(a,c)}}function ej(a,b){return"number"==typeof a?a:a[b]||0}let ek=new WeakMap;class el{constructor(a){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Z(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a}start(a,{snapToCursor:b=!1,distanceThreshold:c}={}){let{presenceContext:d}=this.visualElement;if(d&&!1===d.isPresent)return;let e=a=>{b&&this.snapToCursor(d6(a).point),this.stopAnimation()},f=(a,b)=>{let{drag:c,dragPropagation:d,onDragStart:e}=this.getProps();if(c&&!d&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(a){if("x"===a||"y"===a)if(dL[a])return null;else return dL[a]=!0,()=>{dL[a]=!1};return dL.x||dL.y?null:(dL.x=dL.y=!0,()=>{dL.x=dL.y=!1})}(c),!this.openDragLock))return;this.latestPointerEvent=a,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),dM(a=>{let b=this.getAxisMotionValue(a).get()||0;if(y.test(b)){let{projection:c}=this.visualElement;if(c&&c.layout){let d=c.layout.layoutBox[a];d&&(b=dN(d)*(parseFloat(b)/100))}}this.originPoint[a]=b}),e&&aE.update(()=>e(a,b),!1,!0),ck(this.visualElement,"transform");let{animationState:f}=this.visualElement;f&&f.setActive("whileDrag",!0)},g=(a,b)=>{this.latestPointerEvent=a,this.latestPanInfo=b;let{dragPropagation:c,dragDirectionLock:d,onDirectionLock:e,onDrag:f}=this.getProps();if(!c&&!this.openDragLock)return;let{offset:g}=b;if(d&&null===this.currentDirection){this.currentDirection=function(a,b=10){let c=null;return Math.abs(a.y)>b?c="y":Math.abs(a.x)>b&&(c="x"),c}(g),null!==this.currentDirection&&e&&e(this.currentDirection);return}this.updateAxis("x",b.point,g),this.updateAxis("y",b.point,g),this.visualElement.render(),f&&aE.update(()=>f(a,b),!1,!0)},h=(a,b)=>{this.latestPointerEvent=a,this.latestPanInfo=b,this.stop(a,b),this.latestPointerEvent=null,this.latestPanInfo=null},i=()=>{let{dragSnapToOrigin:a}=this.getProps();(a||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:j}=this.getProps();this.panSession=new eb(a,{onSessionStart:e,onStart:f,onMove:g,onSessionEnd:h,resumeAnimation:i},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:j,distanceThreshold:c,contextWindow:d8(this.visualElement),element:this.visualElement.current})}stop(a,b){let c=a||this.latestPointerEvent,d=b||this.latestPanInfo,e=this.isDragging;if(this.cancel(),!e||!d||!c)return;let{velocity:f}=d;this.startAnimation(f);let{onDragEnd:g}=this.getProps();g&&aE.postRender(()=>g(c,d))}cancel(){this.isDragging=!1;let{projection:a,animationState:b}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:c}=this.getProps();!c&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),b&&b.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(a,b,c){let{drag:d}=this.getProps();if(!c||!en(a,d,this.currentDirection))return;let e=this.getAxisMotionValue(a),f=this.originPoint[a]+c[a];this.constraints&&this.constraints[a]&&(f=function(a,{min:b,max:c},d){return void 0!==b&&a<b?a=d?bt(b,a,d.min):Math.max(a,b):void 0!==c&&a>c&&(a=d?bt(c,a,d.max):Math.min(a,c)),a}(f,this.constraints[a],this.elastic[a])),e.set(f)}resolveConstraints(){let{dragConstraints:a,dragElastic:b}=this.getProps(),c=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,d=this.constraints;a&&cc(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&c?this.constraints=function(a,{top:b,left:c,bottom:d,right:e}){return{x:eg(a.x,c,e),y:eg(a.y,b,d)}}(c.layoutBox,a):this.constraints=!1,this.elastic=function(a=.35){return!1===a?a=0:!0===a&&(a=.35),{x:ei(a,"left","right"),y:ei(a,"top","bottom")}}(b),d!==this.constraints&&!cc(a)&&c&&this.constraints&&!this.hasMutatedConstraints&&dM(a=>{var b,d;let e;!1!==this.constraints&&this.getAxisMotionValue(a)&&(this.constraints[a]=(b=c.layoutBox[a],d=this.constraints[a],e={},void 0!==d.min&&(e.min=d.min-b.min),void 0!==d.max&&(e.max=d.max-b.min),e))})}resolveRefConstraints(){var a;let{dragConstraints:b,onMeasureDragConstraints:c}=this.getProps();if(!b||!cc(b))return!1;let d=b.current;ae(null!==d,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:e}=this.visualElement;if(!e||!e.layout)return!1;let f=function(a,b,c){let d=bK(a,c),{scroll:e}=b;return e&&(bH(d.x,e.offset.x),bH(d.y,e.offset.y)),d}(d,e.root,this.visualElement.getTransformPagePoint()),g=(a=e.layout.layoutBox,{x:eh(a.x,f.x),y:eh(a.y,f.y)});if(c){let a=c(function({x:a,y:b}){return{top:b.min,right:a.max,bottom:b.max,left:a.min}}(g));this.hasMutatedConstraints=!!a,a&&(g=bz(a))}return g}startAnimation(a){let{drag:b,dragMomentum:c,dragElastic:d,dragTransition:e,dragSnapToOrigin:f,onDragTransitionEnd:g}=this.getProps(),h=this.constraints||{};return Promise.all(dM(g=>{if(!en(g,b,this.currentDirection))return;let i=h&&h[g]||{};f&&(i={min:0,max:0});let j={type:"inertia",velocity:c?a[g]:0,bounceStiffness:d?200:1e6,bounceDamping:d?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...e,...i};return this.startAxisValueAnimation(g,j)})).then(g)}startAxisValueAnimation(a,b){let c=this.getAxisMotionValue(a);return ck(this.visualElement,a),c.start(dy(a,c,0,b,this.visualElement,!1))}stopAnimation(){dM(a=>this.getAxisMotionValue(a).stop())}getAxisMotionValue(a){let b=`_drag${a.toUpperCase()}`,c=this.visualElement.getProps();return c[b]||this.visualElement.getValue(a,(c.initial?c.initial[a]:void 0)||0)}snapToCursor(a){dM(b=>{let{drag:c}=this.getProps();if(!en(b,c,this.currentDirection))return;let{projection:d}=this.visualElement,e=this.getAxisMotionValue(b);if(d&&d.layout){let{min:c,max:f}=d.layout.layoutBox[b],g=e.get()||0;e.set(a[b]-bt(c,f,.5)+g)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:a,dragConstraints:b}=this.getProps(),{projection:c}=this.visualElement;if(!cc(b)||!c||!this.constraints)return;this.stopAnimation();let d={x:0,y:0};dM(a=>{let b=this.getAxisMotionValue(a);if(b&&!1!==this.constraints){var c,e;let f,g,h,i=b.get();d[a]=(c={min:i,max:i},e=this.constraints[a],f=.5,g=dN(c),(h=dN(e))>g?f=c5(e.min,e.max-g,c.min):g>h&&(f=c5(c.min,c.max-h,e.min)),k(0,1,f))}});let{transformTemplate:e}=this.visualElement.getProps();this.visualElement.current.style.transform=e?e({},""):"none",c.root&&c.root.updateScroll(),c.updateLayout(),this.constraints=!1,this.resolveConstraints(),dM(b=>{if(!en(b,a,null))return;let c=this.getAxisMotionValue(b),{min:e,max:f}=this.constraints[b];c.set(bt(e,f,d[b]))}),this.visualElement.render()}addListeners(){let a;if(!this.visualElement.current)return;ek.set(this.visualElement,this);let b=this.visualElement.current,c=d7(b,"pointerdown",a=>{let{drag:c,dragListener:d=!0}=this.getProps(),e=a.target,f=e!==b&&(dU.has(e.tagName)||!0===e.isContentEditable);c&&d&&!f&&this.start(a)}),d=()=>{var c,d,e;let f,g,{dragConstraints:h}=this.getProps();cc(h)&&h.current&&(this.constraints=this.resolveRefConstraints(),a||(c=b,d=h.current,f=d4(c,em(e=()=>this.scalePositionWithinConstraints())),g=d4(d,em(e)),a=()=>{f(),g()}))},{projection:e}=this.visualElement,f=e.addEventListener("measure",d);e&&!e.layout&&(e.root&&e.root.updateScroll(),e.updateLayout()),aE.read(d);let g=dV(window,"resize",()=>this.scalePositionWithinConstraints()),h=e.addEventListener("didUpdate",({delta:a,hasLayoutChanged:b})=>{this.isDragging&&b&&(dM(b=>{let c=this.getAxisMotionValue(b);c&&(this.originPoint[b]+=a[b].translate,c.set(c.get()+a[b].translate))}),this.visualElement.render())});return()=>{g(),c(),f(),h&&h(),a&&a()}}getProps(){let a=this.visualElement.getProps(),{drag:b=!1,dragDirectionLock:c=!1,dragPropagation:d=!1,dragConstraints:e=!1,dragElastic:f=.35,dragMomentum:g=!0}=a;return{...a,drag:b,dragDirectionLock:c,dragPropagation:d,dragConstraints:e,dragElastic:f,dragMomentum:g}}}function em(a){let b=!0;return()=>{if(b){b=!1;return}a()}}function en(a,b,c){return(!0===b||b===a)&&(null===c||c===a)}class eo extends cf{constructor(a){super(a),this.removeGroupControls=aA,this.removeListeners=aA,this.controls=new el(a)}mount(){let{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||aA}update(){let{dragControls:a}=this.node.getProps(),{dragControls:b}=this.node.prevProps||{};a!==b&&(this.removeGroupControls(),a&&(this.removeGroupControls=a.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let ep=a=>(b,c)=>{a&&aE.update(()=>a(b,c),!1,!0)};class eq extends cf{constructor(){super(...arguments),this.removePointerDownListener=aA}onPointerDown(a){this.session=new eb(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:d8(this.node)})}createPanHandlers(){let{onPanSessionStart:a,onPanStart:b,onPan:c,onPanEnd:d}=this.node.getProps();return{onSessionStart:ep(a),onStart:ep(b),onMove:ep(c),onEnd:(a,b)=>{delete this.session,d&&aE.postRender(()=>d(a,b))}}}mount(){this.removePointerDownListener=d7(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let er={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var es=c(77514);let et=!1;class eu extends bM.Component{componentDidMount(){let{visualElement:a,layoutGroup:b,switchLayoutGroup:c,layoutId:d}=this.props,{projection:e}=a;e&&(b.group&&b.group.add(e),c&&c.register&&d&&c.register(e),et&&e.root.didUpdate(),e.addEventListener("animationComplete",()=>{this.safeToRemove()}),e.setOptions({...e.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),er.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){let{layoutDependency:b,visualElement:c,drag:d,isPresent:e}=this.props,{projection:f}=c;return f&&(f.isPresent=e,a.layoutDependency!==b&&f.setOptions({...f.options,layoutDependency:b}),et=!0,d||a.layoutDependency!==b||void 0===b||a.isPresent!==e?f.willUpdate():this.safeToRemove(),a.isPresent!==e&&(e?f.promote():f.relegate()||aE.postRender(()=>{let a=f.getStack();a&&a.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),aV.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:a,layoutGroup:b,switchLayoutGroup:c}=this.props,{projection:d}=a;et=!0,d&&(d.scheduleCheckAfterUnmount(),b&&b.group&&b.group.remove(d),c&&c.deregister&&c.deregister(d))}safeToRemove(){let{safeToRemove:a}=this.props;a&&a()}render(){return null}}function ev(a){let[b,c]=(0,es.xQ)(),d=(0,bM.useContext)(bQ.L);return(0,bP.jsx)(eu,{...a,layoutGroup:d,switchLayoutGroup:(0,bM.useContext)(cb),isPresent:b,safeToRemove:c})}let ew=["TopLeft","TopRight","BottomLeft","BottomRight"],ex=ew.length,ey=a=>"string"==typeof a?parseFloat(a):a,ez=a=>"number"==typeof a||z.test(a);function eA(a,b){return void 0!==a[b]?a[b]:a.borderRadius}let eB=eD(0,.5,c0),eC=eD(.5,.95,aA);function eD(a,b,c){return d=>d<a?0:d>b?1:c(c5(a,b,d))}function eE(a,b){a.min=b.min,a.max=b.max}function eF(a,b){eE(a.x,b.x),eE(a.y,b.y)}function eG(a,b){a.translate=b.translate,a.scale=b.scale,a.originPoint=b.originPoint,a.origin=b.origin}function eH(a,b,c,d,e){return a-=b,a=d+1/c*(a-d),void 0!==e&&(a=d+1/e*(a-d)),a}function eI(a,b,[c,d,e],f,g){!function(a,b=0,c=1,d=.5,e,f=a,g=a){if(y.test(b)&&(b=parseFloat(b),b=bt(g.min,g.max,b/100)-g.min),"number"!=typeof b)return;let h=bt(f.min,f.max,d);a===f&&(h-=b),a.min=eH(a.min,b,c,h,e),a.max=eH(a.max,b,c,h,e)}(a,b[c],b[d],b[e],b.scale,f,g)}let eJ=["x","scaleX","originX"],eK=["y","scaleY","originY"];function eL(a,b,c,d){eI(a.x,b,eJ,c?c.x:void 0,d?d.x:void 0),eI(a.y,b,eK,c?c.y:void 0,d?d.y:void 0)}function eM(a){return 0===a.translate&&1===a.scale}function eN(a){return eM(a.x)&&eM(a.y)}function eO(a,b){return a.min===b.min&&a.max===b.max}function eP(a,b){return Math.round(a.min)===Math.round(b.min)&&Math.round(a.max)===Math.round(b.max)}function eQ(a,b){return eP(a.x,b.x)&&eP(a.y,b.y)}function eR(a){return dN(a.x)/dN(a.y)}function eS(a,b){return a.translate===b.translate&&a.scale===b.scale&&a.originPoint===b.originPoint}class eT{constructor(){this.members=[]}add(a){aS(this.members,a),a.scheduleRender()}remove(a){if(aT(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){let a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(a){let b,c=this.members.findIndex(b=>a===b);if(0===c)return!1;for(let a=c;a>=0;a--){let c=this.members[a];if(!1!==c.isPresent){b=c;break}}return!!b&&(this.promote(b),!0)}promote(a,b){let c=this.lead;if(a!==c&&(this.prevLead=c,this.lead=a,a.show(),c)){c.instance&&c.scheduleRender(),a.scheduleRender();let d=c.options.layoutDependency,e=a.options.layoutDependency;(void 0===d||void 0===e||d!==e)&&(a.resumeFrom=c,b&&(a.resumeFrom.preserveOpacity=!0),c.snapshot&&(a.snapshot=c.snapshot,a.snapshot.latestValues=c.animationValues||c.latestValues),a.root&&a.root.isUpdating&&(a.isLayoutDirty=!0));let{crossfade:f}=a.options;!1===f&&c.hide()}}exitAnimationComplete(){this.members.forEach(a=>{let{options:b,resumingFrom:c}=a;b.onExitComplete&&b.onExitComplete(),c&&c.options.onExitComplete&&c.options.onExitComplete()})}scheduleRender(){this.members.forEach(a=>{a.instance&&a.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let eU=(a,b)=>a.depth-b.depth;class eV{constructor(){this.children=[],this.isDirty=!1}add(a){aS(this.children,a),this.isDirty=!0}remove(a){aT(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(eU),this.isDirty=!1,this.children.forEach(a)}}let eW=["","X","Y","Z"],eX=0;function eY(a,b,c,d){let{latestValues:e}=b;e[a]&&(c[a]=e[a],b.setStaticValue(a,0),d&&(d[a]=0))}function eZ({attachResizeListener:a,defaultParent:b,measureScroll:c,checkIsScrollRoot:d,resetTransform:e}){return class{constructor(a={},c=b?.()){this.id=eX++,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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(e0),this.nodes.forEach(e7),this.nodes.forEach(e8),this.nodes.forEach(e1)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new eV)}addEventListener(a,b){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new aU),this.eventHandlers.get(a).add(b)}notifyListeners(a,...b){let c=this.eventHandlers.get(a);c&&c.notify(...b)}hasListeners(a){return this.eventHandlers.has(a)}mount(b){if(this.instance)return;this.isSVG=dX(b)&&!(dX(b)&&"svg"===b.tagName),this.instance=b;let{layoutId:c,layout:d,visualElement:e}=this.options;if(e&&!e.current&&e.mount(b),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(d||c)&&(this.isLayoutDirty=!0),a){let c,d=0,e=()=>this.root.updateBlockedByResize=!1;aE.read(()=>{d=window.innerWidth}),a(b,()=>{let a=window.innerWidth;if(a!==d){let b,f;d=a,this.root.updateBlockedByResize=!0,c&&c(),b=aX.now(),f=({timestamp:a})=>{let c=a-b;c>=250&&(aF(f),e(c-250))},aE.setup(f,!0),c=()=>aF(f),er.hasAnimatedSinceResize&&(er.hasAnimatedSinceResize=!1,this.nodes.forEach(e6))}})}c&&this.root.registerSharedNode(c,this),!1!==this.options.animate&&e&&(c||d)&&this.addEventListener("didUpdate",({delta:a,hasLayoutChanged:b,hasRelativeLayoutChanged:c,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let f=this.options.transition||e.getDefaultTransition()||fe,{onLayoutAnimationStart:g,onLayoutAnimationComplete:h}=e.getProps(),i=!this.targetLayout||!eQ(this.targetLayout,d),j=!b&&c;if(this.options.layoutRoot||this.resumeFrom||j||b&&(i||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let b={...ci(f,"layout"),onPlay:g,onComplete:h};(e.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(a,j)}else b||e6(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),aF(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(e9),this.animationId++)}getTransformTemplate(){let{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function a(b){if(b.hasCheckedOptimisedAppear=!0,b.root===b)return;let{visualElement:c}=b.options;if(!c)return;let d=c.props[ca];if(window.MotionHasOptimisedAnimation(d,"transform")){let{layout:a,layoutId:c}=b.options;window.MotionCancelOptimisedAnimation(d,"transform",aE,!(a||c))}let{parent:e}=b;e&&!e.hasCheckedOptimisedAppear&&a(e)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let a=0;a<this.path.length;a++){let b=this.path[a];b.shouldResetTransform=!0,b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}let{layoutId:b,layout:c}=this.options;if(void 0===b&&!c)return;let d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(e3);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(e4);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(e5),this.nodes.forEach(e$),this.nodes.forEach(e_)):this.nodes.forEach(e4),this.clearAllSnapshots();let a=aX.now();aG.delta=k(0,1e3/60,a-aG.timestamp),aG.timestamp=a,aG.isProcessing=!0,aH.update.process(aG),aH.preRender.process(aG),aH.render.process(aG),aG.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,aV.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(e2),this.sharedNodes.forEach(fa)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,aE.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){aE.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||dN(this.snapshot.measuredBox.x)||dN(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 a=0;a<this.path.length;a++)this.path[a].updateScroll();let a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Z(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:b}=this.options;b&&b.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let b=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(b=!1),b&&this.instance){let b=d(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:b,offset:c(this.instance),wasRoot:this.scroll?this.scroll.isRoot:b}}}resetTransform(){if(!e)return;let a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,b=this.projectionDelta&&!eN(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,f=d!==this.prevTransformTemplateValue;a&&this.instance&&(b||bC(this.latestValues)||f)&&(e(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){var b;let c=this.measurePageBox(),d=this.removeElementScroll(c);return a&&(d=this.removeTransform(d)),fh((b=d).x),fh(b.y),{animationId:this.root.animationId,measuredBox:c,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:a}=this.options;if(!a)return Z();let b=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(fj))){let{scroll:a}=this.root;a&&(bH(b.x,a.offset.x),bH(b.y,a.offset.y))}return b}removeElementScroll(a){let b=Z();if(eF(b,a),this.scroll?.wasRoot)return b;for(let c=0;c<this.path.length;c++){let d=this.path[c],{scroll:e,options:f}=d;d!==this.root&&e&&f.layoutScroll&&(e.wasRoot&&eF(b,a),bH(b.x,e.offset.x),bH(b.y,e.offset.y))}return b}applyTransform(a,b=!1){let c=Z();eF(c,a);for(let a=0;a<this.path.length;a++){let d=this.path[a];!b&&d.options.layoutScroll&&d.scroll&&d!==d.root&&bJ(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),bC(d.latestValues)&&bJ(c,d.latestValues)}return bC(this.latestValues)&&bJ(c,this.latestValues),c}removeTransform(a){let b=Z();eF(b,a);for(let a=0;a<this.path.length;a++){let c=this.path[a];if(!c.instance||!bC(c.latestValues))continue;bB(c.latestValues)&&c.updateSnapshot();let d=Z();eF(d,c.measurePageBox()),eL(b,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return bC(this.latestValues)&&eL(b,this.latestValues),b}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:void 0===a.crossfade||a.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!==aG.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){let b=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=b.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=b.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=b.isSharedProjectionDirty);let c=!!this.resumingFrom||this!==b;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:d,layoutId:e}=this.options;if(!this.layout||!(d||e))return;this.resolvedRelativeTargetAt=aG.timestamp;let f=this.getClosestProjectingParent();if(f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=Z(),this.targetWithTransforms=Z()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var g,h,i;this.forceRelativeParentToResolveTarget(),g=this.target,h=this.relativeTarget,i=this.relativeParent.target,dQ(g.x,h.x,i.x),dQ(g.y,h.y,i.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):eF(this.target,this.layout.layoutBox),bG(this.target,this.targetDelta)):eF(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&1!==this.animationProgress?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||bB(this.parent.latestValues)||bD(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)}createRelativeTarget(a,b,c){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Z(),this.relativeTargetOrigin=Z(),dS(this.relativeTargetOrigin,b,c),eF(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let a=this.getLead(),b=!!this.resumingFrom||this!==a,c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),b&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===aG.timestamp&&(c=!1),c)return;let{layout:d,layoutId:e}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||e))return;eF(this.layoutCorrected,this.layout.layoutBox);let f=this.treeScale.x,g=this.treeScale.y;!function(a,b,c,d=!1){let e,f,g=c.length;if(g){b.x=b.y=1;for(let h=0;h<g;h++){f=(e=c[h]).projectionDelta;let{visualElement:g}=e.options;(!g||!g.props.style||"contents"!==g.props.style.display)&&(d&&e.options.layoutScroll&&e.scroll&&e!==e.root&&bJ(a,{x:-e.scroll.offset.x,y:-e.scroll.offset.y}),f&&(b.x*=f.x.scale,b.y*=f.y.scale,bG(a,f)),d&&bC(e.latestValues)&&bJ(a,e.latestValues))}b.x<1.0000000000001&&b.x>.999999999999&&(b.x=1),b.y<1.0000000000001&&b.y>.999999999999&&(b.y=1)}}(this.layoutCorrected,this.treeScale,this.path,b),a.layout&&!a.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Z());let{target:h}=a;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(eG(this.prevProjectionDelta.x,this.projectionDelta.x),eG(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),dP(this.projectionDelta,this.layoutCorrected,h,this.latestValues),this.treeScale.x===f&&this.treeScale.y===g&&eS(this.projectionDelta.x,this.prevProjectionDelta.x)&&eS(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.visualElement?.scheduleRender(),a){let a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=X(),this.projectionDelta=X(),this.projectionDeltaWithTransform=X()}setAnimationOrigin(a,b=!1){let c,d=this.snapshot,e=d?d.latestValues:{},f={...this.latestValues},g=X();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!b;let h=Z(),i=(d?d.source:void 0)!==(this.layout?this.layout.source:void 0),j=this.getStack(),k=!j||j.members.length<=1,l=!!(i&&!k&&!0===this.options.crossfade&&!this.path.some(fd));this.animationProgress=0,this.mixTargetDelta=b=>{let d=b/1e3;if(fb(g.x,a.x,d),fb(g.y,a.y,d),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var j,m,n,o,p,q;dS(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),n=this.relativeTarget,o=this.relativeTargetOrigin,p=h,q=d,fc(n.x,o.x,p.x,q),fc(n.y,o.y,p.y,q),c&&(j=this.relativeTarget,m=c,eO(j.x,m.x)&&eO(j.y,m.y))&&(this.isProjectionDirty=!1),c||(c=Z()),eF(c,this.relativeTarget)}i&&(this.animationValues=f,function(a,b,c,d,e,f){e?(a.opacity=bt(0,c.opacity??1,eB(d)),a.opacityExit=bt(b.opacity??1,0,eC(d))):f&&(a.opacity=bt(b.opacity??1,c.opacity??1,d));for(let e=0;e<ex;e++){let f=`border${ew[e]}Radius`,g=eA(b,f),h=eA(c,f);(void 0!==g||void 0!==h)&&(g||(g=0),h||(h=0),0===g||0===h||ez(g)===ez(h)?(a[f]=Math.max(bt(ey(g),ey(h),d),0),(y.test(h)||y.test(g))&&(a[f]+="%")):a[f]=h)}(b.rotate||c.rotate)&&(a.rotate=bt(b.rotate||0,c.rotate||0,d))}(f,e,this.latestValues,d,l,k)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=d},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(aF(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=aE.update(()=>{var b,c,d;let e;er.hasAnimatedSinceResize=!0,co.layout++,this.motionValue||(this.motionValue=aZ(0)),this.currentAnimation=(b=this.motionValue,c=[0,1e3],d={...a,velocity:0,isSync:!0,onUpdate:b=>{this.mixTargetDelta(b),a.onUpdate&&a.onUpdate(b)},onStop:()=>{co.layout--},onComplete:()=>{co.layout--,a.onComplete&&a.onComplete(),this.completeAnimation()}},(e=$(b)?b:aZ(b)).start(dy("",e,c,d)),e.animation),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 a=this.getStack();a&&a.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 a=this.getLead(),{targetWithTransforms:b,target:c,layout:d,latestValues:e}=a;if(b&&c&&d){if(this!==a&&this.layout&&d&&fi(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||Z();let b=dN(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+b;let d=dN(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+d}eF(b,c),bJ(b,e),dP(this.projectionDeltaWithTransform,this.layoutCorrected,b,e)}}registerSharedNode(a,b){this.sharedNodes.has(a)||this.sharedNodes.set(a,new eT),this.sharedNodes.get(a).add(b);let c=b.options.initialPromotionConfig;b.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(b):void 0})}isLead(){let a=this.getStack();return!a||a.lead===this}getLead(){let{layoutId:a}=this.options;return a&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:b,preserveFollowOpacity:c}={}){let d=this.getStack();d&&d.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),b&&this.setOptions({transition:b})}relegate(){let a=this.getStack();return!!a&&a.relegate(this)}resetSkewAndRotation(){let{visualElement:a}=this.options;if(!a)return;let b=!1,{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(b=!0),!b)return;let d={};c.z&&eY("z",a,d,this.animationValues);for(let b=0;b<eW.length;b++)eY(`rotate${eW[b]}`,a,d,this.animationValues),eY(`skew${eW[b]}`,a,d,this.animationValues);for(let b in a.render(),d)a.setStaticValue(b,d[b]),this.animationValues&&(this.animationValues[b]=d[b]);a.scheduleRender()}applyProjectionStyles(a,b){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}let c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=b_(b?.pointerEvents)||"",a.transform=c?c(this.latestValues,""):"none";return}let d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(a.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,a.pointerEvents=b_(b?.pointerEvents)||""),this.hasProjected&&!bC(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";let e=d.animationValues||d.latestValues;this.applyTransformsToTarget();let f=function(a,b,c){let d="",e=a.x.translate/b.x,f=a.y.translate/b.y,g=c?.z||0;if((e||f||g)&&(d=`translate3d(${e}px, ${f}px, ${g}px) `),(1!==b.x||1!==b.y)&&(d+=`scale(${1/b.x}, ${1/b.y}) `),c){let{transformPerspective:a,rotate:b,rotateX:e,rotateY:f,skewX:g,skewY:h}=c;a&&(d=`perspective(${a}px) ${d}`),b&&(d+=`rotate(${b}deg) `),e&&(d+=`rotateX(${e}deg) `),f&&(d+=`rotateY(${f}deg) `),g&&(d+=`skewX(${g}deg) `),h&&(d+=`skewY(${h}deg) `)}let h=a.x.scale*b.x,i=a.y.scale*b.y;return(1!==h||1!==i)&&(d+=`scale(${h}, ${i})`),d||"none"}(this.projectionDeltaWithTransform,this.treeScale,e);c&&(f=c(e,f)),a.transform=f;let{x:g,y:h}=this.projectionDelta;for(let b in a.transformOrigin=`${100*g.origin}% ${100*h.origin}% 0`,d.animationValues?a.opacity=d===this?e.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:e.opacityExit:a.opacity=d===this?void 0!==e.opacity?e.opacity:"":void 0!==e.opacityExit?e.opacityExit:0,bu){if(void 0===e[b])continue;let{correct:c,applyTo:g,isCSSVariable:h}=bu[b],i="none"===f?e[b]:c(e[b],d);if(g){let b=g.length;for(let c=0;c<b;c++)a[g[c]]=i}else h?this.options.visualElement.renderState.vars[b]=i:a[b]=i}this.options.layoutId&&(a.pointerEvents=d===this?b_(b?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(e3),this.root.sharedNodes.clear()}}}function e$(a){a.updateLayout()}function e_(a){let b=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&b&&a.hasListeners("didUpdate")){let{layoutBox:c,measuredBox:d}=a.layout,{animationType:e}=a.options,f=b.source!==a.layout.source;"size"===e?dM(a=>{let d=f?b.measuredBox[a]:b.layoutBox[a],e=dN(d);d.min=c[a].min,d.max=d.min+e}):fi(e,b.layoutBox,c)&&dM(d=>{let e=f?b.measuredBox[d]:b.layoutBox[d],g=dN(c[d]);e.max=e.min+g,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[d].max=a.relativeTarget[d].min+g)});let g=X();dP(g,c,b.layoutBox);let h=X();f?dP(h,a.applyTransform(d,!0),b.measuredBox):dP(h,c,b.layoutBox);let i=!eN(g),j=!1;if(!a.resumeFrom){let d=a.getClosestProjectingParent();if(d&&!d.resumeFrom){let{snapshot:e,layout:f}=d;if(e&&f){let g=Z();dS(g,b.layoutBox,e.layoutBox);let h=Z();dS(h,c,f.layoutBox),eQ(g,h)||(j=!0),d.options.layoutRoot&&(a.relativeTarget=h,a.relativeTargetOrigin=g,a.relativeParent=d)}}}a.notifyListeners("didUpdate",{layout:c,snapshot:b,delta:h,layoutDelta:g,hasLayoutChanged:i,hasRelativeLayoutChanged:j})}else if(a.isLead()){let{onExitComplete:b}=a.options;b&&b()}a.options.transition=void 0}function e0(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function e1(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function e2(a){a.clearSnapshot()}function e3(a){a.clearMeasurements()}function e4(a){a.isLayoutDirty=!1}function e5(a){let{visualElement:b}=a.options;b&&b.getProps().onBeforeLayoutMeasure&&b.notify("BeforeLayoutMeasure"),a.resetTransform()}function e6(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function e7(a){a.resolveTargetDelta()}function e8(a){a.calcProjection()}function e9(a){a.resetSkewAndRotation()}function fa(a){a.removeLeadSnapshot()}function fb(a,b,c){a.translate=bt(b.translate,0,c),a.scale=bt(b.scale,1,c),a.origin=b.origin,a.originPoint=b.originPoint}function fc(a,b,c,d){a.min=bt(b.min,c.min,d),a.max=bt(b.max,c.max,d)}function fd(a){return a.animationValues&&void 0!==a.animationValues.opacityExit}let fe={duration:.45,ease:[.4,0,.1,1]},ff=a=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),fg=ff("applewebkit/")&&!ff("chrome/")?Math.round:aA;function fh(a){a.min=fg(a.min),a.max=fg(a.max)}function fi(a,b,c){return"position"===a||"preserve-aspect"===a&&!(.2>=Math.abs(eR(b)-eR(c)))}function fj(a){return a!==a.root&&a.scroll?.wasRoot}let fk=eZ({attachResizeListener:(a,b)=>dV(a,"resize",b),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),fl={current:void 0},fm=eZ({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!fl.current){let a=new fk({});a.mount(window),a.setOptions({layoutScroll:!0}),fl.current=a}return fl.current},resetTransform:(a,b)=>{a.style.transform=void 0!==b?b:"none"},checkIsScrollRoot:a=>"fixed"===window.getComputedStyle(a).position});function fn(a,b){let c=dY(a),d=new AbortController;return[c,{passive:!0,...b,signal:d.signal},()=>d.abort()]}function fo(a,b,c){let{props:d}=a;a.animationState&&d.whileHover&&a.animationState.setActive("whileHover","Start"===c);let e=d["onHover"+c];e&&aE.postRender(()=>e(b,d6(b)))}class fp extends cf{mount(){let{current:a}=this.node;a&&(this.unmount=function(a,b,c={}){let[d,e,f]=fn(a,c);return d.forEach(a=>{let c,d=!1,f=!1,g=b=>{c&&(c(b),c=void 0),a.removeEventListener("pointerleave",i)},h=a=>{d=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),f&&(f=!1,g(a))},i=a=>{if("touch"!==a.pointerType){if(d){f=!0;return}g(a)}};a.addEventListener("pointerenter",d=>{if("touch"===d.pointerType||dL.x||dL.y)return;f=!1;let g=b(a,d);"function"==typeof g&&(c=g,a.addEventListener("pointerleave",i,e))},e),a.addEventListener("pointerdown",()=>{d=!0,window.addEventListener("pointerup",h,e),window.addEventListener("pointercancel",h,e)},e)}),f}(a,(a,b)=>(fo(this.node,b,"Start"),a=>fo(this.node,a,"End"))))}unmount(){}}class fq extends cf{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch(b){a=!0}a&&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=cn(dV(this.node.current,"focus",()=>this.onFocus()),dV(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var fr=c(73109);let fs=(a,b)=>!!b&&(a===b||fs(a,b.parentElement)),ft=new WeakSet;function fu(a){return b=>{"Enter"===b.key&&a(b)}}function fv(a,b){a.dispatchEvent(new PointerEvent("pointer"+b,{isPrimary:!0,bubbles:!0}))}function fw(a){return d5(a)&&!(dL.x||dL.y)}let fx=new WeakSet;function fy(a,b,c){let{props:d}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&d.whileTap&&a.animationState.setActive("whileTap","Start"===c);let e=d["onTap"+("End"===c?"":c)];e&&aE.postRender(()=>e(b,d6(b)))}class fz extends cf{mount(){let{current:a}=this.node;if(!a)return;let{globalTapTarget:b,propagate:c}=this.node.props;this.unmount=function(a,b,c={}){let[d,e,f]=fn(a,c),g=a=>{let d=a.currentTarget;if(!fw(a)||fx.has(a))return;ft.add(d),c.stopPropagation&&fx.add(a);let f=b(d,a),g=(a,b)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",i),ft.has(d)&&ft.delete(d),fw(a)&&"function"==typeof f&&f(a,{success:b})},h=a=>{g(a,d===window||d===document||c.useGlobalTarget||fs(d,a.target))},i=a=>{g(a,!1)};window.addEventListener("pointerup",h,e),window.addEventListener("pointercancel",i,e)};return d.forEach(a=>{((c.useGlobalTarget?window:a).addEventListener("pointerdown",g,e),(0,fr.s)(a))&&(a.addEventListener("focus",a=>((a,b)=>{let c=a.currentTarget;if(!c)return;let d=fu(()=>{if(ft.has(c))return;fv(c,"down");let a=fu(()=>{fv(c,"up")});c.addEventListener("keyup",a,b),c.addEventListener("blur",()=>fv(c,"cancel"),b)});c.addEventListener("keydown",d,b),c.addEventListener("blur",()=>c.removeEventListener("keydown",d),b)})(a,e)),dT.has(a.tagName)||!0===a.isContentEditable||a.hasAttribute("tabindex")||(a.tabIndex=0))}),f}(a,(a,b)=>(fy(this.node,b,"Start"),(a,{success:b})=>fy(this.node,a,b?"End":"Cancel")),{useGlobalTarget:b,stopPropagation:c?.tap===!1})}unmount(){}}let fA=new WeakMap,fB=new WeakMap,fC=a=>{let b=fA.get(a.target);b&&b(a)},fD=a=>{a.forEach(fC)},fE={some:0,all:1};class fF extends cf{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var a;let b;this.unmount();let{viewport:c={}}=this.node.getProps(),{root:d,margin:e,amount:f="some",once:g}=c,h={root:d?d.current:void 0,rootMargin:e,threshold:"number"==typeof f?f:fE[f]},i=a=>{let{isIntersecting:b}=a;if(this.isInView===b||(this.isInView=b,g&&!b&&this.hasEnteredView))return;b&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",b);let{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),e=b?c:d;e&&e(a)};return a=this.node.current,b=function({root:a,...b}){let c=a||document;fB.has(c)||fB.set(c,{});let d=fB.get(c),e=JSON.stringify(b);return d[e]||(d[e]=new IntersectionObserver(fD,{root:a,...b})),d[e]}(h),fA.set(a,i),b.observe(a),()=>{fA.delete(a),b.unobserve(a)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:a,prevProps:b}=this.node;["amount","margin","root"].some(function({viewport:a={}},{viewport:b={}}={}){return c=>a[c]!==b[c]}(a,b))&&this.startObserver()}unmount(){}}let fG=function(a,b){if("u"<typeof Proxy)return ce;let c=new Map,d=(c,d)=>ce(c,d,a,b);return new Proxy((a,b)=>d(a,b),{get:(e,f)=>"create"===f?d:(c.has(f)||c.set(f,ce(f,void 0,a,b)),c.get(f))})}({animation:{Feature:dI},exit:{Feature:dK},inView:{Feature:fF},tap:{Feature:fz},focus:{Feature:fq},hover:{Feature:fp},pan:{Feature:eq},drag:{Feature:eo,ProjectionNode:fm,MeasureLayout:ev},layout:{ProjectionNode:fm,MeasureLayout:ev}},(a,b)=>b.isSVG??bO(a)?new by(b):new bL(b,{allowProjection:a!==bM.Fragment}))},59260:(a,b,c)=>{c.d(b,{O:()=>d,r:()=>e});let d={current:null},e={current:!1}},64337:(a,b,c)=>{c.d(b,{t:()=>d});let d=(0,c(67484).createContext)(null)},65255:(a,b,c)=>{c.d(b,{A:()=>d});let d=(0,c(47408).A)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]])},69320:(a,b,c)=>{c.d(b,{Q:()=>d});let d=(0,c(67484).createContext)({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"})},73109:(a,b,c)=>{c.d(b,{s:()=>e});var d=c(2389);function e(a){return(0,d.G)(a)&&"offsetHeight"in a}},77514:(a,b,c)=>{c.d(b,{xQ:()=>f});var d=c(67484),e=c(64337);function f(a=!0){let b=(0,d.useContext)(e.t);if(null===b)return[!0,null];let{isPresent:c,onExitComplete:g,register:h}=b,i=(0,d.useId)(),j=(0,d.useCallback)(()=>a&&g&&g(i),[i,g,a]);return!c&&g?[!1,j]:[!0]}},79875:(a,b,c)=>{c.d(b,{L:()=>d});let d=(0,c(67484).createContext)({})},80600:(a,b,c)=>{c.d(b,{A:()=>d});let d=(0,c(47408).A)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},82423:(a,b,c)=>{c.d(b,{M:()=>e});var d=c(67484);function e(a){let b=(0,d.useRef)(null);return null===b.current&&(b.current=a()),b.current}},94122:(a,b,c)=>{c.d(b,{B:()=>d});let d="u">typeof window},95997:(a,b,c)=>{c.d(b,{N:()=>t});var d=c(48249),e=c(67484),f=c(79875),g=c(82423),h=c(22622),i=c(64337),j=c(73109),k=c(69320);function l(a,b){if("function"==typeof a)return a(b);null!=a&&(a.current=b)}class m extends e.Component{getSnapshotBeforeUpdate(a){let b=this.props.childRef.current;if(b&&a.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let a=b.offsetParent,c=(0,j.s)(a)&&a.offsetWidth||0,d=(0,j.s)(a)&&a.offsetHeight||0,e=this.props.sizeRef.current;e.height=b.offsetHeight||0,e.width=b.offsetWidth||0,e.top=b.offsetTop,e.left=b.offsetLeft,e.right=c-e.width-e.left,e.bottom=d-e.height-e.top}return null}componentDidUpdate(){}render(){return this.props.children}}function n({children:a,isPresent:b,anchorX:c,anchorY:f,root:g,pop:h}){let i=(0,e.useId)(),j=(0,e.useRef)(null),n=(0,e.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:o}=(0,e.useContext)(k.Q),p=function(...a){return e.useCallback(function(...a){return b=>{let c=!1,d=a.map(a=>{let d=l(a,b);return c||"function"!=typeof d||(c=!0),d});if(c)return()=>{for(let b=0;b<d.length;b++){let c=d[b];"function"==typeof c?c():l(a[b],null)}}}}(...a),a)}(j,a.props?.ref??a?.ref);return(0,e.useInsertionEffect)(()=>{let{width:a,height:d,top:e,left:k,right:l,bottom:m}=n.current;if(b||!1===h||!j.current||!a||!d)return;let p="left"===c?`left: ${k}`:`right: ${l}`,q="bottom"===f?`bottom: ${m}`:`top: ${e}`;j.current.dataset.motionPopId=i;let r=document.createElement("style");o&&(r.nonce=o);let s=g??document.head;return s.appendChild(r),r.sheet&&r.sheet.insertRule(`
2
- [data-motion-pop-id="${i}"] {
3
- position: absolute !important;
4
- width: ${a}px !important;
5
- height: ${d}px !important;
6
- ${p}px !important;
7
- ${q}px !important;
8
- }
9
- `),()=>{s.contains(r)&&s.removeChild(r)}},[b]),(0,d.jsx)(m,{isPresent:b,childRef:j,sizeRef:n,pop:h,children:!1===h?a:e.cloneElement(a,{ref:p})})}let o=({children:a,initial:b,isPresent:c,onExitComplete:f,custom:h,presenceAffectsLayout:j,mode:k,anchorX:l,anchorY:m,root:o})=>{let q=(0,g.M)(p),r=(0,e.useId)(),s=!0,t=(0,e.useMemo)(()=>(s=!1,{id:r,initial:b,isPresent:c,custom:h,onExitComplete:a=>{for(let b of(q.set(a,!0),q.values()))if(!b)return;f&&f()},register:a=>(q.set(a,!1),()=>q.delete(a))}),[c,q,f]);return j&&s&&(t={...t}),(0,e.useMemo)(()=>{q.forEach((a,b)=>q.set(b,!1))},[c]),e.useEffect(()=>{c||q.size||!f||f()},[c]),a=(0,d.jsx)(n,{pop:"popLayout"===k,isPresent:c,anchorX:l,anchorY:m,root:o,children:a}),(0,d.jsx)(i.t.Provider,{value:t,children:a})};function p(){return new Map}var q=c(77514);let r=a=>a.key||"";function s(a){let b=[];return e.Children.forEach(a,a=>{(0,e.isValidElement)(a)&&b.push(a)}),b}let t=({children:a,custom:b,initial:c=!0,onExitComplete:i,presenceAffectsLayout:j=!0,mode:k="sync",propagate:l=!1,anchorX:m="left",anchorY:n="top",root:p})=>{let[t,u]=(0,q.xQ)(l),v=(0,e.useMemo)(()=>s(a),[a]),w=l&&!t?[]:v.map(r),x=(0,e.useRef)(!0),y=(0,e.useRef)(v),z=(0,g.M)(()=>new Map),A=(0,e.useRef)(new Set),[B,C]=(0,e.useState)(v),[D,E]=(0,e.useState)(v);(0,h.E)(()=>{x.current=!1,y.current=v;for(let a=0;a<D.length;a++){let b=r(D[a]);w.includes(b)?(z.delete(b),A.current.delete(b)):!0!==z.get(b)&&z.set(b,!1)}},[D,w.length,w.join("-")]);let F=[];if(v!==B){let a=[...v];for(let b=0;b<D.length;b++){let c=D[b],d=r(c);w.includes(d)||(a.splice(b,0,c),F.push(c))}return"wait"===k&&F.length&&(a=F),E(s(a)),C(v),null}let{forceRender:G}=(0,e.useContext)(f.L);return(0,d.jsx)(d.Fragment,{children:D.map(a=>{let e=r(a),f=(!l||!!t)&&(v===D||w.includes(e));return(0,d.jsx)(o,{isPresent:f,initial:(!x.current||!!c)&&void 0,custom:b,presenceAffectsLayout:j,mode:k,root:p,onExitComplete:f?void 0:()=>{if(A.current.has(e)||(A.current.add(e),!z.has(e)))return;z.set(e,!0);let a=!0;z.forEach(b=>{b||(a=!1)}),a&&(G?.(),E(y.current),l&&u?.(),i&&i())},anchorX:m,anchorY:n,children:a},e)})})}}};
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3016],{5214:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=t(17828)},17828:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,t(64054).createAsyncLocalStorage)()},18460:(e,r,t)=>{t.d(r,{F:()=>u});var n=t(29722);let o=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=n.$,u=(e,r)=>t=>{var n;if((null==r?void 0:r.variants)==null)return a(e,null==t?void 0:t.class,null==t?void 0:t.className);let{variants:u,defaultVariants:l}=r,i=Object.keys(u).map(e=>{let r=null==t?void 0:t[e],n=null==l?void 0:l[e];if(null===r)return null;let a=o(r)||o(n);return u[e][a]}),s=t&&Object.entries(t).reduce((e,r)=>{let[t,n]=r;return void 0===n||(e[t]=n),e},{});return a(e,i,null==r||null==(n=r.compoundVariants)?void 0:n.reduce((e,r)=>{let{class:t,className:n,...o}=r;return Object.entries(o).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...l,...s}[r]):({...l,...s})[r]===t})?[...e,t,n]:e},[]),null==t?void 0:t.class,null==t?void 0:t.className)}},21172:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=t(12115);function o(e,r){let t=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=t.current;e&&(t.current=null,e());let r=o.current;r&&(o.current=null,r())}else e&&(t.current=a(e,n)),r&&(o.current=a(r,n))},[e,r])}function a(e,r){if("function"!=typeof e)return e.current=r,()=>{e.current=null};{let t=e(r);return"function"==typeof t?t:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},21957:(e,r,t)=>{function n({moduleIds:e}){return null}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return n}}),t(95155),t(47650),t(5214),t(2451),t(53887)},31887:(e,r,t)=>{t.d(r,{UC:()=>re,q7:()=>rr,ZL:()=>e8,bL:()=>e3,l9:()=>e6});var n=t(12115),o=t(70379),a=t(47527),u=t(68599),l=t(98979),i=t(47650),s=t(42442),d=t(95155),c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let t=(0,s.TL)(`Primitive.${r}`),o=n.forwardRef((e,n)=>{let{asChild:o,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(o?t:r,{...a,ref:n})});return o.displayName=`Primitive.${r}`,{...e,[r]:o}},{}),f=t(76094),p=t(1933),m=t(22138),v=t(32007),h=t(16313),w=t(89971),g=t(30945),y=t(5494),b=t(83935),x=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let t=(0,s.TL)(`Primitive.${r}`),o=n.forwardRef((e,n)=>{let{asChild:o,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(o?t:r,{...a,ref:n})});return o.displayName=`Primitive.${r}`,{...e,[r]:o}},{}),j=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let t=(0,s.TL)(`Primitive.${r}`),o=n.forwardRef((e,n)=>{let{asChild:o,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(o?t:r,{...a,ref:n})});return o.displayName=`Primitive.${r}`,{...e,[r]:o}},{}),M=t(17347),R="rovingFocusGroup.onEntryFocus",_={bubbles:!1,cancelable:!0},C="RovingFocusGroup",[P,k,D]=(0,f.N)(C),[K,O]=(0,u.A)(C,[D]),[S,A]=K(C),I=n.forwardRef((e,r)=>(0,d.jsx)(P.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(P.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(E,{...e,ref:r})})}));I.displayName=C;var E=n.forwardRef((e,r)=>{let{__scopeRovingFocusGroup:t,orientation:u,loop:i=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:m,onEntryFocus:v,preventScrollOnEntryFocus:h=!1,...w}=e,g=n.useRef(null),y=(0,a.s)(r,g),b=(0,p.jH)(s),[x,P]=(0,l.i)({prop:c,defaultProp:f??null,onChange:m,caller:C}),[D,K]=n.useState(!1),O=(0,M.c)(v),A=k(t),I=n.useRef(!1),[E,T]=n.useState(0);return n.useEffect(()=>{let e=g.current;if(e)return e.addEventListener(R,O),()=>e.removeEventListener(R,O)},[O]),(0,d.jsx)(S,{scope:t,orientation:u,dir:b,loop:i,currentTabStopId:x,onItemFocus:n.useCallback(e=>P(e),[P]),onItemShiftTab:n.useCallback(()=>K(!0),[]),onFocusableItemAdd:n.useCallback(()=>T(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>T(e=>e-1),[]),children:(0,d.jsx)(j.div,{tabIndex:D||0===E?-1:0,"data-orientation":u,...w,ref:y,style:{outline:"none",...e.style},onMouseDown:(0,o.mK)(e.onMouseDown,()=>{I.current=!0}),onFocus:(0,o.mK)(e.onFocus,e=>{let r=!I.current;if(e.target===e.currentTarget&&r&&!D){let r=new CustomEvent(R,_);if(e.currentTarget.dispatchEvent(r),!r.defaultPrevented){let e=A().filter(e=>e.focusable);F([e.find(e=>e.active),e.find(e=>e.id===x),...e].filter(Boolean).map(e=>e.ref.current),h)}}I.current=!1}),onBlur:(0,o.mK)(e.onBlur,()=>K(!1))})})}),T="RovingFocusGroupItem",N=n.forwardRef((e,r)=>{let{__scopeRovingFocusGroup:t,focusable:a=!0,active:u=!1,tabStopId:l,children:i,...s}=e,c=(0,w.B)(),f=l||c,p=A(T,t),m=p.currentTabStopId===f,v=k(t),{onFocusableItemAdd:h,onFocusableItemRemove:g,currentTabStopId:y}=p;return n.useEffect(()=>{if(a)return h(),()=>g()},[a,h,g]),(0,d.jsx)(P.ItemSlot,{scope:t,id:f,focusable:a,active:u,children:(0,d.jsx)(j.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...s,ref:r,onMouseDown:(0,o.mK)(e.onMouseDown,e=>{a?p.onItemFocus(f):e.preventDefault()}),onFocus:(0,o.mK)(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;let r=function(e,r,t){var n;let o=(n=e.key,"rtl"!==t?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===r&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===r&&["ArrowUp","ArrowDown"].includes(o)))return L[o]}(e,p.orientation,p.dir);if(void 0!==r){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===r)o.reverse();else if("prev"===r||"next"===r){var t,n;"prev"===r&&o.reverse();let a=o.indexOf(e.currentTarget);o=p.loop?(t=o,n=a+1,t.map((e,r)=>t[(n+r)%t.length])):o.slice(a+1)}setTimeout(()=>F(o))}}),children:"function"==typeof i?i({isCurrentTabStop:m,hasTabStop:null!=y}):i})})});N.displayName=T;var L={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function F(e,r=!1){let t=document.activeElement;for(let n of e)if(n===t||(n.focus({preventScroll:r}),document.activeElement!==t))return}var B=t(22954),G=t(5174),U=["Enter"," "],V=["ArrowUp","PageDown","End"],$=["ArrowDown","PageUp","Home",...V],H={ltr:[...U,"ArrowRight"],rtl:[...U,"ArrowLeft"]},z={ltr:["ArrowLeft"],rtl:["ArrowRight"]},X="Menu",[q,W,Z]=(0,f.N)(X),[Y,J]=(0,u.A)(X,[Z,g.Bk,O]),Q=(0,g.Bk)(),ee=O(),[er,et]=Y(X),[en,eo]=Y(X),ea=e=>{let{__scopeMenu:r,open:t=!1,children:o,dir:a,onOpenChange:u,modal:l=!0}=e,i=Q(r),[s,c]=n.useState(null),f=n.useRef(!1),m=(0,M.c)(u),v=(0,p.jH)(a);return n.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",r,{capture:!0,once:!0}),document.addEventListener("pointermove",r,{capture:!0,once:!0})},r=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",r,{capture:!0}),document.removeEventListener("pointermove",r,{capture:!0})}},[]),(0,d.jsx)(g.bL,{...i,children:(0,d.jsx)(er,{scope:r,open:t,onOpenChange:m,content:s,onContentChange:c,children:(0,d.jsx)(en,{scope:r,onClose:n.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:f,dir:v,modal:l,children:o})})})};ea.displayName=X;var eu=n.forwardRef((e,r)=>{let{__scopeMenu:t,...n}=e,o=Q(t);return(0,d.jsx)(g.Mz,{...o,...n,ref:r})});eu.displayName="MenuAnchor";var el="MenuPortal",[ei,es]=Y(el,{forceMount:void 0}),ed=e=>{let{__scopeMenu:r,forceMount:t,children:n,container:o}=e,a=et(el,r);return(0,d.jsx)(ei,{scope:r,forceMount:t,children:(0,d.jsx)(b.C,{present:t||a.open,children:(0,d.jsx)(y.Z,{asChild:!0,container:o,children:n})})})};ed.displayName=el;var ec="MenuContent",[ef,ep]=Y(ec),em=n.forwardRef((e,r)=>{let t=es(ec,e.__scopeMenu),{forceMount:n=t.forceMount,...o}=e,a=et(ec,e.__scopeMenu),u=eo(ec,e.__scopeMenu);return(0,d.jsx)(q.Provider,{scope:e.__scopeMenu,children:(0,d.jsx)(b.C,{present:n||a.open,children:(0,d.jsx)(q.Slot,{scope:e.__scopeMenu,children:u.modal?(0,d.jsx)(ev,{...o,ref:r}):(0,d.jsx)(eh,{...o,ref:r})})})})}),ev=n.forwardRef((e,r)=>{let t=et(ec,e.__scopeMenu),u=n.useRef(null),l=(0,a.s)(r,u);return n.useEffect(()=>{let e=u.current;if(e)return(0,B.Eq)(e)},[]),(0,d.jsx)(eg,{...e,ref:l,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)})}),eh=n.forwardRef((e,r)=>{let t=et(ec,e.__scopeMenu);return(0,d.jsx)(eg,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})}),ew=(0,s.TL)("MenuContent.ScrollLock"),eg=n.forwardRef((e,r)=>{let{__scopeMenu:t,loop:u=!1,trapFocus:l,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:f,onEscapeKeyDown:p,onPointerDownOutside:w,onFocusOutside:y,onInteractOutside:b,onDismiss:x,disableOutsideScroll:j,...M}=e,R=et(ec,t),_=eo(ec,t),C=Q(t),P=ee(t),k=W(t),[D,K]=n.useState(null),O=n.useRef(null),S=(0,a.s)(r,O,R.onContentChange),A=n.useRef(0),E=n.useRef(""),T=n.useRef(0),N=n.useRef(null),L=n.useRef("right"),F=n.useRef(0),B=j?G.A:n.Fragment;n.useEffect(()=>()=>window.clearTimeout(A.current),[]),(0,v.Oh)();let U=n.useCallback(e=>{var r,t;return L.current===N.current?.side&&(r=e,!!(t=N.current?.area)&&function(e,r){let{x:t,y:n}=e,o=!1;for(let e=0,a=r.length-1;e<r.length;a=e++){let u=r[e],l=r[a],i=u.x,s=u.y,d=l.x,c=l.y;s>n!=c>n&&t<(d-i)*(n-s)/(c-s)+i&&(o=!o)}return o}({x:r.clientX,y:r.clientY},t))},[]);return(0,d.jsx)(ef,{scope:t,searchRef:E,onItemEnter:n.useCallback(e=>{U(e)&&e.preventDefault()},[U]),onItemLeave:n.useCallback(e=>{U(e)||(O.current?.focus(),K(null))},[U]),onTriggerLeave:n.useCallback(e=>{U(e)&&e.preventDefault()},[U]),pointerGraceTimerRef:T,onPointerGraceIntentChange:n.useCallback(e=>{N.current=e},[]),children:(0,d.jsx)(B,{...j?{as:ew,allowPinchZoom:!0}:void 0,children:(0,d.jsx)(h.n,{asChild:!0,trapped:l,onMountAutoFocus:(0,o.mK)(i,e=>{e.preventDefault(),O.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,d.jsx)(m.qW,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:p,onPointerDownOutside:w,onFocusOutside:y,onInteractOutside:b,onDismiss:x,children:(0,d.jsx)(I,{asChild:!0,...P,dir:_.dir,orientation:"vertical",loop:u,currentTabStopId:D,onCurrentTabStopIdChange:K,onEntryFocus:(0,o.mK)(f,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,d.jsx)(g.UC,{role:"menu","aria-orientation":"vertical","data-state":e$(R.open),"data-radix-menu-content":"",dir:_.dir,...C,...M,ref:S,style:{outline:"none",...M.style},onKeyDown:(0,o.mK)(M.onKeyDown,e=>{let r=e.target.closest("[data-radix-menu-content]")===e.currentTarget,t=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;if(r){var o;let r,a,u,l,i,s;"Tab"===e.key&&e.preventDefault(),!t&&n&&(o=e.key,r=E.current+o,a=k().filter(e=>!e.disabled),u=document.activeElement,l=a.find(e=>e.ref.current===u)?.textValue,i=function(e,r,t){var n;let o=r.length>1&&Array.from(r).every(e=>e===r[0])?r[0]:r,a=t?e.indexOf(t):-1,u=(n=Math.max(a,0),e.map((r,t)=>e[(n+t)%e.length]));1===o.length&&(u=u.filter(e=>e!==t));let l=u.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==t?l:void 0}(a.map(e=>e.textValue),r,l),s=a.find(e=>e.textValue===i)?.ref.current,function e(r){E.current=r,window.clearTimeout(A.current),""!==r&&(A.current=window.setTimeout(()=>e(""),1e3))}(r),s&&setTimeout(()=>s.focus()))}let a=O.current;if(e.target!==a||!$.includes(e.key))return;e.preventDefault();let u=k().filter(e=>!e.disabled).map(e=>e.ref.current);V.includes(e.key)&&u.reverse(),function(e){let r=document.activeElement;for(let t of e)if(t===r||(t.focus(),document.activeElement!==r))return}(u)}),onBlur:(0,o.mK)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(A.current),E.current="")}),onPointerMove:(0,o.mK)(e.onPointerMove,eX(e=>{let r=e.target,t=F.current!==e.clientX;e.currentTarget.contains(r)&&t&&(L.current=e.clientX>F.current?"right":"left",F.current=e.clientX)}))})})})})})})});em.displayName=ec;var ey=n.forwardRef((e,r)=>{let{__scopeMenu:t,...n}=e;return(0,d.jsx)(x.div,{role:"group",...n,ref:r})});ey.displayName="MenuGroup";var eb=n.forwardRef((e,r)=>{let{__scopeMenu:t,...n}=e;return(0,d.jsx)(x.div,{...n,ref:r})});eb.displayName="MenuLabel";var ex="MenuItem",ej="menu.itemSelect",eM=n.forwardRef((e,r)=>{let{disabled:t=!1,onSelect:u,...l}=e,s=n.useRef(null),c=eo(ex,e.__scopeMenu),f=ep(ex,e.__scopeMenu),p=(0,a.s)(r,s),m=n.useRef(!1);return(0,d.jsx)(eR,{...l,ref:p,disabled:t,onClick:(0,o.mK)(e.onClick,()=>{let e=s.current;if(!t&&e){let r=new CustomEvent(ej,{bubbles:!0,cancelable:!0});e.addEventListener(ej,e=>u?.(e),{once:!0}),e&&i.flushSync(()=>e.dispatchEvent(r)),r.defaultPrevented?m.current=!1:c.onClose()}}),onPointerDown:r=>{e.onPointerDown?.(r),m.current=!0},onPointerUp:(0,o.mK)(e.onPointerUp,e=>{m.current||e.currentTarget?.click()}),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{let r=""!==f.searchRef.current;t||r&&" "===e.key||U.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eM.displayName=ex;var eR=n.forwardRef((e,r)=>{let{__scopeMenu:t,disabled:u=!1,textValue:l,...i}=e,s=ep(ex,t),c=ee(t),f=n.useRef(null),p=(0,a.s)(r,f),[m,v]=n.useState(!1),[h,w]=n.useState("");return n.useEffect(()=>{let e=f.current;e&&w((e.textContent??"").trim())},[i.children]),(0,d.jsx)(q.ItemSlot,{scope:t,disabled:u,textValue:l??h,children:(0,d.jsx)(N,{asChild:!0,...c,focusable:!u,children:(0,d.jsx)(x.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":u||void 0,"data-disabled":u?"":void 0,...i,ref:p,onPointerMove:(0,o.mK)(e.onPointerMove,eX(e=>{u?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.mK)(e.onPointerLeave,eX(e=>s.onItemLeave(e))),onFocus:(0,o.mK)(e.onFocus,()=>v(!0)),onBlur:(0,o.mK)(e.onBlur,()=>v(!1))})})})}),e_=n.forwardRef((e,r)=>{let{checked:t=!1,onCheckedChange:n,...a}=e;return(0,d.jsx)(eA,{scope:e.__scopeMenu,checked:t,children:(0,d.jsx)(eM,{role:"menuitemcheckbox","aria-checked":eH(t)?"mixed":t,...a,ref:r,"data-state":ez(t),onSelect:(0,o.mK)(a.onSelect,()=>n?.(!!eH(t)||!t),{checkForDefaultPrevented:!1})})})});e_.displayName="MenuCheckboxItem";var eC="MenuRadioGroup",[eP,ek]=Y(eC,{value:void 0,onValueChange:()=>{}}),eD=n.forwardRef((e,r)=>{let{value:t,onValueChange:n,...o}=e,a=(0,M.c)(n);return(0,d.jsx)(eP,{scope:e.__scopeMenu,value:t,onValueChange:a,children:(0,d.jsx)(ey,{...o,ref:r})})});eD.displayName=eC;var eK="MenuRadioItem",eO=n.forwardRef((e,r)=>{let{value:t,...n}=e,a=ek(eK,e.__scopeMenu),u=t===a.value;return(0,d.jsx)(eA,{scope:e.__scopeMenu,checked:u,children:(0,d.jsx)(eM,{role:"menuitemradio","aria-checked":u,...n,ref:r,"data-state":ez(u),onSelect:(0,o.mK)(n.onSelect,()=>a.onValueChange?.(t),{checkForDefaultPrevented:!1})})})});eO.displayName=eK;var eS="MenuItemIndicator",[eA,eI]=Y(eS,{checked:!1}),eE=n.forwardRef((e,r)=>{let{__scopeMenu:t,forceMount:n,...o}=e,a=eI(eS,t);return(0,d.jsx)(b.C,{present:n||eH(a.checked)||!0===a.checked,children:(0,d.jsx)(x.span,{...o,ref:r,"data-state":ez(a.checked)})})});eE.displayName=eS;var eT=n.forwardRef((e,r)=>{let{__scopeMenu:t,...n}=e;return(0,d.jsx)(x.div,{role:"separator","aria-orientation":"horizontal",...n,ref:r})});eT.displayName="MenuSeparator";var eN=n.forwardRef((e,r)=>{let{__scopeMenu:t,...n}=e,o=Q(t);return(0,d.jsx)(g.i3,{...o,...n,ref:r})});eN.displayName="MenuArrow";var[eL,eF]=Y("MenuSub"),eB="MenuSubTrigger",eG=n.forwardRef((e,r)=>{let t=et(eB,e.__scopeMenu),u=eo(eB,e.__scopeMenu),l=eF(eB,e.__scopeMenu),i=ep(eB,e.__scopeMenu),s=n.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:f}=i,p={__scopeMenu:e.__scopeMenu},m=n.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return n.useEffect(()=>m,[m]),n.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),f(null)}},[c,f]),(0,d.jsx)(eu,{asChild:!0,...p,children:(0,d.jsx)(eR,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":l.contentId,"data-state":e$(t.open),...e,ref:(0,a.t)(r,l.onTriggerChange),onClick:r=>{e.onClick?.(r),e.disabled||r.defaultPrevented||(r.currentTarget.focus(),t.open||t.onOpenChange(!0))},onPointerMove:(0,o.mK)(e.onPointerMove,eX(r=>{i.onItemEnter(r),!r.defaultPrevented&&(e.disabled||t.open||s.current||(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{t.onOpenChange(!0),m()},100)))})),onPointerLeave:(0,o.mK)(e.onPointerLeave,eX(e=>{m();let r=t.content?.getBoundingClientRect();if(r){let n=t.content?.dataset.side,o="right"===n,a=r[o?"left":"right"],u=r[o?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:a,y:r.top},{x:u,y:r.top},{x:u,y:r.bottom},{x:a,y:r.bottom}],side:n}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.mK)(e.onKeyDown,r=>{let n=""!==i.searchRef.current;e.disabled||n&&" "===r.key||H[u.dir].includes(r.key)&&(t.onOpenChange(!0),t.content?.focus(),r.preventDefault())})})})});eG.displayName=eB;var eU="MenuSubContent",eV=n.forwardRef((e,r)=>{let t=es(ec,e.__scopeMenu),{forceMount:u=t.forceMount,...l}=e,i=et(ec,e.__scopeMenu),s=eo(ec,e.__scopeMenu),c=eF(eU,e.__scopeMenu),f=n.useRef(null),p=(0,a.s)(r,f);return(0,d.jsx)(q.Provider,{scope:e.__scopeMenu,children:(0,d.jsx)(b.C,{present:u||i.open,children:(0,d.jsx)(q.Slot,{scope:e.__scopeMenu,children:(0,d.jsx)(eg,{id:c.contentId,"aria-labelledby":c.triggerId,...l,ref:p,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&f.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>{e.target!==c.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:(0,o.mK)(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{let r=e.currentTarget.contains(e.target),t=z[s.dir].includes(e.key);r&&t&&(i.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});function e$(e){return e?"open":"closed"}function eH(e){return"indeterminate"===e}function ez(e){return eH(e)?"indeterminate":e?"checked":"unchecked"}function eX(e){return r=>"mouse"===r.pointerType?e(r):void 0}eV.displayName=eU;var eq="DropdownMenu",[eW,eZ]=(0,u.A)(eq,[J]),eY=J(),[eJ,eQ]=eW(eq),e0=e=>{let{__scopeDropdownMenu:r,children:t,dir:o,open:a,defaultOpen:u,onOpenChange:i,modal:s=!0}=e,c=eY(r),f=n.useRef(null),[p,m]=(0,l.i)({prop:a,defaultProp:u??!1,onChange:i,caller:eq});return(0,d.jsx)(eJ,{scope:r,triggerId:(0,w.B)(),triggerRef:f,contentId:(0,w.B)(),open:p,onOpenChange:m,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),modal:s,children:(0,d.jsx)(ea,{...c,open:p,onOpenChange:m,dir:o,modal:s,children:t})})};e0.displayName=eq;var e1="DropdownMenuTrigger",e5=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:t,disabled:n=!1,...u}=e,l=eQ(e1,t),i=eY(t);return(0,d.jsx)(eu,{asChild:!0,...i,children:(0,d.jsx)(c.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...u,ref:(0,a.t)(r,l.triggerRef),onPointerDown:(0,o.mK)(e.onPointerDown,e=>{!n&&0===e.button&&!1===e.ctrlKey&&(l.onOpenToggle(),l.open||e.preventDefault())}),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});e5.displayName=e1;var e2=e=>{let{__scopeDropdownMenu:r,...t}=e,n=eY(r);return(0,d.jsx)(ed,{...n,...t})};e2.displayName="DropdownMenuPortal";var e7="DropdownMenuContent",e4=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:t,...a}=e,u=eQ(e7,t),l=eY(t),i=n.useRef(!1);return(0,d.jsx)(em,{id:u.contentId,"aria-labelledby":u.triggerId,...l,...a,ref:r,onCloseAutoFocus:(0,o.mK)(e.onCloseAutoFocus,e=>{i.current||u.triggerRef.current?.focus(),i.current=!1,e.preventDefault()}),onInteractOutside:(0,o.mK)(e.onInteractOutside,e=>{let r=e.detail.originalEvent,t=0===r.button&&!0===r.ctrlKey,n=2===r.button||t;(!u.modal||n)&&(i.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)"}})});e4.displayName=e7,n.forwardRef((e,r)=>{let{__scopeDropdownMenu:t,...n}=e,o=eY(t);return(0,d.jsx)(ey,{...o,...n,ref:r})}).displayName="DropdownMenuGroup",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:t,...n}=e,o=eY(t);return(0,d.jsx)(eb,{...o,...n,ref:r})}).displayName="DropdownMenuLabel";var e9=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:t,...n}=e,o=eY(t);return(0,d.jsx)(eM,{...o,...n,ref:r})});e9.displayName="DropdownMenuItem",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:t,...n}=e,o=eY(t);return(0,d.jsx)(e_,{...o,...n,ref:r})}).displayName="DropdownMenuCheckboxItem",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:t,...n}=e,o=eY(t);return(0,d.jsx)(eD,{...o,...n,ref:r})}).displayName="DropdownMenuRadioGroup",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:t,...n}=e,o=eY(t);return(0,d.jsx)(eO,{...o,...n,ref:r})}).displayName="DropdownMenuRadioItem",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:t,...n}=e,o=eY(t);return(0,d.jsx)(eE,{...o,...n,ref:r})}).displayName="DropdownMenuItemIndicator",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:t,...n}=e,o=eY(t);return(0,d.jsx)(eT,{...o,...n,ref:r})}).displayName="DropdownMenuSeparator",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:t,...n}=e,o=eY(t);return(0,d.jsx)(eN,{...o,...n,ref:r})}).displayName="DropdownMenuArrow",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:t,...n}=e,o=eY(t);return(0,d.jsx)(eG,{...o,...n,ref:r})}).displayName="DropdownMenuSubTrigger",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:t,...n}=e,o=eY(t);return(0,d.jsx)(eV,{...o,...n,ref:r,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 e3=e0,e6=e5,e8=e2,re=e4,rr=e9},37206:(e,r,t)=>{t.d(r,{default:()=>o.a});var n=t(75707),o=t.n(n)},41112:(e,r,t)=>{function n({reason:e,children:r}){return r}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return n}}),t(1980)},55711:(e,r,t)=>{t.d(r,{A:()=>n});let n=(0,t(90425).A)("undo-2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]])},60285:(e,r,t)=>{t.d(r,{A:()=>n});let n=(0,t(90425).A)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},64054:(e,r)=>{Object.defineProperty(r,"__esModule",{value:!0});var t={bindSnapshot:function(){return i},createAsyncLocalStorage:function(){return l},createSnapshot:function(){return s}};for(var n in t)Object.defineProperty(r,n,{enumerable:!0,get:t[n]});let o=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class a{disable(){throw o}getStore(){}run(){throw o}exit(){throw o}enterWith(){throw o}static bind(e){return e}}let u="u">typeof globalThis&&globalThis.AsyncLocalStorage;function l(){return u?new u:new a}function i(e){return u?u.bind(e):a.bind(e)}function s(){return u?u.snapshot():function(e,...r){return e(...r)}}},68459:(e,r,t)=>{t.d(r,{A:()=>n});let n=(0,t(90425).A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},68635:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}});let n=t(95155),o=t(12115),a=t(41112);function u(e){return{default:e&&"default"in e?e.default:e}}t(21957);let l={loader:()=>Promise.resolve(u(()=>null)),loading:null,ssr:!0},i=function(e){let r={...l,...e},t=(0,o.lazy)(()=>r.loader().then(u)),i=r.loading;function s(e){let u=i?(0,n.jsx)(i,{isLoading:!0,pastDelay:!0,error:null}):null,l=!r.ssr||!!r.loading,s=l?o.Suspense:o.Fragment,d=r.ssr?(0,n.jsxs)(n.Fragment,{children:[null,(0,n.jsx)(t,{...e})]}):(0,n.jsx)(a.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(t,{...e})});return(0,n.jsx)(s,{...l?{fallback:u}:{},children:d})}return s.displayName="LoadableComponent",s}},73321:(e,r,t)=>{var n=t(74645);t.o(n,"usePathname")&&t.d(r,{usePathname:function(){return n.usePathname}}),t.o(n,"useRouter")&&t.d(r,{useRouter:function(){return n.useRouter}}),t.o(n,"useSearchParams")&&t.d(r,{useSearchParams:function(){return n.useSearchParams}})},75707:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return o}});let n=t(73623)._(t(68635));function o(e,r){let t={};"function"==typeof e&&(t.loader=e);let o={...t,...r};return(0,n.default)({...o,modules:o.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},80723:(e,r,t)=>{t.d(r,{A:()=>n});let n=(0,t(90425).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3678],{3678:(e,t,r)=>{r.r(t),r.d(t,{default:()=>N});var o=r(95155),i=r(12115),a=r(47650),l=r(70460),n=r(53983),s=r(20727),c=r(91492),u=r(86901),d=r(48368),p=r(97810),m=r(98307),f=r(32967),k=r(37618),g=r(27413),b=r(72140),w=r(74102),x=r(82482);r(65512);var h=r(66609),v=r(74825),y=r(68822),T=r(41585),C=r(31885),I=r(13545);let A={info:{icon:y.A,label:"Info",bgLight:"#e8f4fd",bgDark:"#1a2a3a",borderColor:"#3b82f6",textLight:"#1e40af",textDark:"#93c5fd"},warning:{icon:T.A,label:"Warning",bgLight:"#fef9e7",bgDark:"#2a2514",borderColor:"#f59e0b",textLight:"#92400e",textDark:"#fcd34d"},tip:{icon:C.A,label:"Tip",bgLight:"#ecfdf5",bgDark:"#0f291e",borderColor:"#10b981",textLight:"#065f46",textDark:"#6ee7b7"},error:{icon:I.A,label:"Error",bgLight:"#fef2f2",bgDark:"#2a1414",borderColor:"#ef4444",textLight:"#991b1b",textDark:"#fca5a5"}},M=(0,n.sq)({type:"callout",propSchema:{variant:{default:"info",values:["info","warning","tip","error"]}},content:"inline"},{render:({block:e,contentRef:t,editor:r})=>{let i=e.props.variant||"info",a=A[i],l=a.icon,n="u">typeof document&&document.documentElement.classList.contains("dark");return(0,o.jsxs)("div",{className:"callout-block","data-variant":i,style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"12px 16px",borderRadius:"8px",borderLeft:`4px solid ${a.borderColor}`,backgroundColor:n?a.bgDark:a.bgLight,margin:"4px 0",position:"relative"},children:[(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flexShrink:0},children:[(0,o.jsx)("select",{value:i,onChange:t=>{r.updateBlock(e,{props:{variant:t.target.value}})},contentEditable:!1,style:{background:"transparent",border:"none",cursor:"pointer",fontSize:"0",width:"20px",height:"20px",position:"absolute",top:"12px",left:"16px",opacity:0,zIndex:2},children:Object.entries(A).map(([e,t])=>(0,o.jsx)("option",{value:e,children:t.label},e))}),(0,o.jsx)("div",{style:{color:a.borderColor,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",position:"relative",zIndex:1},title:`Click to change type (${a.label})`,children:(0,o.jsx)(l,{size:20})})]}),(0,o.jsx)("div",{ref:t,style:{flex:1,minWidth:0,color:n?a.textDark:a.textLight}})]})},toExternalHTML:({block:e,contentRef:t})=>{let r=A[e.props.variant||"info"],i=r.icon;return(0,o.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"12px 16px",borderRadius:"8px",borderLeft:`4px solid ${r.borderColor}`,backgroundColor:r.bgLight},children:[(0,o.jsx)(i,{size:20,style:{color:r.borderColor}}),(0,o.jsx)("div",{ref:t,style:{flex:1}})]})}}),j=v.B.create({blockSpecs:{...c.W,callout:M()}});var E=r(18496),F=r(89239);let S=new Map;function P(e){S.set(e.messageId,e)}function L(e){S.delete(e)}let z=[{action:"improve",label:"Improve",icon:u.A},{action:"simplify",label:"Simplify",icon:d.A},{action:"expand",label:"Expand",icon:p.A},{action:"summarize",label:"Summarize",icon:m.A},{action:"fix-grammar",label:"Fix grammar",icon:f.A}];function B({onAction:e,...t}){let r=(0,n.rm)(),i=(0,n.uw)(),a=(0,n.er)({editor:i,selector:({editor:e})=>{let{from:t,to:r}=e.prosemirrorState.selection;return t!==r}})??!1;return(0,o.jsxs)(n.PT,{...t,children:[(0,n.Db)(t.blockTypeSelectItems),(0,o.jsx)("div",{className:"mx-1 h-4 w-px bg-border"}),(0,o.jsxs)(r.Generic.Menu.Root,{position:"bottom-start",children:[(0,o.jsx)(r.Generic.Menu.Trigger,{children:(0,o.jsx)(r.FormattingToolbar.Button,{className:"bn-button",label:"Ask AI",mainTooltip:"Ask AI",isDisabled:!a,children:(0,o.jsxs)("span",{className:"flex items-center gap-1 text-xs",children:[(0,o.jsx)(u.A,{className:"h-3 w-3"}),"Ask AI"]})})}),(0,o.jsx)(r.Generic.Menu.Dropdown,{children:z.map(({action:t,label:i,icon:a})=>(0,o.jsx)(r.Generic.Menu.Item,{icon:(0,o.jsx)(a,{size:14}),onClick:()=>e(t),children:i},t))})]})]})}function D(e){let t=e.replace(/^---[\s\S]*?---/m,"").replace(/[#*_`~\[\]()>|\\-]/g," ").trim();return t?t.split(/\s+/).filter(Boolean).length:0}async function R(e,t,r){let o=await fetch("/api/ai/write",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:e,action:t,...r?{language:r}:{}})});if(!o.ok)throw Error(`AI write failed: ${o.status}`);let i=o.body?.getReader();if(!i)throw Error("No response body");let a=new TextDecoder,l="";for(;;){let{done:e,value:t}=await i.read();if(e)break;l+=a.decode(t,{stream:!0})}return l.trim()}function N({initialContent:e,filePath:t,onSave:r,onStatusChange:p,onWordCountChange:f,readOnly:v=!1}){let{resolvedTheme:y}=(0,l.D)(),T=(0,E.M)(e=>e.chatPanelOpen),C=(0,E.M)(e=>e.setChatPanelOpen),[I,A]=(0,i.useState)("idle"),M=(0,i.useRef)(null),z=(0,i.useRef)(e),N=(0,i.useRef)(t),_=(0,i.useRef)(!0),$=(0,i.useRef)(null),H=(0,i.useRef)(e),[O,V]=(0,i.useState)(null),[U,W]=(0,i.useState)(null),[q,G]=(0,i.useState)(null),[J,K]=(0,i.useState)(140),Q=(0,i.useRef)(null),[X,Y]=(0,i.useState)(null),Z=(0,i.useRef)(null),[ee,et]=(0,i.useState)(260),er=(0,i.useRef)(null),[eo,ei]=(0,i.useState)(null),ea=(0,n.Hx)({schema:j,domAttributes:{editor:{class:"clawpad-editor",style:"font-family: var(--font-geist-sans); font-size: 16px; line-height: 1.6;"}}});$.current!==ea&&($.current=ea,_.current=!0),(0,i.useEffect)(()=>{N.current=t},[t]),(0,i.useEffect)(()=>{Z.current=X},[X]);let el=(0,i.useCallback)((e,t,r=12)=>{let o=window.innerWidth-t-r;return Math.max(r,Math.min(e,o))},[]),en=(0,i.useCallback)((e,t)=>{let r=ea?._tiptapEditor;if(!r?.view||"number"!=typeof e||"number"!=typeof t)return null;try{let o=r.view.coordsAtPos(e,1),i=r.view.coordsAtPos(t,-1);return{left:o.left,bottom:i.bottom,width:Math.max(0,i.right-o.left)}}catch{return null}},[ea]),es=(0,i.useCallback)(e=>{if("u"<typeof document)return null;let t=ea.domElement;if(!t)return null;let r=t.querySelectorAll("done"===e?'[data-style-type="backgroundColor"][data-value="ai-preview-done"]':'[data-style-type="backgroundColor"][data-value="ai-preview-stream"]');if(0===r.length)return null;let o=r[0].getBoundingClientRect(),i=o.bottom;return r.forEach(e=>{let t=e.getBoundingClientRect();t.bottom>i&&(i=t.bottom)}),{left:o.left,bottom:i,width:o.width}},[ea]),ec=(0,i.useCallback)((e,t,r)=>e?{top:e.bottom+r,left:el(e.left,t)}:null,[el]),eu=(0,i.useMemo)(()=>eo?ec(eo.anchor,ee,8):null,[eo,ee,ec,8]);(0,i.useEffect)(()=>{U&&O?G(ec(U,J,8)):G(null)},[U,O,J,ec,8]),(0,i.useLayoutEffect)(()=>{O&&Q.current&&K(Q.current.getBoundingClientRect().width)},[O]),(0,i.useLayoutEffect)(()=>{eo&&er.current&&et(er.current.getBoundingClientRect().width)},[eo?.messageId]);let ed=(0,i.useCallback)(e=>{A(e),p?.(e)},[p]),ep=(0,i.useCallback)(async e=>{ed("saving");try{let t=await fetch(`/api/files/pages/${encodeURIComponent(N.current)}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:e})});if(!t.ok)throw Error(`Save failed: ${t.status}`);ed("saved"),H.current=e,r?.(e)}catch(e){console.error("Failed to save:",e),ed("error")}},[ed,r]),em=(0,i.useMemo)(()=>async e=>{let t=(0,n.HN)(ea).filter(e=>"Divider"!==e.title),r=[{title:"Ask AI",onItemClick:async()=>{let e=window.prompt("What would you like AI to write?");if(!e?.trim())return;let t=ea.getTextCursorPosition().block;try{let r=await R(e,"continue"),o=await ea.tryParseMarkdownToBlocks(r);ea.insertBlocks(o,t,"after")}catch(e){console.error("Ask AI failed:",e)}},aliases:["ai","ask","prompt","generate"],group:"AI",icon:(0,o.jsx)(u.A,{size:18}),key:"ask_ai"},{title:"Extract Tasks",onItemClick:async()=>{let e=ea.document,t=await ea.blocksToMarkdownLossy(e);if(!t.trim())return;let r=ea.getTextCursorPosition().block;try{let e=(await R(t,"summarize")).split("\n").map(e=>e.replace(/^[-*•]\s*/,"").trim()).filter(Boolean).map(e=>({type:"checkListItem",props:{checked:!1},content:[{type:"text",text:e,styles:{}}]}));e.length>0&&ea.insertBlocks(e,r,"after")}catch(e){console.error("Extract tasks failed:",e)}},aliases:["tasks","todo","checklist","extract"],group:"AI",icon:(0,o.jsx)(m.A,{size:18}),key:"extract_tasks"},{title:"Improve Writing",onItemClick:async()=>{let e=ea.getTextCursorPosition().block,t=await ea.blocksToMarkdownLossy([e]);if(t.trim())try{let r=await R(t,"improve"),o=await ea.tryParseMarkdownToBlocks(r);ea.replaceBlocks([e],o)}catch(e){console.error("Improve writing failed:",e)}},aliases:["improve","rewrite","better"],group:"AI",icon:(0,o.jsx)(k.A,{size:18}),key:"improve_writing"},{title:"Summarize",onItemClick:async()=>{let e=ea.document,t=await ea.blocksToMarkdownLossy(e);if(!t.trim())return;let r=ea.getTextCursorPosition().block;try{let e=await R(t,"summarize"),o=await ea.tryParseMarkdownToBlocks(e);ea.insertBlocks(o,r,"after")}catch(e){console.error("Summarize failed:",e)}},aliases:["summarize","summary","tldr"],group:"AI",icon:(0,o.jsx)(d.A,{size:18}),key:"summarize"},{title:"Translate",onItemClick:async()=>{let e=window.prompt("Translate to which language?","Arabic");if(!e?.trim())return;let t=ea.getTextCursorPosition().block,r=await ea.blocksToMarkdownLossy([t]);if(r.trim())try{let o=await R(r,"translate",e),i=await ea.tryParseMarkdownToBlocks(o);ea.insertBlocks(i,t,"after")}catch(e){console.error("Translate failed:",e)}},aliases:["translate","language","arabic","english"],group:"AI",icon:(0,o.jsx)(g.A,{size:18}),key:"translate"},{title:"Daily Note",onItemClick:()=>{let e=new Date().toISOString().split("T")[0],t=ea.getTextCursorPosition().block;ea.insertBlocks([{type:"heading",props:{level:2},content:[{type:"text",text:e,styles:{}}]}],t,"after")},aliases:["daily","date","today","note"],group:"Insert",icon:(0,o.jsx)(b.A,{size:18}),key:"daily_note"},{title:"Callout",onItemClick:()=>{let e=ea.getTextCursorPosition().block;ea.insertBlocks([{type:"callout",props:{variant:"info"},content:[{type:"text",text:"Type your callout text here…",styles:{}}]}],e,"after")},aliases:["callout","info","warning","tip","note","admonition"],group:"Insert",icon:(0,o.jsx)(w.A,{size:18}),key:"callout"},{title:"Divider",onItemClick:()=>{let e=ea.getTextCursorPosition().block;ea.insertBlocks([{type:"divider"}],e,"after")},aliases:["divider","hr","line","separator","rule"],group:"Insert",icon:(0,o.jsx)(x.A,{size:18}),key:"divider"}];return(0,c.ac)([...r,...t],e)},[ea]);(0,i.useEffect)(()=>{let t=!1;return(async()=>{let r=ea.blocksToMarkdownLossy(ea.document),o=r.trim().length>0,i=o&&r!==H.current,a=r!==e&&(!i||!o);a&&(_.current=!0);try{if(a){let r=await ea.tryParseMarkdownToBlocks(e.trim()?e:" ");t||ea.replaceBlocks(ea.document,r)}}catch(e){console.error("Failed to parse markdown:",e)}finally{requestAnimationFrame(()=>{if(t)return;let r=a?e:ea.blocksToMarkdownLossy(ea.document);z.current=r,a&&(H.current=e),f?.(D(r)),_.current=!1})}})(),()=>{t=!0}},[ea,e,f]);let ef=(0,i.useCallback)(()=>{if(v)return;let e=ea.blocksToMarkdownLossy(ea.document);if(z.current=e,f?.(D(e)),!_.current){if(e===H.current)return void ed("saved");ed("unsaved"),M.current&&clearTimeout(M.current),M.current=setTimeout(()=>ep(e),1e3)}},[ea,v,ed,ep,f]);(0,i.useEffect)(()=>()=>{M.current&&(clearTimeout(M.current),"unsaved"===I&&ep(z.current))},[]),(0,i.useEffect)(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&"s"===e.key&&(e.preventDefault(),M.current&&clearTimeout(M.current),ep(z.current))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[ep]);let ek=(0,i.useCallback)(()=>{let e=ea.getSelection();return e?.blocks?e.blocks.map(e=>e.id):[]},[ea]),eg=(0,i.useCallback)((e,t)=>{let r=e?.state?.schema?.marks;if(!r)return null;let o=r.backgroundColor??r.highlight??r.textStyle;if(!o)return null;let i=o.spec?.attrs??{};return"stringValue"in i?o.create({stringValue:t}):"backgroundColor"in i?o.create({backgroundColor:t}):"color"in i?o.create({color:t}):o.create()},[]),eb=(0,i.useCallback)((e,t)=>{let r=e?.state?.schema?.marks;if(!r)return null;let o=r.textColor??r.textStyle;if(!o)return null;let i=o.spec?.attrs??{};return"stringValue"in i?o.create({stringValue:t}):"color"in i?o.create({color:t}):o.create()},[]),ew=(0,i.useCallback)((e,t,r,o)=>{let i=eg(e,"ai-preview-strike"),a=eg(e,"ai-preview-stream"),l=eg(e,"ai-preview-done");i&&t.removeMark(r,o,i),a&&t.removeMark(r,o,a),l&&t.removeMark(r,o,l);let n=eb(e,"ai-preview-strike");n&&t.removeMark(r,o,n)},[eg,eb]),ex=(0,i.useCallback)((e,t)=>{let r=e?.state?.storedMarks;if(!e||!r||0===r.length)return;let o=r.filter(e=>e.type?.name!=="strike"&&e.attrs?.backgroundColor!=="var(--cp-ai-preview-strike)"&&e.attrs?.backgroundColor!=="var(--cp-ai-preview-stream)"&&e.attrs?.backgroundColor!=="var(--cp-ai-preview-done)"&&e.attrs?.color!=="var(--cp-ai-preview-strike-text)"&&e.attrs?.stringValue!=="ai-preview-strike"&&e.attrs?.stringValue!=="ai-preview-stream"&&e.attrs?.stringValue!=="ai-preview-done"&&!0);if(o.length===r.length)return;if(t)return void t.setStoredMarks(o);let i=e.state.tr;i.setStoredMarks(o),i.setMeta("addToHistory",!1),e.view.dispatch(i)},[]),eh=(0,i.useCallback)((e,t,r)=>{let o=ea?._tiptapEditor;if(!o||e===t)return;let i=o.state.tr,a=o.state.schema.marks.strike;if(r){a&&i.addMark(e,t,a.create());let r=eg(o,"ai-preview-strike");r&&i.addMark(e,t,r);let l=eb(o,"ai-preview-strike");l&&i.addMark(e,t,l)}else a&&i.removeMark(e,t,a),ew(o,i,e,t);i.setMeta("addToHistory",!1),o.view.dispatch(i)},[ea,eg,eb,ew]),ev=(0,i.useCallback)((e,t,r="streaming")=>{let o=ea?._tiptapEditor;if(!o)return e;let i=o.state.tr;if(i.insertText(t,e.previewFrom,e.previewTo),t){let a=eg(o,"done"===r?"ai-preview-done":"ai-preview-stream");a&&i.addMark(e.previewFrom,e.previewFrom+t.length,a);let l=o.state.schema.marks.strike;l&&i.removeMark(e.previewFrom,e.previewFrom+t.length,l)}return i.setMeta("addToHistory",!1),o.view.dispatch(i),{...e,previewTo:e.previewFrom+t.length}},[ea,eg]),ey=(0,i.useCallback)(e=>{if(!X)return;let t=ea?._tiptapEditor;if(!t)return;let r=t.state.tr;if(X.previewFrom!==X.previewTo&&r.delete(X.previewFrom,X.previewTo),e?.removeStrike){ew(t,r,X.from,X.to);let e=t.state.schema.marks.strike;e&&r.removeMark(X.from,X.to,e)}ex(t,r),r.setMeta("addToHistory",!1),t.view.dispatch(r),Y(null)},[X,ea,ew,ex]),eT=(0,i.useCallback)(e=>{if(v)return;let t=crypto.randomUUID(),r=ek(),o=ea?._tiptapEditor,i="number"==typeof o?.state?.selection?.from?o.state.selection.from:void 0,a="number"==typeof o?.state?.selection?.to?o.state.selection.to:void 0;if("number"!=typeof i||"number"!=typeof a||i===a)return void h.oR.error("Select text to use AI");let l=("function"==typeof o?.state?.doc?.textBetween?o.state.doc.textBetween(i,a,"\n"):"").trim();if(!l)return void h.oR.error("Select text to use AI");let n=en(i,a);P({messageId:t,pagePath:N.current,action:e,selectionText:l,blockIds:r,selectionFrom:i,selectionTo:a,anchor:n??void 0,createdAt:Date.now()}),ei(null),V("loading"),W(n??null),Y({messageId:t,from:i,to:a,previewFrom:a,previewTo:a}),eh(i,a,!0),T||C(!0),window.dispatchEvent(new CustomEvent("clawpad:ai-action",{detail:{messageId:t,action:e,selection:l,pagePath:N.current}}))},[v,ek,T,C,ea,eh,en]);(0,i.useEffect)(()=>{let e=e=>{let t=e.detail?.messageId,r=e.detail?.text??"";if(!t)return;let o=S.get(t);if(!o||o.pagePath&&o.pagePath!==N.current)return;let i=o.anchor??("number"==typeof o.selectionFrom&&"number"==typeof o.selectionTo?en(o.selectionFrom,o.selectionTo):null);V("streaming"),W(i??null);let a=Z.current,l=a;a&&a.messageId===t||"number"!=typeof o.selectionFrom||"number"!=typeof o.selectionTo||(l={messageId:t,from:o.selectionFrom,to:o.selectionTo,previewFrom:o.selectionTo,previewTo:o.selectionTo},eh(o.selectionFrom,o.selectionTo,!0)),l&&Y(ev(l,r,"streaming"))};return window.addEventListener("clawpad:ai-stream",e),()=>window.removeEventListener("clawpad:ai-stream",e)},[eh,ev,en,es]),(0,i.useEffect)(()=>{let e=e=>{let t=e.detail?.messageId,r=e.detail?.text;if(!t||!r?.trim())return;let o=S.get(t);if(!o)return;if(o.pagePath&&o.pagePath!==N.current)return void L(t);let i=o.anchor??("number"==typeof o.selectionFrom&&"number"==typeof o.selectionTo?en(o.selectionFrom,o.selectionTo):null);V("done"),W(i??null);let a=r.trim(),l=Z.current,n=l;l&&l.messageId===t||"number"!=typeof o.selectionFrom||"number"!=typeof o.selectionTo||(n={messageId:t,from:o.selectionFrom,to:o.selectionTo,previewFrom:o.selectionTo,previewTo:o.selectionTo},eh(o.selectionFrom,o.selectionTo,!0));let s=n;n&&Y(s=ev(n,a,"done"));let c=(s?en(s.previewFrom,s.previewTo):null)??i??{left:0,bottom:0};ei({messageId:t,text:r.trim(),action:o.action,selectionText:o.selectionText,blockIds:o.blockIds,selectionFrom:o.selectionFrom,selectionTo:o.selectionTo,anchor:c}),requestAnimationFrame(()=>{let e=es("done");e&&ei(r=>r&&r.messageId===t?{...r,anchor:e}:r)})};return window.addEventListener("clawpad:ai-result",e),()=>window.removeEventListener("clawpad:ai-result",e)},[eh,ev,en]);let eC=(0,i.useCallback)(e=>{let t=r=>{for(let o of r){if(o?.id===e)return o;if(Array.isArray(o?.children)){let e=t(o.children);if(e)return e}}return null};return t(ea.document)},[ea]),eI=(0,i.useCallback)(()=>{if(!eo)return;let e=ea?._tiptapEditor,t=X?.from??eo.selectionFrom,r=X?.to??eo.selectionTo;if(!e||"number"!=typeof t||"number"!=typeof r)return void h.oR.error("Could not apply AI result: selection unavailable");let o=e.state.doc.textBetween(t,r,"\n").trim(),i=eo.selectionText.trim();if(i&&o!==i)return void h.oR.error("Could not apply AI result: selection changed");let a=e.state.tr;X&&X.previewFrom!==X.previewTo&&a.delete(X.previewFrom,X.previewTo),ew(e,a,t,r);let l=e.state.schema.marks.strike;l&&a.removeMark(t,r,l);let n=a.mapping.map(t),s=a.mapping.map(r);ex(e,a),a.insertText(eo.text,n,s),e.view.dispatch(a),L(eo.messageId),Y(null),V(null),W(null),ei(null)},[eo,ea,X,ew,ex]),eA=(0,i.useCallback)(async()=>{if(!eo)return;let e=eo.blockIds[eo.blockIds.length-1];if(!e)return void h.oR.error("Could not insert: no target block");let t=eC(e);if(!t)return void h.oR.error("Could not insert: target block missing");try{let e=await ea.tryParseMarkdownToBlocks(eo.text.trim());ey({removeStrike:!0}),ea.insertBlocks(e,t,"after"),L(eo.messageId),V(null),W(null),ei(null)}catch(e){console.error("Failed to insert AI result:",e),h.oR.error("Could not insert AI result")}},[eo,ea,eC,ey]),eM=(0,i.useCallback)(()=>{if(!eo)return;ey({removeStrike:!0}),L(eo.messageId);let e=crypto.randomUUID();P({messageId:e,pagePath:N.current,action:eo.action,selectionText:eo.selectionText,blockIds:eo.blockIds,selectionFrom:eo.selectionFrom,selectionTo:eo.selectionTo,anchor:eo.anchor,createdAt:Date.now()}),T||C(!0),window.dispatchEvent(new CustomEvent("clawpad:ai-action",{detail:{messageId:e,action:eo.action,selection:eo.selectionText,pagePath:N.current}})),V("loading"),W(eo.anchor),"number"==typeof eo.selectionFrom&&"number"==typeof eo.selectionTo&&(Y({messageId:e,from:eo.selectionFrom,to:eo.selectionTo,previewFrom:eo.selectionTo,previewTo:eo.selectionTo}),eh(eo.selectionFrom,eo.selectionTo,!0)),ei(null)},[eo,T,C,ey,eh]),ej=(0,i.useCallback)(()=>{eo&&(ey({removeStrike:!0}),L(eo.messageId),V(null),W(null),ei(null))},[eo,ey]),eE="u">typeof document?document.documentElement:null,eF=O&&"done"!==O&&q?(0,o.jsxs)("div",{ref:Q,className:"fixed z-50 flex items-center gap-2 rounded-full border bg-popover px-2 py-1 text-xs text-muted-foreground shadow-sm ai-preview-loading",style:{position:"fixed",top:q.top,left:q.left},children:[(0,o.jsx)("span",{className:"ai-preview-spinner"}),"loading"===O?"Thinking…":"Streaming…"]}):null,eS=eo&&eu?(0,o.jsxs)("div",{ref:er,className:"fixed z-50 flex flex-wrap gap-1 rounded-lg border bg-popover p-1 shadow-lg ai-preview-menu",style:{position:"fixed",top:eu.top,left:eu.left},children:[(0,o.jsx)(F.$,{size:"sm",className:"h-7 px-2 text-xs",onClick:eI,children:"Replace selection"}),(0,o.jsx)(F.$,{size:"sm",variant:"secondary",className:"h-7 px-2 text-xs",onClick:eA,children:"Insert below"}),(0,o.jsx)(F.$,{size:"sm",variant:"ghost",className:"h-7 px-2 text-xs",onClick:eM,children:"Try again"}),(0,o.jsx)(F.$,{size:"sm",variant:"ghost",className:"h-7 px-2 text-xs",onClick:ej,children:"Discard"})]}):null;return(0,o.jsxs)("div",{className:"clawpad-editor-wrapper",children:[(0,o.jsxs)(s.NP,{editor:ea,editable:!v,onChange:ef,theme:"dark"===y?"dark":"light","data-theming-css-variables-demo":!0,slashMenu:!1,formattingToolbar:!1,children:[(0,o.jsx)(n.ge,{triggerCharacter:"/",getItems:em}),(0,o.jsx)(n.T9,{formattingToolbar:e=>(0,o.jsx)(B,{...e,onAction:eT})})]}),eE?(0,a.createPortal)(eF,eE):eF,eE?(0,a.createPortal)(eS,eE):eS]})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5488],{1933:(e,t,n)=>{n.d(t,{jH:()=>i});var r=n(12115);n(95155);var o=r.createContext(void 0);function i(e){let t=r.useContext(o);return e||t||"ltr"}},5174:(e,t,n)=>{n.d(t,{A:()=>G});var r,o,i,a,u,c,l,s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function f(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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var d=("function"==typeof SuppressedError&&SuppressedError,n(12115)),h="right-scroll-bar-position",p="width-before-scroll-bar";function v(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var m="u">typeof window?d.useLayoutEffect:d.useEffect,y=new WeakMap,g=(void 0===r&&(r={}),(void 0===o&&(o=function(e){return e}),i=[],a=!1,u={read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:null},useMedium:function(e){var t=o(e,a);return i.push(t),function(){i=i.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;i.length;){var t=i;i=[],t.forEach(e)}i={push:function(t){return e(t)},filter:function(){return i}}},assignMedium:function(e){a=!0;var t=[];if(i.length){var n=i;i=[],n.forEach(e),t=i}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),i={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),i}}}}).options=s({async:!0,ssr:!1},r),u),w=function(){},b=d.forwardRef(function(e,t){var n,r,o,i,a=d.useRef(null),u=d.useState({onScrollCapture:w,onWheelCapture:w,onTouchMoveCapture:w}),c=u[0],l=u[1],h=e.forwardProps,p=e.children,b=e.className,E=e.removeScrollBar,k=e.enabled,S=e.shards,A=e.sideCar,R=e.noRelative,x=e.noIsolation,C=e.inert,M=e.allowPinchZoom,N=e.as,T=e.gapMode,L=f(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=(n=[a,t],r=function(e){return n.forEach(function(t){return v(t,e)})},(o=(0,d.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,i=o.facade,m(function(){var e=y.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||v(e,null)}),r.forEach(function(e){t.has(e)||v(e,o)})}y.set(i,n)},[n]),i),P=s(s({},L),c);return d.createElement(d.Fragment,null,k&&d.createElement(A,{sideCar:g,removeScrollBar:E,shards:S,noRelative:R,noIsolation:x,inert:C,setCallbacks:l,allowPinchZoom:!!M,lockRef:a,gapMode:T}),h?d.cloneElement(d.Children.only(p),s(s({},P),{ref:O})):d.createElement(void 0===N?"div":N,s({},P,{className:b,ref:O}),p))});b.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},b.classNames={fullWidth:p,zeroRight:h};var E=function(e){var t=e.sideCar,n=f(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 d.createElement(r,s({},n))};E.isSideCarExport=!0;var k=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=l||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,i;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},S=function(){var e=k();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},A=function(){var e=S();return function(t){return e(t.styles,t.dynamic),null}},R={left:0,top:0,right:0,gap:0},x=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"],o=t["padding"===e?"paddingRight":"marginRight"];return[x(n),x(r),x(o)]},M=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return R;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])}},N=A(),T="data-scroll-locked",L=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body[").concat(T,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(h," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(p," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(h," .").concat(h," {\n right: 0 ").concat(r,";\n }\n \n .").concat(p," .").concat(p," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(T,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},O=function(){var e=parseInt(document.body.getAttribute(T)||"0",10);return isFinite(e)?e:0},P=function(){d.useEffect(function(){return document.body.setAttribute(T,(O()+1).toString()),function(){var e=O()-1;e<=0?document.body.removeAttribute(T):document.body.setAttribute(T,e.toString())}},[])},I=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;P();var i=d.useMemo(function(){return M(o)},[o]);return d.createElement(N,{styles:L(i,!t,o,n?"":"!important")})},F=!1;if("u">typeof window)try{var W=Object.defineProperty({},"passive",{get:function(){return F=!0,!0}});window.addEventListener("test",W,W),window.removeEventListener("test",W,W)}catch(e){F=!1}var j=!!F&&{passive:!1},z=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])},D=function(e,t){var n=t.ownerDocument,r=t;do{if("u">typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),B(e,r)){var o=_(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},B=function(e,t){return"v"===e?z(t,"overflowY"):z(t,"overflowX")},_=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},K=function(e,t,n,r,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),u=a*r,c=n.target,l=t.contains(c),s=!1,f=u>0,d=0,h=0;do{if(!c)break;var p=_(e,c),v=p[0],m=p[1]-p[2]-a*v;(v||m)&&B(e,c)&&(d+=m,h+=v);var y=c.parentNode;c=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return f&&(o&&1>Math.abs(d)||!o&&u>d)?s=!0:!f&&(o&&1>Math.abs(h)||!o&&-u>h)&&(s=!0),s},X=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Y=function(e){return[e.deltaX,e.deltaY]},q=function(e){return e&&"current"in e?e.current:e},H=0,U=[];let Z=(c=function(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(H++)[0],i=d.useState(A)[0],a=d.useRef(e);d.useEffect(function(){a.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(q),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=d.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=X(e),u=n.current,c="deltaX"in e?e.deltaX:u[0]-i[0],l="deltaY"in e?e.deltaY:u[1]-i[1],s=e.target,f=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===f&&"range"===s.type)return!1;var d=window.getSelection(),h=d&&d.anchorNode;if(h&&(h===s||h.contains(s)))return!1;var p=D(f,s);if(!p)return!0;if(p?o=f:(o="v"===f?"h":"v",p=D(f,s)),!p)return!1;if(!r.current&&"changedTouches"in e&&(c||l)&&(r.current=o),!o)return!0;var v=r.current||o;return K(v,t,e,"h"===v?c:l,!0)},[]),c=d.useCallback(function(e){if(U.length&&U[U.length-1]===i){var n="deltaY"in e?Y(e):X(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 o=(a.current.shards||[]).map(q).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),l=d.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,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(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),s=d.useCallback(function(e){n.current=X(e),r.current=void 0},[]),f=d.useCallback(function(t){l(t.type,Y(t),t.target,u(t,e.lockRef.current))},[]),h=d.useCallback(function(t){l(t.type,X(t),t.target,u(t,e.lockRef.current))},[]);d.useEffect(function(){return U.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",c,j),document.addEventListener("touchmove",c,j),document.addEventListener("touchstart",s,j),function(){U=U.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,j),document.removeEventListener("touchmove",c,j),document.removeEventListener("touchstart",s,j)}},[]);var p=e.removeScrollBar,v=e.inert;return d.createElement(d.Fragment,null,v?d.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,p?d.createElement(I,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},g.useMedium(c),E);var $=d.forwardRef(function(e,t){return d.createElement(b,s({},e,{ref:t,sideCar:Z}))});$.classNames=b.classNames;let G=$},16313:(e,t,n)=>{let r;n.d(t,{n:()=>h});var o=n(12115),i=n(47527);n(47650);var a=n(42442),u=n(95155),c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,a.TL)(`Primitive.${t}`),r=o.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(o?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),l=n(17347),s="focusScope.autoFocusOnMount",f="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},h=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:h,...g}=e,[w,b]=o.useState(null),E=(0,l.c)(a),k=(0,l.c)(h),S=o.useRef(null),A=(0,i.s)(t,e=>b(e)),R=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(R.paused||!w)return;let t=e.target;w.contains(t)?S.current=t:m(S.current,{select:!0})},t=function(e){if(R.paused||!w)return;let t=e.relatedTarget;null!==t&&(w.contains(t)||m(S.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&&m(w)});return w&&n.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,w,R.paused]),o.useEffect(()=>{if(w){y.add(R);let e=document.activeElement;if(!w.contains(e)){let t=new CustomEvent(s,d);w.addEventListener(s,E),w.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(m(r,{select:t}),document.activeElement!==n)return}(p(w).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(w))}return()=>{w.removeEventListener(s,E),setTimeout(()=>{let t=new CustomEvent(f,d);w.addEventListener(f,k),w.dispatchEvent(t),t.defaultPrevented||m(e??document.body,{select:!0}),w.removeEventListener(f,k),y.remove(R)},0)}}},[w,E,k,R]);let x=o.useCallback(e=>{if(!n&&!r||R.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){var i;let t,r=e.currentTarget,[a,u]=[v(t=p(i=r),i),v(t.reverse(),i)];a&&u?e.shiftKey||o!==u?e.shiftKey&&o===a&&(e.preventDefault(),n&&m(u,{select:!0})):(e.preventDefault(),n&&m(a,{select:!0})):o===r&&e.preventDefault()}},[n,r,R.paused]);return(0,u.jsx)(c.div,{tabIndex:-1,...g,ref:A,onKeyDown:x})});function p(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 v(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function m(e,{select:t=!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()}}h.displayName="FocusScope";var y=(r=[],{add(e){let t=r[0];e!==t&&t?.pause(),(r=g(r,e)).unshift(e)},remove(e){r=g(r,e),r[0]?.resume()}});function g(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},22954:(e,t,n)=>{n.d(t,{Eq:()=>l});var r=new WeakMap,o=new WeakMap,i={},a=0,u=function(e){return e&&(e.host||u(e.parentNode))},c=function(e,t,n,c){var l=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=u(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});i[n]||(i[n]=new WeakMap);var s=i[n],f=[],d=new Set,h=new Set(l),p=function(e){!e||d.has(e)||(d.add(e),p(e.parentNode))};l.forEach(p);var v=function(e){!e||h.has(e)||Array.prototype.forEach.call(e.children,function(e){if(d.has(e))v(e);else try{var t=e.getAttribute(c),i=null!==t&&"false"!==t,a=(r.get(e)||0)+1,u=(s.get(e)||0)+1;r.set(e,a),s.set(e,u),f.push(e),1===a&&i&&o.set(e,!0),1===u&&e.setAttribute(n,"true"),i||e.setAttribute(c,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return v(t),d.clear(),a++,function(){f.forEach(function(e){var t=r.get(e)-1,i=s.get(e)-1;r.set(e,t),s.set(e,i),t||(o.has(e)||e.removeAttribute(c),o.delete(e)),i||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,o=new WeakMap,i={})}},l=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),c(r,o,n,"aria-hidden")):function(){return null}}},32007:(e,t,n)=>{n.d(t,{Oh:()=>i});var r=n(12115),o=0;function i(){r.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??a()),document.body.insertAdjacentElement("beforeend",e[1]??a()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}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}},76094:(e,t,n)=>{n.d(t,{N:()=>c});var r=n(12115),o=n(68599),i=n(47527),a=n(42442),u=n(95155);function c(e){let t=e+"CollectionProvider",[n,c]=(0,o.A)(t),[l,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),f=e=>{let{scope:t,children:n}=e,o=r.useRef(null),i=r.useRef(new Map).current;return(0,u.jsx)(l,{scope:t,itemMap:i,collectionRef:o,children:n})};f.displayName=t;let d=e+"CollectionSlot",h=(0,a.TL)(d),p=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=s(d,n),a=(0,i.s)(t,o.collectionRef);return(0,u.jsx)(h,{ref:a,children:r})});p.displayName=d;let v=e+"CollectionItemSlot",m="data-radix-collection-item",y=(0,a.TL)(v),g=r.forwardRef((e,t)=>{let{scope:n,children:o,...a}=e,c=r.useRef(null),l=(0,i.s)(t,c),f=s(v,n);return r.useEffect(()=>(f.itemMap.set(c,{ref:c,...a}),()=>void f.itemMap.delete(c))),(0,u.jsx)(y,{...{[m]:""},ref:l,children:o})});return g.displayName=v,[{Provider:f,Slot:p,ItemSlot:g},function(t){let n=s(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},c]}var l=new WeakMap;function s(e,t){var n,r;let o,i,a;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let u=(n=e,r=t,o=n.length,(a=(i=f(r))>=0?i:o+i)<0||a>=o?-1:a);return -1===u?void 0:e[u]}function f(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],l.set(this,!0)}set(e,t){return l.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r,o=this.has(t),i=this.#e.length,a=f(e),u=a>=0?a:i+a,c=u<0||u>=i?-1:u;if(c===this.size||o&&c===this.size-1||-1===c)return this.set(t,n),this;let l=this.size+ +!o;a<0&&u++;let s=[...this.#e],d=!1;for(let e=u;e<l;e++)if(u===e){let i=s[e];s[e]===t&&(i=s[e+1]),o&&this.delete(t),r=this.get(i),this.set(t,n)}else{d||s[e-1]!==t||(d=!0);let n=s[d?e:e-1],o=r;r=this.get(n),this.delete(n),this.set(n,o)}return this}with(t,n,r){let o=new e(this);return o.insert(t,n,r),o}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=s(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=s(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return s(this.#e,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=[],o=0;for(let e of this)Reflect.apply(t,n,[e,o,this])&&r.push(e),o++;return new e(r)}map(t,n){let r=[],o=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,o,this])]),o++;return new e(r)}reduce(...e){let[t,n]=e,r=0,o=n??this.at(0);for(let n of this)o=0===r&&1===e.length?n:Reflect.apply(t,this,[o,n,r,this]),r++;return o}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let o=this.at(n);r=n===this.size-1&&1===e.length?o:Reflect.apply(t,this,[r,o,n,this])}return r}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(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,o=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(o=n-1);for(let e=t;e<=o;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}})}}]);