hackagent-webui 0.5.26.dev65__py3-none-any.whl → 0.6.0.dev67__py3-none-any.whl

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 (78) hide show
  1. hackagent_webui/__init__.py +1 -1
  2. hackagent_webui/static/404.html +13 -1
  3. hackagent_webui/static/VERSION +1 -1
  4. hackagent_webui/static/_next/static/LQR5ZJKBJglYlSbR2x_0w/_buildManifest.js +1 -0
  5. hackagent_webui/static/_next/static/chunks/103-7d6c873540c82114.js +1 -0
  6. hackagent_webui/static/_next/static/chunks/160-21f7abf9e76923d9.js +1 -0
  7. hackagent_webui/static/_next/static/chunks/187-849543277a4f9394.js +1 -0
  8. hackagent_webui/static/_next/static/chunks/272-3caece2aead52578.js +1 -0
  9. hackagent_webui/static/_next/static/chunks/389-5c1851e19b276a7a.js +1 -0
  10. hackagent_webui/static/_next/static/chunks/520-47765c33e252fada.js +1 -0
  11. hackagent_webui/static/_next/static/chunks/{352-9d98107ec1d2a19b.js → 604-42876ab36dfd0b3b.js} +2 -2
  12. hackagent_webui/static/_next/static/chunks/{634-67a19c764fc7a25a.js → 634-af3c4a776b062843.js} +1 -1
  13. hackagent_webui/static/_next/static/chunks/688-74942a135eec7c34.js +1 -0
  14. hackagent_webui/static/_next/static/chunks/747-aa8aa91116de6e71.js +1 -0
  15. hackagent_webui/static/_next/static/chunks/749-aa275fbe25b32d24.js +1 -0
  16. hackagent_webui/static/_next/static/chunks/8-a96ecba12d5b2a4a.js +1 -0
  17. hackagent_webui/static/_next/static/chunks/877.05f7f1bfa707d114.js +1 -0
  18. hackagent_webui/static/_next/static/chunks/888-2e968371d359a872.js +1 -0
  19. hackagent_webui/static/_next/static/chunks/970-bc5945a148c7d8b8.js +1 -0
  20. hackagent_webui/static/_next/static/chunks/app/_not-found/page-5e0f704047919d17.js +1 -0
  21. hackagent_webui/static/_next/static/chunks/app/agents/page-3c5aa0f73ce025a1.js +1 -0
  22. hackagent_webui/static/_next/static/chunks/app/api-keys/page-5e0f704047919d17.js +1 -0
  23. hackagent_webui/static/_next/static/chunks/app/attacks/page-374744a9cfcae586.js +1 -0
  24. hackagent_webui/static/_next/static/chunks/app/credentials/page-e8ee2f975dfadf78.js +1 -0
  25. hackagent_webui/static/_next/static/chunks/app/layout-2d3da5de7ab446be.js +1 -0
  26. hackagent_webui/static/_next/static/chunks/app/page-40fdbb3c458241bf.js +1 -0
  27. hackagent_webui/static/_next/static/chunks/app/profile/page-e346d35f93464904.js +1 -0
  28. hackagent_webui/static/_next/static/chunks/app/secrets/page-5e0f704047919d17.js +1 -0
  29. hackagent_webui/static/_next/static/chunks/app/stats/page-608e2fa66387c864.js +1 -0
  30. hackagent_webui/static/_next/static/chunks/app/usage/page-05dc3bd9fe72c9d6.js +1 -0
  31. hackagent_webui/static/_next/static/chunks/{webpack-5f5c255a944acccf.js → webpack-a6495b10aecf8893.js} +1 -1
  32. hackagent_webui/static/_next/static/css/d4f67f6fdc8fb850.css +1 -0
  33. hackagent_webui/static/agents.html +13 -1
  34. hackagent_webui/static/agents.txt +23 -22
  35. hackagent_webui/static/api-keys.html +13 -1
  36. hackagent_webui/static/api-keys.txt +20 -22
  37. hackagent_webui/static/attacks.html +13 -1
  38. hackagent_webui/static/attacks.txt +23 -22
  39. hackagent_webui/static/campaign-export/styles.css +1 -1
  40. hackagent_webui/static/credentials.html +13 -0
  41. hackagent_webui/static/credentials.txt +24 -0
  42. hackagent_webui/static/index.html +13 -1
  43. hackagent_webui/static/index.txt +23 -22
  44. hackagent_webui/static/profile.html +13 -1
  45. hackagent_webui/static/profile.txt +23 -22
  46. hackagent_webui/static/secrets.html +13 -1
  47. hackagent_webui/static/secrets.txt +20 -22
  48. hackagent_webui/static/stats.html +13 -1
  49. hackagent_webui/static/stats.txt +23 -22
  50. hackagent_webui/static/usage.html +13 -0
  51. hackagent_webui/static/usage.txt +24 -0
  52. {hackagent_webui-0.5.26.dev65.dist-info → hackagent_webui-0.6.0.dev67.dist-info}/METADATA +1 -1
  53. hackagent_webui-0.6.0.dev67.dist-info/RECORD +83 -0
  54. hackagent_webui/static/_next/static/U7s5LqEUH8gEO4-nmwKZH/_buildManifest.js +0 -1
  55. hackagent_webui/static/_next/static/chunks/109-654aaa36bb44ad55.js +0 -1
  56. hackagent_webui/static/_next/static/chunks/133-3d48df8e6274f1e3.js +0 -1
  57. hackagent_webui/static/_next/static/chunks/168-a33d1f7eac818103.js +0 -1
  58. hackagent_webui/static/_next/static/chunks/210-86c6a66776f43b4f.js +0 -1
  59. hackagent_webui/static/_next/static/chunks/267-68673a68da8dc0ed.js +0 -1
  60. hackagent_webui/static/_next/static/chunks/574-0cc0eddd7440f9e6.js +0 -1
  61. hackagent_webui/static/_next/static/chunks/630-d567a2d5c62c90f0.js +0 -1
  62. hackagent_webui/static/_next/static/chunks/704-e457c79de3cc7514.js +0 -1
  63. hackagent_webui/static/_next/static/chunks/756-0acdfe10693b8afc.js +0 -1
  64. hackagent_webui/static/_next/static/chunks/877.8e1543796718ce2b.js +0 -1
  65. hackagent_webui/static/_next/static/chunks/918-f236042f5a6cc47e.js +0 -1
  66. hackagent_webui/static/_next/static/chunks/app/_not-found/page-72f9264520fc0b6a.js +0 -1
  67. hackagent_webui/static/_next/static/chunks/app/agents/page-2ede712c1f31dd76.js +0 -1
  68. hackagent_webui/static/_next/static/chunks/app/api-keys/page-1c219ac9dd1bcdd4.js +0 -1
  69. hackagent_webui/static/_next/static/chunks/app/attacks/page-247041304bc4853c.js +0 -1
  70. hackagent_webui/static/_next/static/chunks/app/layout-88b65f1463c58138.js +0 -1
  71. hackagent_webui/static/_next/static/chunks/app/page-67fe8c280f18e8a6.js +0 -1
  72. hackagent_webui/static/_next/static/chunks/app/profile/page-96240b9461a515e9.js +0 -1
  73. hackagent_webui/static/_next/static/chunks/app/secrets/page-62bf5dba3522de29.js +0 -1
  74. hackagent_webui/static/_next/static/chunks/app/stats/page-457e2fc0286253b9.js +0 -1
  75. hackagent_webui/static/_next/static/css/99e7387e28657839.css +0 -1
  76. hackagent_webui-0.5.26.dev65.dist-info/RECORD +0 -75
  77. /hackagent_webui/static/_next/static/{U7s5LqEUH8gEO4-nmwKZH → LQR5ZJKBJglYlSbR2x_0w}/_ssgManifest.js +0 -0
  78. {hackagent_webui-0.5.26.dev65.dist-info → hackagent_webui-0.6.0.dev67.dist-info}/WHEEL +0 -0
@@ -1,4 +1,4 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[352],{5917:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},6191:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},12108:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},20063:(e,t,n)=>{var r=n(47260);n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},24033:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},27937:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},34212:(e,t,n)=>{n.d(t,{q:()=>r});function r(e,[t,n]){return Math.min(n,Math.max(t,e))}},35646:(e,t,n)=>{n.d(t,{UC:()=>$,VY:()=>F,ZD:()=>D,ZL:()=>T,bL:()=>P,hE:()=>B,hJ:()=>I,l9:()=>L,rc:()=>M});var r=n(12115),o=n(3468),i=n(94446),l=n(88292),a=n(92556),s=n(32467),u=n(95155),c="AlertDialog",[d,f]=(0,o.A)(c,[l.Hs]),h=(0,l.Hs)(),p=e=>{let{__scopeAlertDialog:t,...n}=e,r=h(t);return(0,u.jsx)(l.bL,{...r,...n,modal:!0})};p.displayName=c;var m=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=h(n);return(0,u.jsx)(l.l9,{...o,...r,ref:t})});m.displayName="AlertDialogTrigger";var v=e=>{let{__scopeAlertDialog:t,...n}=e,r=h(t);return(0,u.jsx)(l.ZL,{...r,...n})};v.displayName="AlertDialogPortal";var g=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=h(n);return(0,u.jsx)(l.hJ,{...o,...r,ref:t})});g.displayName="AlertDialogOverlay";var y="AlertDialogContent",[b,w]=d(y),x=(0,s.Dc)("AlertDialogContent"),E=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,children:o,...s}=e,c=h(n),d=r.useRef(null),f=(0,i.s)(t,d),p=r.useRef(null);return(0,u.jsx)(l.G$,{contentName:y,titleName:S,docsSlug:"alert-dialog",children:(0,u.jsx)(b,{scope:n,cancelRef:p,children:(0,u.jsxs)(l.UC,{role:"alertdialog",...c,...s,ref:f,onOpenAutoFocus:(0,a.m)(s.onOpenAutoFocus,e=>{var t;e.preventDefault(),null==(t=p.current)||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,u.jsx)(x,{children:o}),(0,u.jsx)(R,{contentRef:d})]})})})});E.displayName=y;var S="AlertDialogTitle",C=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=h(n);return(0,u.jsx)(l.hE,{...o,...r,ref:t})});C.displayName=S;var O="AlertDialogDescription",N=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=h(n);return(0,u.jsx)(l.VY,{...o,...r,ref:t})});N.displayName=O;var A=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=h(n);return(0,u.jsx)(l.bm,{...o,...r,ref:t})});A.displayName="AlertDialogAction";var k="AlertDialogCancel",j=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=w(k,n),a=h(n),s=(0,i.s)(t,o);return(0,u.jsx)(l.bm,{...a,...r,ref:s})});j.displayName=k;var R=e=>{let{contentRef:t}=e,n="`".concat(y,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(y,"` by passing a `").concat(O,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(y,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return r.useEffect(()=>{var e;document.getElementById(null==(e=t.current)?void 0:e.getAttribute("aria-describedby"))||console.warn(n)},[n,t]),null},P=p,L=m,T=v,I=g,$=E,M=A,D=j,B=C,F=N},39867:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},52056:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},61362:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},61911:(e,t,n)=>{n.d(t,{_:()=>r});function r(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}},66218:(e,t,n)=>{n.d(t,{jH:()=>i});var r=n(12115);n(95155);var o=r.createContext(void 0);function i(e){let t=r.useContext(o);return e||t||"ltr"}},69023:(e,t,n)=>{n.d(t,{_:()=>o});var r=n(61911);function o(e,t,n){var o=(0,r._)(e,t,"set");if(o.set)o.set.call(e,n);else{if(!o.writable)throw TypeError("attempted to set read only private field");o.value=n}return n}},71360:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},75426:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},76412:(e,t,n)=>{n.d(t,{UC:()=>tT,In:()=>tP,q7:()=>t$,VF:()=>tD,p4:()=>tM,ZL:()=>tL,bL:()=>tk,wn:()=>tF,PP:()=>tB,l9:()=>tj,WT:()=>tR,LM:()=>tI});var r,o,i=n(12115),l=n(47650),a=n(34212),s=n(92556),u=n(97239),c=n(97999),d=n(69023),f=n(3468),h=n(94446),p=n(95155);function m(e){let t=function(e){let t=i.forwardRef((e,t)=>{var n,r,o;let l,a,{children:s,...u}=e,c=i.isValidElement(s)?(a=(l=null==(r=Object.getOwnPropertyDescriptor((n=s).props,"ref"))?void 0:r.get)&&"isReactWarning"in l&&l.isReactWarning)?n.ref:(a=(l=null==(o=Object.getOwnPropertyDescriptor(n,"ref"))?void 0:o.get)&&"isReactWarning"in l&&l.isReactWarning)?n.props.ref:n.props.ref||n.ref:void 0,d=(0,h.s)(c,t);if(i.isValidElement(s)){let e=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=i(...t);return o(...t),r}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(u,s.props);return s.type!==i.Fragment&&(e.ref=d),i.cloneElement(s,e)}return i.Children.count(s)>1?i.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}(e),n=i.forwardRef((e,n)=>{let{children:r,...o}=e,l=i.Children.toArray(r),a=l.find(g);if(a){let e=a.props.children,r=l.map(t=>t!==a?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,p.jsx)(t,{...o,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return(0,p.jsx)(t,{...o,ref:n,children:r})});return n.displayName="".concat(e,".Slot"),n}var v=Symbol("radix.slottable");function g(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===v}var y=new WeakMap;function b(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=function(e,t){let n=e.length,r=w(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}(e,t);return -1===n?void 0:e[n]}function w(e){return e!=e||0===e?0:Math.trunc(e)}r=new WeakMap,class e extends Map{set(e,t){return y.get(this)&&(this.has(e)?(0,u._)(this,r)[(0,u._)(this,r).indexOf(e)]=e:(0,u._)(this,r).push(e)),super.set(e,t),this}insert(e,t,n){let o,i=this.has(t),l=(0,u._)(this,r).length,a=w(e),s=a>=0?a:l+a,c=s<0||s>=l?-1:s;if(c===this.size||i&&c===this.size-1||-1===c)return this.set(t,n),this;let d=this.size+ +!i;a<0&&s++;let f=[...(0,u._)(this,r)],h=!1;for(let e=s;e<d;e++)if(s===e){let r=f[e];f[e]===t&&(r=f[e+1]),i&&this.delete(t),o=this.get(r),this.set(t,n)}else{h||f[e-1]!==t||(h=!0);let n=f[h?e:e-1],r=o;o=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let o=new e(this);return o.insert(t,n,r),o}before(e){let t=(0,u._)(this,r).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let o=(0,u._)(this,r).indexOf(e);return -1===o?this:this.insert(o,t,n)}after(e){let t=(0,u._)(this,r).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let o=(0,u._)(this,r).indexOf(e);return -1===o?this:this.insert(o+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return(0,d._)(this,r,[]),super.clear()}delete(e){let t=super.delete(e);return t&&(0,u._)(this,r).splice((0,u._)(this,r).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=b((0,u._)(this,r),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=b((0,u._)(this,r),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return(0,u._)(this,r).indexOf(e)}keyAt(e){return b((0,u._)(this,r),e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],o=0;for(let e of this)Reflect.apply(t,n,[e,o,this])&&r.push(e),o++;return new e(r)}map(t,n){let r=[],o=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,o,this])]),o++;return new e(r)}reduce(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,o]=t,i=0,l=null!=o?o:this.at(0);for(let e of this)l=0===i&&1===t.length?e:Reflect.apply(r,this,[l,e,i,this]),i++;return l}reduceRight(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,o]=t,i=null!=o?o:this.at(-1);for(let e=this.size-1;e>=0;e--){let n=this.at(e);i=e===this.size-1&&1===t.length?n:Reflect.apply(r,this,[i,n,e,this])}return i}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let o=[...this.entries()];return o.splice(...n),new e(o)}slice(t,n){let r=new e,o=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(o=n-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}constructor(e){super(e),(0,c._)(this,r,{writable:!0,value:void 0}),(0,d._)(this,r,[...super.keys()]),y.set(this,!0)}};var x=n(66218),E=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=m(`Primitive.${t}`),r=i.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,p.jsx)(o?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),S=n(70222),C=n(59584),O="dismissableLayer.update",N=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),A=i.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f,...m}=e,v=i.useContext(N),[g,y]=i.useState(null),b=null!=(r=null==g?void 0:g.ownerDocument)?r:null==(n=globalThis)?void 0:n.document,[,w]=i.useState({}),x=(0,h.s)(t,e=>y(e)),A=Array.from(v.layers),[R]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),P=A.indexOf(R),L=g?A.indexOf(g):-1,T=v.layersWithOutsidePointerEventsDisabled.size>0,I=L>=P,$=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,S.c)(e),o=i.useRef(!1),l=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){j("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",l.current),l.current=t,n.addEventListener("click",l.current,{once:!0})):t()}else n.removeEventListener("click",l.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...v.branches].some(e=>e.contains(t));I&&!n&&(null==u||u(e),null==d||d(e),e.defaultPrevented||null==f||f())},b),M=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,S.c)(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!o.current&&j("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;![...v.branches].some(e=>e.contains(t))&&(null==c||c(e),null==d||d(e),e.defaultPrevented||null==f||f())},b);return(0,C.U)(e=>{L===v.layers.size-1&&(null==a||a(e),!e.defaultPrevented&&f&&(e.preventDefault(),f()))},b),i.useEffect(()=>{if(g)return l&&(0===v.layersWithOutsidePointerEventsDisabled.size&&(o=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(g)),v.layers.add(g),k(),()=>{l&&1===v.layersWithOutsidePointerEventsDisabled.size&&(b.body.style.pointerEvents=o)}},[g,b,l,v]),i.useEffect(()=>()=>{g&&(v.layers.delete(g),v.layersWithOutsidePointerEventsDisabled.delete(g),k())},[g,v]),i.useEffect(()=>{let e=()=>w({});return document.addEventListener(O,e),()=>document.removeEventListener(O,e)},[]),(0,p.jsx)(E.div,{...m,ref:x,style:{pointerEvents:T?I?"auto":"none":void 0,...e.style},onFocusCapture:(0,s.m)(e.onFocusCapture,M.onFocusCapture),onBlurCapture:(0,s.m)(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:(0,s.m)(e.onPointerDownCapture,$.onPointerDownCapture)})});function k(){let e=new CustomEvent(O);document.dispatchEvent(e)}function j(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});if(t&&i.addEventListener(e,t,{once:!0}),o)i&&l.flushSync(()=>i.dispatchEvent(a));else i.dispatchEvent(a)}A.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(N),r=i.useRef(null),o=(0,h.s)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,p.jsx)(E.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var R=n(19526),P="focusScope.autoFocusOnMount",L="focusScope.autoFocusOnUnmount",T={bubbles:!1,cancelable:!0},I=i.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...a}=e,[s,u]=i.useState(null),c=(0,S.c)(o),d=(0,S.c)(l),f=i.useRef(null),m=(0,h.s)(t,e=>u(e)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(v.paused||!s)return;let t=e.target;s.contains(t)?f.current=t:D(f.current,{select:!0})},t=function(e){if(v.paused||!s)return;let t=e.relatedTarget;null!==t&&(s.contains(t)||D(f.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&D(s)});return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,s,v.paused]),i.useEffect(()=>{if(s){B.add(v);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(P,T);s.addEventListener(P,c),s.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(D(r,{select:t}),document.activeElement!==n)return}($(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&D(s))}return()=>{s.removeEventListener(P,c),setTimeout(()=>{let t=new CustomEvent(L,T);s.addEventListener(L,d),s.dispatchEvent(t),t.defaultPrevented||D(null!=e?e:document.body,{select:!0}),s.removeEventListener(L,d),B.remove(v)},0)}}},[s,c,d,v]);let g=i.useCallback(e=>{if(!n&&!r||v.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=$(e);return[M(t,e),M(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&D(i,{select:!0})):(e.preventDefault(),n&&D(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,v.paused]);return(0,p.jsx)(E.div,{tabIndex:-1,...a,ref:m,onKeyDown:g})});function $(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function M(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function D(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}I.displayName="FocusScope";var B=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=F(e,t)).unshift(t)},remove(t){var n;null==(n=(e=F(e,t))[0])||n.resume()}}}();function F(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var _=n(68946),W=n(88334),K=n(58146),U=i.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,p.jsx)(E.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,p.jsx)("polygon",{points:"0,0 30,0 15,10"})})});U.displayName="Arrow";var z=n(4129),V=n(84288),H="Popper",[Y,J]=(0,f.A)(H),[q,X]=Y(H),Z=e=>{let{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return(0,p.jsx)(q,{scope:t,anchor:r,onAnchorChange:o,children:n})};Z.displayName=H;var Q="PopperAnchor",G=i.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,l=X(Q,n),a=i.useRef(null),s=(0,h.s)(t,a);return i.useEffect(()=>{l.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,p.jsx)(E.div,{...o,ref:s})});G.displayName=Q;var ee="PopperContent",[et,en]=Y(ee),er=i.forwardRef((e,t)=>{var n,r,o,l,a,s,u,c;let{__scopePopper:d,side:f="bottom",sideOffset:m=0,align:v="center",alignOffset:g=0,arrowPadding:y=0,avoidCollisions:b=!0,collisionBoundary:w=[],collisionPadding:x=0,sticky:C="partial",hideWhenDetached:O=!1,updatePositionStrategy:N="optimized",onPlaced:A,...k}=e,j=X(ee,d),[R,P]=i.useState(null),L=(0,h.s)(t,e=>P(e)),[T,I]=i.useState(null),$=(0,V.X)(T),M=null!=(u=null==$?void 0:$.width)?u:0,D=null!=(c=null==$?void 0:$.height)?c:0,B="number"==typeof x?x:{top:0,right:0,bottom:0,left:0,...x},F=Array.isArray(w)?w:[w],_=F.length>0,U={padding:B,boundary:F.filter(ea),altBoundary:_},{refs:H,floatingStyles:Y,placement:J,isPositioned:q,middlewareData:Z}=(0,W.we)({strategy:"fixed",placement:f+("center"!==v?"-"+v:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,K.ll)(...t,{animationFrame:"always"===N})},elements:{reference:j.anchor},middleware:[(0,W.cY)({mainAxis:m+D,alignmentAxis:g}),b&&(0,W.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?(0,W.ER)():void 0,...U}),b&&(0,W.UU)({...U}),(0,W.Ej)({...U,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),T&&(0,W.UE)({element:T,padding:y}),es({arrowWidth:M,arrowHeight:D}),O&&(0,W.jD)({strategy:"referenceHidden",...U})]}),[Q,G]=eu(J),en=(0,S.c)(A);(0,z.N)(()=>{q&&(null==en||en())},[q,en]);let er=null==(n=Z.arrow)?void 0:n.x,eo=null==(r=Z.arrow)?void 0:r.y,ei=(null==(o=Z.arrow)?void 0:o.centerOffset)!==0,[el,ec]=i.useState();return(0,z.N)(()=>{R&&ec(window.getComputedStyle(R).zIndex)},[R]),(0,p.jsx)("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:q?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:el,"--radix-popper-transform-origin":[null==(l=Z.transformOrigin)?void 0:l.x,null==(a=Z.transformOrigin)?void 0:a.y].join(" "),...(null==(s=Z.hide)?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,p.jsx)(et,{scope:d,placedSide:Q,onArrowChange:I,arrowX:er,arrowY:eo,shouldHideArrow:ei,children:(0,p.jsx)(E.div,{"data-side":Q,"data-align":G,...k,ref:L,style:{...k.style,animation:q?void 0:"none"}})})})});er.displayName=ee;var eo="PopperArrow",ei={top:"bottom",right:"left",bottom:"top",left:"right"},el=i.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=en(eo,n),i=ei[o.placedSide];return(0,p.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,p.jsx)(U,{...r,ref:t,style:{...r.style,display:"block"}})})});function ea(e){return null!==e}el.displayName=eo;var es=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:s,middlewareData:u}=t,c=(null==(n=u.arrow)?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=eu(a),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!=(i=null==(r=u.arrow)?void 0:r.x)?i:0)+d/2,g=(null!=(l=null==(o=u.arrow)?void 0:o.y)?l:0)+f/2,y="",b="";return"bottom"===h?(y=c?m:"".concat(v,"px"),b="".concat(-f,"px")):"top"===h?(y=c?m:"".concat(v,"px"),b="".concat(s.floating.height+f,"px")):"right"===h?(y="".concat(-f,"px"),b=c?m:"".concat(g,"px")):"left"===h&&(y="".concat(s.floating.width+f,"px"),b=c?m:"".concat(g,"px")),{data:{x:y,y:b}}}});function eu(e){let[t,n="center"]=e.split("-");return[t,n]}var ec=i.forwardRef((e,t)=>{var n,r;let{container:o,...a}=e,[s,u]=i.useState(!1);(0,z.N)(()=>u(!0),[]);let c=o||s&&(null==(r=globalThis)||null==(n=r.document)?void 0:n.body);return c?l.createPortal((0,p.jsx)(E.div,{...a,ref:t}),c):null});ec.displayName="Portal";var ed=n(23558),ef=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});i.forwardRef((e,t)=>(0,p.jsx)(E.span,{...e,ref:t,style:{...ef,...e.style}})).displayName="VisuallyHidden";var eh=n(97745),ep=n(71450),em=n(60216),ev=n(78357),eg=(0,n(43711).f)(),ey=function(){},eb=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:ey,onWheelCapture:ey,onTouchMoveCapture:ey}),o=r[0],l=r[1],a=e.forwardProps,s=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,p=e.noIsolation,m=e.inert,v=e.allowPinchZoom,g=e.as,y=e.gapMode,b=(0,ep.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=(0,ev.S)([n,t]),x=(0,ep.Cl)((0,ep.Cl)({},b),o);return i.createElement(i.Fragment,null,d&&i.createElement(h,{sideCar:eg,removeScrollBar:c,shards:f,noIsolation:p,inert:m,setCallbacks:l,allowPinchZoom:!!v,lockRef:n,gapMode:y}),a?i.cloneElement(i.Children.only(s),(0,ep.Cl)((0,ep.Cl)({},x),{ref:w})):i.createElement(void 0===g?"div":g,(0,ep.Cl)({},x,{className:u,ref:w}),s))});eb.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eb.classNames={fullWidth:em.pN,zeroRight:em.Mi};var ew=n(39615),ex=n(46810),eE=n(65841),eS=!1;if("undefined"!=typeof window)try{var eC=Object.defineProperty({},"passive",{get:function(){return eS=!0,!0}});window.addEventListener("test",eC,eC),window.removeEventListener("test",eC,eC)}catch(e){eS=!1}var eO=!!eS&&{passive:!1},eN=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},eA=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),ek(e,r)){var o=ej(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ek=function(e,t){return"v"===e?eN(t,"overflowY"):eN(t,"overflowX")},ej=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eR=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,s=n.target,u=t.contains(s),c=!1,d=a>0,f=0,h=0;do{var p=ej(e,s),m=p[0],v=p[1]-p[2]-l*m;(m||v)&&ek(e,s)&&(f+=v,h+=m),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return d&&(o&&1>Math.abs(f)||!o&&a>f)?c=!0:!d&&(o&&1>Math.abs(h)||!o&&-a>h)&&(c=!0),c},eP=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eL=function(e){return[e.deltaX,e.deltaY]},eT=function(e){return e&&"current"in e?e.current:e},eI=0,e$=[];let eM=(0,ew.m)(eg,function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(eI++)[0],l=i.useState(eE.T0)[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,ep.fX)([e.lockRef.current],(e.shards||[]).map(eT),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=eP(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-i[0],u="deltaY"in e?e.deltaY:l[1]-i[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=eA(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=eA(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var h=r.current||o;return eR(h,t,e,"h"===h?s:u,!0)},[]),u=i.useCallback(function(e){if(e$.length&&e$[e$.length-1]===l){var n="deltaY"in e?eL(e):eP(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(eT).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?s(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=i.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=i.useCallback(function(e){n.current=eP(e),r.current=void 0},[]),f=i.useCallback(function(t){c(t.type,eL(t),t.target,s(t,e.lockRef.current))},[]),h=i.useCallback(function(t){c(t.type,eP(t),t.target,s(t,e.lockRef.current))},[]);i.useEffect(function(){return e$.push(l),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,eO),document.addEventListener("touchmove",u,eO),document.addEventListener("touchstart",d,eO),function(){e$=e$.filter(function(e){return e!==l}),document.removeEventListener("wheel",u,eO),document.removeEventListener("touchmove",u,eO),document.removeEventListener("touchstart",d,eO)}},[]);var p=e.removeScrollBar,m=e.inert;return i.createElement(i.Fragment,null,m?i.createElement(l,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,p?i.createElement(ex.jp,{gapMode:e.gapMode}):null)});var eD=i.forwardRef(function(e,t){return i.createElement(eb,(0,ep.Cl)({},e,{ref:t,sideCar:eM}))});eD.classNames=eb.classNames;var eB=[" ","Enter","ArrowUp","ArrowDown"],eF=[" ","Enter"],e_="Select",[eW,eK,eU]=function(e){let t=e+"CollectionProvider",[n,r]=(0,f.A)(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{let{scope:t,children:n}=e,r=i.useRef(null),l=i.useRef(new Map).current;return(0,p.jsx)(o,{scope:t,itemMap:l,collectionRef:r,children:n})};a.displayName=t;let s=e+"CollectionSlot",u=m(s),c=i.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=l(s,n),i=(0,h.s)(t,o.collectionRef);return(0,p.jsx)(u,{ref:i,children:r})});c.displayName=s;let d=e+"CollectionItemSlot",v="data-radix-collection-item",g=m(d),y=i.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,a=i.useRef(null),s=(0,h.s)(t,a),u=l(d,n);return i.useEffect(()=>(u.itemMap.set(a,{ref:a,...o}),()=>void u.itemMap.delete(a))),(0,p.jsx)(g,{...{[v]:""},ref:s,children:r})});return y.displayName=d,[{Provider:a,Slot:c,ItemSlot:y},function(t){let n=l(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}(e_),[ez,eV]=(0,f.A)(e_,[eU,J]),eH=J(),[eY,eJ]=ez(e_),[eq,eX]=ez(e_),eZ=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:l,value:a,defaultValue:s,onValueChange:u,dir:c,name:d,autoComplete:f,disabled:h,required:m,form:v}=e,g=eH(t),[y,b]=i.useState(null),[w,E]=i.useState(null),[S,C]=i.useState(!1),O=(0,x.jH)(c),[N,A]=(0,ed.i)({prop:r,defaultProp:null!=o&&o,onChange:l,caller:e_}),[k,j]=(0,ed.i)({prop:a,defaultProp:s,onChange:u,caller:e_}),R=i.useRef(null),P=!y||v||!!y.closest("form"),[L,T]=i.useState(new Set),I=Array.from(L).map(e=>e.props.value).join(";");return(0,p.jsx)(Z,{...g,children:(0,p.jsxs)(eY,{required:m,scope:t,trigger:y,onTriggerChange:b,valueNode:w,onValueNodeChange:E,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:(0,_.B)(),value:k,onValueChange:j,open:N,onOpenChange:A,dir:O,triggerPointerDownPosRef:R,disabled:h,children:[(0,p.jsx)(eW.Provider,{scope:t,children:(0,p.jsx)(eq,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(e=>{T(t=>new Set(t).add(e))},[]),onNativeOptionRemove:i.useCallback(e=>{T(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),P?(0,p.jsxs)(tC,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:f,value:k,onChange:e=>j(e.target.value),disabled:h,form:v,children:[void 0===k?(0,p.jsx)("option",{value:""}):null,Array.from(L)]},I):null]})})};eZ.displayName=e_;var eQ="SelectTrigger",eG=i.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...o}=e,l=eH(n),a=eJ(eQ,n),u=a.disabled||r,c=(0,h.s)(t,a.onTriggerChange),d=eK(n),f=i.useRef("touch"),[m,v,g]=tN(e=>{let t=d().filter(e=>!e.disabled),n=t.find(e=>e.value===a.value),r=tA(t,e,n);void 0!==r&&a.onValueChange(r.value)}),y=e=>{u||(a.onOpenChange(!0),g()),e&&(a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,p.jsx)(G,{asChild:!0,...l,children:(0,p.jsx)(E.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":tO(a.value)?"":void 0,...o,ref:c,onClick:(0,s.m)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==f.current&&y(e)}),onPointerDown:(0,s.m)(o.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(y(e),e.preventDefault())}),onKeyDown:(0,s.m)(o.onKeyDown,e=>{let t=""!==m.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||v(e.key),(!t||" "!==e.key)&&eB.includes(e.key)&&(y(),e.preventDefault())})})})});eG.displayName=eQ;var e0="SelectValue",e1=i.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...a}=e,s=eJ(e0,n),{onValueNodeHasChildrenChange:u}=s,c=void 0!==i,d=(0,h.s)(t,s.onValueNodeChange);return(0,z.N)(()=>{u(c)},[u,c]),(0,p.jsx)(E.span,{...a,ref:d,style:{pointerEvents:"none"},children:tO(s.value)?(0,p.jsx)(p.Fragment,{children:l}):i})});e1.displayName=e0;var e2=i.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...o}=e;return(0,p.jsx)(E.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});e2.displayName="SelectIcon";var e9=e=>(0,p.jsx)(ec,{asChild:!0,...e});e9.displayName="SelectPortal";var e6="SelectContent",e4=i.forwardRef((e,t)=>{let n=eJ(e6,e.__scopeSelect),[r,o]=i.useState();return((0,z.N)(()=>{o(new DocumentFragment)},[]),n.open)?(0,p.jsx)(e3,{...e,ref:t}):r?l.createPortal((0,p.jsx)(e5,{scope:e.__scopeSelect,children:(0,p.jsx)(eW.Slot,{scope:e.__scopeSelect,children:(0,p.jsx)("div",{children:e.children})})}),r):null});e4.displayName=e6;var[e5,e7]=ez(e6),e8=m("SelectContent.RemoveScroll"),e3=i.forwardRef((e,t)=>{let{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:l,onPointerDownOutside:a,side:u,sideOffset:c,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:v,collisionPadding:g,sticky:y,hideWhenDetached:b,avoidCollisions:w,...x}=e,E=eJ(e6,n),[S,C]=i.useState(null),[O,N]=i.useState(null),k=(0,h.s)(t,e=>C(e)),[j,P]=i.useState(null),[L,T]=i.useState(null),$=eK(n),[M,D]=i.useState(!1),B=i.useRef(!1);i.useEffect(()=>{if(S)return(0,eh.Eq)(S)},[S]),(0,R.Oh)();let F=i.useCallback(e=>{let[t,...n]=$().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(let n of e)if(n===o||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&O&&(O.scrollTop=0),n===r&&O&&(O.scrollTop=O.scrollHeight),null==n||n.focus(),document.activeElement!==o))return},[$,O]),_=i.useCallback(()=>F([j,S]),[F,j,S]);i.useEffect(()=>{M&&_()},[M,_]);let{onOpenChange:W,triggerPointerDownPosRef:K}=E;i.useEffect(()=>{if(S){let e={x:0,y:0},t=t=>{var n,r,o,i;e={x:Math.abs(Math.round(t.pageX)-(null!=(o=null==(n=K.current)?void 0:n.x)?o:0)),y:Math.abs(Math.round(t.pageY)-(null!=(i=null==(r=K.current)?void 0:r.y)?i:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():S.contains(n.target)||W(!1),document.removeEventListener("pointermove",t),K.current=null};return null!==K.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[S,W,K]),i.useEffect(()=>{let e=()=>W(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[W]);let[U,z]=tN(e=>{let t=$().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=tA(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),V=i.useCallback((e,t,n)=>{let r=!B.current&&!n;(void 0!==E.value&&E.value===t||r)&&(P(e),r&&(B.current=!0))},[E.value]),H=i.useCallback(()=>null==S?void 0:S.focus(),[S]),Y=i.useCallback((e,t,n)=>{let r=!B.current&&!n;(void 0!==E.value&&E.value===t||r)&&T(e)},[E.value]),J="popper"===r?tt:te,q=J===tt?{side:u,sideOffset:c,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:v,collisionPadding:g,sticky:y,hideWhenDetached:b,avoidCollisions:w}:{};return(0,p.jsx)(e5,{scope:n,content:S,viewport:O,onViewportChange:N,itemRefCallback:V,selectedItem:j,onItemLeave:H,itemTextRefCallback:Y,focusSelectedItem:_,selectedItemText:L,position:r,isPositioned:M,searchRef:U,children:(0,p.jsx)(eD,{as:e8,allowPinchZoom:!0,children:(0,p.jsx)(I,{asChild:!0,trapped:E.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,s.m)(o,e=>{var t;null==(t=E.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,p.jsx)(A,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>E.onOpenChange(!1),children:(0,p.jsx)(J,{role:"listbox",id:E.contentId,"data-state":E.open?"open":"closed",dir:E.dir,onContextMenu:e=>e.preventDefault(),...x,...q,onPlaced:()=>D(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:(0,s.m)(x.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=$().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>F(t)),e.preventDefault()}})})})})})})});e3.displayName="SelectContentImpl";var te=i.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...o}=e,l=eJ(e6,n),s=e7(e6,n),[u,c]=i.useState(null),[d,f]=i.useState(null),m=(0,h.s)(t,e=>f(e)),v=eK(n),g=i.useRef(!1),y=i.useRef(!0),{viewport:b,selectedItem:w,selectedItemText:x,focusSelectedItem:S}=s,C=i.useCallback(()=>{if(l.trigger&&l.valueNode&&u&&d&&b&&w&&x){let e=l.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=l.valueNode.getBoundingClientRect(),o=x.getBoundingClientRect();if("rtl"!==l.dir){let r=o.left-t.left,i=n.left-r,l=e.left-i,s=e.width+l,c=Math.max(s,t.width),d=window.innerWidth-10,f=(0,a.q)(i,[10,Math.max(10,d-c)]);u.style.minWidth=s+"px",u.style.left=f+"px"}else{let r=t.right-o.right,i=window.innerWidth-n.right-r,l=window.innerWidth-e.right-i,s=e.width+l,c=Math.max(s,t.width),d=window.innerWidth-10,f=(0,a.q)(i,[10,Math.max(10,d-c)]);u.style.minWidth=s+"px",u.style.right=f+"px"}let i=v(),s=window.innerHeight-20,c=b.scrollHeight,f=window.getComputedStyle(d),h=parseInt(f.borderTopWidth,10),p=parseInt(f.paddingTop,10),m=parseInt(f.borderBottomWidth,10),y=h+p+c+parseInt(f.paddingBottom,10)+m,E=Math.min(5*w.offsetHeight,y),S=window.getComputedStyle(b),C=parseInt(S.paddingTop,10),O=parseInt(S.paddingBottom,10),N=e.top+e.height/2-10,A=w.offsetHeight/2,k=h+p+(w.offsetTop+A);if(k<=N){let e=i.length>0&&w===i[i.length-1].ref.current;u.style.bottom="0px";let t=Math.max(s-N,A+(e?O:0)+(d.clientHeight-b.offsetTop-b.offsetHeight)+m);u.style.height=k+t+"px"}else{let e=i.length>0&&w===i[0].ref.current;u.style.top="0px";let t=Math.max(N,h+b.offsetTop+(e?C:0)+A);u.style.height=t+(y-k)+"px",b.scrollTop=k-N+b.offsetTop}u.style.margin="".concat(10,"px 0"),u.style.minHeight=E+"px",u.style.maxHeight=s+"px",null==r||r(),requestAnimationFrame(()=>g.current=!0)}},[v,l.trigger,l.valueNode,u,d,b,w,x,l.dir,r]);(0,z.N)(()=>C(),[C]);let[O,N]=i.useState();(0,z.N)(()=>{d&&N(window.getComputedStyle(d).zIndex)},[d]);let A=i.useCallback(e=>{e&&!0===y.current&&(C(),null==S||S(),y.current=!1)},[C,S]);return(0,p.jsx)(tn,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:g,onScrollButtonChange:A,children:(0,p.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O},children:(0,p.jsx)(E.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});te.displayName="SelectItemAlignedPosition";var tt=i.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...i}=e,l=eH(n);return(0,p.jsx)(er,{...l,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});tt.displayName="SelectPopperPosition";var[tn,tr]=ez(e6,{}),to="SelectViewport",ti=i.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...o}=e,l=e7(to,n),a=tr(to,n),u=(0,h.s)(t,l.onViewportChange),c=i.useRef(0);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),(0,p.jsx)(eW.Slot,{scope:n,children:(0,p.jsx)(E.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,s.m)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=a;if((null==r?void 0:r.current)&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,o=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(o<r){let i=o+e,l=Math.min(r,i),a=i-l;n.style.height=l+"px","0px"===n.style.bottom&&(t.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}c.current=t.scrollTop})})})]})});ti.displayName=to;var tl="SelectGroup",[ta,ts]=ez(tl);i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=(0,_.B)();return(0,p.jsx)(ta,{scope:n,id:o,children:(0,p.jsx)(E.div,{role:"group","aria-labelledby":o,...r,ref:t})})}).displayName=tl;var tu="SelectLabel";i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=ts(tu,n);return(0,p.jsx)(E.div,{id:o.id,...r,ref:t})}).displayName=tu;var tc="SelectItem",[td,tf]=ez(tc),th=i.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:o=!1,textValue:l,...a}=e,u=eJ(tc,n),c=e7(tc,n),d=u.value===r,[f,m]=i.useState(null!=l?l:""),[v,g]=i.useState(!1),y=(0,h.s)(t,e=>{var t;return null==(t=c.itemRefCallback)?void 0:t.call(c,e,r,o)}),b=(0,_.B)(),w=i.useRef("touch"),x=()=>{o||(u.onValueChange(r),u.onOpenChange(!1))};if(""===r)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,p.jsx)(td,{scope:n,value:r,disabled:o,textId:b,isSelected:d,onItemTextChange:i.useCallback(e=>{m(t=>{var n;return t||(null!=(n=null==e?void 0:e.textContent)?n:"").trim()})},[]),children:(0,p.jsx)(eW.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:(0,p.jsx)(E.div,{role:"option","aria-labelledby":b,"data-highlighted":v?"":void 0,"aria-selected":d&&v,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:y,onFocus:(0,s.m)(a.onFocus,()=>g(!0)),onBlur:(0,s.m)(a.onBlur,()=>g(!1)),onClick:(0,s.m)(a.onClick,()=>{"mouse"!==w.current&&x()}),onPointerUp:(0,s.m)(a.onPointerUp,()=>{"mouse"===w.current&&x()}),onPointerDown:(0,s.m)(a.onPointerDown,e=>{w.current=e.pointerType}),onPointerMove:(0,s.m)(a.onPointerMove,e=>{if(w.current=e.pointerType,o){var t;null==(t=c.onItemLeave)||t.call(c)}else"mouse"===w.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,s.m)(a.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null==(t=c.onItemLeave)||t.call(c)}}),onKeyDown:(0,s.m)(a.onKeyDown,e=>{var t;((null==(t=c.searchRef)?void 0:t.current)===""||" "!==e.key)&&(eF.includes(e.key)&&x()," "===e.key&&e.preventDefault())})})})})});th.displayName=tc;var tp="SelectItemText",tm=i.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,...a}=e,s=eJ(tp,n),u=e7(tp,n),c=tf(tp,n),d=eX(tp,n),[f,m]=i.useState(null),v=(0,h.s)(t,e=>m(e),c.onItemTextChange,e=>{var t;return null==(t=u.itemTextRefCallback)?void 0:t.call(u,e,c.value,c.disabled)}),g=null==f?void 0:f.textContent,y=i.useMemo(()=>(0,p.jsx)("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:b,onNativeOptionRemove:w}=d;return(0,z.N)(()=>(b(y),()=>w(y)),[b,w,y]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(E.span,{id:c.textId,...a,ref:v}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?l.createPortal(a.children,s.valueNode):null]})});tm.displayName=tp;var tv="SelectItemIndicator",tg=i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return tf(tv,n).isSelected?(0,p.jsx)(E.span,{"aria-hidden":!0,...r,ref:t}):null});tg.displayName=tv;var ty="SelectScrollUpButton",tb=i.forwardRef((e,t)=>{let n=e7(ty,e.__scopeSelect),r=tr(ty,e.__scopeSelect),[o,l]=i.useState(!1),a=(0,h.s)(t,r.onScrollButtonChange);return(0,z.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){l(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,p.jsx)(tE,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});tb.displayName=ty;var tw="SelectScrollDownButton",tx=i.forwardRef((e,t)=>{let n=e7(tw,e.__scopeSelect),r=tr(tw,e.__scopeSelect),[o,l]=i.useState(!1),a=(0,h.s)(t,r.onScrollButtonChange);return(0,z.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;l(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,p.jsx)(tE,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});tx.displayName=tw;var tE=i.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...o}=e,l=e7("SelectScrollButton",n),a=i.useRef(null),u=eK(n),c=i.useCallback(()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)},[]);return i.useEffect(()=>()=>c(),[c]),(0,z.N)(()=>{var e;let t=u().find(e=>e.ref.current===document.activeElement);null==t||null==(e=t.ref.current)||e.scrollIntoView({block:"nearest"})},[u]),(0,p.jsx)(E.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,s.m)(o.onPointerDown,()=>{null===a.current&&(a.current=window.setInterval(r,50))}),onPointerMove:(0,s.m)(o.onPointerMove,()=>{var e;null==(e=l.onItemLeave)||e.call(l),null===a.current&&(a.current=window.setInterval(r,50))}),onPointerLeave:(0,s.m)(o.onPointerLeave,()=>{c()})})});i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,p.jsx)(E.div,{"aria-hidden":!0,...r,ref:t})}).displayName="SelectSeparator";var tS="SelectArrow";i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=eH(n),i=eJ(tS,n),l=e7(tS,n);return i.open&&"popper"===l.position?(0,p.jsx)(el,{...o,...r,ref:t}):null}).displayName=tS;var tC=i.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,...o}=e,l=i.useRef(null),a=(0,h.s)(t,l),s=function(e){let t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(r);return i.useEffect(()=>{let e=l.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(s!==r&&t){let n=new Event("change",{bubbles:!0});t.call(e,r),e.dispatchEvent(n)}},[s,r]),(0,p.jsx)(E.select,{...o,style:{...ef,...o.style},ref:a,defaultValue:r})});function tO(e){return""===e||void 0===e}function tN(e){let t=(0,S.c)(e),n=i.useRef(""),r=i.useRef(0),o=i.useCallback(e=>{let o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),l=i.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,l]}function tA(e,t,n){var r,o;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,l=n?e.indexOf(n):-1,a=(r=e,o=Math.max(l,0),r.map((e,t)=>r[(o+t)%r.length]));1===i.length&&(a=a.filter(e=>e!==n));let s=a.find(e=>e.textValue.toLowerCase().startsWith(i.toLowerCase()));return s!==n?s:void 0}tC.displayName="SelectBubbleInput";var tk=eZ,tj=eG,tR=e1,tP=e2,tL=e9,tT=e4,tI=ti,t$=th,tM=tm,tD=tg,tB=tb,tF=tx},78874:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},81408:(e,t,n)=>{let r;n.d(t,{As:()=>tu});let o=Symbol.for("yaml.alias"),i=Symbol.for("yaml.document"),l=Symbol.for("yaml.map"),a=Symbol.for("yaml.pair"),s=Symbol.for("yaml.scalar"),u=Symbol.for("yaml.seq"),c=Symbol.for("yaml.node.type"),d=e=>!!e&&"object"==typeof e&&e[c]===o,f=e=>!!e&&"object"==typeof e&&e[c]===i,h=e=>!!e&&"object"==typeof e&&e[c]===l,p=e=>!!e&&"object"==typeof e&&e[c]===a,m=e=>!!e&&"object"==typeof e&&e[c]===s,v=e=>!!e&&"object"==typeof e&&e[c]===u;function g(e){if(e&&"object"==typeof e)switch(e[c]){case l:case u:return!0}return!1}function y(e){if(e&&"object"==typeof e)switch(e[c]){case o:case l:case s:case u:return!0}return!1}let b=e=>(m(e)||g(e))&&!!e.anchor,w=Symbol("break visit"),x=Symbol("skip children"),E=Symbol("remove node");function S(e,t){let n=A(t);f(e)?C(null,e.contents,n,Object.freeze([e]))===E&&(e.contents=null):C(null,e,n,Object.freeze([]))}function C(e,t,n,r){let o=k(e,t,n,r);if(y(o)||p(o))return j(e,r,o),C(e,o,n,r);if("symbol"!=typeof o){if(g(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let o=C(e,t.items[e],n,r);if("number"==typeof o)e=o-1;else{if(o===w)return w;o===E&&(t.items.splice(e,1),e-=1)}}}else if(p(t)){r=Object.freeze(r.concat(t));let e=C("key",t.key,n,r);if(e===w)return w;e===E&&(t.key=null);let o=C("value",t.value,n,r);if(o===w)return w;o===E&&(t.value=null)}}return o}async function O(e,t){let n=A(t);f(e)?await N(null,e.contents,n,Object.freeze([e]))===E&&(e.contents=null):await N(null,e,n,Object.freeze([]))}async function N(e,t,n,r){let o=await k(e,t,n,r);if(y(o)||p(o))return j(e,r,o),N(e,o,n,r);if("symbol"!=typeof o){if(g(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let o=await N(e,t.items[e],n,r);if("number"==typeof o)e=o-1;else{if(o===w)return w;o===E&&(t.items.splice(e,1),e-=1)}}}else if(p(t)){r=Object.freeze(r.concat(t));let e=await N("key",t.key,n,r);if(e===w)return w;e===E&&(t.key=null);let o=await N("value",t.value,n,r);if(o===w)return w;o===E&&(t.value=null)}}return o}function A(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function k(e,t,n,r){return"function"==typeof n?n(e,t,r):h(t)?n.Map?.(e,t,r):v(t)?n.Seq?.(e,t,r):p(t)?n.Pair?.(e,t,r):m(t)?n.Scalar?.(e,t,r):d(t)?n.Alias?.(e,t,r):void 0}function j(e,t,n){let r=t[t.length-1];if(g(r))r.items[e]=n;else if(p(r))"key"===e?r.key=n:r.value=n;else if(f(r))r.contents=n;else{let e=d(r)?"alias":"scalar";throw Error(`Cannot replace node with ${e} parent`)}}S.BREAK=w,S.SKIP=x,S.REMOVE=E,O.BREAK=w,O.SKIP=x,O.REMOVE=E;let R={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},P=e=>e.replace(/[!,[\]{}]/g,e=>R[e]);class L{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},L.defaultYaml,e),this.tags=Object.assign({},L.defaultTags,t)}clone(){let e=new L(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new L(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:L.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},L.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:L.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},L.defaultTags),this.atNextDocument=!1);let n=e.trim().split(/[ \t]+/),r=n.shift();switch(r){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[e,r]=n;return this.tags[e]=r,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;let[e]=n;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;{let n=/^\d+\.\d+$/.test(e);return t(6,`Unsupported YAML version ${e}`,n),!1}}default:return t(0,`Unknown directive ${r}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){let n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let o=this.tags[n];if(o)try{return o+decodeURIComponent(r)}catch(e){return t(String(e)),null}return"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+P(e.substring(n.length));return"!"===e[0]?e:`!<${e}>`}toString(e){let t,n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);if(e&&r.length>0&&y(e.contents)){let n={};S(e.contents,(e,t)=>{y(t)&&t.tag&&(n[t.tag]=!0)}),t=Object.keys(n)}else t=[];for(let[o,i]of r)("!!"!==o||"tag:yaml.org,2002:"!==i)&&(!e||t.some(e=>e.startsWith(i)))&&n.push(`%TAG ${o} ${i}`);return n.join("\n")}}function T(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=JSON.stringify(e);throw Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function I(e){let t=new Set;return S(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function $(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function M(e,t,n,r){if(r&&"object"==typeof r)if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],o=M(e,r,String(t),n);void 0===o?delete r[t]:o!==n&&(r[t]=o)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),o=M(e,r,t,n);void 0===o?r.delete(t):o!==n&&r.set(t,o)}else if(r instanceof Set)for(let t of Array.from(r)){let n=M(e,r,t,t);void 0===n?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let o=M(e,r,t,n);void 0===o?delete r[t]:o!==n&&(r[t]=o)}return e.call(t,n,r)}function D(e,t,n){if(Array.isArray(e))return e.map((e,t)=>D(e,String(t),n));if(e&&"function"==typeof e.toJSON){if(!n||!b(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}return"bigint"!=typeof e||n?.keep?e:Number(e)}L.defaultYaml={explicit:!1,version:"1.2"},L.defaultTags={"!!":"tag:yaml.org,2002:"};class B{constructor(e){Object.defineProperty(this,c,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:o}={}){if(!f(e))throw TypeError("A document argument is required");let i={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},l=D(this,"",i);if("function"==typeof r)for(let{count:e,res:t}of i.anchors.values())r(t,e);return"function"==typeof o?M(o,{"":l},"",l):l}}class F extends B{constructor(e){super(o),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e,t){let n,r;if(t?.maxAliasCount===0)throw ReferenceError("Alias resolution is disabled");for(let o of(t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],S(e,{Node:(e,t)=>{(d(t)||b(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n)),n)){if(o===this)break;o.anchor===this.source&&(r=o)}if(r&&t){let{anchors:e,doc:n,maxAliasCount:o}=t,i=e.get(r);if(i||(D(r,null,t),i=e.get(r)),i?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(o>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=function e(t,n,r){if(d(n)){let e=n.resolve(t),o=r&&e&&r.get(e);return o?o.count*o.aliasCount:0}if(g(n)){let o=0;for(let i of n.items){let n=e(t,i,r);n>o&&(o=n)}return o}return p(n)?Math.max(e(t,n.key,r),e(t,n.value,r)):1}(n,r,e)),i.count*i.aliasCount>o))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return r}toJSON(e,t){if(!t)return{source:this.source};let n=this.resolve(t.doc,t);if(!n)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);return t.anchors.get(n).res}toString(e,t,n){let r=`*${this.source}`;if(e){if(T(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(e.implicitKey)return`${r} `}return r}}let _=e=>!e||"function"!=typeof e&&"object"!=typeof e;class W extends B{constructor(e){super(s),this.value=e}toJSON(e,t){return t?.keep?this.value:D(this.value,e,t)}toString(){return String(this.value)}}function K(e,t,n){let r;if(f(e)&&(e=e.contents),y(e))return e;if(p(e)){let t=n.schema[l].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:o,onAnchor:i,onTagObj:a,schema:s,sourceObjects:c}=n;if(o&&e&&"object"==typeof e){if(r=c.get(e))return r.anchor??(r.anchor=i(e)),new F(r.anchor);r={anchor:null,node:null},c.set(e,r)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let d=function(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}(e,t,s.tags);if(!d){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){let t=new W(e);return r&&(r.node=t),t}d=e instanceof Map?s[l]:Symbol.iterator in Object(e)?s[u]:s[l]}a&&(a(d),delete n.onTagObj);let h=d?.createNode?d.createNode(n.schema,e,n):"function"==typeof d?.nodeClass?.from?d.nodeClass.from(n.schema,e,n):new W(e);return t?h.tag=t:d.default||(h.tag=d.tag),r&&(r.node=h),h}function U(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return K(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}W.BLOCK_FOLDED="BLOCK_FOLDED",W.BLOCK_LITERAL="BLOCK_LITERAL",W.PLAIN="PLAIN",W.QUOTE_DOUBLE="QUOTE_DOUBLE",W.QUOTE_SINGLE="QUOTE_SINGLE";let z=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class V extends B{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>y(t)||p(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(z(e))this.add(t);else{let[n,...r]=e,o=this.get(n,!0);if(g(o))o.addIn(r,t);else if(void 0===o&&this.schema)this.set(n,U(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(0===n.length)return this.delete(t);let r=this.get(t,!0);if(g(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,o=this.get(n,!0);return 0===r.length?!t&&m(o)?o.value:o:g(o)?o.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!p(t))return!1;let n=t.value;return null==n||e&&m(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(0===n.length)return this.has(t);let r=this.get(t,!0);return!!g(r)&&r.hasIn(n)}setIn(e,t){let[n,...r]=e;if(0===r.length)this.set(n,t);else{let e=this.get(n,!0);if(g(e))e.setIn(r,t);else if(void 0===e&&this.schema)this.set(n,U(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}}let H=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Y(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}let J=(e,t,n)=>e.endsWith("\n")?Y(n,t):n.includes("\n")?"\n"+Y(n,t):(e.endsWith(" ")?"":" ")+n,q="flow",X="block",Z="quoted";function Q(e,t,n="flow",{indentAtStart:r,lineWidth:o=80,minContentWidth:i=20,onFold:l,onOverflow:a}={}){let s,u,c;if(!o||o<0)return e;o<i&&(i=0);let d=Math.max(1+i,1+o-t.length);if(e.length<=d)return e;let f=[],h={},p=o-t.length;"number"==typeof r&&(r>o-Math.max(2,i)?f.push(0):p=o-r);let m=!1,v=-1,g=-1,y=-1;for(n===X&&-1!==(v=G(e,v,t.length))&&(p=v+d);c=e[v+=1];){if(n===Z&&"\\"===c){switch(g=v,e[v+1]){case"x":v+=3;break;case"u":v+=5;break;case"U":v+=9;break;default:v+=1}y=v}if("\n"===c)n===X&&(v=G(e,v,t.length)),p=v+t.length+d,s=void 0;else{if(" "===c&&u&&" "!==u&&"\n"!==u&&" "!==u){let t=e[v+1];t&&" "!==t&&"\n"!==t&&" "!==t&&(s=v)}if(v>=p)if(s)f.push(s),p=s+d,s=void 0;else if(n===Z){for(;" "===u||" "===u;)u=c,c=e[v+=1],m=!0;let t=v>y+1?v-2:g-1;if(h[t])return e;f.push(t),h[t]=!0,p=t+d,s=void 0}else m=!0}u=c}if(m&&a&&a(),0===f.length)return e;l&&l();let b=e.slice(0,f[0]);for(let r=0;r<f.length;++r){let o=f[r],i=f[r+1]||e.length;0===o?b=`
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[604],{5917:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},6191:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},12108:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},20063:(e,t,n)=>{var r=n(47260);n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},24033:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},27937:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},34212:(e,t,n)=>{n.d(t,{q:()=>r});function r(e,[t,n]){return Math.min(n,Math.max(t,e))}},35299:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},35646:(e,t,n)=>{n.d(t,{UC:()=>$,VY:()=>F,ZD:()=>D,ZL:()=>T,bL:()=>P,hE:()=>B,hJ:()=>I,l9:()=>L,rc:()=>M});var r=n(12115),o=n(3468),i=n(94446),l=n(88292),a=n(92556),s=n(32467),u=n(95155),c="AlertDialog",[d,f]=(0,o.A)(c,[l.Hs]),h=(0,l.Hs)(),p=e=>{let{__scopeAlertDialog:t,...n}=e,r=h(t);return(0,u.jsx)(l.bL,{...r,...n,modal:!0})};p.displayName=c;var m=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=h(n);return(0,u.jsx)(l.l9,{...o,...r,ref:t})});m.displayName="AlertDialogTrigger";var v=e=>{let{__scopeAlertDialog:t,...n}=e,r=h(t);return(0,u.jsx)(l.ZL,{...r,...n})};v.displayName="AlertDialogPortal";var g=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=h(n);return(0,u.jsx)(l.hJ,{...o,...r,ref:t})});g.displayName="AlertDialogOverlay";var y="AlertDialogContent",[b,w]=d(y),x=(0,s.Dc)("AlertDialogContent"),E=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,children:o,...s}=e,c=h(n),d=r.useRef(null),f=(0,i.s)(t,d),p=r.useRef(null);return(0,u.jsx)(l.G$,{contentName:y,titleName:S,docsSlug:"alert-dialog",children:(0,u.jsx)(b,{scope:n,cancelRef:p,children:(0,u.jsxs)(l.UC,{role:"alertdialog",...c,...s,ref:f,onOpenAutoFocus:(0,a.m)(s.onOpenAutoFocus,e=>{var t;e.preventDefault(),null==(t=p.current)||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,u.jsx)(x,{children:o}),(0,u.jsx)(R,{contentRef:d})]})})})});E.displayName=y;var S="AlertDialogTitle",C=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=h(n);return(0,u.jsx)(l.hE,{...o,...r,ref:t})});C.displayName=S;var O="AlertDialogDescription",N=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=h(n);return(0,u.jsx)(l.VY,{...o,...r,ref:t})});N.displayName=O;var A=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=h(n);return(0,u.jsx)(l.bm,{...o,...r,ref:t})});A.displayName="AlertDialogAction";var k="AlertDialogCancel",j=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=w(k,n),a=h(n),s=(0,i.s)(t,o);return(0,u.jsx)(l.bm,{...a,...r,ref:s})});j.displayName=k;var R=e=>{let{contentRef:t}=e,n="`".concat(y,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(y,"` by passing a `").concat(O,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(y,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return r.useEffect(()=>{var e;document.getElementById(null==(e=t.current)?void 0:e.getAttribute("aria-describedby"))||console.warn(n)},[n,t]),null},P=p,L=m,T=v,I=g,$=E,M=A,D=j,B=C,F=N},39867:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},52056:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},71360:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},76412:(e,t,n)=>{n.d(t,{UC:()=>tT,In:()=>tP,q7:()=>t$,VF:()=>tD,p4:()=>tM,ZL:()=>tL,bL:()=>tk,wn:()=>tF,PP:()=>tB,l9:()=>tj,WT:()=>tR,LM:()=>tI});var r,o,i=n(12115),l=n(47650),a=n(34212),s=n(92556),u=n(97239),c=n(97999),d=n(69023),f=n(3468),h=n(94446),p=n(95155);function m(e){let t=function(e){let t=i.forwardRef((e,t)=>{var n,r,o;let l,a,{children:s,...u}=e,c=i.isValidElement(s)?(a=(l=null==(r=Object.getOwnPropertyDescriptor((n=s).props,"ref"))?void 0:r.get)&&"isReactWarning"in l&&l.isReactWarning)?n.ref:(a=(l=null==(o=Object.getOwnPropertyDescriptor(n,"ref"))?void 0:o.get)&&"isReactWarning"in l&&l.isReactWarning)?n.props.ref:n.props.ref||n.ref:void 0,d=(0,h.s)(c,t);if(i.isValidElement(s)){let e=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=i(...t);return o(...t),r}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(u,s.props);return s.type!==i.Fragment&&(e.ref=d),i.cloneElement(s,e)}return i.Children.count(s)>1?i.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}(e),n=i.forwardRef((e,n)=>{let{children:r,...o}=e,l=i.Children.toArray(r),a=l.find(g);if(a){let e=a.props.children,r=l.map(t=>t!==a?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,p.jsx)(t,{...o,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return(0,p.jsx)(t,{...o,ref:n,children:r})});return n.displayName="".concat(e,".Slot"),n}var v=Symbol("radix.slottable");function g(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===v}var y=new WeakMap;function b(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=function(e,t){let n=e.length,r=w(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}(e,t);return -1===n?void 0:e[n]}function w(e){return e!=e||0===e?0:Math.trunc(e)}r=new WeakMap,class e extends Map{set(e,t){return y.get(this)&&(this.has(e)?(0,u._)(this,r)[(0,u._)(this,r).indexOf(e)]=e:(0,u._)(this,r).push(e)),super.set(e,t),this}insert(e,t,n){let o,i=this.has(t),l=(0,u._)(this,r).length,a=w(e),s=a>=0?a:l+a,c=s<0||s>=l?-1:s;if(c===this.size||i&&c===this.size-1||-1===c)return this.set(t,n),this;let d=this.size+ +!i;a<0&&s++;let f=[...(0,u._)(this,r)],h=!1;for(let e=s;e<d;e++)if(s===e){let r=f[e];f[e]===t&&(r=f[e+1]),i&&this.delete(t),o=this.get(r),this.set(t,n)}else{h||f[e-1]!==t||(h=!0);let n=f[h?e:e-1],r=o;o=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let o=new e(this);return o.insert(t,n,r),o}before(e){let t=(0,u._)(this,r).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let o=(0,u._)(this,r).indexOf(e);return -1===o?this:this.insert(o,t,n)}after(e){let t=(0,u._)(this,r).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let o=(0,u._)(this,r).indexOf(e);return -1===o?this:this.insert(o+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return(0,d._)(this,r,[]),super.clear()}delete(e){let t=super.delete(e);return t&&(0,u._)(this,r).splice((0,u._)(this,r).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=b((0,u._)(this,r),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=b((0,u._)(this,r),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return(0,u._)(this,r).indexOf(e)}keyAt(e){return b((0,u._)(this,r),e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],o=0;for(let e of this)Reflect.apply(t,n,[e,o,this])&&r.push(e),o++;return new e(r)}map(t,n){let r=[],o=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,o,this])]),o++;return new e(r)}reduce(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,o]=t,i=0,l=null!=o?o:this.at(0);for(let e of this)l=0===i&&1===t.length?e:Reflect.apply(r,this,[l,e,i,this]),i++;return l}reduceRight(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,o]=t,i=null!=o?o:this.at(-1);for(let e=this.size-1;e>=0;e--){let n=this.at(e);i=e===this.size-1&&1===t.length?n:Reflect.apply(r,this,[i,n,e,this])}return i}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let o=[...this.entries()];return o.splice(...n),new e(o)}slice(t,n){let r=new e,o=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(o=n-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}constructor(e){super(e),(0,c._)(this,r,{writable:!0,value:void 0}),(0,d._)(this,r,[...super.keys()]),y.set(this,!0)}};var x=n(66218),E=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=m(`Primitive.${t}`),r=i.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,p.jsx)(o?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),S=n(70222),C=n(59584),O="dismissableLayer.update",N=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),A=i.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f,...m}=e,v=i.useContext(N),[g,y]=i.useState(null),b=null!=(r=null==g?void 0:g.ownerDocument)?r:null==(n=globalThis)?void 0:n.document,[,w]=i.useState({}),x=(0,h.s)(t,e=>y(e)),A=Array.from(v.layers),[R]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),P=A.indexOf(R),L=g?A.indexOf(g):-1,T=v.layersWithOutsidePointerEventsDisabled.size>0,I=L>=P,$=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,S.c)(e),o=i.useRef(!1),l=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){j("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",l.current),l.current=t,n.addEventListener("click",l.current,{once:!0})):t()}else n.removeEventListener("click",l.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...v.branches].some(e=>e.contains(t));I&&!n&&(null==u||u(e),null==d||d(e),e.defaultPrevented||null==f||f())},b),M=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,S.c)(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!o.current&&j("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;![...v.branches].some(e=>e.contains(t))&&(null==c||c(e),null==d||d(e),e.defaultPrevented||null==f||f())},b);return(0,C.U)(e=>{L===v.layers.size-1&&(null==a||a(e),!e.defaultPrevented&&f&&(e.preventDefault(),f()))},b),i.useEffect(()=>{if(g)return l&&(0===v.layersWithOutsidePointerEventsDisabled.size&&(o=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(g)),v.layers.add(g),k(),()=>{l&&1===v.layersWithOutsidePointerEventsDisabled.size&&(b.body.style.pointerEvents=o)}},[g,b,l,v]),i.useEffect(()=>()=>{g&&(v.layers.delete(g),v.layersWithOutsidePointerEventsDisabled.delete(g),k())},[g,v]),i.useEffect(()=>{let e=()=>w({});return document.addEventListener(O,e),()=>document.removeEventListener(O,e)},[]),(0,p.jsx)(E.div,{...m,ref:x,style:{pointerEvents:T?I?"auto":"none":void 0,...e.style},onFocusCapture:(0,s.m)(e.onFocusCapture,M.onFocusCapture),onBlurCapture:(0,s.m)(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:(0,s.m)(e.onPointerDownCapture,$.onPointerDownCapture)})});function k(){let e=new CustomEvent(O);document.dispatchEvent(e)}function j(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});if(t&&i.addEventListener(e,t,{once:!0}),o)i&&l.flushSync(()=>i.dispatchEvent(a));else i.dispatchEvent(a)}A.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(N),r=i.useRef(null),o=(0,h.s)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,p.jsx)(E.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var R=n(19526),P="focusScope.autoFocusOnMount",L="focusScope.autoFocusOnUnmount",T={bubbles:!1,cancelable:!0},I=i.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...a}=e,[s,u]=i.useState(null),c=(0,S.c)(o),d=(0,S.c)(l),f=i.useRef(null),m=(0,h.s)(t,e=>u(e)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(v.paused||!s)return;let t=e.target;s.contains(t)?f.current=t:D(f.current,{select:!0})},t=function(e){if(v.paused||!s)return;let t=e.relatedTarget;null!==t&&(s.contains(t)||D(f.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&D(s)});return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,s,v.paused]),i.useEffect(()=>{if(s){B.add(v);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(P,T);s.addEventListener(P,c),s.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(D(r,{select:t}),document.activeElement!==n)return}($(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&D(s))}return()=>{s.removeEventListener(P,c),setTimeout(()=>{let t=new CustomEvent(L,T);s.addEventListener(L,d),s.dispatchEvent(t),t.defaultPrevented||D(null!=e?e:document.body,{select:!0}),s.removeEventListener(L,d),B.remove(v)},0)}}},[s,c,d,v]);let g=i.useCallback(e=>{if(!n&&!r||v.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=$(e);return[M(t,e),M(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&D(i,{select:!0})):(e.preventDefault(),n&&D(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,v.paused]);return(0,p.jsx)(E.div,{tabIndex:-1,...a,ref:m,onKeyDown:g})});function $(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function M(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function D(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}I.displayName="FocusScope";var B=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=F(e,t)).unshift(t)},remove(t){var n;null==(n=(e=F(e,t))[0])||n.resume()}}}();function F(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var _=n(68946),W=n(88334),K=n(58146),U=i.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,p.jsx)(E.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,p.jsx)("polygon",{points:"0,0 30,0 15,10"})})});U.displayName="Arrow";var z=n(4129),V=n(84288),H="Popper",[Y,J]=(0,f.A)(H),[q,X]=Y(H),Z=e=>{let{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return(0,p.jsx)(q,{scope:t,anchor:r,onAnchorChange:o,children:n})};Z.displayName=H;var Q="PopperAnchor",G=i.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,l=X(Q,n),a=i.useRef(null),s=(0,h.s)(t,a);return i.useEffect(()=>{l.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,p.jsx)(E.div,{...o,ref:s})});G.displayName=Q;var ee="PopperContent",[et,en]=Y(ee),er=i.forwardRef((e,t)=>{var n,r,o,l,a,s,u,c;let{__scopePopper:d,side:f="bottom",sideOffset:m=0,align:v="center",alignOffset:g=0,arrowPadding:y=0,avoidCollisions:b=!0,collisionBoundary:w=[],collisionPadding:x=0,sticky:C="partial",hideWhenDetached:O=!1,updatePositionStrategy:N="optimized",onPlaced:A,...k}=e,j=X(ee,d),[R,P]=i.useState(null),L=(0,h.s)(t,e=>P(e)),[T,I]=i.useState(null),$=(0,V.X)(T),M=null!=(u=null==$?void 0:$.width)?u:0,D=null!=(c=null==$?void 0:$.height)?c:0,B="number"==typeof x?x:{top:0,right:0,bottom:0,left:0,...x},F=Array.isArray(w)?w:[w],_=F.length>0,U={padding:B,boundary:F.filter(ea),altBoundary:_},{refs:H,floatingStyles:Y,placement:J,isPositioned:q,middlewareData:Z}=(0,W.we)({strategy:"fixed",placement:f+("center"!==v?"-"+v:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,K.ll)(...t,{animationFrame:"always"===N})},elements:{reference:j.anchor},middleware:[(0,W.cY)({mainAxis:m+D,alignmentAxis:g}),b&&(0,W.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?(0,W.ER)():void 0,...U}),b&&(0,W.UU)({...U}),(0,W.Ej)({...U,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),T&&(0,W.UE)({element:T,padding:y}),es({arrowWidth:M,arrowHeight:D}),O&&(0,W.jD)({strategy:"referenceHidden",...U})]}),[Q,G]=eu(J),en=(0,S.c)(A);(0,z.N)(()=>{q&&(null==en||en())},[q,en]);let er=null==(n=Z.arrow)?void 0:n.x,eo=null==(r=Z.arrow)?void 0:r.y,ei=(null==(o=Z.arrow)?void 0:o.centerOffset)!==0,[el,ec]=i.useState();return(0,z.N)(()=>{R&&ec(window.getComputedStyle(R).zIndex)},[R]),(0,p.jsx)("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:q?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:el,"--radix-popper-transform-origin":[null==(l=Z.transformOrigin)?void 0:l.x,null==(a=Z.transformOrigin)?void 0:a.y].join(" "),...(null==(s=Z.hide)?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,p.jsx)(et,{scope:d,placedSide:Q,onArrowChange:I,arrowX:er,arrowY:eo,shouldHideArrow:ei,children:(0,p.jsx)(E.div,{"data-side":Q,"data-align":G,...k,ref:L,style:{...k.style,animation:q?void 0:"none"}})})})});er.displayName=ee;var eo="PopperArrow",ei={top:"bottom",right:"left",bottom:"top",left:"right"},el=i.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=en(eo,n),i=ei[o.placedSide];return(0,p.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,p.jsx)(U,{...r,ref:t,style:{...r.style,display:"block"}})})});function ea(e){return null!==e}el.displayName=eo;var es=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:s,middlewareData:u}=t,c=(null==(n=u.arrow)?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=eu(a),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!=(i=null==(r=u.arrow)?void 0:r.x)?i:0)+d/2,g=(null!=(l=null==(o=u.arrow)?void 0:o.y)?l:0)+f/2,y="",b="";return"bottom"===h?(y=c?m:"".concat(v,"px"),b="".concat(-f,"px")):"top"===h?(y=c?m:"".concat(v,"px"),b="".concat(s.floating.height+f,"px")):"right"===h?(y="".concat(-f,"px"),b=c?m:"".concat(g,"px")):"left"===h&&(y="".concat(s.floating.width+f,"px"),b=c?m:"".concat(g,"px")),{data:{x:y,y:b}}}});function eu(e){let[t,n="center"]=e.split("-");return[t,n]}var ec=i.forwardRef((e,t)=>{var n,r;let{container:o,...a}=e,[s,u]=i.useState(!1);(0,z.N)(()=>u(!0),[]);let c=o||s&&(null==(r=globalThis)||null==(n=r.document)?void 0:n.body);return c?l.createPortal((0,p.jsx)(E.div,{...a,ref:t}),c):null});ec.displayName="Portal";var ed=n(23558),ef=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});i.forwardRef((e,t)=>(0,p.jsx)(E.span,{...e,ref:t,style:{...ef,...e.style}})).displayName="VisuallyHidden";var eh=n(97745),ep=n(71450),em=n(60216),ev=n(78357),eg=(0,n(43711).f)(),ey=function(){},eb=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:ey,onWheelCapture:ey,onTouchMoveCapture:ey}),o=r[0],l=r[1],a=e.forwardProps,s=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,p=e.noIsolation,m=e.inert,v=e.allowPinchZoom,g=e.as,y=e.gapMode,b=(0,ep.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=(0,ev.S)([n,t]),x=(0,ep.Cl)((0,ep.Cl)({},b),o);return i.createElement(i.Fragment,null,d&&i.createElement(h,{sideCar:eg,removeScrollBar:c,shards:f,noIsolation:p,inert:m,setCallbacks:l,allowPinchZoom:!!v,lockRef:n,gapMode:y}),a?i.cloneElement(i.Children.only(s),(0,ep.Cl)((0,ep.Cl)({},x),{ref:w})):i.createElement(void 0===g?"div":g,(0,ep.Cl)({},x,{className:u,ref:w}),s))});eb.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eb.classNames={fullWidth:em.pN,zeroRight:em.Mi};var ew=n(39615),ex=n(46810),eE=n(65841),eS=!1;if("undefined"!=typeof window)try{var eC=Object.defineProperty({},"passive",{get:function(){return eS=!0,!0}});window.addEventListener("test",eC,eC),window.removeEventListener("test",eC,eC)}catch(e){eS=!1}var eO=!!eS&&{passive:!1},eN=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},eA=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),ek(e,r)){var o=ej(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ek=function(e,t){return"v"===e?eN(t,"overflowY"):eN(t,"overflowX")},ej=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eR=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,s=n.target,u=t.contains(s),c=!1,d=a>0,f=0,h=0;do{var p=ej(e,s),m=p[0],v=p[1]-p[2]-l*m;(m||v)&&ek(e,s)&&(f+=v,h+=m),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return d&&(o&&1>Math.abs(f)||!o&&a>f)?c=!0:!d&&(o&&1>Math.abs(h)||!o&&-a>h)&&(c=!0),c},eP=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eL=function(e){return[e.deltaX,e.deltaY]},eT=function(e){return e&&"current"in e?e.current:e},eI=0,e$=[];let eM=(0,ew.m)(eg,function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(eI++)[0],l=i.useState(eE.T0)[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,ep.fX)([e.lockRef.current],(e.shards||[]).map(eT),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=eP(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-i[0],u="deltaY"in e?e.deltaY:l[1]-i[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=eA(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=eA(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var h=r.current||o;return eR(h,t,e,"h"===h?s:u,!0)},[]),u=i.useCallback(function(e){if(e$.length&&e$[e$.length-1]===l){var n="deltaY"in e?eL(e):eP(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(eT).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?s(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=i.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=i.useCallback(function(e){n.current=eP(e),r.current=void 0},[]),f=i.useCallback(function(t){c(t.type,eL(t),t.target,s(t,e.lockRef.current))},[]),h=i.useCallback(function(t){c(t.type,eP(t),t.target,s(t,e.lockRef.current))},[]);i.useEffect(function(){return e$.push(l),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,eO),document.addEventListener("touchmove",u,eO),document.addEventListener("touchstart",d,eO),function(){e$=e$.filter(function(e){return e!==l}),document.removeEventListener("wheel",u,eO),document.removeEventListener("touchmove",u,eO),document.removeEventListener("touchstart",d,eO)}},[]);var p=e.removeScrollBar,m=e.inert;return i.createElement(i.Fragment,null,m?i.createElement(l,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,p?i.createElement(ex.jp,{gapMode:e.gapMode}):null)});var eD=i.forwardRef(function(e,t){return i.createElement(eb,(0,ep.Cl)({},e,{ref:t,sideCar:eM}))});eD.classNames=eb.classNames;var eB=[" ","Enter","ArrowUp","ArrowDown"],eF=[" ","Enter"],e_="Select",[eW,eK,eU]=function(e){let t=e+"CollectionProvider",[n,r]=(0,f.A)(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{let{scope:t,children:n}=e,r=i.useRef(null),l=i.useRef(new Map).current;return(0,p.jsx)(o,{scope:t,itemMap:l,collectionRef:r,children:n})};a.displayName=t;let s=e+"CollectionSlot",u=m(s),c=i.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=l(s,n),i=(0,h.s)(t,o.collectionRef);return(0,p.jsx)(u,{ref:i,children:r})});c.displayName=s;let d=e+"CollectionItemSlot",v="data-radix-collection-item",g=m(d),y=i.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,a=i.useRef(null),s=(0,h.s)(t,a),u=l(d,n);return i.useEffect(()=>(u.itemMap.set(a,{ref:a,...o}),()=>void u.itemMap.delete(a))),(0,p.jsx)(g,{...{[v]:""},ref:s,children:r})});return y.displayName=d,[{Provider:a,Slot:c,ItemSlot:y},function(t){let n=l(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}(e_),[ez,eV]=(0,f.A)(e_,[eU,J]),eH=J(),[eY,eJ]=ez(e_),[eq,eX]=ez(e_),eZ=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:l,value:a,defaultValue:s,onValueChange:u,dir:c,name:d,autoComplete:f,disabled:h,required:m,form:v}=e,g=eH(t),[y,b]=i.useState(null),[w,E]=i.useState(null),[S,C]=i.useState(!1),O=(0,x.jH)(c),[N,A]=(0,ed.i)({prop:r,defaultProp:null!=o&&o,onChange:l,caller:e_}),[k,j]=(0,ed.i)({prop:a,defaultProp:s,onChange:u,caller:e_}),R=i.useRef(null),P=!y||v||!!y.closest("form"),[L,T]=i.useState(new Set),I=Array.from(L).map(e=>e.props.value).join(";");return(0,p.jsx)(Z,{...g,children:(0,p.jsxs)(eY,{required:m,scope:t,trigger:y,onTriggerChange:b,valueNode:w,onValueNodeChange:E,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:(0,_.B)(),value:k,onValueChange:j,open:N,onOpenChange:A,dir:O,triggerPointerDownPosRef:R,disabled:h,children:[(0,p.jsx)(eW.Provider,{scope:t,children:(0,p.jsx)(eq,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(e=>{T(t=>new Set(t).add(e))},[]),onNativeOptionRemove:i.useCallback(e=>{T(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),P?(0,p.jsxs)(tC,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:f,value:k,onChange:e=>j(e.target.value),disabled:h,form:v,children:[void 0===k?(0,p.jsx)("option",{value:""}):null,Array.from(L)]},I):null]})})};eZ.displayName=e_;var eQ="SelectTrigger",eG=i.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...o}=e,l=eH(n),a=eJ(eQ,n),u=a.disabled||r,c=(0,h.s)(t,a.onTriggerChange),d=eK(n),f=i.useRef("touch"),[m,v,g]=tN(e=>{let t=d().filter(e=>!e.disabled),n=t.find(e=>e.value===a.value),r=tA(t,e,n);void 0!==r&&a.onValueChange(r.value)}),y=e=>{u||(a.onOpenChange(!0),g()),e&&(a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,p.jsx)(G,{asChild:!0,...l,children:(0,p.jsx)(E.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":tO(a.value)?"":void 0,...o,ref:c,onClick:(0,s.m)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==f.current&&y(e)}),onPointerDown:(0,s.m)(o.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(y(e),e.preventDefault())}),onKeyDown:(0,s.m)(o.onKeyDown,e=>{let t=""!==m.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||v(e.key),(!t||" "!==e.key)&&eB.includes(e.key)&&(y(),e.preventDefault())})})})});eG.displayName=eQ;var e0="SelectValue",e1=i.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...a}=e,s=eJ(e0,n),{onValueNodeHasChildrenChange:u}=s,c=void 0!==i,d=(0,h.s)(t,s.onValueNodeChange);return(0,z.N)(()=>{u(c)},[u,c]),(0,p.jsx)(E.span,{...a,ref:d,style:{pointerEvents:"none"},children:tO(s.value)?(0,p.jsx)(p.Fragment,{children:l}):i})});e1.displayName=e0;var e2=i.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...o}=e;return(0,p.jsx)(E.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});e2.displayName="SelectIcon";var e9=e=>(0,p.jsx)(ec,{asChild:!0,...e});e9.displayName="SelectPortal";var e6="SelectContent",e5=i.forwardRef((e,t)=>{let n=eJ(e6,e.__scopeSelect),[r,o]=i.useState();return((0,z.N)(()=>{o(new DocumentFragment)},[]),n.open)?(0,p.jsx)(e3,{...e,ref:t}):r?l.createPortal((0,p.jsx)(e4,{scope:e.__scopeSelect,children:(0,p.jsx)(eW.Slot,{scope:e.__scopeSelect,children:(0,p.jsx)("div",{children:e.children})})}),r):null});e5.displayName=e6;var[e4,e8]=ez(e6),e7=m("SelectContent.RemoveScroll"),e3=i.forwardRef((e,t)=>{let{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:l,onPointerDownOutside:a,side:u,sideOffset:c,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:v,collisionPadding:g,sticky:y,hideWhenDetached:b,avoidCollisions:w,...x}=e,E=eJ(e6,n),[S,C]=i.useState(null),[O,N]=i.useState(null),k=(0,h.s)(t,e=>C(e)),[j,P]=i.useState(null),[L,T]=i.useState(null),$=eK(n),[M,D]=i.useState(!1),B=i.useRef(!1);i.useEffect(()=>{if(S)return(0,eh.Eq)(S)},[S]),(0,R.Oh)();let F=i.useCallback(e=>{let[t,...n]=$().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(let n of e)if(n===o||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&O&&(O.scrollTop=0),n===r&&O&&(O.scrollTop=O.scrollHeight),null==n||n.focus(),document.activeElement!==o))return},[$,O]),_=i.useCallback(()=>F([j,S]),[F,j,S]);i.useEffect(()=>{M&&_()},[M,_]);let{onOpenChange:W,triggerPointerDownPosRef:K}=E;i.useEffect(()=>{if(S){let e={x:0,y:0},t=t=>{var n,r,o,i;e={x:Math.abs(Math.round(t.pageX)-(null!=(o=null==(n=K.current)?void 0:n.x)?o:0)),y:Math.abs(Math.round(t.pageY)-(null!=(i=null==(r=K.current)?void 0:r.y)?i:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():S.contains(n.target)||W(!1),document.removeEventListener("pointermove",t),K.current=null};return null!==K.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[S,W,K]),i.useEffect(()=>{let e=()=>W(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[W]);let[U,z]=tN(e=>{let t=$().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=tA(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),V=i.useCallback((e,t,n)=>{let r=!B.current&&!n;(void 0!==E.value&&E.value===t||r)&&(P(e),r&&(B.current=!0))},[E.value]),H=i.useCallback(()=>null==S?void 0:S.focus(),[S]),Y=i.useCallback((e,t,n)=>{let r=!B.current&&!n;(void 0!==E.value&&E.value===t||r)&&T(e)},[E.value]),J="popper"===r?tt:te,q=J===tt?{side:u,sideOffset:c,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:v,collisionPadding:g,sticky:y,hideWhenDetached:b,avoidCollisions:w}:{};return(0,p.jsx)(e4,{scope:n,content:S,viewport:O,onViewportChange:N,itemRefCallback:V,selectedItem:j,onItemLeave:H,itemTextRefCallback:Y,focusSelectedItem:_,selectedItemText:L,position:r,isPositioned:M,searchRef:U,children:(0,p.jsx)(eD,{as:e7,allowPinchZoom:!0,children:(0,p.jsx)(I,{asChild:!0,trapped:E.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,s.m)(o,e=>{var t;null==(t=E.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,p.jsx)(A,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>E.onOpenChange(!1),children:(0,p.jsx)(J,{role:"listbox",id:E.contentId,"data-state":E.open?"open":"closed",dir:E.dir,onContextMenu:e=>e.preventDefault(),...x,...q,onPlaced:()=>D(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:(0,s.m)(x.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=$().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>F(t)),e.preventDefault()}})})})})})})});e3.displayName="SelectContentImpl";var te=i.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...o}=e,l=eJ(e6,n),s=e8(e6,n),[u,c]=i.useState(null),[d,f]=i.useState(null),m=(0,h.s)(t,e=>f(e)),v=eK(n),g=i.useRef(!1),y=i.useRef(!0),{viewport:b,selectedItem:w,selectedItemText:x,focusSelectedItem:S}=s,C=i.useCallback(()=>{if(l.trigger&&l.valueNode&&u&&d&&b&&w&&x){let e=l.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=l.valueNode.getBoundingClientRect(),o=x.getBoundingClientRect();if("rtl"!==l.dir){let r=o.left-t.left,i=n.left-r,l=e.left-i,s=e.width+l,c=Math.max(s,t.width),d=window.innerWidth-10,f=(0,a.q)(i,[10,Math.max(10,d-c)]);u.style.minWidth=s+"px",u.style.left=f+"px"}else{let r=t.right-o.right,i=window.innerWidth-n.right-r,l=window.innerWidth-e.right-i,s=e.width+l,c=Math.max(s,t.width),d=window.innerWidth-10,f=(0,a.q)(i,[10,Math.max(10,d-c)]);u.style.minWidth=s+"px",u.style.right=f+"px"}let i=v(),s=window.innerHeight-20,c=b.scrollHeight,f=window.getComputedStyle(d),h=parseInt(f.borderTopWidth,10),p=parseInt(f.paddingTop,10),m=parseInt(f.borderBottomWidth,10),y=h+p+c+parseInt(f.paddingBottom,10)+m,E=Math.min(5*w.offsetHeight,y),S=window.getComputedStyle(b),C=parseInt(S.paddingTop,10),O=parseInt(S.paddingBottom,10),N=e.top+e.height/2-10,A=w.offsetHeight/2,k=h+p+(w.offsetTop+A);if(k<=N){let e=i.length>0&&w===i[i.length-1].ref.current;u.style.bottom="0px";let t=Math.max(s-N,A+(e?O:0)+(d.clientHeight-b.offsetTop-b.offsetHeight)+m);u.style.height=k+t+"px"}else{let e=i.length>0&&w===i[0].ref.current;u.style.top="0px";let t=Math.max(N,h+b.offsetTop+(e?C:0)+A);u.style.height=t+(y-k)+"px",b.scrollTop=k-N+b.offsetTop}u.style.margin="".concat(10,"px 0"),u.style.minHeight=E+"px",u.style.maxHeight=s+"px",null==r||r(),requestAnimationFrame(()=>g.current=!0)}},[v,l.trigger,l.valueNode,u,d,b,w,x,l.dir,r]);(0,z.N)(()=>C(),[C]);let[O,N]=i.useState();(0,z.N)(()=>{d&&N(window.getComputedStyle(d).zIndex)},[d]);let A=i.useCallback(e=>{e&&!0===y.current&&(C(),null==S||S(),y.current=!1)},[C,S]);return(0,p.jsx)(tn,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:g,onScrollButtonChange:A,children:(0,p.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O},children:(0,p.jsx)(E.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});te.displayName="SelectItemAlignedPosition";var tt=i.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...i}=e,l=eH(n);return(0,p.jsx)(er,{...l,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});tt.displayName="SelectPopperPosition";var[tn,tr]=ez(e6,{}),to="SelectViewport",ti=i.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...o}=e,l=e8(to,n),a=tr(to,n),u=(0,h.s)(t,l.onViewportChange),c=i.useRef(0);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),(0,p.jsx)(eW.Slot,{scope:n,children:(0,p.jsx)(E.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,s.m)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=a;if((null==r?void 0:r.current)&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,o=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(o<r){let i=o+e,l=Math.min(r,i),a=i-l;n.style.height=l+"px","0px"===n.style.bottom&&(t.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}c.current=t.scrollTop})})})]})});ti.displayName=to;var tl="SelectGroup",[ta,ts]=ez(tl);i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=(0,_.B)();return(0,p.jsx)(ta,{scope:n,id:o,children:(0,p.jsx)(E.div,{role:"group","aria-labelledby":o,...r,ref:t})})}).displayName=tl;var tu="SelectLabel";i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=ts(tu,n);return(0,p.jsx)(E.div,{id:o.id,...r,ref:t})}).displayName=tu;var tc="SelectItem",[td,tf]=ez(tc),th=i.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:o=!1,textValue:l,...a}=e,u=eJ(tc,n),c=e8(tc,n),d=u.value===r,[f,m]=i.useState(null!=l?l:""),[v,g]=i.useState(!1),y=(0,h.s)(t,e=>{var t;return null==(t=c.itemRefCallback)?void 0:t.call(c,e,r,o)}),b=(0,_.B)(),w=i.useRef("touch"),x=()=>{o||(u.onValueChange(r),u.onOpenChange(!1))};if(""===r)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,p.jsx)(td,{scope:n,value:r,disabled:o,textId:b,isSelected:d,onItemTextChange:i.useCallback(e=>{m(t=>{var n;return t||(null!=(n=null==e?void 0:e.textContent)?n:"").trim()})},[]),children:(0,p.jsx)(eW.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:(0,p.jsx)(E.div,{role:"option","aria-labelledby":b,"data-highlighted":v?"":void 0,"aria-selected":d&&v,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:y,onFocus:(0,s.m)(a.onFocus,()=>g(!0)),onBlur:(0,s.m)(a.onBlur,()=>g(!1)),onClick:(0,s.m)(a.onClick,()=>{"mouse"!==w.current&&x()}),onPointerUp:(0,s.m)(a.onPointerUp,()=>{"mouse"===w.current&&x()}),onPointerDown:(0,s.m)(a.onPointerDown,e=>{w.current=e.pointerType}),onPointerMove:(0,s.m)(a.onPointerMove,e=>{if(w.current=e.pointerType,o){var t;null==(t=c.onItemLeave)||t.call(c)}else"mouse"===w.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,s.m)(a.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null==(t=c.onItemLeave)||t.call(c)}}),onKeyDown:(0,s.m)(a.onKeyDown,e=>{var t;((null==(t=c.searchRef)?void 0:t.current)===""||" "!==e.key)&&(eF.includes(e.key)&&x()," "===e.key&&e.preventDefault())})})})})});th.displayName=tc;var tp="SelectItemText",tm=i.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,...a}=e,s=eJ(tp,n),u=e8(tp,n),c=tf(tp,n),d=eX(tp,n),[f,m]=i.useState(null),v=(0,h.s)(t,e=>m(e),c.onItemTextChange,e=>{var t;return null==(t=u.itemTextRefCallback)?void 0:t.call(u,e,c.value,c.disabled)}),g=null==f?void 0:f.textContent,y=i.useMemo(()=>(0,p.jsx)("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:b,onNativeOptionRemove:w}=d;return(0,z.N)(()=>(b(y),()=>w(y)),[b,w,y]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(E.span,{id:c.textId,...a,ref:v}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?l.createPortal(a.children,s.valueNode):null]})});tm.displayName=tp;var tv="SelectItemIndicator",tg=i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return tf(tv,n).isSelected?(0,p.jsx)(E.span,{"aria-hidden":!0,...r,ref:t}):null});tg.displayName=tv;var ty="SelectScrollUpButton",tb=i.forwardRef((e,t)=>{let n=e8(ty,e.__scopeSelect),r=tr(ty,e.__scopeSelect),[o,l]=i.useState(!1),a=(0,h.s)(t,r.onScrollButtonChange);return(0,z.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){l(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,p.jsx)(tE,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});tb.displayName=ty;var tw="SelectScrollDownButton",tx=i.forwardRef((e,t)=>{let n=e8(tw,e.__scopeSelect),r=tr(tw,e.__scopeSelect),[o,l]=i.useState(!1),a=(0,h.s)(t,r.onScrollButtonChange);return(0,z.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;l(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,p.jsx)(tE,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});tx.displayName=tw;var tE=i.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...o}=e,l=e8("SelectScrollButton",n),a=i.useRef(null),u=eK(n),c=i.useCallback(()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)},[]);return i.useEffect(()=>()=>c(),[c]),(0,z.N)(()=>{var e;let t=u().find(e=>e.ref.current===document.activeElement);null==t||null==(e=t.ref.current)||e.scrollIntoView({block:"nearest"})},[u]),(0,p.jsx)(E.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,s.m)(o.onPointerDown,()=>{null===a.current&&(a.current=window.setInterval(r,50))}),onPointerMove:(0,s.m)(o.onPointerMove,()=>{var e;null==(e=l.onItemLeave)||e.call(l),null===a.current&&(a.current=window.setInterval(r,50))}),onPointerLeave:(0,s.m)(o.onPointerLeave,()=>{c()})})});i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,p.jsx)(E.div,{"aria-hidden":!0,...r,ref:t})}).displayName="SelectSeparator";var tS="SelectArrow";i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=eH(n),i=eJ(tS,n),l=e8(tS,n);return i.open&&"popper"===l.position?(0,p.jsx)(el,{...o,...r,ref:t}):null}).displayName=tS;var tC=i.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,...o}=e,l=i.useRef(null),a=(0,h.s)(t,l),s=function(e){let t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(r);return i.useEffect(()=>{let e=l.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(s!==r&&t){let n=new Event("change",{bubbles:!0});t.call(e,r),e.dispatchEvent(n)}},[s,r]),(0,p.jsx)(E.select,{...o,style:{...ef,...o.style},ref:a,defaultValue:r})});function tO(e){return""===e||void 0===e}function tN(e){let t=(0,S.c)(e),n=i.useRef(""),r=i.useRef(0),o=i.useCallback(e=>{let o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),l=i.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,l]}function tA(e,t,n){var r,o;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,l=n?e.indexOf(n):-1,a=(r=e,o=Math.max(l,0),r.map((e,t)=>r[(o+t)%r.length]));1===i.length&&(a=a.filter(e=>e!==n));let s=a.find(e=>e.textValue.toLowerCase().startsWith(i.toLowerCase()));return s!==n?s:void 0}tC.displayName="SelectBubbleInput";var tk=eZ,tj=eG,tR=e1,tP=e2,tL=e9,tT=e5,tI=ti,t$=th,tM=tm,tD=tg,tB=tb,tF=tx},78874:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},81408:(e,t,n)=>{let r;n.d(t,{As:()=>tu});let o=Symbol.for("yaml.alias"),i=Symbol.for("yaml.document"),l=Symbol.for("yaml.map"),a=Symbol.for("yaml.pair"),s=Symbol.for("yaml.scalar"),u=Symbol.for("yaml.seq"),c=Symbol.for("yaml.node.type"),d=e=>!!e&&"object"==typeof e&&e[c]===o,f=e=>!!e&&"object"==typeof e&&e[c]===i,h=e=>!!e&&"object"==typeof e&&e[c]===l,p=e=>!!e&&"object"==typeof e&&e[c]===a,m=e=>!!e&&"object"==typeof e&&e[c]===s,v=e=>!!e&&"object"==typeof e&&e[c]===u;function g(e){if(e&&"object"==typeof e)switch(e[c]){case l:case u:return!0}return!1}function y(e){if(e&&"object"==typeof e)switch(e[c]){case o:case l:case s:case u:return!0}return!1}let b=e=>(m(e)||g(e))&&!!e.anchor,w=Symbol("break visit"),x=Symbol("skip children"),E=Symbol("remove node");function S(e,t){let n=A(t);f(e)?C(null,e.contents,n,Object.freeze([e]))===E&&(e.contents=null):C(null,e,n,Object.freeze([]))}function C(e,t,n,r){let o=k(e,t,n,r);if(y(o)||p(o))return j(e,r,o),C(e,o,n,r);if("symbol"!=typeof o){if(g(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let o=C(e,t.items[e],n,r);if("number"==typeof o)e=o-1;else{if(o===w)return w;o===E&&(t.items.splice(e,1),e-=1)}}}else if(p(t)){r=Object.freeze(r.concat(t));let e=C("key",t.key,n,r);if(e===w)return w;e===E&&(t.key=null);let o=C("value",t.value,n,r);if(o===w)return w;o===E&&(t.value=null)}}return o}async function O(e,t){let n=A(t);f(e)?await N(null,e.contents,n,Object.freeze([e]))===E&&(e.contents=null):await N(null,e,n,Object.freeze([]))}async function N(e,t,n,r){let o=await k(e,t,n,r);if(y(o)||p(o))return j(e,r,o),N(e,o,n,r);if("symbol"!=typeof o){if(g(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let o=await N(e,t.items[e],n,r);if("number"==typeof o)e=o-1;else{if(o===w)return w;o===E&&(t.items.splice(e,1),e-=1)}}}else if(p(t)){r=Object.freeze(r.concat(t));let e=await N("key",t.key,n,r);if(e===w)return w;e===E&&(t.key=null);let o=await N("value",t.value,n,r);if(o===w)return w;o===E&&(t.value=null)}}return o}function A(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function k(e,t,n,r){return"function"==typeof n?n(e,t,r):h(t)?n.Map?.(e,t,r):v(t)?n.Seq?.(e,t,r):p(t)?n.Pair?.(e,t,r):m(t)?n.Scalar?.(e,t,r):d(t)?n.Alias?.(e,t,r):void 0}function j(e,t,n){let r=t[t.length-1];if(g(r))r.items[e]=n;else if(p(r))"key"===e?r.key=n:r.value=n;else if(f(r))r.contents=n;else{let e=d(r)?"alias":"scalar";throw Error(`Cannot replace node with ${e} parent`)}}S.BREAK=w,S.SKIP=x,S.REMOVE=E,O.BREAK=w,O.SKIP=x,O.REMOVE=E;let R={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},P=e=>e.replace(/[!,[\]{}]/g,e=>R[e]);class L{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},L.defaultYaml,e),this.tags=Object.assign({},L.defaultTags,t)}clone(){let e=new L(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new L(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:L.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},L.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:L.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},L.defaultTags),this.atNextDocument=!1);let n=e.trim().split(/[ \t]+/),r=n.shift();switch(r){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[e,r]=n;return this.tags[e]=r,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;let[e]=n;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;{let n=/^\d+\.\d+$/.test(e);return t(6,`Unsupported YAML version ${e}`,n),!1}}default:return t(0,`Unknown directive ${r}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){let n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let o=this.tags[n];if(o)try{return o+decodeURIComponent(r)}catch(e){return t(String(e)),null}return"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+P(e.substring(n.length));return"!"===e[0]?e:`!<${e}>`}toString(e){let t,n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);if(e&&r.length>0&&y(e.contents)){let n={};S(e.contents,(e,t)=>{y(t)&&t.tag&&(n[t.tag]=!0)}),t=Object.keys(n)}else t=[];for(let[o,i]of r)("!!"!==o||"tag:yaml.org,2002:"!==i)&&(!e||t.some(e=>e.startsWith(i)))&&n.push(`%TAG ${o} ${i}`);return n.join("\n")}}function T(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=JSON.stringify(e);throw Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function I(e){let t=new Set;return S(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function $(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function M(e,t,n,r){if(r&&"object"==typeof r)if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],o=M(e,r,String(t),n);void 0===o?delete r[t]:o!==n&&(r[t]=o)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),o=M(e,r,t,n);void 0===o?r.delete(t):o!==n&&r.set(t,o)}else if(r instanceof Set)for(let t of Array.from(r)){let n=M(e,r,t,t);void 0===n?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let o=M(e,r,t,n);void 0===o?delete r[t]:o!==n&&(r[t]=o)}return e.call(t,n,r)}function D(e,t,n){if(Array.isArray(e))return e.map((e,t)=>D(e,String(t),n));if(e&&"function"==typeof e.toJSON){if(!n||!b(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}return"bigint"!=typeof e||n?.keep?e:Number(e)}L.defaultYaml={explicit:!1,version:"1.2"},L.defaultTags={"!!":"tag:yaml.org,2002:"};class B{constructor(e){Object.defineProperty(this,c,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:o}={}){if(!f(e))throw TypeError("A document argument is required");let i={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},l=D(this,"",i);if("function"==typeof r)for(let{count:e,res:t}of i.anchors.values())r(t,e);return"function"==typeof o?M(o,{"":l},"",l):l}}class F extends B{constructor(e){super(o),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e,t){let n,r;if(t?.maxAliasCount===0)throw ReferenceError("Alias resolution is disabled");for(let o of(t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],S(e,{Node:(e,t)=>{(d(t)||b(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n)),n)){if(o===this)break;o.anchor===this.source&&(r=o)}if(r&&t){let{anchors:e,doc:n,maxAliasCount:o}=t,i=e.get(r);if(i||(D(r,null,t),i=e.get(r)),i?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(o>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=function e(t,n,r){if(d(n)){let e=n.resolve(t),o=r&&e&&r.get(e);return o?o.count*o.aliasCount:0}if(g(n)){let o=0;for(let i of n.items){let n=e(t,i,r);n>o&&(o=n)}return o}return p(n)?Math.max(e(t,n.key,r),e(t,n.value,r)):1}(n,r,e)),i.count*i.aliasCount>o))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return r}toJSON(e,t){if(!t)return{source:this.source};let n=this.resolve(t.doc,t);if(!n)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);return t.anchors.get(n).res}toString(e,t,n){let r=`*${this.source}`;if(e){if(T(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(e.implicitKey)return`${r} `}return r}}let _=e=>!e||"function"!=typeof e&&"object"!=typeof e;class W extends B{constructor(e){super(s),this.value=e}toJSON(e,t){return t?.keep?this.value:D(this.value,e,t)}toString(){return String(this.value)}}function K(e,t,n){let r;if(f(e)&&(e=e.contents),y(e))return e;if(p(e)){let t=n.schema[l].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:o,onAnchor:i,onTagObj:a,schema:s,sourceObjects:c}=n;if(o&&e&&"object"==typeof e){if(r=c.get(e))return r.anchor??(r.anchor=i(e)),new F(r.anchor);r={anchor:null,node:null},c.set(e,r)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let d=function(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}(e,t,s.tags);if(!d){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){let t=new W(e);return r&&(r.node=t),t}d=e instanceof Map?s[l]:Symbol.iterator in Object(e)?s[u]:s[l]}a&&(a(d),delete n.onTagObj);let h=d?.createNode?d.createNode(n.schema,e,n):"function"==typeof d?.nodeClass?.from?d.nodeClass.from(n.schema,e,n):new W(e);return t?h.tag=t:d.default||(h.tag=d.tag),r&&(r.node=h),h}function U(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return K(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}W.BLOCK_FOLDED="BLOCK_FOLDED",W.BLOCK_LITERAL="BLOCK_LITERAL",W.PLAIN="PLAIN",W.QUOTE_DOUBLE="QUOTE_DOUBLE",W.QUOTE_SINGLE="QUOTE_SINGLE";let z=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class V extends B{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>y(t)||p(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(z(e))this.add(t);else{let[n,...r]=e,o=this.get(n,!0);if(g(o))o.addIn(r,t);else if(void 0===o&&this.schema)this.set(n,U(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(0===n.length)return this.delete(t);let r=this.get(t,!0);if(g(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,o=this.get(n,!0);return 0===r.length?!t&&m(o)?o.value:o:g(o)?o.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!p(t))return!1;let n=t.value;return null==n||e&&m(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(0===n.length)return this.has(t);let r=this.get(t,!0);return!!g(r)&&r.hasIn(n)}setIn(e,t){let[n,...r]=e;if(0===r.length)this.set(n,t);else{let e=this.get(n,!0);if(g(e))e.setIn(r,t);else if(void 0===e&&this.schema)this.set(n,U(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}}let H=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Y(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}let J=(e,t,n)=>e.endsWith("\n")?Y(n,t):n.includes("\n")?"\n"+Y(n,t):(e.endsWith(" ")?"":" ")+n,q="flow",X="block",Z="quoted";function Q(e,t,n="flow",{indentAtStart:r,lineWidth:o=80,minContentWidth:i=20,onFold:l,onOverflow:a}={}){let s,u,c;if(!o||o<0)return e;o<i&&(i=0);let d=Math.max(1+i,1+o-t.length);if(e.length<=d)return e;let f=[],h={},p=o-t.length;"number"==typeof r&&(r>o-Math.max(2,i)?f.push(0):p=o-r);let m=!1,v=-1,g=-1,y=-1;for(n===X&&-1!==(v=G(e,v,t.length))&&(p=v+d);c=e[v+=1];){if(n===Z&&"\\"===c){switch(g=v,e[v+1]){case"x":v+=3;break;case"u":v+=5;break;case"U":v+=9;break;default:v+=1}y=v}if("\n"===c)n===X&&(v=G(e,v,t.length)),p=v+t.length+d,s=void 0;else{if(" "===c&&u&&" "!==u&&"\n"!==u&&" "!==u){let t=e[v+1];t&&" "!==t&&"\n"!==t&&" "!==t&&(s=v)}if(v>=p)if(s)f.push(s),p=s+d,s=void 0;else if(n===Z){for(;" "===u||" "===u;)u=c,c=e[v+=1],m=!0;let t=v>y+1?v-2:g-1;if(h[t])return e;f.push(t),h[t]=!0,p=t+d,s=void 0}else m=!0}u=c}if(m&&a&&a(),0===f.length)return e;l&&l();let b=e.slice(0,f[0]);for(let r=0;r<f.length;++r){let o=f[r],i=f[r+1]||e.length;0===o?b=`
2
2
  ${t}${e.slice(0,i)}`:(n===Z&&h[o]&&(b+=`${e[o]}\\`),b+=`
3
3
  ${t}${e.slice(o+1,i)}`)}return b}function G(e,t,n){let r=t,o=t+1,i=e[o];for(;" "===i||" "===i;)if(t<o+n)i=e[++t];else{do i=e[++t];while(i&&"\n"!==i);r=t,i=e[o=t+1]}return r}let ee=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),et=e=>/^(%|---|\.\.\.)/m.test(e);function en(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(et(e)?" ":""),l="",a=0;for(let e=0,t=n[e];t;t=n[++e])if(" "===t&&"\\"===n[e+1]&&"n"===n[e+2]&&(l+=n.slice(a,e)+"\\ ",e+=1,a=e,t="\\"),"\\"===t)switch(n[e+1]){case"u":{l+=n.slice(a,e);let t=n.substr(e+2,4);switch(t){case"0000":l+="\\0";break;case"0007":l+="\\a";break;case"000b":l+="\\v";break;case"001b":l+="\\e";break;case"0085":l+="\\N";break;case"00a0":l+="\\_";break;case"2028":l+="\\L";break;case"2029":l+="\\P";break;default:"00"===t.substr(0,2)?l+="\\x"+t.substr(2):l+=n.substr(e,6)}e+=5,a=e+1}break;case"n":if(r||'"'===n[e+2]||n.length<o)e+=1;else{for(l+=n.slice(a,e)+"\n\n";"\\"===n[e+2]&&"n"===n[e+3]&&'"'!==n[e+4];)l+="\n",e+=2;l+=i," "===n[e+2]&&(l+="\\"),e+=1,a=e+1}break;default:e+=1}return l=a?l+n.slice(a):n,r?l:Q(l,i,Z,ee(t,!1))}function er(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return en(e,t);let n=t.indent||(et(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
4
4
  ${n}`)+"'";return t.implicitKey?r:Q(r,n,q,ee(t,!1))}function eo(e,t){let n,{singleQuote:r}=t.options;if(!1===r)n=en;else{let t=e.includes('"'),o=e.includes("'");n=t&&!o?er:o&&!t?en:r?er:en}return n(e,t)}try{r=RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{r=/\n+(?!\n|$)/g}function ei({comment:e,type:t,value:n},o,i,l){let a,s,u,{blockQuote:c,commentString:d,lineWidth:f}=o.options;if(!c||/\n[\t ]+$/.test(n))return eo(n,o);let h=o.indent||(o.forceBlockIndent||et(n)?" ":""),p="literal"===c||"folded"!==c&&t!==W.BLOCK_FOLDED&&(t===W.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;let r=t-n,o=e.length;if(o<=r)return!1;for(let t=0,n=0;t<o;++t)if("\n"===e[t]){if(t-n>r)return!0;if(o-(n=t+1)<=r)return!1}return!0}(n,f,h.length));if(!n)return p?"|\n":">\n";for(s=n.length;s>0;--s){let e=n[s-1];if("\n"!==e&&" "!==e&&" "!==e)break}let m=n.substring(s),v=m.indexOf("\n");-1===v?a="-":n===m||v!==m.length-1?(a="+",l&&l()):a="",m&&(n=n.slice(0,-m.length),"\n"===m[m.length-1]&&(m=m.slice(0,-1)),m=m.replace(r,`$&${h}`));let g=!1,y=-1;for(u=0;u<n.length;++u){let e=n[u];if(" "===e)g=!0;else if("\n"===e)y=u;else break}let b=n.substring(0,y<u?y+1:u);b&&(n=n.substring(b.length),b=b.replace(/\n+/g,`$&${h}`));let w=h?"2":"1",x=(g?w:"")+a;if(e&&(x+=" "+d(e.replace(/ ?[\r\n]+/g," ")),i&&i()),!p){let e=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${h}`),r=!1,i=ee(o,!0);"folded"!==c&&t!==W.BLOCK_FOLDED&&(i.onOverflow=()=>{r=!0});let l=Q(`${b}${e}${m}`,h,X,i);if(!r)return`>${x}
@@ -14,4 +14,4 @@ ${i}${o}${t}`:"\n";return`${e}
14
14
  ${o}${h}`}}:function({comment:e,items:t},n,{blockItemPrefix:r,flowChars:o,itemIndent:i,onChompKeep:l,onComment:a}){let s,{indent:u,options:{commentString:c}}=n,d=Object.assign({},n,{indent:i,type:null}),f=!1,h=[];for(let e=0;e<t.length;++e){let o=t[e],l=null;if(y(o))!f&&o.spaceBefore&&h.push(""),eg(n,h,o.commentBefore,f),o.comment&&(l=o.comment);else if(p(o)){let e=y(o.key)?o.key:null;e&&(!f&&e.spaceBefore&&h.push(""),eg(n,h,e.commentBefore,f))}f=!1;let a=es(o,d,()=>l=null,()=>f=!0);l&&(a+=J(a,i,c(l))),f&&l&&(f=!1),h.push(r+a)}if(0===h.length)s=o.start+o.end;else{s=h[0];for(let e=1;e<h.length;++e){let t=h[e];s+=t?`
15
15
  ${u}${t}`:"\n"}}return e?(s+="\n"+Y(c(e),u),a&&a()):f&&l&&l(),s})(e,t,n)}function eg({indent:e,options:{commentString:t}},n,r,o){if(r&&o&&(r=r.replace(/^\n+/,"")),r){let o=Y(t(r),e);n.push(o.trimStart())}}function ey(e,t){let n=m(t)?t.value:t;for(let r of e)if(p(r)&&(r.key===t||r.key===n||m(r.key)&&r.key.value===n))return r}class eb extends V{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(l,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:o}=n,i=new this(e),l=(e,l)=>{if("function"==typeof o)l=o.call(t,e,l);else if(Array.isArray(o)&&!o.includes(e))return;(void 0!==l||r)&&i.items.push(ep(e,l,n))};if(t instanceof Map)for(let[e,n]of t)l(e,n);else if(t&&"object"==typeof t)for(let e of Object.keys(t))l(e,t[e]);return"function"==typeof e.sortMapEntries&&i.items.sort(e.sortMapEntries),i}add(e,t){let n;n=p(e)?e:e&&"object"==typeof e&&"key"in e?new em(e.key,e.value):new em(e,e?.value);let r=ey(this.items,n.key),o=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);m(r.value)&&_(n.value)?r.value.value=n.value:r.value=n.value}else if(o){let e=this.items.findIndex(e=>0>o(n,e));-1===e?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=ey(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){let n=ey(this.items,e),r=n?.value;return(!t&&m(r)?r.value:r)??void 0}has(e){return!!ey(this.items,e)}set(e,t){this.add(new em(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};for(let e of(t?.onCreate&&t.onCreate(r),this.items))eh(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!p(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),ev(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}let ew={collection:"map",default:!0,nodeClass:eb,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(h(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,n)=>eb.from(e,t,n)};class ex extends V{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(u,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=eE(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){let n=eE(e);if("number"!=typeof n)return;let r=this.items[n];return!t&&m(r)?r.value:r}has(e){let t=eE(e);return"number"==typeof t&&t<this.items.length}set(e,t){let n=eE(e);if("number"!=typeof n)throw Error(`Expected a valid index, not ${e}.`);let r=this.items[n];m(r)&&_(t)?r.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(D(e,String(r++),t));return n}toString(e,t,n){return e?ev(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:r}=n,o=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let i of t){if("function"==typeof r){let n=t instanceof Set?i:String(e++);i=r.call(t,n,i)}o.items.push(K(i,void 0,n))}}return o}}function eE(e){let t=m(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}let eS={collection:"seq",default:!0,nodeClass:ex,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(v(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,n)=>ex.from(e,t,n)},eC={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,r)=>el(e,t=Object.assign({actualString:!0},t),n,r)},eO={identify:e=>null==e,createNode:()=>new W(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new W(null),stringify:({source:e},t)=>"string"==typeof e&&eO.test.test(e)?e:t.options.nullStr},eN={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new W("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},n)=>e&&eN.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?n.options.trueStr:n.options.falseStr};function eA({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);let o="number"==typeof r?r:Number(r);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let i=Object.is(r,-0)?"-0":JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^-?\d/.test(i)&&!i.includes("e")){let e=i.indexOf(".");e<0&&(e=i.length,i+=".");let n=t-(i.length-e-1);for(;n-- >0;)i+="0"}return i}let ek={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?-1/0:1/0,stringify:eA},ej={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():eA(e)}},eR={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new W(parseFloat(e)),n=e.indexOf(".");return -1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:eA},eP=e=>"bigint"==typeof e||Number.isInteger(e),eL=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function eT(e,t,n){let{value:r}=e;return eP(r)&&r>=0?n+r.toString(t):eA(e)}let eI={identify:e=>eP(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>eL(e,2,8,n),stringify:e=>eT(e,8,"0o")},e$={identify:eP,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>eL(e,0,10,n),stringify:eA},eM={identify:e=>eP(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>eL(e,2,16,n),stringify:e=>eT(e,16,"0x")},eD=[ew,eS,eC,eO,eN,eI,e$,eM,ek,ej,eR];function eB(e){return"bigint"==typeof e||Number.isInteger(e)}let eF=({value:e})=>JSON.stringify(e),e_=[ew,eS].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:eF},{identify:e=>null==e,createNode:()=>new W(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:eF},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>"true"===e,stringify:eF},{identify:eB,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>eB(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:eF}],{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)}),eW={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"!=typeof atob)return t("This environment does not support reading binary tags; either Buffer or atob is required"),e;{let t=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}},stringify({comment:e,type:t,value:n},r,o,i){let l;if(!n)return"";if("function"==typeof btoa){let e="";for(let t=0;t<n.length;++t)e+=String.fromCharCode(n[t]);l=btoa(e)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=W.BLOCK_LITERAL),t!==W.QUOTE_DOUBLE){let e=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),n=Math.ceil(l.length/e),o=Array(n);for(let t=0,r=0;t<n;++t,r+=e)o[t]=l.substr(r,e);l=o.join(t===W.BLOCK_LITERAL?"\n":" ")}return el({comment:e,type:t,value:l},r,o,i)}};function eK(e,t){if(v(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!p(r)){if(h(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");let e=r.items[0]||new em(new W(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}
16
16
  ${e.key.commentBefore}`:r.commentBefore),r.comment){let t=e.value??e.key;t.comment=t.comment?`${r.comment}
17
- ${t.comment}`:r.comment}r=e}e.items[n]=p(r)?r:new em(r)}}else t("Expected a sequence for this tag");return e}function eU(e,t,n){let{replacer:r}=n,o=new ex(e);o.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let l,a;if("function"==typeof r&&(e=r.call(t,String(i++),e)),Array.isArray(e))if(2===e.length)l=e[0],a=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(1===t.length)a=e[l=t[0]];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else l=e;o.items.push(ep(l,a,n))}return o}let ez={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:eK,createNode:eU};class eV extends ex{constructor(){super(),this.add=eb.prototype.add.bind(this),this.delete=eb.prototype.delete.bind(this),this.get=eb.prototype.get.bind(this),this.has=eb.prototype.has.bind(this),this.set=eb.prototype.set.bind(this),this.tag=eV.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;for(let e of(t?.onCreate&&t.onCreate(n),this.items)){let r,o;if(p(e)?(r=D(e.key,"",t),o=D(e.value,r,t)):r=D(e,"",t),n.has(r))throw Error("Ordered maps must not include duplicate keys");n.set(r,o)}return n}static from(e,t,n){let r=eU(e,t,n),o=new this;return o.items=r.items,o}}eV.tag="tag:yaml.org,2002:omap";let eH={collection:"seq",identify:e=>e instanceof Map,nodeClass:eV,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let n=eK(e,t),r=[];for(let{key:e}of n.items)m(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new eV,n)},createNode:(e,t,n)=>eV.from(e,t,n)};function eY({value:e,source:t},n){return t&&(e?eJ:eq).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}let eJ={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new W(!0),stringify:eY},eq={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new W(!1),stringify:eY},eX=e=>"bigint"==typeof e||Number.isInteger(e);function eZ(e,t,n,{intAsBigInt:r}){let o=e[0];if(("-"===o||"+"===o)&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return"-"===o?BigInt(-1)*t:t}let i=parseInt(e,n);return"-"===o?-1*i:i}function eQ(e,t,n){let{value:r}=e;if(eX(r)){let e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return eA(e)}class eG extends eb{constructor(e){super(e),this.tag=eG.tag}add(e){let t;t=p(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new em(e.key,null):new em(e,null),ey(this.items,t.key)||this.items.push(t)}get(e,t){let n=ey(this.items,e);return!t&&p(n)?m(n.key)?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=ey(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new em(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error("Set items must all have null values")}static from(e,t,n){let{replacer:r}=n,o=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof r&&(e=r.call(t,e,e)),o.items.push(ep(e,null,n));return o}}eG.tag="tag:yaml.org,2002:set";let e0={collection:"map",identify:e=>e instanceof Set,nodeClass:eG,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>eG.from(e,t,n),resolve(e,t){if(h(e))if(e.hasAllNullValues(!0))return Object.assign(new eG,e);else t("Set items must all have null values");else t("Expected a mapping for this tag");return e}};function e1(e,t){let n=e[0],r="-"===n||"+"===n?e.substring(1):e,o=e=>t?BigInt(e):Number(e),i=r.replace(/_/g,"").split(":").reduce((e,t)=>e*o(60)+o(t),o(0));return"-"===n?o(-1)*i:i}function e2(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return eA(e);let r="";t<0&&(r="-",t*=n(-1));let o=n(60),i=[t%o];return t<60?i.unshift(0):(t=(t-i[0])/o,i.unshift(t%o),t>=60&&(t=(t-i[0])/o,i.unshift(t))),r+i.map(e=>String(e).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let e9={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>e1(e,n),stringify:e2},e6={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>e1(e,!1),stringify:e2},e4={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(e4.test);if(!t)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,n,r,o,i,l,a]=t.map(Number),s=Date.UTC(n,r-1,o,i||0,l||0,a||0,t[7]?Number((t[7]+"00").substr(1,3)):0),u=t[8];if(u&&"Z"!==u){let e=e1(u,!1);30>Math.abs(e)&&(e*=60),s-=6e4*e}return new Date(s)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},e5=[ew,eS,eC,eO,eJ,eq,{identify:eX,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>eZ(e,2,2,n),stringify:e=>eQ(e,2,"0b")},{identify:eX,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>eZ(e,1,8,n),stringify:e=>eQ(e,8,"0")},{identify:eX,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>eZ(e,0,10,n),stringify:eA},{identify:eX,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>eZ(e,2,16,n),stringify:e=>eQ(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?-1/0:1/0,stringify:eA},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():eA(e)}},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new W(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){let r=e.substring(n+1).replace(/_/g,"");"0"===r[r.length-1]&&(t.minFractionDigits=r.length)}return t},stringify:eA},eW,eu,eH,ez,e0,e9,e6,e4],e7=new Map([["core",eD],["failsafe",[ew,eS,eC]],["json",e_],["yaml11",e5],["yaml-1.1",e5]]),e8={binary:eW,bool:eN,float:eR,floatExp:ej,floatNaN:ek,floatTime:e6,int:e$,intHex:eM,intOct:eI,intTime:e9,map:ew,merge:eu,null:eO,omap:eH,pairs:ez,seq:eS,set:e0,timestamp:e4},e3={"tag:yaml.org,2002:binary":eW,"tag:yaml.org,2002:merge":eu,"tag:yaml.org,2002:omap":eH,"tag:yaml.org,2002:pairs":ez,"tag:yaml.org,2002:set":e0,"tag:yaml.org,2002:timestamp":e4};function te(e,t,n){let r=e7.get(t);if(r&&!e)return n&&!r.includes(eu)?r.concat(eu):r.slice();let o=r;if(!o)if(Array.isArray(e))o=[];else{let e=Array.from(e7.keys()).filter(e=>"yaml11"!==e).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}if(Array.isArray(e))for(let t of e)o=o.concat(t);else"function"==typeof e&&(o=e(o.slice()));return n&&(o=o.concat(eu)),o.reduce((e,t)=>{let n="string"==typeof t?e8[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(e8).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}let tt=(e,t)=>e.key<t.key?-1:+(e.key>t.key);class tn{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:o,sortMapEntries:i,toStringDefaults:a}){this.compat=Array.isArray(e)?te(e,"compat"):e?te(null,e):null,this.name="string"==typeof o&&o||"core",this.knownTags=r?e3:{},this.tags=te(t,this.name,n),this.toStringOptions=a??null,Object.defineProperty(this,l,{value:ew}),Object.defineProperty(this,s,{value:eC}),Object.defineProperty(this,u,{value:eS}),this.sortMapEntries="function"==typeof i?i:!0===i?tt:null}clone(){let e=Object.create(tn.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}class tr{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,c,{value:i});let r=null;"function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t,t=void 0);let o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=o;let{version:l}=o;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(l=this.directives.yaml.version)):this.directives=new L({version:l}),this.setSchema(l,n),this.contents=void 0===e?null:this.createNode(e,r,n)}clone(){let e=Object.create(tr.prototype,{[c]:{value:i}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=y(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){to(this.contents)&&this.contents.add(e)}addIn(e,t){to(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=I(this);e.anchor=!t||n.has(t)?$(t||"a",n):t}return new F(e.anchor)}createNode(e,t,n){let r;if("function"==typeof t)e=t.call({"":e},"",e),r=t;else if(Array.isArray(t)){let e=t.filter(e=>"number"==typeof e||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),r=t}else void 0===n&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:o,anchorPrefix:i,flow:l,keepUndefined:a,onTagObj:s,tag:u}=n??{},{onAnchor:c,setAnchors:d,sourceObjects:f}=function(e,t){let n=[],r=new Map,o=null;return{onAnchor:r=>{n.push(r),o??(o=I(e));let i=$(t,o);return o.add(i),i},setAnchors:()=>{for(let e of n){let t=r.get(e);if("object"==typeof t&&t.anchor&&(m(t.node)||g(t.node)))t.node.anchor=t.anchor;else{let t=Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}}},sourceObjects:r}}(this,i||"a"),h={aliasDuplicateObjects:o??!0,keepUndefined:a??!1,onAnchor:c,onTagObj:s,replacer:r,schema:this.schema,sourceObjects:f},p=K(e,u,h);return l&&g(p)&&(p.flow=!0),d(),p}createPair(e,t,n={}){return new em(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return!!to(this.contents)&&this.contents.delete(e)}deleteIn(e){return z(e)?null!=this.contents&&(this.contents=null,!0):!!to(this.contents)&&this.contents.deleteIn(e)}get(e,t){return g(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return z(e)?!t&&m(this.contents)?this.contents.value:this.contents:g(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!g(this.contents)&&this.contents.has(e)}hasIn(e){return z(e)?void 0!==this.contents:!!g(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=U(this.schema,[e],t):to(this.contents)&&this.contents.set(e,t)}setIn(e,t){z(e)?this.contents=t:null==this.contents?this.contents=U(this.schema,Array.from(e),t):to(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let n;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new L({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new L({version:e}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new tn(Object.assign(n,t));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:o,reviver:i}={}){let l={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100},a=D(this.contents,t??"",l);if("function"==typeof o)for(let{count:e,res:t}of l.anchors.values())o(t,e);return"function"==typeof i?M(i,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||0>=Number(e.indent))){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return function(e,t){let n=[],r=!0===t.directives;if(!1!==t.directives&&e.directives){let t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");let o=ea(e,t),{commentString:i}=o.options;if(e.commentBefore){1!==n.length&&n.unshift("");let t=i(e.commentBefore);n.unshift(Y(t,""))}let l=!1,a=null;if(e.contents){if(y(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){let t=i(e.contents.commentBefore);n.push(Y(t,""))}o.forceBlockIndent=!!e.comment,a=e.contents.comment}let t=a?void 0:()=>l=!0,s=es(e.contents,o,()=>a=null,t);a&&(s+=J(s,"",i(a))),("|"===s[0]||">"===s[0])&&"---"===n[n.length-1]?n[n.length-1]=`--- ${s}`:n.push(s)}else n.push(es(e.contents,o));if(e.directives?.docEnd)if(e.comment){let t=i(e.comment);t.includes("\n")?(n.push("..."),n.push(Y(t,""))):n.push(`... ${t}`)}else n.push("...");else{let t=e.comment;t&&l&&(t=t.replace(/^\n+/,"")),t&&((!l||a)&&""!==n[n.length-1]&&n.push(""),n.push(Y(i(t),"")))}return n.join("\n")+"\n"}(this,e)}}function to(e){if(g(e))return!0;throw Error("Expected a YAML collection as document contents")}let ti=Symbol("break visit"),tl=Symbol("skip children"),ta=Symbol("remove item");function ts(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),function e(t,n,r){let o=r(n,t);if("symbol"==typeof o)return o;for(let i of["key","value"]){let l=n[i];if(l&&"items"in l){for(let n=0;n<l.items.length;++n){let o=e(Object.freeze(t.concat([[i,n]])),l.items[n],r);if("number"==typeof o)n=o-1;else{if(o===ti)return ti;o===ta&&(l.items.splice(n,1),n-=1)}}"function"==typeof o&&"key"===i&&(o=o(n,t))}}return"function"==typeof o?o(n,t):o}(Object.freeze([]),e,t)}function tu(e,t,n){let r=null;if("function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t),"string"==typeof n&&(n=n.length),"number"==typeof n){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){let{keepUndefined:e}=n??t??{};if(!e)return}return f(e)&&!r?e.toString(n):new tr(e,r,n).toString(n)}ts.BREAK=ti,ts.SKIP=tl,ts.REMOVE=ta,ts.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(!t||!("items"in t))return;n=t.items[r]}return n},ts.parentCollection=(e,t)=>{let n=ts.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],o=n?.[r];if(o&&"items"in o)return o;throw Error("Parent collection not found")}},90067:(e,t,n)=>{n.d(t,{UC:()=>e0,ZL:()=>eG,bL:()=>eZ,l9:()=>eQ});var r,o=n(12115),i=n(92556),l=n(94446),a=n(3468),s=n(47650),u=n(95155);function c(e){let t=function(e){let t=o.forwardRef((e,t)=>{var n,r,i;let a,s,{children:u,...c}=e,d=o.isValidElement(u)?(s=(a=null==(r=Object.getOwnPropertyDescriptor((n=u).props,"ref"))?void 0:r.get)&&"isReactWarning"in a&&a.isReactWarning)?n.ref:(s=(a=null==(i=Object.getOwnPropertyDescriptor(n,"ref"))?void 0:i.get)&&"isReactWarning"in a&&a.isReactWarning)?n.props.ref:n.props.ref||n.ref:void 0,f=(0,l.s)(d,t);if(o.isValidElement(u)){let e=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=i(...t);return o(...t),r}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(c,u.props);return u.type!==o.Fragment&&(e.ref=f),o.cloneElement(u,e)}return o.Children.count(u)>1?o.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}(e),n=o.forwardRef((e,n)=>{let{children:r,...i}=e,l=o.Children.toArray(r),a=l.find(f);if(a){let e=a.props.children,r=l.map(t=>t!==a?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,u.jsx)(t,{...i,ref:n,children:o.isValidElement(e)?o.cloneElement(e,void 0,r):null})}return(0,u.jsx)(t,{...i,ref:n,children:r})});return n.displayName="".concat(e,".Slot"),n}var d=Symbol("radix.slottable");function f(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===d}var h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=c(`Primitive.${t}`),r=o.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(o?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),p=n(70222),m=n(59584),v="dismissableLayer.update",g=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),y=o.forwardRef((e,t)=>{var n,a;let{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:y,onDismiss:x,...E}=e,S=o.useContext(g),[C,O]=o.useState(null),N=null!=(a=null==C?void 0:C.ownerDocument)?a:null==(n=globalThis)?void 0:n.document,[,A]=o.useState({}),k=(0,l.s)(t,e=>O(e)),j=Array.from(S.layers),[R]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),P=j.indexOf(R),L=C?j.indexOf(C):-1,T=S.layersWithOutsidePointerEventsDisabled.size>0,I=L>=P,$=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,p.c)(e),i=o.useRef(!1),l=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){w("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",l.current),l.current=t,n.addEventListener("click",l.current,{once:!0})):t()}else n.removeEventListener("click",l.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...S.branches].some(e=>e.contains(t));I&&!n&&(null==d||d(e),null==y||y(e),e.defaultPrevented||null==x||x())},N),M=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,p.c)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&w("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...S.branches].some(e=>e.contains(t))&&(null==f||f(e),null==y||y(e),e.defaultPrevented||null==x||x())},N);return(0,m.U)(e=>{L===S.layers.size-1&&(null==c||c(e),!e.defaultPrevented&&x&&(e.preventDefault(),x()))},N),o.useEffect(()=>{if(C)return s&&(0===S.layersWithOutsidePointerEventsDisabled.size&&(r=N.body.style.pointerEvents,N.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(C)),S.layers.add(C),b(),()=>{s&&1===S.layersWithOutsidePointerEventsDisabled.size&&(N.body.style.pointerEvents=r)}},[C,N,s,S]),o.useEffect(()=>()=>{C&&(S.layers.delete(C),S.layersWithOutsidePointerEventsDisabled.delete(C),b())},[C,S]),o.useEffect(()=>{let e=()=>A({});return document.addEventListener(v,e),()=>document.removeEventListener(v,e)},[]),(0,u.jsx)(h.div,{...E,ref:k,style:{pointerEvents:T?I?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.m)(e.onFocusCapture,M.onFocusCapture),onBlurCapture:(0,i.m)(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:(0,i.m)(e.onPointerDownCapture,$.onPointerDownCapture)})});function b(){let e=new CustomEvent(v);document.dispatchEvent(e)}function w(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});if(t&&i.addEventListener(e,t,{once:!0}),o)i&&s.flushSync(()=>i.dispatchEvent(l));else i.dispatchEvent(l)}y.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(g),r=o.useRef(null),i=(0,l.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(h.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var x=n(19526),E="focusScope.autoFocusOnMount",S="focusScope.autoFocusOnUnmount",C={bubbles:!1,cancelable:!0},O=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=e,[c,d]=o.useState(null),f=(0,p.c)(i),m=(0,p.c)(a),v=o.useRef(null),g=(0,l.s)(t,e=>d(e)),y=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(y.paused||!c)return;let t=e.target;c.contains(t)?v.current=t:k(v.current,{select:!0})},t=function(e){if(y.paused||!c)return;let t=e.relatedTarget;null!==t&&(c.contains(t)||k(v.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&k(c)});return c&&n.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,c,y.paused]),o.useEffect(()=>{if(c){j.add(y);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(E,C);c.addEventListener(E,f),c.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(k(r,{select:t}),document.activeElement!==n)return}(N(c).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&k(c))}return()=>{c.removeEventListener(E,f),setTimeout(()=>{let t=new CustomEvent(S,C);c.addEventListener(S,m),c.dispatchEvent(t),t.defaultPrevented||k(null!=e?e:document.body,{select:!0}),c.removeEventListener(S,m),j.remove(y)},0)}}},[c,f,m,y]);let b=o.useCallback(e=>{if(!n&&!r||y.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=N(e);return[A(t,e),A(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&k(i,{select:!0})):(e.preventDefault(),n&&k(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,y.paused]);return(0,u.jsx)(h.div,{tabIndex:-1,...s,ref:g,onKeyDown:b})});function N(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function A(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function k(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}O.displayName="FocusScope";var j=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=R(e,t)).unshift(t)},remove(t){var n;null==(n=(e=R(e,t))[0])||n.resume()}}}();function R(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var P=n(68946),L=n(88334),T=n(58146),I=o.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,u.jsx)(h.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,u.jsx)("polygon",{points:"0,0 30,0 15,10"})})});I.displayName="Arrow";var $=n(4129),M=n(84288),D="Popper",[B,F]=(0,a.A)(D),[_,W]=B(D),K=e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null);return(0,u.jsx)(_,{scope:t,anchor:r,onAnchorChange:i,children:n})};K.displayName=D;var U="PopperAnchor",z=o.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=W(U,n),s=o.useRef(null),c=(0,l.s)(t,s);return o.useEffect(()=>{a.onAnchorChange((null==r?void 0:r.current)||s.current)}),r?null:(0,u.jsx)(h.div,{...i,ref:c})});z.displayName=U;var V="PopperContent",[H,Y]=B(V),J=o.forwardRef((e,t)=>{var n,r,i,a,s,c,d,f;let{__scopePopper:m,side:v="bottom",sideOffset:g=0,align:y="center",alignOffset:b=0,arrowPadding:w=0,avoidCollisions:x=!0,collisionBoundary:E=[],collisionPadding:S=0,sticky:C="partial",hideWhenDetached:O=!1,updatePositionStrategy:N="optimized",onPlaced:A,...k}=e,j=W(V,m),[R,P]=o.useState(null),I=(0,l.s)(t,e=>P(e)),[D,B]=o.useState(null),F=(0,M.X)(D),_=null!=(d=null==F?void 0:F.width)?d:0,K=null!=(f=null==F?void 0:F.height)?f:0,U="number"==typeof S?S:{top:0,right:0,bottom:0,left:0,...S},z=Array.isArray(E)?E:[E],Y=z.length>0,J={padding:U,boundary:z.filter(Q),altBoundary:Y},{refs:q,floatingStyles:X,placement:Z,isPositioned:et,middlewareData:en}=(0,L.we)({strategy:"fixed",placement:v+("center"!==y?"-"+y:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,T.ll)(...t,{animationFrame:"always"===N})},elements:{reference:j.anchor},middleware:[(0,L.cY)({mainAxis:g+K,alignmentAxis:b}),x&&(0,L.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?(0,L.ER)():void 0,...J}),x&&(0,L.UU)({...J}),(0,L.Ej)({...J,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),D&&(0,L.UE)({element:D,padding:w}),G({arrowWidth:_,arrowHeight:K}),O&&(0,L.jD)({strategy:"referenceHidden",...J})]}),[er,eo]=ee(Z),ei=(0,p.c)(A);(0,$.N)(()=>{et&&(null==ei||ei())},[et,ei]);let el=null==(n=en.arrow)?void 0:n.x,ea=null==(r=en.arrow)?void 0:r.y,es=(null==(i=en.arrow)?void 0:i.centerOffset)!==0,[eu,ec]=o.useState();return(0,$.N)(()=>{R&&ec(window.getComputedStyle(R).zIndex)},[R]),(0,u.jsx)("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:et?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eu,"--radix-popper-transform-origin":[null==(a=en.transformOrigin)?void 0:a.x,null==(s=en.transformOrigin)?void 0:s.y].join(" "),...(null==(c=en.hide)?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,u.jsx)(H,{scope:m,placedSide:er,onArrowChange:B,arrowX:el,arrowY:ea,shouldHideArrow:es,children:(0,u.jsx)(h.div,{"data-side":er,"data-align":eo,...k,ref:I,style:{...k.style,animation:et?void 0:"none"}})})})});J.displayName=V;var q="PopperArrow",X={top:"bottom",right:"left",bottom:"top",left:"right"},Z=o.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=Y(q,n),i=X[o.placedSide];return(0,u.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,u.jsx)(I,{...r,ref:t,style:{...r.style,display:"block"}})})});function Q(e){return null!==e}Z.displayName=q;var G=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:s,middlewareData:u}=t,c=(null==(n=u.arrow)?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=ee(a),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!=(i=null==(r=u.arrow)?void 0:r.x)?i:0)+d/2,g=(null!=(l=null==(o=u.arrow)?void 0:o.y)?l:0)+f/2,y="",b="";return"bottom"===h?(y=c?m:"".concat(v,"px"),b="".concat(-f,"px")):"top"===h?(y=c?m:"".concat(v,"px"),b="".concat(s.floating.height+f,"px")):"right"===h?(y="".concat(-f,"px"),b=c?m:"".concat(g,"px")):"left"===h&&(y="".concat(s.floating.width+f,"px"),b=c?m:"".concat(g,"px")),{data:{x:y,y:b}}}});function ee(e){let[t,n="center"]=e.split("-");return[t,n]}var et=o.forwardRef((e,t)=>{var n,r;let{container:i,...l}=e,[a,c]=o.useState(!1);(0,$.N)(()=>c(!0),[]);let d=i||a&&(null==(r=globalThis)||null==(n=r.document)?void 0:n.body);return d?s.createPortal((0,u.jsx)(h.div,{...l,ref:t}),d):null});et.displayName="Portal";var en=n(76842),er=n(23558),eo=n(97745),ei=n(71450),el=n(60216),ea=n(78357),es=(0,n(43711).f)(),eu=function(){},ec=o.forwardRef(function(e,t){var n=o.useRef(null),r=o.useState({onScrollCapture:eu,onWheelCapture:eu,onTouchMoveCapture:eu}),i=r[0],l=r[1],a=e.forwardProps,s=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,p=e.noIsolation,m=e.inert,v=e.allowPinchZoom,g=e.as,y=e.gapMode,b=(0,ei.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=(0,ea.S)([n,t]),x=(0,ei.Cl)((0,ei.Cl)({},b),i);return o.createElement(o.Fragment,null,d&&o.createElement(h,{sideCar:es,removeScrollBar:c,shards:f,noIsolation:p,inert:m,setCallbacks:l,allowPinchZoom:!!v,lockRef:n,gapMode:y}),a?o.cloneElement(o.Children.only(s),(0,ei.Cl)((0,ei.Cl)({},x),{ref:w})):o.createElement(void 0===g?"div":g,(0,ei.Cl)({},x,{className:u,ref:w}),s))});ec.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ec.classNames={fullWidth:el.pN,zeroRight:el.Mi};var ed=n(39615),ef=n(46810),eh=n(65841),ep=!1;if("undefined"!=typeof window)try{var em=Object.defineProperty({},"passive",{get:function(){return ep=!0,!0}});window.addEventListener("test",em,em),window.removeEventListener("test",em,em)}catch(e){ep=!1}var ev=!!ep&&{passive:!1},eg=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},ey=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eb(e,r)){var o=ew(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},eb=function(e,t){return"v"===e?eg(t,"overflowY"):eg(t,"overflowX")},ew=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},ex=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,s=n.target,u=t.contains(s),c=!1,d=a>0,f=0,h=0;do{var p=ew(e,s),m=p[0],v=p[1]-p[2]-l*m;(m||v)&&eb(e,s)&&(f+=v,h+=m),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return d&&(o&&1>Math.abs(f)||!o&&a>f)?c=!0:!d&&(o&&1>Math.abs(h)||!o&&-a>h)&&(c=!0),c},eE=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eS=function(e){return[e.deltaX,e.deltaY]},eC=function(e){return e&&"current"in e?e.current:e},eO=0,eN=[];let eA=(0,ed.m)(es,function(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),i=o.useState(eO++)[0],l=o.useState(eh.T0)[0],a=o.useRef(e);o.useEffect(function(){a.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,ei.fX)([e.lockRef.current],(e.shards||[]).map(eC),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=eE(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-i[0],u="deltaY"in e?e.deltaY:l[1]-i[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=ey(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=ey(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var h=r.current||o;return ex(h,t,e,"h"===h?s:u,!0)},[]),u=o.useCallback(function(e){if(eN.length&&eN[eN.length-1]===l){var n="deltaY"in e?eS(e):eE(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(eC).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?s(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=o.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=o.useCallback(function(e){n.current=eE(e),r.current=void 0},[]),f=o.useCallback(function(t){c(t.type,eS(t),t.target,s(t,e.lockRef.current))},[]),h=o.useCallback(function(t){c(t.type,eE(t),t.target,s(t,e.lockRef.current))},[]);o.useEffect(function(){return eN.push(l),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,ev),document.addEventListener("touchmove",u,ev),document.addEventListener("touchstart",d,ev),function(){eN=eN.filter(function(e){return e!==l}),document.removeEventListener("wheel",u,ev),document.removeEventListener("touchmove",u,ev),document.removeEventListener("touchstart",d,ev)}},[]);var p=e.removeScrollBar,m=e.inert;return o.createElement(o.Fragment,null,m?o.createElement(l,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?o.createElement(ef.jp,{gapMode:e.gapMode}):null)});var ek=o.forwardRef(function(e,t){return o.createElement(ec,(0,ei.Cl)({},e,{ref:t,sideCar:eA}))});ek.classNames=ec.classNames;var ej="Popover",[eR,eP]=(0,a.A)(ej,[F]),eL=F(),[eT,eI]=eR(ej),e$=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:l,modal:a=!1}=e,s=eL(t),c=o.useRef(null),[d,f]=o.useState(!1),[h,p]=(0,er.i)({prop:r,defaultProp:null!=i&&i,onChange:l,caller:ej});return(0,u.jsx)(K,{...s,children:(0,u.jsx)(eT,{scope:t,contentId:(0,P.B)(),triggerRef:c,open:h,onOpenChange:p,onOpenToggle:o.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:d,onCustomAnchorAdd:o.useCallback(()=>f(!0),[]),onCustomAnchorRemove:o.useCallback(()=>f(!1),[]),modal:a,children:n})})};e$.displayName=ej;var eM="PopoverAnchor";o.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=eI(eM,n),l=eL(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=i;return o.useEffect(()=>(a(),()=>s()),[a,s]),(0,u.jsx)(z,{...l,...r,ref:t})}).displayName=eM;var eD="PopoverTrigger",eB=o.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=eI(eD,n),a=eL(n),s=(0,l.s)(t,o.triggerRef),c=(0,u.jsx)(h.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":eX(o.open),...r,ref:s,onClick:(0,i.m)(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:(0,u.jsx)(z,{asChild:!0,...a,children:c})});eB.displayName=eD;var eF="PopoverPortal",[e_,eW]=eR(eF,{forceMount:void 0}),eK=e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=eI(eF,t);return(0,u.jsx)(e_,{scope:t,forceMount:n,children:(0,u.jsx)(en.C,{present:n||i.open,children:(0,u.jsx)(et,{asChild:!0,container:o,children:r})})})};eK.displayName=eF;var eU="PopoverContent",ez=o.forwardRef((e,t)=>{let n=eW(eU,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=eI(eU,e.__scopePopover);return(0,u.jsx)(en.C,{present:r||i.open,children:i.modal?(0,u.jsx)(eH,{...o,ref:t}):(0,u.jsx)(eY,{...o,ref:t})})});ez.displayName=eU;var eV=c("PopoverContent.RemoveScroll"),eH=o.forwardRef((e,t)=>{let n=eI(eU,e.__scopePopover),r=o.useRef(null),a=(0,l.s)(t,r),s=o.useRef(!1);return o.useEffect(()=>{let e=r.current;if(e)return(0,eo.Eq)(e)},[]),(0,u.jsx)(ek,{as:eV,allowPinchZoom:!0,children:(0,u.jsx)(eJ,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),s.current||null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,i.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;s.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),eY=o.forwardRef((e,t)=>{let n=eI(eU,e.__scopePopover),r=o.useRef(!1),i=o.useRef(!1);return(0,u.jsx)(eJ,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,l;null==(o=e.onCloseAutoFocus)||o.call(e,t),t.defaultPrevented||(r.current||null==(l=n.triggerRef.current)||l.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{var o,l;null==(o=e.onInteractOutside)||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let a=t.target;(null==(l=n.triggerRef.current)?void 0:l.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),eJ=o.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:d,...f}=e,h=eI(eU,n),p=eL(n);return(0,x.Oh)(),(0,u.jsx)(O,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,u.jsx)(y,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:d,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:(0,u.jsx)(J,{"data-state":eX(h.open),role:"dialog",id:h.contentId,...p,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),eq="PopoverClose";function eX(e){return e?"open":"closed"}o.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=eI(eq,n);return(0,u.jsx)(h.button,{type:"button",...r,ref:t,onClick:(0,i.m)(e.onClick,()=>o.onOpenChange(!1))})}).displayName=eq,o.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=eL(n);return(0,u.jsx)(Z,{...o,...r,ref:t})}).displayName="PopoverArrow";var eZ=e$,eQ=eB,eG=eK,e0=ez},90368:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},97239:(e,t,n)=>{n.d(t,{_:()=>o});var r=n(61911);function o(e,t){var n=(0,r._)(e,t,"get");return n.get?n.get.call(e):n.value}},97999:(e,t,n)=>{n.d(t,{_:()=>r});function r(e,t,n){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}}}]);
17
+ ${t.comment}`:r.comment}r=e}e.items[n]=p(r)?r:new em(r)}}else t("Expected a sequence for this tag");return e}function eU(e,t,n){let{replacer:r}=n,o=new ex(e);o.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let l,a;if("function"==typeof r&&(e=r.call(t,String(i++),e)),Array.isArray(e))if(2===e.length)l=e[0],a=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(1===t.length)a=e[l=t[0]];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else l=e;o.items.push(ep(l,a,n))}return o}let ez={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:eK,createNode:eU};class eV extends ex{constructor(){super(),this.add=eb.prototype.add.bind(this),this.delete=eb.prototype.delete.bind(this),this.get=eb.prototype.get.bind(this),this.has=eb.prototype.has.bind(this),this.set=eb.prototype.set.bind(this),this.tag=eV.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;for(let e of(t?.onCreate&&t.onCreate(n),this.items)){let r,o;if(p(e)?(r=D(e.key,"",t),o=D(e.value,r,t)):r=D(e,"",t),n.has(r))throw Error("Ordered maps must not include duplicate keys");n.set(r,o)}return n}static from(e,t,n){let r=eU(e,t,n),o=new this;return o.items=r.items,o}}eV.tag="tag:yaml.org,2002:omap";let eH={collection:"seq",identify:e=>e instanceof Map,nodeClass:eV,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let n=eK(e,t),r=[];for(let{key:e}of n.items)m(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new eV,n)},createNode:(e,t,n)=>eV.from(e,t,n)};function eY({value:e,source:t},n){return t&&(e?eJ:eq).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}let eJ={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new W(!0),stringify:eY},eq={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new W(!1),stringify:eY},eX=e=>"bigint"==typeof e||Number.isInteger(e);function eZ(e,t,n,{intAsBigInt:r}){let o=e[0];if(("-"===o||"+"===o)&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return"-"===o?BigInt(-1)*t:t}let i=parseInt(e,n);return"-"===o?-1*i:i}function eQ(e,t,n){let{value:r}=e;if(eX(r)){let e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return eA(e)}class eG extends eb{constructor(e){super(e),this.tag=eG.tag}add(e){let t;t=p(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new em(e.key,null):new em(e,null),ey(this.items,t.key)||this.items.push(t)}get(e,t){let n=ey(this.items,e);return!t&&p(n)?m(n.key)?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=ey(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new em(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error("Set items must all have null values")}static from(e,t,n){let{replacer:r}=n,o=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof r&&(e=r.call(t,e,e)),o.items.push(ep(e,null,n));return o}}eG.tag="tag:yaml.org,2002:set";let e0={collection:"map",identify:e=>e instanceof Set,nodeClass:eG,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>eG.from(e,t,n),resolve(e,t){if(h(e))if(e.hasAllNullValues(!0))return Object.assign(new eG,e);else t("Set items must all have null values");else t("Expected a mapping for this tag");return e}};function e1(e,t){let n=e[0],r="-"===n||"+"===n?e.substring(1):e,o=e=>t?BigInt(e):Number(e),i=r.replace(/_/g,"").split(":").reduce((e,t)=>e*o(60)+o(t),o(0));return"-"===n?o(-1)*i:i}function e2(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return eA(e);let r="";t<0&&(r="-",t*=n(-1));let o=n(60),i=[t%o];return t<60?i.unshift(0):(t=(t-i[0])/o,i.unshift(t%o),t>=60&&(t=(t-i[0])/o,i.unshift(t))),r+i.map(e=>String(e).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let e9={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>e1(e,n),stringify:e2},e6={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>e1(e,!1),stringify:e2},e5={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(e5.test);if(!t)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,n,r,o,i,l,a]=t.map(Number),s=Date.UTC(n,r-1,o,i||0,l||0,a||0,t[7]?Number((t[7]+"00").substr(1,3)):0),u=t[8];if(u&&"Z"!==u){let e=e1(u,!1);30>Math.abs(e)&&(e*=60),s-=6e4*e}return new Date(s)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},e4=[ew,eS,eC,eO,eJ,eq,{identify:eX,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>eZ(e,2,2,n),stringify:e=>eQ(e,2,"0b")},{identify:eX,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>eZ(e,1,8,n),stringify:e=>eQ(e,8,"0")},{identify:eX,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>eZ(e,0,10,n),stringify:eA},{identify:eX,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>eZ(e,2,16,n),stringify:e=>eQ(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?-1/0:1/0,stringify:eA},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():eA(e)}},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new W(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){let r=e.substring(n+1).replace(/_/g,"");"0"===r[r.length-1]&&(t.minFractionDigits=r.length)}return t},stringify:eA},eW,eu,eH,ez,e0,e9,e6,e5],e8=new Map([["core",eD],["failsafe",[ew,eS,eC]],["json",e_],["yaml11",e4],["yaml-1.1",e4]]),e7={binary:eW,bool:eN,float:eR,floatExp:ej,floatNaN:ek,floatTime:e6,int:e$,intHex:eM,intOct:eI,intTime:e9,map:ew,merge:eu,null:eO,omap:eH,pairs:ez,seq:eS,set:e0,timestamp:e5},e3={"tag:yaml.org,2002:binary":eW,"tag:yaml.org,2002:merge":eu,"tag:yaml.org,2002:omap":eH,"tag:yaml.org,2002:pairs":ez,"tag:yaml.org,2002:set":e0,"tag:yaml.org,2002:timestamp":e5};function te(e,t,n){let r=e8.get(t);if(r&&!e)return n&&!r.includes(eu)?r.concat(eu):r.slice();let o=r;if(!o)if(Array.isArray(e))o=[];else{let e=Array.from(e8.keys()).filter(e=>"yaml11"!==e).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}if(Array.isArray(e))for(let t of e)o=o.concat(t);else"function"==typeof e&&(o=e(o.slice()));return n&&(o=o.concat(eu)),o.reduce((e,t)=>{let n="string"==typeof t?e7[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(e7).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}let tt=(e,t)=>e.key<t.key?-1:+(e.key>t.key);class tn{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:o,sortMapEntries:i,toStringDefaults:a}){this.compat=Array.isArray(e)?te(e,"compat"):e?te(null,e):null,this.name="string"==typeof o&&o||"core",this.knownTags=r?e3:{},this.tags=te(t,this.name,n),this.toStringOptions=a??null,Object.defineProperty(this,l,{value:ew}),Object.defineProperty(this,s,{value:eC}),Object.defineProperty(this,u,{value:eS}),this.sortMapEntries="function"==typeof i?i:!0===i?tt:null}clone(){let e=Object.create(tn.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}class tr{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,c,{value:i});let r=null;"function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t,t=void 0);let o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=o;let{version:l}=o;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(l=this.directives.yaml.version)):this.directives=new L({version:l}),this.setSchema(l,n),this.contents=void 0===e?null:this.createNode(e,r,n)}clone(){let e=Object.create(tr.prototype,{[c]:{value:i}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=y(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){to(this.contents)&&this.contents.add(e)}addIn(e,t){to(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=I(this);e.anchor=!t||n.has(t)?$(t||"a",n):t}return new F(e.anchor)}createNode(e,t,n){let r;if("function"==typeof t)e=t.call({"":e},"",e),r=t;else if(Array.isArray(t)){let e=t.filter(e=>"number"==typeof e||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),r=t}else void 0===n&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:o,anchorPrefix:i,flow:l,keepUndefined:a,onTagObj:s,tag:u}=n??{},{onAnchor:c,setAnchors:d,sourceObjects:f}=function(e,t){let n=[],r=new Map,o=null;return{onAnchor:r=>{n.push(r),o??(o=I(e));let i=$(t,o);return o.add(i),i},setAnchors:()=>{for(let e of n){let t=r.get(e);if("object"==typeof t&&t.anchor&&(m(t.node)||g(t.node)))t.node.anchor=t.anchor;else{let t=Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}}},sourceObjects:r}}(this,i||"a"),h={aliasDuplicateObjects:o??!0,keepUndefined:a??!1,onAnchor:c,onTagObj:s,replacer:r,schema:this.schema,sourceObjects:f},p=K(e,u,h);return l&&g(p)&&(p.flow=!0),d(),p}createPair(e,t,n={}){return new em(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return!!to(this.contents)&&this.contents.delete(e)}deleteIn(e){return z(e)?null!=this.contents&&(this.contents=null,!0):!!to(this.contents)&&this.contents.deleteIn(e)}get(e,t){return g(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return z(e)?!t&&m(this.contents)?this.contents.value:this.contents:g(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!g(this.contents)&&this.contents.has(e)}hasIn(e){return z(e)?void 0!==this.contents:!!g(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=U(this.schema,[e],t):to(this.contents)&&this.contents.set(e,t)}setIn(e,t){z(e)?this.contents=t:null==this.contents?this.contents=U(this.schema,Array.from(e),t):to(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let n;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new L({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new L({version:e}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new tn(Object.assign(n,t));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:o,reviver:i}={}){let l={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100},a=D(this.contents,t??"",l);if("function"==typeof o)for(let{count:e,res:t}of l.anchors.values())o(t,e);return"function"==typeof i?M(i,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||0>=Number(e.indent))){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return function(e,t){let n=[],r=!0===t.directives;if(!1!==t.directives&&e.directives){let t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");let o=ea(e,t),{commentString:i}=o.options;if(e.commentBefore){1!==n.length&&n.unshift("");let t=i(e.commentBefore);n.unshift(Y(t,""))}let l=!1,a=null;if(e.contents){if(y(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){let t=i(e.contents.commentBefore);n.push(Y(t,""))}o.forceBlockIndent=!!e.comment,a=e.contents.comment}let t=a?void 0:()=>l=!0,s=es(e.contents,o,()=>a=null,t);a&&(s+=J(s,"",i(a))),("|"===s[0]||">"===s[0])&&"---"===n[n.length-1]?n[n.length-1]=`--- ${s}`:n.push(s)}else n.push(es(e.contents,o));if(e.directives?.docEnd)if(e.comment){let t=i(e.comment);t.includes("\n")?(n.push("..."),n.push(Y(t,""))):n.push(`... ${t}`)}else n.push("...");else{let t=e.comment;t&&l&&(t=t.replace(/^\n+/,"")),t&&((!l||a)&&""!==n[n.length-1]&&n.push(""),n.push(Y(i(t),"")))}return n.join("\n")+"\n"}(this,e)}}function to(e){if(g(e))return!0;throw Error("Expected a YAML collection as document contents")}let ti=Symbol("break visit"),tl=Symbol("skip children"),ta=Symbol("remove item");function ts(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),function e(t,n,r){let o=r(n,t);if("symbol"==typeof o)return o;for(let i of["key","value"]){let l=n[i];if(l&&"items"in l){for(let n=0;n<l.items.length;++n){let o=e(Object.freeze(t.concat([[i,n]])),l.items[n],r);if("number"==typeof o)n=o-1;else{if(o===ti)return ti;o===ta&&(l.items.splice(n,1),n-=1)}}"function"==typeof o&&"key"===i&&(o=o(n,t))}}return"function"==typeof o?o(n,t):o}(Object.freeze([]),e,t)}function tu(e,t,n){let r=null;if("function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t),"string"==typeof n&&(n=n.length),"number"==typeof n){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){let{keepUndefined:e}=n??t??{};if(!e)return}return f(e)&&!r?e.toString(n):new tr(e,r,n).toString(n)}ts.BREAK=ti,ts.SKIP=tl,ts.REMOVE=ta,ts.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(!t||!("items"in t))return;n=t.items[r]}return n},ts.parentCollection=(e,t)=>{let n=ts.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],o=n?.[r];if(o&&"items"in o)return o;throw Error("Parent collection not found")}},90067:(e,t,n)=>{n.d(t,{UC:()=>e0,ZL:()=>eG,bL:()=>eZ,l9:()=>eQ});var r,o=n(12115),i=n(92556),l=n(94446),a=n(3468),s=n(47650),u=n(95155);function c(e){let t=function(e){let t=o.forwardRef((e,t)=>{var n,r,i;let a,s,{children:u,...c}=e,d=o.isValidElement(u)?(s=(a=null==(r=Object.getOwnPropertyDescriptor((n=u).props,"ref"))?void 0:r.get)&&"isReactWarning"in a&&a.isReactWarning)?n.ref:(s=(a=null==(i=Object.getOwnPropertyDescriptor(n,"ref"))?void 0:i.get)&&"isReactWarning"in a&&a.isReactWarning)?n.props.ref:n.props.ref||n.ref:void 0,f=(0,l.s)(d,t);if(o.isValidElement(u)){let e=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=i(...t);return o(...t),r}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(c,u.props);return u.type!==o.Fragment&&(e.ref=f),o.cloneElement(u,e)}return o.Children.count(u)>1?o.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}(e),n=o.forwardRef((e,n)=>{let{children:r,...i}=e,l=o.Children.toArray(r),a=l.find(f);if(a){let e=a.props.children,r=l.map(t=>t!==a?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,u.jsx)(t,{...i,ref:n,children:o.isValidElement(e)?o.cloneElement(e,void 0,r):null})}return(0,u.jsx)(t,{...i,ref:n,children:r})});return n.displayName="".concat(e,".Slot"),n}var d=Symbol("radix.slottable");function f(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===d}var h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=c(`Primitive.${t}`),r=o.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(o?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),p=n(70222),m=n(59584),v="dismissableLayer.update",g=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),y=o.forwardRef((e,t)=>{var n,a;let{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:y,onDismiss:x,...E}=e,S=o.useContext(g),[C,O]=o.useState(null),N=null!=(a=null==C?void 0:C.ownerDocument)?a:null==(n=globalThis)?void 0:n.document,[,A]=o.useState({}),k=(0,l.s)(t,e=>O(e)),j=Array.from(S.layers),[R]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),P=j.indexOf(R),L=C?j.indexOf(C):-1,T=S.layersWithOutsidePointerEventsDisabled.size>0,I=L>=P,$=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,p.c)(e),i=o.useRef(!1),l=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){w("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",l.current),l.current=t,n.addEventListener("click",l.current,{once:!0})):t()}else n.removeEventListener("click",l.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...S.branches].some(e=>e.contains(t));I&&!n&&(null==d||d(e),null==y||y(e),e.defaultPrevented||null==x||x())},N),M=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,p.c)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&w("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...S.branches].some(e=>e.contains(t))&&(null==f||f(e),null==y||y(e),e.defaultPrevented||null==x||x())},N);return(0,m.U)(e=>{L===S.layers.size-1&&(null==c||c(e),!e.defaultPrevented&&x&&(e.preventDefault(),x()))},N),o.useEffect(()=>{if(C)return s&&(0===S.layersWithOutsidePointerEventsDisabled.size&&(r=N.body.style.pointerEvents,N.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(C)),S.layers.add(C),b(),()=>{s&&1===S.layersWithOutsidePointerEventsDisabled.size&&(N.body.style.pointerEvents=r)}},[C,N,s,S]),o.useEffect(()=>()=>{C&&(S.layers.delete(C),S.layersWithOutsidePointerEventsDisabled.delete(C),b())},[C,S]),o.useEffect(()=>{let e=()=>A({});return document.addEventListener(v,e),()=>document.removeEventListener(v,e)},[]),(0,u.jsx)(h.div,{...E,ref:k,style:{pointerEvents:T?I?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.m)(e.onFocusCapture,M.onFocusCapture),onBlurCapture:(0,i.m)(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:(0,i.m)(e.onPointerDownCapture,$.onPointerDownCapture)})});function b(){let e=new CustomEvent(v);document.dispatchEvent(e)}function w(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});if(t&&i.addEventListener(e,t,{once:!0}),o)i&&s.flushSync(()=>i.dispatchEvent(l));else i.dispatchEvent(l)}y.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(g),r=o.useRef(null),i=(0,l.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(h.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var x=n(19526),E="focusScope.autoFocusOnMount",S="focusScope.autoFocusOnUnmount",C={bubbles:!1,cancelable:!0},O=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=e,[c,d]=o.useState(null),f=(0,p.c)(i),m=(0,p.c)(a),v=o.useRef(null),g=(0,l.s)(t,e=>d(e)),y=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(y.paused||!c)return;let t=e.target;c.contains(t)?v.current=t:k(v.current,{select:!0})},t=function(e){if(y.paused||!c)return;let t=e.relatedTarget;null!==t&&(c.contains(t)||k(v.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&k(c)});return c&&n.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,c,y.paused]),o.useEffect(()=>{if(c){j.add(y);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(E,C);c.addEventListener(E,f),c.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(k(r,{select:t}),document.activeElement!==n)return}(N(c).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&k(c))}return()=>{c.removeEventListener(E,f),setTimeout(()=>{let t=new CustomEvent(S,C);c.addEventListener(S,m),c.dispatchEvent(t),t.defaultPrevented||k(null!=e?e:document.body,{select:!0}),c.removeEventListener(S,m),j.remove(y)},0)}}},[c,f,m,y]);let b=o.useCallback(e=>{if(!n&&!r||y.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=N(e);return[A(t,e),A(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&k(i,{select:!0})):(e.preventDefault(),n&&k(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,y.paused]);return(0,u.jsx)(h.div,{tabIndex:-1,...s,ref:g,onKeyDown:b})});function N(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function A(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function k(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}O.displayName="FocusScope";var j=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=R(e,t)).unshift(t)},remove(t){var n;null==(n=(e=R(e,t))[0])||n.resume()}}}();function R(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var P=n(68946),L=n(88334),T=n(58146),I=o.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,u.jsx)(h.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,u.jsx)("polygon",{points:"0,0 30,0 15,10"})})});I.displayName="Arrow";var $=n(4129),M=n(84288),D="Popper",[B,F]=(0,a.A)(D),[_,W]=B(D),K=e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null);return(0,u.jsx)(_,{scope:t,anchor:r,onAnchorChange:i,children:n})};K.displayName=D;var U="PopperAnchor",z=o.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=W(U,n),s=o.useRef(null),c=(0,l.s)(t,s);return o.useEffect(()=>{a.onAnchorChange((null==r?void 0:r.current)||s.current)}),r?null:(0,u.jsx)(h.div,{...i,ref:c})});z.displayName=U;var V="PopperContent",[H,Y]=B(V),J=o.forwardRef((e,t)=>{var n,r,i,a,s,c,d,f;let{__scopePopper:m,side:v="bottom",sideOffset:g=0,align:y="center",alignOffset:b=0,arrowPadding:w=0,avoidCollisions:x=!0,collisionBoundary:E=[],collisionPadding:S=0,sticky:C="partial",hideWhenDetached:O=!1,updatePositionStrategy:N="optimized",onPlaced:A,...k}=e,j=W(V,m),[R,P]=o.useState(null),I=(0,l.s)(t,e=>P(e)),[D,B]=o.useState(null),F=(0,M.X)(D),_=null!=(d=null==F?void 0:F.width)?d:0,K=null!=(f=null==F?void 0:F.height)?f:0,U="number"==typeof S?S:{top:0,right:0,bottom:0,left:0,...S},z=Array.isArray(E)?E:[E],Y=z.length>0,J={padding:U,boundary:z.filter(Q),altBoundary:Y},{refs:q,floatingStyles:X,placement:Z,isPositioned:et,middlewareData:en}=(0,L.we)({strategy:"fixed",placement:v+("center"!==y?"-"+y:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,T.ll)(...t,{animationFrame:"always"===N})},elements:{reference:j.anchor},middleware:[(0,L.cY)({mainAxis:g+K,alignmentAxis:b}),x&&(0,L.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?(0,L.ER)():void 0,...J}),x&&(0,L.UU)({...J}),(0,L.Ej)({...J,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),D&&(0,L.UE)({element:D,padding:w}),G({arrowWidth:_,arrowHeight:K}),O&&(0,L.jD)({strategy:"referenceHidden",...J})]}),[er,eo]=ee(Z),ei=(0,p.c)(A);(0,$.N)(()=>{et&&(null==ei||ei())},[et,ei]);let el=null==(n=en.arrow)?void 0:n.x,ea=null==(r=en.arrow)?void 0:r.y,es=(null==(i=en.arrow)?void 0:i.centerOffset)!==0,[eu,ec]=o.useState();return(0,$.N)(()=>{R&&ec(window.getComputedStyle(R).zIndex)},[R]),(0,u.jsx)("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:et?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eu,"--radix-popper-transform-origin":[null==(a=en.transformOrigin)?void 0:a.x,null==(s=en.transformOrigin)?void 0:s.y].join(" "),...(null==(c=en.hide)?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,u.jsx)(H,{scope:m,placedSide:er,onArrowChange:B,arrowX:el,arrowY:ea,shouldHideArrow:es,children:(0,u.jsx)(h.div,{"data-side":er,"data-align":eo,...k,ref:I,style:{...k.style,animation:et?void 0:"none"}})})})});J.displayName=V;var q="PopperArrow",X={top:"bottom",right:"left",bottom:"top",left:"right"},Z=o.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=Y(q,n),i=X[o.placedSide];return(0,u.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,u.jsx)(I,{...r,ref:t,style:{...r.style,display:"block"}})})});function Q(e){return null!==e}Z.displayName=q;var G=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:s,middlewareData:u}=t,c=(null==(n=u.arrow)?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=ee(a),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!=(i=null==(r=u.arrow)?void 0:r.x)?i:0)+d/2,g=(null!=(l=null==(o=u.arrow)?void 0:o.y)?l:0)+f/2,y="",b="";return"bottom"===h?(y=c?m:"".concat(v,"px"),b="".concat(-f,"px")):"top"===h?(y=c?m:"".concat(v,"px"),b="".concat(s.floating.height+f,"px")):"right"===h?(y="".concat(-f,"px"),b=c?m:"".concat(g,"px")):"left"===h&&(y="".concat(s.floating.width+f,"px"),b=c?m:"".concat(g,"px")),{data:{x:y,y:b}}}});function ee(e){let[t,n="center"]=e.split("-");return[t,n]}var et=o.forwardRef((e,t)=>{var n,r;let{container:i,...l}=e,[a,c]=o.useState(!1);(0,$.N)(()=>c(!0),[]);let d=i||a&&(null==(r=globalThis)||null==(n=r.document)?void 0:n.body);return d?s.createPortal((0,u.jsx)(h.div,{...l,ref:t}),d):null});et.displayName="Portal";var en=n(76842),er=n(23558),eo=n(97745),ei=n(71450),el=n(60216),ea=n(78357),es=(0,n(43711).f)(),eu=function(){},ec=o.forwardRef(function(e,t){var n=o.useRef(null),r=o.useState({onScrollCapture:eu,onWheelCapture:eu,onTouchMoveCapture:eu}),i=r[0],l=r[1],a=e.forwardProps,s=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,p=e.noIsolation,m=e.inert,v=e.allowPinchZoom,g=e.as,y=e.gapMode,b=(0,ei.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=(0,ea.S)([n,t]),x=(0,ei.Cl)((0,ei.Cl)({},b),i);return o.createElement(o.Fragment,null,d&&o.createElement(h,{sideCar:es,removeScrollBar:c,shards:f,noIsolation:p,inert:m,setCallbacks:l,allowPinchZoom:!!v,lockRef:n,gapMode:y}),a?o.cloneElement(o.Children.only(s),(0,ei.Cl)((0,ei.Cl)({},x),{ref:w})):o.createElement(void 0===g?"div":g,(0,ei.Cl)({},x,{className:u,ref:w}),s))});ec.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ec.classNames={fullWidth:el.pN,zeroRight:el.Mi};var ed=n(39615),ef=n(46810),eh=n(65841),ep=!1;if("undefined"!=typeof window)try{var em=Object.defineProperty({},"passive",{get:function(){return ep=!0,!0}});window.addEventListener("test",em,em),window.removeEventListener("test",em,em)}catch(e){ep=!1}var ev=!!ep&&{passive:!1},eg=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},ey=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eb(e,r)){var o=ew(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},eb=function(e,t){return"v"===e?eg(t,"overflowY"):eg(t,"overflowX")},ew=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},ex=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,s=n.target,u=t.contains(s),c=!1,d=a>0,f=0,h=0;do{var p=ew(e,s),m=p[0],v=p[1]-p[2]-l*m;(m||v)&&eb(e,s)&&(f+=v,h+=m),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return d&&(o&&1>Math.abs(f)||!o&&a>f)?c=!0:!d&&(o&&1>Math.abs(h)||!o&&-a>h)&&(c=!0),c},eE=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eS=function(e){return[e.deltaX,e.deltaY]},eC=function(e){return e&&"current"in e?e.current:e},eO=0,eN=[];let eA=(0,ed.m)(es,function(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),i=o.useState(eO++)[0],l=o.useState(eh.T0)[0],a=o.useRef(e);o.useEffect(function(){a.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,ei.fX)([e.lockRef.current],(e.shards||[]).map(eC),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=eE(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-i[0],u="deltaY"in e?e.deltaY:l[1]-i[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=ey(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=ey(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var h=r.current||o;return ex(h,t,e,"h"===h?s:u,!0)},[]),u=o.useCallback(function(e){if(eN.length&&eN[eN.length-1]===l){var n="deltaY"in e?eS(e):eE(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(eC).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?s(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=o.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=o.useCallback(function(e){n.current=eE(e),r.current=void 0},[]),f=o.useCallback(function(t){c(t.type,eS(t),t.target,s(t,e.lockRef.current))},[]),h=o.useCallback(function(t){c(t.type,eE(t),t.target,s(t,e.lockRef.current))},[]);o.useEffect(function(){return eN.push(l),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,ev),document.addEventListener("touchmove",u,ev),document.addEventListener("touchstart",d,ev),function(){eN=eN.filter(function(e){return e!==l}),document.removeEventListener("wheel",u,ev),document.removeEventListener("touchmove",u,ev),document.removeEventListener("touchstart",d,ev)}},[]);var p=e.removeScrollBar,m=e.inert;return o.createElement(o.Fragment,null,m?o.createElement(l,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?o.createElement(ef.jp,{gapMode:e.gapMode}):null)});var ek=o.forwardRef(function(e,t){return o.createElement(ec,(0,ei.Cl)({},e,{ref:t,sideCar:eA}))});ek.classNames=ec.classNames;var ej="Popover",[eR,eP]=(0,a.A)(ej,[F]),eL=F(),[eT,eI]=eR(ej),e$=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:l,modal:a=!1}=e,s=eL(t),c=o.useRef(null),[d,f]=o.useState(!1),[h,p]=(0,er.i)({prop:r,defaultProp:null!=i&&i,onChange:l,caller:ej});return(0,u.jsx)(K,{...s,children:(0,u.jsx)(eT,{scope:t,contentId:(0,P.B)(),triggerRef:c,open:h,onOpenChange:p,onOpenToggle:o.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:d,onCustomAnchorAdd:o.useCallback(()=>f(!0),[]),onCustomAnchorRemove:o.useCallback(()=>f(!1),[]),modal:a,children:n})})};e$.displayName=ej;var eM="PopoverAnchor";o.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=eI(eM,n),l=eL(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=i;return o.useEffect(()=>(a(),()=>s()),[a,s]),(0,u.jsx)(z,{...l,...r,ref:t})}).displayName=eM;var eD="PopoverTrigger",eB=o.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=eI(eD,n),a=eL(n),s=(0,l.s)(t,o.triggerRef),c=(0,u.jsx)(h.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":eX(o.open),...r,ref:s,onClick:(0,i.m)(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:(0,u.jsx)(z,{asChild:!0,...a,children:c})});eB.displayName=eD;var eF="PopoverPortal",[e_,eW]=eR(eF,{forceMount:void 0}),eK=e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=eI(eF,t);return(0,u.jsx)(e_,{scope:t,forceMount:n,children:(0,u.jsx)(en.C,{present:n||i.open,children:(0,u.jsx)(et,{asChild:!0,container:o,children:r})})})};eK.displayName=eF;var eU="PopoverContent",ez=o.forwardRef((e,t)=>{let n=eW(eU,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=eI(eU,e.__scopePopover);return(0,u.jsx)(en.C,{present:r||i.open,children:i.modal?(0,u.jsx)(eH,{...o,ref:t}):(0,u.jsx)(eY,{...o,ref:t})})});ez.displayName=eU;var eV=c("PopoverContent.RemoveScroll"),eH=o.forwardRef((e,t)=>{let n=eI(eU,e.__scopePopover),r=o.useRef(null),a=(0,l.s)(t,r),s=o.useRef(!1);return o.useEffect(()=>{let e=r.current;if(e)return(0,eo.Eq)(e)},[]),(0,u.jsx)(ek,{as:eV,allowPinchZoom:!0,children:(0,u.jsx)(eJ,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),s.current||null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,i.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;s.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),eY=o.forwardRef((e,t)=>{let n=eI(eU,e.__scopePopover),r=o.useRef(!1),i=o.useRef(!1);return(0,u.jsx)(eJ,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,l;null==(o=e.onCloseAutoFocus)||o.call(e,t),t.defaultPrevented||(r.current||null==(l=n.triggerRef.current)||l.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{var o,l;null==(o=e.onInteractOutside)||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let a=t.target;(null==(l=n.triggerRef.current)?void 0:l.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),eJ=o.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:d,...f}=e,h=eI(eU,n),p=eL(n);return(0,x.Oh)(),(0,u.jsx)(O,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,u.jsx)(y,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:d,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:(0,u.jsx)(J,{"data-state":eX(h.open),role:"dialog",id:h.contentId,...p,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),eq="PopoverClose";function eX(e){return e?"open":"closed"}o.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=eI(eq,n);return(0,u.jsx)(h.button,{type:"button",...r,ref:t,onClick:(0,i.m)(e.onClick,()=>o.onOpenChange(!1))})}).displayName=eq,o.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=eL(n);return(0,u.jsx)(Z,{...o,...r,ref:t})}).displayName="PopoverArrow";var eZ=e$,eQ=eB,eG=eK,e0=ez},90368:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])}}]);