@epic-web/workshop-app 4.19.1 → 4.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/build/client/assets/{_-DYArYM0Z.js → _-Dfo2h4rl.js} +2 -2
  2. package/build/client/assets/{_-DYArYM0Z.js.map → _-Dfo2h4rl.js.map} +1 -1
  3. package/build/client/assets/{_exerciseNumber-BLQUCLPr.js → _exerciseNumber-CfKoF9W0.js} +2 -2
  4. package/build/client/assets/{_exerciseNumber-BLQUCLPr.js.map → _exerciseNumber-CfKoF9W0.js.map} +1 -1
  5. package/build/client/assets/{_exerciseNumber_._stepNumber-Ct5BCuA1.js → _exerciseNumber_._stepNumber-DpAxO0AM.js} +2 -2
  6. package/build/client/assets/{_exerciseNumber_._stepNumber-Ct5BCuA1.js.map → _exerciseNumber_._stepNumber-DpAxO0AM.js.map} +1 -1
  7. package/build/client/assets/{_exerciseNumber_.finished-C9TSc48F.js → _exerciseNumber_.finished-czQBjiVF.js} +2 -2
  8. package/build/client/assets/{_exerciseNumber_.finished-C9TSc48F.js.map → _exerciseNumber_.finished-czQBjiVF.js.map} +1 -1
  9. package/build/client/assets/{_layout-DLIzcS5v.js → _layout-BUs3av-e.js} +2 -2
  10. package/build/client/assets/{_layout-DLIzcS5v.js.map → _layout-BUs3av-e.js.map} +1 -1
  11. package/build/client/assets/{_layout-CZ3fjUvs.js → _layout-BrGbNrqb.js} +2 -2
  12. package/build/client/assets/{_layout-CZ3fjUvs.js.map → _layout-BrGbNrqb.js.map} +1 -1
  13. package/build/client/assets/{_layout-DhP5RhPk.js → _layout-DBCEqk3b.js} +2 -2
  14. package/build/client/assets/{_layout-DhP5RhPk.js.map → _layout-DBCEqk3b.js.map} +1 -1
  15. package/build/client/assets/_layout-IOROGN78.js +6 -0
  16. package/build/client/assets/_layout-IOROGN78.js.map +1 -0
  17. package/build/client/assets/{account-LnI_Eq0t.js → account-CQNVYlpT.js} +2 -2
  18. package/build/client/assets/{account-LnI_Eq0t.js.map → account-CQNVYlpT.js.map} +1 -1
  19. package/build/client/assets/{button-BA3iiLRs.js → button-DcWUKEqR.js} +2 -2
  20. package/build/client/assets/{button-BA3iiLRs.js.map → button-DcWUKEqR.js.map} +1 -1
  21. package/build/client/assets/{client-hints-DLYDs4RF.js → client-hints-DWL_Mq1C.js} +2 -2
  22. package/build/client/assets/{client-hints-DLYDs4RF.js.map → client-hints-DWL_Mq1C.js.map} +1 -1
  23. package/build/client/assets/{components-wgHiPsTg.js → components-C17zb3Us.js} +2 -2
  24. package/build/client/assets/{components-wgHiPsTg.js.map → components-C17zb3Us.js.map} +1 -1
  25. package/build/client/assets/{diff-4FQLirNf.js → diff-CCCucBoq.js} +2 -2
  26. package/build/client/assets/{diff-4FQLirNf.js.map → diff-CCCucBoq.js.map} +1 -1
  27. package/build/client/assets/diff-DBQZWFaQ.js +2 -0
  28. package/build/client/assets/{diff-CPrD1rHd.js.map → diff-DBQZWFaQ.js.map} +1 -1
  29. package/build/client/assets/{discord-BgaWmFRC.js → discord-CBGQw7I4.js} +2 -2
  30. package/build/client/assets/{discord-BgaWmFRC.js.map → discord-CBGQw7I4.js.map} +1 -1
  31. package/build/client/assets/discord-CULpXzAC.js +2 -0
  32. package/build/client/assets/discord-CULpXzAC.js.map +1 -0
  33. package/build/client/assets/{entry.client-Cs8lBz8l.js → entry.client-C1yl0iQe.js} +2 -2
  34. package/build/client/assets/{entry.client-Cs8lBz8l.js.map → entry.client-C1yl0iQe.js.map} +1 -1
  35. package/build/client/assets/{epic-video-CfelX9-n.js → epic-video-DGVKtAan.js} +2 -2
  36. package/build/client/assets/{epic-video-CfelX9-n.js.map → epic-video-DGVKtAan.js.map} +1 -1
  37. package/build/client/assets/{error-boundary-BVTbN8PZ.js → error-boundary-yAXgvsPR.js} +2 -2
  38. package/build/client/assets/{error-boundary-BVTbN8PZ.js.map → error-boundary-yAXgvsPR.js.map} +1 -1
  39. package/build/client/assets/{finished-C0mN8TiU.js → finished-DQ70NSmN.js} +2 -2
  40. package/build/client/assets/{finished-C0mN8TiU.js.map → finished-DQ70NSmN.js.map} +1 -1
  41. package/build/client/assets/{index-Czg1ruVn.js → index-1cKOJFpX.js} +2 -2
  42. package/build/client/assets/{index-Czg1ruVn.js.map → index-1cKOJFpX.js.map} +1 -1
  43. package/build/client/assets/{index-DjzedX4O.js → index-B9w5akmN.js} +2 -2
  44. package/build/client/assets/{index-DjzedX4O.js.map → index-B9w5akmN.js.map} +1 -1
  45. package/build/client/assets/{index-C6ToujzV.js → index-DC4pM5aW.js} +2 -2
  46. package/build/client/assets/{index-C6ToujzV.js.map → index-DC4pM5aW.js.map} +1 -1
  47. package/build/client/assets/{index-yEAxvbDV.js → index-Dc-1lfub.js} +2 -2
  48. package/build/client/assets/{index-yEAxvbDV.js.map → index-Dc-1lfub.js.map} +1 -1
  49. package/build/client/assets/{index-D6ukHE4T.js → index-Dx5GmdYq.js} +2 -2
  50. package/build/client/assets/{index-D6ukHE4T.js.map → index-Dx5GmdYq.js.map} +1 -1
  51. package/build/client/assets/{index-De7yI02n.js → index-yQg0GLtS.js} +2 -2
  52. package/build/client/assets/{index-De7yI02n.js.map → index-yQg0GLtS.js.map} +1 -1
  53. package/build/client/assets/{loading-B0uKxERz.js → loading-C4Cc1EBG.js} +2 -2
  54. package/build/client/assets/{loading-B0uKxERz.js.map → loading-C4Cc1EBG.js.map} +1 -1
  55. package/build/client/assets/{login-SJlLMYmL.js → login-Bimq6Ilz.js} +2 -2
  56. package/build/client/assets/{login-SJlLMYmL.js.map → login-Bimq6Ilz.js.map} +1 -1
  57. package/build/client/assets/manifest-8371b608.js +1 -0
  58. package/build/client/assets/{mdx-CQW0I4So.js → mdx-Cb7iYGhg.js} +2 -2
  59. package/build/client/assets/{mdx-CQW0I4So.js.map → mdx-Cb7iYGhg.js.map} +1 -1
  60. package/build/client/assets/{misc-S5ZD98sI.js → misc-Bt-_bj1O.js} +2 -2
  61. package/build/client/assets/{misc-S5ZD98sI.js.map → misc-Bt-_bj1O.js.map} +1 -1
  62. package/build/client/assets/{nav-chevrons-DaXg0NPS.js → nav-chevrons-DIhkJv4W.js} +2 -2
  63. package/build/client/assets/{nav-chevrons-DaXg0NPS.js.map → nav-chevrons-DIhkJv4W.js.map} +1 -1
  64. package/build/client/assets/{onboarding-BXGyEPXy.js → onboarding-CU7IWhDE.js} +2 -2
  65. package/build/client/assets/{onboarding-BXGyEPXy.js.map → onboarding-CU7IWhDE.js.map} +1 -1
  66. package/build/client/assets/{presence-CW1_eiIo.js → presence-DgSzsRAv.js} +2 -2
  67. package/build/client/assets/{presence-CW1_eiIo.js.map → presence-DgSzsRAv.js.map} +1 -1
  68. package/build/client/assets/{progress-BwanvUpB.js → progress-C1WSMZl4.js} +2 -2
  69. package/build/client/assets/{progress-BwanvUpB.js.map → progress-C1WSMZl4.js.map} +1 -1
  70. package/build/client/assets/{progress-bar-wMXWRGq0.js → progress-bar-DMef_aq8.js} +2 -2
  71. package/build/client/assets/{progress-bar-wMXWRGq0.js.map → progress-bar-DMef_aq8.js.map} +1 -1
  72. package/build/client/assets/{request-info-DHtGM4FI.js → request-info-DU15ezmn.js} +2 -2
  73. package/build/client/assets/{request-info-DHtGM4FI.js.map → request-info-DU15ezmn.js.map} +1 -1
  74. package/build/client/assets/{root-BUqeXmeK.js → root-CX2PgcP9.js} +3 -3
  75. package/build/client/assets/root-CX2PgcP9.js.map +1 -0
  76. package/build/client/assets/{support-DilzTPHE.js → support-D6UIcaNu.js} +2 -2
  77. package/build/client/assets/{support-DilzTPHE.js.map → support-D6UIcaNu.js.map} +1 -1
  78. package/build/client/assets/{tooltip-BtzSIxlB.js → tooltip-Cqh5cQvd.js} +2 -2
  79. package/build/client/assets/{tooltip-BtzSIxlB.js.map → tooltip-Cqh5cQvd.js.map} +1 -1
  80. package/build/client/assets/{use-event-source-ySol3hbz.js → use-event-source-A_0lEOPX.js} +2 -2
  81. package/build/client/assets/{use-event-source-ySol3hbz.js.map → use-event-source-A_0lEOPX.js.map} +1 -1
  82. package/build/client/assets/use-hydrated-Citou692.js +2 -0
  83. package/build/client/assets/use-hydrated-Citou692.js.map +1 -0
  84. package/build/client/assets/{user-CdUDQ7a8.js → user-MNzkRgJ3.js} +2 -2
  85. package/build/client/assets/{user-CdUDQ7a8.js.map → user-MNzkRgJ3.js.map} +1 -1
  86. package/build/server/index.js +30 -19
  87. package/build/server/index.js.map +1 -1
  88. package/package.json +3 -3
  89. package/build/client/assets/_layout-B789acDk.js +0 -6
  90. package/build/client/assets/_layout-B789acDk.js.map +0 -1
  91. package/build/client/assets/diff-CPrD1rHd.js +0 -2
  92. package/build/client/assets/discord-Dk1wbXOn.js +0 -2
  93. package/build/client/assets/discord-Dk1wbXOn.js.map +0 -1
  94. package/build/client/assets/manifest-73106676.js +0 -1
  95. package/build/client/assets/root-BUqeXmeK.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import{u as G,l as L,r as h,n as Y,R as m,j as c,c as Q,O as $,e as V}from"./index-Czg1ruVn.js";import{d as J,u as U,c as X}from"./misc-S5ZD98sI.js";import{G as z}from"./error-boundary-BVTbN8PZ.js";import{E as K}from"./progress-bar-wMXWRGq0.js";import{T as Z,J as ee}from"./index-DjzedX4O.js";import{T as te}from"./tooltip-BtzSIxlB.js";import{u as ne}from"./index-yEAxvbDV.js";import{C as ie}from"./client-hints-DLYDs4RF.js";import{P as re}from"./presence-CW1_eiIo.js";import{g as oe}from"./seo-pBpFCWsy.js";import{p as se,q as ae,_ as ce,u as T,M as ue,t as le,S as fe}from"./components-wgHiPsTg.js";import"./clsx-B-dksMZM.js";import"./request-info-DHtGM4FI.js";/**
1
+ import{u as G,k as L,r as f,l as Y,R as w,j as c,c as Q,O as $,e as V}from"./index-1cKOJFpX.js";import{d as J,u as U,c as X}from"./misc-Bt-_bj1O.js";import{u as z}from"./use-hydrated-Citou692.js";import{G as K}from"./error-boundary-yAXgvsPR.js";import{E as Z}from"./progress-bar-DMef_aq8.js";import{T as ee,J as te}from"./index-B9w5akmN.js";import{T as ne}from"./tooltip-Cqh5cQvd.js";import{u as ie}from"./index-Dc-1lfub.js";import{C as re}from"./client-hints-DWL_Mq1C.js";import{P as oe}from"./presence-DgSzsRAv.js";import{g as se}from"./seo-pBpFCWsy.js";import{p as ae,q as ce,_ as ue,u as T,M as le,t as he,S as fe}from"./components-C17zb3Us.js";import"./clsx-B-dksMZM.js";import"./request-info-DU15ezmn.js";/**
2
2
  * @remix-run/react v2.10.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
@@ -7,7 +7,7 @@ import{u as G,l as L,r as h,n as Y,R as m,j as c,c as Q,O as $,e as V}from"./ind
7
7
  * LICENSE.md file in the root directory of this source tree.
8
8
  *
9
9
  * @license MIT
10
- */let N="positions";function he({getKey:e,...n}){let{isSpaMode:r}=se(),t=G(),i=L();ae({getKey:e,storageKey:N});let o=h.useMemo(()=>{if(!e)return null;let a=e(t,i);return a!==t.key?a:null},[]);if(r)return null;let s=((a,l)=>{if(!window.history.state||!window.history.state.key){let u=Math.random().toString(32).slice(2);window.history.replaceState({key:u},"")}try{let x=JSON.parse(sessionStorage.getItem(a)||"{}")[l||window.history.state.key];typeof x=="number"&&window.scrollTo(0,x)}catch(u){console.error(u),sessionStorage.removeItem(a)}}).toString();return h.createElement("script",ce({},n,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${s})(${JSON.stringify(N)}, ${JSON.stringify(o)})`}}))}var O={linear:function(e,n,r,t){var i=r-n;return i*e/t+n},easeInQuad:function(e,n,r,t){var i=r-n;return i*(e/=t)*e+n},easeOutQuad:function(e,n,r,t){var i=r-n;return-i*(e/=t)*(e-2)+n},easeInOutQuad:function(e,n,r,t){var i=r-n;return(e/=t/2)<1?i/2*e*e+n:-i/2*(--e*(e-2)-1)+n},easeInCubic:function(e,n,r,t){var i=r-n;return i*(e/=t)*e*e+n},easeOutCubic:function(e,n,r,t){var i=r-n;return i*((e=e/t-1)*e*e+1)+n},easeInOutCubic:function(e,n,r,t){var i=r-n;return(e/=t/2)<1?i/2*e*e*e+n:i/2*((e-=2)*e*e+2)+n},easeInQuart:function(e,n,r,t){var i=r-n;return i*(e/=t)*e*e*e+n},easeOutQuart:function(e,n,r,t){var i=r-n;return-i*((e=e/t-1)*e*e*e-1)+n},easeInOutQuart:function(e,n,r,t){var i=r-n;return(e/=t/2)<1?i/2*e*e*e*e+n:-i/2*((e-=2)*e*e*e-2)+n},easeInQuint:function(e,n,r,t){var i=r-n;return i*(e/=t)*e*e*e*e+n},easeOutQuint:function(e,n,r,t){var i=r-n;return i*((e=e/t-1)*e*e*e*e+1)+n},easeInOutQuint:function(e,n,r,t){var i=r-n;return(e/=t/2)<1?i/2*e*e*e*e*e+n:i/2*((e-=2)*e*e*e*e+2)+n},easeInSine:function(e,n,r,t){var i=r-n;return-i*Math.cos(e/t*(Math.PI/2))+i+n},easeOutSine:function(e,n,r,t){var i=r-n;return i*Math.sin(e/t*(Math.PI/2))+n},easeInOutSine:function(e,n,r,t){var i=r-n;return-i/2*(Math.cos(Math.PI*e/t)-1)+n},easeInExpo:function(e,n,r,t){var i=r-n;return e==0?n:i*Math.pow(2,10*(e/t-1))+n},easeOutExpo:function(e,n,r,t){var i=r-n;return e==t?n+i:i*(-Math.pow(2,-10*e/t)+1)+n},easeInOutExpo:function(e,n,r,t){var i=r-n;return e===0?n:e===t?n+i:(e/=t/2)<1?i/2*Math.pow(2,10*(e-1))+n:i/2*(-Math.pow(2,-10*--e)+2)+n},easeInCirc:function(e,n,r,t){var i=r-n;return-i*(Math.sqrt(1-(e/=t)*e)-1)+n},easeOutCirc:function(e,n,r,t){var i=r-n;return i*Math.sqrt(1-(e=e/t-1)*e)+n},easeInOutCirc:function(e,n,r,t){var i=r-n;return(e/=t/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+n:i/2*(Math.sqrt(1-(e-=2)*e)+1)+n},easeInElastic:function(e,n,r,t){var i=r-n,o,s,a;return a=1.70158,s=0,o=i,e===0?n:(e/=t)===1?n+i:(s||(s=t*.3),o<Math.abs(i)?(o=i,a=s/4):a=s/(2*Math.PI)*Math.asin(i/o),-(o*Math.pow(2,10*(e-=1))*Math.sin((e*t-a)*(2*Math.PI)/s))+n)},easeOutElastic:function(e,n,r,t){var i=r-n,o,s,a;return a=1.70158,s=0,o=i,e===0?n:(e/=t)===1?n+i:(s||(s=t*.3),o<Math.abs(i)?(o=i,a=s/4):a=s/(2*Math.PI)*Math.asin(i/o),o*Math.pow(2,-10*e)*Math.sin((e*t-a)*(2*Math.PI)/s)+i+n)},easeInOutElastic:function(e,n,r,t){var i=r-n,o,s,a;return a=1.70158,s=0,o=i,e===0?n:(e/=t/2)===2?n+i:(s||(s=t*(.3*1.5)),o<Math.abs(i)?(o=i,a=s/4):a=s/(2*Math.PI)*Math.asin(i/o),e<1?-.5*(o*Math.pow(2,10*(e-=1))*Math.sin((e*t-a)*(2*Math.PI)/s))+n:o*Math.pow(2,-10*(e-=1))*Math.sin((e*t-a)*(2*Math.PI)/s)*.5+i+n)},easeInBack:function(e,n,r,t,i){var o=r-n;return i===void 0&&(i=1.70158),o*(e/=t)*e*((i+1)*e-i)+n},easeOutBack:function(e,n,r,t,i){var o=r-n;return i===void 0&&(i=1.70158),o*((e=e/t-1)*e*((i+1)*e+i)+1)+n},easeInOutBack:function(e,n,r,t,i){var o=r-n;return i===void 0&&(i=1.70158),(e/=t/2)<1?o/2*(e*e*(((i*=1.525)+1)*e-i))+n:o/2*((e-=2)*e*(((i*=1.525)+1)*e+i)+2)+n},easeInBounce:function(e,n,r,t){var i=r-n,o;return o=O.easeOutBounce(t-e,0,i,t),i-o+n},easeOutBounce:function(e,n,r,t){var i=r-n;return(e/=t)<1/2.75?i*(7.5625*e*e)+n:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+n:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+n:i*(7.5625*(e-=2.625/2.75)*e+.984375)+n},easeInOutBounce:function(e,n,r,t){var i=r-n,o;return e<t/2?(o=O.easeInBounce(e*2,0,i,t),o*.5+n):(o=O.easeOutBounce(e*2-t,0,i,t),o*.5+i*.5+n)}},pe=O;const ve=Y(pe);function de(e,n){for(var r=0;r<n.length;r++){var t=n[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function ge(e,n,r){return n&&de(e.prototype,n),e}function y(){return y=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},y.apply(this,arguments)}function we(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,C(e,n)}function C(e,n){return C=Object.setPrototypeOf||function(t,i){return t.__proto__=i,t},C(e,n)}function me(e){return e*Math.PI/180}function f(e,n){return e+Math.random()*(n-e)}function ye(e,n){return Math.floor(e+Math.random()*(n-e+1))}var w;(function(e){e[e.Circle=0]="Circle",e[e.Square=1]="Square",e[e.Strip=2]="Strip"})(w||(w={}));var p;(function(e){e[e.Positive=1]="Positive",e[e.Negative=-1]="Negative"})(p||(p={}));var xe=function(){function e(r,t,i,o){this.getOptions=t;var s=this.getOptions(),a=s.colors,l=s.initialVelocityX,u=s.initialVelocityY;this.context=r,this.x=i,this.y=o,this.w=f(5,20),this.h=f(5,20),this.radius=f(5,10),this.vx=f(-l,l),this.vy=f(-u,0),this.shape=ye(0,2),this.angle=me(f(0,360)),this.angularSpin=f(-.2,.2),this.color=a[Math.floor(Math.random()*a.length)],this.rotateY=f(0,1),this.rotationDirection=f(0,1)?p.Positive:p.Negative}var n=e.prototype;return n.update=function(){var t=this.getOptions(),i=t.gravity,o=t.wind,s=t.friction,a=t.opacity,l=t.drawShape;this.x+=this.vx,this.y+=this.vy,this.vy+=i,this.vx+=o,this.vx*=s,this.vy*=s,this.rotateY>=1&&this.rotationDirection===p.Positive?this.rotationDirection=p.Negative:this.rotateY<=-1&&this.rotationDirection===p.Negative&&(this.rotationDirection=p.Positive);var u=.1*this.rotationDirection;if(this.rotateY+=u,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=a,this.context.lineCap="round",this.context.lineWidth=2,l&&typeof l=="function")l.call(this,this.context);else switch(this.shape){case w.Circle:{this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break}case w.Square:{this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break}case w.Strip:{this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h);break}default:throw new Error("Unknown type in Particle.ts")}this.context.closePath(),this.context.restore()},e}(),Oe=function(n,r){var t=this;this.x=0,this.y=0,this.w=0,this.h=0,this.lastNumberOfPieces=0,this.tweenInitTime=Date.now(),this.particles=[],this.particlesGenerated=0,this.removeParticleAt=function(o){t.particles.splice(o,1)},this.getParticle=function(){var o=f(t.x,t.w+t.x),s=f(t.y,t.h+t.y);return new xe(t.context,t.getOptions,o,s)},this.animate=function(){var o=t.canvas,s=t.context,a=t.particlesGenerated,l=t.lastNumberOfPieces,u=t.getOptions(),x=u.run,E=u.recycle,v=u.numberOfPieces,W=u.debug,A=u.tweenFunction,P=u.tweenDuration;if(!x)return!1;var M=t.particles.length,d=E?M:a,I=Date.now();if(d<v){l!==v&&(t.tweenInitTime=I,t.lastNumberOfPieces=v);for(var F=t.tweenInitTime,H=I-F>P?P:Math.max(0,I-F),q=A(H,d,v,P),D=Math.round(q-d),k=0;k<D;k+=1)t.particles.push(t.getParticle());t.particlesGenerated+=D}return W&&(s.font="12px sans-serif",s.fillStyle="#333",s.textAlign="right",s.fillText("Particles: "+M,o.width-10,o.height-20)),t.particles.forEach(function(g,R){g.update(),(g.y>o.height||g.y<-100||g.x>o.width+100||g.x<-100)&&(E&&d<=v?t.particles[R]=t.getParticle():t.removeParticleAt(R))}),M>0||d<v},this.canvas=n;var i=this.canvas.getContext("2d");if(!i)throw new Error("Could not get canvas context");this.context=i,this.getOptions=r},j={width:typeof window<"u"?window.innerWidth:300,height:typeof window<"u"?window.innerHeight:200,numberOfPieces:200,friction:.99,wind:0,gravity:.1,initialVelocityX:4,initialVelocityY:10,colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722","#795548"],opacity:1,debug:!1,tweenFunction:ve.easeInOutQuad,tweenDuration:5e3,recycle:!0,run:!0},Pe=function(){function e(n,r){var t=this;this.setOptionsWithDefaults=function(o){var s={confettiSource:{x:0,y:0,w:t.canvas.width,h:0}};t._options=y({},s,j,o),Object.assign(t,o.confettiSource)},this.update=function(){var o=t.options,s=o.run,a=o.onConfettiComplete,l=t.canvas,u=t.context;s&&(u.fillStyle="white",u.clearRect(0,0,l.width,l.height)),t.generator.animate()?t.rafId=requestAnimationFrame(t.update):(a&&typeof a=="function"&&t.generator.particlesGenerated>0&&a.call(t,t),t._options.run=!1)},this.reset=function(){t.generator&&t.generator.particlesGenerated>0&&(t.generator.particlesGenerated=0,t.generator.particles=[],t.generator.lastNumberOfPieces=0)},this.stop=function(){t.options={run:!1},t.rafId&&(cancelAnimationFrame(t.rafId),t.rafId=void 0)},this.canvas=n;var i=this.canvas.getContext("2d");if(!i)throw new Error("Could not get canvas context");this.context=i,this.generator=new Oe(this.canvas,function(){return t.options}),this.options=r,this.update()}return ge(e,[{key:"options",get:function(){return this._options},set:function(r){var t=this._options&&this._options.run,i=this._options&&this._options.recycle;this.setOptionsWithDefaults(r),this.generator&&(Object.assign(this.generator,this.options.confettiSource),typeof r.recycle=="boolean"&&r.recycle&&i===!1&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),typeof r.run=="boolean"&&r.run&&t===!1&&this.update()}}]),e}(),B=m.createRef();function S(e){var n={},r={},t={},i=[].concat(Object.keys(j),["confettiSource","drawShape","onConfettiComplete"]),o=["canvasRef"];return Object.keys(e).forEach(function(s){var a=e[s];i.includes(s)?n[s]=a:o.includes(s)?o[s]=a:t[s]=a}),[n,t,r]}var _=function(e){we(n,e);function n(t){for(var i,o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return i=e.call.apply(e,[this,t].concat(s))||this,i.canvas=m.createRef(),i.canvas=t.canvasRef||B,i}var r=n.prototype;return r.componentDidMount=function(){if(this.canvas.current){var i=S(this.props)[0];this.confetti=new Pe(this.canvas.current,i)}},r.componentDidUpdate=function(){var i=S(this.props)[0];this.confetti&&(this.confetti.options=i)},r.componentWillUnmount=function(){this.confetti&&this.confetti.stop(),this.confetti=void 0},r.render=function(){var i=S(this.props),o=i[0],s=i[1],a=y({zIndex:2,position:"absolute",pointerEvents:"none",top:0,left:0,bottom:0,right:0},s.style);return m.createElement("canvas",Object.assign({width:o.width,height:o.height,ref:this.canvas},s,{style:a}))},n}(h.Component);_.defaultProps=y({},j);_.displayName="ConfettiReact";var Me=m.forwardRef(function(e,n){return m.createElement(_,Object.assign({canvasRef:B},e))});function Ie(){return()=>{}}function Se(){return h.useSyncExternalStore(Ie,()=>!0,()=>!1)}function Ce({children:e,fallback:n=null}){return Se()?h.createElement(h.Fragment,null,e()):h.createElement(h.Fragment,null,n)}function je({id:e}){return e?c.jsx(Ce,{children:()=>c.jsx(Me,{run:!!e,recycle:!1,numberOfPieces:800,width:window.innerWidth,height:window.innerHeight},e)}):null}function _e({toast:e}){return c.jsxs(c.Fragment,{children:[c.jsx(Z,{closeButton:!0,position:"top-center"}),e?c.jsx(Ee,{toast:e}):null]})}function Ee({toast:e}){const{id:n,type:r,title:t,description:i}=e;return h.useEffect(()=>{setTimeout(()=>{ee[r](t,{id:n,description:i})},0)},[i,n,t,r]),null}const Fe="/assets/app-b7uXHF5m.css",De="/assets/tailwind-BZciDTNv.css",Ve=()=>[{rel:"stylesheet",href:"/neogrotesk-font.css"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,200;0,300;0,400;0,500;0,600;1,700&display=swap"},{rel:"stylesheet",href:De},{rel:"stylesheet",href:Fe},{rel:"mask-icon",href:"/favicons/favicon.svg"},{rel:"alternate icon",type:"image/png",href:"/favicon.png"},{rel:"icon",type:"image/svg+xml",href:"/favicon.svg"}],Je=({data:e})=>e?oe({instructor:e.instructor,title:e.workshopTitle,description:e.workshopSubtitle,requestInfo:e.requestInfo}):[];function b({children:e,env:n={},className:r}){const t=V();return h.useEffect(()=>{window.__epicshop??(window.__epicshop={}),window.__epicshop.handleFileChange=t.revalidate},[t]),c.jsxs("html",{lang:"en",className:r,children:[c.jsxs("head",{children:[c.jsx(ie,{}),c.jsx(ue,{}),c.jsx("meta",{charSet:"utf-8"}),c.jsx("meta",{name:"viewport",content:"width=device-width,initial-scale=1"}),c.jsx(le,{}),c.jsx("script",{dangerouslySetInnerHTML:{__html:`window.ENV = ${JSON.stringify(n)}`}})]}),c.jsxs("body",{className:"bg-background text-foreground scrollbar-thin scrollbar-thumb-scrollbar h-screen-safe",children:[e,c.jsx(he,{}),c.jsx(fe,{}),ENV.EPICSHOP_DEPLOYED?null:c.jsx("script",{dangerouslySetInnerHTML:{__html:Re()}})]})]})}function ke(){const e=T(),n=Q(),r=J.useSpinDelay(n.state!=="idle",{delay:400,minDuration:200}),t=U(),i=ne();return c.jsxs(b,{className:X("antialiased h-screen-safe",i,{"cursor-progress":r},t?"alt-down":null),env:e.ENV,children:[c.jsx($,{}),c.jsx(je,{id:e.confettiId}),c.jsx(_e,{toast:e.toast}),c.jsx(K,{})]})}function Ue(){const{user:e}=T();return c.jsx(re,{user:e,children:c.jsx(te,{children:c.jsx(ke,{})})})}function Xe(){return c.jsx(b,{className:"h-screen-safe",children:c.jsx(z,{})})}function Re(){return`
10
+ */let N="positions";function pe({getKey:e,...n}){let{isSpaMode:r}=ae(),t=G(),i=L();ce({getKey:e,storageKey:N});let o=f.useMemo(()=>{if(!e)return null;let a=e(t,i);return a!==t.key?a:null},[]);if(r)return null;let s=((a,l)=>{if(!window.history.state||!window.history.state.key){let u=Math.random().toString(32).slice(2);window.history.replaceState({key:u},"")}try{let x=JSON.parse(sessionStorage.getItem(a)||"{}")[l||window.history.state.key];typeof x=="number"&&window.scrollTo(0,x)}catch(u){console.error(u),sessionStorage.removeItem(a)}}).toString();return f.createElement("script",ue({},n,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${s})(${JSON.stringify(N)}, ${JSON.stringify(o)})`}}))}var O={linear:function(e,n,r,t){var i=r-n;return i*e/t+n},easeInQuad:function(e,n,r,t){var i=r-n;return i*(e/=t)*e+n},easeOutQuad:function(e,n,r,t){var i=r-n;return-i*(e/=t)*(e-2)+n},easeInOutQuad:function(e,n,r,t){var i=r-n;return(e/=t/2)<1?i/2*e*e+n:-i/2*(--e*(e-2)-1)+n},easeInCubic:function(e,n,r,t){var i=r-n;return i*(e/=t)*e*e+n},easeOutCubic:function(e,n,r,t){var i=r-n;return i*((e=e/t-1)*e*e+1)+n},easeInOutCubic:function(e,n,r,t){var i=r-n;return(e/=t/2)<1?i/2*e*e*e+n:i/2*((e-=2)*e*e+2)+n},easeInQuart:function(e,n,r,t){var i=r-n;return i*(e/=t)*e*e*e+n},easeOutQuart:function(e,n,r,t){var i=r-n;return-i*((e=e/t-1)*e*e*e-1)+n},easeInOutQuart:function(e,n,r,t){var i=r-n;return(e/=t/2)<1?i/2*e*e*e*e+n:-i/2*((e-=2)*e*e*e-2)+n},easeInQuint:function(e,n,r,t){var i=r-n;return i*(e/=t)*e*e*e*e+n},easeOutQuint:function(e,n,r,t){var i=r-n;return i*((e=e/t-1)*e*e*e*e+1)+n},easeInOutQuint:function(e,n,r,t){var i=r-n;return(e/=t/2)<1?i/2*e*e*e*e*e+n:i/2*((e-=2)*e*e*e*e+2)+n},easeInSine:function(e,n,r,t){var i=r-n;return-i*Math.cos(e/t*(Math.PI/2))+i+n},easeOutSine:function(e,n,r,t){var i=r-n;return i*Math.sin(e/t*(Math.PI/2))+n},easeInOutSine:function(e,n,r,t){var i=r-n;return-i/2*(Math.cos(Math.PI*e/t)-1)+n},easeInExpo:function(e,n,r,t){var i=r-n;return e==0?n:i*Math.pow(2,10*(e/t-1))+n},easeOutExpo:function(e,n,r,t){var i=r-n;return e==t?n+i:i*(-Math.pow(2,-10*e/t)+1)+n},easeInOutExpo:function(e,n,r,t){var i=r-n;return e===0?n:e===t?n+i:(e/=t/2)<1?i/2*Math.pow(2,10*(e-1))+n:i/2*(-Math.pow(2,-10*--e)+2)+n},easeInCirc:function(e,n,r,t){var i=r-n;return-i*(Math.sqrt(1-(e/=t)*e)-1)+n},easeOutCirc:function(e,n,r,t){var i=r-n;return i*Math.sqrt(1-(e=e/t-1)*e)+n},easeInOutCirc:function(e,n,r,t){var i=r-n;return(e/=t/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+n:i/2*(Math.sqrt(1-(e-=2)*e)+1)+n},easeInElastic:function(e,n,r,t){var i=r-n,o,s,a;return a=1.70158,s=0,o=i,e===0?n:(e/=t)===1?n+i:(s||(s=t*.3),o<Math.abs(i)?(o=i,a=s/4):a=s/(2*Math.PI)*Math.asin(i/o),-(o*Math.pow(2,10*(e-=1))*Math.sin((e*t-a)*(2*Math.PI)/s))+n)},easeOutElastic:function(e,n,r,t){var i=r-n,o,s,a;return a=1.70158,s=0,o=i,e===0?n:(e/=t)===1?n+i:(s||(s=t*.3),o<Math.abs(i)?(o=i,a=s/4):a=s/(2*Math.PI)*Math.asin(i/o),o*Math.pow(2,-10*e)*Math.sin((e*t-a)*(2*Math.PI)/s)+i+n)},easeInOutElastic:function(e,n,r,t){var i=r-n,o,s,a;return a=1.70158,s=0,o=i,e===0?n:(e/=t/2)===2?n+i:(s||(s=t*(.3*1.5)),o<Math.abs(i)?(o=i,a=s/4):a=s/(2*Math.PI)*Math.asin(i/o),e<1?-.5*(o*Math.pow(2,10*(e-=1))*Math.sin((e*t-a)*(2*Math.PI)/s))+n:o*Math.pow(2,-10*(e-=1))*Math.sin((e*t-a)*(2*Math.PI)/s)*.5+i+n)},easeInBack:function(e,n,r,t,i){var o=r-n;return i===void 0&&(i=1.70158),o*(e/=t)*e*((i+1)*e-i)+n},easeOutBack:function(e,n,r,t,i){var o=r-n;return i===void 0&&(i=1.70158),o*((e=e/t-1)*e*((i+1)*e+i)+1)+n},easeInOutBack:function(e,n,r,t,i){var o=r-n;return i===void 0&&(i=1.70158),(e/=t/2)<1?o/2*(e*e*(((i*=1.525)+1)*e-i))+n:o/2*((e-=2)*e*(((i*=1.525)+1)*e+i)+2)+n},easeInBounce:function(e,n,r,t){var i=r-n,o;return o=O.easeOutBounce(t-e,0,i,t),i-o+n},easeOutBounce:function(e,n,r,t){var i=r-n;return(e/=t)<1/2.75?i*(7.5625*e*e)+n:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+n:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+n:i*(7.5625*(e-=2.625/2.75)*e+.984375)+n},easeInOutBounce:function(e,n,r,t){var i=r-n,o;return e<t/2?(o=O.easeInBounce(e*2,0,i,t),o*.5+n):(o=O.easeOutBounce(e*2-t,0,i,t),o*.5+i*.5+n)}},ve=O;const de=Y(ve);function ge(e,n){for(var r=0;r<n.length;r++){var t=n[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function me(e,n,r){return n&&ge(e.prototype,n),e}function y(){return y=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},y.apply(this,arguments)}function we(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,C(e,n)}function C(e,n){return C=Object.setPrototypeOf||function(t,i){return t.__proto__=i,t},C(e,n)}function ye(e){return e*Math.PI/180}function h(e,n){return e+Math.random()*(n-e)}function xe(e,n){return Math.floor(e+Math.random()*(n-e+1))}var m;(function(e){e[e.Circle=0]="Circle",e[e.Square=1]="Square",e[e.Strip=2]="Strip"})(m||(m={}));var p;(function(e){e[e.Positive=1]="Positive",e[e.Negative=-1]="Negative"})(p||(p={}));var Oe=function(){function e(r,t,i,o){this.getOptions=t;var s=this.getOptions(),a=s.colors,l=s.initialVelocityX,u=s.initialVelocityY;this.context=r,this.x=i,this.y=o,this.w=h(5,20),this.h=h(5,20),this.radius=h(5,10),this.vx=h(-l,l),this.vy=h(-u,0),this.shape=xe(0,2),this.angle=ye(h(0,360)),this.angularSpin=h(-.2,.2),this.color=a[Math.floor(Math.random()*a.length)],this.rotateY=h(0,1),this.rotationDirection=h(0,1)?p.Positive:p.Negative}var n=e.prototype;return n.update=function(){var t=this.getOptions(),i=t.gravity,o=t.wind,s=t.friction,a=t.opacity,l=t.drawShape;this.x+=this.vx,this.y+=this.vy,this.vy+=i,this.vx+=o,this.vx*=s,this.vy*=s,this.rotateY>=1&&this.rotationDirection===p.Positive?this.rotationDirection=p.Negative:this.rotateY<=-1&&this.rotationDirection===p.Negative&&(this.rotationDirection=p.Positive);var u=.1*this.rotationDirection;if(this.rotateY+=u,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=a,this.context.lineCap="round",this.context.lineWidth=2,l&&typeof l=="function")l.call(this,this.context);else switch(this.shape){case m.Circle:{this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break}case m.Square:{this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break}case m.Strip:{this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h);break}default:throw new Error("Unknown type in Particle.ts")}this.context.closePath(),this.context.restore()},e}(),Pe=function(n,r){var t=this;this.x=0,this.y=0,this.w=0,this.h=0,this.lastNumberOfPieces=0,this.tweenInitTime=Date.now(),this.particles=[],this.particlesGenerated=0,this.removeParticleAt=function(o){t.particles.splice(o,1)},this.getParticle=function(){var o=h(t.x,t.w+t.x),s=h(t.y,t.h+t.y);return new Oe(t.context,t.getOptions,o,s)},this.animate=function(){var o=t.canvas,s=t.context,a=t.particlesGenerated,l=t.lastNumberOfPieces,u=t.getOptions(),x=u.run,E=u.recycle,v=u.numberOfPieces,W=u.debug,A=u.tweenFunction,P=u.tweenDuration;if(!x)return!1;var M=t.particles.length,d=E?M:a,I=Date.now();if(d<v){l!==v&&(t.tweenInitTime=I,t.lastNumberOfPieces=v);for(var F=t.tweenInitTime,H=I-F>P?P:Math.max(0,I-F),q=A(H,d,v,P),D=Math.round(q-d),k=0;k<D;k+=1)t.particles.push(t.getParticle());t.particlesGenerated+=D}return W&&(s.font="12px sans-serif",s.fillStyle="#333",s.textAlign="right",s.fillText("Particles: "+M,o.width-10,o.height-20)),t.particles.forEach(function(g,R){g.update(),(g.y>o.height||g.y<-100||g.x>o.width+100||g.x<-100)&&(E&&d<=v?t.particles[R]=t.getParticle():t.removeParticleAt(R))}),M>0||d<v},this.canvas=n;var i=this.canvas.getContext("2d");if(!i)throw new Error("Could not get canvas context");this.context=i,this.getOptions=r},j={width:typeof window<"u"?window.innerWidth:300,height:typeof window<"u"?window.innerHeight:200,numberOfPieces:200,friction:.99,wind:0,gravity:.1,initialVelocityX:4,initialVelocityY:10,colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722","#795548"],opacity:1,debug:!1,tweenFunction:de.easeInOutQuad,tweenDuration:5e3,recycle:!0,run:!0},Me=function(){function e(n,r){var t=this;this.setOptionsWithDefaults=function(o){var s={confettiSource:{x:0,y:0,w:t.canvas.width,h:0}};t._options=y({},s,j,o),Object.assign(t,o.confettiSource)},this.update=function(){var o=t.options,s=o.run,a=o.onConfettiComplete,l=t.canvas,u=t.context;s&&(u.fillStyle="white",u.clearRect(0,0,l.width,l.height)),t.generator.animate()?t.rafId=requestAnimationFrame(t.update):(a&&typeof a=="function"&&t.generator.particlesGenerated>0&&a.call(t,t),t._options.run=!1)},this.reset=function(){t.generator&&t.generator.particlesGenerated>0&&(t.generator.particlesGenerated=0,t.generator.particles=[],t.generator.lastNumberOfPieces=0)},this.stop=function(){t.options={run:!1},t.rafId&&(cancelAnimationFrame(t.rafId),t.rafId=void 0)},this.canvas=n;var i=this.canvas.getContext("2d");if(!i)throw new Error("Could not get canvas context");this.context=i,this.generator=new Pe(this.canvas,function(){return t.options}),this.options=r,this.update()}return me(e,[{key:"options",get:function(){return this._options},set:function(r){var t=this._options&&this._options.run,i=this._options&&this._options.recycle;this.setOptionsWithDefaults(r),this.generator&&(Object.assign(this.generator,this.options.confettiSource),typeof r.recycle=="boolean"&&r.recycle&&i===!1&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),typeof r.run=="boolean"&&r.run&&t===!1&&this.update()}}]),e}(),B=w.createRef();function S(e){var n={},r={},t={},i=[].concat(Object.keys(j),["confettiSource","drawShape","onConfettiComplete"]),o=["canvasRef"];return Object.keys(e).forEach(function(s){var a=e[s];i.includes(s)?n[s]=a:o.includes(s)?o[s]=a:t[s]=a}),[n,t,r]}var _=function(e){we(n,e);function n(t){for(var i,o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return i=e.call.apply(e,[this,t].concat(s))||this,i.canvas=w.createRef(),i.canvas=t.canvasRef||B,i}var r=n.prototype;return r.componentDidMount=function(){if(this.canvas.current){var i=S(this.props)[0];this.confetti=new Me(this.canvas.current,i)}},r.componentDidUpdate=function(){var i=S(this.props)[0];this.confetti&&(this.confetti.options=i)},r.componentWillUnmount=function(){this.confetti&&this.confetti.stop(),this.confetti=void 0},r.render=function(){var i=S(this.props),o=i[0],s=i[1],a=y({zIndex:2,position:"absolute",pointerEvents:"none",top:0,left:0,bottom:0,right:0},s.style);return w.createElement("canvas",Object.assign({width:o.width,height:o.height,ref:this.canvas},s,{style:a}))},n}(f.Component);_.defaultProps=y({},j);_.displayName="ConfettiReact";var Ie=w.forwardRef(function(e,n){return w.createElement(_,Object.assign({canvasRef:B},e))});function Se({children:e,fallback:n=null}){return z()?f.createElement(f.Fragment,null,e()):f.createElement(f.Fragment,null,n)}function Ce({id:e}){return e?c.jsx(Se,{children:()=>c.jsx(Ie,{run:!!e,recycle:!1,numberOfPieces:800,width:window.innerWidth,height:window.innerHeight},e)}):null}function je({toast:e}){return c.jsxs(c.Fragment,{children:[c.jsx(ee,{closeButton:!0,position:"top-center"}),e?c.jsx(_e,{toast:e}):null]})}function _e({toast:e}){const{id:n,type:r,title:t,description:i}=e;return f.useEffect(()=>{setTimeout(()=>{te[r](t,{id:n,description:i})},0)},[i,n,t,r]),null}const Ee="/assets/app-b7uXHF5m.css",Fe="/assets/tailwind-BZciDTNv.css",Ve=()=>[{rel:"stylesheet",href:"/neogrotesk-font.css"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,200;0,300;0,400;0,500;0,600;1,700&display=swap"},{rel:"stylesheet",href:Fe},{rel:"stylesheet",href:Ee},{rel:"mask-icon",href:"/favicons/favicon.svg"},{rel:"alternate icon",type:"image/png",href:"/favicon.png"},{rel:"icon",type:"image/svg+xml",href:"/favicon.svg"}],Je=({data:e})=>e?se({instructor:e.instructor,title:e.workshopTitle,description:e.workshopSubtitle,requestInfo:e.requestInfo}):[];function b({children:e,env:n={},className:r}){const t=V();return f.useEffect(()=>{window.__epicshop??(window.__epicshop={}),window.__epicshop.handleFileChange=t.revalidate},[t]),c.jsxs("html",{lang:"en",className:r,children:[c.jsxs("head",{children:[c.jsx(re,{}),c.jsx(le,{}),c.jsx("meta",{charSet:"utf-8"}),c.jsx("meta",{name:"viewport",content:"width=device-width,initial-scale=1"}),c.jsx(he,{}),c.jsx("script",{dangerouslySetInnerHTML:{__html:`window.ENV = ${JSON.stringify(n)}`}})]}),c.jsxs("body",{className:"bg-background text-foreground scrollbar-thin scrollbar-thumb-scrollbar h-screen-safe",children:[e,c.jsx(pe,{}),c.jsx(fe,{}),ENV.EPICSHOP_DEPLOYED?null:c.jsx("script",{dangerouslySetInnerHTML:{__html:ke()}})]})]})}function De(){const e=T(),n=Q(),r=J.useSpinDelay(n.state!=="idle",{delay:400,minDuration:200}),t=U(),i=ie();return c.jsxs(b,{className:X("antialiased h-screen-safe",i,{"cursor-progress":r},t?"alt-down":null),env:e.ENV,children:[c.jsx($,{}),c.jsx(Ce,{id:e.confettiId}),c.jsx(je,{toast:e.toast}),c.jsx(Z,{})]})}function Ue(){const{user:e}=T();return c.jsx(oe,{user:e,children:c.jsx(ne,{children:c.jsx(De,{})})})}function Xe(){return c.jsx(b,{className:"h-screen-safe",children:c.jsx(K,{})})}function ke(){return`
11
11
  function epicLiveReloadConnect(config) {
12
12
  const protocol = location.protocol === "https:" ? "wss:" : "ws:";
13
13
  const host = location.hostname;
@@ -65,4 +65,4 @@ import{u as G,l as L,r as h,n as Y,R as m,j as c,c as Q,O as $,e as V}from"./ind
65
65
  }
66
66
  epicLiveReloadConnect();
67
67
  `}export{Xe as ErrorBoundary,Ue as default,Ve as links,Je as meta};
68
- //# sourceMappingURL=root-BUqeXmeK.js.map
68
+ //# sourceMappingURL=root-CX2PgcP9.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root-CX2PgcP9.js","sources":["../../../../../node_modules/@remix-run/react/dist/esm/scroll-restoration.js","../../../../../node_modules/tween-functions/index.js","../../../../../node_modules/confetti-react/dist/confetti-react.esm.js","../../../../../node_modules/remix-utils/build/react/client-only.js","../../../app/components/confetti.tsx","../../../app/components/toaster.tsx","../../../app/styles/app.css?url","../../../app/styles/tailwind.css?url","../../../app/root.tsx"],"sourcesContent":["/**\n * @remix-run/react v2.10.0\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\nimport { extends as _extends } from './_virtual/_rollupPluginBabelHelpers.js';\nimport * as React from 'react';\nimport { useLocation, useMatches, UNSAFE_useScrollRestoration } from 'react-router-dom';\nimport { useRemixContext } from './components.js';\n\nlet STORAGE_KEY = \"positions\";\n\n/**\n * This component will emulate the browser's scroll restoration on location\n * changes.\n *\n * @see https://remix.run/components/scroll-restoration\n */\nfunction ScrollRestoration({\n getKey,\n ...props\n}) {\n let {\n isSpaMode\n } = useRemixContext();\n let location = useLocation();\n let matches = useMatches();\n UNSAFE_useScrollRestoration({\n getKey,\n storageKey: STORAGE_KEY\n });\n\n // In order to support `getKey`, we need to compute a \"key\" here so we can\n // hydrate that up so that SSR scroll restoration isn't waiting on React to\n // hydrate. *However*, our key on the server is not the same as our key on\n // the client! So if the user's getKey implementation returns the SSR\n // location key, then let's ignore it and let our inline <script> below pick\n // up the client side history state key\n let key = React.useMemo(() => {\n if (!getKey) return null;\n let userKey = getKey(location, matches);\n return userKey !== location.key ? userKey : null;\n },\n // Nah, we only need this the first time for the SSR render\n // eslint-disable-next-line react-hooks/exhaustive-deps\n []);\n\n // In SPA Mode, there's nothing to restore on initial render since we didn't\n // render anything on the server\n if (isSpaMode) {\n return null;\n }\n let restoreScroll = ((STORAGE_KEY, restoreKey) => {\n if (!window.history.state || !window.history.state.key) {\n let key = Math.random().toString(32).slice(2);\n window.history.replaceState({\n key\n }, \"\");\n }\n try {\n let positions = JSON.parse(sessionStorage.getItem(STORAGE_KEY) || \"{}\");\n let storedY = positions[restoreKey || window.history.state.key];\n if (typeof storedY === \"number\") {\n window.scrollTo(0, storedY);\n }\n } catch (error) {\n console.error(error);\n sessionStorage.removeItem(STORAGE_KEY);\n }\n }).toString();\n return /*#__PURE__*/React.createElement(\"script\", _extends({}, props, {\n suppressHydrationWarning: true,\n dangerouslySetInnerHTML: {\n __html: `(${restoreScroll})(${JSON.stringify(STORAGE_KEY)}, ${JSON.stringify(key)})`\n }\n }));\n}\n\nexport { ScrollRestoration };\n","'use strict';\n\n// t: current time, b: beginning value, _c: final value, d: total duration\nvar tweenFunctions = {\n linear: function(t, b, _c, d) {\n var c = _c - b;\n return c * t / d + b;\n },\n easeInQuad: function(t, b, _c, d) {\n var c = _c - b;\n return c * (t /= d) * t + b;\n },\n easeOutQuad: function(t, b, _c, d) {\n var c = _c - b;\n return -c * (t /= d) * (t - 2) + b;\n },\n easeInOutQuad: function(t, b, _c, d) {\n var c = _c - b;\n if ((t /= d / 2) < 1) {\n return c / 2 * t * t + b;\n } else {\n return -c / 2 * ((--t) * (t - 2) - 1) + b;\n }\n },\n easeInCubic: function(t, b, _c, d) {\n var c = _c - b;\n return c * (t /= d) * t * t + b;\n },\n easeOutCubic: function(t, b, _c, d) {\n var c = _c - b;\n return c * ((t = t / d - 1) * t * t + 1) + b;\n },\n easeInOutCubic: function(t, b, _c, d) {\n var c = _c - b;\n if ((t /= d / 2) < 1) {\n return c / 2 * t * t * t + b;\n } else {\n return c / 2 * ((t -= 2) * t * t + 2) + b;\n }\n },\n easeInQuart: function(t, b, _c, d) {\n var c = _c - b;\n return c * (t /= d) * t * t * t + b;\n },\n easeOutQuart: function(t, b, _c, d) {\n var c = _c - b;\n return -c * ((t = t / d - 1) * t * t * t - 1) + b;\n },\n easeInOutQuart: function(t, b, _c, d) {\n var c = _c - b;\n if ((t /= d / 2) < 1) {\n return c / 2 * t * t * t * t + b;\n } else {\n return -c / 2 * ((t -= 2) * t * t * t - 2) + b;\n }\n },\n easeInQuint: function(t, b, _c, d) {\n var c = _c - b;\n return c * (t /= d) * t * t * t * t + b;\n },\n easeOutQuint: function(t, b, _c, d) {\n var c = _c - b;\n return c * ((t = t / d - 1) * t * t * t * t + 1) + b;\n },\n easeInOutQuint: function(t, b, _c, d) {\n var c = _c - b;\n if ((t /= d / 2) < 1) {\n return c / 2 * t * t * t * t * t + b;\n } else {\n return c / 2 * ((t -= 2) * t * t * t * t + 2) + b;\n }\n },\n easeInSine: function(t, b, _c, d) {\n var c = _c - b;\n return -c * Math.cos(t / d * (Math.PI / 2)) + c + b;\n },\n easeOutSine: function(t, b, _c, d) {\n var c = _c - b;\n return c * Math.sin(t / d * (Math.PI / 2)) + b;\n },\n easeInOutSine: function(t, b, _c, d) {\n var c = _c - b;\n return -c / 2 * (Math.cos(Math.PI * t / d) - 1) + b;\n },\n easeInExpo: function(t, b, _c, d) {\n var c = _c - b;\n return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;\n },\n easeOutExpo: function(t, b, _c, d) {\n var c = _c - b;\n return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;\n },\n easeInOutExpo: function(t, b, _c, d) {\n var c = _c - b;\n if (t === 0) {\n return b;\n }\n if (t === d) {\n return b + c;\n }\n if ((t /= d / 2) < 1) {\n return c / 2 * Math.pow(2, 10 * (t - 1)) + b;\n } else {\n return c / 2 * (-Math.pow(2, -10 * --t) + 2) + b;\n }\n },\n easeInCirc: function(t, b, _c, d) {\n var c = _c - b;\n return -c * (Math.sqrt(1 - (t /= d) * t) - 1) + b;\n },\n easeOutCirc: function(t, b, _c, d) {\n var c = _c - b;\n return c * Math.sqrt(1 - (t = t / d - 1) * t) + b;\n },\n easeInOutCirc: function(t, b, _c, d) {\n var c = _c - b;\n if ((t /= d / 2) < 1) {\n return -c / 2 * (Math.sqrt(1 - t * t) - 1) + b;\n } else {\n return c / 2 * (Math.sqrt(1 - (t -= 2) * t) + 1) + b;\n }\n },\n easeInElastic: function(t, b, _c, d) {\n var c = _c - b;\n var a, p, s;\n s = 1.70158;\n p = 0;\n a = c;\n if (t === 0) {\n return b;\n } else if ((t /= d) === 1) {\n return b + c;\n }\n if (!p) {\n p = d * 0.3;\n }\n if (a < Math.abs(c)) {\n a = c;\n s = p / 4;\n } else {\n s = p / (2 * Math.PI) * Math.asin(c / a);\n }\n return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b;\n },\n easeOutElastic: function(t, b, _c, d) {\n var c = _c - b;\n var a, p, s;\n s = 1.70158;\n p = 0;\n a = c;\n if (t === 0) {\n return b;\n } else if ((t /= d) === 1) {\n return b + c;\n }\n if (!p) {\n p = d * 0.3;\n }\n if (a < Math.abs(c)) {\n a = c;\n s = p / 4;\n } else {\n s = p / (2 * Math.PI) * Math.asin(c / a);\n }\n return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * (2 * Math.PI) / p) + c + b;\n },\n easeInOutElastic: function(t, b, _c, d) {\n var c = _c - b;\n var a, p, s;\n s = 1.70158;\n p = 0;\n a = c;\n if (t === 0) {\n return b;\n } else if ((t /= d / 2) === 2) {\n return b + c;\n }\n if (!p) {\n p = d * (0.3 * 1.5);\n }\n if (a < Math.abs(c)) {\n a = c;\n s = p / 4;\n } else {\n s = p / (2 * Math.PI) * Math.asin(c / a);\n }\n if (t < 1) {\n return -0.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b;\n } else {\n return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p) * 0.5 + c + b;\n }\n },\n easeInBack: function(t, b, _c, d, s) {\n var c = _c - b;\n if (s === void 0) {\n s = 1.70158;\n }\n return c * (t /= d) * t * ((s + 1) * t - s) + b;\n },\n easeOutBack: function(t, b, _c, d, s) {\n var c = _c - b;\n if (s === void 0) {\n s = 1.70158;\n }\n return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b;\n },\n easeInOutBack: function(t, b, _c, d, s) {\n var c = _c - b;\n if (s === void 0) {\n s = 1.70158;\n }\n if ((t /= d / 2) < 1) {\n return c / 2 * (t * t * (((s *= 1.525) + 1) * t - s)) + b;\n } else {\n return c / 2 * ((t -= 2) * t * (((s *= 1.525) + 1) * t + s) + 2) + b;\n }\n },\n easeInBounce: function(t, b, _c, d) {\n var c = _c - b;\n var v;\n v = tweenFunctions.easeOutBounce(d - t, 0, c, d);\n return c - v + b;\n },\n easeOutBounce: function(t, b, _c, d) {\n var c = _c - b;\n if ((t /= d) < 1 / 2.75) {\n return c * (7.5625 * t * t) + b;\n } else if (t < 2 / 2.75) {\n return c * (7.5625 * (t -= 1.5 / 2.75) * t + 0.75) + b;\n } else if (t < 2.5 / 2.75) {\n return c * (7.5625 * (t -= 2.25 / 2.75) * t + 0.9375) + b;\n } else {\n return c * (7.5625 * (t -= 2.625 / 2.75) * t + 0.984375) + b;\n }\n },\n easeInOutBounce: function(t, b, _c, d) {\n var c = _c - b;\n var v;\n if (t < d / 2) {\n v = tweenFunctions.easeInBounce(t * 2, 0, c, d);\n return v * 0.5 + b;\n } else {\n v = tweenFunctions.easeOutBounce(t * 2 - d, 0, c, d);\n return v * 0.5 + c * 0.5 + b;\n }\n }\n};\n\nmodule.exports = tweenFunctions;\n","import React, { Component } from 'react';\nimport tweens from 'tween-functions';\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n\n _setPrototypeOf(subClass, superClass);\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction degreesToRads(degrees) {\n return degrees * Math.PI / 180;\n}\nfunction randomRange(min, max) {\n return min + Math.random() * (max - min);\n}\nfunction randomInt(min, max) {\n return Math.floor(min + Math.random() * (max - min + 1));\n}\n\nvar ParticleShape;\n\n(function (ParticleShape) {\n ParticleShape[ParticleShape[\"Circle\"] = 0] = \"Circle\";\n ParticleShape[ParticleShape[\"Square\"] = 1] = \"Square\";\n ParticleShape[ParticleShape[\"Strip\"] = 2] = \"Strip\";\n})(ParticleShape || (ParticleShape = {}));\n\nvar RotationDirection;\n\n(function (RotationDirection) {\n RotationDirection[RotationDirection[\"Positive\"] = 1] = \"Positive\";\n RotationDirection[RotationDirection[\"Negative\"] = -1] = \"Negative\";\n})(RotationDirection || (RotationDirection = {}));\n\nvar Particle = /*#__PURE__*/function () {\n function Particle(context, getOptions, x, y) {\n this.getOptions = getOptions;\n\n var _this$getOptions = this.getOptions(),\n colors = _this$getOptions.colors,\n initialVelocityX = _this$getOptions.initialVelocityX,\n initialVelocityY = _this$getOptions.initialVelocityY;\n\n this.context = context;\n this.x = x;\n this.y = y;\n this.w = randomRange(5, 20);\n this.h = randomRange(5, 20);\n this.radius = randomRange(5, 10);\n this.vx = randomRange(-initialVelocityX, initialVelocityX);\n this.vy = randomRange(-initialVelocityY, 0);\n this.shape = randomInt(0, 2);\n this.angle = degreesToRads(randomRange(0, 360));\n this.angularSpin = randomRange(-0.2, 0.2);\n this.color = colors[Math.floor(Math.random() * colors.length)];\n this.rotateY = randomRange(0, 1);\n this.rotationDirection = randomRange(0, 1) ? RotationDirection.Positive : RotationDirection.Negative;\n }\n\n var _proto = Particle.prototype;\n\n _proto.update = function update() {\n var _this$getOptions2 = this.getOptions(),\n gravity = _this$getOptions2.gravity,\n wind = _this$getOptions2.wind,\n friction = _this$getOptions2.friction,\n opacity = _this$getOptions2.opacity,\n drawShape = _this$getOptions2.drawShape;\n\n this.x += this.vx;\n this.y += this.vy;\n this.vy += gravity;\n this.vx += wind;\n this.vx *= friction;\n this.vy *= friction;\n\n if (this.rotateY >= 1 && this.rotationDirection === RotationDirection.Positive) {\n this.rotationDirection = RotationDirection.Negative;\n } else if (this.rotateY <= -1 && this.rotationDirection === RotationDirection.Negative) {\n this.rotationDirection = RotationDirection.Positive;\n }\n\n var rotateDelta = 0.1 * this.rotationDirection;\n this.rotateY += rotateDelta;\n this.angle += this.angularSpin;\n this.context.save();\n this.context.translate(this.x, this.y);\n this.context.rotate(this.angle);\n this.context.scale(1, this.rotateY);\n this.context.rotate(this.angle);\n this.context.beginPath();\n this.context.fillStyle = this.color;\n this.context.strokeStyle = this.color;\n this.context.globalAlpha = opacity;\n this.context.lineCap = 'round';\n this.context.lineWidth = 2;\n\n if (drawShape && typeof drawShape === 'function') {\n drawShape.call(this, this.context);\n } else {\n switch (this.shape) {\n case ParticleShape.Circle:\n {\n this.context.beginPath();\n this.context.arc(0, 0, this.radius, 0, 2 * Math.PI);\n this.context.fill();\n break;\n }\n\n case ParticleShape.Square:\n {\n this.context.fillRect(-this.w / 2, -this.h / 2, this.w, this.h);\n break;\n }\n\n case ParticleShape.Strip:\n {\n this.context.fillRect(-this.w / 6, -this.h / 2, this.w / 3, this.h);\n break;\n }\n\n default:\n {\n throw new Error('Unknown type in Particle.ts');\n }\n }\n }\n\n this.context.closePath();\n this.context.restore();\n };\n\n return Particle;\n}();\n\nvar ParticleGeneratorClass = function ParticleGeneratorClass(canvas, getOptions) {\n var _this = this;\n\n this.x = 0;\n this.y = 0;\n this.w = 0;\n this.h = 0;\n this.lastNumberOfPieces = 0;\n this.tweenInitTime = Date.now();\n this.particles = [];\n this.particlesGenerated = 0;\n\n this.removeParticleAt = function (i) {\n _this.particles.splice(i, 1);\n };\n\n this.getParticle = function () {\n var newParticleX = randomRange(_this.x, _this.w + _this.x);\n var newParticleY = randomRange(_this.y, _this.h + _this.y);\n return new Particle(_this.context, _this.getOptions, newParticleX, newParticleY);\n };\n\n this.animate = function () {\n var canvas = _this.canvas,\n context = _this.context,\n particlesGenerated = _this.particlesGenerated,\n lastNumberOfPieces = _this.lastNumberOfPieces;\n\n var _this$getOptions = _this.getOptions(),\n run = _this$getOptions.run,\n recycle = _this$getOptions.recycle,\n numberOfPieces = _this$getOptions.numberOfPieces,\n debug = _this$getOptions.debug,\n tweenFunction = _this$getOptions.tweenFunction,\n tweenDuration = _this$getOptions.tweenDuration;\n\n if (!run) {\n return false;\n }\n\n var nP = _this.particles.length;\n var activeCount = recycle ? nP : particlesGenerated;\n var now = Date.now(); // Initial population\n\n if (activeCount < numberOfPieces) {\n // Use the numberOfPieces prop as a key to reset the easing timing\n if (lastNumberOfPieces !== numberOfPieces) {\n _this.tweenInitTime = now;\n _this.lastNumberOfPieces = numberOfPieces;\n }\n\n var tweenInitTime = _this.tweenInitTime; // Add more than one piece per loop, otherwise the number of pieces would\n // be limitted by the RAF framerate\n\n var progressTime = now - tweenInitTime > tweenDuration ? tweenDuration : Math.max(0, now - tweenInitTime);\n var tweenedVal = tweenFunction(progressTime, activeCount, numberOfPieces, tweenDuration);\n var numToAdd = Math.round(tweenedVal - activeCount);\n\n for (var i = 0; i < numToAdd; i += 1) {\n _this.particles.push(_this.getParticle());\n }\n\n _this.particlesGenerated += numToAdd;\n }\n\n if (debug) {\n // Draw debug text\n context.font = '12px sans-serif';\n context.fillStyle = '#333';\n context.textAlign = 'right';\n context.fillText(\"Particles: \" + nP, canvas.width - 10, canvas.height - 20);\n } // Maintain the population\n\n\n _this.particles.forEach(function (p, i) {\n // Update each particle's position\n p.update(); // Prune the off-canvas particles\n\n if (p.y > canvas.height || p.y < -100 || p.x > canvas.width + 100 || p.x < -100) {\n if (recycle && activeCount <= numberOfPieces) {\n // Replace the particle with a brand new one\n _this.particles[i] = _this.getParticle();\n } else {\n _this.removeParticleAt(i);\n }\n }\n });\n\n return nP > 0 || activeCount < numberOfPieces;\n };\n\n this.canvas = canvas;\n var ctx = this.canvas.getContext('2d');\n\n if (!ctx) {\n throw new Error('Could not get canvas context');\n }\n\n this.context = ctx;\n this.getOptions = getOptions;\n};\n\nvar confettiDefaults = {\n width: typeof window !== 'undefined' ? window.innerWidth : 300,\n height: typeof window !== 'undefined' ? window.innerHeight : 200,\n numberOfPieces: 200,\n friction: 0.99,\n wind: 0,\n gravity: 0.1,\n initialVelocityX: 4,\n initialVelocityY: 10,\n colors: ['#f44336', '#e91e63', '#9c27b0', '#673ab7', '#3f51b5', '#2196f3', '#03a9f4', '#00bcd4', '#009688', '#4CAF50', '#8BC34A', '#CDDC39', '#FFEB3B', '#FFC107', '#FF9800', '#FF5722', '#795548'],\n opacity: 1.0,\n debug: false,\n tweenFunction: tweens.easeInOutQuad,\n tweenDuration: 5000,\n recycle: true,\n run: true\n};\nvar Confetti = /*#__PURE__*/function () {\n function Confetti(canvas, opts) {\n var _this = this;\n\n this.setOptionsWithDefaults = function (opts) {\n var computedConfettiDefaults = {\n confettiSource: {\n x: 0,\n y: 0,\n w: _this.canvas.width,\n h: 0\n }\n };\n _this._options = _extends({}, computedConfettiDefaults, confettiDefaults, opts);\n Object.assign(_this, opts.confettiSource);\n };\n\n this.update = function () {\n var _this$options = _this.options,\n run = _this$options.run,\n onConfettiComplete = _this$options.onConfettiComplete,\n canvas = _this.canvas,\n context = _this.context;\n\n if (run) {\n context.fillStyle = 'white';\n context.clearRect(0, 0, canvas.width, canvas.height);\n }\n\n if (_this.generator.animate()) {\n _this.rafId = requestAnimationFrame(_this.update);\n } else {\n if (onConfettiComplete && typeof onConfettiComplete === 'function' && _this.generator.particlesGenerated > 0) {\n onConfettiComplete.call(_this, _this);\n }\n\n _this._options.run = false;\n }\n };\n\n this.reset = function () {\n if (_this.generator && _this.generator.particlesGenerated > 0) {\n _this.generator.particlesGenerated = 0;\n _this.generator.particles = [];\n _this.generator.lastNumberOfPieces = 0;\n }\n };\n\n this.stop = function () {\n _this.options = {\n run: false\n };\n\n if (_this.rafId) {\n cancelAnimationFrame(_this.rafId);\n _this.rafId = undefined;\n }\n };\n\n this.canvas = canvas;\n var ctx = this.canvas.getContext('2d');\n\n if (!ctx) {\n throw new Error('Could not get canvas context');\n }\n\n this.context = ctx;\n this.generator = new ParticleGeneratorClass(this.canvas, function () {\n return _this.options;\n });\n this.options = opts;\n this.update();\n }\n\n _createClass(Confetti, [{\n key: \"options\",\n get: function get() {\n return this._options;\n },\n set: function set(opts) {\n var lastRunState = this._options && this._options.run;\n var lastRecycleState = this._options && this._options.recycle;\n this.setOptionsWithDefaults(opts);\n\n if (this.generator) {\n Object.assign(this.generator, this.options.confettiSource);\n\n if (typeof opts.recycle === 'boolean' && opts.recycle && lastRecycleState === false) {\n this.generator.lastNumberOfPieces = this.generator.particles.length;\n }\n }\n\n if (typeof opts.run === 'boolean' && opts.run && lastRunState === false) {\n this.update();\n }\n }\n }]);\n\n return Confetti;\n}();\n\nvar ref = /*#__PURE__*/React.createRef();\n\nfunction extractCanvasProps(props) {\n var confettiOptions = {};\n var refs = {};\n var rest = {};\n var confettiOptionKeys = [].concat(Object.keys(confettiDefaults), ['confettiSource', 'drawShape', 'onConfettiComplete']);\n var refProps = ['canvasRef'];\n Object.keys(props).forEach(function (prop) {\n var val = props[prop];\n\n if (confettiOptionKeys.includes(prop)) {\n confettiOptions[prop] = val;\n } else if (refProps.includes(prop)) {\n refProps[prop] = val;\n } else {\n rest[prop] = val;\n }\n });\n return [confettiOptions, rest, refs];\n}\n\nvar ConfettiReactInternal = /*#__PURE__*/function (_Component) {\n _inheritsLoose(ConfettiReactInternal, _Component);\n\n function ConfettiReactInternal(props) {\n var _this;\n\n for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n rest[_key - 1] = arguments[_key];\n }\n\n _this = _Component.call.apply(_Component, [this, props].concat(rest)) || this;\n _this.canvas = React.createRef();\n _this.canvas = props.canvasRef || ref;\n return _this;\n }\n\n var _proto = ConfettiReactInternal.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n if (this.canvas.current) {\n var opts = extractCanvasProps(this.props)[0];\n this.confetti = new Confetti(this.canvas.current, opts);\n }\n };\n\n _proto.componentDidUpdate = function componentDidUpdate() {\n var confettiOptions = extractCanvasProps(this.props)[0];\n\n if (this.confetti) {\n this.confetti.options = confettiOptions;\n }\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n if (this.confetti) {\n this.confetti.stop();\n }\n\n this.confetti = undefined;\n };\n\n _proto.render = function render() {\n var _extractCanvasProps = extractCanvasProps(this.props),\n confettiOptions = _extractCanvasProps[0],\n passedProps = _extractCanvasProps[1];\n\n var canvasStyles = _extends({\n zIndex: 2,\n position: 'absolute',\n pointerEvents: 'none',\n top: 0,\n left: 0,\n bottom: 0,\n right: 0\n }, passedProps.style);\n\n return React.createElement(\"canvas\", Object.assign({\n width: confettiOptions.width,\n height: confettiOptions.height,\n ref: this.canvas\n }, passedProps, {\n style: canvasStyles\n }));\n };\n\n return ConfettiReactInternal;\n}(Component);\n\nConfettiReactInternal.defaultProps = /*#__PURE__*/_extends({}, confettiDefaults);\nConfettiReactInternal.displayName = 'ConfettiReact'; // eslint-disable-next-line react/display-name\n\nvar Index = /*#__PURE__*/React.forwardRef(function (props, _ref) {\n return React.createElement(ConfettiReactInternal, Object.assign({\n canvasRef: ref\n }, props));\n});\n\nexport default Index;\nexport { Index };\n//# sourceMappingURL=confetti-react.esm.js.map\n","import * as React from \"react\";\nimport { useHydrated } from \"./use-hydrated.js\";\n/**\n * Render the children only after the JS has loaded client-side. Use an optional\n * fallback component if the JS is not yet loaded.\n *\n * Example: Render a Chart component if JS loads, renders a simple FakeChart\n * component server-side or if there is no JS. The FakeChart can have only the\n * UI without the behavior or be a loading spinner or skeleton.\n * ```tsx\n * return (\n * <ClientOnly fallback={<FakeChart />}>\n * {() => <Chart />}\n * </ClientOnly>\n * );\n * ```\n */\nexport function ClientOnly({ children, fallback = null }) {\n return useHydrated() ? React.createElement(React.Fragment, null, children()) : React.createElement(React.Fragment, null, fallback);\n}\n","import { Index as ConfettiShower } from 'confetti-react'\nimport { ClientOnly } from 'remix-utils/client-only'\n\nexport function Confetti({ id }: { id?: string | null }) {\n\tif (!id) return null\n\n\treturn (\n\t\t<ClientOnly>\n\t\t\t{() => (\n\t\t\t\t<ConfettiShower\n\t\t\t\t\tkey={id}\n\t\t\t\t\trun={Boolean(id)}\n\t\t\t\t\trecycle={false}\n\t\t\t\t\tnumberOfPieces={800}\n\t\t\t\t\twidth={window.innerWidth}\n\t\t\t\t\theight={window.innerHeight}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</ClientOnly>\n\t)\n}\n","import { useEffect } from 'react'\nimport { Toaster, toast as showToast } from 'sonner'\nimport { type Toast } from '#app/utils/toast.server.ts'\n\nexport function EpicToaster({ toast }: { toast?: Toast | null }) {\n\treturn (\n\t\t<>\n\t\t\t<Toaster closeButton position=\"top-center\" />\n\t\t\t{toast ? <ShowToast toast={toast} /> : null}\n\t\t</>\n\t)\n}\n\nfunction ShowToast({ toast }: { toast: Toast }) {\n\tconst { id, type, title, description } = toast\n\tuseEffect(() => {\n\t\tsetTimeout(() => {\n\t\t\tshowToast[type](title, { id, description })\n\t\t}, 0)\n\t}, [description, id, title, type])\n\treturn null\n}\n","import \"/home/runner/work/epicshop/epicshop/packages/workshop-app/app/styles/app.css?transform-only\";export default \"__VITE_CSS_URL__2f686f6d652f72756e6e65722f776f726b2f6570696373686f702f6570696373686f702f7061636b616765732f776f726b73686f702d6170702f6170702f7374796c65732f6170702e6373733f7472616e73666f726d2d6f6e6c79__\"","import \"/home/runner/work/epicshop/epicshop/packages/workshop-app/app/styles/tailwind.css?transform-only\";export default \"__VITE_CSS_URL__2f686f6d652f72756e6e65722f776f726b2f6570696373686f702f6570696373686f702f7061636b616765732f776f726b73686f702d6170702f6170702f7374796c65732f7461696c77696e642e6373733f7472616e73666f726d2d6f6e6c79__\"","import path from 'node:path'\nimport { getPresentUsers } from '@epic-web/workshop-presence/presence.server'\nimport {\n\tgetApps,\n\tgetWorkshopInstructor,\n\tgetWorkshopSubtitle,\n\tgetWorkshopTitle,\n} from '@epic-web/workshop-utils/apps.server'\nimport {\n\tgetDiscordMember,\n\tgetPreferences,\n\tgetUserInfo,\n\treadOnboardingData,\n} from '@epic-web/workshop-utils/db.server'\nimport { getEnv } from '@epic-web/workshop-utils/env.server'\nimport { makeTimings, time } from '@epic-web/workshop-utils/timing.server'\nimport { cssBundleHref } from '@remix-run/css-bundle'\nimport {\n\tjson,\n\tredirect,\n\ttype HeadersFunction,\n\ttype LinksFunction,\n\ttype LoaderFunctionArgs,\n\ttype MetaFunction,\n} from '@remix-run/node'\nimport {\n\tLinks,\n\tMeta,\n\tOutlet,\n\tScripts,\n\tScrollRestoration,\n\tuseLoaderData,\n\tuseNavigation,\n\tuseRevalidator,\n} from '@remix-run/react'\nimport { useEffect } from 'react'\nimport { useSpinDelay } from 'spin-delay'\nimport { Confetti } from './components/confetti.tsx'\nimport { GeneralErrorBoundary } from './components/error-boundary.tsx'\nimport { EpicProgress } from './components/progress-bar.tsx'\nimport { EpicToaster } from './components/toaster.tsx'\nimport { TooltipProvider } from './components/ui/tooltip.tsx'\nimport { useTheme } from './routes/theme/index.tsx'\nimport { getTheme } from './routes/theme/theme-session.server.ts'\nimport appStylesheetUrl from './styles/app.css?url'\nimport tailwindStylesheetUrl from './styles/tailwind.css?url'\nimport { ClientHintCheck, getHints } from './utils/client-hints.tsx'\nimport { getConfetti } from './utils/confetti.server.ts'\nimport { getProgress } from './utils/epic-api.ts'\nimport { cn, combineHeaders, getDomainUrl, useAltDown } from './utils/misc.tsx'\nimport { Presence } from './utils/presence.tsx'\nimport { getSeoMetaTags } from './utils/seo.ts'\nimport { getToast } from './utils/toast.server.ts'\n\nexport const links: LinksFunction = () => {\n\treturn [\n\t\t{ rel: 'stylesheet', href: '/neogrotesk-font.css' },\n\t\t{\n\t\t\trel: 'stylesheet',\n\t\t\thref: 'https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,200;0,300;0,400;0,500;0,600;1,700&display=swap',\n\t\t},\n\t\t{ rel: 'stylesheet', href: tailwindStylesheetUrl },\n\t\t{ rel: 'stylesheet', href: appStylesheetUrl },\n\t\t...(cssBundleHref ? [{ rel: 'stylesheet', href: cssBundleHref }] : []),\n\t\t{ rel: 'mask-icon', href: '/favicons/favicon.svg' },\n\t\t{\n\t\t\trel: 'alternate icon',\n\t\t\ttype: 'image/png',\n\t\t\thref: '/favicon.png',\n\t\t},\n\t\t{ rel: 'icon', type: 'image/svg+xml', href: '/favicon.svg' },\n\t]\n}\n\nexport const meta: MetaFunction<typeof loader> = ({ data }) => {\n\tif (!data) return []\n\n\treturn getSeoMetaTags({\n\t\tinstructor: data.instructor,\n\t\ttitle: data.workshopTitle,\n\t\tdescription: data.workshopSubtitle,\n\t\trequestInfo: data.requestInfo,\n\t})\n}\n\nexport async function loader({ request }: LoaderFunctionArgs) {\n\tconst timings = makeTimings('rootLoader')\n\tconst onboarding = await readOnboardingData()\n\tif (!ENV.EPICSHOP_DEPLOYED && !onboarding?.finishedTourVideo) {\n\t\tif (new URL(request.url).pathname !== '/onboarding') {\n\t\t\tthrow redirect('/onboarding')\n\t\t}\n\t}\n\tconst workshopTitle = await time(() => getWorkshopTitle(), {\n\t\ttype: 'getWorkshopTitle',\n\t\tdesc: 'getWorkshopTitle in root',\n\t\ttimings,\n\t})\n\tconst workshopSubtitle = await time(() => getWorkshopSubtitle(), {\n\t\ttype: 'getWorkshopSubtitle',\n\t\tdesc: 'getWorkshopSubtitle in root',\n\t\ttimings,\n\t})\n\tconst instructor = await time(() => getWorkshopInstructor(), {\n\t\ttype: 'getInstructor',\n\t\tdesc: 'getInstructor in root',\n\t\ttimings,\n\t})\n\n\tconst preferences = await getPreferences()\n\tconst progress = await getProgress({ timings }).catch((e) => {\n\t\tconsole.error('Failed to get progress', e)\n\t\tconst emptyProgress: Awaited<ReturnType<typeof getProgress>> = []\n\t\treturn emptyProgress\n\t})\n\tconst { toast, headers: toastHeaders } = await getToast(request)\n\tconst { confettiId, headers: confettiHeaders } = getConfetti(request)\n\tconst discordMember = await getDiscordMember()\n\tconst theme = getTheme(request)\n\tconst user = await getUserInfo()\n\tconst apps = await getApps({ request, timings })\n\tconst presentUsers = await getPresentUsers(user, { request, timings })\n\treturn json(\n\t\t{\n\t\t\tworkshopTitle,\n\t\t\tworkshopSubtitle,\n\t\t\tinstructor,\n\t\t\tapps: apps.map(({ name, fullPath, relativePath }) => ({\n\t\t\t\tname,\n\t\t\t\tfullPath,\n\t\t\t\trelativePath,\n\t\t\t})),\n\t\t\tENV: getEnv(),\n\t\t\trequestInfo: {\n\t\t\t\torigin: new URL(request.url).origin,\n\t\t\t\tdomain: getDomainUrl(request),\n\t\t\t\thints: getHints(request),\n\t\t\t\tpath: new URL(request.url).pathname,\n\t\t\t\tsession: { theme },\n\t\t\t\tseparator: path.sep,\n\t\t\t},\n\t\t\tprogress,\n\t\t\tpreferences,\n\t\t\tdiscordMember,\n\t\t\tuser,\n\t\t\ttoast,\n\t\t\tconfettiId,\n\t\t\tpresence: {\n\t\t\t\tusers: presentUsers,\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\theaders: combineHeaders(toastHeaders, confettiHeaders, {\n\t\t\t\t'Server-Timing': timings.toString(),\n\t\t\t}),\n\t\t},\n\t)\n}\n\nexport const headers: HeadersFunction = ({ loaderHeaders }) => {\n\tconst headers = {\n\t\t'Cache-Control': loaderHeaders.get('Cache-Control') ?? '',\n\t\t'Server-Timing': loaderHeaders.get('Server-Timing') ?? '',\n\t}\n\treturn headers\n}\n\nfunction Document({\n\tchildren,\n\tenv = {},\n\tclassName,\n}: {\n\tchildren: React.ReactNode\n\tenv?: Record<string, unknown>\n\tclassName: string\n}) {\n\tconst revalidator = useRevalidator()\n\tuseEffect(() => {\n\t\twindow.__epicshop ??= {}\n\t\twindow.__epicshop.handleFileChange = revalidator.revalidate\n\t}, [revalidator])\n\treturn (\n\t\t<html lang=\"en\" className={className}>\n\t\t\t<head>\n\t\t\t\t<ClientHintCheck />\n\t\t\t\t<Meta />\n\t\t\t\t<meta charSet=\"utf-8\" />\n\t\t\t\t<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\" />\n\t\t\t\t<Links />\n\t\t\t\t<script\n\t\t\t\t\tdangerouslySetInnerHTML={{\n\t\t\t\t\t\t__html: `window.ENV = ${JSON.stringify(env)}`,\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t</head>\n\t\t\t<body className=\"bg-background text-foreground scrollbar-thin scrollbar-thumb-scrollbar h-screen-safe\">\n\t\t\t\t{children}\n\t\t\t\t<ScrollRestoration />\n\t\t\t\t<Scripts />\n\t\t\t\t{ENV.EPICSHOP_DEPLOYED ? null : (\n\t\t\t\t\t<script dangerouslySetInnerHTML={{ __html: getWebsocketJS() }} />\n\t\t\t\t)}\n\t\t\t</body>\n\t\t</html>\n\t)\n}\n\nfunction App() {\n\tconst data = useLoaderData<typeof loader>()\n\tconst navigation = useNavigation()\n\tconst showSpinner = useSpinDelay(navigation.state !== 'idle', {\n\t\tdelay: 400,\n\t\tminDuration: 200,\n\t})\n\tconst altDown = useAltDown()\n\n\tconst theme = useTheme()\n\treturn (\n\t\t<Document\n\t\t\tclassName={cn(\n\t\t\t\t'antialiased h-screen-safe',\n\t\t\t\ttheme,\n\t\t\t\t{ 'cursor-progress': showSpinner },\n\t\t\t\taltDown ? 'alt-down' : null,\n\t\t\t)}\n\t\t\tenv={data.ENV}\n\t\t>\n\t\t\t<Outlet />\n\t\t\t<Confetti id={data.confettiId} />\n\t\t\t<EpicToaster toast={data.toast} />\n\t\t\t<EpicProgress />\n\t\t</Document>\n\t)\n}\n\nexport default function AppWithProviders() {\n\tconst { user } = useLoaderData<typeof loader>()\n\treturn (\n\t\t<Presence user={user}>\n\t\t\t<TooltipProvider>\n\t\t\t\t<App />\n\t\t\t</TooltipProvider>\n\t\t</Presence>\n\t)\n}\n\nexport function ErrorBoundary() {\n\treturn (\n\t\t<Document className=\"h-screen-safe\">\n\t\t\t<GeneralErrorBoundary />\n\t\t</Document>\n\t)\n}\n\nfunction getWebsocketJS() {\n\tconst js = /* javascript */ `\n\tfunction epicLiveReloadConnect(config) {\n\t\tconst protocol = location.protocol === \"https:\" ? \"wss:\" : \"ws:\";\n\t\tconst host = location.hostname;\n\t\tconst port = location.port;\n\t\tconst socketPath = protocol + \"//\" + host + \":\" + port + \"/__ws\";\n\t\tconst ws = new WebSocket(socketPath);\n\t\tfunction handleFileChange(changedFiles) {\n\t\t\tconsole.log(\n\t\t\t\t['🐨 Reloading', window.frameElement?.getAttribute('title')]\n\t\t\t\t\t.filter(Boolean)\n\t\t\t\t\t.join(' '),\n\t\t\t\tchangedFiles\n\t\t\t);\n\t\t\tif (typeof window.__epicshop?.handleFileChange === \"function\") {\n\t\t\t\twindow.__epicshop?.handleFileChange();\n\t\t\t} else {\n\t\t\t\tsetTimeout(() => window.location.reload(), 200);\n\t\t\t}\n\t\t}\n\t\tfunction debounce(fn, ms) {\n\t\t\tlet timeout;\n\t\t\treturn function debouncedFn(...args) {\n\t\t\t\tclearTimeout(timeout);\n\t\t\t\ttimeout = setTimeout(() => fn(...args), ms);\n\t\t\t};\n\t\t}\n\t\tconst debouncedHandleFileChange = debounce(handleFileChange, 50);\n\t\tws.onmessage = (message) => {\n\t\t\tconst event = JSON.parse(message.data);\n\t\t\tif (event.type !== 'epicshop:file-change') return;\n\t\t\tconst { filePaths } = event.data;\n\t\t\tdebouncedHandleFileChange(filePaths);\n\t\t};\n\t\tws.onopen = () => {\n\t\t\tif (config && typeof config.onOpen === \"function\") {\n\t\t\t\tconfig.onOpen();\n\t\t\t}\n\t\t};\n\t\tws.onclose = (event) => {\n\t\t\tif (event.code === 1006) {\n\t\t\t\tconsole.log(\"Epic Web dev server web socket closed. Reconnecting...\");\n\t\t\t\tsetTimeout(\n\t\t\t\t\t() =>\n\t\t\t\t\t\tepicLiveReloadConnect({\n\t\t\t\t\t\t\tonOpen: () => window.location.reload(),\n\t\t\t\t\t\t}),\n\t\t\t\t1000\n\t\t\t\t);\n\t\t\t}\n\t\t};\n\t\tws.onerror = (error) => {\n\t\t\tconsole.log(\"Epic Web dev server web socket error:\");\n\t\t\tconsole.error(error);\n\t\t};\n\t}\n\tepicLiveReloadConnect();\n\t`\n\treturn js\n}\n"],"names":["STORAGE_KEY","ScrollRestoration","getKey","props","isSpaMode","useRemixContext","location","useLocation","matches","useMatches","UNSAFE_useScrollRestoration","key","React.useMemo","userKey","restoreScroll","restoreKey","storedY","error","React.createElement","_extends","tweenFunctions","t","b","_c","d","c","a","p","s","v","tweenFunctions_1","_defineProperties","target","i","descriptor","_createClass","Constructor","protoProps","staticProps","source","_inheritsLoose","subClass","superClass","_setPrototypeOf","o","degreesToRads","degrees","randomRange","min","max","randomInt","ParticleShape","RotationDirection","Particle","context","getOptions","x","y","_this$getOptions","colors","initialVelocityX","initialVelocityY","_proto","_this$getOptions2","gravity","wind","friction","opacity","drawShape","rotateDelta","ParticleGeneratorClass","canvas","_this","newParticleX","newParticleY","particlesGenerated","lastNumberOfPieces","run","recycle","numberOfPieces","debug","tweenFunction","tweenDuration","nP","activeCount","now","tweenInitTime","progressTime","tweenedVal","numToAdd","ctx","confettiDefaults","tweens","Confetti","opts","computedConfettiDefaults","_this$options","onConfettiComplete","lastRunState","lastRecycleState","ref","React","extractCanvasProps","confettiOptions","refs","rest","confettiOptionKeys","refProps","prop","val","ConfettiReactInternal","_Component","_len","_key","_extractCanvasProps","passedProps","canvasStyles","Component","Index","_ref","ClientOnly","children","fallback","useHydrated","React.Fragment","id","jsx","ConfettiShower","EpicToaster","toast","jsxs","Fragment","Toaster","ShowToast","type","title","description","useEffect","showToast","appStylesheetUrl","tailwindStylesheetUrl","links","rel","href","meta","data","getSeoMetaTags","instructor","workshopTitle","workshopSubtitle","requestInfo","Document","env","className","revalidator","useRevalidator","window","__epicshop","handleFileChange","revalidate","lang","ClientHintCheck","Meta","charSet","name","content","Links","dangerouslySetInnerHTML","__html","JSON","stringify","Scripts","ENV","EPICSHOP_DEPLOYED","getWebsocketJS","App","useLoaderData","navigation","useNavigation","showSpinner","useSpinDelay","state","delay","minDuration","altDown","useAltDown","theme","useTheme","cn","Outlet","confettiId","EpicProgress","AppWithProviders","user","Presence","TooltipProvider","ErrorBoundary","GeneralErrorBoundary"],"mappings":"usBAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAeA,IAAIA,EAAc,YAQlB,SAASC,GAAkB,CACzB,OAAAC,EACA,GAAGC,CACL,EAAG,CACD,GAAI,CACF,UAAAC,CACD,EAAGC,GAAe,EACfC,EAAWC,IACXC,EAAUC,IACdC,GAA4B,CAC1B,OAAAR,EACA,WAAYF,CAChB,CAAG,EAQD,IAAIW,EAAMC,EAAAA,QAAc,IAAM,CAC5B,GAAI,CAACV,EAAQ,OAAO,KACpB,IAAIW,EAAUX,EAAOI,EAAUE,CAAO,EACtC,OAAOK,IAAYP,EAAS,IAAMO,EAAU,IAC7C,EAGD,CAAA,CAAE,EAIF,GAAIT,EACF,OAAO,KAET,IAAIU,GAAiB,CAACd,EAAae,IAAe,CAChD,GAAI,CAAC,OAAO,QAAQ,OAAS,CAAC,OAAO,QAAQ,MAAM,IAAK,CACtD,IAAIJ,EAAM,KAAK,OAAQ,EAAC,SAAS,EAAE,EAAE,MAAM,CAAC,EAC5C,OAAO,QAAQ,aAAa,CAC1B,IAAAA,CACD,EAAE,EAAE,CACN,CACD,GAAI,CAEF,IAAIK,EADY,KAAK,MAAM,eAAe,QAAQhB,CAAW,GAAK,IAAI,EAC9Ce,GAAc,OAAO,QAAQ,MAAM,GAAG,EAC1D,OAAOC,GAAY,UACrB,OAAO,SAAS,EAAGA,CAAO,CAE7B,OAAQC,EAAO,CACd,QAAQ,MAAMA,CAAK,EACnB,eAAe,WAAWjB,CAAW,CACtC,CACF,GAAE,SAAQ,EACX,OAAoBkB,EAAmB,cAAC,SAAUC,GAAS,CAAA,EAAIhB,EAAO,CACpE,yBAA0B,GAC1B,wBAAyB,CACvB,OAAQ,IAA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EACKC,EAAUC,IAEVC,EAAQC,KAEb,OAAAzD,EAAAA,KAACqB,EAAA,CACAE,UAAWmC,EACV,4BACAF,EACA,CAAE,kBAAmBP,CAAY,EACjCK,EAAU,WAAa,IACxB,EACAhC,IAAKP,EAAK2B,IAEVnD,SAAA,CAAAK,EAAAA,IAAC+D,EAAO,CAAA,CAAA,EACP/D,EAAA,IAAAjC,GAAA,CAASgC,GAAIoB,EAAK6C,UAAY,CAAA,EAC9BhE,EAAA,IAAAE,GAAA,CAAYC,MAAOgB,EAAKhB,KAAO,CAAA,QAC/B8D,EAAa,CAAA,CAAA,CAAA,CAAA,CACf,CAEF,CAEA,SAAwBC,IAAmB,CACpC,KAAA,CAAEC,KAAAA,CAAK,EAAIjB,EAA6B,EAE7C,OAAAlD,EAAAA,IAACoE,IAASD,KAAAA,EACTxE,SAAAK,EAAA,IAACqE,IACA1E,SAACK,EAAAA,IAAAiD,GAAA,EAAI,EACN,CACD,CAAA,CAEF,CAEO,SAASqB,IAAgB,CAC/B,aACE7C,EAAS,CAAAE,UAAU,gBACnBhC,SAAAK,EAAAA,IAACuE,IAAqB,CACvB,CAAA,CAEF,CAEA,SAASvB,IAAiB,CA2DlB,MA1DqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA2D7B","x_google_ignoreList":[0,1,2,3]}
@@ -1,2 +1,2 @@
1
- import{j as e}from"./index-Czg1ruVn.js";import{L as i}from"./components-wgHiPsTg.js";const l={getSitemapEntries:()=>null};function a(){var r;const s=(r=ENV.EPICSHOP_GITHUB_REPO.match(/github\.com\/(?<org>[^/?]+)\/(?<repo>[^/?]+)/))==null?void 0:r.groups;let o=ENV.EPICSHOP_GITHUB_REPO,t=o;return s!=null&&s.org&&s.repo&&(o=`https://github.com/${s.org}/${s.repo}`,t=`${o}/issues`),e.jsxs("div",{className:"container flex h-full max-w-3xl flex-col items-center justify-center gap-4 p-12",children:[e.jsx("h1",{className:"text-5xl font-bold",children:"Support"}),e.jsx("p",{children:"We're here to support you! Depending on the kind of support you need, you will want to reach out in different places:"}),e.jsxs("ul",{className:"list-disc",children:[e.jsxs("li",{children:["Technical issues:"," ",e.jsx("a",{href:"mailto:team@epicweb.dev",className:"underline",children:"team@epicweb.dev"})," ","– Helpful if you're having trouble with or have feedback for your EpicWeb.dev account or access to course content."]}),e.jsxs("li",{children:["Workshop App:"," ",e.jsx("a",{href:"https://github.com/epicweb-dev/epicshop/issues",className:"underline",children:"github.com/epicweb-dev/epicshop"})," ","– Helpful if you're having trouble with or feedback for the local workshop app."]}),e.jsxs("li",{children:["Workshop content:"," ",e.jsx("a",{href:t,className:"underline",children:o.replace("https://","")})," ","– Open an issue or pull request here to report an issue with the content of this workshop."]}),e.jsxs("li",{children:["Discord:"," ",e.jsx(i,{to:"/discord",className:"underline",children:"/discord"})," ","– Connect your account with discord to get access to the private forum and ask questions of other students and the workshop instructor."]})]})]})}export{a as default,l as handle};
2
- //# sourceMappingURL=support-DilzTPHE.js.map
1
+ import{j as e}from"./index-1cKOJFpX.js";import{L as i}from"./components-C17zb3Us.js";const l={getSitemapEntries:()=>null};function a(){var r;const s=(r=ENV.EPICSHOP_GITHUB_REPO.match(/github\.com\/(?<org>[^/?]+)\/(?<repo>[^/?]+)/))==null?void 0:r.groups;let o=ENV.EPICSHOP_GITHUB_REPO,t=o;return s!=null&&s.org&&s.repo&&(o=`https://github.com/${s.org}/${s.repo}`,t=`${o}/issues`),e.jsxs("div",{className:"container flex h-full max-w-3xl flex-col items-center justify-center gap-4 p-12",children:[e.jsx("h1",{className:"text-5xl font-bold",children:"Support"}),e.jsx("p",{children:"We're here to support you! Depending on the kind of support you need, you will want to reach out in different places:"}),e.jsxs("ul",{className:"list-disc",children:[e.jsxs("li",{children:["Technical issues:"," ",e.jsx("a",{href:"mailto:team@epicweb.dev",className:"underline",children:"team@epicweb.dev"})," ","– Helpful if you're having trouble with or have feedback for your EpicWeb.dev account or access to course content."]}),e.jsxs("li",{children:["Workshop App:"," ",e.jsx("a",{href:"https://github.com/epicweb-dev/epicshop/issues",className:"underline",children:"github.com/epicweb-dev/epicshop"})," ","– Helpful if you're having trouble with or feedback for the local workshop app."]}),e.jsxs("li",{children:["Workshop content:"," ",e.jsx("a",{href:t,className:"underline",children:o.replace("https://","")})," ","– Open an issue or pull request here to report an issue with the content of this workshop."]}),e.jsxs("li",{children:["Discord:"," ",e.jsx(i,{to:"/discord",className:"underline",children:"/discord"})," ","– Connect your account with discord to get access to the private forum and ask questions of other students and the workshop instructor."]})]})]})}export{a as default,l as handle};
2
+ //# sourceMappingURL=support-D6UIcaNu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"support-DilzTPHE.js","sources":["../../../app/routes/_app+/support.tsx"],"sourcesContent":["import { type SEOHandle } from '@nasa-gcn/remix-seo'\nimport { Link } from '@remix-run/react'\n\nexport const handle: SEOHandle = {\n\tgetSitemapEntries: () => null,\n}\n\nexport default function Support() {\n\tconst repoGroups = ENV.EPICSHOP_GITHUB_REPO.match(\n\t\t/github\\.com\\/(?<org>[^/?]+)\\/(?<repo>[^/?]+)/,\n\t)?.groups\n\n\tlet repoUrl = ENV.EPICSHOP_GITHUB_REPO\n\tlet repoIssuesUrl = repoUrl\n\tif (repoGroups?.org && repoGroups.repo) {\n\t\trepoUrl = `https://github.com/${repoGroups.org}/${repoGroups.repo}`\n\t\trepoIssuesUrl = `${repoUrl}/issues`\n\t}\n\treturn (\n\t\t<div className=\"container flex h-full max-w-3xl flex-col items-center justify-center gap-4 p-12\">\n\t\t\t<h1 className=\"text-5xl font-bold\">Support</h1>\n\t\t\t<p>\n\t\t\t\tWe're here to support you! Depending on the kind of support you need,\n\t\t\t\tyou will want to reach out in different places:\n\t\t\t</p>\n\t\t\t<ul className=\"list-disc\">\n\t\t\t\t<li>\n\t\t\t\t\tTechnical issues:{' '}\n\t\t\t\t\t<a href=\"mailto:team@epicweb.dev\" className=\"underline\">\n\t\t\t\t\t\tteam@epicweb.dev\n\t\t\t\t\t</a>{' '}\n\t\t\t\t\t– Helpful if you're having trouble with or have feedback for your\n\t\t\t\t\tEpicWeb.dev account or access to course content.\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\tWorkshop App:{' '}\n\t\t\t\t\t<a\n\t\t\t\t\t\thref=\"https://github.com/epicweb-dev/epicshop/issues\"\n\t\t\t\t\t\tclassName=\"underline\"\n\t\t\t\t\t>\n\t\t\t\t\t\tgithub.com/epicweb-dev/epicshop\n\t\t\t\t\t</a>{' '}\n\t\t\t\t\t– Helpful if you're having trouble with or feedback for the local\n\t\t\t\t\tworkshop app.\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\tWorkshop content:{' '}\n\t\t\t\t\t<a href={repoIssuesUrl} className=\"underline\">\n\t\t\t\t\t\t{repoUrl.replace('https://', '')}\n\t\t\t\t\t</a>{' '}\n\t\t\t\t\t– Open an issue or pull request here to report an issue with the\n\t\t\t\t\tcontent of this workshop.\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\tDiscord:{' '}\n\t\t\t\t\t<Link to=\"/discord\" className=\"underline\">\n\t\t\t\t\t\t/discord\n\t\t\t\t\t</Link>{' '}\n\t\t\t\t\t– Connect your account with discord to get access to the private forum\n\t\t\t\t\tand ask questions of other students and the workshop instructor.\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t)\n}\n"],"names":["handle","getSitemapEntries","Support","repoGroups","ENV","EPICSHOP_GITHUB_REPO","match","groups","repoUrl","repoIssuesUrl","org","repo","jsxs","className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file":"support-D6UIcaNu.js","sources":["../../../app/routes/_app+/support.tsx"],"sourcesContent":["import { type SEOHandle } from '@nasa-gcn/remix-seo'\nimport { Link } from '@remix-run/react'\n\nexport const handle: SEOHandle = {\n\tgetSitemapEntries: () => null,\n}\n\nexport default function Support() {\n\tconst repoGroups = ENV.EPICSHOP_GITHUB_REPO.match(\n\t\t/github\\.com\\/(?<org>[^/?]+)\\/(?<repo>[^/?]+)/,\n\t)?.groups\n\n\tlet repoUrl = ENV.EPICSHOP_GITHUB_REPO\n\tlet repoIssuesUrl = repoUrl\n\tif (repoGroups?.org && repoGroups.repo) {\n\t\trepoUrl = `https://github.com/${repoGroups.org}/${repoGroups.repo}`\n\t\trepoIssuesUrl = `${repoUrl}/issues`\n\t}\n\treturn (\n\t\t<div className=\"container flex h-full max-w-3xl flex-col items-center justify-center gap-4 p-12\">\n\t\t\t<h1 className=\"text-5xl font-bold\">Support</h1>\n\t\t\t<p>\n\t\t\t\tWe're here to support you! Depending on the kind of support you need,\n\t\t\t\tyou will want to reach out in different places:\n\t\t\t</p>\n\t\t\t<ul className=\"list-disc\">\n\t\t\t\t<li>\n\t\t\t\t\tTechnical issues:{' '}\n\t\t\t\t\t<a href=\"mailto:team@epicweb.dev\" className=\"underline\">\n\t\t\t\t\t\tteam@epicweb.dev\n\t\t\t\t\t</a>{' '}\n\t\t\t\t\t– Helpful if you're having trouble with or have feedback for your\n\t\t\t\t\tEpicWeb.dev account or access to course content.\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\tWorkshop App:{' '}\n\t\t\t\t\t<a\n\t\t\t\t\t\thref=\"https://github.com/epicweb-dev/epicshop/issues\"\n\t\t\t\t\t\tclassName=\"underline\"\n\t\t\t\t\t>\n\t\t\t\t\t\tgithub.com/epicweb-dev/epicshop\n\t\t\t\t\t</a>{' '}\n\t\t\t\t\t– Helpful if you're having trouble with or feedback for the local\n\t\t\t\t\tworkshop app.\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\tWorkshop content:{' '}\n\t\t\t\t\t<a href={repoIssuesUrl} className=\"underline\">\n\t\t\t\t\t\t{repoUrl.replace('https://', '')}\n\t\t\t\t\t</a>{' '}\n\t\t\t\t\t– Open an issue or pull request here to report an issue with the\n\t\t\t\t\tcontent of this workshop.\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\tDiscord:{' '}\n\t\t\t\t\t<Link to=\"/discord\" className=\"underline\">\n\t\t\t\t\t\t/discord\n\t\t\t\t\t</Link>{' '}\n\t\t\t\t\t– Connect your account with discord to get access to the private forum\n\t\t\t\t\tand ask questions of other students and the workshop instructor.\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t)\n}\n"],"names":["handle","getSitemapEntries","Support","repoGroups","ENV","EPICSHOP_GITHUB_REPO","match","groups","repoUrl","repoIssuesUrl","org","repo","jsxs","className","children","jsx","href","replace","Link","to"],"mappings":"qFAGO,MAAMA,EAAoB,CAChCC,kBAAmBA,IAAM,IAC1B,EAEA,SAAwBC,GAAU,OAC3B,MAAAC,GAAaC,EAAAA,IAAIC,qBAAqBC,MAC3C,8CACD,IAFmBF,YAAAA,EAEhBG,OAEH,IAAIC,EAAUJ,IAAIC,qBACdI,EAAgBD,EAChB,OAAAL,GAAAA,MAAAA,EAAYO,KAAOP,EAAWQ,OACjCH,EAAU,sBAAsBL,EAAWO,GAAG,IAAIP,EAAWQ,IAAI,GACjEF,EAAgB,GAAGD,CAAO,WAG1BI,EAAAA,KAAC,MAAI,CAAAC,UAAU,kFACdC,SAAA,CAACC,EAAA,IAAA,KAAA,CAAGF,UAAU,qBAAqBC,SAAO,SAAA,CAAA,EAC1CC,EAAA,IAAC,KAAED,SAGH,uHAAA,CAAA,EACAF,EAAA,KAAC,KAAG,CAAAC,UAAU,YACbC,SAAA,CAAAF,EAAA,KAAC,KAAG,CAAAE,SAAA,CAAA,oBACe,UACjB,IAAE,CAAAE,KAAK,0BAA0BH,UAAU,YAAYC,SAExD,kBAAA,CAAA,EAAK,IAAI,oHAAA,CAGV,CAAA,SACC,KAAG,CAAAA,SAAA,CAAA,gBACW,IACdC,EAAAA,IAAC,IAAA,CACAC,KAAK,iDACLH,UAAU,YACVC,SAAA,iCAAA,CAED,EAAK,IAAI,iFAAA,CAGV,CAAA,SACC,KAAG,CAAAA,SAAA,CAAA,oBACe,IAClBC,EAAAA,IAAC,IAAE,CAAAC,KAAMP,EAAeI,UAAU,YAChCC,SAAQN,EAAAS,QAAQ,WAAY,EAAE,CAChC,CAAA,EAAK,IAAI,4FAAA,CAGV,CAAA,SACC,KAAG,CAAAH,SAAA,CAAA,WACM,UACRI,EAAK,CAAAC,GAAG,WAAWN,UAAU,YAAYC,SAE1C,UAAA,CAAA,EAAQ,IAAI,yIAAA,CAGb,CAAA,CAAA,CACD,CAAA,CAAA,CACD,CAAA,CAEF"}
@@ -1,2 +1,2 @@
1
- import{r as u,j as P,B as tn}from"./index-Czg1ruVn.js";import{r as _e}from"./components-wgHiPsTg.js";import{c as nn}from"./misc-S5ZD98sI.js";function V(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function on(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function at(...e){return t=>e.forEach(n=>on(n,t))}function J(...e){return u.useCallback(at(...e),e)}function lr(e,t){const n=u.createContext(t);function o(i){const{children:s,...a}=i,c=u.useMemo(()=>a,Object.values(a));return P.jsx(n.Provider,{value:c,children:s})}function r(i){const s=u.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return o.displayName=e+"Provider",[o,r]}function lt(e,t=[]){let n=[];function o(i,s){const a=u.createContext(s),c=n.length;n=[...n,s];function l(d){const{scope:h,children:p,...m}=d,g=(h==null?void 0:h[e][c])||a,x=u.useMemo(()=>m,Object.values(m));return P.jsx(g.Provider,{value:x,children:p})}function f(d,h){const p=(h==null?void 0:h[e][c])||a,m=u.useContext(p);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,f]}const r=()=>{const i=n.map(s=>u.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return u.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return r.scopeName=e,[o,rn(r,...t)]}function rn(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const s=o.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var ut=u.forwardRef((e,t)=>{const{children:n,...o}=e,r=u.Children.toArray(n),i=r.find(sn);if(i){const s=i.props.children,a=r.map(c=>c===i?u.Children.count(s)>1?u.Children.only(null):u.isValidElement(s)?s.props.children:null:c);return P.jsx(Te,{...o,ref:t,children:u.isValidElement(s)?u.cloneElement(s,void 0,a):null})}return P.jsx(Te,{...o,ref:t,children:n})});ut.displayName="Slot";var Te=u.forwardRef((e,t)=>{const{children:n,...o}=e;if(u.isValidElement(n)){const r=an(n);return u.cloneElement(n,{...cn(o,n.props),ref:t?at(t,r):r})}return u.Children.count(n)>1?u.Children.only(null):null});Te.displayName="SlotClone";var ft=({children:e})=>P.jsx(P.Fragment,{children:e});function sn(e){return u.isValidElement(e)&&e.type===ft}function cn(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...a)=>{i(...a),r(...a)}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function an(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ln=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Q=ln.reduce((e,t)=>{const n=u.forwardRef((o,r)=>{const{asChild:i,...s}=o,a=i?ut:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),P.jsx(a,{...s,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function un(e,t){e&&_e.flushSync(()=>e.dispatchEvent(t))}function re(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function fn(e,t=globalThis==null?void 0:globalThis.document){const n=re(e);u.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var dn="DismissableLayer",Se="dismissableLayer.update",pn="dismissableLayer.pointerDownOutside",hn="dismissableLayer.focusOutside",Ze,dt=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pt=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=u.useContext(dt),[f,d]=u.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=u.useState({}),m=J(t,E=>d(E)),g=Array.from(l.layers),[x]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(x),y=f?g.indexOf(f):-1,C=l.layersWithOutsidePointerEventsDisabled.size>0,w=y>=v,b=xn(E=>{const O=E.target,L=[...l.branches].some(T=>T.contains(O));!w||L||(r==null||r(E),s==null||s(E),E.defaultPrevented||a==null||a())},h),A=vn(E=>{const O=E.target;[...l.branches].some(T=>T.contains(O))||(i==null||i(E),s==null||s(E),E.defaultPrevented||a==null||a())},h);return fn(E=>{y===l.layers.size-1&&(o==null||o(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},h),u.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Ze=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),Je(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Ze)}},[f,h,n,l]),u.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),Je())},[f,l]),u.useEffect(()=>{const E=()=>p({});return document.addEventListener(Se,E),()=>document.removeEventListener(Se,E)},[]),P.jsx(Q.div,{...c,ref:m,style:{pointerEvents:C?w?"auto":"none":void 0,...e.style},onFocusCapture:V(e.onFocusCapture,A.onFocusCapture),onBlurCapture:V(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:V(e.onPointerDownCapture,b.onPointerDownCapture)})});pt.displayName=dn;var mn="DismissableLayerBranch",gn=u.forwardRef((e,t)=>{const n=u.useContext(dt),o=u.useRef(null),r=J(t,o);return u.useEffect(()=>{const i=o.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),P.jsx(Q.div,{...e,ref:r})});gn.displayName=mn;function xn(e,t=globalThis==null?void 0:globalThis.document){const n=re(e),o=u.useRef(!1),r=u.useRef(()=>{});return u.useEffect(()=>{const i=a=>{if(a.target&&!o.current){let c=function(){ht(pn,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=c,t.addEventListener("click",r.current,{once:!0})):c()}else t.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function vn(e,t=globalThis==null?void 0:globalThis.document){const n=re(e),o=u.useRef(!1);return u.useEffect(()=>{const r=i=>{i.target&&!o.current&&ht(hn,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Je(){const e=new CustomEvent(Se);document.dispatchEvent(e)}function ht(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?un(r,i):r.dispatchEvent(i)}var te=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{},yn=tn.useId||(()=>{}),wn=0;function bn(e){const[t,n]=u.useState(yn());return te(()=>{e||n(o=>o??String(wn++))},[e]),e||(t?`radix-${t}`:"")}const Cn=["top","right","bottom","left"],H=Math.min,W=Math.max,ge=Math.round,pe=Math.floor,G=e=>({x:e,y:e}),En={left:"right",right:"left",bottom:"top",top:"bottom"},Pn={start:"end",end:"start"};function De(e,t,n){return W(e,H(t,n))}function U(e,t){return typeof e=="function"?e(t):e}function Y(e){return e.split("-")[0]}function ie(e){return e.split("-")[1]}function ke(e){return e==="x"?"y":"x"}function je(e){return e==="y"?"height":"width"}function q(e){return["top","bottom"].includes(Y(e))?"y":"x"}function $e(e){return ke(q(e))}function An(e,t,n){n===void 0&&(n=!1);const o=ie(e),r=$e(e),i=je(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=xe(s)),[s,xe(s)]}function Rn(e){const t=xe(e);return[Ne(e),t,Ne(t)]}function Ne(e){return e.replace(/start|end/g,t=>Pn[t])}function On(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:s;default:return[]}}function Tn(e,t,n,o){const r=ie(e);let i=On(Y(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(Ne)))),i}function xe(e){return e.replace(/left|right|bottom|top/g,t=>En[t])}function Sn(e){return{top:0,right:0,bottom:0,left:0,...e}}function mt(e){return typeof e!="number"?Sn(e):{top:e,right:e,bottom:e,left:e}}function ve(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Qe(e,t,n){let{reference:o,floating:r}=e;const i=q(t),s=$e(t),a=je(s),c=Y(t),l=i==="y",f=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,h=o[a]/2-r[a]/2;let p;switch(c){case"top":p={x:f,y:o.y-r.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(ie(t)){case"start":p[s]-=h*(n&&l?-1:1);break;case"end":p[s]+=h*(n&&l?-1:1);break}return p}const Dn=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:d}=Qe(l,o,c),h=o,p={},m=0;for(let g=0;g<a.length;g++){const{name:x,fn:v}=a[g],{x:y,y:C,data:w,reset:b}=await v({x:f,y:d,initialPlacement:o,placement:h,strategy:r,middlewareData:p,rects:l,platform:s,elements:{reference:e,floating:t}});f=y??f,d=C??d,p={...p,[x]:{...p[x],...w}},b&&m<=50&&(m++,typeof b=="object"&&(b.placement&&(h=b.placement),b.rects&&(l=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):b.rects),{x:f,y:d}=Qe(l,h,c)),g=-1)}return{x:f,y:d,placement:h,strategy:r,middlewareData:p}};async function ae(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=U(t,e),m=mt(p),x=a[h?d==="floating"?"reference":"floating":d],v=ve(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:f,strategy:c})),y=d==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),w=await(i.isElement==null?void 0:i.isElement(C))?await(i.getScale==null?void 0:i.getScale(C))||{x:1,y:1}:{x:1,y:1},b=ve(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:C,strategy:c}):y);return{top:(v.top-b.top+m.top)/w.y,bottom:(b.bottom-v.bottom+m.bottom)/w.y,left:(v.left-b.left+m.left)/w.x,right:(b.right-v.right+m.right)/w.x}}const Nn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:f=0}=U(e,t)||{};if(l==null)return{};const d=mt(f),h={x:n,y:o},p=$e(r),m=je(p),g=await s.getDimensions(l),x=p==="y",v=x?"top":"left",y=x?"bottom":"right",C=x?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-h[p]-i.floating[m],b=h[p]-i.reference[p],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let E=A?A[C]:0;(!E||!await(s.isElement==null?void 0:s.isElement(A)))&&(E=a.floating[C]||i.floating[m]);const O=w/2-b/2,L=E/2-g[m]/2-1,T=H(d[v],L),_=H(d[y],L),k=T,j=E-g[m]-_,S=E/2-g[m]/2+O,M=De(k,S,j),$=!c.arrow&&ie(r)!=null&&S!==M&&i.reference[m]/2-(S<k?T:_)-g[m]/2<0,R=$?S<k?S-k:S-j:0;return{[p]:h[p]+R,data:{[p]:M,centerOffset:S-M-R,...$&&{alignmentOffset:R}},reset:$}}}),Ln=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...x}=U(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=Y(r),y=q(a),C=Y(a)===a,w=await(c.isRTL==null?void 0:c.isRTL(l.floating)),b=h||(C||!g?[xe(a)]:Rn(a)),A=m!=="none";!h&&A&&b.push(...Tn(a,g,m,w));const E=[a,...b],O=await ae(t,x),L=[];let T=((o=i.flip)==null?void 0:o.overflows)||[];if(f&&L.push(O[v]),d){const S=An(r,s,w);L.push(O[S[0]],O[S[1]])}if(T=[...T,{placement:r,overflows:L}],!L.every(S=>S<=0)){var _,k;const S=(((_=i.flip)==null?void 0:_.index)||0)+1,M=E[S];if(M)return{data:{index:S,overflows:T},reset:{placement:M}};let $=(k=T.filter(R=>R.overflows[0]<=0).sort((R,D)=>R.overflows[1]-D.overflows[1])[0])==null?void 0:k.placement;if(!$)switch(p){case"bestFit":{var j;const R=(j=T.filter(D=>{if(A){const N=q(D.placement);return N===y||N==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(N=>N>0).reduce((N,Re)=>N+Re,0)]).sort((D,N)=>D[1]-N[1])[0])==null?void 0:j[0];R&&($=R);break}case"initialPlacement":$=a;break}if(r!==$)return{reset:{placement:$}}}return{}}}};function et(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tt(e){return Cn.some(t=>e[t]>=0)}const Mn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=U(e,t);switch(o){case"referenceHidden":{const i=await ae(t,{...r,elementContext:"reference"}),s=et(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:tt(s)}}}case"escaped":{const i=await ae(t,{...r,altBoundary:!0}),s=et(i,n.floating);return{data:{escapedOffsets:s,escaped:tt(s)}}}default:return{}}}}};async function _n(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=Y(n),a=ie(n),c=q(n)==="y",l=["left","top"].includes(s)?-1:1,f=i&&c?-1:1,d=U(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof m=="number"&&(p=a==="end"?m*-1:m),c?{x:p*f,y:h*l}:{x:h*l,y:p*f}}const kn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,c=await _n(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:s}}}}},jn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:x=>{let{x:v,y}=x;return{x:v,y}}},...c}=U(e,t),l={x:n,y:o},f=await ae(t,c),d=q(Y(r)),h=ke(d);let p=l[h],m=l[d];if(i){const x=h==="y"?"top":"left",v=h==="y"?"bottom":"right",y=p+f[x],C=p-f[v];p=De(y,p,C)}if(s){const x=d==="y"?"top":"left",v=d==="y"?"bottom":"right",y=m+f[x],C=m-f[v];m=De(y,m,C)}const g=a.fn({...t,[h]:p,[d]:m});return{...g,data:{x:g.x-n,y:g.y-o}}}}},$n=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=U(e,t),f={x:n,y:o},d=q(r),h=ke(d);let p=f[h],m=f[d];const g=U(a,t),x=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const C=h==="y"?"height":"width",w=i.reference[h]-i.floating[C]+x.mainAxis,b=i.reference[h]+i.reference[C]-x.mainAxis;p<w?p=w:p>b&&(p=b)}if(l){var v,y;const C=h==="y"?"width":"height",w=["top","left"].includes(Y(r)),b=i.reference[d]-i.floating[C]+(w&&((v=s.offset)==null?void 0:v[d])||0)+(w?0:x.crossAxis),A=i.reference[d]+i.reference[C]+(w?0:((y=s.offset)==null?void 0:y[d])||0)-(w?x.crossAxis:0);m<b?m=b:m>A&&(m=A)}return{[h]:p,[d]:m}}}},Wn=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:i}=t,{apply:s=()=>{},...a}=U(e,t),c=await ae(t,a),l=Y(n),f=ie(n),d=q(n)==="y",{width:h,height:p}=o.floating;let m,g;l==="top"||l==="bottom"?(m=l,g=f===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(g=l,m=f==="end"?"top":"bottom");const x=p-c.top-c.bottom,v=h-c.left-c.right,y=H(p-c[m],x),C=H(h-c[g],v),w=!t.middlewareData.shift;let b=y,A=C;if(d?A=f||w?H(C,v):v:b=f||w?H(y,x):x,w&&!f){const O=W(c.left,0),L=W(c.right,0),T=W(c.top,0),_=W(c.bottom,0);d?A=h-2*(O!==0||L!==0?O+L:W(c.left,c.right)):b=p-2*(T!==0||_!==0?T+_:W(c.top,c.bottom))}await s({...t,availableWidth:A,availableHeight:b});const E=await r.getDimensions(i.floating);return h!==E.width||p!==E.height?{reset:{rects:!0}}:{}}}};function se(e){return gt(e)?(e.nodeName||"").toLowerCase():"#document"}function I(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function X(e){var t;return(t=(gt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function gt(e){return e instanceof Node||e instanceof I(e).Node}function B(e){return e instanceof Element||e instanceof I(e).Element}function z(e){return e instanceof HTMLElement||e instanceof I(e).HTMLElement}function nt(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof I(e).ShadowRoot}function ue(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=F(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function In(e){return["table","td","th"].includes(se(e))}function we(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function We(e){const t=Ie(),n=F(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Fn(e){let t=K(e);for(;z(t)&&!ne(t);){if(we(t))return null;if(We(t))return t;t=K(t)}return null}function Ie(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ne(e){return["html","body","#document"].includes(se(e))}function F(e){return I(e).getComputedStyle(e)}function be(e){return B(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function K(e){if(se(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nt(e)&&e.host||X(e);return nt(t)?t.host:t}function xt(e){const t=K(e);return ne(t)?e.ownerDocument?e.ownerDocument.body:e.body:z(t)&&ue(t)?t:xt(t)}function le(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=xt(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=I(r);return i?t.concat(s,s.visualViewport||[],ue(r)?r:[],s.frameElement&&n?le(s.frameElement):[]):t.concat(r,le(r,[],n))}function vt(e){const t=F(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=z(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=ge(n)!==i||ge(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function Fe(e){return B(e)?e:e.contextElement}function ee(e){const t=Fe(e);if(!z(t))return G(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=vt(t);let s=(i?ge(n.width):n.width)/o,a=(i?ge(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Hn=G(0);function yt(e){const t=I(e);return!Ie()||!t.visualViewport?Hn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Bn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==I(e)?!1:t}function Z(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Fe(e);let s=G(1);t&&(o?B(o)&&(s=ee(o)):s=ee(e));const a=Bn(i,n,o)?yt(i):G(0);let c=(r.left+a.x)/s.x,l=(r.top+a.y)/s.y,f=r.width/s.x,d=r.height/s.y;if(i){const h=I(i),p=o&&B(o)?I(o):o;let m=h,g=m.frameElement;for(;g&&o&&p!==m;){const x=ee(g),v=g.getBoundingClientRect(),y=F(g),C=v.left+(g.clientLeft+parseFloat(y.paddingLeft))*x.x,w=v.top+(g.clientTop+parseFloat(y.paddingTop))*x.y;c*=x.x,l*=x.y,f*=x.x,d*=x.y,c+=C,l+=w,m=I(g),g=m.frameElement}}return ve({width:f,height:d,x:c,y:l})}function zn(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=X(o),a=t?we(t.floating):!1;if(o===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=G(1);const f=G(0),d=z(o);if((d||!d&&!i)&&((se(o)!=="body"||ue(s))&&(c=be(o)),z(o))){const h=Z(o);l=ee(o),f.x=h.x+o.clientLeft,f.y=h.y+o.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+f.x,y:n.y*l.y-c.scrollTop*l.y+f.y}}function Vn(e){return Array.from(e.getClientRects())}function wt(e){return Z(X(e)).left+be(e).scrollLeft}function Un(e){const t=X(e),n=be(e),o=e.ownerDocument.body,r=W(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=W(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+wt(e);const a=-n.scrollTop;return F(o).direction==="rtl"&&(s+=W(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:a}}function Yn(e,t){const n=I(e),o=X(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,c=0;if(r){i=r.width,s=r.height;const l=Ie();(!l||l&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:s,x:a,y:c}}function Xn(e,t){const n=Z(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=z(e)?ee(e):G(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=r*i.x,l=o*i.y;return{width:s,height:a,x:c,y:l}}function ot(e,t,n){let o;if(t==="viewport")o=Yn(e,n);else if(t==="document")o=Un(X(e));else if(B(t))o=Xn(t,n);else{const r=yt(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return ve(o)}function bt(e,t){const n=K(e);return n===t||!B(n)||ne(n)?!1:F(n).position==="fixed"||bt(n,t)}function Gn(e,t){const n=t.get(e);if(n)return n;let o=le(e,[],!1).filter(a=>B(a)&&se(a)!=="body"),r=null;const i=F(e).position==="fixed";let s=i?K(e):e;for(;B(s)&&!ne(s);){const a=F(s),c=We(s);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||ue(s)&&!c&&bt(e,s))?o=o.filter(f=>f!==s):r=a,s=K(s)}return t.set(e,o),o}function qn(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?we(t)?[]:Gn(t,this._c):[].concat(n),o],a=s[0],c=s.reduce((l,f)=>{const d=ot(t,f,r);return l.top=W(d.top,l.top),l.right=H(d.right,l.right),l.bottom=H(d.bottom,l.bottom),l.left=W(d.left,l.left),l},ot(t,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Kn(e){const{width:t,height:n}=vt(e);return{width:t,height:n}}function Zn(e,t,n){const o=z(t),r=X(t),i=n==="fixed",s=Z(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=G(0);if(o||!o&&!i)if((se(t)!=="body"||ue(r))&&(a=be(t)),o){const d=Z(t,!0,i,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else r&&(c.x=wt(r));const l=s.left+a.scrollLeft-c.x,f=s.top+a.scrollTop-c.y;return{x:l,y:f,width:s.width,height:s.height}}function Oe(e){return F(e).position==="static"}function rt(e,t){return!z(e)||F(e).position==="fixed"?null:t?t(e):e.offsetParent}function Ct(e,t){const n=I(e);if(we(e))return n;if(!z(e)){let r=K(e);for(;r&&!ne(r);){if(B(r)&&!Oe(r))return r;r=K(r)}return n}let o=rt(e,t);for(;o&&In(o)&&Oe(o);)o=rt(o,t);return o&&ne(o)&&Oe(o)&&!We(o)?n:o||Fn(e)||n}const Jn=async function(e){const t=this.getOffsetParent||Ct,n=this.getDimensions,o=await n(e.floating);return{reference:Zn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Qn(e){return F(e).direction==="rtl"}const eo={convertOffsetParentRelativeRectToViewportRelativeRect:zn,getDocumentElement:X,getClippingRect:qn,getOffsetParent:Ct,getElementRects:Jn,getClientRects:Vn,getDimensions:Kn,getScale:ee,isElement:B,isRTL:Qn};function to(e,t){let n=null,o;const r=X(e);function i(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const{left:l,top:f,width:d,height:h}=e.getBoundingClientRect();if(a||t(),!d||!h)return;const p=pe(f),m=pe(r.clientWidth-(l+d)),g=pe(r.clientHeight-(f+h)),x=pe(l),y={rootMargin:-p+"px "+-m+"px "+-g+"px "+-x+"px",threshold:W(0,H(1,c))||1};let C=!0;function w(b){const A=b[0].intersectionRatio;if(A!==c){if(!C)return s();A?s(!1,A):o=setTimeout(()=>{s(!1,1e-7)},1e3)}C=!1}try{n=new IntersectionObserver(w,{...y,root:r.ownerDocument})}catch{n=new IntersectionObserver(w,y)}n.observe(e)}return s(!0),i}function no(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,l=Fe(e),f=r||i?[...l?le(l):[],...le(t)]:[];f.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const d=l&&a?to(l,n):null;let h=-1,p=null;s&&(p=new ResizeObserver(v=>{let[y]=v;y&&y.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var C;(C=p)==null||C.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,g=c?Z(e):null;c&&x();function x(){const v=Z(e);g&&(v.x!==g.x||v.y!==g.y||v.width!==g.width||v.height!==g.height)&&n(),g=v,m=requestAnimationFrame(x)}return n(),()=>{var v;f.forEach(y=>{r&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),d==null||d(),(v=p)==null||v.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const oo=kn,ro=jn,io=Ln,so=Wn,co=Mn,it=Nn,ao=$n,lo=(e,t,n)=>{const o=new Map,r={platform:eo,...n},i={...r.platform,_c:o};return Dn(e,t,{...r,platform:i})};var me=typeof document<"u"?u.useLayoutEffect:u.useEffect;function ye(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!ye(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!ye(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Et(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function st(e,t){const n=Et(e);return Math.round(t*n)/n}function ct(e){const t=u.useRef(e);return me(()=>{t.current=e}),t}function uo(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[f,d]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=u.useState(o);ye(h,o)||p(o);const[m,g]=u.useState(null),[x,v]=u.useState(null),y=u.useCallback(R=>{R!==A.current&&(A.current=R,g(R))},[]),C=u.useCallback(R=>{R!==E.current&&(E.current=R,v(R))},[]),w=i||m,b=s||x,A=u.useRef(null),E=u.useRef(null),O=u.useRef(f),L=c!=null,T=ct(c),_=ct(r),k=u.useCallback(()=>{if(!A.current||!E.current)return;const R={placement:t,strategy:n,middleware:h};_.current&&(R.platform=_.current),lo(A.current,E.current,R).then(D=>{const N={...D,isPositioned:!0};j.current&&!ye(O.current,N)&&(O.current=N,_e.flushSync(()=>{d(N)}))})},[h,t,n,_]);me(()=>{l===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d(R=>({...R,isPositioned:!1})))},[l]);const j=u.useRef(!1);me(()=>(j.current=!0,()=>{j.current=!1}),[]),me(()=>{if(w&&(A.current=w),b&&(E.current=b),w&&b){if(T.current)return T.current(w,b,k);k()}},[w,b,k,T,L]);const S=u.useMemo(()=>({reference:A,floating:E,setReference:y,setFloating:C}),[y,C]),M=u.useMemo(()=>({reference:w,floating:b}),[w,b]),$=u.useMemo(()=>{const R={position:n,left:0,top:0};if(!M.floating)return R;const D=st(M.floating,f.x),N=st(M.floating,f.y);return a?{...R,transform:"translate("+D+"px, "+N+"px)",...Et(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:D,top:N}},[n,a,M.floating,f.x,f.y]);return u.useMemo(()=>({...f,update:k,refs:S,elements:M,floatingStyles:$}),[f,k,S,M,$])}const fo=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?it({element:o.current,padding:r}).fn(n):{}:o?it({element:o,padding:r}).fn(n):{}}}},po=(e,t)=>({...oo(e),options:[e,t]}),ho=(e,t)=>({...ro(e),options:[e,t]}),mo=(e,t)=>({...ao(e),options:[e,t]}),go=(e,t)=>({...io(e),options:[e,t]}),xo=(e,t)=>({...so(e),options:[e,t]}),vo=(e,t)=>({...co(e),options:[e,t]}),yo=(e,t)=>({...fo(e),options:[e,t]});var wo="Arrow",Pt=u.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...i}=e;return P.jsx(Q.svg,{...i,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:P.jsx("polygon",{points:"0,0 30,0 15,10"})})});Pt.displayName=wo;var bo=Pt;function Co(e){const[t,n]=u.useState(void 0);return te(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var He="Popper",[At,Rt]=lt(He),[Eo,Ot]=At(He),Tt=e=>{const{__scopePopper:t,children:n}=e,[o,r]=u.useState(null);return P.jsx(Eo,{scope:t,anchor:o,onAnchorChange:r,children:n})};Tt.displayName=He;var St="PopperAnchor",Dt=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=Ot(St,n),s=u.useRef(null),a=J(t,s);return u.useEffect(()=>{i.onAnchorChange((o==null?void 0:o.current)||s.current)}),o?null:P.jsx(Q.div,{...r,ref:a})});Dt.displayName=St;var Be="PopperContent",[Po,Ao]=At(Be),Nt=u.forwardRef((e,t)=>{var Ve,Ue,Ye,Xe,Ge,qe;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:m,...g}=e,x=Ot(Be,n),[v,y]=u.useState(null),C=J(t,ce=>y(ce)),[w,b]=u.useState(null),A=Co(w),E=(A==null?void 0:A.width)??0,O=(A==null?void 0:A.height)??0,L=o+(i!=="center"?"-"+i:""),T=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},_=Array.isArray(l)?l:[l],k=_.length>0,j={padding:T,boundary:_.filter(Oo),altBoundary:k},{refs:S,floatingStyles:M,placement:$,isPositioned:R,middlewareData:D}=uo({strategy:"fixed",placement:L,whileElementsMounted:(...ce)=>no(...ce,{animationFrame:p==="always"}),elements:{reference:x.anchor},middleware:[po({mainAxis:r+O,alignmentAxis:s}),c&&ho({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?mo():void 0,...j}),c&&go({...j}),xo({...j,apply:({elements:ce,rects:Ke,availableWidth:Zt,availableHeight:Jt})=>{const{width:Qt,height:en}=Ke.reference,de=ce.floating.style;de.setProperty("--radix-popper-available-width",`${Zt}px`),de.setProperty("--radix-popper-available-height",`${Jt}px`),de.setProperty("--radix-popper-anchor-width",`${Qt}px`),de.setProperty("--radix-popper-anchor-height",`${en}px`)}}),w&&yo({element:w,padding:a}),To({arrowWidth:E,arrowHeight:O}),h&&vo({strategy:"referenceHidden",...j})]}),[N,Re]=_t($),fe=re(m);te(()=>{R&&(fe==null||fe())},[R,fe]);const Yt=(Ve=D.arrow)==null?void 0:Ve.x,Xt=(Ue=D.arrow)==null?void 0:Ue.y,Gt=((Ye=D.arrow)==null?void 0:Ye.centerOffset)!==0,[qt,Kt]=u.useState();return te(()=>{v&&Kt(window.getComputedStyle(v).zIndex)},[v]),P.jsx("div",{ref:S.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:R?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:qt,"--radix-popper-transform-origin":[(Xe=D.transformOrigin)==null?void 0:Xe.x,(Ge=D.transformOrigin)==null?void 0:Ge.y].join(" "),...((qe=D.hide)==null?void 0:qe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:P.jsx(Po,{scope:n,placedSide:N,onArrowChange:b,arrowX:Yt,arrowY:Xt,shouldHideArrow:Gt,children:P.jsx(Q.div,{"data-side":N,"data-align":Re,...g,ref:C,style:{...g.style,animation:R?void 0:"none"}})})})});Nt.displayName=Be;var Lt="PopperArrow",Ro={top:"bottom",right:"left",bottom:"top",left:"right"},Mt=u.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,i=Ao(Lt,o),s=Ro[i.placedSide];return P.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:P.jsx(bo,{...r,ref:n,style:{...r.style,display:"block"}})})});Mt.displayName=Lt;function Oo(e){return e!==null}var To=e=>({name:"transformOrigin",options:e,fn(t){var x,v,y;const{placement:n,rects:o,middlewareData:r}=t,s=((x=r.arrow)==null?void 0:x.centerOffset)!==0,a=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[l,f]=_t(n),d={start:"0%",center:"50%",end:"100%"}[f],h=(((v=r.arrow)==null?void 0:v.x)??0)+a/2,p=(((y=r.arrow)==null?void 0:y.y)??0)+c/2;let m="",g="";return l==="bottom"?(m=s?d:`${h}px`,g=`${-c}px`):l==="top"?(m=s?d:`${h}px`,g=`${o.floating.height+c}px`):l==="right"?(m=`${-c}px`,g=s?d:`${p}px`):l==="left"&&(m=`${o.floating.width+c}px`,g=s?d:`${p}px`),{data:{x:m,y:g}}}});function _t(e){const[t,n="center"]=e.split("-");return[t,n]}var So=Tt,Do=Dt,No=Nt,Lo=Mt;function Mo(e,t){return u.useReducer((n,o)=>t[n][o]??n,e)}var kt=e=>{const{present:t,children:n}=e,o=_o(t),r=typeof n=="function"?n({present:o.isPresent}):u.Children.only(n),i=J(o.ref,ko(r));return typeof n=="function"||o.isPresent?u.cloneElement(r,{ref:i}):null};kt.displayName="Presence";function _o(e){const[t,n]=u.useState(),o=u.useRef({}),r=u.useRef(e),i=u.useRef("none"),s=e?"mounted":"unmounted",[a,c]=Mo(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const l=he(o.current);i.current=a==="mounted"?l:"none"},[a]),te(()=>{const l=o.current,f=r.current;if(f!==e){const h=i.current,p=he(l);e?c("MOUNT"):p==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(f&&h!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),te(()=>{if(t){const l=d=>{const p=he(o.current).includes(d.animationName);d.target===t&&p&&_e.flushSync(()=>c("ANIMATION_END"))},f=d=>{d.target===t&&(i.current=he(o.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:u.useCallback(l=>{l&&(o.current=getComputedStyle(l)),n(l)},[])}}function he(e){return(e==null?void 0:e.animationName)||"none"}function ko(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function jo({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=$o({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:o,a=re(n),c=u.useCallback(l=>{if(i){const d=typeof l=="function"?l(e):l;d!==e&&a(d)}else r(l)},[i,e,r,a]);return[s,c]}function $o({defaultProp:e,onChange:t}){const n=u.useState(e),[o]=n,r=u.useRef(o),i=re(t);return u.useEffect(()=>{r.current!==o&&(i(o),r.current=o)},[o,r,i]),n}var Wo="VisuallyHidden",jt=u.forwardRef((e,t)=>P.jsx(Q.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));jt.displayName=Wo;var Io=jt,[Ce,ur]=lt("Tooltip",[Rt]),Ee=Rt(),$t="TooltipProvider",Fo=700,Le="tooltip.open",[Ho,ze]=Ce($t),Wt=e=>{const{__scopeTooltip:t,delayDuration:n=Fo,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:i}=e,[s,a]=u.useState(!0),c=u.useRef(!1),l=u.useRef(0);return u.useEffect(()=>{const f=l.current;return()=>window.clearTimeout(f)},[]),P.jsx(Ho,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(l.current),a(!1)},[]),onClose:u.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a(!0),o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:u.useCallback(f=>{c.current=f},[]),disableHoverableContent:r,children:i})};Wt.displayName=$t;var Pe="Tooltip",[Bo,Ae]=Ce(Pe),It=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,c=ze(Pe,e.__scopeTooltip),l=Ee(t),[f,d]=u.useState(null),h=bn(),p=u.useRef(0),m=s??c.disableHoverableContent,g=a??c.delayDuration,x=u.useRef(!1),[v=!1,y]=jo({prop:o,defaultProp:r,onChange:E=>{E?(c.onOpen(),document.dispatchEvent(new CustomEvent(Le))):c.onClose(),i==null||i(E)}}),C=u.useMemo(()=>v?x.current?"delayed-open":"instant-open":"closed",[v]),w=u.useCallback(()=>{window.clearTimeout(p.current),x.current=!1,y(!0)},[y]),b=u.useCallback(()=>{window.clearTimeout(p.current),y(!1)},[y]),A=u.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{x.current=!0,y(!0)},g)},[g,y]);return u.useEffect(()=>()=>window.clearTimeout(p.current),[]),P.jsx(So,{...l,children:P.jsx(Bo,{scope:t,contentId:h,open:v,stateAttribute:C,trigger:f,onTriggerChange:d,onTriggerEnter:u.useCallback(()=>{c.isOpenDelayed?A():w()},[c.isOpenDelayed,A,w]),onTriggerLeave:u.useCallback(()=>{m?b():window.clearTimeout(p.current)},[b,m]),onOpen:w,onClose:b,disableHoverableContent:m,children:n})})};It.displayName=Pe;var Me="TooltipTrigger",Ft=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Ae(Me,n),i=ze(Me,n),s=Ee(n),a=u.useRef(null),c=J(t,a,r.onTriggerChange),l=u.useRef(!1),f=u.useRef(!1),d=u.useCallback(()=>l.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),P.jsx(Do,{asChild:!0,...s,children:P.jsx(Q.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:c,onPointerMove:V(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),f.current=!0)}),onPointerLeave:V(e.onPointerLeave,()=>{r.onTriggerLeave(),f.current=!1}),onPointerDown:V(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:V(e.onFocus,()=>{l.current||r.onOpen()}),onBlur:V(e.onBlur,r.onClose),onClick:V(e.onClick,r.onClose)})})});Ft.displayName=Me;var zo="TooltipPortal",[fr,Vo]=Ce(zo,{forceMount:void 0}),oe="TooltipContent",Ht=u.forwardRef((e,t)=>{const n=Vo(oe,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...i}=e,s=Ae(oe,e.__scopeTooltip);return P.jsx(kt,{present:o||s.open,children:s.disableHoverableContent?P.jsx(Bt,{side:r,...i,ref:t}):P.jsx(Uo,{side:r,...i,ref:t})})}),Uo=u.forwardRef((e,t)=>{const n=Ae(oe,e.__scopeTooltip),o=ze(oe,e.__scopeTooltip),r=u.useRef(null),i=J(t,r),[s,a]=u.useState(null),{trigger:c,onClose:l}=n,f=r.current,{onPointerInTransitChange:d}=o,h=u.useCallback(()=>{a(null),d(!1)},[d]),p=u.useCallback((m,g)=>{const x=m.currentTarget,v={x:m.clientX,y:m.clientY},y=qo(v,x.getBoundingClientRect()),C=Ko(v,y),w=Zo(g.getBoundingClientRect()),b=Qo([...C,...w]);a(b),d(!0)},[d]);return u.useEffect(()=>()=>h(),[h]),u.useEffect(()=>{if(c&&f){const m=x=>p(x,f),g=x=>p(x,c);return c.addEventListener("pointerleave",m),f.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",m),f.removeEventListener("pointerleave",g)}}},[c,f,p,h]),u.useEffect(()=>{if(s){const m=g=>{const x=g.target,v={x:g.clientX,y:g.clientY},y=(c==null?void 0:c.contains(x))||(f==null?void 0:f.contains(x)),C=!Jo(v,s);y?h():C&&(h(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,f,s,l,h]),P.jsx(Bt,{...e,ref:i})}),[Yo,Xo]=Ce(Pe,{isInside:!1}),Bt=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,c=Ae(oe,n),l=Ee(n),{onClose:f}=c;return u.useEffect(()=>(document.addEventListener(Le,f),()=>document.removeEventListener(Le,f)),[f]),u.useEffect(()=>{if(c.trigger){const d=h=>{const p=h.target;p!=null&&p.contains(c.trigger)&&f()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,f]),P.jsx(pt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:f,children:P.jsxs(No,{"data-state":c.stateAttribute,...l,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[P.jsx(ft,{children:o}),P.jsx(Yo,{scope:n,isInside:!0,children:P.jsx(Io,{id:c.contentId,role:"tooltip",children:r||o})})]})})});Ht.displayName=oe;var zt="TooltipArrow",Go=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Ee(n);return Xo(zt,n).isInside?null:P.jsx(Lo,{...r,...o,ref:t})});Go.displayName=zt;function qo(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,o,r,i)){case i:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Ko(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function Zo(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function Jo(e,t){const{x:n,y:o}=e;let r=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i].x,c=t[i].y,l=t[s].x,f=t[s].y;c>o!=f>o&&n<(l-a)*(o-c)/(f-c)+a&&(r=!r)}return r}function Qo(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),er(t)}function er(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var tr=Wt,nr=It,or=Ft,Vt=Ht;const dr=tr,rr=nr,ir=or;function Ut({className:e,sideOffset:t=4,ref:n,...o}){return P.jsx(Vt,{ref:n,sideOffset:t,className:nn("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}Ut.displayName=Vt.displayName;function pr({content:e,children:t}){return e?P.jsxs(rr,{children:[P.jsx(ir,{asChild:!0,children:t}),P.jsx(Ut,{children:e})]}):t}export{Do as A,No as C,pt as D,Q as P,So as R,pr as S,dr as T,jt as V,V as a,kt as b,lt as c,ut as d,lr as e,jo as f,bn as g,rr as h,ir as i,Ut as j,te as k,Rt as l,Lo as m,re as n,J as u};
2
- //# sourceMappingURL=tooltip-BtzSIxlB.js.map
1
+ import{r as u,j as P,B as tn}from"./index-1cKOJFpX.js";import{r as _e}from"./components-C17zb3Us.js";import{c as nn}from"./misc-Bt-_bj1O.js";function V(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function on(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function at(...e){return t=>e.forEach(n=>on(n,t))}function J(...e){return u.useCallback(at(...e),e)}function lr(e,t){const n=u.createContext(t);function o(i){const{children:s,...a}=i,c=u.useMemo(()=>a,Object.values(a));return P.jsx(n.Provider,{value:c,children:s})}function r(i){const s=u.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return o.displayName=e+"Provider",[o,r]}function lt(e,t=[]){let n=[];function o(i,s){const a=u.createContext(s),c=n.length;n=[...n,s];function l(d){const{scope:h,children:p,...m}=d,g=(h==null?void 0:h[e][c])||a,x=u.useMemo(()=>m,Object.values(m));return P.jsx(g.Provider,{value:x,children:p})}function f(d,h){const p=(h==null?void 0:h[e][c])||a,m=u.useContext(p);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,f]}const r=()=>{const i=n.map(s=>u.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return u.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return r.scopeName=e,[o,rn(r,...t)]}function rn(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const s=o.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var ut=u.forwardRef((e,t)=>{const{children:n,...o}=e,r=u.Children.toArray(n),i=r.find(sn);if(i){const s=i.props.children,a=r.map(c=>c===i?u.Children.count(s)>1?u.Children.only(null):u.isValidElement(s)?s.props.children:null:c);return P.jsx(Te,{...o,ref:t,children:u.isValidElement(s)?u.cloneElement(s,void 0,a):null})}return P.jsx(Te,{...o,ref:t,children:n})});ut.displayName="Slot";var Te=u.forwardRef((e,t)=>{const{children:n,...o}=e;if(u.isValidElement(n)){const r=an(n);return u.cloneElement(n,{...cn(o,n.props),ref:t?at(t,r):r})}return u.Children.count(n)>1?u.Children.only(null):null});Te.displayName="SlotClone";var ft=({children:e})=>P.jsx(P.Fragment,{children:e});function sn(e){return u.isValidElement(e)&&e.type===ft}function cn(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...a)=>{i(...a),r(...a)}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function an(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ln=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Q=ln.reduce((e,t)=>{const n=u.forwardRef((o,r)=>{const{asChild:i,...s}=o,a=i?ut:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),P.jsx(a,{...s,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function un(e,t){e&&_e.flushSync(()=>e.dispatchEvent(t))}function re(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function fn(e,t=globalThis==null?void 0:globalThis.document){const n=re(e);u.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var dn="DismissableLayer",Se="dismissableLayer.update",pn="dismissableLayer.pointerDownOutside",hn="dismissableLayer.focusOutside",Ze,dt=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pt=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=u.useContext(dt),[f,d]=u.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=u.useState({}),m=J(t,E=>d(E)),g=Array.from(l.layers),[x]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(x),y=f?g.indexOf(f):-1,C=l.layersWithOutsidePointerEventsDisabled.size>0,w=y>=v,b=xn(E=>{const O=E.target,L=[...l.branches].some(T=>T.contains(O));!w||L||(r==null||r(E),s==null||s(E),E.defaultPrevented||a==null||a())},h),A=vn(E=>{const O=E.target;[...l.branches].some(T=>T.contains(O))||(i==null||i(E),s==null||s(E),E.defaultPrevented||a==null||a())},h);return fn(E=>{y===l.layers.size-1&&(o==null||o(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},h),u.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Ze=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),Je(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Ze)}},[f,h,n,l]),u.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),Je())},[f,l]),u.useEffect(()=>{const E=()=>p({});return document.addEventListener(Se,E),()=>document.removeEventListener(Se,E)},[]),P.jsx(Q.div,{...c,ref:m,style:{pointerEvents:C?w?"auto":"none":void 0,...e.style},onFocusCapture:V(e.onFocusCapture,A.onFocusCapture),onBlurCapture:V(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:V(e.onPointerDownCapture,b.onPointerDownCapture)})});pt.displayName=dn;var mn="DismissableLayerBranch",gn=u.forwardRef((e,t)=>{const n=u.useContext(dt),o=u.useRef(null),r=J(t,o);return u.useEffect(()=>{const i=o.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),P.jsx(Q.div,{...e,ref:r})});gn.displayName=mn;function xn(e,t=globalThis==null?void 0:globalThis.document){const n=re(e),o=u.useRef(!1),r=u.useRef(()=>{});return u.useEffect(()=>{const i=a=>{if(a.target&&!o.current){let c=function(){ht(pn,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=c,t.addEventListener("click",r.current,{once:!0})):c()}else t.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function vn(e,t=globalThis==null?void 0:globalThis.document){const n=re(e),o=u.useRef(!1);return u.useEffect(()=>{const r=i=>{i.target&&!o.current&&ht(hn,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Je(){const e=new CustomEvent(Se);document.dispatchEvent(e)}function ht(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?un(r,i):r.dispatchEvent(i)}var te=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{},yn=tn.useId||(()=>{}),wn=0;function bn(e){const[t,n]=u.useState(yn());return te(()=>{e||n(o=>o??String(wn++))},[e]),e||(t?`radix-${t}`:"")}const Cn=["top","right","bottom","left"],H=Math.min,W=Math.max,ge=Math.round,pe=Math.floor,G=e=>({x:e,y:e}),En={left:"right",right:"left",bottom:"top",top:"bottom"},Pn={start:"end",end:"start"};function De(e,t,n){return W(e,H(t,n))}function U(e,t){return typeof e=="function"?e(t):e}function Y(e){return e.split("-")[0]}function ie(e){return e.split("-")[1]}function ke(e){return e==="x"?"y":"x"}function je(e){return e==="y"?"height":"width"}function q(e){return["top","bottom"].includes(Y(e))?"y":"x"}function $e(e){return ke(q(e))}function An(e,t,n){n===void 0&&(n=!1);const o=ie(e),r=$e(e),i=je(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=xe(s)),[s,xe(s)]}function Rn(e){const t=xe(e);return[Ne(e),t,Ne(t)]}function Ne(e){return e.replace(/start|end/g,t=>Pn[t])}function On(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:s;default:return[]}}function Tn(e,t,n,o){const r=ie(e);let i=On(Y(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(Ne)))),i}function xe(e){return e.replace(/left|right|bottom|top/g,t=>En[t])}function Sn(e){return{top:0,right:0,bottom:0,left:0,...e}}function mt(e){return typeof e!="number"?Sn(e):{top:e,right:e,bottom:e,left:e}}function ve(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Qe(e,t,n){let{reference:o,floating:r}=e;const i=q(t),s=$e(t),a=je(s),c=Y(t),l=i==="y",f=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,h=o[a]/2-r[a]/2;let p;switch(c){case"top":p={x:f,y:o.y-r.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(ie(t)){case"start":p[s]-=h*(n&&l?-1:1);break;case"end":p[s]+=h*(n&&l?-1:1);break}return p}const Dn=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:d}=Qe(l,o,c),h=o,p={},m=0;for(let g=0;g<a.length;g++){const{name:x,fn:v}=a[g],{x:y,y:C,data:w,reset:b}=await v({x:f,y:d,initialPlacement:o,placement:h,strategy:r,middlewareData:p,rects:l,platform:s,elements:{reference:e,floating:t}});f=y??f,d=C??d,p={...p,[x]:{...p[x],...w}},b&&m<=50&&(m++,typeof b=="object"&&(b.placement&&(h=b.placement),b.rects&&(l=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):b.rects),{x:f,y:d}=Qe(l,h,c)),g=-1)}return{x:f,y:d,placement:h,strategy:r,middlewareData:p}};async function ae(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=U(t,e),m=mt(p),x=a[h?d==="floating"?"reference":"floating":d],v=ve(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:f,strategy:c})),y=d==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),w=await(i.isElement==null?void 0:i.isElement(C))?await(i.getScale==null?void 0:i.getScale(C))||{x:1,y:1}:{x:1,y:1},b=ve(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:C,strategy:c}):y);return{top:(v.top-b.top+m.top)/w.y,bottom:(b.bottom-v.bottom+m.bottom)/w.y,left:(v.left-b.left+m.left)/w.x,right:(b.right-v.right+m.right)/w.x}}const Nn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:f=0}=U(e,t)||{};if(l==null)return{};const d=mt(f),h={x:n,y:o},p=$e(r),m=je(p),g=await s.getDimensions(l),x=p==="y",v=x?"top":"left",y=x?"bottom":"right",C=x?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-h[p]-i.floating[m],b=h[p]-i.reference[p],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let E=A?A[C]:0;(!E||!await(s.isElement==null?void 0:s.isElement(A)))&&(E=a.floating[C]||i.floating[m]);const O=w/2-b/2,L=E/2-g[m]/2-1,T=H(d[v],L),_=H(d[y],L),k=T,j=E-g[m]-_,S=E/2-g[m]/2+O,M=De(k,S,j),$=!c.arrow&&ie(r)!=null&&S!==M&&i.reference[m]/2-(S<k?T:_)-g[m]/2<0,R=$?S<k?S-k:S-j:0;return{[p]:h[p]+R,data:{[p]:M,centerOffset:S-M-R,...$&&{alignmentOffset:R}},reset:$}}}),Ln=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...x}=U(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=Y(r),y=q(a),C=Y(a)===a,w=await(c.isRTL==null?void 0:c.isRTL(l.floating)),b=h||(C||!g?[xe(a)]:Rn(a)),A=m!=="none";!h&&A&&b.push(...Tn(a,g,m,w));const E=[a,...b],O=await ae(t,x),L=[];let T=((o=i.flip)==null?void 0:o.overflows)||[];if(f&&L.push(O[v]),d){const S=An(r,s,w);L.push(O[S[0]],O[S[1]])}if(T=[...T,{placement:r,overflows:L}],!L.every(S=>S<=0)){var _,k;const S=(((_=i.flip)==null?void 0:_.index)||0)+1,M=E[S];if(M)return{data:{index:S,overflows:T},reset:{placement:M}};let $=(k=T.filter(R=>R.overflows[0]<=0).sort((R,D)=>R.overflows[1]-D.overflows[1])[0])==null?void 0:k.placement;if(!$)switch(p){case"bestFit":{var j;const R=(j=T.filter(D=>{if(A){const N=q(D.placement);return N===y||N==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(N=>N>0).reduce((N,Re)=>N+Re,0)]).sort((D,N)=>D[1]-N[1])[0])==null?void 0:j[0];R&&($=R);break}case"initialPlacement":$=a;break}if(r!==$)return{reset:{placement:$}}}return{}}}};function et(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tt(e){return Cn.some(t=>e[t]>=0)}const Mn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=U(e,t);switch(o){case"referenceHidden":{const i=await ae(t,{...r,elementContext:"reference"}),s=et(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:tt(s)}}}case"escaped":{const i=await ae(t,{...r,altBoundary:!0}),s=et(i,n.floating);return{data:{escapedOffsets:s,escaped:tt(s)}}}default:return{}}}}};async function _n(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=Y(n),a=ie(n),c=q(n)==="y",l=["left","top"].includes(s)?-1:1,f=i&&c?-1:1,d=U(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof m=="number"&&(p=a==="end"?m*-1:m),c?{x:p*f,y:h*l}:{x:h*l,y:p*f}}const kn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,c=await _n(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:s}}}}},jn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:x=>{let{x:v,y}=x;return{x:v,y}}},...c}=U(e,t),l={x:n,y:o},f=await ae(t,c),d=q(Y(r)),h=ke(d);let p=l[h],m=l[d];if(i){const x=h==="y"?"top":"left",v=h==="y"?"bottom":"right",y=p+f[x],C=p-f[v];p=De(y,p,C)}if(s){const x=d==="y"?"top":"left",v=d==="y"?"bottom":"right",y=m+f[x],C=m-f[v];m=De(y,m,C)}const g=a.fn({...t,[h]:p,[d]:m});return{...g,data:{x:g.x-n,y:g.y-o}}}}},$n=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=U(e,t),f={x:n,y:o},d=q(r),h=ke(d);let p=f[h],m=f[d];const g=U(a,t),x=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const C=h==="y"?"height":"width",w=i.reference[h]-i.floating[C]+x.mainAxis,b=i.reference[h]+i.reference[C]-x.mainAxis;p<w?p=w:p>b&&(p=b)}if(l){var v,y;const C=h==="y"?"width":"height",w=["top","left"].includes(Y(r)),b=i.reference[d]-i.floating[C]+(w&&((v=s.offset)==null?void 0:v[d])||0)+(w?0:x.crossAxis),A=i.reference[d]+i.reference[C]+(w?0:((y=s.offset)==null?void 0:y[d])||0)-(w?x.crossAxis:0);m<b?m=b:m>A&&(m=A)}return{[h]:p,[d]:m}}}},Wn=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:i}=t,{apply:s=()=>{},...a}=U(e,t),c=await ae(t,a),l=Y(n),f=ie(n),d=q(n)==="y",{width:h,height:p}=o.floating;let m,g;l==="top"||l==="bottom"?(m=l,g=f===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(g=l,m=f==="end"?"top":"bottom");const x=p-c.top-c.bottom,v=h-c.left-c.right,y=H(p-c[m],x),C=H(h-c[g],v),w=!t.middlewareData.shift;let b=y,A=C;if(d?A=f||w?H(C,v):v:b=f||w?H(y,x):x,w&&!f){const O=W(c.left,0),L=W(c.right,0),T=W(c.top,0),_=W(c.bottom,0);d?A=h-2*(O!==0||L!==0?O+L:W(c.left,c.right)):b=p-2*(T!==0||_!==0?T+_:W(c.top,c.bottom))}await s({...t,availableWidth:A,availableHeight:b});const E=await r.getDimensions(i.floating);return h!==E.width||p!==E.height?{reset:{rects:!0}}:{}}}};function se(e){return gt(e)?(e.nodeName||"").toLowerCase():"#document"}function I(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function X(e){var t;return(t=(gt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function gt(e){return e instanceof Node||e instanceof I(e).Node}function B(e){return e instanceof Element||e instanceof I(e).Element}function z(e){return e instanceof HTMLElement||e instanceof I(e).HTMLElement}function nt(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof I(e).ShadowRoot}function ue(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=F(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function In(e){return["table","td","th"].includes(se(e))}function we(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function We(e){const t=Ie(),n=F(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Fn(e){let t=K(e);for(;z(t)&&!ne(t);){if(we(t))return null;if(We(t))return t;t=K(t)}return null}function Ie(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ne(e){return["html","body","#document"].includes(se(e))}function F(e){return I(e).getComputedStyle(e)}function be(e){return B(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function K(e){if(se(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nt(e)&&e.host||X(e);return nt(t)?t.host:t}function xt(e){const t=K(e);return ne(t)?e.ownerDocument?e.ownerDocument.body:e.body:z(t)&&ue(t)?t:xt(t)}function le(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=xt(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=I(r);return i?t.concat(s,s.visualViewport||[],ue(r)?r:[],s.frameElement&&n?le(s.frameElement):[]):t.concat(r,le(r,[],n))}function vt(e){const t=F(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=z(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=ge(n)!==i||ge(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function Fe(e){return B(e)?e:e.contextElement}function ee(e){const t=Fe(e);if(!z(t))return G(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=vt(t);let s=(i?ge(n.width):n.width)/o,a=(i?ge(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Hn=G(0);function yt(e){const t=I(e);return!Ie()||!t.visualViewport?Hn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Bn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==I(e)?!1:t}function Z(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Fe(e);let s=G(1);t&&(o?B(o)&&(s=ee(o)):s=ee(e));const a=Bn(i,n,o)?yt(i):G(0);let c=(r.left+a.x)/s.x,l=(r.top+a.y)/s.y,f=r.width/s.x,d=r.height/s.y;if(i){const h=I(i),p=o&&B(o)?I(o):o;let m=h,g=m.frameElement;for(;g&&o&&p!==m;){const x=ee(g),v=g.getBoundingClientRect(),y=F(g),C=v.left+(g.clientLeft+parseFloat(y.paddingLeft))*x.x,w=v.top+(g.clientTop+parseFloat(y.paddingTop))*x.y;c*=x.x,l*=x.y,f*=x.x,d*=x.y,c+=C,l+=w,m=I(g),g=m.frameElement}}return ve({width:f,height:d,x:c,y:l})}function zn(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=X(o),a=t?we(t.floating):!1;if(o===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=G(1);const f=G(0),d=z(o);if((d||!d&&!i)&&((se(o)!=="body"||ue(s))&&(c=be(o)),z(o))){const h=Z(o);l=ee(o),f.x=h.x+o.clientLeft,f.y=h.y+o.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+f.x,y:n.y*l.y-c.scrollTop*l.y+f.y}}function Vn(e){return Array.from(e.getClientRects())}function wt(e){return Z(X(e)).left+be(e).scrollLeft}function Un(e){const t=X(e),n=be(e),o=e.ownerDocument.body,r=W(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=W(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+wt(e);const a=-n.scrollTop;return F(o).direction==="rtl"&&(s+=W(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:a}}function Yn(e,t){const n=I(e),o=X(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,c=0;if(r){i=r.width,s=r.height;const l=Ie();(!l||l&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:s,x:a,y:c}}function Xn(e,t){const n=Z(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=z(e)?ee(e):G(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=r*i.x,l=o*i.y;return{width:s,height:a,x:c,y:l}}function ot(e,t,n){let o;if(t==="viewport")o=Yn(e,n);else if(t==="document")o=Un(X(e));else if(B(t))o=Xn(t,n);else{const r=yt(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return ve(o)}function bt(e,t){const n=K(e);return n===t||!B(n)||ne(n)?!1:F(n).position==="fixed"||bt(n,t)}function Gn(e,t){const n=t.get(e);if(n)return n;let o=le(e,[],!1).filter(a=>B(a)&&se(a)!=="body"),r=null;const i=F(e).position==="fixed";let s=i?K(e):e;for(;B(s)&&!ne(s);){const a=F(s),c=We(s);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||ue(s)&&!c&&bt(e,s))?o=o.filter(f=>f!==s):r=a,s=K(s)}return t.set(e,o),o}function qn(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?we(t)?[]:Gn(t,this._c):[].concat(n),o],a=s[0],c=s.reduce((l,f)=>{const d=ot(t,f,r);return l.top=W(d.top,l.top),l.right=H(d.right,l.right),l.bottom=H(d.bottom,l.bottom),l.left=W(d.left,l.left),l},ot(t,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Kn(e){const{width:t,height:n}=vt(e);return{width:t,height:n}}function Zn(e,t,n){const o=z(t),r=X(t),i=n==="fixed",s=Z(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=G(0);if(o||!o&&!i)if((se(t)!=="body"||ue(r))&&(a=be(t)),o){const d=Z(t,!0,i,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else r&&(c.x=wt(r));const l=s.left+a.scrollLeft-c.x,f=s.top+a.scrollTop-c.y;return{x:l,y:f,width:s.width,height:s.height}}function Oe(e){return F(e).position==="static"}function rt(e,t){return!z(e)||F(e).position==="fixed"?null:t?t(e):e.offsetParent}function Ct(e,t){const n=I(e);if(we(e))return n;if(!z(e)){let r=K(e);for(;r&&!ne(r);){if(B(r)&&!Oe(r))return r;r=K(r)}return n}let o=rt(e,t);for(;o&&In(o)&&Oe(o);)o=rt(o,t);return o&&ne(o)&&Oe(o)&&!We(o)?n:o||Fn(e)||n}const Jn=async function(e){const t=this.getOffsetParent||Ct,n=this.getDimensions,o=await n(e.floating);return{reference:Zn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Qn(e){return F(e).direction==="rtl"}const eo={convertOffsetParentRelativeRectToViewportRelativeRect:zn,getDocumentElement:X,getClippingRect:qn,getOffsetParent:Ct,getElementRects:Jn,getClientRects:Vn,getDimensions:Kn,getScale:ee,isElement:B,isRTL:Qn};function to(e,t){let n=null,o;const r=X(e);function i(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const{left:l,top:f,width:d,height:h}=e.getBoundingClientRect();if(a||t(),!d||!h)return;const p=pe(f),m=pe(r.clientWidth-(l+d)),g=pe(r.clientHeight-(f+h)),x=pe(l),y={rootMargin:-p+"px "+-m+"px "+-g+"px "+-x+"px",threshold:W(0,H(1,c))||1};let C=!0;function w(b){const A=b[0].intersectionRatio;if(A!==c){if(!C)return s();A?s(!1,A):o=setTimeout(()=>{s(!1,1e-7)},1e3)}C=!1}try{n=new IntersectionObserver(w,{...y,root:r.ownerDocument})}catch{n=new IntersectionObserver(w,y)}n.observe(e)}return s(!0),i}function no(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,l=Fe(e),f=r||i?[...l?le(l):[],...le(t)]:[];f.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const d=l&&a?to(l,n):null;let h=-1,p=null;s&&(p=new ResizeObserver(v=>{let[y]=v;y&&y.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var C;(C=p)==null||C.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,g=c?Z(e):null;c&&x();function x(){const v=Z(e);g&&(v.x!==g.x||v.y!==g.y||v.width!==g.width||v.height!==g.height)&&n(),g=v,m=requestAnimationFrame(x)}return n(),()=>{var v;f.forEach(y=>{r&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),d==null||d(),(v=p)==null||v.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const oo=kn,ro=jn,io=Ln,so=Wn,co=Mn,it=Nn,ao=$n,lo=(e,t,n)=>{const o=new Map,r={platform:eo,...n},i={...r.platform,_c:o};return Dn(e,t,{...r,platform:i})};var me=typeof document<"u"?u.useLayoutEffect:u.useEffect;function ye(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!ye(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!ye(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Et(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function st(e,t){const n=Et(e);return Math.round(t*n)/n}function ct(e){const t=u.useRef(e);return me(()=>{t.current=e}),t}function uo(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[f,d]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=u.useState(o);ye(h,o)||p(o);const[m,g]=u.useState(null),[x,v]=u.useState(null),y=u.useCallback(R=>{R!==A.current&&(A.current=R,g(R))},[]),C=u.useCallback(R=>{R!==E.current&&(E.current=R,v(R))},[]),w=i||m,b=s||x,A=u.useRef(null),E=u.useRef(null),O=u.useRef(f),L=c!=null,T=ct(c),_=ct(r),k=u.useCallback(()=>{if(!A.current||!E.current)return;const R={placement:t,strategy:n,middleware:h};_.current&&(R.platform=_.current),lo(A.current,E.current,R).then(D=>{const N={...D,isPositioned:!0};j.current&&!ye(O.current,N)&&(O.current=N,_e.flushSync(()=>{d(N)}))})},[h,t,n,_]);me(()=>{l===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d(R=>({...R,isPositioned:!1})))},[l]);const j=u.useRef(!1);me(()=>(j.current=!0,()=>{j.current=!1}),[]),me(()=>{if(w&&(A.current=w),b&&(E.current=b),w&&b){if(T.current)return T.current(w,b,k);k()}},[w,b,k,T,L]);const S=u.useMemo(()=>({reference:A,floating:E,setReference:y,setFloating:C}),[y,C]),M=u.useMemo(()=>({reference:w,floating:b}),[w,b]),$=u.useMemo(()=>{const R={position:n,left:0,top:0};if(!M.floating)return R;const D=st(M.floating,f.x),N=st(M.floating,f.y);return a?{...R,transform:"translate("+D+"px, "+N+"px)",...Et(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:D,top:N}},[n,a,M.floating,f.x,f.y]);return u.useMemo(()=>({...f,update:k,refs:S,elements:M,floatingStyles:$}),[f,k,S,M,$])}const fo=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?it({element:o.current,padding:r}).fn(n):{}:o?it({element:o,padding:r}).fn(n):{}}}},po=(e,t)=>({...oo(e),options:[e,t]}),ho=(e,t)=>({...ro(e),options:[e,t]}),mo=(e,t)=>({...ao(e),options:[e,t]}),go=(e,t)=>({...io(e),options:[e,t]}),xo=(e,t)=>({...so(e),options:[e,t]}),vo=(e,t)=>({...co(e),options:[e,t]}),yo=(e,t)=>({...fo(e),options:[e,t]});var wo="Arrow",Pt=u.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...i}=e;return P.jsx(Q.svg,{...i,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:P.jsx("polygon",{points:"0,0 30,0 15,10"})})});Pt.displayName=wo;var bo=Pt;function Co(e){const[t,n]=u.useState(void 0);return te(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var He="Popper",[At,Rt]=lt(He),[Eo,Ot]=At(He),Tt=e=>{const{__scopePopper:t,children:n}=e,[o,r]=u.useState(null);return P.jsx(Eo,{scope:t,anchor:o,onAnchorChange:r,children:n})};Tt.displayName=He;var St="PopperAnchor",Dt=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=Ot(St,n),s=u.useRef(null),a=J(t,s);return u.useEffect(()=>{i.onAnchorChange((o==null?void 0:o.current)||s.current)}),o?null:P.jsx(Q.div,{...r,ref:a})});Dt.displayName=St;var Be="PopperContent",[Po,Ao]=At(Be),Nt=u.forwardRef((e,t)=>{var Ve,Ue,Ye,Xe,Ge,qe;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:m,...g}=e,x=Ot(Be,n),[v,y]=u.useState(null),C=J(t,ce=>y(ce)),[w,b]=u.useState(null),A=Co(w),E=(A==null?void 0:A.width)??0,O=(A==null?void 0:A.height)??0,L=o+(i!=="center"?"-"+i:""),T=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},_=Array.isArray(l)?l:[l],k=_.length>0,j={padding:T,boundary:_.filter(Oo),altBoundary:k},{refs:S,floatingStyles:M,placement:$,isPositioned:R,middlewareData:D}=uo({strategy:"fixed",placement:L,whileElementsMounted:(...ce)=>no(...ce,{animationFrame:p==="always"}),elements:{reference:x.anchor},middleware:[po({mainAxis:r+O,alignmentAxis:s}),c&&ho({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?mo():void 0,...j}),c&&go({...j}),xo({...j,apply:({elements:ce,rects:Ke,availableWidth:Zt,availableHeight:Jt})=>{const{width:Qt,height:en}=Ke.reference,de=ce.floating.style;de.setProperty("--radix-popper-available-width",`${Zt}px`),de.setProperty("--radix-popper-available-height",`${Jt}px`),de.setProperty("--radix-popper-anchor-width",`${Qt}px`),de.setProperty("--radix-popper-anchor-height",`${en}px`)}}),w&&yo({element:w,padding:a}),To({arrowWidth:E,arrowHeight:O}),h&&vo({strategy:"referenceHidden",...j})]}),[N,Re]=_t($),fe=re(m);te(()=>{R&&(fe==null||fe())},[R,fe]);const Yt=(Ve=D.arrow)==null?void 0:Ve.x,Xt=(Ue=D.arrow)==null?void 0:Ue.y,Gt=((Ye=D.arrow)==null?void 0:Ye.centerOffset)!==0,[qt,Kt]=u.useState();return te(()=>{v&&Kt(window.getComputedStyle(v).zIndex)},[v]),P.jsx("div",{ref:S.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:R?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:qt,"--radix-popper-transform-origin":[(Xe=D.transformOrigin)==null?void 0:Xe.x,(Ge=D.transformOrigin)==null?void 0:Ge.y].join(" "),...((qe=D.hide)==null?void 0:qe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:P.jsx(Po,{scope:n,placedSide:N,onArrowChange:b,arrowX:Yt,arrowY:Xt,shouldHideArrow:Gt,children:P.jsx(Q.div,{"data-side":N,"data-align":Re,...g,ref:C,style:{...g.style,animation:R?void 0:"none"}})})})});Nt.displayName=Be;var Lt="PopperArrow",Ro={top:"bottom",right:"left",bottom:"top",left:"right"},Mt=u.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,i=Ao(Lt,o),s=Ro[i.placedSide];return P.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:P.jsx(bo,{...r,ref:n,style:{...r.style,display:"block"}})})});Mt.displayName=Lt;function Oo(e){return e!==null}var To=e=>({name:"transformOrigin",options:e,fn(t){var x,v,y;const{placement:n,rects:o,middlewareData:r}=t,s=((x=r.arrow)==null?void 0:x.centerOffset)!==0,a=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[l,f]=_t(n),d={start:"0%",center:"50%",end:"100%"}[f],h=(((v=r.arrow)==null?void 0:v.x)??0)+a/2,p=(((y=r.arrow)==null?void 0:y.y)??0)+c/2;let m="",g="";return l==="bottom"?(m=s?d:`${h}px`,g=`${-c}px`):l==="top"?(m=s?d:`${h}px`,g=`${o.floating.height+c}px`):l==="right"?(m=`${-c}px`,g=s?d:`${p}px`):l==="left"&&(m=`${o.floating.width+c}px`,g=s?d:`${p}px`),{data:{x:m,y:g}}}});function _t(e){const[t,n="center"]=e.split("-");return[t,n]}var So=Tt,Do=Dt,No=Nt,Lo=Mt;function Mo(e,t){return u.useReducer((n,o)=>t[n][o]??n,e)}var kt=e=>{const{present:t,children:n}=e,o=_o(t),r=typeof n=="function"?n({present:o.isPresent}):u.Children.only(n),i=J(o.ref,ko(r));return typeof n=="function"||o.isPresent?u.cloneElement(r,{ref:i}):null};kt.displayName="Presence";function _o(e){const[t,n]=u.useState(),o=u.useRef({}),r=u.useRef(e),i=u.useRef("none"),s=e?"mounted":"unmounted",[a,c]=Mo(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const l=he(o.current);i.current=a==="mounted"?l:"none"},[a]),te(()=>{const l=o.current,f=r.current;if(f!==e){const h=i.current,p=he(l);e?c("MOUNT"):p==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(f&&h!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),te(()=>{if(t){const l=d=>{const p=he(o.current).includes(d.animationName);d.target===t&&p&&_e.flushSync(()=>c("ANIMATION_END"))},f=d=>{d.target===t&&(i.current=he(o.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:u.useCallback(l=>{l&&(o.current=getComputedStyle(l)),n(l)},[])}}function he(e){return(e==null?void 0:e.animationName)||"none"}function ko(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function jo({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=$o({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:o,a=re(n),c=u.useCallback(l=>{if(i){const d=typeof l=="function"?l(e):l;d!==e&&a(d)}else r(l)},[i,e,r,a]);return[s,c]}function $o({defaultProp:e,onChange:t}){const n=u.useState(e),[o]=n,r=u.useRef(o),i=re(t);return u.useEffect(()=>{r.current!==o&&(i(o),r.current=o)},[o,r,i]),n}var Wo="VisuallyHidden",jt=u.forwardRef((e,t)=>P.jsx(Q.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));jt.displayName=Wo;var Io=jt,[Ce,ur]=lt("Tooltip",[Rt]),Ee=Rt(),$t="TooltipProvider",Fo=700,Le="tooltip.open",[Ho,ze]=Ce($t),Wt=e=>{const{__scopeTooltip:t,delayDuration:n=Fo,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:i}=e,[s,a]=u.useState(!0),c=u.useRef(!1),l=u.useRef(0);return u.useEffect(()=>{const f=l.current;return()=>window.clearTimeout(f)},[]),P.jsx(Ho,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(l.current),a(!1)},[]),onClose:u.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a(!0),o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:u.useCallback(f=>{c.current=f},[]),disableHoverableContent:r,children:i})};Wt.displayName=$t;var Pe="Tooltip",[Bo,Ae]=Ce(Pe),It=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,c=ze(Pe,e.__scopeTooltip),l=Ee(t),[f,d]=u.useState(null),h=bn(),p=u.useRef(0),m=s??c.disableHoverableContent,g=a??c.delayDuration,x=u.useRef(!1),[v=!1,y]=jo({prop:o,defaultProp:r,onChange:E=>{E?(c.onOpen(),document.dispatchEvent(new CustomEvent(Le))):c.onClose(),i==null||i(E)}}),C=u.useMemo(()=>v?x.current?"delayed-open":"instant-open":"closed",[v]),w=u.useCallback(()=>{window.clearTimeout(p.current),x.current=!1,y(!0)},[y]),b=u.useCallback(()=>{window.clearTimeout(p.current),y(!1)},[y]),A=u.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{x.current=!0,y(!0)},g)},[g,y]);return u.useEffect(()=>()=>window.clearTimeout(p.current),[]),P.jsx(So,{...l,children:P.jsx(Bo,{scope:t,contentId:h,open:v,stateAttribute:C,trigger:f,onTriggerChange:d,onTriggerEnter:u.useCallback(()=>{c.isOpenDelayed?A():w()},[c.isOpenDelayed,A,w]),onTriggerLeave:u.useCallback(()=>{m?b():window.clearTimeout(p.current)},[b,m]),onOpen:w,onClose:b,disableHoverableContent:m,children:n})})};It.displayName=Pe;var Me="TooltipTrigger",Ft=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Ae(Me,n),i=ze(Me,n),s=Ee(n),a=u.useRef(null),c=J(t,a,r.onTriggerChange),l=u.useRef(!1),f=u.useRef(!1),d=u.useCallback(()=>l.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),P.jsx(Do,{asChild:!0,...s,children:P.jsx(Q.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:c,onPointerMove:V(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),f.current=!0)}),onPointerLeave:V(e.onPointerLeave,()=>{r.onTriggerLeave(),f.current=!1}),onPointerDown:V(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:V(e.onFocus,()=>{l.current||r.onOpen()}),onBlur:V(e.onBlur,r.onClose),onClick:V(e.onClick,r.onClose)})})});Ft.displayName=Me;var zo="TooltipPortal",[fr,Vo]=Ce(zo,{forceMount:void 0}),oe="TooltipContent",Ht=u.forwardRef((e,t)=>{const n=Vo(oe,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...i}=e,s=Ae(oe,e.__scopeTooltip);return P.jsx(kt,{present:o||s.open,children:s.disableHoverableContent?P.jsx(Bt,{side:r,...i,ref:t}):P.jsx(Uo,{side:r,...i,ref:t})})}),Uo=u.forwardRef((e,t)=>{const n=Ae(oe,e.__scopeTooltip),o=ze(oe,e.__scopeTooltip),r=u.useRef(null),i=J(t,r),[s,a]=u.useState(null),{trigger:c,onClose:l}=n,f=r.current,{onPointerInTransitChange:d}=o,h=u.useCallback(()=>{a(null),d(!1)},[d]),p=u.useCallback((m,g)=>{const x=m.currentTarget,v={x:m.clientX,y:m.clientY},y=qo(v,x.getBoundingClientRect()),C=Ko(v,y),w=Zo(g.getBoundingClientRect()),b=Qo([...C,...w]);a(b),d(!0)},[d]);return u.useEffect(()=>()=>h(),[h]),u.useEffect(()=>{if(c&&f){const m=x=>p(x,f),g=x=>p(x,c);return c.addEventListener("pointerleave",m),f.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",m),f.removeEventListener("pointerleave",g)}}},[c,f,p,h]),u.useEffect(()=>{if(s){const m=g=>{const x=g.target,v={x:g.clientX,y:g.clientY},y=(c==null?void 0:c.contains(x))||(f==null?void 0:f.contains(x)),C=!Jo(v,s);y?h():C&&(h(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,f,s,l,h]),P.jsx(Bt,{...e,ref:i})}),[Yo,Xo]=Ce(Pe,{isInside:!1}),Bt=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,c=Ae(oe,n),l=Ee(n),{onClose:f}=c;return u.useEffect(()=>(document.addEventListener(Le,f),()=>document.removeEventListener(Le,f)),[f]),u.useEffect(()=>{if(c.trigger){const d=h=>{const p=h.target;p!=null&&p.contains(c.trigger)&&f()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,f]),P.jsx(pt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:f,children:P.jsxs(No,{"data-state":c.stateAttribute,...l,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[P.jsx(ft,{children:o}),P.jsx(Yo,{scope:n,isInside:!0,children:P.jsx(Io,{id:c.contentId,role:"tooltip",children:r||o})})]})})});Ht.displayName=oe;var zt="TooltipArrow",Go=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Ee(n);return Xo(zt,n).isInside?null:P.jsx(Lo,{...r,...o,ref:t})});Go.displayName=zt;function qo(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,o,r,i)){case i:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Ko(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function Zo(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function Jo(e,t){const{x:n,y:o}=e;let r=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i].x,c=t[i].y,l=t[s].x,f=t[s].y;c>o!=f>o&&n<(l-a)*(o-c)/(f-c)+a&&(r=!r)}return r}function Qo(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),er(t)}function er(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var tr=Wt,nr=It,or=Ft,Vt=Ht;const dr=tr,rr=nr,ir=or;function Ut({className:e,sideOffset:t=4,ref:n,...o}){return P.jsx(Vt,{ref:n,sideOffset:t,className:nn("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}Ut.displayName=Vt.displayName;function pr({content:e,children:t}){return e?P.jsxs(rr,{children:[P.jsx(ir,{asChild:!0,children:t}),P.jsx(Ut,{children:e})]}):t}export{Do as A,No as C,pt as D,Q as P,So as R,pr as S,dr as T,jt as V,V as a,kt as b,lt as c,ut as d,lr as e,jo as f,bn as g,rr as h,ir as i,Ut as j,te as k,Rt as l,Lo as m,re as n,J as u};
2
+ //# sourceMappingURL=tooltip-Cqh5cQvd.js.map