@latticexyz/explorer 2.2.23-a7ce36bd855c91c1a0e7a515c6ed7422ef59973d → 2.2.23-c4447b1f597a2abb03b6fdb52e79d3fbdd05a948

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 (46) hide show
  1. package/.next/standalone/packages/explorer/.next/BUILD_ID +1 -1
  2. package/.next/standalone/packages/explorer/.next/app-build-manifest.json +62 -62
  3. package/.next/standalone/packages/explorer/.next/app-path-routes-manifest.json +1 -1
  4. package/.next/standalone/packages/explorer/.next/build-manifest.json +5 -5
  5. package/.next/standalone/packages/explorer/.next/prerender-manifest.json +1 -1
  6. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/page_client-reference-manifest.js +1 -1
  7. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/decode/page_client-reference-manifest.js +1 -1
  8. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page_client-reference-manifest.js +1 -1
  9. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page.js +3 -3
  10. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page_client-reference-manifest.js +1 -1
  11. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page_client-reference-manifest.js +1 -1
  12. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/page_client-reference-manifest.js +1 -1
  13. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/page_client-reference-manifest.js +1 -1
  14. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/page_client-reference-manifest.js +1 -1
  15. package/.next/standalone/packages/explorer/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  16. package/.next/standalone/packages/explorer/.next/server/app/_not-found.html +1 -1
  17. package/.next/standalone/packages/explorer/.next/server/app/_not-found.rsc +1 -1
  18. package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay/page_client-reference-manifest.js +1 -1
  19. package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay.html +1 -1
  20. package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay.rsc +1 -1
  21. package/.next/standalone/packages/explorer/.next/server/app-paths-manifest.json +4 -4
  22. package/.next/standalone/packages/explorer/.next/server/middleware-build-manifest.js +1 -1
  23. package/.next/standalone/packages/explorer/.next/server/pages/404.html +1 -1
  24. package/.next/standalone/packages/explorer/.next/server/pages/500.html +1 -1
  25. package/.next/standalone/packages/explorer/.next/server/server-reference-manifest.js +1 -1
  26. package/.next/standalone/packages/explorer/.next/server/server-reference-manifest.json +1 -1
  27. package/.next/standalone/packages/explorer/.next/static/chunks/{07c470c4-e708d2efc0495323.js → 07c470c4-63661328d704c316.js} +1 -1
  28. package/.next/standalone/packages/explorer/.next/static/chunks/{203-7103dd74bcfa43f9.js → 203-146df75c824a4553.js} +1 -1
  29. package/.next/standalone/packages/explorer/.next/static/chunks/{3194-241deaab46a15a9c.js → 3194-87e342c836de3a1d.js} +1 -1
  30. package/.next/standalone/packages/explorer/.next/static/chunks/{3278-d5cbcf2ad7e609f6.js → 3278-89738a89c39a7ef2.js} +2 -2
  31. package/.next/standalone/packages/explorer/.next/static/chunks/3802-76a642e08401a8ad.js +1 -0
  32. package/.next/standalone/packages/explorer/.next/static/chunks/{4433-22ca486eff588b63.js → 4433-c5bf28c492dd050e.js} +1 -1
  33. package/.next/standalone/packages/explorer/.next/static/chunks/{8702-e424e97fd25c7efb.js → 8702-8d7c7e04b3be341f.js} +1 -1
  34. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page-9c16ea4ab4902698.js +1 -0
  35. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/layout-2085d52041a92f32.js +1 -0
  36. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/error-949e7149c3c65340.js +26 -0
  37. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/not-found-2188d07de98fb08a.js +21 -0
  38. package/.next/standalone/packages/explorer/.next/static/chunks/{webpack-b9596634489483b2.js → webpack-0a1a8d946004675b.js} +1 -1
  39. package/package.json +10 -10
  40. package/.next/standalone/packages/explorer/.next/static/chunks/3802-9f231690b786d313.js +0 -1
  41. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page-1e744e17feea5bb2.js +0 -1
  42. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/layout-7285b8b3f76be7ba.js +0 -1
  43. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/error-ae491df4e822b264.js +0 -26
  44. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/not-found-3b195c3484c590ad.js +0 -21
  45. /package/.next/standalone/packages/explorer/.next/static/{-47yJj-EkTwByh5X6QQGm → B-F9ApRFFjOJ2PcRk4WGN}/_buildManifest.js +0 -0
  46. /package/.next/standalone/packages/explorer/.next/static/{-47yJj-EkTwByh5X6QQGm → B-F9ApRFFjOJ2PcRk4WGN}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8702],{74222:function(e,t,n){n.d(t,{Ry:function(){return c}});var r=new WeakMap,o=new WeakMap,i={},l=0,a=function(e){return e&&(e.host||a(e.parentNode))},u=function(e,t,n,u){var c=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=a(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});i[n]||(i[n]=new WeakMap);var s=i[n],d=[],f=new Set,p=new Set(c),v=function(e){!e||f.has(e)||(f.add(e),v(e.parentNode))};c.forEach(v);var h=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))h(e);else try{var t=e.getAttribute(u),i=null!==t&&"false"!==t,l=(r.get(e)||0)+1,a=(s.get(e)||0)+1;r.set(e,l),s.set(e,a),d.push(e),1===l&&i&&o.set(e,!0),1===a&&e.setAttribute(n,"true"),i||e.setAttribute(u,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return h(t),f.clear(),l++,function(){d.forEach(function(e){var t=r.get(e)-1,i=s.get(e)-1;r.set(e,t),s.set(e,i),t||(o.has(e)||e.removeAttribute(u),o.delete(e)),i||e.removeAttribute(n)}),--l||(r=new WeakMap,r=new WeakMap,o=new WeakMap,i={})}},c=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),u(r,o,n,"aria-hidden")):function(){return null}}},58639:function(e,t,n){n.d(t,{Av:function(){return l},pF:function(){return r},xv:function(){return i},zi:function(){return o}});var r="right-scroll-bar-position",o="width-before-scroll-bar",i="with-scroll-bars-hidden",l="--removed-body-scroll-bar-size"},68584:function(e,t,n){n.d(t,{jp:function(){return h}});var r=n(6466),o=n(77252),i=n(58639),l={left:0,top:0,right:0,gap:0},a=function(e){return parseInt(e||"",10)||0},u=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[a(n),a(r),a(o)]},c=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return l;var t=u(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},s=(0,o.Ws)(),d="data-scroll-locked",f=function(e,t,n,r){var o=e.left,l=e.top,a=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .".concat(i.xv," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body[").concat(d,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(l,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(i.pF," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(i.zi," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(i.pF," .").concat(i.pF," {\n right: 0 ").concat(r,";\n }\n \n .").concat(i.zi," .").concat(i.zi," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(d,"] {\n ").concat(i.Av,": ").concat(u,"px;\n }\n")},p=function(){var e=parseInt(document.body.getAttribute(d)||"0",10);return isFinite(e)?e:0},v=function(){r.useEffect(function(){return document.body.setAttribute(d,(p()+1).toString()),function(){var e=p()-1;e<=0?document.body.removeAttribute(d):document.body.setAttribute(d,e.toString())}},[])},h=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,i=void 0===o?"margin":o;v();var l=r.useMemo(function(){return c(i)},[i]);return r.createElement(s,{styles:f(l,!t,i,n?"":"!important")})}},15568:function(e,t,n){n.d(t,{Z:function(){return L}});var r=n(22731),o=n(6466),i=n(58639),l=n(54943),a=(0,n(91959)._)(),u=function(){},c=o.forwardRef(function(e,t){var n=o.useRef(null),i=o.useState({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:u}),c=i[0],s=i[1],d=e.forwardProps,f=e.children,p=e.className,v=e.removeScrollBar,h=e.enabled,m=e.shards,g=e.sideCar,y=e.noIsolation,w=e.inert,b=e.allowPinchZoom,x=e.as,E=e.gapMode,S=(0,r._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=(0,l.q)([n,t]),R=(0,r.pi)((0,r.pi)({},S),c);return o.createElement(o.Fragment,null,h&&o.createElement(g,{sideCar:a,removeScrollBar:v,shards:m,noIsolation:y,inert:w,setCallbacks:s,allowPinchZoom:!!b,lockRef:n,gapMode:E}),d?o.cloneElement(o.Children.only(f),(0,r.pi)((0,r.pi)({},R),{ref:C})):o.createElement(void 0===x?"div":x,(0,r.pi)({},R,{className:p,ref:C}),f))});c.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},c.classNames={fullWidth:i.zi,zeroRight:i.pF};var s=n(62183),d=n(68584),f=n(77252),p=!1;if("undefined"!=typeof window)try{var v=Object.defineProperty({},"passive",{get:function(){return p=!0,!0}});window.addEventListener("test",v,v),window.removeEventListener("test",v,v)}catch(e){p=!1}var h=!!p&&{passive:!1},m=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},g=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),y(e,r)){var o=w(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},y=function(e,t){return"v"===e?m(t,"overflowY"):m(t,"overflowX")},w=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},b=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,u=n.target,c=t.contains(u),s=!1,d=a>0,f=0,p=0;do{var v=w(e,u),h=v[0],m=v[1]-v[2]-l*h;(h||m)&&y(e,u)&&(f+=m,p+=h),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&a>f)?s=!0:!d&&(o&&1>Math.abs(p)||!o&&-a>p)&&(s=!0),s},x=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},E=function(e){return[e.deltaX,e.deltaY]},S=function(e){return e&&"current"in e?e.current:e},C=0,R=[],T=(0,s.L)(a,function(e){var t=o.useRef([]),n=o.useRef([0,0]),i=o.useRef(),l=o.useState(C++)[0],a=o.useState(f.Ws)[0],u=o.useRef(e);o.useEffect(function(){u.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(l));var t=(0,r.ev)([e.lockRef.current],(e.shards||[]).map(S),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(l))})}}},[e.inert,e.lockRef.current,e.shards]);var c=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!u.current.allowPinchZoom;var r,o=x(e),l=n.current,a="deltaX"in e?e.deltaX:l[0]-o[0],c="deltaY"in e?e.deltaY:l[1]-o[1],s=e.target,d=Math.abs(a)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=g(d,s);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=g(d,s)),!f)return!1;if(!i.current&&"changedTouches"in e&&(a||c)&&(i.current=r),!r)return!0;var p=i.current||r;return b(p,t,e,"h"===p?a:c,!0)},[]),s=o.useCallback(function(e){if(R.length&&R[R.length-1]===a){var n="deltaY"in e?E(e):x(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(u.current.shards||[]).map(S).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?c(e,o[0]):!u.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),p=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)},[]),v=o.useCallback(function(e){n.current=x(e),i.current=void 0},[]),m=o.useCallback(function(t){p(t.type,E(t),t.target,c(t,e.lockRef.current))},[]),y=o.useCallback(function(t){p(t.type,x(t),t.target,c(t,e.lockRef.current))},[]);o.useEffect(function(){return R.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:y}),document.addEventListener("wheel",s,h),document.addEventListener("touchmove",s,h),document.addEventListener("touchstart",v,h),function(){R=R.filter(function(e){return e!==a}),document.removeEventListener("wheel",s,h),document.removeEventListener("touchmove",s,h),document.removeEventListener("touchstart",v,h)}},[]);var w=e.removeScrollBar,T=e.inert;return o.createElement(o.Fragment,null,T?o.createElement(a,{styles:"\n .block-interactivity-".concat(l," {pointer-events: none;}\n .allow-interactivity-").concat(l," {pointer-events: all;}\n")}):null,w?o.createElement(d.jp,{gapMode:e.gapMode}):null)}),P=o.forwardRef(function(e,t){return o.createElement(c,(0,r.pi)({},e,{ref:t,sideCar:T}))});P.classNames=c.classNames;var L=P},54943:function(e,t,n){n.d(t,{q:function(){return a}});var r=n(6466);function o(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,l=new WeakMap;function a(e,t){var n,a,u,c=(n=t||null,a=function(t){return e.forEach(function(e){return o(e,t)})},(u=(0,r.useState)(function(){return{value:n,callback:a,facade:{get current(){return u.value},set current(value){var e=u.value;e!==value&&(u.value=value,u.callback(value,e))}}}})[0]).callback=a,u.facade);return i(function(){var t=l.get(c);if(t){var n=new Set(t),r=new Set(e),i=c.current;n.forEach(function(e){r.has(e)||o(e,null)}),r.forEach(function(e){n.has(e)||o(e,i)})}l.set(c,e)},[e]),c}},79533:function(e,t,n){n.d(t,{x7:function(){return ec},Me:function(){return er},oo:function(){return ed},RR:function(){return el},Cp:function(){return eu},dr:function(){return es},cv:function(){return eo},uY:function(){return ei},dp:function(){return ea}});let r=["top","right","bottom","left"],o=Math.min,i=Math.max,l=Math.round,a=Math.floor,u=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},s={start:"end",end:"start"};function d(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function v(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}function m(e){return["top","bottom"].includes(f(e))?"y":"x"}function g(e){return e.replace(/start|end/g,e=>s[e])}function y(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function w(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function b(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function x(e,t,n){let r,{reference:o,floating:i}=e,l=m(t),a=v(m(t)),u=h(a),c=f(t),s="y"===l,d=o.x+o.width/2-i.width/2,g=o.y+o.height/2-i.height/2,y=o[u]/2-i[u]/2;switch(c){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:g};break;case"left":r={x:o.x-i.width,y:g};break;default:r={x:o.x,y:o.y}}switch(p(t)){case"start":r[a]-=y*(n&&s?-1:1);break;case"end":r[a]+=y*(n&&s?-1:1)}return r}let E=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),u=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:d}=x(c,r,u),f=r,p={},v=0;for(let n=0;n<a.length;n++){let{name:i,fn:h}=a[n],{x:m,y:g,data:y,reset:w}=await h({x:s,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:l,elements:{reference:e,floating:t}});s=null!=m?m:s,d=null!=g?g:d,p={...p,[i]:{...p[i],...y}},w&&v<=50&&(v++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:s,y:d}=x(c,f,u)),n=-1)}return{x:s,y:d,placement:f,strategy:o,middlewareData:p}};async function S(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:f="floating",altBoundary:p=!1,padding:v=0}=d(t,e),h=w(v),m=a[p?"floating"===f?"reference":"floating":f],g=b(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:s,strategy:u})),y="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,x=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),E=await (null==i.isElement?void 0:i.isElement(x))&&await (null==i.getScale?void 0:i.getScale(x))||{x:1,y:1},S=b(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:x,strategy:u}):y);return{top:(g.top-S.top+h.top)/E.y,bottom:(S.bottom-g.bottom+h.bottom)/E.y,left:(g.left-S.left+h.left)/E.x,right:(S.right-g.right+h.right)/E.x}}function C(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function R(e){return r.some(t=>e[t]>=0)}async function T(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=f(n),a=p(n),u="y"===m(n),c=["left","top"].includes(l)?-1:1,s=i&&u?-1:1,v=d(t,e),{mainAxis:h,crossAxis:g,alignmentAxis:y}="number"==typeof v?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...v};return a&&"number"==typeof y&&(g="end"===a?-1*y:y),u?{x:g*s,y:h*c}:{x:h*c,y:g*s}}function P(e){return M(e)?(e.nodeName||"").toLowerCase():"#document"}function L(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function A(e){var t;return null==(t=(M(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function M(e){return e instanceof Node||e instanceof L(e).Node}function k(e){return e instanceof Element||e instanceof L(e).Element}function j(e){return e instanceof HTMLElement||e instanceof L(e).HTMLElement}function N(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof L(e).ShadowRoot)}function W(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=H(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function D(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function O(e){let t=I(),n=k(e)?H(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function I(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function F(e){return["html","body","#document"].includes(P(e))}function H(e){return L(e).getComputedStyle(e)}function V(e){return k(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function B(e){if("html"===P(e))return e;let t=e.assignedSlot||e.parentNode||N(e)&&e.host||A(e);return N(t)?t.host:t}function _(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=B(t);return F(n)?t.ownerDocument?t.ownerDocument.body:t.body:j(n)&&W(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=L(o);if(i){let e=z(l);return t.concat(l,l.visualViewport||[],W(o)?o:[],e&&n?_(e):[])}return t.concat(o,_(o,[],n))}function z(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Y(e){let t=H(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=j(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,u=l(n)!==i||l(r)!==a;return u&&(n=i,r=a),{width:n,height:r,$:u}}function K(e){return k(e)?e:e.contextElement}function X(e){let t=K(e);if(!j(t))return u(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Y(t),a=(i?l(n.width):n.width)/r,c=(i?l(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),c&&Number.isFinite(c)||(c=1),{x:a,y:c}}let U=u(0);function $(e){let t=L(e);return I()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:U}function q(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=K(e),a=u(1);t&&(r?k(r)&&(a=X(r)):a=X(e));let c=(void 0===(o=n)&&(o=!1),r&&(!o||r===L(l))&&o)?$(l):u(0),s=(i.left+c.x)/a.x,d=(i.top+c.y)/a.y,f=i.width/a.x,p=i.height/a.y;if(l){let e=L(l),t=r&&k(r)?L(r):r,n=e,o=z(n);for(;o&&r&&t!==n;){let e=X(o),t=o.getBoundingClientRect(),r=H(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,d*=e.y,f*=e.x,p*=e.y,s+=i,d+=l,o=z(n=L(o))}}return b({width:f,height:p,x:s,y:d})}function Z(e){return q(A(e)).left+V(e).scrollLeft}function G(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=L(e),r=A(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=I();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=A(e),n=V(e),r=e.ownerDocument.body,o=i(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=i(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+Z(e),u=-n.scrollTop;return"rtl"===H(r).direction&&(a+=i(t.clientWidth,r.clientWidth)-o),{width:o,height:l,x:a,y:u}}(A(e));else if(k(t))r=function(e,t){let n=q(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=j(e)?X(e):u(1),l=e.clientWidth*i.x;return{width:l,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=$(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return b(r)}function J(e){return"static"===H(e).position}function Q(e,t){return j(e)&&"fixed"!==H(e).position?t?t(e):e.offsetParent:null}function ee(e,t){let n=L(e);if(D(e))return n;if(!j(e)){let t=B(e);for(;t&&!F(t);){if(k(t)&&!J(t))return t;t=B(t)}return n}let r=Q(e,t);for(;r&&["table","td","th"].includes(P(r))&&J(r);)r=Q(r,t);return r&&F(r)&&J(r)&&!O(r)?n:r||function(e){let t=B(e);for(;j(t)&&!F(t);){if(O(t))return t;if(D(t))break;t=B(t)}return null}(e)||n}let et=async function(e){let t=this.getOffsetParent||ee,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=j(t),o=A(t),i="fixed"===n,l=q(e,!0,i,t),a={scrollLeft:0,scrollTop:0},c=u(0);if(r||!r&&!i){if(("body"!==P(t)||W(o))&&(a=V(t)),r){let e=q(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=Z(o))}return{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},en={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=A(r),a=!!t&&D(t.floating);if(r===l||a&&i)return n;let c={scrollLeft:0,scrollTop:0},s=u(1),d=u(0),f=j(r);if((f||!f&&!i)&&(("body"!==P(r)||W(l))&&(c=V(r)),j(r))){let e=q(r);s=X(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-c.scrollLeft*s.x+d.x,y:n.y*s.y-c.scrollTop*s.y+d.y}},getDocumentElement:A,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:l}=e,a=[..."clippingAncestors"===n?D(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=_(e,[],!1).filter(e=>k(e)&&"body"!==P(e)),o=null,i="fixed"===H(e).position,l=i?B(e):e;for(;k(l)&&!F(l);){let t=H(l),n=O(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||W(l)&&!n&&function e(t,n){let r=B(t);return!(r===n||!k(r)||F(r))&&("fixed"===H(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=B(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],u=a[0],c=a.reduce((e,n)=>{let r=G(t,n,l);return e.top=i(r.top,e.top),e.right=o(r.right,e.right),e.bottom=o(r.bottom,e.bottom),e.left=i(r.left,e.left),e},G(t,u,l));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:ee,getElementRects:et,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=Y(e);return{width:t,height:n}},getScale:X,isElement:k,isRTL:function(e){return"rtl"===H(e).direction}};function er(e,t,n,r){let l;void 0===r&&(r={});let{ancestorScroll:u=!0,ancestorResize:c=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=r,p=K(e),v=u||c?[...p?_(p):[],..._(t)]:[];v.forEach(e=>{u&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)});let h=p&&d?function(e,t){let n,r=null,l=A(e);function u(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function c(s,d){void 0===s&&(s=!1),void 0===d&&(d=1),u();let{left:f,top:p,width:v,height:h}=e.getBoundingClientRect();if(s||t(),!v||!h)return;let m=a(p),g=a(l.clientWidth-(f+v)),y={rootMargin:-m+"px "+-g+"px "+-a(l.clientHeight-(p+h))+"px "+-a(f)+"px",threshold:i(0,o(1,d))||1},w=!0;function b(e){let t=e[0].intersectionRatio;if(t!==d){if(!w)return c();t?c(!1,t):n=setTimeout(()=>{c(!1,1e-7)},1e3)}w=!1}try{r=new IntersectionObserver(b,{...y,root:l.ownerDocument})}catch(e){r=new IntersectionObserver(b,y)}r.observe(e)}(!0),u}(p,n):null,m=-1,g=null;s&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),p&&!f&&g.observe(p),g.observe(t));let y=f?q(e):null;return f&&function t(){let r=q(e);y&&(r.x!==y.x||r.y!==y.y||r.width!==y.width||r.height!==y.height)&&n(),y=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;v.forEach(e=>{u&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=g)||e.disconnect(),g=null,f&&cancelAnimationFrame(l)}}let eo=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,u=await T(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}},ei=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:l}=t,{mainAxis:a=!0,crossAxis:u=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=d(e,t),p={x:n,y:r},h=await S(t,s),g=m(f(l)),y=v(g),w=p[y],b=p[g];if(a){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=w+h[e],r=w-h[t];w=i(n,o(w,r))}if(u){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=b+h[e],r=b-h[t];b=i(n,o(b,r))}let x=c.fn({...t,[y]:w,[g]:b});return{...x,data:{x:x.x-n,y:x.y-r}}}}},el=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,l;let{placement:a,middlewareData:u,rects:c,initialPlacement:s,platform:w,elements:b}=t,{mainAxis:x=!0,crossAxis:E=!0,fallbackPlacements:C,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:P=!0,...L}=d(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let A=f(a),M=m(s),k=f(s)===s,j=await (null==w.isRTL?void 0:w.isRTL(b.floating)),N=C||(k||!P?[y(s)]:function(e){let t=y(e);return[g(e),t,g(t)]}(s)),W="none"!==T;!C&&W&&N.push(...function(e,t,n,r){let o=p(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(f(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(g)))),i}(s,P,T,j));let D=[s,...N],O=await S(t,L),I=[],F=(null==(r=u.flip)?void 0:r.overflows)||[];if(x&&I.push(O[A]),E){let e=function(e,t,n){void 0===n&&(n=!1);let r=p(e),o=v(m(e)),i=h(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=y(l)),[l,y(l)]}(a,c,j);I.push(O[e[0]],O[e[1]])}if(F=[...F,{placement:a,overflows:I}],!I.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=D[e];if(t)return{data:{index:e,overflows:F},reset:{placement:t}};let n=null==(i=F.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(R){case"bestFit":{let e=null==(l=F.filter(e=>{if(W){let t=m(e.placement);return t===M||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}},ea=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,r;let{placement:l,rects:a,platform:u,elements:c}=t,{apply:s=()=>{},...v}=d(e,t),h=await S(t,v),g=f(l),y=p(l),w="y"===m(l),{width:b,height:x}=a.floating;"top"===g||"bottom"===g?(n=g,r=y===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(r=g,n="end"===y?"top":"bottom");let E=x-h.top-h.bottom,C=b-h.left-h.right,R=o(x-h[n],E),T=o(b-h[r],C),P=!t.middlewareData.shift,L=R,A=T;if(w?A=y||P?o(T,C):C:L=y||P?o(R,E):E,P&&!y){let e=i(h.left,0),t=i(h.right,0),n=i(h.top,0),r=i(h.bottom,0);w?A=b-2*(0!==e||0!==t?e+t:i(h.left,h.right)):L=x-2*(0!==n||0!==r?n+r:i(h.top,h.bottom))}await s({...t,availableWidth:A,availableHeight:L});let M=await u.getDimensions(c.floating);return b!==M.width||x!==M.height?{reset:{rects:!0}}:{}}}},eu=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=d(e,t);switch(r){case"referenceHidden":{let e=C(await S(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:R(e)}}}case"escaped":{let e=C(await S(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:R(e)}}}default:return{}}}}},ec=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:l,rects:a,platform:u,elements:c,middlewareData:s}=t,{element:f,padding:g=0}=d(e,t)||{};if(null==f)return{};let y=w(g),b={x:n,y:r},x=v(m(l)),E=h(x),S=await u.getDimensions(f),C="y"===x,R=C?"clientHeight":"clientWidth",T=a.reference[E]+a.reference[x]-b[x]-a.floating[E],P=b[x]-a.reference[x],L=await (null==u.getOffsetParent?void 0:u.getOffsetParent(f)),A=L?L[R]:0;A&&await (null==u.isElement?void 0:u.isElement(L))||(A=c.floating[R]||a.floating[E]);let M=A/2-S[E]/2-1,k=o(y[C?"top":"left"],M),j=o(y[C?"bottom":"right"],M),N=A-S[E]-j,W=A/2-S[E]/2+(T/2-P/2),D=i(k,o(W,N)),O=!s.arrow&&null!=p(l)&&W!==D&&a.reference[E]/2-(W<k?k:j)-S[E]/2<0,I=O?W<k?W-k:W-N:0;return{[x]:b[x]+I,data:{[x]:D,centerOffset:W-D-I,...O&&{alignmentOffset:I}},reset:O}}}),es=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:u=!0,crossAxis:c=!0}=d(e,t),s={x:n,y:r},p=m(o),h=v(p),g=s[h],y=s[p],w=d(a,t),b="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(u){let e="y"===h?"height":"width",t=i.reference[h]-i.floating[e]+b.mainAxis,n=i.reference[h]+i.reference[e]-b.mainAxis;g<t?g=t:g>n&&(g=n)}if(c){var x,E;let e="y"===h?"width":"height",t=["top","left"].includes(f(o)),n=i.reference[p]-i.floating[e]+(t&&(null==(x=l.offset)?void 0:x[p])||0)+(t?0:b.crossAxis),r=i.reference[p]+i.reference[e]+(t?0:(null==(E=l.offset)?void 0:E[p])||0)-(t?b.crossAxis:0);y<n?y=n:y>r&&(y=r)}return{[h]:g,[p]:y}}}},ed=(e,t,n)=>{let r=new Map,o={platform:en,...n},i={...o.platform,_c:r};return E(e,t,{...o,platform:i})}},59604:function(e,t,n){n.d(t,{Cp:function(){return y},RR:function(){return m},YF:function(){return d},cv:function(){return p},dp:function(){return g},dr:function(){return h},uY:function(){return v},x7:function(){return w}});var r=n(79533),o=n(6466),i=n(24041),l="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function a(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!a(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!a(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function u(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function c(e,t){let n=u(e);return Math.round(t*n)/n}function s(e){let t=o.useRef(e);return l(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:f,elements:{reference:p,floating:v}={},transform:h=!0,whileElementsMounted:m,open:g}=e,[y,w]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,x]=o.useState(d);a(b,d)||x(d);let[E,S]=o.useState(null),[C,R]=o.useState(null),T=o.useCallback(e=>{e!==M.current&&(M.current=e,S(e))},[]),P=o.useCallback(e=>{e!==k.current&&(k.current=e,R(e))},[]),L=p||E,A=v||C,M=o.useRef(null),k=o.useRef(null),j=o.useRef(y),N=null!=m,W=s(m),D=s(f),O=o.useCallback(()=>{if(!M.current||!k.current)return;let e={placement:t,strategy:n,middleware:b};D.current&&(e.platform=D.current),(0,r.oo)(M.current,k.current,e).then(e=>{let t={...e,isPositioned:!0};I.current&&!a(j.current,t)&&(j.current=t,i.flushSync(()=>{w(t)}))})},[b,t,n,D]);l(()=>{!1===g&&j.current.isPositioned&&(j.current.isPositioned=!1,w(e=>({...e,isPositioned:!1})))},[g]);let I=o.useRef(!1);l(()=>(I.current=!0,()=>{I.current=!1}),[]),l(()=>{if(L&&(M.current=L),A&&(k.current=A),L&&A){if(W.current)return W.current(L,A,O);O()}},[L,A,O,W,N]);let F=o.useMemo(()=>({reference:M,floating:k,setReference:T,setFloating:P}),[T,P]),H=o.useMemo(()=>({reference:L,floating:A}),[L,A]),V=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!H.floating)return e;let t=c(H.floating,y.x),r=c(H.floating,y.y);return h?{...e,transform:"translate("+t+"px, "+r+"px)",...u(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,h,H.floating,y.x,y.y]);return o.useMemo(()=>({...y,update:O,refs:F,elements:H,floatingStyles:V}),[y,O,F,H,V])}let f=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:o}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.x7)({element:n.current,padding:o}).fn(t):{}:n?(0,r.x7)({element:n,padding:o}).fn(t):{}}}),p=(e,t)=>({...(0,r.cv)(e),options:[e,t]}),v=(e,t)=>({...(0,r.uY)(e),options:[e,t]}),h=(e,t)=>({...(0,r.dr)(e),options:[e,t]}),m=(e,t)=>({...(0,r.RR)(e),options:[e,t]}),g=(e,t)=>({...(0,r.dp)(e),options:[e,t]}),y=(e,t)=>({...(0,r.Cp)(e),options:[e,t]}),w=(e,t)=>({...f(e),options:[e,t]})},74116:function(e,t,n){n.d(t,{u:function(){return r}});function r(e,[t,n]){return Math.min(n,Math.max(t,e))}},84481:function(e,t,n){n.d(t,{M:function(){return r}});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},69182:function(e,t,n){n.d(t,{B:function(){return u}});var r=n(6466),o=n(49645),i=n(52932),l=n(55469),a=n(65140);function u(e){let t=e+"CollectionProvider",[n,u]=(0,o.b)(t),[c,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,o=r.useRef(null),i=r.useRef(new Map).current;return(0,a.jsx)(c,{scope:t,itemMap:i,collectionRef:o,children:n})};d.displayName=t;let f=e+"CollectionSlot",p=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=s(f,n),u=(0,i.e)(t,o.collectionRef);return(0,a.jsx)(l.g7,{ref:u,children:r})});p.displayName=f;let v=e+"CollectionItemSlot",h="data-radix-collection-item",m=r.forwardRef((e,t)=>{let{scope:n,children:o,...u}=e,c=r.useRef(null),d=(0,i.e)(t,c),f=s(v,n);return r.useEffect(()=>(f.itemMap.set(c,{ref:c,...u}),()=>void f.itemMap.delete(c))),(0,a.jsx)(l.g7,{[h]:"",ref:d,children:o})});return m.displayName=v,[{Provider:d,Slot:p,ItemSlot:m},function(t){let n=s(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(h,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},u]}},49645:function(e,t,n){n.d(t,{b:function(){return l},k:function(){return i}});var r=n(6466),o=n(65140);function i(e,t){let n=r.createContext(t);function i(e){let{children:t,...i}=e,l=r.useMemo(()=>i,Object.values(i));return(0,o.jsx)(n.Provider,{value:l,children:t})}return i.displayName=e+"Provider",[i,function(o){let i=r.useContext(n);if(i)return i;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function l(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,i){let l=r.createContext(i),a=n.length;function u(t){let{scope:n,children:i,...u}=t,c=n?.[e][a]||l,s=r.useMemo(()=>u,Object.values(u));return(0,o.jsx)(c.Provider,{value:s,children:i})}return n=[...n,i],u.displayName=t+"Provider",[u,function(n,o){let u=o?.[e][a]||l,c=r.useContext(u);if(c)return c;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(i,...t)]}},102:function(e,t,n){n.d(t,{_9:function(){return l},gm:function(){return a}});var r=n(6466),o=n(65140),i=r.createContext(void 0),l=e=>{let{dir:t,children:n}=e;return(0,o.jsx)(i.Provider,{value:t,children:n})};function a(e){let t=r.useContext(i);return e||t||"ltr"}},52867:function(e,t,n){n.d(t,{XB:function(){return p}});var r,o=n(6466),i=n(84481),l=n(32041),a=n(52932),u=n(34951),c=n(12382),s=n(65140),d="dismissableLayer.update",f=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),p=o.forwardRef((e,t)=>{var n,p;let{disableOutsidePointerEvents:m=!1,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:w,onInteractOutside:b,onDismiss:x,...E}=e,S=o.useContext(f),[C,R]=o.useState(null),T=null!==(p=null==C?void 0:C.ownerDocument)&&void 0!==p?p:null===(n=globalThis)||void 0===n?void 0:n.document,[,P]=o.useState({}),L=(0,a.e)(t,e=>R(e)),A=Array.from(S.layers),[M]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),k=A.indexOf(M),j=C?A.indexOf(C):-1,N=S.layersWithOutsidePointerEventsDisabled.size>0,W=j>=k,D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,u.W)(e),i=o.useRef(!1),l=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){h("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));!W||n||(null==y||y(e),null==b||b(e),e.defaultPrevented||null==x||x())},T),O=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,u.W)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&h("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==w||w(e),null==b||b(e),e.defaultPrevented||null==x||x())},T);return(0,c.e)(e=>{j!==S.layers.size-1||(null==g||g(e),!e.defaultPrevented&&x&&(e.preventDefault(),x()))},T),o.useEffect(()=>{if(C)return m&&(0===S.layersWithOutsidePointerEventsDisabled.size&&(r=T.body.style.pointerEvents,T.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(C)),S.layers.add(C),v(),()=>{m&&1===S.layersWithOutsidePointerEventsDisabled.size&&(T.body.style.pointerEvents=r)}},[C,T,m,S]),o.useEffect(()=>()=>{C&&(S.layers.delete(C),S.layersWithOutsidePointerEventsDisabled.delete(C),v())},[C,S]),o.useEffect(()=>{let e=()=>P({});return document.addEventListener(d,e),()=>document.removeEventListener(d,e)},[]),(0,s.jsx)(l.WV.div,{...E,ref:L,style:{pointerEvents:N?W?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.M)(e.onFocusCapture,O.onFocusCapture),onBlurCapture:(0,i.M)(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:(0,i.M)(e.onPointerDownCapture,D.onPointerDownCapture)})});function v(){let e=new CustomEvent(d);document.dispatchEvent(e)}function h(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,l.jH)(i,a):i.dispatchEvent(a)}p.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(f),r=o.useRef(null),i=(0,a.e)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,s.jsx)(l.WV.div,{...e,ref:i})}).displayName="DismissableLayerBranch"},76300:function(e,t,n){n.d(t,{EW:function(){return i}});var r=n(6466),o=0;function i(){r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:l()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:l()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function l(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},16443:function(e,t,n){let r;n.d(t,{M:function(){return f}});var o=n(6466),i=n(52932),l=n(32041),a=n(34951),u=n(65140),c="focusScope.autoFocusOnMount",s="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,...y}=e,[w,b]=o.useState(null),x=(0,a.W)(f),E=(0,a.W)(g),S=o.useRef(null),C=(0,i.e)(t,e=>b(e)),R=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(R.paused||!w)return;let t=e.target;w.contains(t)?S.current=t:h(S.current,{select:!0})},t=function(e){if(R.paused||!w)return;let t=e.relatedTarget;null===t||w.contains(t)||h(S.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&h(w)});return w&&n.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,w,R.paused]),o.useEffect(()=>{if(w){m.add(R);let e=document.activeElement;if(!w.contains(e)){let t=new CustomEvent(c,d);w.addEventListener(c,x),w.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(h(r,{select:t}),document.activeElement!==n)return}(p(w).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&h(w))}return()=>{w.removeEventListener(c,x),setTimeout(()=>{let t=new CustomEvent(s,d);w.addEventListener(s,E),w.dispatchEvent(t),t.defaultPrevented||h(null!=e?e:document.body,{select:!0}),w.removeEventListener(s,E),m.remove(R)},0)}}},[w,x,E,R]);let T=o.useCallback(e=>{if(!n&&!r||R.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=p(e);return[v(t,e),v(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&h(i,{select:!0})):(e.preventDefault(),n&&h(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,R.paused]);return(0,u.jsx)(l.WV.div,{tabIndex:-1,...y,ref:C,onKeyDown:T})});function p(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function v(e,t){for(let n of e)if(!function(e,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 h(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()}}f.displayName="FocusScope";var m=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=g(r,e)).unshift(e)},remove(e){var t;null===(t=(r=g(r,e))[0])||void 0===t||t.resume()}});function g(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},12923:function(e,t,n){n.d(t,{M:function(){return u}});var r,o=n(6466),i=n(20440),l=(r||(r=n.t(o,2)))["useId".toString()]||(()=>void 0),a=0;function u(e){let[t,n]=o.useState(l());return(0,i.b)(()=>{e||n(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},60267:function(e,t,n){n.d(t,{ee:function(){return N},Eh:function(){return D},VY:function(){return W},fC:function(){return j},D7:function(){return m}});var r=n(6466),o=n(59604),i=n(79533),l=n(32041),a=n(65140),u=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,a.jsx)(l.WV.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,a.jsx)("polygon",{points:"0,0 30,0 15,10"})})});u.displayName="Arrow";var c=n(52932),s=n(49645),d=n(34951),f=n(20440),p=n(62519),v="Popper",[h,m]=(0,s.b)(v),[g,y]=h(v),w=e=>{let{__scopePopper:t,children:n}=e,[o,i]=r.useState(null);return(0,a.jsx)(g,{scope:t,anchor:o,onAnchorChange:i,children:n})};w.displayName=v;var b="PopperAnchor",x=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...i}=e,u=y(b,n),s=r.useRef(null),d=(0,c.e)(t,s);return r.useEffect(()=>{u.onAnchorChange((null==o?void 0:o.current)||s.current)}),o?null:(0,a.jsx)(l.WV.div,{...i,ref:d})});x.displayName=b;var E="PopperContent",[S,C]=h(E),R=r.forwardRef((e,t)=>{var n,u,s,v,h,m,g,w;let{__scopePopper:b,side:x="bottom",sideOffset:C=0,align:R="center",alignOffset:T=0,arrowPadding:P=0,avoidCollisions:L=!0,collisionBoundary:j=[],collisionPadding:N=0,sticky:W="partial",hideWhenDetached:D=!1,updatePositionStrategy:O="optimized",onPlaced:I,...F}=e,H=y(E,b),[V,B]=r.useState(null),_=(0,c.e)(t,e=>B(e)),[z,Y]=r.useState(null),K=(0,p.t)(z),X=null!==(g=null==K?void 0:K.width)&&void 0!==g?g:0,U=null!==(w=null==K?void 0:K.height)&&void 0!==w?w:0,$="number"==typeof N?N:{top:0,right:0,bottom:0,left:0,...N},q=Array.isArray(j)?j:[j],Z=q.length>0,G={padding:$,boundary:q.filter(A),altBoundary:Z},{refs:J,floatingStyles:Q,placement:ee,isPositioned:et,middlewareData:en}=(0,o.YF)({strategy:"fixed",placement:x+("center"!==R?"-"+R:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,i.Me)(...t,{animationFrame:"always"===O})},elements:{reference:H.anchor},middleware:[(0,o.cv)({mainAxis:C+U,alignmentAxis:T}),L&&(0,o.uY)({mainAxis:!0,crossAxis:!1,limiter:"partial"===W?(0,o.dr)():void 0,...G}),L&&(0,o.RR)({...G}),(0,o.dp)({...G,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"))}}),z&&(0,o.x7)({element:z,padding:P}),M({arrowWidth:X,arrowHeight:U}),D&&(0,o.Cp)({strategy:"referenceHidden",...G})]}),[er,eo]=k(ee),ei=(0,d.W)(I);(0,f.b)(()=>{et&&(null==ei||ei())},[et,ei]);let el=null===(n=en.arrow)||void 0===n?void 0:n.x,ea=null===(u=en.arrow)||void 0===u?void 0:u.y,eu=(null===(s=en.arrow)||void 0===s?void 0:s.centerOffset)!==0,[ec,es]=r.useState();return(0,f.b)(()=>{V&&es(window.getComputedStyle(V).zIndex)},[V]),(0,a.jsx)("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:et?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ec,"--radix-popper-transform-origin":[null===(v=en.transformOrigin)||void 0===v?void 0:v.x,null===(h=en.transformOrigin)||void 0===h?void 0:h.y].join(" "),...(null===(m=en.hide)||void 0===m?void 0:m.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,a.jsx)(S,{scope:b,placedSide:er,onArrowChange:Y,arrowX:el,arrowY:ea,shouldHideArrow:eu,children:(0,a.jsx)(l.WV.div,{"data-side":er,"data-align":eo,...F,ref:_,style:{...F.style,animation:et?void 0:"none"}})})})});R.displayName=E;var T="PopperArrow",P={top:"bottom",right:"left",bottom:"top",left:"right"},L=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=C(T,n),i=P[o.placedSide];return(0,a.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,a.jsx)(u,{...r,ref:t,style:{...r.style,display:"block"}})})});function A(e){return null!==e}L.displayName=T;var M=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:c}=t,s=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=s?0:e.arrowWidth,f=s?0:e.arrowHeight,[p,v]=k(a),h={start:"0%",center:"50%",end:"100%"}[v],m=(null!==(i=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+d/2,g=(null!==(l=null===(o=c.arrow)||void 0===o?void 0:o.y)&&void 0!==l?l:0)+f/2,y="",w="";return"bottom"===p?(y=s?h:"".concat(m,"px"),w="".concat(-f,"px")):"top"===p?(y=s?h:"".concat(m,"px"),w="".concat(u.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),w=s?h:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+f,"px"),w=s?h:"".concat(g,"px")),{data:{x:y,y:w}}}});function k(e){let[t,n="center"]=e.split("-");return[t,n]}var j=w,N=x,W=R,D=L},69570:function(e,t,n){n.d(t,{Portal:function(){return u}});var r=n(6466),o=n(24041),i=n(32041),l=n(20440),a=n(65140),u=r.forwardRef((e,t)=>{var n,u;let{container:c,...s}=e,[d,f]=r.useState(!1);(0,l.b)(()=>f(!0),[]);let p=c||d&&(null===(u=globalThis)||void 0===u?void 0:null===(n=u.document)||void 0===n?void 0:n.body);return p?o.createPortal((0,a.jsx)(i.WV.div,{...s,ref:t}),p):null});u.displayName="Portal"},78702:function(e,t,n){n.d(t,{$G:function(){return e_},B4:function(){return ek},JO:function(){return ej},VY:function(){return eW},Z0:function(){return ez},ZA:function(){return eO},__:function(){return eI},ck:function(){return eF},eT:function(){return eH},fC:function(){return eA},h_:function(){return eN},l_:function(){return eD},u_:function(){return eB},wU:function(){return eV},xz:function(){return eM}});var r=n(6466),o=n(24041),i=n(74116),l=n(84481),a=n(69182),u=n(52932),c=n(49645),s=n(102),d=n(52867),f=n(76300),p=n(16443),v=n(12923),h=n(60267),m=n(69570),g=n(32041),y=n(55469),w=n(34951),b=n(72252),x=n(20440),E=n(19606),S=n(4989),C=n(74222),R=n(15568),T=n(65140),P=[" ","Enter","ArrowUp","ArrowDown"],L=[" ","Enter"],A="Select",[M,k,j]=(0,a.B)(A),[N,W]=(0,c.b)(A,[j,h.D7]),D=(0,h.D7)(),[O,I]=N(A),[F,H]=N(A),V=e=>{let{__scopeSelect:t,children:n,open:o,defaultOpen:i,onOpenChange:l,value:a,defaultValue:u,onValueChange:c,dir:d,name:f,autoComplete:p,disabled:m,required:g}=e,y=D(t),[w,x]=r.useState(null),[E,S]=r.useState(null),[C,R]=r.useState(!1),P=(0,s.gm)(d),[L=!1,A]=(0,b.T)({prop:o,defaultProp:i,onChange:l}),[k,j]=(0,b.T)({prop:a,defaultProp:u,onChange:c}),N=r.useRef(null),W=!w||!!w.closest("form"),[I,H]=r.useState(new Set),V=Array.from(I).map(e=>e.props.value).join(";");return(0,T.jsx)(h.fC,{...y,children:(0,T.jsxs)(O,{required:g,scope:t,trigger:w,onTriggerChange:x,valueNode:E,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:R,contentId:(0,v.M)(),value:k,onValueChange:j,open:L,onOpenChange:A,dir:P,triggerPointerDownPosRef:N,disabled:m,children:[(0,T.jsx)(M.Provider,{scope:t,children:(0,T.jsx)(F,{scope:e.__scopeSelect,onNativeOptionAdd:r.useCallback(e=>{H(t=>new Set(t).add(e))},[]),onNativeOptionRemove:r.useCallback(e=>{H(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),W?(0,T.jsxs)(eT,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:p,value:k,onChange:e=>j(e.target.value),disabled:m,children:[void 0===k?(0,T.jsx)("option",{value:""}):null,Array.from(I)]},V):null]})})};V.displayName=A;var B="SelectTrigger",_=r.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...o}=e,i=D(n),a=I(B,n),c=a.disabled||r,s=(0,u.e)(t,a.onTriggerChange),d=k(n),[f,p,v]=eP(e=>{let t=d().filter(e=>!e.disabled),n=t.find(e=>e.value===a.value),r=eL(t,e,n);void 0!==r&&a.onValueChange(r.value)}),m=()=>{c||(a.onOpenChange(!0),v())};return(0,T.jsx)(h.ee,{asChild:!0,...i,children:(0,T.jsx)(g.WV.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:c,"data-disabled":c?"":void 0,"data-placeholder":eR(a.value)?"":void 0,...o,ref:s,onClick:(0,l.M)(o.onClick,e=>{e.currentTarget.focus()}),onPointerDown:(0,l.M)(o.onPointerDown,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(m(),a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())}),onKeyDown:(0,l.M)(o.onKeyDown,e=>{let t=""!==f.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||p(e.key),(!t||" "!==e.key)&&P.includes(e.key)&&(m(),e.preventDefault())})})})});_.displayName=B;var z="SelectValue",Y=r.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...a}=e,c=I(z,n),{onValueNodeHasChildrenChange:s}=c,d=void 0!==i,f=(0,u.e)(t,c.onValueNodeChange);return(0,x.b)(()=>{s(d)},[s,d]),(0,T.jsx)(g.WV.span,{...a,ref:f,style:{pointerEvents:"none"},children:eR(c.value)?(0,T.jsx)(T.Fragment,{children:l}):i})});Y.displayName=z;var K=r.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...o}=e;return(0,T.jsx)(g.WV.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});K.displayName="SelectIcon";var X=e=>(0,T.jsx)(m.Portal,{asChild:!0,...e});X.displayName="SelectPortal";var U="SelectContent",$=r.forwardRef((e,t)=>{let n=I(U,e.__scopeSelect),[i,l]=r.useState();return((0,x.b)(()=>{l(new DocumentFragment)},[]),n.open)?(0,T.jsx)(G,{...e,ref:t}):i?o.createPortal((0,T.jsx)(q,{scope:e.__scopeSelect,children:(0,T.jsx)(M.Slot,{scope:e.__scopeSelect,children:(0,T.jsx)("div",{children:e.children})})}),i):null});$.displayName=U;var[q,Z]=N(U),G=r.forwardRef((e,t)=>{let{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:c,side:s,sideOffset:v,align:h,alignOffset:m,arrowPadding:g,collisionBoundary:w,collisionPadding:b,sticky:x,hideWhenDetached:E,avoidCollisions:S,...P}=e,L=I(U,n),[A,M]=r.useState(null),[j,N]=r.useState(null),W=(0,u.e)(t,e=>M(e)),[D,O]=r.useState(null),[F,H]=r.useState(null),V=k(n),[B,_]=r.useState(!1),z=r.useRef(!1);r.useEffect(()=>{if(A)return(0,C.Ry)(A)},[A]),(0,f.EW)();let Y=r.useCallback(e=>{let[t,...n]=V().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&&j&&(j.scrollTop=0),n===r&&j&&(j.scrollTop=j.scrollHeight),null==n||n.focus(),document.activeElement!==o))return},[V,j]),K=r.useCallback(()=>Y([D,A]),[Y,D,A]);r.useEffect(()=>{B&&K()},[B,K]);let{onOpenChange:X,triggerPointerDownPosRef:$}=L;r.useEffect(()=>{if(A){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=$.current)||void 0===n?void 0:n.x)&&void 0!==o?o:0)),y:Math.abs(Math.round(t.pageY)-(null!==(i=null===(r=$.current)||void 0===r?void 0:r.y)&&void 0!==i?i:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():A.contains(n.target)||X(!1),document.removeEventListener("pointermove",t),$.current=null};return null!==$.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[A,X,$]),r.useEffect(()=>{let e=()=>X(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[X]);let[Z,G]=eP(e=>{let t=V().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=eL(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),ee=r.useCallback((e,t,n)=>{let r=!z.current&&!n;(void 0!==L.value&&L.value===t||r)&&(O(e),r&&(z.current=!0))},[L.value]),et=r.useCallback(()=>null==A?void 0:A.focus(),[A]),en=r.useCallback((e,t,n)=>{let r=!z.current&&!n;(void 0!==L.value&&L.value===t||r)&&H(e)},[L.value]),er="popper"===o?Q:J,eo=er===Q?{side:s,sideOffset:v,align:h,alignOffset:m,arrowPadding:g,collisionBoundary:w,collisionPadding:b,sticky:x,hideWhenDetached:E,avoidCollisions:S}:{};return(0,T.jsx)(q,{scope:n,content:A,viewport:j,onViewportChange:N,itemRefCallback:ee,selectedItem:D,onItemLeave:et,itemTextRefCallback:en,focusSelectedItem:K,selectedItemText:F,position:o,isPositioned:B,searchRef:Z,children:(0,T.jsx)(R.Z,{as:y.g7,allowPinchZoom:!0,children:(0,T.jsx)(p.M,{asChild:!0,trapped:L.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,l.M)(i,e=>{var t;null===(t=L.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,T.jsx)(d.XB,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>L.onOpenChange(!1),children:(0,T.jsx)(er,{role:"listbox",id:L.contentId,"data-state":L.open?"open":"closed",dir:L.dir,onContextMenu:e=>e.preventDefault(),...P,...eo,onPlaced:()=>_(!0),ref:W,style:{display:"flex",flexDirection:"column",outline:"none",...P.style},onKeyDown:(0,l.M)(P.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||G(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=V().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(()=>Y(t)),e.preventDefault()}})})})})})})});G.displayName="SelectContentImpl";var J=r.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:o,...l}=e,a=I(U,n),c=Z(U,n),[s,d]=r.useState(null),[f,p]=r.useState(null),v=(0,u.e)(t,e=>p(e)),h=k(n),m=r.useRef(!1),y=r.useRef(!0),{viewport:w,selectedItem:b,selectedItemText:E,focusSelectedItem:S}=c,C=r.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&f&&w&&b&&E){let e=a.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),r=E.getBoundingClientRect();if("rtl"!==a.dir){let o=r.left-t.left,l=n.left-o,a=e.left-l,u=e.width+a,c=Math.max(u,t.width),d=window.innerWidth-10,f=(0,i.u)(l,[10,d-c]);s.style.minWidth=u+"px",s.style.left=f+"px"}else{let o=t.right-r.right,l=window.innerWidth-n.right-o,a=window.innerWidth-e.right-l,u=e.width+a,c=Math.max(u,t.width),d=window.innerWidth-10,f=(0,i.u)(l,[10,d-c]);s.style.minWidth=u+"px",s.style.right=f+"px"}let l=h(),u=window.innerHeight-20,c=w.scrollHeight,d=window.getComputedStyle(f),p=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),y=p+v+c+parseInt(d.paddingBottom,10)+g,x=Math.min(5*b.offsetHeight,y),S=window.getComputedStyle(w),C=parseInt(S.paddingTop,10),R=parseInt(S.paddingBottom,10),T=e.top+e.height/2-10,P=b.offsetHeight/2,L=p+v+(b.offsetTop+P);if(L<=T){let e=b===l[l.length-1].ref.current;s.style.bottom="0px";let t=f.clientHeight-w.offsetTop-w.offsetHeight;s.style.height=L+Math.max(u-T,P+(e?R:0)+t+g)+"px"}else{let e=b===l[0].ref.current;s.style.top="0px";let t=Math.max(T,p+w.offsetTop+(e?C:0)+P);s.style.height=t+(y-L)+"px",w.scrollTop=L-T+w.offsetTop}s.style.margin="".concat(10,"px 0"),s.style.minHeight=x+"px",s.style.maxHeight=u+"px",null==o||o(),requestAnimationFrame(()=>m.current=!0)}},[h,a.trigger,a.valueNode,s,f,w,b,E,a.dir,o]);(0,x.b)(()=>C(),[C]);let[R,P]=r.useState();(0,x.b)(()=>{f&&P(window.getComputedStyle(f).zIndex)},[f]);let L=r.useCallback(e=>{e&&!0===y.current&&(C(),null==S||S(),y.current=!1)},[C,S]);return(0,T.jsx)(ee,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:m,onScrollButtonChange:L,children:(0,T.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:(0,T.jsx)(g.WV.div,{...l,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});J.displayName="SelectItemAlignedPosition";var Q=r.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...i}=e,l=D(n);return(0,T.jsx)(h.VY,{...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)"}})});Q.displayName="SelectPopperPosition";var[ee,et]=N(U,{}),en="SelectViewport",er=r.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:o,...i}=e,a=Z(en,n),c=et(en,n),s=(0,u.e)(t,a.onViewportChange),d=r.useRef(0);return(0,T.jsxs)(T.Fragment,{children:[(0,T.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:o}),(0,T.jsx)(M.Slot,{scope:n,children:(0,T.jsx)(g.WV.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:s,style:{position:"relative",flex:1,overflow:"auto",...i.style},onScroll:(0,l.M)(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=c;if((null==r?void 0:r.current)&&n){let e=Math.abs(d.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")}}}d.current=t.scrollTop})})})]})});er.displayName=en;var eo="SelectGroup",[ei,el]=N(eo),ea=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=(0,v.M)();return(0,T.jsx)(ei,{scope:n,id:o,children:(0,T.jsx)(g.WV.div,{role:"group","aria-labelledby":o,...r,ref:t})})});ea.displayName=eo;var eu="SelectLabel",ec=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=el(eu,n);return(0,T.jsx)(g.WV.div,{id:o.id,...r,ref:t})});ec.displayName=eu;var es="SelectItem",[ed,ef]=N(es),ep=r.forwardRef((e,t)=>{let{__scopeSelect:n,value:o,disabled:i=!1,textValue:a,...c}=e,s=I(es,n),d=Z(es,n),f=s.value===o,[p,h]=r.useState(null!=a?a:""),[m,y]=r.useState(!1),w=(0,u.e)(t,e=>{var t;return null===(t=d.itemRefCallback)||void 0===t?void 0:t.call(d,e,o,i)}),b=(0,v.M)(),x=()=>{i||(s.onValueChange(o),s.onOpenChange(!1))};if(""===o)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,T.jsx)(ed,{scope:n,value:o,disabled:i,textId:b,isSelected:f,onItemTextChange:r.useCallback(e=>{h(t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()})},[]),children:(0,T.jsx)(M.ItemSlot,{scope:n,value:o,disabled:i,textValue:p,children:(0,T.jsx)(g.WV.div,{role:"option","aria-labelledby":b,"data-highlighted":m?"":void 0,"aria-selected":f&&m,"data-state":f?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...c,ref:w,onFocus:(0,l.M)(c.onFocus,()=>y(!0)),onBlur:(0,l.M)(c.onBlur,()=>y(!1)),onPointerUp:(0,l.M)(c.onPointerUp,x),onPointerMove:(0,l.M)(c.onPointerMove,e=>{if(i){var t;null===(t=d.onItemLeave)||void 0===t||t.call(d)}else e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,l.M)(c.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null===(t=d.onItemLeave)||void 0===t||t.call(d)}}),onKeyDown:(0,l.M)(c.onKeyDown,e=>{var t;(null===(t=d.searchRef)||void 0===t?void 0:t.current)!==""&&" "===e.key||(L.includes(e.key)&&x()," "===e.key&&e.preventDefault())})})})})});ep.displayName=es;var ev="SelectItemText",eh=r.forwardRef((e,t)=>{let{__scopeSelect:n,className:i,style:l,...a}=e,c=I(ev,n),s=Z(ev,n),d=ef(ev,n),f=H(ev,n),[p,v]=r.useState(null),h=(0,u.e)(t,e=>v(e),d.onItemTextChange,e=>{var t;return null===(t=s.itemTextRefCallback)||void 0===t?void 0:t.call(s,e,d.value,d.disabled)}),m=null==p?void 0:p.textContent,y=r.useMemo(()=>(0,T.jsx)("option",{value:d.value,disabled:d.disabled,children:m},d.value),[d.disabled,d.value,m]),{onNativeOptionAdd:w,onNativeOptionRemove:b}=f;return(0,x.b)(()=>(w(y),()=>b(y)),[w,b,y]),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(g.WV.span,{id:d.textId,...a,ref:h}),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren?o.createPortal(a.children,c.valueNode):null]})});eh.displayName=ev;var em="SelectItemIndicator",eg=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return ef(em,n).isSelected?(0,T.jsx)(g.WV.span,{"aria-hidden":!0,...r,ref:t}):null});eg.displayName=em;var ey="SelectScrollUpButton",ew=r.forwardRef((e,t)=>{let n=Z(ey,e.__scopeSelect),o=et(ey,e.__scopeSelect),[i,l]=r.useState(!1),a=(0,u.e)(t,o.onScrollButtonChange);return(0,x.b)(()=>{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]),i?(0,T.jsx)(eE,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});ew.displayName=ey;var eb="SelectScrollDownButton",ex=r.forwardRef((e,t)=>{let n=Z(eb,e.__scopeSelect),o=et(eb,e.__scopeSelect),[i,l]=r.useState(!1),a=(0,u.e)(t,o.onScrollButtonChange);return(0,x.b)(()=>{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]),i?(0,T.jsx)(eE,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});ex.displayName=eb;var eE=r.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:o,...i}=e,a=Z("SelectScrollButton",n),u=r.useRef(null),c=k(n),s=r.useCallback(()=>{null!==u.current&&(window.clearInterval(u.current),u.current=null)},[]);return r.useEffect(()=>()=>s(),[s]),(0,x.b)(()=>{var e;let t=c().find(e=>e.ref.current===document.activeElement);null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[c]),(0,T.jsx)(g.WV.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:(0,l.M)(i.onPointerDown,()=>{null===u.current&&(u.current=window.setInterval(o,50))}),onPointerMove:(0,l.M)(i.onPointerMove,()=>{var e;null===(e=a.onItemLeave)||void 0===e||e.call(a),null===u.current&&(u.current=window.setInterval(o,50))}),onPointerLeave:(0,l.M)(i.onPointerLeave,()=>{s()})})}),eS=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,T.jsx)(g.WV.div,{"aria-hidden":!0,...r,ref:t})});eS.displayName="SelectSeparator";var eC="SelectArrow";function eR(e){return""===e||void 0===e}r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=D(n),i=I(eC,n),l=Z(eC,n);return i.open&&"popper"===l.position?(0,T.jsx)(h.Eh,{...o,...r,ref:t}):null}).displayName=eC;var eT=r.forwardRef((e,t)=>{let{value:n,...o}=e,i=r.useRef(null),l=(0,u.e)(t,i),a=(0,E.D)(n);return r.useEffect(()=>{let e=i.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(a!==n&&t){let r=new Event("change",{bubbles:!0});t.call(e,n),e.dispatchEvent(r)}},[a,n]),(0,T.jsx)(S.T,{asChild:!0,children:(0,T.jsx)("select",{...o,ref:l,defaultValue:n})})});function eP(e){let t=(0,w.W)(e),n=r.useRef(""),o=r.useRef(0),i=r.useCallback(e=>{let r=n.current+e;t(r),function e(t){n.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout(()=>e(""),1e3))}(r)},[t]),l=r.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,i,l]}function eL(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(i=i.filter(e=>e!==n));let l=i.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}eT.displayName="BubbleSelect";var eA=V,eM=_,ek=Y,ej=K,eN=X,eW=$,eD=er,eO=ea,eI=ec,eF=ep,eH=eh,eV=eg,eB=ew,e_=ex,ez=eS},34951:function(e,t,n){n.d(t,{W:function(){return o}});var r=n(6466);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},72252:function(e,t,n){n.d(t,{T:function(){return i}});var r=n(6466),o=n(34951);function i({prop:e,defaultProp:t,onChange:n=()=>{}}){let[i,l]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[i]=n,l=r.useRef(i),a=(0,o.W)(t);return r.useEffect(()=>{l.current!==i&&(a(i),l.current=i)},[i,l,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,u=a?e:i,c=(0,o.W)(n);return[u,r.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&c(n)}else l(t)},[a,e,l,c])]}},12382:function(e,t,n){n.d(t,{e:function(){return i}});var r=n(6466),o=n(34951);function i(e,t=globalThis?.document){let n=(0,o.W)(e);r.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}},20440:function(e,t,n){n.d(t,{b:function(){return o}});var r=n(6466),o=globalThis?.document?r.useLayoutEffect:()=>{}},19606:function(e,t,n){n.d(t,{D:function(){return o}});var r=n(6466);function o(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},62519:function(e,t,n){n.d(t,{t:function(){return i}});var r=n(6466),o=n(20440);function i(e){let[t,n]=r.useState(void 0);return(0,o.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}},4989:function(e,t,n){n.d(t,{T:function(){return l},f:function(){return a}});var r=n(6466),o=n(32041),i=n(65140),l=r.forwardRef((e,t)=>(0,i.jsx)(o.WV.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));l.displayName="VisuallyHidden";var a=l},22731:function(e,t,n){n.d(t,{_T:function(){return o},ev:function(){return i},pi:function(){return r}});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function i(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8702],{74222:function(e,t,n){n.d(t,{Ry:function(){return c}});var r=new WeakMap,o=new WeakMap,i={},l=0,a=function(e){return e&&(e.host||a(e.parentNode))},u=function(e,t,n,u){var c=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=a(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});i[n]||(i[n]=new WeakMap);var s=i[n],d=[],f=new Set,p=new Set(c),v=function(e){!e||f.has(e)||(f.add(e),v(e.parentNode))};c.forEach(v);var h=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))h(e);else try{var t=e.getAttribute(u),i=null!==t&&"false"!==t,l=(r.get(e)||0)+1,a=(s.get(e)||0)+1;r.set(e,l),s.set(e,a),d.push(e),1===l&&i&&o.set(e,!0),1===a&&e.setAttribute(n,"true"),i||e.setAttribute(u,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return h(t),f.clear(),l++,function(){d.forEach(function(e){var t=r.get(e)-1,i=s.get(e)-1;r.set(e,t),s.set(e,i),t||(o.has(e)||e.removeAttribute(u),o.delete(e)),i||e.removeAttribute(n)}),--l||(r=new WeakMap,r=new WeakMap,o=new WeakMap,i={})}},c=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),u(r,o,n,"aria-hidden")):function(){return null}}},58639:function(e,t,n){n.d(t,{Av:function(){return l},pF:function(){return r},xv:function(){return i},zi:function(){return o}});var r="right-scroll-bar-position",o="width-before-scroll-bar",i="with-scroll-bars-hidden",l="--removed-body-scroll-bar-size"},68584:function(e,t,n){n.d(t,{jp:function(){return h}});var r=n(6466),o=n(77252),i=n(58639),l={left:0,top:0,right:0,gap:0},a=function(e){return parseInt(e||"",10)||0},u=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[a(n),a(r),a(o)]},c=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return l;var t=u(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},s=(0,o.Ws)(),d="data-scroll-locked",f=function(e,t,n,r){var o=e.left,l=e.top,a=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .".concat(i.xv," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body[").concat(d,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(l,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(i.pF," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(i.zi," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(i.pF," .").concat(i.pF," {\n right: 0 ").concat(r,";\n }\n \n .").concat(i.zi," .").concat(i.zi," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(d,"] {\n ").concat(i.Av,": ").concat(u,"px;\n }\n")},p=function(){var e=parseInt(document.body.getAttribute(d)||"0",10);return isFinite(e)?e:0},v=function(){r.useEffect(function(){return document.body.setAttribute(d,(p()+1).toString()),function(){var e=p()-1;e<=0?document.body.removeAttribute(d):document.body.setAttribute(d,e.toString())}},[])},h=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,i=void 0===o?"margin":o;v();var l=r.useMemo(function(){return c(i)},[i]);return r.createElement(s,{styles:f(l,!t,i,n?"":"!important")})}},15568:function(e,t,n){n.d(t,{Z:function(){return L}});var r=n(22731),o=n(6466),i=n(58639),l=n(74291),a=(0,n(91959)._)(),u=function(){},c=o.forwardRef(function(e,t){var n=o.useRef(null),i=o.useState({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:u}),c=i[0],s=i[1],d=e.forwardProps,f=e.children,p=e.className,v=e.removeScrollBar,h=e.enabled,m=e.shards,g=e.sideCar,y=e.noIsolation,w=e.inert,b=e.allowPinchZoom,x=e.as,E=e.gapMode,S=(0,r._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=(0,l.q)([n,t]),R=(0,r.pi)((0,r.pi)({},S),c);return o.createElement(o.Fragment,null,h&&o.createElement(g,{sideCar:a,removeScrollBar:v,shards:m,noIsolation:y,inert:w,setCallbacks:s,allowPinchZoom:!!b,lockRef:n,gapMode:E}),d?o.cloneElement(o.Children.only(f),(0,r.pi)((0,r.pi)({},R),{ref:C})):o.createElement(void 0===x?"div":x,(0,r.pi)({},R,{className:p,ref:C}),f))});c.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},c.classNames={fullWidth:i.zi,zeroRight:i.pF};var s=n(62183),d=n(68584),f=n(77252),p=!1;if("undefined"!=typeof window)try{var v=Object.defineProperty({},"passive",{get:function(){return p=!0,!0}});window.addEventListener("test",v,v),window.removeEventListener("test",v,v)}catch(e){p=!1}var h=!!p&&{passive:!1},m=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},g=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),y(e,r)){var o=w(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},y=function(e,t){return"v"===e?m(t,"overflowY"):m(t,"overflowX")},w=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},b=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,u=n.target,c=t.contains(u),s=!1,d=a>0,f=0,p=0;do{var v=w(e,u),h=v[0],m=v[1]-v[2]-l*h;(h||m)&&y(e,u)&&(f+=m,p+=h),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&a>f)?s=!0:!d&&(o&&1>Math.abs(p)||!o&&-a>p)&&(s=!0),s},x=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},E=function(e){return[e.deltaX,e.deltaY]},S=function(e){return e&&"current"in e?e.current:e},C=0,R=[],T=(0,s.L)(a,function(e){var t=o.useRef([]),n=o.useRef([0,0]),i=o.useRef(),l=o.useState(C++)[0],a=o.useState(f.Ws)[0],u=o.useRef(e);o.useEffect(function(){u.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(l));var t=(0,r.ev)([e.lockRef.current],(e.shards||[]).map(S),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(l))})}}},[e.inert,e.lockRef.current,e.shards]);var c=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!u.current.allowPinchZoom;var r,o=x(e),l=n.current,a="deltaX"in e?e.deltaX:l[0]-o[0],c="deltaY"in e?e.deltaY:l[1]-o[1],s=e.target,d=Math.abs(a)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=g(d,s);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=g(d,s)),!f)return!1;if(!i.current&&"changedTouches"in e&&(a||c)&&(i.current=r),!r)return!0;var p=i.current||r;return b(p,t,e,"h"===p?a:c,!0)},[]),s=o.useCallback(function(e){if(R.length&&R[R.length-1]===a){var n="deltaY"in e?E(e):x(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(u.current.shards||[]).map(S).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?c(e,o[0]):!u.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),p=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)},[]),v=o.useCallback(function(e){n.current=x(e),i.current=void 0},[]),m=o.useCallback(function(t){p(t.type,E(t),t.target,c(t,e.lockRef.current))},[]),y=o.useCallback(function(t){p(t.type,x(t),t.target,c(t,e.lockRef.current))},[]);o.useEffect(function(){return R.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:y}),document.addEventListener("wheel",s,h),document.addEventListener("touchmove",s,h),document.addEventListener("touchstart",v,h),function(){R=R.filter(function(e){return e!==a}),document.removeEventListener("wheel",s,h),document.removeEventListener("touchmove",s,h),document.removeEventListener("touchstart",v,h)}},[]);var w=e.removeScrollBar,T=e.inert;return o.createElement(o.Fragment,null,T?o.createElement(a,{styles:"\n .block-interactivity-".concat(l," {pointer-events: none;}\n .allow-interactivity-").concat(l," {pointer-events: all;}\n")}):null,w?o.createElement(d.jp,{gapMode:e.gapMode}):null)}),P=o.forwardRef(function(e,t){return o.createElement(c,(0,r.pi)({},e,{ref:t,sideCar:T}))});P.classNames=c.classNames;var L=P},74291:function(e,t,n){n.d(t,{q:function(){return a}});var r=n(6466);function o(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,l=new WeakMap;function a(e,t){var n,a,u,c=(n=t||null,a=function(t){return e.forEach(function(e){return o(e,t)})},(u=(0,r.useState)(function(){return{value:n,callback:a,facade:{get current(){return u.value},set current(value){var e=u.value;e!==value&&(u.value=value,u.callback(value,e))}}}})[0]).callback=a,u.facade);return i(function(){var t=l.get(c);if(t){var n=new Set(t),r=new Set(e),i=c.current;n.forEach(function(e){r.has(e)||o(e,null)}),r.forEach(function(e){n.has(e)||o(e,i)})}l.set(c,e)},[e]),c}},79533:function(e,t,n){n.d(t,{x7:function(){return ec},Me:function(){return er},oo:function(){return ed},RR:function(){return el},Cp:function(){return eu},dr:function(){return es},cv:function(){return eo},uY:function(){return ei},dp:function(){return ea}});let r=["top","right","bottom","left"],o=Math.min,i=Math.max,l=Math.round,a=Math.floor,u=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},s={start:"end",end:"start"};function d(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function v(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}function m(e){return["top","bottom"].includes(f(e))?"y":"x"}function g(e){return e.replace(/start|end/g,e=>s[e])}function y(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function w(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function b(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function x(e,t,n){let r,{reference:o,floating:i}=e,l=m(t),a=v(m(t)),u=h(a),c=f(t),s="y"===l,d=o.x+o.width/2-i.width/2,g=o.y+o.height/2-i.height/2,y=o[u]/2-i[u]/2;switch(c){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:g};break;case"left":r={x:o.x-i.width,y:g};break;default:r={x:o.x,y:o.y}}switch(p(t)){case"start":r[a]-=y*(n&&s?-1:1);break;case"end":r[a]+=y*(n&&s?-1:1)}return r}let E=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),u=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:d}=x(c,r,u),f=r,p={},v=0;for(let n=0;n<a.length;n++){let{name:i,fn:h}=a[n],{x:m,y:g,data:y,reset:w}=await h({x:s,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:l,elements:{reference:e,floating:t}});s=null!=m?m:s,d=null!=g?g:d,p={...p,[i]:{...p[i],...y}},w&&v<=50&&(v++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:s,y:d}=x(c,f,u)),n=-1)}return{x:s,y:d,placement:f,strategy:o,middlewareData:p}};async function S(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:f="floating",altBoundary:p=!1,padding:v=0}=d(t,e),h=w(v),m=a[p?"floating"===f?"reference":"floating":f],g=b(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:s,strategy:u})),y="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,x=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),E=await (null==i.isElement?void 0:i.isElement(x))&&await (null==i.getScale?void 0:i.getScale(x))||{x:1,y:1},S=b(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:x,strategy:u}):y);return{top:(g.top-S.top+h.top)/E.y,bottom:(S.bottom-g.bottom+h.bottom)/E.y,left:(g.left-S.left+h.left)/E.x,right:(S.right-g.right+h.right)/E.x}}function C(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function R(e){return r.some(t=>e[t]>=0)}async function T(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=f(n),a=p(n),u="y"===m(n),c=["left","top"].includes(l)?-1:1,s=i&&u?-1:1,v=d(t,e),{mainAxis:h,crossAxis:g,alignmentAxis:y}="number"==typeof v?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...v};return a&&"number"==typeof y&&(g="end"===a?-1*y:y),u?{x:g*s,y:h*c}:{x:h*c,y:g*s}}function P(e){return M(e)?(e.nodeName||"").toLowerCase():"#document"}function L(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function A(e){var t;return null==(t=(M(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function M(e){return e instanceof Node||e instanceof L(e).Node}function k(e){return e instanceof Element||e instanceof L(e).Element}function j(e){return e instanceof HTMLElement||e instanceof L(e).HTMLElement}function N(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof L(e).ShadowRoot)}function W(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=H(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function D(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function O(e){let t=I(),n=k(e)?H(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function I(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function F(e){return["html","body","#document"].includes(P(e))}function H(e){return L(e).getComputedStyle(e)}function V(e){return k(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function B(e){if("html"===P(e))return e;let t=e.assignedSlot||e.parentNode||N(e)&&e.host||A(e);return N(t)?t.host:t}function _(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=B(t);return F(n)?t.ownerDocument?t.ownerDocument.body:t.body:j(n)&&W(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=L(o);if(i){let e=z(l);return t.concat(l,l.visualViewport||[],W(o)?o:[],e&&n?_(e):[])}return t.concat(o,_(o,[],n))}function z(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Y(e){let t=H(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=j(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,u=l(n)!==i||l(r)!==a;return u&&(n=i,r=a),{width:n,height:r,$:u}}function K(e){return k(e)?e:e.contextElement}function X(e){let t=K(e);if(!j(t))return u(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Y(t),a=(i?l(n.width):n.width)/r,c=(i?l(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),c&&Number.isFinite(c)||(c=1),{x:a,y:c}}let U=u(0);function $(e){let t=L(e);return I()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:U}function q(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=K(e),a=u(1);t&&(r?k(r)&&(a=X(r)):a=X(e));let c=(void 0===(o=n)&&(o=!1),r&&(!o||r===L(l))&&o)?$(l):u(0),s=(i.left+c.x)/a.x,d=(i.top+c.y)/a.y,f=i.width/a.x,p=i.height/a.y;if(l){let e=L(l),t=r&&k(r)?L(r):r,n=e,o=z(n);for(;o&&r&&t!==n;){let e=X(o),t=o.getBoundingClientRect(),r=H(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,d*=e.y,f*=e.x,p*=e.y,s+=i,d+=l,o=z(n=L(o))}}return b({width:f,height:p,x:s,y:d})}function Z(e){return q(A(e)).left+V(e).scrollLeft}function G(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=L(e),r=A(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=I();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=A(e),n=V(e),r=e.ownerDocument.body,o=i(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=i(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+Z(e),u=-n.scrollTop;return"rtl"===H(r).direction&&(a+=i(t.clientWidth,r.clientWidth)-o),{width:o,height:l,x:a,y:u}}(A(e));else if(k(t))r=function(e,t){let n=q(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=j(e)?X(e):u(1),l=e.clientWidth*i.x;return{width:l,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=$(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return b(r)}function J(e){return"static"===H(e).position}function Q(e,t){return j(e)&&"fixed"!==H(e).position?t?t(e):e.offsetParent:null}function ee(e,t){let n=L(e);if(D(e))return n;if(!j(e)){let t=B(e);for(;t&&!F(t);){if(k(t)&&!J(t))return t;t=B(t)}return n}let r=Q(e,t);for(;r&&["table","td","th"].includes(P(r))&&J(r);)r=Q(r,t);return r&&F(r)&&J(r)&&!O(r)?n:r||function(e){let t=B(e);for(;j(t)&&!F(t);){if(O(t))return t;if(D(t))break;t=B(t)}return null}(e)||n}let et=async function(e){let t=this.getOffsetParent||ee,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=j(t),o=A(t),i="fixed"===n,l=q(e,!0,i,t),a={scrollLeft:0,scrollTop:0},c=u(0);if(r||!r&&!i){if(("body"!==P(t)||W(o))&&(a=V(t)),r){let e=q(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=Z(o))}return{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},en={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=A(r),a=!!t&&D(t.floating);if(r===l||a&&i)return n;let c={scrollLeft:0,scrollTop:0},s=u(1),d=u(0),f=j(r);if((f||!f&&!i)&&(("body"!==P(r)||W(l))&&(c=V(r)),j(r))){let e=q(r);s=X(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-c.scrollLeft*s.x+d.x,y:n.y*s.y-c.scrollTop*s.y+d.y}},getDocumentElement:A,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:l}=e,a=[..."clippingAncestors"===n?D(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=_(e,[],!1).filter(e=>k(e)&&"body"!==P(e)),o=null,i="fixed"===H(e).position,l=i?B(e):e;for(;k(l)&&!F(l);){let t=H(l),n=O(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||W(l)&&!n&&function e(t,n){let r=B(t);return!(r===n||!k(r)||F(r))&&("fixed"===H(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=B(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],u=a[0],c=a.reduce((e,n)=>{let r=G(t,n,l);return e.top=i(r.top,e.top),e.right=o(r.right,e.right),e.bottom=o(r.bottom,e.bottom),e.left=i(r.left,e.left),e},G(t,u,l));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:ee,getElementRects:et,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=Y(e);return{width:t,height:n}},getScale:X,isElement:k,isRTL:function(e){return"rtl"===H(e).direction}};function er(e,t,n,r){let l;void 0===r&&(r={});let{ancestorScroll:u=!0,ancestorResize:c=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=r,p=K(e),v=u||c?[...p?_(p):[],..._(t)]:[];v.forEach(e=>{u&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)});let h=p&&d?function(e,t){let n,r=null,l=A(e);function u(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function c(s,d){void 0===s&&(s=!1),void 0===d&&(d=1),u();let{left:f,top:p,width:v,height:h}=e.getBoundingClientRect();if(s||t(),!v||!h)return;let m=a(p),g=a(l.clientWidth-(f+v)),y={rootMargin:-m+"px "+-g+"px "+-a(l.clientHeight-(p+h))+"px "+-a(f)+"px",threshold:i(0,o(1,d))||1},w=!0;function b(e){let t=e[0].intersectionRatio;if(t!==d){if(!w)return c();t?c(!1,t):n=setTimeout(()=>{c(!1,1e-7)},1e3)}w=!1}try{r=new IntersectionObserver(b,{...y,root:l.ownerDocument})}catch(e){r=new IntersectionObserver(b,y)}r.observe(e)}(!0),u}(p,n):null,m=-1,g=null;s&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),p&&!f&&g.observe(p),g.observe(t));let y=f?q(e):null;return f&&function t(){let r=q(e);y&&(r.x!==y.x||r.y!==y.y||r.width!==y.width||r.height!==y.height)&&n(),y=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;v.forEach(e=>{u&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=g)||e.disconnect(),g=null,f&&cancelAnimationFrame(l)}}let eo=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,u=await T(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}},ei=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:l}=t,{mainAxis:a=!0,crossAxis:u=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=d(e,t),p={x:n,y:r},h=await S(t,s),g=m(f(l)),y=v(g),w=p[y],b=p[g];if(a){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=w+h[e],r=w-h[t];w=i(n,o(w,r))}if(u){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=b+h[e],r=b-h[t];b=i(n,o(b,r))}let x=c.fn({...t,[y]:w,[g]:b});return{...x,data:{x:x.x-n,y:x.y-r}}}}},el=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,l;let{placement:a,middlewareData:u,rects:c,initialPlacement:s,platform:w,elements:b}=t,{mainAxis:x=!0,crossAxis:E=!0,fallbackPlacements:C,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:P=!0,...L}=d(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let A=f(a),M=m(s),k=f(s)===s,j=await (null==w.isRTL?void 0:w.isRTL(b.floating)),N=C||(k||!P?[y(s)]:function(e){let t=y(e);return[g(e),t,g(t)]}(s)),W="none"!==T;!C&&W&&N.push(...function(e,t,n,r){let o=p(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(f(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(g)))),i}(s,P,T,j));let D=[s,...N],O=await S(t,L),I=[],F=(null==(r=u.flip)?void 0:r.overflows)||[];if(x&&I.push(O[A]),E){let e=function(e,t,n){void 0===n&&(n=!1);let r=p(e),o=v(m(e)),i=h(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=y(l)),[l,y(l)]}(a,c,j);I.push(O[e[0]],O[e[1]])}if(F=[...F,{placement:a,overflows:I}],!I.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=D[e];if(t)return{data:{index:e,overflows:F},reset:{placement:t}};let n=null==(i=F.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(R){case"bestFit":{let e=null==(l=F.filter(e=>{if(W){let t=m(e.placement);return t===M||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}},ea=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,r;let{placement:l,rects:a,platform:u,elements:c}=t,{apply:s=()=>{},...v}=d(e,t),h=await S(t,v),g=f(l),y=p(l),w="y"===m(l),{width:b,height:x}=a.floating;"top"===g||"bottom"===g?(n=g,r=y===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(r=g,n="end"===y?"top":"bottom");let E=x-h.top-h.bottom,C=b-h.left-h.right,R=o(x-h[n],E),T=o(b-h[r],C),P=!t.middlewareData.shift,L=R,A=T;if(w?A=y||P?o(T,C):C:L=y||P?o(R,E):E,P&&!y){let e=i(h.left,0),t=i(h.right,0),n=i(h.top,0),r=i(h.bottom,0);w?A=b-2*(0!==e||0!==t?e+t:i(h.left,h.right)):L=x-2*(0!==n||0!==r?n+r:i(h.top,h.bottom))}await s({...t,availableWidth:A,availableHeight:L});let M=await u.getDimensions(c.floating);return b!==M.width||x!==M.height?{reset:{rects:!0}}:{}}}},eu=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=d(e,t);switch(r){case"referenceHidden":{let e=C(await S(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:R(e)}}}case"escaped":{let e=C(await S(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:R(e)}}}default:return{}}}}},ec=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:l,rects:a,platform:u,elements:c,middlewareData:s}=t,{element:f,padding:g=0}=d(e,t)||{};if(null==f)return{};let y=w(g),b={x:n,y:r},x=v(m(l)),E=h(x),S=await u.getDimensions(f),C="y"===x,R=C?"clientHeight":"clientWidth",T=a.reference[E]+a.reference[x]-b[x]-a.floating[E],P=b[x]-a.reference[x],L=await (null==u.getOffsetParent?void 0:u.getOffsetParent(f)),A=L?L[R]:0;A&&await (null==u.isElement?void 0:u.isElement(L))||(A=c.floating[R]||a.floating[E]);let M=A/2-S[E]/2-1,k=o(y[C?"top":"left"],M),j=o(y[C?"bottom":"right"],M),N=A-S[E]-j,W=A/2-S[E]/2+(T/2-P/2),D=i(k,o(W,N)),O=!s.arrow&&null!=p(l)&&W!==D&&a.reference[E]/2-(W<k?k:j)-S[E]/2<0,I=O?W<k?W-k:W-N:0;return{[x]:b[x]+I,data:{[x]:D,centerOffset:W-D-I,...O&&{alignmentOffset:I}},reset:O}}}),es=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:u=!0,crossAxis:c=!0}=d(e,t),s={x:n,y:r},p=m(o),h=v(p),g=s[h],y=s[p],w=d(a,t),b="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(u){let e="y"===h?"height":"width",t=i.reference[h]-i.floating[e]+b.mainAxis,n=i.reference[h]+i.reference[e]-b.mainAxis;g<t?g=t:g>n&&(g=n)}if(c){var x,E;let e="y"===h?"width":"height",t=["top","left"].includes(f(o)),n=i.reference[p]-i.floating[e]+(t&&(null==(x=l.offset)?void 0:x[p])||0)+(t?0:b.crossAxis),r=i.reference[p]+i.reference[e]+(t?0:(null==(E=l.offset)?void 0:E[p])||0)-(t?b.crossAxis:0);y<n?y=n:y>r&&(y=r)}return{[h]:g,[p]:y}}}},ed=(e,t,n)=>{let r=new Map,o={platform:en,...n},i={...o.platform,_c:r};return E(e,t,{...o,platform:i})}},59604:function(e,t,n){n.d(t,{Cp:function(){return y},RR:function(){return m},YF:function(){return d},cv:function(){return p},dp:function(){return g},dr:function(){return h},uY:function(){return v},x7:function(){return w}});var r=n(79533),o=n(6466),i=n(24041),l="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function a(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!a(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!a(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function u(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function c(e,t){let n=u(e);return Math.round(t*n)/n}function s(e){let t=o.useRef(e);return l(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:f,elements:{reference:p,floating:v}={},transform:h=!0,whileElementsMounted:m,open:g}=e,[y,w]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,x]=o.useState(d);a(b,d)||x(d);let[E,S]=o.useState(null),[C,R]=o.useState(null),T=o.useCallback(e=>{e!==M.current&&(M.current=e,S(e))},[]),P=o.useCallback(e=>{e!==k.current&&(k.current=e,R(e))},[]),L=p||E,A=v||C,M=o.useRef(null),k=o.useRef(null),j=o.useRef(y),N=null!=m,W=s(m),D=s(f),O=o.useCallback(()=>{if(!M.current||!k.current)return;let e={placement:t,strategy:n,middleware:b};D.current&&(e.platform=D.current),(0,r.oo)(M.current,k.current,e).then(e=>{let t={...e,isPositioned:!0};I.current&&!a(j.current,t)&&(j.current=t,i.flushSync(()=>{w(t)}))})},[b,t,n,D]);l(()=>{!1===g&&j.current.isPositioned&&(j.current.isPositioned=!1,w(e=>({...e,isPositioned:!1})))},[g]);let I=o.useRef(!1);l(()=>(I.current=!0,()=>{I.current=!1}),[]),l(()=>{if(L&&(M.current=L),A&&(k.current=A),L&&A){if(W.current)return W.current(L,A,O);O()}},[L,A,O,W,N]);let F=o.useMemo(()=>({reference:M,floating:k,setReference:T,setFloating:P}),[T,P]),H=o.useMemo(()=>({reference:L,floating:A}),[L,A]),V=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!H.floating)return e;let t=c(H.floating,y.x),r=c(H.floating,y.y);return h?{...e,transform:"translate("+t+"px, "+r+"px)",...u(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,h,H.floating,y.x,y.y]);return o.useMemo(()=>({...y,update:O,refs:F,elements:H,floatingStyles:V}),[y,O,F,H,V])}let f=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:o}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.x7)({element:n.current,padding:o}).fn(t):{}:n?(0,r.x7)({element:n,padding:o}).fn(t):{}}}),p=(e,t)=>({...(0,r.cv)(e),options:[e,t]}),v=(e,t)=>({...(0,r.uY)(e),options:[e,t]}),h=(e,t)=>({...(0,r.dr)(e),options:[e,t]}),m=(e,t)=>({...(0,r.RR)(e),options:[e,t]}),g=(e,t)=>({...(0,r.dp)(e),options:[e,t]}),y=(e,t)=>({...(0,r.Cp)(e),options:[e,t]}),w=(e,t)=>({...f(e),options:[e,t]})},74116:function(e,t,n){n.d(t,{u:function(){return r}});function r(e,[t,n]){return Math.min(n,Math.max(t,e))}},84481:function(e,t,n){n.d(t,{M:function(){return r}});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},69182:function(e,t,n){n.d(t,{B:function(){return u}});var r=n(6466),o=n(49645),i=n(52932),l=n(55469),a=n(65140);function u(e){let t=e+"CollectionProvider",[n,u]=(0,o.b)(t),[c,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,o=r.useRef(null),i=r.useRef(new Map).current;return(0,a.jsx)(c,{scope:t,itemMap:i,collectionRef:o,children:n})};d.displayName=t;let f=e+"CollectionSlot",p=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=s(f,n),u=(0,i.e)(t,o.collectionRef);return(0,a.jsx)(l.g7,{ref:u,children:r})});p.displayName=f;let v=e+"CollectionItemSlot",h="data-radix-collection-item",m=r.forwardRef((e,t)=>{let{scope:n,children:o,...u}=e,c=r.useRef(null),d=(0,i.e)(t,c),f=s(v,n);return r.useEffect(()=>(f.itemMap.set(c,{ref:c,...u}),()=>void f.itemMap.delete(c))),(0,a.jsx)(l.g7,{[h]:"",ref:d,children:o})});return m.displayName=v,[{Provider:d,Slot:p,ItemSlot:m},function(t){let n=s(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(h,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},u]}},49645:function(e,t,n){n.d(t,{b:function(){return l},k:function(){return i}});var r=n(6466),o=n(65140);function i(e,t){let n=r.createContext(t);function i(e){let{children:t,...i}=e,l=r.useMemo(()=>i,Object.values(i));return(0,o.jsx)(n.Provider,{value:l,children:t})}return i.displayName=e+"Provider",[i,function(o){let i=r.useContext(n);if(i)return i;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function l(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,i){let l=r.createContext(i),a=n.length;function u(t){let{scope:n,children:i,...u}=t,c=n?.[e][a]||l,s=r.useMemo(()=>u,Object.values(u));return(0,o.jsx)(c.Provider,{value:s,children:i})}return n=[...n,i],u.displayName=t+"Provider",[u,function(n,o){let u=o?.[e][a]||l,c=r.useContext(u);if(c)return c;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(i,...t)]}},102:function(e,t,n){n.d(t,{_9:function(){return l},gm:function(){return a}});var r=n(6466),o=n(65140),i=r.createContext(void 0),l=e=>{let{dir:t,children:n}=e;return(0,o.jsx)(i.Provider,{value:t,children:n})};function a(e){let t=r.useContext(i);return e||t||"ltr"}},52867:function(e,t,n){n.d(t,{XB:function(){return p}});var r,o=n(6466),i=n(84481),l=n(32041),a=n(52932),u=n(34951),c=n(12382),s=n(65140),d="dismissableLayer.update",f=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),p=o.forwardRef((e,t)=>{var n,p;let{disableOutsidePointerEvents:m=!1,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:w,onInteractOutside:b,onDismiss:x,...E}=e,S=o.useContext(f),[C,R]=o.useState(null),T=null!==(p=null==C?void 0:C.ownerDocument)&&void 0!==p?p:null===(n=globalThis)||void 0===n?void 0:n.document,[,P]=o.useState({}),L=(0,a.e)(t,e=>R(e)),A=Array.from(S.layers),[M]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),k=A.indexOf(M),j=C?A.indexOf(C):-1,N=S.layersWithOutsidePointerEventsDisabled.size>0,W=j>=k,D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,u.W)(e),i=o.useRef(!1),l=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){h("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));!W||n||(null==y||y(e),null==b||b(e),e.defaultPrevented||null==x||x())},T),O=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,u.W)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&h("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==w||w(e),null==b||b(e),e.defaultPrevented||null==x||x())},T);return(0,c.e)(e=>{j!==S.layers.size-1||(null==g||g(e),!e.defaultPrevented&&x&&(e.preventDefault(),x()))},T),o.useEffect(()=>{if(C)return m&&(0===S.layersWithOutsidePointerEventsDisabled.size&&(r=T.body.style.pointerEvents,T.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(C)),S.layers.add(C),v(),()=>{m&&1===S.layersWithOutsidePointerEventsDisabled.size&&(T.body.style.pointerEvents=r)}},[C,T,m,S]),o.useEffect(()=>()=>{C&&(S.layers.delete(C),S.layersWithOutsidePointerEventsDisabled.delete(C),v())},[C,S]),o.useEffect(()=>{let e=()=>P({});return document.addEventListener(d,e),()=>document.removeEventListener(d,e)},[]),(0,s.jsx)(l.WV.div,{...E,ref:L,style:{pointerEvents:N?W?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.M)(e.onFocusCapture,O.onFocusCapture),onBlurCapture:(0,i.M)(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:(0,i.M)(e.onPointerDownCapture,D.onPointerDownCapture)})});function v(){let e=new CustomEvent(d);document.dispatchEvent(e)}function h(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,l.jH)(i,a):i.dispatchEvent(a)}p.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(f),r=o.useRef(null),i=(0,a.e)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,s.jsx)(l.WV.div,{...e,ref:i})}).displayName="DismissableLayerBranch"},76300:function(e,t,n){n.d(t,{EW:function(){return i}});var r=n(6466),o=0;function i(){r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:l()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:l()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function l(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},16443:function(e,t,n){let r;n.d(t,{M:function(){return f}});var o=n(6466),i=n(52932),l=n(32041),a=n(34951),u=n(65140),c="focusScope.autoFocusOnMount",s="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,...y}=e,[w,b]=o.useState(null),x=(0,a.W)(f),E=(0,a.W)(g),S=o.useRef(null),C=(0,i.e)(t,e=>b(e)),R=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(R.paused||!w)return;let t=e.target;w.contains(t)?S.current=t:h(S.current,{select:!0})},t=function(e){if(R.paused||!w)return;let t=e.relatedTarget;null===t||w.contains(t)||h(S.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&h(w)});return w&&n.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,w,R.paused]),o.useEffect(()=>{if(w){m.add(R);let e=document.activeElement;if(!w.contains(e)){let t=new CustomEvent(c,d);w.addEventListener(c,x),w.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(h(r,{select:t}),document.activeElement!==n)return}(p(w).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&h(w))}return()=>{w.removeEventListener(c,x),setTimeout(()=>{let t=new CustomEvent(s,d);w.addEventListener(s,E),w.dispatchEvent(t),t.defaultPrevented||h(null!=e?e:document.body,{select:!0}),w.removeEventListener(s,E),m.remove(R)},0)}}},[w,x,E,R]);let T=o.useCallback(e=>{if(!n&&!r||R.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=p(e);return[v(t,e),v(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&h(i,{select:!0})):(e.preventDefault(),n&&h(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,R.paused]);return(0,u.jsx)(l.WV.div,{tabIndex:-1,...y,ref:C,onKeyDown:T})});function p(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function v(e,t){for(let n of e)if(!function(e,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 h(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()}}f.displayName="FocusScope";var m=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=g(r,e)).unshift(e)},remove(e){var t;null===(t=(r=g(r,e))[0])||void 0===t||t.resume()}});function g(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},12923:function(e,t,n){n.d(t,{M:function(){return u}});var r,o=n(6466),i=n(20440),l=(r||(r=n.t(o,2)))["useId".toString()]||(()=>void 0),a=0;function u(e){let[t,n]=o.useState(l());return(0,i.b)(()=>{e||n(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},60267:function(e,t,n){n.d(t,{ee:function(){return N},Eh:function(){return D},VY:function(){return W},fC:function(){return j},D7:function(){return m}});var r=n(6466),o=n(59604),i=n(79533),l=n(32041),a=n(65140),u=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,a.jsx)(l.WV.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,a.jsx)("polygon",{points:"0,0 30,0 15,10"})})});u.displayName="Arrow";var c=n(52932),s=n(49645),d=n(34951),f=n(20440),p=n(62519),v="Popper",[h,m]=(0,s.b)(v),[g,y]=h(v),w=e=>{let{__scopePopper:t,children:n}=e,[o,i]=r.useState(null);return(0,a.jsx)(g,{scope:t,anchor:o,onAnchorChange:i,children:n})};w.displayName=v;var b="PopperAnchor",x=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...i}=e,u=y(b,n),s=r.useRef(null),d=(0,c.e)(t,s);return r.useEffect(()=>{u.onAnchorChange((null==o?void 0:o.current)||s.current)}),o?null:(0,a.jsx)(l.WV.div,{...i,ref:d})});x.displayName=b;var E="PopperContent",[S,C]=h(E),R=r.forwardRef((e,t)=>{var n,u,s,v,h,m,g,w;let{__scopePopper:b,side:x="bottom",sideOffset:C=0,align:R="center",alignOffset:T=0,arrowPadding:P=0,avoidCollisions:L=!0,collisionBoundary:j=[],collisionPadding:N=0,sticky:W="partial",hideWhenDetached:D=!1,updatePositionStrategy:O="optimized",onPlaced:I,...F}=e,H=y(E,b),[V,B]=r.useState(null),_=(0,c.e)(t,e=>B(e)),[z,Y]=r.useState(null),K=(0,p.t)(z),X=null!==(g=null==K?void 0:K.width)&&void 0!==g?g:0,U=null!==(w=null==K?void 0:K.height)&&void 0!==w?w:0,$="number"==typeof N?N:{top:0,right:0,bottom:0,left:0,...N},q=Array.isArray(j)?j:[j],Z=q.length>0,G={padding:$,boundary:q.filter(A),altBoundary:Z},{refs:J,floatingStyles:Q,placement:ee,isPositioned:et,middlewareData:en}=(0,o.YF)({strategy:"fixed",placement:x+("center"!==R?"-"+R:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,i.Me)(...t,{animationFrame:"always"===O})},elements:{reference:H.anchor},middleware:[(0,o.cv)({mainAxis:C+U,alignmentAxis:T}),L&&(0,o.uY)({mainAxis:!0,crossAxis:!1,limiter:"partial"===W?(0,o.dr)():void 0,...G}),L&&(0,o.RR)({...G}),(0,o.dp)({...G,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"))}}),z&&(0,o.x7)({element:z,padding:P}),M({arrowWidth:X,arrowHeight:U}),D&&(0,o.Cp)({strategy:"referenceHidden",...G})]}),[er,eo]=k(ee),ei=(0,d.W)(I);(0,f.b)(()=>{et&&(null==ei||ei())},[et,ei]);let el=null===(n=en.arrow)||void 0===n?void 0:n.x,ea=null===(u=en.arrow)||void 0===u?void 0:u.y,eu=(null===(s=en.arrow)||void 0===s?void 0:s.centerOffset)!==0,[ec,es]=r.useState();return(0,f.b)(()=>{V&&es(window.getComputedStyle(V).zIndex)},[V]),(0,a.jsx)("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:et?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ec,"--radix-popper-transform-origin":[null===(v=en.transformOrigin)||void 0===v?void 0:v.x,null===(h=en.transformOrigin)||void 0===h?void 0:h.y].join(" "),...(null===(m=en.hide)||void 0===m?void 0:m.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,a.jsx)(S,{scope:b,placedSide:er,onArrowChange:Y,arrowX:el,arrowY:ea,shouldHideArrow:eu,children:(0,a.jsx)(l.WV.div,{"data-side":er,"data-align":eo,...F,ref:_,style:{...F.style,animation:et?void 0:"none"}})})})});R.displayName=E;var T="PopperArrow",P={top:"bottom",right:"left",bottom:"top",left:"right"},L=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=C(T,n),i=P[o.placedSide];return(0,a.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,a.jsx)(u,{...r,ref:t,style:{...r.style,display:"block"}})})});function A(e){return null!==e}L.displayName=T;var M=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:c}=t,s=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=s?0:e.arrowWidth,f=s?0:e.arrowHeight,[p,v]=k(a),h={start:"0%",center:"50%",end:"100%"}[v],m=(null!==(i=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+d/2,g=(null!==(l=null===(o=c.arrow)||void 0===o?void 0:o.y)&&void 0!==l?l:0)+f/2,y="",w="";return"bottom"===p?(y=s?h:"".concat(m,"px"),w="".concat(-f,"px")):"top"===p?(y=s?h:"".concat(m,"px"),w="".concat(u.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),w=s?h:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+f,"px"),w=s?h:"".concat(g,"px")),{data:{x:y,y:w}}}});function k(e){let[t,n="center"]=e.split("-");return[t,n]}var j=w,N=x,W=R,D=L},69570:function(e,t,n){n.d(t,{Portal:function(){return u}});var r=n(6466),o=n(24041),i=n(32041),l=n(20440),a=n(65140),u=r.forwardRef((e,t)=>{var n,u;let{container:c,...s}=e,[d,f]=r.useState(!1);(0,l.b)(()=>f(!0),[]);let p=c||d&&(null===(u=globalThis)||void 0===u?void 0:null===(n=u.document)||void 0===n?void 0:n.body);return p?o.createPortal((0,a.jsx)(i.WV.div,{...s,ref:t}),p):null});u.displayName="Portal"},78702:function(e,t,n){n.d(t,{$G:function(){return e_},B4:function(){return ek},JO:function(){return ej},VY:function(){return eW},Z0:function(){return ez},ZA:function(){return eO},__:function(){return eI},ck:function(){return eF},eT:function(){return eH},fC:function(){return eA},h_:function(){return eN},l_:function(){return eD},u_:function(){return eB},wU:function(){return eV},xz:function(){return eM}});var r=n(6466),o=n(24041),i=n(74116),l=n(84481),a=n(69182),u=n(52932),c=n(49645),s=n(102),d=n(52867),f=n(76300),p=n(16443),v=n(12923),h=n(60267),m=n(69570),g=n(32041),y=n(55469),w=n(34951),b=n(72252),x=n(20440),E=n(19606),S=n(4989),C=n(74222),R=n(15568),T=n(65140),P=[" ","Enter","ArrowUp","ArrowDown"],L=[" ","Enter"],A="Select",[M,k,j]=(0,a.B)(A),[N,W]=(0,c.b)(A,[j,h.D7]),D=(0,h.D7)(),[O,I]=N(A),[F,H]=N(A),V=e=>{let{__scopeSelect:t,children:n,open:o,defaultOpen:i,onOpenChange:l,value:a,defaultValue:u,onValueChange:c,dir:d,name:f,autoComplete:p,disabled:m,required:g}=e,y=D(t),[w,x]=r.useState(null),[E,S]=r.useState(null),[C,R]=r.useState(!1),P=(0,s.gm)(d),[L=!1,A]=(0,b.T)({prop:o,defaultProp:i,onChange:l}),[k,j]=(0,b.T)({prop:a,defaultProp:u,onChange:c}),N=r.useRef(null),W=!w||!!w.closest("form"),[I,H]=r.useState(new Set),V=Array.from(I).map(e=>e.props.value).join(";");return(0,T.jsx)(h.fC,{...y,children:(0,T.jsxs)(O,{required:g,scope:t,trigger:w,onTriggerChange:x,valueNode:E,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:R,contentId:(0,v.M)(),value:k,onValueChange:j,open:L,onOpenChange:A,dir:P,triggerPointerDownPosRef:N,disabled:m,children:[(0,T.jsx)(M.Provider,{scope:t,children:(0,T.jsx)(F,{scope:e.__scopeSelect,onNativeOptionAdd:r.useCallback(e=>{H(t=>new Set(t).add(e))},[]),onNativeOptionRemove:r.useCallback(e=>{H(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),W?(0,T.jsxs)(eT,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:p,value:k,onChange:e=>j(e.target.value),disabled:m,children:[void 0===k?(0,T.jsx)("option",{value:""}):null,Array.from(I)]},V):null]})})};V.displayName=A;var B="SelectTrigger",_=r.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...o}=e,i=D(n),a=I(B,n),c=a.disabled||r,s=(0,u.e)(t,a.onTriggerChange),d=k(n),[f,p,v]=eP(e=>{let t=d().filter(e=>!e.disabled),n=t.find(e=>e.value===a.value),r=eL(t,e,n);void 0!==r&&a.onValueChange(r.value)}),m=()=>{c||(a.onOpenChange(!0),v())};return(0,T.jsx)(h.ee,{asChild:!0,...i,children:(0,T.jsx)(g.WV.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:c,"data-disabled":c?"":void 0,"data-placeholder":eR(a.value)?"":void 0,...o,ref:s,onClick:(0,l.M)(o.onClick,e=>{e.currentTarget.focus()}),onPointerDown:(0,l.M)(o.onPointerDown,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(m(),a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())}),onKeyDown:(0,l.M)(o.onKeyDown,e=>{let t=""!==f.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||p(e.key),(!t||" "!==e.key)&&P.includes(e.key)&&(m(),e.preventDefault())})})})});_.displayName=B;var z="SelectValue",Y=r.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...a}=e,c=I(z,n),{onValueNodeHasChildrenChange:s}=c,d=void 0!==i,f=(0,u.e)(t,c.onValueNodeChange);return(0,x.b)(()=>{s(d)},[s,d]),(0,T.jsx)(g.WV.span,{...a,ref:f,style:{pointerEvents:"none"},children:eR(c.value)?(0,T.jsx)(T.Fragment,{children:l}):i})});Y.displayName=z;var K=r.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...o}=e;return(0,T.jsx)(g.WV.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});K.displayName="SelectIcon";var X=e=>(0,T.jsx)(m.Portal,{asChild:!0,...e});X.displayName="SelectPortal";var U="SelectContent",$=r.forwardRef((e,t)=>{let n=I(U,e.__scopeSelect),[i,l]=r.useState();return((0,x.b)(()=>{l(new DocumentFragment)},[]),n.open)?(0,T.jsx)(G,{...e,ref:t}):i?o.createPortal((0,T.jsx)(q,{scope:e.__scopeSelect,children:(0,T.jsx)(M.Slot,{scope:e.__scopeSelect,children:(0,T.jsx)("div",{children:e.children})})}),i):null});$.displayName=U;var[q,Z]=N(U),G=r.forwardRef((e,t)=>{let{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:c,side:s,sideOffset:v,align:h,alignOffset:m,arrowPadding:g,collisionBoundary:w,collisionPadding:b,sticky:x,hideWhenDetached:E,avoidCollisions:S,...P}=e,L=I(U,n),[A,M]=r.useState(null),[j,N]=r.useState(null),W=(0,u.e)(t,e=>M(e)),[D,O]=r.useState(null),[F,H]=r.useState(null),V=k(n),[B,_]=r.useState(!1),z=r.useRef(!1);r.useEffect(()=>{if(A)return(0,C.Ry)(A)},[A]),(0,f.EW)();let Y=r.useCallback(e=>{let[t,...n]=V().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&&j&&(j.scrollTop=0),n===r&&j&&(j.scrollTop=j.scrollHeight),null==n||n.focus(),document.activeElement!==o))return},[V,j]),K=r.useCallback(()=>Y([D,A]),[Y,D,A]);r.useEffect(()=>{B&&K()},[B,K]);let{onOpenChange:X,triggerPointerDownPosRef:$}=L;r.useEffect(()=>{if(A){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=$.current)||void 0===n?void 0:n.x)&&void 0!==o?o:0)),y:Math.abs(Math.round(t.pageY)-(null!==(i=null===(r=$.current)||void 0===r?void 0:r.y)&&void 0!==i?i:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():A.contains(n.target)||X(!1),document.removeEventListener("pointermove",t),$.current=null};return null!==$.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[A,X,$]),r.useEffect(()=>{let e=()=>X(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[X]);let[Z,G]=eP(e=>{let t=V().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=eL(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),ee=r.useCallback((e,t,n)=>{let r=!z.current&&!n;(void 0!==L.value&&L.value===t||r)&&(O(e),r&&(z.current=!0))},[L.value]),et=r.useCallback(()=>null==A?void 0:A.focus(),[A]),en=r.useCallback((e,t,n)=>{let r=!z.current&&!n;(void 0!==L.value&&L.value===t||r)&&H(e)},[L.value]),er="popper"===o?Q:J,eo=er===Q?{side:s,sideOffset:v,align:h,alignOffset:m,arrowPadding:g,collisionBoundary:w,collisionPadding:b,sticky:x,hideWhenDetached:E,avoidCollisions:S}:{};return(0,T.jsx)(q,{scope:n,content:A,viewport:j,onViewportChange:N,itemRefCallback:ee,selectedItem:D,onItemLeave:et,itemTextRefCallback:en,focusSelectedItem:K,selectedItemText:F,position:o,isPositioned:B,searchRef:Z,children:(0,T.jsx)(R.Z,{as:y.g7,allowPinchZoom:!0,children:(0,T.jsx)(p.M,{asChild:!0,trapped:L.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,l.M)(i,e=>{var t;null===(t=L.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,T.jsx)(d.XB,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>L.onOpenChange(!1),children:(0,T.jsx)(er,{role:"listbox",id:L.contentId,"data-state":L.open?"open":"closed",dir:L.dir,onContextMenu:e=>e.preventDefault(),...P,...eo,onPlaced:()=>_(!0),ref:W,style:{display:"flex",flexDirection:"column",outline:"none",...P.style},onKeyDown:(0,l.M)(P.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||G(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=V().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(()=>Y(t)),e.preventDefault()}})})})})})})});G.displayName="SelectContentImpl";var J=r.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:o,...l}=e,a=I(U,n),c=Z(U,n),[s,d]=r.useState(null),[f,p]=r.useState(null),v=(0,u.e)(t,e=>p(e)),h=k(n),m=r.useRef(!1),y=r.useRef(!0),{viewport:w,selectedItem:b,selectedItemText:E,focusSelectedItem:S}=c,C=r.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&f&&w&&b&&E){let e=a.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),r=E.getBoundingClientRect();if("rtl"!==a.dir){let o=r.left-t.left,l=n.left-o,a=e.left-l,u=e.width+a,c=Math.max(u,t.width),d=window.innerWidth-10,f=(0,i.u)(l,[10,d-c]);s.style.minWidth=u+"px",s.style.left=f+"px"}else{let o=t.right-r.right,l=window.innerWidth-n.right-o,a=window.innerWidth-e.right-l,u=e.width+a,c=Math.max(u,t.width),d=window.innerWidth-10,f=(0,i.u)(l,[10,d-c]);s.style.minWidth=u+"px",s.style.right=f+"px"}let l=h(),u=window.innerHeight-20,c=w.scrollHeight,d=window.getComputedStyle(f),p=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),y=p+v+c+parseInt(d.paddingBottom,10)+g,x=Math.min(5*b.offsetHeight,y),S=window.getComputedStyle(w),C=parseInt(S.paddingTop,10),R=parseInt(S.paddingBottom,10),T=e.top+e.height/2-10,P=b.offsetHeight/2,L=p+v+(b.offsetTop+P);if(L<=T){let e=b===l[l.length-1].ref.current;s.style.bottom="0px";let t=f.clientHeight-w.offsetTop-w.offsetHeight;s.style.height=L+Math.max(u-T,P+(e?R:0)+t+g)+"px"}else{let e=b===l[0].ref.current;s.style.top="0px";let t=Math.max(T,p+w.offsetTop+(e?C:0)+P);s.style.height=t+(y-L)+"px",w.scrollTop=L-T+w.offsetTop}s.style.margin="".concat(10,"px 0"),s.style.minHeight=x+"px",s.style.maxHeight=u+"px",null==o||o(),requestAnimationFrame(()=>m.current=!0)}},[h,a.trigger,a.valueNode,s,f,w,b,E,a.dir,o]);(0,x.b)(()=>C(),[C]);let[R,P]=r.useState();(0,x.b)(()=>{f&&P(window.getComputedStyle(f).zIndex)},[f]);let L=r.useCallback(e=>{e&&!0===y.current&&(C(),null==S||S(),y.current=!1)},[C,S]);return(0,T.jsx)(ee,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:m,onScrollButtonChange:L,children:(0,T.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:(0,T.jsx)(g.WV.div,{...l,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});J.displayName="SelectItemAlignedPosition";var Q=r.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...i}=e,l=D(n);return(0,T.jsx)(h.VY,{...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)"}})});Q.displayName="SelectPopperPosition";var[ee,et]=N(U,{}),en="SelectViewport",er=r.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:o,...i}=e,a=Z(en,n),c=et(en,n),s=(0,u.e)(t,a.onViewportChange),d=r.useRef(0);return(0,T.jsxs)(T.Fragment,{children:[(0,T.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:o}),(0,T.jsx)(M.Slot,{scope:n,children:(0,T.jsx)(g.WV.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:s,style:{position:"relative",flex:1,overflow:"auto",...i.style},onScroll:(0,l.M)(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=c;if((null==r?void 0:r.current)&&n){let e=Math.abs(d.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")}}}d.current=t.scrollTop})})})]})});er.displayName=en;var eo="SelectGroup",[ei,el]=N(eo),ea=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=(0,v.M)();return(0,T.jsx)(ei,{scope:n,id:o,children:(0,T.jsx)(g.WV.div,{role:"group","aria-labelledby":o,...r,ref:t})})});ea.displayName=eo;var eu="SelectLabel",ec=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=el(eu,n);return(0,T.jsx)(g.WV.div,{id:o.id,...r,ref:t})});ec.displayName=eu;var es="SelectItem",[ed,ef]=N(es),ep=r.forwardRef((e,t)=>{let{__scopeSelect:n,value:o,disabled:i=!1,textValue:a,...c}=e,s=I(es,n),d=Z(es,n),f=s.value===o,[p,h]=r.useState(null!=a?a:""),[m,y]=r.useState(!1),w=(0,u.e)(t,e=>{var t;return null===(t=d.itemRefCallback)||void 0===t?void 0:t.call(d,e,o,i)}),b=(0,v.M)(),x=()=>{i||(s.onValueChange(o),s.onOpenChange(!1))};if(""===o)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,T.jsx)(ed,{scope:n,value:o,disabled:i,textId:b,isSelected:f,onItemTextChange:r.useCallback(e=>{h(t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()})},[]),children:(0,T.jsx)(M.ItemSlot,{scope:n,value:o,disabled:i,textValue:p,children:(0,T.jsx)(g.WV.div,{role:"option","aria-labelledby":b,"data-highlighted":m?"":void 0,"aria-selected":f&&m,"data-state":f?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...c,ref:w,onFocus:(0,l.M)(c.onFocus,()=>y(!0)),onBlur:(0,l.M)(c.onBlur,()=>y(!1)),onPointerUp:(0,l.M)(c.onPointerUp,x),onPointerMove:(0,l.M)(c.onPointerMove,e=>{if(i){var t;null===(t=d.onItemLeave)||void 0===t||t.call(d)}else e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,l.M)(c.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null===(t=d.onItemLeave)||void 0===t||t.call(d)}}),onKeyDown:(0,l.M)(c.onKeyDown,e=>{var t;(null===(t=d.searchRef)||void 0===t?void 0:t.current)!==""&&" "===e.key||(L.includes(e.key)&&x()," "===e.key&&e.preventDefault())})})})})});ep.displayName=es;var ev="SelectItemText",eh=r.forwardRef((e,t)=>{let{__scopeSelect:n,className:i,style:l,...a}=e,c=I(ev,n),s=Z(ev,n),d=ef(ev,n),f=H(ev,n),[p,v]=r.useState(null),h=(0,u.e)(t,e=>v(e),d.onItemTextChange,e=>{var t;return null===(t=s.itemTextRefCallback)||void 0===t?void 0:t.call(s,e,d.value,d.disabled)}),m=null==p?void 0:p.textContent,y=r.useMemo(()=>(0,T.jsx)("option",{value:d.value,disabled:d.disabled,children:m},d.value),[d.disabled,d.value,m]),{onNativeOptionAdd:w,onNativeOptionRemove:b}=f;return(0,x.b)(()=>(w(y),()=>b(y)),[w,b,y]),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(g.WV.span,{id:d.textId,...a,ref:h}),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren?o.createPortal(a.children,c.valueNode):null]})});eh.displayName=ev;var em="SelectItemIndicator",eg=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return ef(em,n).isSelected?(0,T.jsx)(g.WV.span,{"aria-hidden":!0,...r,ref:t}):null});eg.displayName=em;var ey="SelectScrollUpButton",ew=r.forwardRef((e,t)=>{let n=Z(ey,e.__scopeSelect),o=et(ey,e.__scopeSelect),[i,l]=r.useState(!1),a=(0,u.e)(t,o.onScrollButtonChange);return(0,x.b)(()=>{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]),i?(0,T.jsx)(eE,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});ew.displayName=ey;var eb="SelectScrollDownButton",ex=r.forwardRef((e,t)=>{let n=Z(eb,e.__scopeSelect),o=et(eb,e.__scopeSelect),[i,l]=r.useState(!1),a=(0,u.e)(t,o.onScrollButtonChange);return(0,x.b)(()=>{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]),i?(0,T.jsx)(eE,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});ex.displayName=eb;var eE=r.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:o,...i}=e,a=Z("SelectScrollButton",n),u=r.useRef(null),c=k(n),s=r.useCallback(()=>{null!==u.current&&(window.clearInterval(u.current),u.current=null)},[]);return r.useEffect(()=>()=>s(),[s]),(0,x.b)(()=>{var e;let t=c().find(e=>e.ref.current===document.activeElement);null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[c]),(0,T.jsx)(g.WV.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:(0,l.M)(i.onPointerDown,()=>{null===u.current&&(u.current=window.setInterval(o,50))}),onPointerMove:(0,l.M)(i.onPointerMove,()=>{var e;null===(e=a.onItemLeave)||void 0===e||e.call(a),null===u.current&&(u.current=window.setInterval(o,50))}),onPointerLeave:(0,l.M)(i.onPointerLeave,()=>{s()})})}),eS=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,T.jsx)(g.WV.div,{"aria-hidden":!0,...r,ref:t})});eS.displayName="SelectSeparator";var eC="SelectArrow";function eR(e){return""===e||void 0===e}r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=D(n),i=I(eC,n),l=Z(eC,n);return i.open&&"popper"===l.position?(0,T.jsx)(h.Eh,{...o,...r,ref:t}):null}).displayName=eC;var eT=r.forwardRef((e,t)=>{let{value:n,...o}=e,i=r.useRef(null),l=(0,u.e)(t,i),a=(0,E.D)(n);return r.useEffect(()=>{let e=i.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(a!==n&&t){let r=new Event("change",{bubbles:!0});t.call(e,n),e.dispatchEvent(r)}},[a,n]),(0,T.jsx)(S.T,{asChild:!0,children:(0,T.jsx)("select",{...o,ref:l,defaultValue:n})})});function eP(e){let t=(0,w.W)(e),n=r.useRef(""),o=r.useRef(0),i=r.useCallback(e=>{let r=n.current+e;t(r),function e(t){n.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout(()=>e(""),1e3))}(r)},[t]),l=r.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,i,l]}function eL(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(i=i.filter(e=>e!==n));let l=i.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}eT.displayName="BubbleSelect";var eA=V,eM=_,ek=Y,ej=K,eN=X,eW=$,eD=er,eO=ea,eI=ec,eF=ep,eH=eh,eV=eg,eB=ew,e_=ex,ez=eS},34951:function(e,t,n){n.d(t,{W:function(){return o}});var r=n(6466);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},72252:function(e,t,n){n.d(t,{T:function(){return i}});var r=n(6466),o=n(34951);function i({prop:e,defaultProp:t,onChange:n=()=>{}}){let[i,l]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[i]=n,l=r.useRef(i),a=(0,o.W)(t);return r.useEffect(()=>{l.current!==i&&(a(i),l.current=i)},[i,l,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,u=a?e:i,c=(0,o.W)(n);return[u,r.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&c(n)}else l(t)},[a,e,l,c])]}},12382:function(e,t,n){n.d(t,{e:function(){return i}});var r=n(6466),o=n(34951);function i(e,t=globalThis?.document){let n=(0,o.W)(e);r.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}},20440:function(e,t,n){n.d(t,{b:function(){return o}});var r=n(6466),o=globalThis?.document?r.useLayoutEffect:()=>{}},19606:function(e,t,n){n.d(t,{D:function(){return o}});var r=n(6466);function o(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},62519:function(e,t,n){n.d(t,{t:function(){return i}});var r=n(6466),o=n(20440);function i(e){let[t,n]=r.useState(void 0);return(0,o.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}},4989:function(e,t,n){n.d(t,{T:function(){return l},f:function(){return a}});var r=n(6466),o=n(32041),i=n(65140),l=r.forwardRef((e,t)=>(0,i.jsx)(o.WV.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));l.displayName="VisuallyHidden";var a=l},22731:function(e,t,n){n.d(t,{_T:function(){return o},ev:function(){return i},pi:function(){return r}});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function i(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3027],{3099:function(e,s,t){Promise.resolve().then(t.bind(t,95005))},95005:function(e,s,t){"use strict";t.d(s,{InteractForm:function(){return eb}});var n,a,r=t(65140),i=t(67590),l=t(11650),c=t(6466),o=t(71360),d=t(48071),u=t(20566),m=t(93607),h=t(64920),f=t(77040);function p(e,s){return"".concat(s||"core","-").concat((0,f.r)(e))}var x=t(36120),j=t(30637),y=t(64683),v=t(92660);let g=v.fC,b=v.wy,w=v.Fw;var N=t(11375),I=t(60649),C=t(18304),S=t(98399),A=t(50546),k=t(6945),L=t(21015),E=t(86498),O=t(91524),R=t(51722),z=t(32291),F=t(82941),P=t(57429),Z=t(66684),_=t(64477),M=t(34246),V=t(19305),W=t(37153);function q(e){let{abi:s,systemId:t,functionName:n,args:a}=e;return[t,(0,E.R)({abi:s,functionName:function(e,s){let t=(0,o.IJ)(e),n=""!==t.namespace?"".concat(t.namespace,"__"):null;return null!=n&&s.startsWith(n)?(console.warn('Detected world function name "'.concat(s,'" used in call to system "').concat((0,o.qj)(t),"\".\n\nIt's recommended to use a system ABI and system function name with these methods instead.")),s.slice(n.length)):s}(t,n),args:a})]}t(49373),t(64163),t(20725),t(43609),t(26275);var U=t(80335),D=t(27406),J=t(47671),T=t(65880);function B(e){let{elementId:s,children:t,...n}=e,[a,l]=function(){let e=(0,c.useMemo)(()=>()=>window.location.hash.replace(/^#!?/,""),[]),s=(0,i.useRouter)(),t=(0,i.useParams)(),[n,a]=(0,c.useState)(e());(0,c.useEffect)(()=>{a(e())},[t]);let r=()=>{a(e())};return(0,c.useEffect)(()=>(window.addEventListener("hashchange",r),()=>{window.removeEventListener("hashchange",r)}),[]),[n,e=>{var t;let n=window.location.href;n=T.Z.stringifyUrl({url:null!==(t=n.split("#")[0])&&void 0!==t?t:"",fragmentIdentifier:e}),a(e),s.replace(n)}]}();return(0,c.useEffect)(()=>{if(a===s){var e;null===(e=document.getElementById(s))||void 0===e||e.scrollIntoView()}},[a,s]),(0,r.jsx)("a",{href:"#".concat(s),onClick:()=>{l(s)},...n,children:t})}var $=t(50354),G=t(9303),K=t(60323),H=t(69066),X=t(9994);let Y=c.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,r.jsx)("textarea",{className:(0,X.cn)("flex min-h-[80px] w-full","px-3 py-2","rounded-md border border-input ring-offset-background focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","bg-background text-base","text-base md:text-sm","placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50","focus-visible:outline-none",t),ref:s,...n})});Y.displayName="Textarea";var Q=t(24716),ee=t(11985),es=t(17396),et=t(85759),en=t(53333),ea=t(43482),er=t(72946);let ei=(0,Q.v)({chain:et.R,transport:(0,ee.d)()}),el=e=>{if(!("components"in e))return e.type;let s=e.components.map(e=>e.name||e.type).join(", ");return"tuple[]"===e.type?"[".concat(s,"][]"):"[".concat(s,"]")};function ec(e){let{fieldType:s,...t}=e;return"string"===s?(0,r.jsx)(Y,{...t}):(0,r.jsx)(u.I,{...t})}function eo(e){let{input:s,index:t}=e,n=(0,V.Gc)(),a=n.watch("inputs.".concat(t)),i=n.watch("resolvedAddresses.".concat(t)),{data:l,isLoading:o,error:d}=(0,ea.a)({queryKey:["ensAddress",a],queryFn:a&&/\w\.\w/.test(a)?async()=>{let e=(0,en.F)(a),s=await (0,es.O)(ei,{name:e});if(!s)throw Error("Invalid ENS name");return s}:er.CN,retry:1});(0,c.useEffect)(()=>{l!==i&&n.setValue("resolvedAddresses.".concat(t),l)},[l,i,n,t]);let u=(0,c.useCallback)(e=>{if("address"!==s.type){n.setValue("inputs.".concat(t),e);return}if((0,H.U)(e)){n.setValue("inputs.".concat(t),e),n.setValue("resolvedAddresses.".concat(t),e);return}n.setValue("inputs.".concat(t),e),n.setValue("resolvedAddresses.".concat(t),void 0)},[n,t,s.type]);return(0,r.jsx)(J.Wi,{control:n.control,name:"inputs.".concat(t),render:e=>{let{field:t}=e;return(0,r.jsx)(J.xJ,{className:"flex flex-col gap-2",children:(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[s.name&&(0,r.jsx)(J.lX,{className:"shrink-0 font-mono text-sm opacity-70",children:s.name}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)(J.NI,{children:(0,r.jsx)(ec,{className:"font-mono text-sm",placeholder:el(s),fieldType:s.type,value:t.value,onChange:e=>u(e.target.value)})}),(0,r.jsx)(J.zG,{}),"address"===s.type&&!(0,H.U)(a)&&(0,r.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[o&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(A.Z,{className:"h-3 w-3 animate-spin"}),(0,r.jsx)("span",{children:"Resolving ENS name..."})]}),d&&(0,r.jsx)("span",{className:"text-destructive",children:"Failed to resolve ENS"}),i&&!o&&(0,r.jsxs)("span",{className:"flex items-center gap-1 font-mono",children:[i," ",(0,r.jsx)(K.Z,{className:"h-4 w-4 text-green-500"})]})]})]})]})})}})}function ed(e,s){return e.map((e,t)=>{let n=s.inputs[t];return n&&e?n.type.includes("[]")||"tuple"===n.type?JSON.parse(e):"bool"===n.type?"true"===e:(n.type.startsWith("uint")||n.type.startsWith("int"))&&"string"==typeof e&&e.endsWith("n")?e.slice(0,-1):e:e})}(n=a||(a={}))[n.READ=0]="READ",n[n.WRITE=1]="WRITE";let eu=M.z.object({inputs:M.z.array(M.z.string()),value:M.z.string().optional(),resolvedAddresses:M.z.record(M.z.string().optional()).optional()}),em=e=>"components"in e?"tuple"===e.type?e.name||e.type:"tuple[]"===e.type?"".concat(e.name,"[]"):e.type:e.type;function eh(e){var s;let{systemId:t,worldAbi:n,functionAbi:a,useSearchParamsArgs:l}=e,o=(0,i.useSearchParams)(),{id:d}=(0,$.A)(),m=(0,z.t)(),h="view"===a.stateMutability||"pure"===a.stateMutability?0:1,{openConnectModal:f}=(0,U.We)(),x=(0,F.Z)(),j=(0,P.m)(),{worldAddress:v}=(0,i.useParams)(),[g,b]=(0,c.useState)(!1),[w,M]=(0,c.useState)(),[T,K]=(0,c.useState)(),[H,X]=(0,c.useState)(),Y=(0,G.U)({hash:H,chainId:d}),Q=a.inputs.map(em),ee=(0,i.useRouter)(),es=(0,V.cI)({resolver:(0,W.F)(eu),defaultValues:{inputs:l?JSON.parse(o.get("args")||"[]"):[],value:l&&null!==(s=o.get("value"))&&void 0!==s?s:"",resolvedAddresses:{}}});(0,c.useEffect)(()=>{if(l){let e=new URLSearchParams(o.toString());e.delete("args"),e.delete("value"),ee.replace("?".concat(e.toString()).concat(window.location.hash))}},[l,o,ee]);let et=(0,c.useCallback)(()=>{var e;let s=es.watch(),n=new URLSearchParams(o.toString());(null===(e=s.inputs)||void 0===e?void 0:e.length)?n.set("args",JSON.stringify(s.inputs)):n.delete("args"),s.value?n.set("value",s.value):n.delete("value");let r=new URL(window.location.href);return r.hash=p(a,t),r.search=n.toString(),r.toString()},[es,a,o,t]),en=(0,c.useCallback)(async e=>{let s;if(!j.isConnected)return null==f?void 0:f();if(!m){L.A.error("Public client not found");return}b(!0);let i=e.inputs.map((e,s)=>es.getValues("resolvedAddresses.".concat(s))||e);try{if(0===h){let e;if(t){let s=q({abi:[a],functionName:a.name,args:ed(i,a),systemId:t}),{data:r}=await m.call({account:j.address,data:(0,E.R)({abi:[...n,a],functionName:"call",args:s}),to:v});e=r}else{let{data:s}=await m.call({account:j.address,data:(0,E.R)({abi:[...n,a],functionName:a.name,args:ed(i,a)}),to:v});e=s}M((0,O.P)(e,null,2).replace(/^"|"$/g,""))}else{let l;if(t){let s=q({abi:[a],functionName:a.name,args:ed(i,a),systemId:t});l=await (0,Z.n)(x,{abi:[...n,a],address:v,functionName:"call",args:s,...e.value&&{value:BigInt(e.value)},chainId:d})}else l=await (0,Z.n)(x,{abi:n,address:v,functionName:a.name,args:ed(i,a),...e.value&&{value:BigInt(e.value)},chainId:d});X(l);let c=await (0,_.e)(x,{hash:l}),o=null==c?void 0:c.logs.map(e=>(0,R.F)({...e,abi:n}));K(o),s=L.A.success((0,r.jsxs)("a",{href:(0,G.U)({hash:l,chainId:d}),target:"_blank",rel:"noopener noreferrer",children:["Transaction successful: ",l," ",(0,r.jsx)(N.Z,{className:"inline-block h-3 w-3"})]}))}}catch(e){console.error(e),L.A.error(e.message||"Something went wrong. Please try again.",{id:s})}finally{b(!1)}},[j.address,j.isConnected,d,a,f,h,m,t,x,n,v,es]);return(0,r.jsx)("div",{className:"pb-6",children:(0,r.jsx)(J.l0,{...es,children:(0,r.jsxs)("form",{onSubmit:es.handleSubmit(en),id:p(a,t),className:"space-y-4 rounded border border-white/10 bg-black/20 p-3 pb-4",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("h3",{className:"font-semibold",children:(0,r.jsxs)(B,{elementId:p(a,t),className:"group inline-flex items-center hover:no-underline",children:[(0,r.jsx)("span",{className:"text-orange-500 group-hover:underline",children:a.name}),(0,r.jsxs)("span",{className:"opacity-50",children:[" (",Q.join(", "),")"]}),(0,r.jsxs)("span",{className:"ml-2 opacity-50",children:["payable"===a.stateMutability&&(0,r.jsx)(I.Z,{className:"mr-2 inline-block h-4 w-4"}),("view"===a.stateMutability||"pure"===a.stateMutability)&&(0,r.jsx)(C.Z,{className:"mr-2 inline-block h-4 w-4"}),"nonpayable"===a.stateMutability&&(0,r.jsx)(S.Z,{className:"mr-2 inline-block h-4 w-4"})]})]})}),(0,r.jsx)(D.q,{value:et(),className:"h-8 w-8"})]}),a.inputs.length>0&&(0,r.jsxs)("div",{className:"!mt-2 space-y-2",children:[a.inputs.map((e,s)=>(0,r.jsx)(eo,{input:e,index:s},s)),"payable"===a.stateMutability&&(0,r.jsx)(J.Wi,{control:es.control,name:"value",render:e=>{let{field:s}=e;return(0,r.jsxs)(J.xJ,{className:"flex items-center gap-4 space-y-0",children:[(0,r.jsxs)(J.lX,{className:"flex shrink-0 items-center gap-x-2 pt-1 font-mono text-sm opacity-70",children:["value ",(0,r.jsx)(I.Z,{className:"h-4 w-4"})]}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)(J.NI,{children:(0,r.jsx)(u.I,{placeholder:"uint256",...s,className:"font-mono text-sm"})}),(0,r.jsx)(J.zG,{})]})]})}})]}),(0,r.jsx)("div",{children:(0,r.jsxs)(y.z,{type:"submit",size:"sm",disabled:g||!j.isConnected,children:[g&&(0,r.jsx)(A.Z,{className:"-ml-1 mr-2 h-4 w-4 animate-spin"}),0===h?"Read":"Write"]})}),w&&(0,r.jsxs)("pre",{className:"text-md relative rounded border p-3 text-sm",children:[w,(0,r.jsx)(D.q,{value:w,className:"absolute right-1.5 top-1.5"})]}),T&&(0,r.jsxs)("div",{className:"relative flex-grow break-all rounded border border-white/20 p-2 pb-3",children:[(0,r.jsx)("ul",{children:T.map((e,s)=>(0,r.jsxs)("li",{children:[e.eventName&&(0,r.jsxs)("span",{className:"text-sm",children:[e.eventName,":"]}),e.args&&(0,r.jsx)("ul",{className:"list-inside",children:Object.entries(e.args).map(e=>{let[s,t]=e;return(0,r.jsxs)("li",{className:"mt-1 flex",children:[(0,r.jsxs)("span",{className:"text-sm text-white/60",children:[s,":"]})," ",(0,r.jsx)("span",{className:"text-sm",children:String(t)})]},s)})})]},s))}),(0,r.jsx)(D.q,{value:(0,O.P)(T,null,2),className:"absolute right-1.5 top-1.5"})]}),Y&&(0,r.jsxs)(k.default,{href:Y,target:"_blank",className:"flex items-center text-xs text-muted-foreground hover:underline",children:[(0,r.jsx)(N.Z,{className:"mr-2 h-3 w-3"})," View on block explorer"]})]})})})}function ef(e){let{name:s,systems:t,functions:n,worldAbi:a,isNamespace:i,initialFunctionHash:c}=e,[o,d]=(0,l.v1)("expanded",(0,l.S$)(l.Oi).withDefault([])),u=()=>{d(e=>e.includes(s)?e.filter(e=>e!==s):[...e,s])};return i&&t?(0,r.jsx)("div",{children:(0,r.jsxs)(g,{open:o.includes(s),onOpenChange:u,children:[(0,r.jsx)(b,{asChild:!0,children:(0,r.jsxs)("div",{className:"group flex w-full cursor-pointer items-center justify-between",children:[(0,r.jsx)("h4",{className:"mt-4 text-2xl font-semibold",children:s}),(0,r.jsx)(y.z,{size:"sm",variant:"ghost",children:(0,r.jsx)(j.Z,{className:"h-4 w-4"})})]})}),(0,r.jsx)(w,{children:t.map(e=>(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"my-4 text-xl font-semibold opacity-70",children:e.name}),e.functions.map(s=>(0,r.jsx)(eh,{systemId:e.systemId,worldAbi:a,functionAbi:s,useSearchParamsArgs:c===p(s,e.systemId)},p(s,e.systemId)))]},e.systemId))})]})}):n?(0,r.jsx)("div",{children:(0,r.jsxs)(g,{open:o.includes(s),onOpenChange:u,children:[(0,r.jsx)(b,{asChild:!0,children:(0,r.jsxs)("div",{className:"group flex w-full cursor-pointer items-center justify-between",children:[(0,r.jsx)("h4",{className:"my-4 text-2xl font-semibold",children:s}),(0,r.jsx)(y.z,{size:"sm",variant:"ghost",children:(0,r.jsx)(j.Z,{className:"h-4 w-4"})})]})}),(0,r.jsx)(w,{children:n.map(e=>(0,r.jsx)(eh,{worldAbi:a,functionAbi:e,useSearchParamsArgs:c===p(e)},p(e)))})]})}):null}function ep(e){let{worldAbi:s,filteredFunctions:t,isLoading:n}=e,a=(0,c.useRef)(window.location.hash.slice(1)).current;return(0,r.jsxs)("div",{className:"w-full overflow-y-auto pl-1 pr-1",children:[n&&(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(x.O,{className:"h-[150px]"}),(0,r.jsx)(x.O,{className:"h-[150px]"}),(0,r.jsx)(x.O,{className:"h-[150px]"}),(0,r.jsx)(x.O,{className:"h-[150px]"}),(0,r.jsx)(x.O,{className:"h-[150px]"})]}),!n&&(0,r.jsxs)(r.Fragment,{children:[t.namespaces.map(e=>{let{namespace:t,systems:n}=e;return(0,r.jsx)(ef,{name:t,systems:n,worldAbi:s,initialFunctionHash:a,isNamespace:!0},t)}),t.core.map(e=>(0,r.jsx)(ef,{name:e.name,functions:e.functions,worldAbi:s,initialFunctionHash:a},e.systemId))]})]})}function ex(e){let{abi:s,systemId:t}=e;return(0,r.jsx)("li",{children:(0,r.jsxs)(B,{elementId:p(s,t),className:"whitespace-nowrap text-sm hover:text-orange-500 hover:underline",children:[(0,r.jsxs)("span",{className:"opacity-50",children:["payable"===s.stateMutability&&(0,r.jsx)(I.Z,{className:"mr-2 inline-block h-4 w-4"}),("view"===s.stateMutability||"pure"===s.stateMutability)&&(0,r.jsx)(C.Z,{className:"mr-2 inline-block h-4 w-4"}),"nonpayable"===s.stateMutability&&(0,r.jsx)(S.Z,{className:"mr-2 inline-block h-4 w-4"})]}),(0,r.jsx)("span",{children:s.name}),s.inputs.length>0&&(0,r.jsxs)("span",{className:"opacity-50",children:[" (",s.inputs.length,")"]})]})})}var ej=t(15015);function ey(e){let{systemId:s,name:t,children:n,functionCount:a,isNamespace:i}=e,[c,o]=(0,l.v1)("expanded",(0,l.S$)(l.Oi).withDefault([]));return(0,r.jsx)("li",{children:(0,r.jsxs)(g,{open:c.includes(s),onOpenChange:()=>{o(e=>e.includes(s)?e.filter(e=>e!==s):[...e,s])},children:[(0,r.jsx)(b,{asChild:!0,children:(0,r.jsxs)("div",{className:"group flex w-full cursor-pointer items-center justify-between space-x-1",children:[(0,r.jsx)("h4",{className:"truncate text-sm font-semibold",children:t}),(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[void 0!==a&&(0,r.jsx)(ej.C,{variant:"secondary",className:"h-5 min-w-[20px] rounded-full px-1.5",children:a}),(0,r.jsx)(y.z,{size:"sm",variant:"ghost",children:(0,r.jsx)(j.Z,{className:"h-4 w-4"})})]})]})}),(0,r.jsx)(w,{className:i?void 0:"space-y-1",children:n})]})})}function ev(e){let{filteredFunctions:s,filterValue:t,isLoading:n}=e,a=(0,i.useRouter)(),l=(0,i.useSearchParams)();return(0,c.useEffect)(()=>{let e=new URLSearchParams(l.toString());t?e.set("filter",t):e.delete("filter"),a.replace("?".concat(e.toString()).concat(window.location.hash))},[t,l,a]),(0,r.jsxs)("ul",{className:"py-4 pr-4",children:[n&&Array.from({length:6}).map((e,s)=>(0,r.jsx)("li",{className:"pt-2",children:(0,r.jsx)(x.O,{className:"h-[30px]"})},s)),!n&&(0,r.jsxs)(r.Fragment,{children:[s.namespaces.map(e=>{let{namespace:s,systems:t}=e;return(0,r.jsx)(ey,{systemId:s,name:s,isNamespace:!0,children:(0,r.jsx)("ul",{className:"pl-4",children:t.map(e=>(0,r.jsx)(ey,{systemId:e.systemId,name:e.name,functionCount:e.functions.length,children:(0,r.jsx)("ul",{className:"space-y-1 py-1",children:e.functions.map(s=>(0,r.jsx)(ex,{systemId:e.systemId,abi:s},(0,f.r)(s)))})},e.systemId))})},s)}),s.core.map(e=>(0,r.jsx)(ey,{systemId:e.systemId,name:e.name,functionCount:e.functions.length,children:(0,r.jsx)("ul",{children:e.functions.map(s=>(0,r.jsx)(ex,{systemId:e.systemId,abi:s},(0,f.r)(s)))})},e.systemId))]})]})}function eg(e){return"function"===e.type}function eb(){let e=(0,i.useSearchParams)(),[,s]=(0,l.v1)("expanded",(0,l.S$)(l.Oi).withDefault([])),t=(0,c.useRef)(!1),{data:n,isFetched:a}=(0,h.b)(),{data:f,isFetched:x}=(0,m.A)(),j=a&&x,[y,v]=(0,c.useState)(e.get("filter")||""),g=(0,c.useDeferredValue)(y),b=(0,c.useMemo)(()=>{if(!f)return{core:[],namespaces:[]};let e=g.toLowerCase(),s=d.filter(s=>!!eg(s)&&"core_core_".concat(s.name).toLowerCase().includes(e));return{core:s.length>0?[{systemId:"core",name:"core",namespace:"",functions:s}]:[],namespaces:Object.entries(Object.entries(f).reduce((s,t)=>{let[n,a]=t,{namespace:r,name:i}=(0,o.IJ)(n),l=r||"root",c=a.filter(s=>!!eg(s)&&"".concat(l,"_").concat(i,"_").concat(s.name).toLowerCase().includes(e));if(0===c.length)return s;s[l]||(s[l]=[]);let d=s[l];return d&&d.push({systemId:n,namespace:l,name:i,functions:c}),s},{})).map(e=>{let[s,t]=e;return{namespace:s,systems:t}})}},[f,g]);return(0,c.useEffect)(()=>{if(j&&!t.current){let e=window.location.hash.slice(1);if(e){for(let{namespace:n,systems:a}of b.namespaces)for(let r of a)for(let a of r.functions)if(e===p(a,r.systemId)){s([n,r.systemId]),t.current=!0;return}for(let n of b.core)for(let a of n.functions)if(e===p(a,n.systemId)){s(["core",n.systemId]),t.current=!0;return}}let n=b.namespaces[0];n&&(s([n.namespace]),t.current=!0)}},[j,b,s]),(0,c.useEffect)(()=>{if(j&&g){let e=[];for(let{namespace:s,systems:t}of b.namespaces)t.some(e=>e.name.toLowerCase().includes(g.toLowerCase())||e.functions.some(e=>e.name.toLowerCase().includes(g.toLowerCase())))&&(e.push(s),t.forEach(s=>{(s.name.toLowerCase().includes(g.toLowerCase())||s.functions.some(e=>e.name.toLowerCase().includes(g.toLowerCase())))&&e.push(s.systemId)}));for(let s of b.core)(s.name.toLowerCase().includes(g.toLowerCase())||s.functions.some(e=>e.name.toLowerCase().includes(g.toLowerCase())))&&e.push(s.systemId);s(e)}},[j,g,b,s]),(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"-mr-1g -ml-1 flex gap-x-4 overflow-y-hidden",children:[(0,r.jsxs)("div",{className:"w-[320px] flex-shrink-0 overflow-y-auto border-r pl-1",children:[(0,r.jsxs)("div",{className:"pr-4",children:[(0,r.jsx)("h4",{className:"py-4 text-xs font-semibold uppercase opacity-70",children:"Jump to:"}),(0,r.jsx)(u.I,{type:"search",placeholder:"Filter functions…",value:y,onChange:e=>v(e.target.value)})]}),(0,r.jsx)(ev,{filteredFunctions:b,filterValue:g,isLoading:!j})]}),(0,r.jsx)(ep,{worldAbi:null==n?void 0:n.abi,filteredFunctions:b,isLoading:!j})]})})}},93607:function(e,s,t){"use strict";t.d(s,{A:function(){return i}});var n=t(67590),a=t(43482),r=t(50354);function i(){let{worldAddress:e,chainName:s}=(0,n.useParams)(),{id:t}=(0,r.A)();return(0,a.a)({queryKey:["systemAbis",e,s],queryFn:async()=>{let s=await fetch("/api/system-abis?".concat(new URLSearchParams({chainId:t.toString(),worldAddress:e})));return await s.json()},select:e=>e.abis,retry:!1})}},64920:function(e,s,t){"use strict";t.d(s,{b:function(){return i}});var n=t(67590),a=t(43482),r=t(92593);function i(){let{chainName:e,worldAddress:s}=(0,n.useParams)();(0,r.Yx)(e);let{id:t}=r.df[e];return(0,a.a)({queryKey:["worldAbi",e,s],queryFn:async()=>{let e=await fetch("/api/world-abi?".concat(new URLSearchParams({chainId:t.toString(),worldAddress:s})));return await e.json()},select:e=>({abi:e.abi||[],isWorldDeployed:e.isWorldDeployed}),refetchInterval:5e3})}},27406:function(e,s,t){"use strict";t.d(s,{q:function(){return o}});var n=t(65140),a=t(60323),r=t(71852),i=t(6466),l=t(9994),c=t(64683);function o(e){let{className:s,variant:t="outline",value:o,...d}=e,[u,m]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{u&&setTimeout(()=>{m(!1)},2e3)},[u]),(0,n.jsxs)(c.z,{size:"icon",variant:t,className:(0,l.cn)("relative z-10 h-6 w-6 border-white/15 bg-transparent text-zinc-50 hover:bg-secondary hover:text-zinc-50 [&_svg]:h-3 [&_svg]:w-3",s),onClick:()=>{navigator.clipboard.writeText(o),m(!0)},...d,children:[(0,n.jsx)("span",{className:"sr-only",children:"Copy"}),u?(0,n.jsx)(a.Z,{}):(0,n.jsx)(r.Z,{})]})}},15015:function(e,s,t){"use strict";t.d(s,{C:function(){return l}});var n=t(65140),a=t(25183);t(6466);var r=t(9994);let i=(0,a.j)((0,r.cn)("inline-flex items-center px-2.5 py-0.5","rounded-md border","text-xs font-semibold transition-colors","focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2"),{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",tertiary:"border-transparent bg-tertiary text-tertiary-foreground hover:bg-tertiary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function l(e){let{className:s,variant:t,...a}=e;return(0,n.jsx)("div",{className:(0,r.cn)(i({variant:t}),s),...a})}},36120:function(e,s,t){"use strict";t.d(s,{O:function(){return r}});var n=t(65140),a=t(9994);function r(e){let{className:s,...t}=e;return(0,n.jsx)("div",{className:(0,a.cn)("animate-pulse rounded-md bg-muted",s),...t})}}},function(e){e.O(0,[3696,587,1720,824,8425,4536,65,3498,3802,806,3194,492,7080,1015,3278,1866,4421,3361,3341,3164,1744],function(){return e(e.s=3099)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1667],{90489:function(e,t,n){Promise.resolve().then(n.bind(n,23626))},23626:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ek}});var a=n(65140),s=n(67590),r=n(92593),c=n(62890),i=n(50546),l=n(6945),o=n(50354),d=n(91892),u=n(93155),f=n(64920),h=n(25360),p=n(96844),m=n(36120);function x(){let{id:e}=(0,o.A)(),{data:t}=(0,p.O)({watch:!0,chainId:e,query:{refetchInterval:1e3}});return(0,a.jsx)("div",{className:"inline-block w-[80px]",children:t?(0,a.jsxs)("div",{className:"flex items-center justify-end gap-x-2 text-xs font-extrabold text-green-600",children:[(0,a.jsx)("span",{className:"inline-block h-[8px] w-[8px] animate-pulse rounded-full bg-success"}),(0,a.jsx)("span",{className:"opacity-70",children:t.toString()})]}):(0,a.jsx)(m.O,{className:"h-[10px]"})})}var b=n(67462),v=n(9994),j=n(44313),y=n(10997),g=n(23845),w=n(83474),N=n(80335),k=n(78444),C=n(84586),O=n(57429),z=n(1715),I=n(62857),P=n(6466),A=n(11985),E=n(30474),U=n(40771);let S=["0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80","0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d","0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a","0x7c852118294e51e653712a81e05800f419141751be58f605c371e15141b007a6","0x47e179ec197488593b187f80a00eb0da91f1b9d0b13f8733639f19c30a34926a","0x8b3a350cf5c34c9194ca85829a2df0ec3153be0318b5e2d3348e872092edffba","0x92db14e403b83dfe3df233f83dfa3a0d7096f21ca9b0d6d6b8d88b2b4ec1564e","0x4bbbf85ce3377467afe5d46f804f221813b2bb87f24d81f60f1fcdbf7cbf4356","0xdbda1821b80551c9d65939329250298aa3472ba22feea921c0cf5d620ea67b97","0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6"].map(e=>(0,E.L)(e)),_=e=>{let t=e!==w.O.id;return S.map((e,n)=>(function(e){let{id:t,name:n,accounts:a,disabled:s}=e;if(!a.length)throw Error("missing accounts");let r=!1;return(0,U.K)(()=>({id:t,name:n,type:"anvil",accounts:a,connect:async()=>(r=!0,{accounts:a.map(e=>e.address),chainId:w.O.id}),async disconnect(){r=!1},getAccounts:async()=>a.map(e=>e.address),getChainId:async()=>w.O.id,getProvider:async()=>(0,A.d)()({chain:w.O}),async isAuthorized(){return!s&&!!r&&!!(await this.getAccounts()).length},async onAccountsChanged(){},async onDisconnect(){},onChainChanged(){}}))})({id:"anvil-".concat(n),name:"Anvil #".concat(n+1),accounts:[e],disabled:t}))};function K(e){return"anvil"===e.type}var R=n(64683),Z=n(82922),B=n(53880);function H(e){var t;let{connector:n}=e,s=null===(t=n.accounts[0])||void 0===t?void 0:t.address,{data:r}=(0,C.K)({address:s,query:{refetchInterval:15e3,select:e=>null==e?void 0:e.value,enabled:!!s}});return(0,a.jsxs)(Z.Ql,{value:n.id,className:"font-mono",children:[n.name,void 0!==r&&" (".concat((0,v.az)(r)," ETH)")," ",s&&(0,a.jsxs)("span",{className:"opacity-70",children:["(",(0,a.jsx)(B.a,{hex:s}),")"]})]},s)}function T(){let[e,t]=(0,P.useState)(!1),{connector:n}=(0,O.m)(),{connect:s}=(0,z.$)(),{openConnectModal:r}=(0,N.We)(),c=[...(0,I.Y)().filter(K)];return(0,a.jsxs)(Z.Ph,{open:e,onOpenChange:t,value:null==n?void 0:n.id,onValueChange:e=>{let t=c.find(t=>t.id===e);t&&s({connector:t})},children:[(0,a.jsx)(R.z,{size:"sm",asChild:!0,children:(0,a.jsxs)(Z.i4,{children:[(0,a.jsx)(y.Z,{className:"mr-2 inline-block h-4 w-4"}),(0,a.jsx)(Z.ki,{placeholder:"Connect"})]})}),(0,a.jsxs)(Z.Bw,{children:[c.map(e=>(0,a.jsx)(H,{connector:e},e.id)),(0,a.jsxs)(R.z,{size:"sm",className:"mt-2 w-full font-mono",onClick:()=>{t(!1),null==r||r()},children:[(0,a.jsx)(k.Z,{className:"mr-2 inline-block h-4 w-4"}),"Add wallet"]})]})]})}function D(){let{id:e}=(0,o.A)();return(0,a.jsx)(N.NL.Custom,{children:t=>{let{account:n,chain:s,openAccountModal:r,openChainModal:c,openConnectModal:i,mounted:l}=t;return(0,a.jsx)("div",{className:(0,v.cn)({"pointer-events-none select-none opacity-0":!l}),children:l&&n&&s?s.unsupported?(0,a.jsxs)(R.z,{type:"button",size:"sm",onClick:c,children:[(0,a.jsx)(g.Z,{className:"mr-2 inline-block h-4 w-4"}),"Wrong network"]}):(0,a.jsx)("div",{className:"flex-wrap gap-2",children:(0,a.jsxs)(R.z,{type:"button",size:"sm",onClick:r,variant:"secondary",children:[(0,a.jsx)(y.Z,{className:"mr-2 inline-block h-4 w-4"}),n.displayName,(0,a.jsx)("span",{className:"ml-2 font-normal opacity-70",children:n.displayBalance?" (".concat(n.displayBalance,")"):""})]})}):e===w.O.id?(0,a.jsx)(T,{}):(0,a.jsxs)(R.z,{type:"button",size:"sm",onClick:i,children:[(0,a.jsx)(y.Z,{className:"mr-2 inline-block h-4 w-4"})," Connect"]})})}})}var F=n(27406);function W(e){let{href:t,children:n}=e,r=(0,s.usePathname)(),c=(0,u.g)(),i=r.split("?")[0],o=c(t).split("?")[0];return(0,a.jsx)(l.default,{href:c(t),className:"group px-3 text-sm font-semibold uppercase",children:(0,a.jsx)("span",{className:(0,v.cn)("flex border-b-4 border-transparent pb-3 pt-4 transition group-hover:border-orange-500/30",i===o?"border-orange-500 group-hover:border-orange-400":null),children:n})})}function q(){let e=(0,o.A)(),{worldAddress:t}=(0,s.useParams)(),{data:n}=(0,h.nQ)(e),r=null==n?void 0:n.get(t);return(0,a.jsxs)("div",{className:"flex items-center gap-x-2 text-sm",children:[(0,a.jsx)("span",{className:"mx-2 opacity-30",children:"|"}),r&&(0,a.jsxs)("span",{className:"flex items-center gap-x-2 text-sm font-semibold",children:[r," ",(0,a.jsx)(c.Z,{className:"h-4 w-4 text-green-500"})]}),(0,a.jsx)("span",{className:"text-white/70",children:(0,a.jsx)(B.a,{hex:t})}),(0,a.jsx)(F.q,{value:t})]})}function L(){let e=(0,d.G)(),{data:t,isFetched:n}=(0,f.b)();return(0,a.jsxs)("div",{className:"pb-4",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"-mx-3 flex",children:[(0,a.jsx)(W,{href:"explore",children:"Explore"}),!e&&(0,a.jsx)(W,{href:"interact",children:"Interact"}),(0,a.jsx)(W,{href:"observe",children:"Observe"}),(0,a.jsx)(W,{href:"decode",children:"Decode"}),(0,a.jsx)(q,{})]}),n&&!(null==t?void 0:t.isWorldDeployed)&&(0,a.jsxs)("h4",{className:"font-mono text-sm font-bold uppercase opacity-70",children:["Waiting for world deploy ",(0,a.jsx)(i.Z,{className:"inline-block h-4 w-4 animate-spin"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-x-4",children:[(0,a.jsx)(x,{}),(0,a.jsx)(j.Y,{size:"sm"}),e?null:(0,a.jsx)(D,{})]})]}),(0,a.jsx)(b.Separator,{})]})}var M=n(82502),G=n(64506),Y=n(90953),Q=n(50427),V=n(35018);n(84186);var $=n(84321),J=n(74212),X=n(95676),ee=n(31973),et=n(12782),en=n(25704),ea=n(32608);let es=new et.S;function er(e){let{children:t}=e,n=(0,o.A)(),s=(0,P.useMemo)(()=>{let e=_(n.id),t=(0,N.a3)([{groupName:"Recommended",wallets:[$.U,J.P,X.D,ee.l]}],{appName:"Worlds Explorer",projectId:ea.env.NEXT_PUBLIC_PROJECT_ID});return(0,M._)({chains:[n],connectors:[...t,...e],transports:{[n.id]:n.rpcUrls.default.webSocket?(0,G.t)([(0,Y.j)(n.rpcUrls.default.webSocket[0]),(0,A.d)(n.rpcUrls.default.http[0])]):(0,A.d)(n.rpcUrls.default.http[0])},ssr:!0,pollingInterval:{[n.id]:31337===n.id?100:500}})},[n]);return(0,a.jsx)(Q.F,{config:s,children:(0,a.jsx)(en.aH,{client:es,children:(0,a.jsx)(N.pj,{theme:(0,V.$)(),children:t})})})}var ec=n(58560),ei=n(61266),el=n(53104),eo=n(78486),ed=n(96905),eu=n(37061),ef=n(82941),eh=n(75839),ep=n(64477),em=n(68931),ex=n(70711),eb=n(36560),ev=n(29597),ej=n(47568),ey=n(64131);let eg={type:"event",name:"UserOperationEvent",inputs:[{type:"bytes32",name:"userOpHash",indexed:!0},{type:"address",name:"sender",indexed:!0},{type:"address",name:"paymaster",indexed:!0},{type:"uint256",name:"nonce",indexed:!1},{type:"bool",name:"success",indexed:!1},{type:"uint256",name:"actualGasCost",indexed:!1},{type:"uint256",name:"actualGasUsed",indexed:!1}]};function ew(e){let t,n,a,{abi:s,target:r,data:c,value:i}=e;try{let e=(0,ec.p)({abi:s,data:c});if(t=e.functionName,n=e.args,"callFrom"===t){let[e,,r]=n,c=(0,ec.p)({abi:s,data:r});t=c.functionName,n=c.args,a=e}}catch(e){t=c.length>10?c.slice(0,10):"unknown"}return{to:r,from:a,functionName:t,args:n,value:i}}function eN(){let{id:e}=(0,o.A)(),{worldAddress:t}=(0,s.useParams)(),n=(0,ef.Z)(),{data:a}=(0,f.b)(),r=null==a?void 0:a.abi,{transactions:c,setTransaction:i,updateTransaction:l}=(0,ev.oR)(ey.h),d=(0,ev.oR)(ej.store,e=>e.writes),u=(0,P.useCallback)(e=>{var n,a;let{hash:s,writeId:c,timestamp:l,receipt:o,transaction:d,userOperation:u}=e;if(!r)return;let{functionName:f,args:h}=(0,ec.p)({abi:(0,ei.V)(["function execute(address target, uint256 value, bytes calldata data)","function executeBatch((address target,uint256 value,bytes data)[])"]),data:u.callData}),p=(function(e){let{abi:t,functionName:n,decodedArgs:a}=e;if("execute"===n){let e=a[0],n=a[1];return[ew({abi:t,target:e,data:a[2],value:n})]}return"executeBatch"===n?a[0].map(e=>{let{target:n,data:a,value:s}=e;return ew({abi:t,target:n,data:a,value:s})}):[]})({abi:r,functionName:f,decodedArgs:h}).filter(e=>{let{to:n}=e;return n&&(0,el.K)(n)===(0,el.K)(t)});if(0===p.length)return;let m=(0,eo.h)({abi:[...r,eg],logs:o.logs}),x=m.find(e=>{let{eventName:t}=e;return"UserOperationEvent"===t});i({hash:s,writeId:null!=c?c:s,from:null!==(a=null===(n=p[0])||void 0===n?void 0:n.from)&&void 0!==a?a:d.from,timestamp:l,transaction:d,calls:p,receipt:o,logs:m,value:d.value,status:x&&"success"in x.args&&x.args.success?"success":"reverted"})},[r,i,t]),h=(0,P.useCallback)(async e=>{let{writeId:t,timestamp:a,transaction:s}=e;if(!r)return;let c=s.hash,i=await (0,ep.e)(n,{hash:s.hash});for(let e of(0,ec.p)({abi:ed.iH,data:s.input}).args[0])u({hash:c,writeId:t,timestamp:a,receipt:i,transaction:s,userOperation:e})},[r,u,n]),p=(0,P.useCallback)(async e=>{let a,s,c,o,{writeId:d,hash:u,timestamp:f,transaction:h}=e;if(!r||!h.to)return;try{let e=(0,ec.p)({abi:r,data:h.input});a=e.functionName,s=e.args}catch(e){c=e,a=h.input.length>10?h.input.slice(0,10):"unknown"}i({hash:u,writeId:null!=d?d:u,from:h.from,timestamp:f,transaction:h,status:"pending",calls:[{to:h.to,functionName:a,args:s}],value:h.value});try{o=await (0,ep.e)(n,{hash:u})}catch(e){console.error("Failed to fetch transaction receipt. Transaction hash: ".concat(u))}if(o&&"reverted"===o.status&&a)try{await (0,em.a)(n,{account:h.from,address:t,abi:r,value:h.value,blockNumber:o.blockNumber,functionName:a,args:s})}catch(e){c=e}let p=o?o.status:"unknown",m=(0,eo.h)({abi:r,logs:(null==o?void 0:o.logs)||[]});l(u,{receipt:o,logs:m,status:p,error:c})},[r,n,t,i,l]),m=(0,P.useCallback)(async e=>{let{hash:a,writeId:s,timestamp:c}=e;if(!r)return;let i=await (0,ex.f)(n,{hash:a});i.to&&(0,el.K)(i.to)===(0,el.K)(eu.VU)?h({writeId:s,timestamp:c,transaction:i}):i.to&&(0,el.K)(i.to)===(0,el.K)(t)&&p({hash:a,writeId:s,timestamp:c,transaction:i})},[r,n,t,h,p]);return(0,P.useEffect)(()=>{for(let{hash:e,writeId:t,time:n}of Object.values(d))e&&!c.find(t=>t.hash===e)&&m({hash:e,writeId:t,timestamp:BigInt(n)/1000n})},[m,d,c,t]),(0,eh.C)({chainId:e,async onBlock(t){var a;for(let s of null!==(a=t.transactions)&&void 0!==a?a:(await (0,eb.Q)(n,{chainId:e,blockHash:t.hash})).transactions)c.find(e=>e.hash===s)||m({hash:s,timestamp:t.timestamp})}}),null}function ek(e){let{params:{chainName:t},children:n}=e;return(0,r.oK)(t)?(0,a.jsxs)(er,{children:[(0,a.jsx)(L,{}),n,(0,a.jsx)(eN,{})]}):(0,s.notFound)()}},64131:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});let a=(0,n(13197).M)()(e=>({transactions:[],setTransaction:t=>e(e=>({transactions:[...e.transactions,t]})),updateTransaction:(t,n)=>e(e=>({transactions:e.transactions.map(e=>e.hash===t?{...e,...n}:e)}))}))},50354:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var a=n(67590),s=n(92593);function r(){let{chainName:e}=(0,a.useParams)();return(0,s.Yx)(e),s.df[e]}},91892:function(e,t,n){"use strict";n.d(t,{G:function(){return s}});var a=n(67590);function s(){return"true"===(0,a.useSearchParams)().get("readonly")}},93155:function(e,t,n){"use strict";n.d(t,{g:function(){return c}});var a=n(67590),s=n(90179),r=n(91892);function c(){let e=(0,r.G)(),{chainName:t,worldAddress:n}=(0,a.useParams)();return a=>{let r="".concat((0,s.m)(t,n),"/").concat(a);return e?"".concat(r,"?").concat(new URLSearchParams({readonly:"true"})):r}}},64920:function(e,t,n){"use strict";n.d(t,{b:function(){return c}});var a=n(67590),s=n(43482),r=n(92593);function c(){let{chainName:e,worldAddress:t}=(0,a.useParams)();(0,r.Yx)(e);let{id:n}=r.df[e];return(0,s.a)({queryKey:["worldAbi",e,t],queryFn:async()=>{let e=await fetch("/api/world-abi?".concat(new URLSearchParams({chainId:n.toString(),worldAddress:t})));return await e.json()},select:e=>({abi:e.abi||[],isWorldDeployed:e.isWorldDeployed}),refetchInterval:5e3})}},27406:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var a=n(65140),s=n(60323),r=n(71852),c=n(6466),i=n(9994),l=n(64683);function o(e){let{className:t,variant:n="outline",value:o,...d}=e,[u,f]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{u&&setTimeout(()=>{f(!1)},2e3)},[u]),(0,a.jsxs)(l.z,{size:"icon",variant:n,className:(0,i.cn)("relative z-10 h-6 w-6 border-white/15 bg-transparent text-zinc-50 hover:bg-secondary hover:text-zinc-50 [&_svg]:h-3 [&_svg]:w-3",t),onClick:()=>{navigator.clipboard.writeText(o),f(!0)},...d,children:[(0,a.jsx)("span",{className:"sr-only",children:"Copy"}),u?(0,a.jsx)(s.Z,{}):(0,a.jsx)(r.Z,{})]})}},67462:function(e,t,n){"use strict";n.d(t,{Separator:function(){return i}});var a=n(65140),s=n(6466),r=n(45561),c=n(9994);let i=s.forwardRef((e,t)=>{let{className:n,orientation:s="horizontal",decorative:i=!0,...l}=e;return(0,a.jsx)(r.f,{ref:t,decorative:i,orientation:s,className:(0,c.cn)("shrink-0 bg-border","horizontal"===s?"h-[1px] w-full":"h-full w-[1px]",n),...l})});i.displayName=r.f.displayName},36120:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});var a=n(65140),s=n(9994);function r(e){let{className:t,...n}=e;return(0,a.jsx)("div",{className:(0,s.cn)("animate-pulse rounded-md bg-muted",t),...n})}},53880:function(e,t,n){"use strict";n.d(t,{a:function(){return s}});var a=n(65140);function s(e){let{hex:t}=e;return t.length<=10?(0,a.jsx)("span",{children:t}):(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{className:"after:select-none after:content-['…']",children:t.slice(0,6)}),(0,a.jsx)("span",{className:"tracking-[-1ch] text-transparent",children:t.slice(6,-4)}),t.slice(-4)]})}},18499:function(e,t,n){"use strict";n.d(t,{M:function(){return a}});let a="explorer/observer"},28802:function(e,t,n){"use strict";n.d(t,{f:function(){return s}});var a=n(80824);let s=n.n(a)()("mud:explorer").extend("observer")},47568:function(e,t,n){"use strict";n.d(t,{store:function(){return i}});var a=n(13197),s=n(9994),r=n(18499),c=n(28802);let i=(0,a.M)(()=>({writes:{}}));(0,c.f)("listening for relayed messages",r.M);let l=[];new BroadcastChannel(r.M).addEventListener("message",e=>{"ping"!==e.data.type&&l.push(e)}),setInterval(function(){0!==l.length&&i.setState(e=>{let t=e;for(let{data:e}of l){if("ping"===e.type)continue;let n="write"===e.type?{...e,events:[]}:t.writes[e.writeId];if(!n)continue;let a=n.hash;"waitForTransactionReceipt"===e.type?a=e.hash:"waitForUserOperationReceipt:result"===e.type&&(0,s.r8)(e)&&(a=e.value.receipt.transactionHash),t={...t,writes:{...t.writes,[e.writeId]:{...n,type:e.type,hash:a,userOpHash:"waitForUserOperationReceipt"===e.type?e.userOpHash:n.userOpHash,events:[...n.events,e]}}}}return l.length=0,t})},100)}},function(e){e.O(0,[2825,3696,587,1720,824,8425,4536,8702,3498,3802,806,3194,492,3278,4626,9782,780,3341,3164,1744],function(){return e(e.s=90489)}),_N_E=e.O()}]);
@@ -0,0 +1,26 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5576],{24776:function(e,t,r){Promise.resolve().then(r.bind(r,12290))},31982:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(6466);/**
2
+ * @license lucide-react v0.408.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&r.indexOf(e)===t).join(" ")};/**
7
+ * @license lucide-react v0.408.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
12
+ * @license lucide-react v0.408.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */let u=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:o=24,strokeWidth:u=2,absoluteStrokeWidth:s,className:c="",children:l,iconNode:d,...f}=e;return(0,n.createElement)("svg",{ref:t,...i,width:o,height:o,stroke:r,strokeWidth:s?24*Number(u)/Number(o):u,className:a("lucide",c),...f},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(l)?l:[l]])}),s=(e,t)=>{let r=(0,n.forwardRef)((r,i)=>{let{className:s,...c}=r;return(0,n.createElement)(u,{ref:i,iconNode:t,className:a("lucide-".concat(o(e)),s),...c})});return r.displayName="".concat(e),r}},11375:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});/**
17
+ * @license lucide-react v0.408.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */let n=(0,r(31982).Z)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},67590:function(e,t,r){"use strict";var n=r(94182);r.o(n,"notFound")&&r.d(t,{notFound:function(){return n.notFound}}),r.o(n,"redirect")&&r.d(t,{redirect:function(){return n.redirect}}),r.o(n,"useParams")&&r.d(t,{useParams:function(){return n.useParams}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},12290:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return c}});var n=r(65140);/**
22
+ * @license lucide-react v0.408.0 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */let o=(0,r(31982).Z)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);var a=r(11375),i=r(6945),u=r(64683),s=r(93155);function c(e){let{reset:t,error:r}=e,c=(0,s.g)();return(0,n.jsxs)("main",{className:"px-6 py-24 text-center",children:[(0,n.jsx)("p",{className:"text-3xl font-semibold text-orange-600",children:"500"}),(0,n.jsx)("h1",{className:"mt-4 text-3xl font-bold tracking-tight text-white sm:text-5xl",children:"Something went wrong :("}),r.message&&(0,n.jsx)("pre",{className:"mt-8 inline-block w-[580px] whitespace-normal rounded-md border border-white/15 bg-secondary p-4 text-left font-mono text-sm leading-6 text-white",children:r.message}),(0,n.jsxs)("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:[(0,n.jsx)(u.z,{asChild:!0,children:(0,n.jsx)(i.default,{href:c("explore"),children:"Go back to explorer"})}),(0,n.jsxs)(u.z,{variant:"secondary",onClick:t,children:["Try again ",(0,n.jsx)(o,{className:"ml-2 h-4 w-4"})]}),(0,n.jsx)(u.z,{variant:"secondary",asChild:!0,children:(0,n.jsxs)("a",{href:"https://lattice.xyz/discord",target:"_blank",rel:"noopener noreferrer",children:["Contact on Discord ",(0,n.jsx)(a.Z,{className:"-mt-0.5 ml-2 h-4 w-4"})]})})]})]})}},91892:function(e,t,r){"use strict";r.d(t,{G:function(){return o}});var n=r(67590);function o(){return"true"===(0,n.useSearchParams)().get("readonly")}},93155:function(e,t,r){"use strict";r.d(t,{g:function(){return i}});var n=r(67590),o=r(90179),a=r(91892);function i(){let e=(0,a.G)(),{chainName:t,worldAddress:r}=(0,n.useParams)();return n=>{let a="".concat((0,o.m)(t,r),"/").concat(n);return e?"".concat(a,"?").concat(new URLSearchParams({readonly:"true"})):a}}},90179:function(e,t,r){"use strict";function n(e,t){return"/".concat(e,"/worlds/").concat(t)}r.d(t,{m:function(){return n}})},64683:function(e,t,r){"use strict";r.d(t,{z:function(){return c}});var n=r(65140),o=r(25183),a=r(6466),i=r(55469),u=r(9994);let s=(0,o.j)((0,u.cn)("inline-flex items-center justify-center rounded-md","whitespace-nowrap text-sm font-medium","ring-offset-background transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50"),{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=a.forwardRef((e,t)=>{let{className:r,variant:o,size:a,type:c="button",asChild:l=!1,...d}=e,f=l?i.g7:"button";return(0,n.jsx)(f,{className:(0,u.cn)(s({variant:o,size:a,className:r})),ref:t,type:c,...d})});c.displayName="Button"},9994:function(e,t,r){"use strict";r.d(t,{az:function(){return u},cn:function(){return i},kC:function(){return c},r8:function(){return s}});var n=r(73500),o=r(24585),a=r(89241);function i(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.m)((0,o.W)(t))}function u(e){let t=(0,n.d)(e),r=Math.floor(parseFloat(t)).toString().length;return parseFloat(t).toLocaleString("en-US",{maximumFractionDigits:Math.max(0,6-r)})}function s(e){return"fulfilled"===e.status}function c(e){var t;return(null===(t=e[0])||void 0===t?void 0:t.toUpperCase())+e.slice(1)}},25183:function(e,t,r){"use strict";r.d(t,{j:function(){return a}});let n=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,o=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n);else for(r in t)t[r]&&(o&&(o+=" "),o+=r)}return o}(e))&&(n&&(n+=" "),n+=t);return n},a=(e,t)=>r=>{var a;if((null==t?void 0:t.variants)==null)return o(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:i,defaultVariants:u}=t,s=Object.keys(i).map(e=>{let t=null==r?void 0:r[e],o=null==u?void 0:u[e];if(null===t)return null;let a=n(t)||n(o);return i[e][a]}),c=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return o(e,s,null==t?void 0:null===(a=t.compoundVariants)||void 0===a?void 0:a.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...u,...c}[t]):({...u,...c})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}}},function(e){e.O(0,[587,3802,3341,3164,1744],function(){return e(e.s=24776)}),_N_E=e.O()}]);
@@ -0,0 +1,21 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2675],{17813:function(e,t,r){Promise.resolve().then(r.bind(r,73481))},31982:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(6466);/**
2
+ * @license lucide-react v0.408.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),u=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&r.indexOf(e)===t).join(" ")};/**
7
+ * @license lucide-react v0.408.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
12
+ * @license lucide-react v0.408.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */let i=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:c="",children:l,iconNode:d,...f}=e;return(0,n.createElement)("svg",{ref:t,...a,width:o,height:o,stroke:r,strokeWidth:s?24*Number(i)/Number(o):i,className:u("lucide",c),...f},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(l)?l:[l]])}),s=(e,t)=>{let r=(0,n.forwardRef)((r,a)=>{let{className:s,...c}=r;return(0,n.createElement)(i,{ref:a,iconNode:t,className:u("lucide-".concat(o(e)),s),...c})});return r.displayName="".concat(e),r}},11375:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});/**
17
+ * @license lucide-react v0.408.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */let n=(0,r(31982).Z)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},67590:function(e,t,r){"use strict";var n=r(94182);r.o(n,"notFound")&&r.d(t,{notFound:function(){return n.notFound}}),r.o(n,"redirect")&&r.d(t,{redirect:function(){return n.redirect}}),r.o(n,"useParams")&&r.d(t,{useParams:function(){return n.useParams}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},91892:function(e,t,r){"use strict";r.d(t,{G:function(){return o}});var n=r(67590);function o(){return"true"===(0,n.useSearchParams)().get("readonly")}},93155:function(e,t,r){"use strict";r.d(t,{g:function(){return a}});var n=r(67590),o=r(90179),u=r(91892);function a(){let e=(0,u.G)(),{chainName:t,worldAddress:r}=(0,n.useParams)();return n=>{let u="".concat((0,o.m)(t,r),"/").concat(n);return e?"".concat(u,"?").concat(new URLSearchParams({readonly:"true"})):u}}},73481:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return s}});var n=r(65140),o=r(11375),u=r(6945),a=r(64683),i=r(93155);function s(){let e=(0,i.g)();return(0,n.jsxs)("main",{className:"px-6 py-24 text-center",children:[(0,n.jsx)("p",{className:"text-3xl font-semibold text-orange-600",children:"404"}),(0,n.jsx)("h1",{className:"mt-4 text-3xl font-bold tracking-tight text-white sm:text-5xl",children:"Page not found"}),(0,n.jsx)("p",{className:"mt-6 text-base leading-7 text-white/70",children:"Sorry, we couldn’t find the page you’re looking for."}),(0,n.jsxs)("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:[(0,n.jsx)(a.z,{asChild:!0,children:(0,n.jsx)(u.default,{href:e("explore"),children:"Go back to explorer"})}),(0,n.jsx)(a.z,{variant:"secondary",asChild:!0,children:(0,n.jsxs)("a",{href:"https://lattice.xyz/discord",target:"_blank",rel:"noopener noreferrer",children:["Contact on Discord ",(0,n.jsx)(o.Z,{className:"-mt-0.5 ml-2 h-4 w-4"})]})})]})]})}},90179:function(e,t,r){"use strict";function n(e,t){return"/".concat(e,"/worlds/").concat(t)}r.d(t,{m:function(){return n}})},64683:function(e,t,r){"use strict";r.d(t,{z:function(){return c}});var n=r(65140),o=r(25183),u=r(6466),a=r(55469),i=r(9994);let s=(0,o.j)((0,i.cn)("inline-flex items-center justify-center rounded-md","whitespace-nowrap text-sm font-medium","ring-offset-background transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50"),{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=u.forwardRef((e,t)=>{let{className:r,variant:o,size:u,type:c="button",asChild:l=!1,...d}=e,f=l?a.g7:"button";return(0,n.jsx)(f,{className:(0,i.cn)(s({variant:o,size:u,className:r})),ref:t,type:c,...d})});c.displayName="Button"},9994:function(e,t,r){"use strict";r.d(t,{az:function(){return i},cn:function(){return a},kC:function(){return c},r8:function(){return s}});var n=r(73500),o=r(24585),u=r(89241);function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,u.m)((0,o.W)(t))}function i(e){let t=(0,n.d)(e),r=Math.floor(parseFloat(t)).toString().length;return parseFloat(t).toLocaleString("en-US",{maximumFractionDigits:Math.max(0,6-r)})}function s(e){return"fulfilled"===e.status}function c(e){var t;return(null===(t=e[0])||void 0===t?void 0:t.toUpperCase())+e.slice(1)}},25183:function(e,t,r){"use strict";r.d(t,{j:function(){return u}});let n=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,o=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n);else for(r in t)t[r]&&(o&&(o+=" "),o+=r)}return o}(e))&&(n&&(n+=" "),n+=t);return n},u=(e,t)=>r=>{var u;if((null==t?void 0:t.variants)==null)return o(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:i}=t,s=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],o=null==i?void 0:i[e];if(null===t)return null;let u=n(t)||n(o);return a[e][u]}),c=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return o(e,s,null==t?void 0:null===(u=t.compoundVariants)||void 0===u?void 0:u.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...c}[t]):({...i,...c})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}}},function(e){e.O(0,[587,3802,3341,3164,1744],function(){return e(e.s=17813)}),_N_E=e.O()}]);