(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2362],{77724:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2265),a={exports:{}};function o(){}function i(){}i.resetWarningCache=o,a.exports=function(){function e(e,t,n,r,a,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var i=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}();var s=a.exports;let l=e=>!!e&&0!==e.length&&null!=e&&"string"==typeof e,u=({propertyId:e="",widgetId:t="",embedId:n="",basePath:r="tawk.to"})=>{if(n.length){if(!document.getElementById(n)){let e=document.createElement("div");e.id=n,document.body.appendChild(e)}window.Tawk_API.embedded=n}let a=document.createElement("script");a.async=!0,a.src=`https://embed.${r}/${e}/${t}`,a.charset="UTF-8",a.setAttribute("crossorigin","*");let o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(a,o)},c=(0,r.forwardRef)((e,t)=>{(0,r.useEffect)(()=>{n()},[]);let n=()=>{if(!l(e.propertyId)){console.error("[Tawk-messenger-react warn]: You didn't specified 'propertyId' property in the plugin.");return}if(!l(e.widgetId)){console.error("[Tawk-messenger-react warn]: You didn't specified 'widgetId' property in the plugin.");return}window&&document&&a()},a=()=>{window.Tawk_API=window.Tawk_API||{},window.Tawk_LoadStart=new Date,u({propertyId:e.propertyId,widgetId:e.widgetId,embedId:e.embedId,basePath:e.basePath}),e.customStyle&&"object"==typeof e.customStyle&&(window.Tawk_API.customStyle=e.customStyle),o()};(0,r.useImperativeHandle)(t,()=>({maximize:()=>window.Tawk_API.maximize(),minimize:()=>window.Tawk_API.minimize(),toggle:()=>window.Tawk_API.toggle(),popup:()=>window.Tawk_API.popup(),showWidget:()=>window.Tawk_API.showWidget(),hideWidget:()=>window.Tawk_API.hideWidget(),toggleVisibility:()=>window.Tawk_API.toggleVisibility(),endChat:()=>window.Tawk_API.endChat(),getWindowType:()=>window.Tawk_API.getWindowType(),getStatus:()=>window.Tawk_API.getStatus(),isChatMaximized:()=>window.Tawk_API.isChatMaximized(),isChatMinimized:()=>window.Tawk_API.isChatMinimized(),isChatHidden:()=>window.Tawk_API.isChatHidden(),isChatOngoing:()=>window.Tawk_API.isChatOngoing(),isVisitorEngaged:()=>window.Tawk_API.isVisitorEngaged(),onLoaded:()=>window.Tawk_API.onLoaded,onBeforeLoaded:()=>window.Tawk_API.onBeforeLoaded,widgetPosition:()=>window.Tawk_API.widgetPosition(),visitor:e=>{window.Tawk_API.visitor=e},setAttributes:(e,t)=>{window.Tawk_API.setAttributes(e,t)},addEvent:(e,t,n)=>{window.Tawk_API.addEvent(e,t,n)},addTags:(e,t)=>{window.Tawk_API.addTags(e,t)},removeTags:(e,t)=>{window.Tawk_API.removeTags(e,t)}}));let o=()=>{window.addEventListener("tawkLoad",()=>{e.onLoad()}),window.addEventListener("tawkStatusChange",t=>{e.onStatusChange(t.detail)}),window.addEventListener("tawkBeforeLoad",()=>{e.onBeforeLoad()}),window.addEventListener("tawkChatMaximized",()=>{e.onChatMaximized()}),window.addEventListener("tawkChatMinimized",()=>{e.onChatMinimized()}),window.addEventListener("tawkChatHidden",()=>{e.onChatHidden()}),window.addEventListener("tawkChatStarted",()=>{e.onChatStarted()}),window.addEventListener("tawkChatEnded",()=>{e.onChatEnded()}),window.addEventListener("tawkPrechatSubmit",t=>{e.onPrechatSubmit(t.detail)}),window.addEventListener("tawkOfflineSubmit",t=>{e.onOfflineSubmit(t.detail)}),window.addEventListener("tawkChatMessageVisitor",t=>{e.onChatMessageVisitor(t.detail)}),window.addEventListener("tawkChatMessageAgent",t=>{e.onChatMessageAgent(t.detail)}),window.addEventListener("tawkChatMessageSystem",t=>{e.onChatMessageSystem(t.detail)}),window.addEventListener("tawkAgentJoinChat",t=>{e.onAgentJoinChat(t.detail)}),window.addEventListener("tawkAgentLeaveChat",t=>{e.onAgentLeaveChat(t.detail)}),window.addEventListener("tawkChatSatisfaction",t=>{e.onChatSatisfaction(t.detail)}),window.addEventListener("tawkVisitorNameChanged",t=>{e.onVisitorNameChanged(t.detail)}),window.addEventListener("tawkFileUpload",t=>{e.onFileUpload(t.detail)}),window.addEventListener("tawkTagsUpdated",t=>{e.onTagsUpdated(t.detail)}),window.addEventListener("tawkUnreadCountChanged",t=>{e.onUnreadCountChanged(t.detail)})};return null});c.displayName="TawkMessenger",c.defaultProps={customStyle:null,embedId:"",basePath:"tawk.to",onLoad:()=>{},onStatusChange:()=>{},onBeforeLoad:()=>{},onChatMaximized:()=>{},onChatMinimized:()=>{},onChatHidden:()=>{},onChatStarted:()=>{},onChatEnded:()=>{},onPrechatSubmit:()=>{},onOfflineSubmit:()=>{},onChatMessageVisitor:()=>{},onChatMessageAgent:()=>{},onChatMessageSystem:()=>{},onAgentJoinChat:()=>{},onAgentLeaveChat:()=>{},onChatSatisfaction:()=>{},onVisitorNameChanged:()=>{},onFileUpload:()=>{},onTagsUpdated:()=>{},onUnreadCountChanged:()=>{}},c.propTypes={propertyId:s.string.isRequired,widgetId:s.string.isRequired,customStyle:s.object,embedId:s.string,basePath:s.string,onLoad:s.func,onStatusChange:s.func,onBeforeLoad:s.func,onChatMaximized:s.func,onChatMinimized:s.func,onChatHidden:s.func,onChatStarted:s.func,onChatEnded:s.func,onPrechatSubmit:s.func,onOfflineSubmit:s.func,onChatMessageVisitor:s.func,onChatMessageAgent:s.func,onChatMessageSystem:s.func,onAgentJoinChat:s.func,onAgentLeaveChat:s.func,onChatSatisfaction:s.func,onVisitorNameChanged:s.func,onFileUpload:s.func,onTagsUpdated:s.func,onUnreadCountChanged:s.func}},24450:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=!(arguments.length>1)||void 0===arguments[1]||arguments[1],o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=r||"";return a&&(i=r.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(e,t,r){return t>0&&t+e.length!==r.length&&e.search(n)>-1&&":"!==r.charAt(t-2)&&("-"!==r.charAt(t+e.length)||"-"===r.charAt(t-1))&&0>r.charAt(t-1).search(/[^\s-]/)?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)})),o&&(i="string"==typeof(t=e=i)&&-1!==t.indexOf("@")?(console.warn("This arg looks like an email address, redacting."),"REDACTED (Potential Email Address)"):e),i};var n=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i},70770:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GA4=void 0;var r=l(n(21932)),a=l(n(24450)),o=["eventCategory","eventAction","eventLabel","eventValue","hitType"],i=["title","location"],s=["page","hitType"];function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function y(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){var t=function(e,t){if("object"!==c(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==c(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===c(t)?t:String(t)}var b=function(){var e,t;function n(){var e=this;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),y(this,"reset",function(){e.isInitialized=!1,e._testMode=!1,e._currentMeasurementId,e._hasLoadedGA=!1,e._isQueuing=!1,e._queueGtag=[]}),y(this,"_gtag",function(){for(var t=arguments.length,n=Array(t),a=0;a<t;a++)n[a]=arguments[a];e._testMode?e._queueGtag.push(n):e._isQueuing?e._queueGtag.push(n):r.default.apply(void 0,n)}),y(this,"_loadGA",function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"https://www.googletagmanager.com/gtag/js";if("undefined"!=typeof window&&"undefined"!=typeof document&&!e._hasLoadedGA){var a=document.createElement("script");a.async=!0,a.src="".concat(r,"?id=").concat(t),n&&a.setAttribute("nonce",n),document.body.appendChild(a),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},e._hasLoadedGA=!0}}),y(this,"_toGtagOptions",function(e){if(e){var t={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"};return Object.entries(e).reduce(function(e,n){var r=function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return s}}(n,2)||p(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=r[0],o=r[1];return t[a]?e[t[a]]=o:e[a]=o,e},{})}}),y(this,"initialize",function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)throw Error("Require GA_MEASUREMENT_ID");var r="string"==typeof t?[{trackingId:t}]:t;e._currentMeasurementId=r[0].trackingId;var a=n.gaOptions,o=n.gtagOptions,i=n.nonce,s=n.testMode,l=void 0!==s&&s,u=n.gtagUrl;if(e._testMode=l,l||e._loadGA(e._currentMeasurementId,i,u),e.isInitialized||(e._gtag("js",new Date),r.forEach(function(t){var n=h(h(h({},e._toGtagOptions(h(h({},a),t.gaOptions))),o),t.gtagOptions);Object.keys(n).length?e._gtag("config",t.trackingId,n):e._gtag("config",t.trackingId)})),e.isInitialized=!0,!l){var c=d(e._queueGtag);for(e._queueGtag=[],e._isQueuing=!1;c.length;){var f=c.shift();e._gtag.apply(e,d(f)),"get"===f[0]&&(e._isQueuing=!0)}}}),y(this,"set",function(t){if(!t){console.warn("`fieldsObject` is required in .set()");return}if("object"!==c(t)){console.warn("Expected `fieldsObject` arg to be an Object");return}0===Object.keys(t).length&&console.warn("empty `fieldsObject` given to .set()"),e._gaCommand("set",t)}),y(this,"_gaCommandSendEvent",function(t,n,r,a,o){e._gtag("event",n,h(h({event_category:t,event_label:r,value:a},o&&{non_interaction:o.nonInteraction}),e._toGtagOptions(o)))}),y(this,"_gaCommandSendEventParameters",function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if("string"==typeof n[0])e._gaCommandSendEvent.apply(e,d(n.slice(1)));else{var a=n[0],i=a.eventCategory,s=a.eventAction,l=a.eventLabel,c=a.eventValue,f=(a.hitType,u(a,o));e._gaCommandSendEvent(i,s,l,c,f)}}),y(this,"_gaCommandSendTiming",function(t,n,r,a){e._gtag("event","timing_complete",{name:n,value:r,event_category:t,event_label:a})}),y(this,"_gaCommandSendPageview",function(t,n){if(n&&Object.keys(n).length){var r=e._toGtagOptions(n),a=r.title,o=r.location,s=u(r,i);e._gtag("event","page_view",h(h(h(h({},t&&{page_path:t}),a&&{page_title:a}),o&&{page_location:o}),s))}else t?e._gtag("event","page_view",{page_path:t}):e._gtag("event","page_view")}),y(this,"_gaCommandSendPageviewParameters",function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if("string"==typeof n[0])e._gaCommandSendPageview.apply(e,d(n.slice(1)));else{var a=n[0],o=a.page,i=(a.hitType,u(a,s));e._gaCommandSendPageview(o,i)}}),y(this,"_gaCommandSend",function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var a="string"==typeof n[0]?n[0]:n[0].hitType;switch(a){case"event":e._gaCommandSendEventParameters.apply(e,n);break;case"pageview":e._gaCommandSendPageviewParameters.apply(e,n);break;case"timing":e._gaCommandSendTiming.apply(e,d(n.slice(1)));break;case"screenview":case"transaction":case"item":case"social":case"exception":console.warn("Unsupported send command: ".concat(a));break;default:console.warn("Send command doesn't exist: ".concat(a))}}),y(this,"_gaCommandSet",function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]=y({},n[0],n[1])),e._gtag("set",e._toGtagOptions(n[0]))}),y(this,"_gaCommand",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];switch(t){case"send":e._gaCommandSend.apply(e,r);break;case"set":e._gaCommandSet.apply(e,r);break;default:console.warn("Command doesn't exist: ".concat(t))}}),y(this,"ga",function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if("string"==typeof n[0])e._gaCommand.apply(e,n);else{var a=n[0];e._gtag("get",e._currentMeasurementId,"client_id",function(t){e._isQueuing=!1;var n=e._queueGtag;for(a({get:function(n){return"clientId"===n?t:"trackingId"===n?e._currentMeasurementId:"apiVersion"===n?"1":void 0}});n.length;){var r=n.shift();e._gtag.apply(e,d(r))}}),e._isQueuing=!0}return e.ga}),y(this,"event",function(t,n){if("string"==typeof t)e._gtag("event",t,e._toGtagOptions(n));else{var r=t.action,o=t.category,i=t.label,s=t.value,l=t.nonInteraction,u=t.transport;if(!o||!r){console.warn("args.category AND args.action are required in event()");return}var c={hitType:"event",eventCategory:(0,a.default)(o),eventAction:(0,a.default)(r)};i&&(c.eventLabel=(0,a.default)(i)),void 0!==s&&("number"!=typeof s?console.warn("Expected `args.value` arg to be a Number."):c.eventValue=s),void 0!==l&&("boolean"!=typeof l?console.warn("`args.nonInteraction` must be a boolean."):c.nonInteraction=l),void 0!==u&&("string"!=typeof u?console.warn("`args.transport` must be a string."):(-1===["beacon","xhr","image"].indexOf(u)&&console.warn("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),c.transport=u)),e._gaCommand("send",c)}}),y(this,"send",function(t){e._gaCommand("send",t)}),this.reset()}return e=[{key:"gtag",value:function(){this._gtag.apply(this,arguments)}}],v(n.prototype,e),t&&v(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();t.GA4=b;var w=new b;t.default=w},21932:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];"undefined"!=typeof window&&(void 0===window.gtag&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(e=window).gtag.apply(e,n))}},37521:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.ZP=void 0;var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(a,s,l):a[s]=e[s]}return a.default=e,n&&n.set(e,a),a}(n(70770));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}a.GA4;var i=a.default;t.ZP=i},47225:function(e,t,n){"use strict";n.d(t,{Z:function(){return $}});var r,a,o,i,s,l,u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function c(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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)0>t.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}"function"==typeof SuppressedError&&SuppressedError;var d=n(2265),f="right-scroll-bar-position",h="width-before-scroll-bar";function p(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var g="undefined"!=typeof window?d.useLayoutEffect:d.useEffect,v=new WeakMap,y=(void 0===a&&(a={}),(void 0===o&&(o=function(e){return e}),i=[],s=!1,l={read:function(){if(s)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:null},useMedium:function(e){var t=o(e,s);return i.push(t),function(){i=i.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(s=!0;i.length;){var t=i;i=[],t.forEach(e)}i={push:function(t){return e(t)},filter:function(){return i}}},assignMedium:function(e){s=!0;var t=[];if(i.length){var n=i;i=[],n.forEach(e),t=i}var r=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(r)};a(),i={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),i}}}}).options=u({async:!0,ssr:!1},a),l),m=function(){},b=d.forwardRef(function(e,t){var n,r,a,o,i=d.useRef(null),s=d.useState({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:m}),l=s[0],f=s[1],h=e.forwardProps,b=e.children,w=e.className,x=e.removeScrollBar,C=e.enabled,_=e.shards,S=e.sideCar,k=e.noIsolation,P=e.inert,O=e.allowPinchZoom,j=e.as,E=e.gapMode,A=c(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=(n=[i,t],r=function(e){return n.forEach(function(t){return p(t,e)})},(a=(0,d.useState)(function(){return{value:null,callback:r,facade:{get current(){return a.value},set current(value){var e=a.value;e!==value&&(a.value=value,a.callback(value,e))}}}})[0]).callback=r,o=a.facade,g(function(){var e=v.get(o);if(e){var t=new Set(e),r=new Set(n),a=o.current;t.forEach(function(e){r.has(e)||p(e,null)}),r.forEach(function(e){t.has(e)||p(e,a)})}v.set(o,n)},[n]),o),I=u(u({},A),l);return d.createElement(d.Fragment,null,C&&d.createElement(S,{sideCar:y,removeScrollBar:x,shards:_,noIsolation:k,inert:P,setCallbacks:f,allowPinchZoom:!!O,lockRef:i,gapMode:E}),h?d.cloneElement(d.Children.only(b),u(u({},I),{ref:M})):d.createElement(void 0===j?"div":j,u({},I,{className:w,ref:M}),b))});b.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},b.classNames={fullWidth:h,zeroRight:f};var w=function(e){var t=e.sideCar,n=c(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return d.createElement(r,u({},n))};w.isSideCarExport=!0;var x=function(){var e=0,t=null;return{add:function(a){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,i;(o=t).styleSheet?o.styleSheet.cssText=a:o.appendChild(document.createTextNode(a)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},C=function(){var e=x();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},_=function(){var e=C();return function(t){return e(t.styles,t.dynamic),null}},S={left:0,top:0,right:0,gap:0},k=function(e){return parseInt(e||"",10)||0},P=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[k(n),k(r),k(a)]},O=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return S;var t=P(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])}},j=_(),E="data-scroll-locked",A=function(e,t,n,r){var a=e.left,o=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body[").concat(E,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(a,"px;\n    padding-top: ").concat(o,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(f," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(h," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(f," .").concat(f," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(h," .").concat(h," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(E,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},M=function(){var e=parseInt(document.body.getAttribute(E)||"0",10);return isFinite(e)?e:0},I=function(){d.useEffect(function(){return document.body.setAttribute(E,(M()+1).toString()),function(){var e=M()-1;e<=0?document.body.removeAttribute(E):document.body.setAttribute(E,e.toString())}},[])},N=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=void 0===r?"margin":r;I();var o=d.useMemo(function(){return O(a)},[a]);return d.createElement(j,{styles:A(o,!t,a,n?"":"!important")})},T=!1;if("undefined"!=typeof window)try{var D=Object.defineProperty({},"passive",{get:function(){return T=!0,!0}});window.addEventListener("test",D,D),window.removeEventListener("test",D,D)}catch(e){T=!1}var R=!!T&&{passive:!1},q=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},L=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),F(e,r)){var a=B(e,r);if(a[1]>a[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},F=function(e,t){return"v"===e?q(t,"overflowY"):q(t,"overflowX")},B=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},K=function(e,t,n,r,a){var o,i=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=i*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var p=B(e,l),g=p[0],v=p[1]-p[2]-i*g;(g||v)&&F(e,l)&&(f+=v,h+=g),l=l instanceof ShadowRoot?l.host:l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(a&&1>Math.abs(f)||!a&&s>f)?c=!0:!d&&(a&&1>Math.abs(h)||!a&&-s>h)&&(c=!0),c},U=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},G=function(e){return[e.deltaX,e.deltaY]},z=function(e){return e&&"current"in e?e.current:e},V=0,W=[],Q=(y.useMedium(function(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),a=d.useState(V++)[0],o=d.useState(_)[0],i=d.useRef(e);d.useEffect(function(){i.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(z),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var s=d.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!i.current.allowPinchZoom;var a,o=U(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=L(d,c);if(!f)return!0;if(f?a=d:(a="v"===d?"h":"v",f=L(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=a),!a)return!0;var h=r.current||a;return K(h,t,e,"h"===h?l:u,!0)},[]),l=d.useCallback(function(e){if(W.length&&W[W.length-1]===o){var n="deltaY"in e?G(e):U(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 a=(i.current.shards||[]).map(z).filter(Boolean).filter(function(t){return t.contains(e.target)});(a.length>0?s(e,a[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=d.useCallback(function(e,n,r,a){var o={name:e,delta:n,target:r,should:a,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),c=d.useCallback(function(e){n.current=U(e),r.current=void 0},[]),f=d.useCallback(function(t){u(t.type,G(t),t.target,s(t,e.lockRef.current))},[]),h=d.useCallback(function(t){u(t.type,U(t),t.target,s(t,e.lockRef.current))},[]);d.useEffect(function(){return W.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,R),document.addEventListener("touchmove",l,R),document.addEventListener("touchstart",c,R),function(){W=W.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,R),document.removeEventListener("touchmove",l,R),document.removeEventListener("touchstart",c,R)}},[]);var p=e.removeScrollBar,g=e.inert;return d.createElement(d.Fragment,null,g?d.createElement(o,{styles:"\n  .block-interactivity-".concat(a," {pointer-events: none;}\n  .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,p?d.createElement(N,{gapMode:e.gapMode}):null)}),w),H=d.forwardRef(function(e,t){return d.createElement(b,u({},e,{ref:t,sideCar:Q}))});H.classNames=b.classNames;var $=H},20412:function(e){e.exports={style:{fontFamily:"'__Saira_Stencil_One_0977be', '__Saira_Stencil_One_Fallback_0977be'",fontWeight:400,fontStyle:"normal"},className:"__className_0977be"}},86087:function(e){e.exports={style:{fontFamily:"'__Inter_d65c78', '__Inter_Fallback_d65c78'",fontStyle:"normal"},className:"__className_d65c78"}},25089:function(e,t,n){"use strict";n.d(t,{f:function(){return a}});var r=n(57437),a=()=>(0,r.jsxs)("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[(0,r.jsx)("path",{d:"M12 2C9.38 2 7.25 4.13 7.25 6.75C7.25 9.32 9.26 11.4 11.88 11.49C11.96 11.48 12.04 11.48 12.1 11.49C12.12 11.49 12.13 11.49 12.15 11.49C12.16 11.49 12.16 11.49 12.17 11.49C14.73 11.4 16.74 9.32 16.75 6.75C16.75 4.13 14.62 2 12 2Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M17.0809 14.1489C14.2909 12.2889 9.74094 12.2889 6.93094 14.1489C5.66094 14.9989 4.96094 16.1489 4.96094 17.3789C4.96094 18.6089 5.66094 19.7489 6.92094 20.5889C8.32094 21.5289 10.1609 21.9989 12.0009 21.9989C13.8409 21.9989 15.6809 21.5289 17.0809 20.5889C18.3409 19.7389 19.0409 18.5989 19.0409 17.3589C19.0309 16.1289 18.3409 14.9889 17.0809 14.1489Z",fill:"currentColor"})]})},46042:function(e,t,n){"use strict";n.d(t,{h:function(){return S}});var r=n(25089),[a,o]=(0,n(82901).k)({name:"AvatarGroupContext",strict:!1}),i=n(59076),s=n(50490),l=n(41244),u=(0,s.tv)({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",...l.Dh],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...l.z6,"flex","items-center","justify-center"],name:[...l.z6,"font-normal","text-center","text-inherit"],icon:[...l.z6,"flex","items-center","justify-center","text-inherit","w-full","h-full"]},variants:{size:{sm:{base:"w-8 h-8 text-tiny"},md:{base:"w-10 h-10 text-tiny"},lg:{base:"w-14 h-14 text-small"}},color:{default:{base:i.J.solid.default},primary:{base:i.J.solid.primary},secondary:{base:i.J.solid.secondary},success:{base:i.J.solid.success},warning:{base:i.J.solid.warning},danger:{base:i.J.solid.danger}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isBordered:{true:{base:"ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark"}},isDisabled:{true:{base:"opacity-disabled"}},isInGroup:{true:{base:["-ms-2 data-[hover=true]:-translate-x-3 rtl:data-[hover=true]:translate-x-3 transition-transform","data-[focus-visible=true]:-translate-x-3 rtl:data-[focus-visible=true]:translate-x-3"]}},isInGridGroup:{true:{base:"m-0 data-[hover=true]:translate-x-0"}},disableAnimation:{true:{base:"transition-none",img:"transition-none"},false:{}}},defaultVariants:{size:"md",color:"default",radius:"full"},compoundVariants:[{color:"default",isBordered:!0,class:{base:"ring-default"}},{color:"primary",isBordered:!0,class:{base:"ring-primary"}},{color:"secondary",isBordered:!0,class:{base:"ring-secondary"}},{color:"success",isBordered:!0,class:{base:"ring-success"}},{color:"warning",isBordered:!0,class:{base:"ring-warning"}},{color:"danger",isBordered:!0,class:{base:"ring-danger"}}]});(0,s.tv)({slots:{base:"flex items-center justify-center h-auto w-max",count:"hover:-translate-x-0"},variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}});var c=n(42255),d=n(19488),f=n(72874),h=n(58263),p=n(89083),g=n(5142),v=n(34808),y=n(25615),m=n(2265),b=n(3248),w=n(53700),x=n(84449),C=n(57437),_=(0,x.Gp)((e,t)=>{let{Component:n,ImgComponent:a,src:i,icon:s=(0,C.jsx)(r.f,{}),alt:l,classNames:x,slots:_,name:S,showFallback:k,fallback:P,getInitials:O,getAvatarProps:j,getImageProps:E}=function(){var e,t,n,r,a,i,s;let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},x=(0,c.w)(),C=o(),_=!!C,{as:S,ref:k,src:P,name:O,icon:j,classNames:E,fallback:A,alt:M=O||"avatar",imgRef:I,color:N=null!=(e=null==C?void 0:C.color)?e:"default",radius:T=null!=(t=null==C?void 0:C.radius)?t:"full",size:D=null!=(n=null==C?void 0:C.size)?n:"md",isBordered:R=null!=(r=null==C?void 0:C.isBordered)&&r,isDisabled:q=null!=(a=null==C?void 0:C.isDisabled)&&a,isFocusable:L=!1,getInitials:F=p.e,ignoreFallback:B=!1,showFallback:K=!1,ImgComponent:U="img",imgProps:G,className:z,onError:V,...W}=l,Q=S||"span",H=(0,f.gy)(k),$=(0,f.gy)(I),{isFocusVisible:Z,isFocused:X,focusProps:Y}=(0,y.F)(),{isHovered:J,hoverProps:ee}=(0,w.X)({isDisabled:q}),et=null!=(s=null!=(i=l.disableAnimation)?i:null==x?void 0:x.disableAnimation)&&s,en="loaded"===function(e={}){let{loading:t,src:n,srcSet:r,onLoad:a,onError:o,crossOrigin:i,sizes:s,ignoreFallback:l}=e,[u,c]=(0,m.useState)("pending");(0,m.useEffect)(()=>{c(n?"loading":"pending")},[n]);let d=(0,m.useRef)(),f=(0,m.useCallback)(()=>{if(!n)return;h();let e=new Image;e.src=n,i&&(e.crossOrigin=i),r&&(e.srcset=r),s&&(e.sizes=s),t&&(e.loading=t),e.onload=e=>{h(),c("loaded"),null==a||a(e)},e.onerror=e=>{h(),c("failed"),null==o||o(e)},d.current=e},[n,i,r,s,a,o,t]),h=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return(0,b.G)(()=>{if(!l)return"loading"===u&&f(),()=>{h()}},[u,f,l]),l?"loaded":u}({src:P,onError:V,ignoreFallback:B}),er="string"==typeof U,ea=(!P||!en)&&K,eo=(0,m.useMemo)(()=>{var e;return u({color:N,radius:T,size:D,isBordered:R,isDisabled:q,isInGroup:_,disableAnimation:et,isInGridGroup:null!=(e=null==C?void 0:C.isGrid)&&e})},[N,T,D,R,q,et,_,null==C?void 0:C.isGrid]),ei=(0,g.W)(null==E?void 0:E.base,z),es=(0,m.useMemo)(()=>L||"button"===S,[L,S]),el=(0,m.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ref:H,tabIndex:es?0:-1,"data-hover":(0,v.PB)(J),"data-focus":(0,v.PB)(X),"data-focus-visible":(0,v.PB)(Z),className:eo.base({class:(0,g.W)(ei,null==e?void 0:e.className)}),...(0,d.d)(W,ee,es?Y:{})}},[es,eo,ei,Y,W]),eu=(0,m.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ref:$,src:P,disableAnimation:et,"data-loaded":(0,v.PB)(en),className:eo.img({class:null==E?void 0:E.img}),...(0,d.d)(G,e,(0,h.z)({disableAnimation:et},{enabled:er}))}},[eo,en,G,et,P,$,er]);return{Component:Q,ImgComponent:U,src:P,alt:M,icon:j,name:O,imgRef:$,slots:eo,classNames:E,fallback:A,isImgLoaded:en,showFallback:ea,ignoreFallback:B,getInitials:F,getAvatarProps:el,getImageProps:eu}}({...e,ref:t}),A=(0,m.useMemo)(()=>!k&&i?null:P?(0,C.jsx)("div",{"aria-label":l,className:_.fallback({class:null==x?void 0:x.fallback}),role:"img",children:P}):S?(0,C.jsx)("span",{"aria-label":l,className:_.name({class:null==x?void 0:x.name}),role:"img",children:O(S)}):(0,C.jsx)("span",{"aria-label":l,className:_.icon({class:null==x?void 0:x.icon}),role:"img",children:s}),[k,i,P,S,x]);return(0,C.jsxs)(n,{...j(),children:[i&&(0,C.jsx)(a,{...E(),alt:l}),A]})});_.displayName="NextUI.Avatar";var S=_},88659:function(e,t,n){"use strict";n.d(t,{F:function(){return _}});var r=n(81081),a=n(42255),o=n(90454),i=n(45233),s=n(50490),l=n(41244),u=(0,s.tv)({base:["w-full","p-1","min-w-[200px]"]});(0,s.tv)({slots:{base:["flex","group","gap-2","items-center","justify-between","relative","px-2","py-1.5","w-full","h-full","box-border","rounded-small","outline-none","cursor-pointer","tap-highlight-transparent","data-[pressed=true]:opacity-70",...l.Dh,"data-[focus-visible=true]:dark:ring-offset-background-content1"],wrapper:"w-full flex flex-col items-start justify-center",title:"flex-1 text-small font-normal truncate",description:["w-full","text-tiny","text-foreground-500","group-hover:text-current"],selectedIcon:["text-inherit","w-3","h-3","flex-shrink-0"],shortcut:["px-1","py-0.5","rounded","font-sans","text-foreground-500","text-tiny","border-small","border-default-300","group-hover:border-current"]},variants:{variant:{solid:{base:""},bordered:{base:"border-medium border-transparent bg-transparent"},light:{base:"bg-transparent"},faded:{base:"border-small border-transparent hover:border-default data-[hover=true]:bg-default-100"},flat:{base:""},shadow:{base:"data-[hover=true]:shadow-lg"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{},false:{}}},defaultVariants:{variant:"solid",color:"default"},compoundVariants:[{variant:"solid",color:"default",class:{base:"data-[hover=true]:bg-default data-[hover=true]:text-default-foreground"}},{variant:"solid",color:"primary",class:{base:"data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground"}},{variant:"solid",color:"secondary",class:{base:"data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground"}},{variant:"solid",color:"success",class:{base:"data-[hover=true]:bg-success data-[hover=true]:text-success-foreground"}},{variant:"solid",color:"warning",class:{base:"data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground"}},{variant:"solid",color:"danger",class:{base:"data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground"}},{variant:"shadow",color:"default",class:{base:"data-[hover=true]:shadow-default/50 data-[hover=true]:bg-default data-[hover=true]:text-default-foreground"}},{variant:"shadow",color:"primary",class:{base:"data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground"}},{variant:"shadow",color:"secondary",class:{base:"data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground"}},{variant:"shadow",color:"success",class:{base:"data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-foreground"}},{variant:"shadow",color:"warning",class:{base:"data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground"}},{variant:"shadow",color:"danger",class:{base:"data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground"}},{variant:"bordered",color:"default",class:{base:"data-[hover=true]:border-default"}},{variant:"bordered",color:"primary",class:{base:"data-[hover=true]:border-primary data-[hover=true]:text-primary"}},{variant:"bordered",color:"secondary",class:{base:"data-[hover=true]:border-secondary data-[hover=true]:text-secondary"}},{variant:"bordered",color:"success",class:{base:"data-[hover=true]:border-success data-[hover=true]:text-success"}},{variant:"bordered",color:"warning",class:{base:"data-[hover=true]:border-warning data-[hover=true]:text-warning"}},{variant:"bordered",color:"danger",class:{base:"data-[hover=true]:border-danger data-[hover=true]:text-danger"}},{variant:"flat",color:"default",class:{base:"data-[hover=true]:bg-default/40 data-[hover=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{base:"data-[hover=true]:bg-primary/20 data-[hover=true]:text-primary"}},{variant:"flat",color:"secondary",class:{base:"data-[hover=true]:bg-secondary/20 data-[hover=true]:text-secondary"}},{variant:"flat",color:"success",class:{base:"data-[hover=true]:bg-success/20 data-[hover=true]:text-success "}},{variant:"flat",color:"warning",class:{base:"data-[hover=true]:bg-warning/20 data-[hover=true]:text-warning"}},{variant:"flat",color:"danger",class:{base:"data-[hover=true]:bg-danger/20 data-[hover=true]:text-danger"}},{variant:"faded",color:"default",class:{base:"data-[hover=true]:text-default-foreground"}},{variant:"faded",color:"primary",class:{base:"data-[hover=true]:text-primary"}},{variant:"faded",color:"secondary",class:{base:"data-[hover=true]:text-secondary"}},{variant:"faded",color:"success",class:{base:"data-[hover=true]:text-success"}},{variant:"faded",color:"warning",class:{base:"data-[hover=true]:text-warning"}},{variant:"faded",color:"danger",class:{base:"data-[hover=true]:text-danger"}},{variant:"light",color:"default",class:{base:"data-[hover=true]:text-default-500"}},{variant:"light",color:"primary",class:{base:"data-[hover=true]:text-primary"}},{variant:"light",color:"secondary",class:{base:"data-[hover=true]:text-secondary"}},{variant:"light",color:"success",class:{base:"data-[hover=true]:text-success"}},{variant:"light",color:"warning",class:{base:"data-[hover=true]:text-warning"}},{variant:"light",color:"danger",class:{base:"data-[hover=true]:text-danger"}}]}),(0,s.tv)({slots:{base:"relative mb-2",heading:"pl-1 text-tiny text-foreground-500",group:"data-[has-title=true]:pt-1",divider:"mt-2"}}),(0,s.tv)({base:"w-full flex flex-col gap-0.5 p-1"});var c=n(5142),d=n(7878),f=n(43137),h=n(2265),p=n(19488),g=n(91633),v=n(55010),y=n(84449),m=n(78208),b=n(40744),w=n(57437),x=(0,y.Gp)((e,t)=>{let{children:n,...r}=e,a=(0,v.S)({...r,ref:t}),[o,i]=h.Children.toArray(n),s=(0,w.jsx)(m.aV,{portalContainer:a.portalContainer,children:i});return(0,w.jsxs)(g.H,{value:a,children:[o,a.disableAnimation&&a.isOpen?s:(0,w.jsx)(b.M,{children:a.isOpen?s:null})]})});x.displayName="NextUI.Popover";var C=e=>{let{children:t,...n}=e,s=function(e){var t;let n=(0,a.w)(),{as:r,triggerRef:s,isOpen:l,defaultOpen:g,onOpenChange:v,isDisabled:y,type:m="menu",trigger:b="press",placement:w="bottom",closeOnSelect:x=!0,shouldBlockScroll:C=!0,classNames:_,disableAnimation:S=null!=(t=null==n?void 0:n.disableAnimation)&&t,onClose:k,className:P,...O}=e,j=(0,h.useRef)(null),E=s||j,A=(0,h.useRef)(null),M=(0,h.useRef)(null),I=(0,o.W)({trigger:b,isOpen:l,defaultOpen:g,onOpenChange:e=>{null==v||v(e),e||null==k||k()}}),{menuTriggerProps:N,menuProps:T}=(0,i.u)({type:m,trigger:b,isDisabled:y},I,E),D=(0,h.useMemo)(()=>u({className:P}),[P]),R=e=>{(void 0===e||e)&&x&&I.close()};return{Component:r||"div",menuRef:A,menuProps:T,classNames:D,closeOnSelect:x,onClose:I.close,autoFocus:I.focusStrategy||!0,disableAnimation:S,getPopoverProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,p.d)(O,e);return{state:I,placement:w,ref:M,disableAnimation:S,shouldBlockScroll:C,scrollRef:A,triggerRef:E,...t,classNames:{..._,...e.classNames,content:(0,c.W)(D,null==_?void 0:_.content,e.className)},shouldCloseOnInteractOutside:(null==t?void 0:t.shouldCloseOnInteractOutside)?t.shouldCloseOnInteractOutside:e=>(0,f.J)(e,j,I)}},getMenuProps:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{ref:(0,d.l)(t,A),menuProps:T,closeOnSelect:x,...(0,p.d)(e,{onAction:()=>R(null==e?void 0:e.closeOnSelect),onClose:I.close})}},getMenuTriggerProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{onPress:n,onPressStart:r,...a}=N;return{...(0,p.d)(a,{isDisabled:y},e),ref:(0,d.l)(t,j)}}}}(n),[l,g]=h.Children.toArray(t);return(0,w.jsx)(r.K,{value:s,children:(0,w.jsxs)(x,{...s.getPopoverProps(),children:[l,g]})})};C.displayName="NextUI.Dropdown";var _=C},61575:function(e,t,n){"use strict";n.d(t,{S:function(){return p}});var r=n(81081),a=n(84449),o=n(91633),i=n(2265),s=n(9905),l=n(26411),u=n(59260),c=n(19488),d=n(57437),f=(0,a.Gp)((e,t)=>{let{triggerRef:n,getTriggerProps:r}=(0,o.l)(),{children:a,...f}=e,h=(0,i.useMemo)(()=>"string"==typeof a?(0,d.jsx)("p",{children:a}):i.Children.only(a),[a]),{onPress:p,isDisabled:g,...v}=(0,i.useMemo)(()=>r((0,c.d)(f,h.props),h.ref),[r,h.props,f,h.ref]),[,y]=(0,s.N)(a,u.A),{buttonProps:m}=(0,l.j)({onPress:p,isDisabled:g},n),b=(0,i.useMemo)(()=>(null==y?void 0:y[0])!==void 0,[y]);return(0,i.cloneElement)(h,(0,c.d)(v,b?{onPress:p,isDisabled:g}:m))});f.displayName="NextUI.PopoverTrigger";var h=(0,a.Gp)((e,t)=>{let{getMenuTriggerProps:n}=(0,r.t)(),{children:a,...o}=e;return(0,d.jsx)(f,{...n(o),children:a})});h.displayName="NextUI.DropdownTrigger";var p=h},88046:function(e,t,n){"use strict";n.d(t,{a:function(){return $}});var r=n(81081),a=n(91633),o=n(2265),i=n(84449),s=n(5864),l=n(48829),u=n(59836),c=n(95413),d=n(48926),f=n(47225),h=n(10071),p=n(19526),g=n(57437),v=(0,i.Gp)((e,t)=>{let{as:n,children:r,className:i,...v}=e,{Component:y,isOpen:m,placement:b,backdrop:w,motionProps:x,disableAnimation:C,shouldBlockScroll:_,getPopoverProps:S,getDialogProps:k,getBackdropProps:P,getContentProps:O,isNonModal:j,onClose:E}=(0,a.l)(),A=(0,o.useRef)(null),{dialogProps:M,titleProps:I}=(0,p.R)({},A),N=k({ref:A,...M,...v}),T=(0,g.jsxs)(g.Fragment,{children:[!j&&(0,g.jsx)(s.U,{onDismiss:E}),(0,g.jsx)(n||y||"div",{...N,children:(0,g.jsx)("div",{...O({className:i}),children:"function"==typeof r?r(I):r})}),(0,g.jsx)(s.U,{onDismiss:E})]}),D=(0,o.useMemo)(()=>"transparent"===w?null:C?(0,g.jsx)("div",{...P()}):(0,g.jsx)(u.X,{features:c.H,children:(0,g.jsx)(d.m.div,{animate:"enter",exit:"exit",initial:"exit",variants:l.y7.fade,...P()})}),[w,C,P]),R=(0,g.jsx)(f.Z,{enabled:_&&m,removeScrollBar:!1,children:C?T:(0,g.jsx)(u.X,{features:c.H,children:(0,g.jsx)(d.m.div,{animate:"enter",exit:"exit",initial:"initial",style:{...(0,h.VS)("center"===b?"top":b)},variants:l.y7.scaleSpringOpacity,...x,children:T})})});return(0,g.jsxs)("div",{...S(),children:[D,R]})});v.displayName="NextUI.PopoverContent";var y=n(54992);function m(e){let{isSelected:t,disableAnimation:n,...r}=e;return(0,g.jsx)("svg",{"aria-hidden":"true","data-selected":t,role:"presentation",viewBox:"0 0 17 18",...r,children:(0,g.jsx)("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,style:n?{}:{transition:"stroke-dashoffset 200ms ease"}})})}var b=n(65637),w=n(42255),x=n(25615),C=n(15032),_=n(5142),S=n(34808),k=n(42669),P=n(19488),O=n(73713),j=new WeakMap,E=n(64892),A=n(68849),M=n(68168),I=n(76339),N=n(17832),T=n(53700),D=n(38549),R=n(85695),q=n(11810),L=n(23978),F=n(6646),B=n(58263),K=(0,i.Gp)((e,t)=>{let{Component:n,slots:r,classNames:a,rendered:s,shortcut:l,description:u,isSelectable:c,isSelected:d,isDisabled:f,selectedIcon:h,startContent:p,endContent:v,disableAnimation:y,hideSelectedIcon:O,getItemProps:K,getLabelProps:U,getDescriptionProps:G,getKeyboardShortcutProps:z,getSelectedIconProps:V}=function(e){var t,n;let r=(0,w.w)(),[a,s]=(0,i.oe)(e,b.D9.variantKeys),{as:l,item:u,state:c,shortcut:d,description:f,startContent:h,endContent:p,isVirtualized:g,selectedIcon:v,className:y,classNames:m,onAction:O,autoFocus:K,onClick:U,onPress:G,onPressStart:z,onPressUp:V,onPressEnd:W,onPressChange:Q,hideSelectedIcon:H=!1,isReadOnly:$=!1,closeOnSelect:Z,onClose:X,...Y}=a,J=null!=(n=null!=(t=e.disableAnimation)?t:null==r?void 0:r.disableAnimation)&&n,ee=(0,o.useRef)(null),et=l||((null==Y?void 0:Y.href)?"a":"li"),en="string"==typeof et,{rendered:er,key:ea}=u,eo=c.disabledKeys.has(ea)||e.isDisabled,ei="none"!==c.selectionManager.selectionMode,es=(0,F.d)(),{isFocusVisible:el,focusProps:eu}=(0,x.F)({autoFocus:K}),{isHovered:ec,isPressed:ed,isFocused:ef,isSelected:eh,menuItemProps:ep,labelProps:eg,descriptionProps:ev,keyboardShortcutProps:ey}=function(e,t,n){var r,a;let{key:o,closeOnSelect:i,isVirtualized:s,"aria-haspopup":l,onPressStart:u,onPressUp:c,onPress:d,onPressChange:f,onPressEnd:h,onHoverStart:p,onHoverChange:g,onHoverEnd:v,onKeyDown:y,onKeyUp:m,onFocus:b,onFocusChange:w,onBlur:x,onClick:C}=e,_=!!l,S=null!=(r=e.isDisabled)?r:t.selectionManager.isDisabled(o),O=null!=(a=e.isSelected)?a:t.selectionManager.isSelected(o),F=j.get(t),B=t.collection.getItem(o),K=e.onClose||F.onClose,U=(0,E.tv)(),G=t=>{var n;!_&&((null==(n=null==B?void 0:B.props)?void 0:n.onAction)&&B.props.onAction(),e.onAction?e.onAction(o):F.onAction&&F.onAction(o),t.target instanceof HTMLAnchorElement&&U.open(t.target,t,B.props.href,B.props.routerOptions))},z="menuitem";_||("single"===t.selectionManager.selectionMode?z="menuitemradio":"multiple"!==t.selectionManager.selectionMode||(z="menuitemcheckbox"));let V=(0,A.mp)(),W=(0,A.mp)(),Q=(0,A.mp)(),H={"aria-disabled":S||void 0,role:z,"aria-label":e["aria-label"],"aria-labelledby":V,"aria-describedby":[W,Q].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":l,"aria-expanded":e["aria-expanded"]};"none"===t.selectionManager.selectionMode||_||(H["aria-checked"]=O),s&&(H["aria-posinset"]=null==B?void 0:B.index,H["aria-setsize"]=(0,I.i)(t.collection));let{itemProps:$,isFocused:Z}=(0,L.C)({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:X,isPressed:Y}=(0,N.r)({onPressStart:e=>{"keyboard"===e.pointerType&&G(e),null==u||u(e)},onPress:d,onPressUp:e=>{"keyboard"!==e.pointerType&&(setTimeout(()=>{G(e)}),!_&&K&&(null!=i?i:"multiple"!==t.selectionManager.selectionMode||t.selectionManager.isLink(o))&&setTimeout(()=>{null==K||K()})),null==c||c(e)},onPressChange:f,onPressEnd:h,isDisabled:S}),{isHovered:J,hoverProps:ee}=(0,T.X)({isDisabled:S,onHoverStart(e){(0,D.E)()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o)),null==p||p(e)},onHoverChange:g,onHoverEnd:v}),{keyboardProps:et}=(0,R.v)({onKeyDown:e=>{if(e.repeat){e.continuePropagation();return}switch(e.key){case" ":S||"none"!==t.selectionManager.selectionMode||_||!1===i||!K||K();break;case"Enter":S||!1===i||_||!K||K();break;default:_||e.continuePropagation(),null==y||y(e)}},onKeyUp:m}),{focusProps:en}=(0,q.K)({onBlur:x,onFocus:b,onFocusChange:w}),er=(0,k.z)(B.props);delete er.id;let ea=(0,E.eY)(B.props);return{menuItemProps:{...H,...(0,P.d)(er,ea,_?{onFocus:$.onFocus}:$,X,ee,et,en,{onClick:(0,M.t)(C,X.onClick)}),tabIndex:null!=$.tabIndex?-1:void 0},labelProps:{id:V},descriptionProps:{id:W},keyboardShortcutProps:{id:Q},isHovered:J,isFocused:Z,isSelected:O,isPressed:Y,isDisabled:S}}({key:ea,onClose:X,isDisabled:eo,onPress:G,onClick:U,onPressStart:z,onPressUp:V,onPressEnd:W,onPressChange:Q,"aria-label":a["aria-label"],closeOnSelect:Z,isVirtualized:g,onAction:O},c,ee),em=ep,eb=(0,o.useMemo)(()=>(0,b.D9)({...s,isDisabled:eo,disableAnimation:J}),[(0,C.Xx)(s),eo,J]),ew=(0,_.W)(null==m?void 0:m.base,y);$&&(em=(0,C.Os)(em));let ex=(0,o.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"aria-hidden":(0,S.PB)(!0),"data-disabled":(0,S.PB)(eo),className:eb.selectedIcon({class:null==m?void 0:m.selectedIcon}),...e}},[eo,eb,m]);return{Component:et,domRef:ee,slots:eb,classNames:m,isSelectable:ei,isSelected:eh,isDisabled:eo,rendered:er,shortcut:d,description:f,startContent:h,endContent:p,selectedIcon:v,disableAnimation:J,getItemProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ref:ee,...(0,P.d)($?{}:eu,(0,B.z)(Y,{enabled:en}),em,e),"data-focus":(0,S.PB)(ef),"data-selectable":(0,S.PB)(ei),"data-hover":(0,S.PB)(es?ec||ed:ec),"data-disabled":(0,S.PB)(eo),"data-selected":(0,S.PB)(eh),"data-pressed":(0,S.PB)(ed),"data-focus-visible":(0,S.PB)(el),className:eb.base({class:(0,_.W)(ew,e.className)})}},getLabelProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...(0,P.d)(eg,e),className:eb.title({class:null==m?void 0:m.title})}},hideSelectedIcon:H,getDescriptionProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...(0,P.d)(ev,e),className:eb.description({class:null==m?void 0:m.description})}},getKeyboardShortcutProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...(0,P.d)(ey,e),className:eb.shortcut({class:null==m?void 0:m.shortcut})}},getSelectedIconProps:ex}}(e),W=(0,o.useMemo)(()=>{let e=(0,g.jsx)(m,{disableAnimation:y,isSelected:d});return"function"==typeof h?h({icon:e,isSelected:d,isDisabled:f}):h||e},[h,d,f,y]);return(0,g.jsxs)(n,{...K(),children:[p,u?(0,g.jsxs)("div",{className:r.wrapper({class:null==a?void 0:a.wrapper}),children:[(0,g.jsx)("span",{...U(),children:s}),(0,g.jsx)("span",{...G(),children:u})]}):(0,g.jsx)("span",{...U(),children:s}),l&&(0,g.jsx)("kbd",{...z(),children:l}),c&&!O&&(0,g.jsx)("span",{...V(),children:W}),v]})});K.displayName="NextUI.MenuItem";var U=n(58440),G=(0,i.Gp)((e,t)=>{let{item:n,state:r,as:a,variant:i,color:s,disableAnimation:l,onAction:u,closeOnSelect:c,className:d,classNames:f,showDivider:h=!1,hideSelectedIcon:p,dividerProps:v={},itemClasses:y,title:m,...w}=e,x=(0,o.useMemo)(()=>(0,b.Dk)(),[]),C=(0,_.W)(null==f?void 0:f.base,d),S=(0,_.W)(null==f?void 0:f.divider,null==v?void 0:v.className),{itemProps:k,headingProps:O,groupProps:j}=function(e){let{heading:t,"aria-label":n}=e,r=(0,A.Me)();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}({heading:n.rendered,"aria-label":n["aria-label"]});return(0,g.jsxs)(a||"li",{"data-slot":"base",...(0,P.d)(k,w),className:x.base({class:C}),children:[n.rendered&&(0,g.jsx)("span",{...O,className:x.heading({class:null==f?void 0:f.heading}),"data-slot":"heading",children:n.rendered}),(0,g.jsxs)("ul",{...j,className:x.group({class:null==f?void 0:f.group}),"data-has-title":!!n.rendered,"data-slot":"group",children:[[...n.childNodes].map(e=>{let{key:t,props:n}=e,a=(0,g.jsx)(K,{classNames:y,closeOnSelect:c,color:s,disableAnimation:l,hideSelectedIcon:p,item:e,state:r,variant:i,onAction:u,...n},t);return e.wrapper&&(a=e.wrapper(a)),a}),h&&(0,g.jsx)(U.j,{as:"li",className:x.divider({class:S}),...v})]})]})});G.displayName="NextUI.MenuSection";var z=n(30710),V=n(72874);function W(e,t){let{Component:n,state:r,closeOnSelect:a,color:i,disableAnimation:s,hideSelectedIcon:l,hideEmptyContent:u,variant:c,onClose:d,onAction:f,topContent:h,bottomContent:p,itemClasses:v,getBaseProps:y,getListProps:m,getEmptyContentProps:x}=function(e){var t;let n=(0,w.w)(),{as:r,ref:a,variant:i,color:s,children:l,disableAnimation:u=null!=(t=null==n?void 0:n.disableAnimation)&&t,onAction:c,closeOnSelect:d,itemClasses:f,className:h,state:p,topContent:g,bottomContent:v,hideEmptyContent:y=!1,hideSelectedIcon:m=!1,emptyContent:x="No items.",menuProps:C,onClose:S,classNames:E,...A}=e,M=r||"ul",I=(0,V.gy)(a),N="string"==typeof M,T=(0,z.D)({...A,...C,children:l}),D=p||T,{menuProps:R}=function(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:a,onKeyUp:o,...i}=e;e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let s=(0,k.z)(e,{labelable:!0}),{listProps:l}=(0,O._)({...i,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return j.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:(0,P.d)(s,{onKeyDown:a,onKeyUp:o},{role:"menu",...l,onKeyDown:e=>{"Escape"!==e.key&&l.onKeyDown&&l.onKeyDown(e)}})}}({...A,...C},D,I),q=(0,o.useMemo)(()=>(0,b.GI)({className:h}),[h]),L=(0,_.W)(null==E?void 0:E.base,h);return{Component:M,state:D,variant:i,color:s,disableAnimation:u,onAction:c,onClose:S,topContent:g,bottomContent:v,closeOnSelect:d,className:h,itemClasses:f,getBaseProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ref:I,"data-slot":"base",className:q.base({class:L}),...(0,B.z)(A,{enabled:N}),...e}},getListProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"data-slot":"list",className:q.list({class:null==E?void 0:E.list}),...R,...e}},hideEmptyContent:y,hideSelectedIcon:m,getEmptyContentProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{children:x,className:q.emptyContent({class:null==E?void 0:E.emptyContent}),...e}}}}({...e,ref:t}),C=(0,g.jsxs)(n,{...m(),children:[!r.collection.size&&!u&&(0,g.jsx)("li",{children:(0,g.jsx)("div",{...x()})}),[...r.collection].map(e=>{let t={closeOnSelect:a,color:i,disableAnimation:s,item:e,state:r,variant:c,onClose:d,onAction:f,hideSelectedIcon:l,...e.props};if("section"===e.type)return(0,g.jsx)(G,{...t,itemClasses:v},e.key);let n=(0,g.jsx)(K,{...t,classNames:v},e.key);return e.wrapper&&(n=e.wrapper(n)),n})]});return(0,g.jsxs)("div",{...y(),children:[h,C,p]})}var Q=(0,i.Gp)(W);function H(e,t){let{getMenuProps:n}=(0,r.t)();return(0,g.jsx)(v,{children:(0,g.jsx)(y.MT,{contain:!0,restoreFocus:!0,children:(0,g.jsx)(Q,{...n(e,t)})})})}W.displayName="NextUI.Menu";var $=(0,i.Gp)(H);H.displayName="NextUI.DropdownMenu"},81081:function(e,t,n){"use strict";n.d(t,{K:function(){return r},t:function(){return a}});var[r,a]=(0,n(82901).k)({name:"DropdownContext",errorMessage:"useDropdownContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Dropdown />`"})},82264:function(e,t,n){"use strict";n.d(t,{W:function(){return r}});var r=n(62175).c},48978:function(e,t,n){"use strict";n.d(t,{R:function(){return E}});var r=n(53777),a=n(48829),o={visible:{y:0,transition:{ease:a.Lj.easeOut}},hidden:{y:"-100%",transition:{ease:a.Lj.easeIn}}},i=n(42255),s=n(84449),l=n(50490),u=n(41244),c=(0,l.tv)({slots:{base:["flex","z-40","w-full","h-auto","items-center","justify-center","data-[menu-open=true]:border-none"],wrapper:["z-40","flex","px-6","gap-4","w-full","flex-row","relative","flex-nowrap","items-center","justify-between","h-[var(--navbar-height)]"],toggle:["group","flex","items-center","justify-center","w-6","h-full","outline-none","rounded-small","tap-highlight-transparent",...u.Dh],srOnly:["sr-only"],toggleIcon:["w-full","h-full","pointer-events-none","flex","flex-col","items-center","justify-center","text-inherit","group-data-[pressed=true]:opacity-70","transition-opacity","before:content-['']","before:block","before:h-px","before:w-6","before:bg-current","before:transition-transform","before:duration-150","before:-translate-y-1","before:rotate-0","group-data-[open=true]:before:translate-y-px","group-data-[open=true]:before:rotate-45","after:content-['']","after:block","after:h-px","after:w-6","after:bg-current","after:transition-transform","after:duration-150","after:translate-y-1","after:rotate-0","group-data-[open=true]:after:translate-y-0","group-data-[open=true]:after:-rotate-45"],brand:["flex","basis-0","flex-row","flex-grow","flex-nowrap","justify-start","bg-transparent","items-center","no-underline","text-medium","whitespace-nowrap","box-border"],content:["flex","gap-4","h-full","flex-row","flex-nowrap","items-center","data-[justify=start]:justify-start","data-[justify=start]:flex-grow","data-[justify=start]:basis-0","data-[justify=center]:justify-center","data-[justify=end]:justify-end","data-[justify=end]:flex-grow","data-[justify=end]:basis-0"],item:["text-medium","whitespace-nowrap","box-border","list-none","data-[active=true]:font-semibold"],menu:["z-30","px-6","pt-2","fixed","flex","max-w-full","top-[var(--navbar-height)]","inset-x-0","bottom-0","w-screen","flex-col","gap-2","overflow-y-auto"],menuItem:["text-large","data-[active=true]:font-semibold"]},variants:{position:{static:{base:"static"},sticky:{base:"sticky top-0 inset-x-0"}},maxWidth:{sm:{wrapper:"max-w-[640px]"},md:{wrapper:"max-w-[768px]"},lg:{wrapper:"max-w-[1024px]"},xl:{wrapper:"max-w-[1280px]"},"2xl":{wrapper:"max-w-[1536px]"},full:{wrapper:"max-w-full"}},hideOnScroll:{true:{base:["sticky","top-0","inset-x-0"]}},isBordered:{true:{base:["border-b","border-divider"]}},isBlurred:{false:{base:"bg-background",menu:"bg-background"},true:{base:["backdrop-blur-lg","data-[menu-open=true]:backdrop-blur-xl","backdrop-saturate-150","bg-background/70"],menu:["backdrop-blur-xl","backdrop-saturate-150","bg-background/70"]}},disableAnimation:{true:{menu:["hidden","h-[calc(100dvh_-_var(--navbar-height))]","data-[open=true]:flex"]}}},defaultVariants:{maxWidth:"lg",position:"sticky",isBlurred:!0}}),d=n(72874),f=n(15032),h=n(5142),p=n(34808),g=n(2265),v=n(73096),y=n(19488),m="undefined"!=typeof window;function b(e){return m?e?{x:e.scrollLeft,y:e.scrollTop}:{x:window.scrollX,y:window.scrollY}:{x:0,y:0}}var w=e=>{let{elementRef:t,delay:n=30,callback:r,isEnabled:a}=e,o=(0,g.useRef)(a?b(null==t?void 0:t.current):{x:0,y:0}),i=(0,g.useRef)(null),s=(0,g.useCallback)(()=>{let e=b(null==t?void 0:t.current);"function"==typeof r&&r({prevPos:o.current,currPos:e}),o.current=e,i.current=null},[r,t]);return(0,g.useEffect)(()=>{if(!a)return;let e=()=>{n?null===i.current&&(i.current=setTimeout(s,n)):s()},r=(null==t?void 0:t.current)||window;return r.addEventListener("scroll",e),()=>{r.removeEventListener("scroll",e),i.current&&clearTimeout(i.current)}},[null==t?void 0:t.current,n,s,a]),o.current},x=n(81754),C=n(42080),_=n(9905),S=n(59836),k=n(95413),P=n(48926),O=n(57437),j=(0,s.Gp)((e,t)=>{let{children:n,...a}=e,l=function(e){var t,n;let r=(0,i.w)(),[a,o]=(0,s.oe)(e,c.variantKeys),{ref:l,as:u,parentRef:m,height:b="4rem",shouldHideOnScroll:C=!1,disableScrollHandler:_=!1,onScrollPositionChange:S,isMenuOpen:k,isMenuDefaultOpen:P,onMenuOpenChange:O=()=>{},motionProps:j,className:E,classNames:A,...M}=a,I=null!=(n=null!=(t=e.disableAnimation)?t:null==r?void 0:r.disableAnimation)&&n,N=(0,d.gy)(l),T=(0,g.useRef)(0),D=(0,g.useRef)(0),[R,q]=(0,g.useState)(!1),L=(0,g.useCallback)(e=>{O(e||!1)},[O]),[F,B]=(0,x.z)(k,null!=P&&P,L),K=()=>{if(N.current){let e=N.current.offsetWidth;e!==T.current&&(T.current=e)}};(0,v.y)({ref:N,onResize:()=>{var e;(null==(e=N.current)?void 0:e.offsetWidth)!==T.current&&(K(),B(!1))}}),(0,g.useEffect)(()=>{var e;K(),D.current=(null==(e=N.current)?void 0:e.offsetHeight)||0},[]);let U=(0,g.useMemo)(()=>c({...o,disableAnimation:I,hideOnScroll:C}),[(0,f.Xx)(o),I,C]),G=(0,h.W)(null==A?void 0:A.base,E);return w({elementRef:m,isEnabled:C||!_,callback:e=>{let{prevPos:t,currPos:n}=e;null==S||S(n.y),C&&q(e=>{let r=n.y>t.y&&n.y>D.current;return r!==e?r:e})}}),{Component:u||"nav",slots:U,domRef:N,height:b,isHidden:R,disableAnimation:I,shouldHideOnScroll:C,isMenuOpen:F,classNames:A,setIsMenuOpen:B,motionProps:j,getBaseProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...(0,y.d)(M,e),"data-hidden":(0,p.PB)(R),"data-menu-open":(0,p.PB)(F),ref:N,className:U.base({class:(0,h.W)(G,null==e?void 0:e.className)}),style:{"--navbar-height":b,...null==M?void 0:M.style,...null==e?void 0:e.style}}},getWrapperProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,"data-menu-open":(0,p.PB)(F),className:U.wrapper({class:(0,h.W)(null==A?void 0:A.wrapper,null==e?void 0:e.className)})}}}}({...a,ref:t}),u=l.Component,[m,b]=(0,_.N)(n,r.$),j=(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("header",{...l.getWrapperProps(),children:m}),b]});return(0,O.jsx)(C.V,{value:l,children:l.shouldHideOnScroll?(0,O.jsx)(S.X,{features:k.H,children:(0,O.jsx)(P.m.nav,{animate:l.isHidden?"hidden":"visible",initial:!1,variants:o,...(0,y.d)(l.getBaseProps(),l.motionProps),children:j})}):(0,O.jsx)(u,{...l.getBaseProps(),children:j})})});j.displayName="NextUI.Navbar";var E=j},20944:function(e,t,n){"use strict";n.d(t,{L:function(){return y}});var r=n(42080),a=n(68168),o=n(19488),i=n(26411),s=n(84449),l=n(72874),u=n(5142),c=n(34808),d=n(83025),f=n(25615),h=n(53700),p=n(2265),g=n(57437),v=(0,s.Gp)((e,t)=>{var n;let{as:s,icon:v,className:y,onChange:m,autoFocus:b,srOnlyText:w,...x}=e,C=(0,l.gy)(t),{slots:_,classNames:S,isMenuOpen:k,setIsMenuOpen:P}=(0,r.q)(),O=(0,d.l)({...x,isSelected:k,onChange:e=>{null==m||m(e),P(e)}}),{buttonProps:j,isPressed:E}=function(e,t,n){let{isSelected:r}=t,{isPressed:s,buttonProps:l}=(0,i.j)({...e,onPress:(0,a.t)(t.toggle,e.onPress)},n);return{isPressed:s,buttonProps:(0,o.d)(l,{"aria-pressed":r})}}(e,O,C),{isFocusVisible:A,focusProps:M}=(0,f.F)({autoFocus:b}),{isHovered:I,hoverProps:N}=(0,h.X)({}),T=(0,u.W)(null==S?void 0:S.toggle,y),D=(0,p.useMemo)(()=>"function"==typeof v?v(null!=k&&k):v||(0,g.jsx)("span",{className:_.toggleIcon({class:null==S?void 0:S.toggleIcon})}),[v,k,_.toggleIcon,null==S?void 0:S.toggleIcon]),R=(0,p.useMemo)(()=>w||(O.isSelected?"close navigation menu":"open navigation menu"),[w,k]);return(0,g.jsxs)(s||"button",{ref:C,className:null==(n=_.toggle)?void 0:n.call(_,{class:T}),"data-focus-visible":(0,c.PB)(A),"data-hover":(0,c.PB)(I),"data-open":(0,c.PB)(k),"data-pressed":(0,c.PB)(E),...(0,o.d)(j,M,N,x),children:[(0,g.jsx)("span",{className:_.srOnly(),children:R}),D]})});v.displayName="NextUI.NavbarMenuToggle";var y=v},42080:function(e,t,n){"use strict";n.d(t,{V:function(){return r},q:function(){return a}});var[r,a]=(0,n(82901).k)({name:"NavbarContext",strict:!0,errorMessage:"useNavbarContext: `context` is undefined. Seems you forgot to wrap component within <Navbar />"})},9227:function(e,t,n){"use strict";n.d(t,{k:function(){return c}});var r=n(42080),a=n(84449),o=n(72874),i=n(5142),s=n(34808),l=n(57437),u=(0,a.Gp)((e,t)=>{var n;let{as:a,className:u,children:c,isActive:d,...f}=e,h=(0,o.gy)(t),{slots:p,classNames:g}=(0,r.q)(),v=(0,i.W)(null==g?void 0:g.item,u);return(0,l.jsx)(a||"li",{ref:h,className:null==(n=p.item)?void 0:n.call(p,{class:v}),"data-active":(0,s.PB)(d),...f,children:c})});u.displayName="NextUI.NavbarItem";var c=u},69681:function(e,t,n){"use strict";n.d(t,{U:function(){return u}});var r=n(42080),a=n(84449),o=n(72874),i=n(5142),s=n(57437),l=(0,a.Gp)((e,t)=>{var n;let{as:a,className:l,children:u,justify:c="start",...d}=e,f=(0,o.gy)(t),{slots:h,classNames:p}=(0,r.q)(),g=(0,i.W)(null==p?void 0:p.content,l);return(0,s.jsx)(a||"ul",{ref:f,className:null==(n=h.content)?void 0:n.call(h,{class:g}),"data-justify":c,...d,children:u})});l.displayName="NextUI.NavbarContent";var u=l},53777:function(e,t,n){"use strict";n.d(t,{$:function(){return b}});var r=n(42080),a={enter:{height:"calc(100vh - var(--navbar-height))",transition:{duration:.3,easings:"easeOut"}},exit:{height:0,transition:{duration:.25,easings:"easeIn"}}},o=n(84449),i=n(72874),s=n(5142),l=n(34808),u=n(40744),c=n(59836),d=n(95413),f=n(48926),h=n(19488),p=n(2265),g=n(47225),v=n(78208),y=n(57437),m=(0,o.Gp)((e,t)=>{var n,o;let{className:m,children:b,portalContainer:w,motionProps:x,style:C,..._}=e,S=(0,i.gy)(t),{slots:k,isMenuOpen:P,height:O,disableAnimation:j,classNames:E}=(0,r.q)(),A=(0,s.W)(null==E?void 0:E.menu,m),M=(0,p.useCallback)(e=>{let{children:t}=e;return(0,y.jsx)(g.Z,{forwardProps:!0,enabled:P,removeScrollBar:!1,children:t})},[P]),I=j?(0,y.jsx)(M,{children:(0,y.jsx)("ul",{ref:S,className:null==(n=k.menu)?void 0:n.call(k,{class:A}),"data-open":(0,l.PB)(P),style:{"--navbar-height":O},..._,children:b})}):(0,y.jsx)(u.M,{mode:"wait",children:P?(0,y.jsx)(c.X,{features:d.H,children:(0,y.jsx)(M,{children:(0,y.jsx)(f.m.ul,{ref:S,layoutScroll:!0,animate:"enter",className:null==(o=k.menu)?void 0:o.call(k,{class:A}),"data-open":(0,l.PB)(P),exit:"exit",initial:"exit",style:{"--navbar-height":O,...C},variants:a,...(0,h.d)(x,_),children:b})})}):null});return(0,y.jsx)(v.aV,{portalContainer:w,children:I})});m.displayName="NextUI.NavbarMenu";var b=m},58192:function(e,t,n){"use strict";n.d(t,{H:function(){return u}});var r=n(42080),a=n(84449),o=n(72874),i=n(5142),s=n(57437),l=(0,a.Gp)((e,t)=>{var n;let{as:a,className:l,children:u,...c}=e,d=(0,o.gy)(t),{slots:f,classNames:h}=(0,r.q)(),p=(0,i.W)(null==h?void 0:h.brand,l);return(0,s.jsx)(a||"div",{ref:d,className:null==(n=f.brand)?void 0:n.call(f,{class:p}),...c,children:u})});l.displayName="NextUI.NavbarBrand";var u=l},91633:function(e,t,n){"use strict";n.d(t,{H:function(){return r},l:function(){return a}});var[r,a]=(0,n(82901).k)({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"})},9905:function(e,t,n){"use strict";n.d(t,{N:function(){return p}});var r,a,o=Object.create,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t)=>function(){return t||(0,e[l(e)[0]])((t={exports:{}}).exports,t),t.exports},f=d({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.js"(e){var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var b=m.prototype=new y;b.constructor=m,p(b,v.prototype),b.isPureReactComponent=!0;var w=Array.isArray,x=Object.prototype.hasOwnProperty,C={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function S(e,n,r){var a,o={},i=null,s=null;if(null!=n)for(a in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(i=""+n.key),n)x.call(n,a)&&!_.hasOwnProperty(a)&&(o[a]=n[a]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(a in l=e.defaultProps)void 0===o[a]&&(o[a]=l[a]);return{$$typeof:t,type:e,key:i,ref:s,props:o,_owner:C.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var P=/\/+/g;function O(e,t){var n,r;return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36)}function j(e,r,a){if(null==e)return e;var o=[],i=0;return!function e(r,a,o,i,s){var l,u,c,d=typeof r;("undefined"===d||"boolean"===d)&&(r=null);var h=!1;if(null===r)h=!0;else switch(d){case"string":case"number":h=!0;break;case"object":switch(r.$$typeof){case t:case n:h=!0}}if(h)return s=s(h=r),r=""===i?"."+O(h,0):i,w(s)?(o="",null!=r&&(o=r.replace(P,"$&/")+"/"),e(s,a,o,"",function(e){return e})):null!=s&&(k(s)&&(l=s,u=o+(!s.key||h&&h.key===s.key?"":(""+s.key).replace(P,"$&/")+"/")+r,s={$$typeof:t,type:l.type,key:u,ref:l.ref,props:l.props,_owner:l._owner}),a.push(s)),1;if(h=0,i=""===i?".":i+":",w(r))for(var p=0;p<r.length;p++){var g=i+O(d=r[p],p);h+=e(d,a,o,g,s)}else if("function"==typeof(g=null===(c=r)||"object"!=typeof c?null:"function"==typeof(c=f&&c[f]||c["@@iterator"])?c:null))for(r=g.call(r),p=0;!(d=r.next()).done;)g=i+O(d=d.value,p++),h+=e(d,a,o,g,s);else if("object"===d)throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(a=String(r))?"object with keys {"+Object.keys(r).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead.");return h}(e,o,"","",function(e){return r.call(a,e,i++)}),o}function E(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var A={current:null},M={transition:null};e.Children={map:j,forEach:function(e,t,n){j(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return j(e,function(){t++}),t},toArray:function(e){return j(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},e.Component=v,e.Fragment=r,e.Profiler=o,e.PureComponent=m,e.StrictMode=a,e.Suspense=u,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:M,ReactCurrentOwner:C},e.cloneElement=function(e,n,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=p({},e.props),o=e.key,i=e.ref,s=e._owner;if(null!=n){if(void 0!==n.ref&&(i=n.ref,s=C.current),void 0!==n.key&&(o=""+n.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in n)x.call(n,u)&&!_.hasOwnProperty(u)&&(a[u]=void 0===n[u]&&void 0!==l?l[u]:n[u])}var u=arguments.length-2;if(1===u)a.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];a.children=l}return{$$typeof:t,type:e.type,key:o,ref:i,props:a,_owner:s}},e.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},e.createElement=S,e.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:l,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:E}},e.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},e.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function(e,t){return A.current.useCallback(e,t)},e.useContext=function(e){return A.current.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e){return A.current.useDeferredValue(e)},e.useEffect=function(e,t){return A.current.useEffect(e,t)},e.useId=function(){return A.current.useId()},e.useImperativeHandle=function(e,t,n){return A.current.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return A.current.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return A.current.useLayoutEffect(e,t)},e.useMemo=function(e,t){return A.current.useMemo(e,t)},e.useReducer=function(e,t,n){return A.current.useReducer(e,t,n)},e.useRef=function(e){return A.current.useRef(e)},e.useState=function(e){return A.current.useState(e)},e.useSyncExternalStore=function(e,t,n){return A.current.useSyncExternalStore(e,t,n)},e.useTransition=function(){return A.current.useTransition()},e.version="18.2.0"}});d({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.development.js"(e,t){}});var h=(a=null!=(r=d({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,t){t.exports=f()}})())?o(u(r)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of l(t))c.call(e,n)||void 0===n||i(e,n,{get:()=>t[n],enumerable:!(r=s(t,n))||r.enumerable});return e})(r&&r.__esModule?a:i(a,"default",{value:r,enumerable:!0}),r)),p=(e,t)=>{var n;let r=[];return[null==(n=h.Children.map(e,e=>(0,h.isValidElement)(e)&&e.type===t?(r.push(e),null):e))?void 0:n.filter(Boolean),r.length>=0?r:void 0]}},7878:function(e,t,n){"use strict";n.d(t,{l:function(){return a}});var r=n(34808);function a(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach(t=>(function(e,t){if(null!=e){if((0,r.mf)(e)){e(t);return}try{e.current=t}catch(n){throw Error("Cannot assign value '".concat(t,"' to ref '").concat(e,"'"))}}})(t,e))}}},89083:function(e,t,n){"use strict";n.d(t,{e:function(){return r},x:function(){return a}});var r=e=>(null==e?void 0:e.length)<=4?e:null==e?void 0:e.slice(0,3),a=(...e)=>{let t=" ";for(let n of e)if("string"==typeof n&&n.length>0){t=n;break}return t}},3248:function(e,t,n){"use strict";n.d(t,{G:function(){return a}});var r=n(2265),a=(null==globalThis?void 0:globalThis.document)?r.useLayoutEffect:r.useEffect},83025:function(e,t,n){"use strict";n.d(t,{l:function(){return a}});var r=n(81754);function a(e={}){let{isReadOnly:t}=e,[n,a]=(0,r.z)(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:n,setSelected:function(e){t||a(e)},toggle:function(){t||a(!n)}}}},30710:function(e,t,n){"use strict";n.d(t,{D:function(){return u}});class r{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){let n;this.keyMap=new Map,this.iterable=e,t=t||new Set;let r=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&("section"===e.type||t.has(e.key)))for(let t of e.childNodes)r(t)};for(let t of e)r(t);let a=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=a++),(n=t).nextKey=void 0;this.lastKey=null==n?void 0:n.key}}var a=n(69741),o=n(6756),i=n(2265),s=n(42796),l=n(81754);function u(e){let{onExpandedChange:t}=e,[n,u]=(0,l.z)(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),c=(0,a.q)(e),d=(0,i.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),f=(0,s.K)(e,(0,i.useCallback)(e=>new r(e,{expandedKeys:n}),[n]),null);return(0,i.useEffect)(()=>{null==c.focusedKey||f.getItem(c.focusedKey)||c.setFocusedKey(null)},[f,c.focusedKey]),{collection:f,expandedKeys:n,disabledKeys:d,toggleKey:e=>{let t;u(((t=new Set(n)).has(e)?t.delete(e):t.add(e),t))},setExpandedKeys:u,selectionManager:new o.Z(f,c)}}},81754:function(e,t,n){"use strict";n.d(t,{z:function(){return a}});var r=n(2265);function a(e,t,n){let[a,o]=(0,r.useState)(e||t),i=(0,r.useRef)(void 0!==e),s=void 0!==e;(0,r.useEffect)(()=>{let e=i.current;e!==s&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s},[s]);let l=s?e:a,u=(0,r.useCallback)((e,...t)=>{let r=(e,...t)=>{n&&!Object.is(l,e)&&n(e,...t),s||(l=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((n,...a)=>{let o=e(s?l:n,...a);return(r(o,...t),s)?n:o})):(s||o(e),r(e,...t))},[s,l,n]);return[l,u]}},4668:function(e,t,n){"use strict";n.d(t,{A:function(){return s},z:function(){return l}});var r=n(46063),a=n(45139),o=n(90326),i=n(2041),s=class extends i.F{#e;#t;#n;#r;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#n=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=e.state||function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#n.remove(this)}setData(e,t){let n=(0,r.oE)(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(r.ZT).catch(r.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>!1!==(0,r.Nc)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!(0,r.Kp)(this.state.dataUpdatedAt,e)}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#o?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},i={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{let e=(0,r.cG)(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return(a(n),this.#o=!1,this.options.persister)?this.options.persister(e,n,this):e(n)}};a(i),this.options.behavior?.onFetch(i,this),this.#t=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==i.fetchOptions?.meta)&&this.#i({type:"fetch",meta:i.fetchOptions?.meta});let s=e=>{(0,o.DV)(e)&&e.silent||this.#i({type:"error",error:e}),(0,o.DV)(e)||(this.#n.config.onError?.(e,this),this.#n.config.onSettled?.(this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#r=(0,o.Mz)({initialPromise:t?.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0===e){s(Error(`${this.queryHash} data is undefined`));return}this.setData(e),this.#n.config.onSuccess?.(e,this),this.#n.config.onSettled?.(e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:s,onFail:(e,t)=>{this.#i({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0}),this.#r.start()}#i(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...l(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let n=e.error;if((0,o.DV)(n)&&n.revert&&this.#t)return{...this.#t,fetchStatus:"idle"};return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),a.V.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function l(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,o.Kw)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}},8385:function(e,t,n){"use strict";n.d(t,{S:function(){return p}});var r=n(46063),a=n(4668),o=n(45139),i=n(44614),s=class extends i.l{constructor(e={}){super(),this.config=e,this.#s=new Map}#s;build(e,t,n){let o=t.queryKey,i=t.queryHash??(0,r.Rm)(o,t),s=this.get(i);return s||(s=new a.A({cache:this,queryKey:o,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(s)),s}add(e){this.#s.has(e.queryHash)||(this.#s.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#s.get(e.queryHash);t&&(e.destroy(),t===e&&this.#s.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){o.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#s.get(e)}getAll(){return[...this.#s.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r._x)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,r._x)(e,t)):t}notify(e){o.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){o.V.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){o.V.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},l=n(1793),u=class extends i.l{constructor(e={}){super(),this.config=e,this.#l=new Map,this.#u=Date.now()}#l;#u;build(e,t,n){let r=new l.m({mutationCache:this,mutationId:++this.#u,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){let t=c(e),n=this.#l.get(t)??[];n.push(e),this.#l.set(t,n),this.notify({type:"added",mutation:e})}remove(e){let t=c(e);if(this.#l.has(t)){let n=this.#l.get(t)?.filter(t=>t!==e);n&&(0===n.length?this.#l.delete(t):this.#l.set(t,n))}this.notify({type:"removed",mutation:e})}canRun(e){let t=this.#l.get(c(e))?.find(e=>"pending"===e.state.status);return!t||t===e}runNext(e){let t=this.#l.get(c(e))?.find(t=>t!==e&&t.state.isPaused);return t?.continue()??Promise.resolve()}clear(){o.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...this.#l.values()].flat()}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.X7)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.X7)(e,t))}notify(e){o.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return o.V.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.ZT))))}};function c(e){return e.options.scope?.id??String(e.mutationId)}var d=n(79555),f=n(17211);function h(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}var p=class{#c;#d;#a;#f;#h;#p;#g;#v;constructor(e={}){this.#c=e.queryCache||new s,this.#d=e.mutationCache||new u,this.#a=e.defaultOptions||{},this.#f=new Map,this.#h=new Map,this.#p=0}mount(){this.#p++,1===this.#p&&(this.#g=d.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#c.onFocus())}),this.#v=f.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#c.onOnline())}))}unmount(){this.#p--,0===this.#p&&(this.#g?.(),this.#g=void 0,this.#v?.(),this.#v=void 0)}isFetching(e){return this.#c.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#d.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#c.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{let n=this.defaultQueryOptions(e),a=this.#c.build(this,n);return e.revalidateIfStale&&a.isStaleByTime((0,r.KC)(n.staleTime,a))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return this.#c.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let a=this.defaultQueryOptions({queryKey:e}),o=this.#c.get(a.queryHash),i=o?.state.data,s=(0,r.SE)(t,i);if(void 0!==s)return this.#c.build(this,a).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return o.V.batch(()=>this.#c.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#c.get(t.queryHash)?.state}removeQueries(e){let t=this.#c;o.V.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#c,r={type:"active",...e};return o.V.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){let n={revert:!0,...t};return Promise.all(o.V.batch(()=>this.#c.findAll(e).map(e=>e.cancel(n)))).then(r.ZT).catch(r.ZT)}invalidateQueries(e={},t={}){return o.V.batch(()=>{if(this.#c.findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();let n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){let n={...t,cancelRefetch:t?.cancelRefetch??!0};return Promise.all(o.V.batch(()=>this.#c.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(r.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(r.ZT)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#c.build(this,t);return n.isStaleByTime((0,r.KC)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.ZT).catch(r.ZT)}fetchInfiniteQuery(e){var t;return e.behavior=(t=e.pages,{onFetch:(e,n)=>{let a=async()=>{let n;let a=e.options,o=e.fetchOptions?.meta?.fetchMore?.direction,i=e.state.data?.pages||[],s=e.state.data?.pageParams||[],l=!1,u=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(e.signal.aborted?l=!0:e.signal.addEventListener("abort",()=>{l=!0}),e.signal)})},c=(0,r.cG)(e.options,e.fetchOptions),d=async(t,n,a)=>{if(l)return Promise.reject();if(null==n&&t.pages.length)return Promise.resolve(t);let o={queryKey:e.queryKey,pageParam:n,direction:a?"backward":"forward",meta:e.options.meta};u(o);let i=await c(o),{maxPages:s}=e.options,d=a?r.Ht:r.VX;return{pages:d(t.pages,i,s),pageParams:d(t.pageParams,n,s)}};if(o&&i.length){let e="backward"===o,t={pages:i,pageParams:s},r=(e?function(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}:h)(a,t);n=await d(t,r,e)}else{n=await d({pages:[],pageParams:[]},s[0]??a.initialPageParam);let e=t??i.length;for(let t=1;t<e;t++){let e=h(a,n);n=await d(n,e)}}return n};e.options.persister?e.fetchFn=()=>e.options.persister?.(a,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n):e.fetchFn=a}}),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.ZT).catch(r.ZT)}resumePausedMutations(){return f.N.isOnline()?this.#d.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#c}getMutationCache(){return this.#d}getDefaultOptions(){return this.#a}setDefaultOptions(e){this.#a=e}setQueryDefaults(e,t){this.#f.set((0,r.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#f.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.queryKey)&&(n={...n,...t.defaultOptions})}),n}setMutationDefaults(e,t){this.#h.set((0,r.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#h.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.mutationKey)&&(n={...n,...t.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#a.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,r.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===r.CN&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#a.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#c.clear(),this.#d.clear()}}}}]);