MCPcopy
hub / github.com/weaviate/elysia / i

Function i

elysia/api/static/_next/static/chunks/349-1022b66d793b606a.js:1–1  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[349],{84764:function(e,t,n){n.d(t,{ZP:function(){return eh}});var r,i,o=n(5853),a="4.6.2";function s(e,t){return new Promise(function(n){return setTimeout(n,e,t)})}function l(e){return!!e&&"function"==typeof e.then}function u(e,t){try{var n=e();l(n)?n.then(function(e){return t(!0,e)},function(e){return t(!1,e)}):t(!0,n)}catch(e){t(!1,e)}}function c(e,t,n){return void 0===n&&(n=16),(0,o.mG)(this,void 0,void 0,function(){var r,i,a,s;return(0,o.Jh)(this,function(o){switch(o.label){case 0:r=Array(e.length),i=Date.now(),a=0,o.label=1;case 1:if(!(a<e.length))return[3,4];if(r[a]=t(e[a],a),!((s=Date.now())>=i+n))return[3,3];return i=s,[4,new Promise(function(e){var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(null)})];case 2:o.sent(),o.label=3;case 3:return++a,[3,1];case 4:return[2,r]}})})}function d(e){return e.then(void 0,function(){}),e}function f(e){return parseInt(e)}function p(e){return parseFloat(e)}function h(e,t){return"number"==typeof e&&isNaN(e)?t:e}function m(e){return e.reduce(function(e,t){return e+(t?1:0)},0)}function v(e,t){if(void 0===t&&(t=1),Math.abs(t)>=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function g(e,t){var n,r,i=e[0]>>>16,o=65535&e[0],a=e[1]>>>16,s=65535&e[1],l=t[0]>>>16,u=65535&t[0],c=t[1]>>>16,d=65535&t[1],f=0,p=0;n=0+((r=0+(s+d))>>>16),r&=65535,n+=a+c,p+=n>>>16,n&=65535,p+=o+u,f+=p>>>16,p&=65535,f+=i+l,f&=65535,e[0]=f<<16|p,e[1]=n<<16|r}function y(e,t){var n,r,i=e[0]>>>16,o=65535&e[0],a=e[1]>>>16,s=65535&e[1],l=t[0]>>>16,u=65535&t[0],c=t[1]>>>16,d=65535&t[1],f=0,p=0;n=0+((r=0+s*d)>>>16),r&=65535,n+=a*d,p+=n>>>16,n&=65535,n+=s*c,p+=n>>>16,n&=65535,p+=o*d,f+=p>>>16,p&=65535,p+=a*c,f+=p>>>16,p&=65535,p+=s*u,f+=p>>>16,p&=65535,f+=i*d+o*c+a*u+s*l,f&=65535,e[0]=f<<16|p,e[1]=n<<16|r}function b(e,t){var n=e[0];32==(t%=64)?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<<t|e[1]>>>32-t,e[1]=e[1]<<t|n>>>32-t):(t-=32,e[0]=e[1]<<t|n>>>32-t,e[1]=n<<t|e[1]>>>32-t)}function w(e,t){0!=(t%=64)&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<<t):(e[0]=e[1]<<t-32,e[1]=0))}function x(e,t){e[0]^=t[0],e[1]^=t[1]}var E=[4283543511,3981806797],P=[3301882366,444984403];function T(e){var t=[0,e[0]>>>1];x(e,t),y(e,E),t[1]=e[0]>>>1,x(e,t),y(e,P),t[1]=e[0]>>>1,x(e,t)}var C=[2277735313,289559509],S=[1291169091,658871167],R=[0,5],M=[0,1390208809],k=[0,944331445];function L(){var e=window,t=navigator;return m(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function A(){var e=window,t=navigator;return m(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,0===(t.vendor||"").indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function D(){var e=window;return m(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===navigator.vendor.indexOf("Apple"),"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function j(){var e=window,t=e.HTMLElement,n=e.Document;return m(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function N(){var e,t=window;return e=t.print,/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))&&"[object WebPageNamespace]"===String(t.browser)}function O(){var e,t,n=window;return m(["buildID"in navigator,"MozAppearance"in(null!==(t=null===(e=document.documentElement)||void 0===e?void 0:e.style)&&void 0!==t?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function V(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return m([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function F(){var e=A(),t=O(),n=window,r=navigator,i="connection";return e?m([!("SharedWorker"in n),r[i]&&"ontypechange"in r[i],!("sinkId"in new Audio)])>=2:!!t&&m(["onorientationchange"in n,"orientation"in n,/android/i.test(r.appVersion)])>=2}function I(e){var t=Error(e);return t.name=e,t}function W(e,t,n){var r,i,a;return void 0===n&&(n=50),(0,o.mG)(this,void 0,void 0,function(){var l,u;return(0,o.Jh)(this,function(o){switch(o.label){case 0:l=document,o.label=1;case 1:if(l.body)return[3,3];return[4,s(n)];case 2:return o.sent(),[3,1];case 3:u=l.createElement("iframe"),o.label=4;case 4:return o.trys.push([4,,10,11]),[4,new Promise(function(e,n){var r=!1,i=function(){r=!0,e()};u.onload=i,u.onerror=function(e){r=!0,n(e)};var o=u.style;o.setProperty("display","block","important"),o.position="absolute",o.top="0",o.left="0",o.visibility="hidden",t&&"srcdoc"in u?u.srcdoc=t:u.src="about:blank",l.body.appendChild(u);var a=function(){var e,t;r||((null===(t=null===(e=u.contentWindow)||void 0===e?void 0:e.document)||void 0===t?void 0:t.readyState)==="complete"?i():setTimeout(a,10))};a()})];case 5:o.sent(),o.label=6;case 6:if(null===(i=null===(r=u.contentWindow)||void 0===r?void 0:r.document)||void 0===i?void 0:i.body)return[3,8];return[4,s(n)];case 7:return o.sent(),[3,6];case 8:return[4,e(u,u.contentWindow)];case 9:return[2,o.sent()];case 10:return null===(a=u.parentNode)||void 0===a||a.removeChild(u),[7];case 11:return[2]}})})}var B=["monospace","sans-serif","serif"],_=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function z(e){return e.toDataURL()}function X(){var e=screen;return[h(p(e.availTop),null),h(p(e.width)-p(e.availWidth)-h(p(e.availLeft),0),null),h(p(e.height)-p(e.availHeight)-h(p(e.availTop),0),null),h(p(e.availLeft),null)]}function Z(e){for(var t=0;t<4;++t)if(e[t])return!1;return!0}function U(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function Y(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function G(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}function H(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function $(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function K(e){return matchMedia("(prefers-reduced-transparency: ".concat(e,")")).matches}function J(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var q=Math,Q=function(){return 0},ee={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},et=function(){for(var e=window;;){var t=e.parent;if(!t||t===e)return!1;try{if(t.location.origin!==e.location.origin)return!0}catch(e){if(e instanceof Error&&"SecurityError"===e.name)return!0;throw e}e=t}},en=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),er=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),ei=["FRAGMENT_SHADER","VERTEX_SHADER"],eo=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],ea="WEBGL_debug_renderer_info";function es(e){if(e.webgl)return e.webgl.context;var t,n=document.createElement("canvas");n.addEventListener("webglCreateContextError",function(){return t=void 0});for(var r=0,i=["webgl","experimental-webgl"];r<i.length;r++){var o=i[r];try{t=n.getContext(o)}catch(e){}if(t)break}return e.webgl={context:t},t}function el(e){return Object.keys(e.__proto__).filter(eu)}function eu(e){return"string"==typeof e&&!e.match(/[^A-Z0-9_x]/)}function ec(e){return"function"==typeof e.getParameter}var ed={fonts:function(){var e=this;return W(function(t,n){var r=n.document;return(0,o.mG)(e,void 0,void 0,function(){var e,t,n,i,a,s,l,u,c,d,f,p;return(0,o.Jh)(this,function(o){for((e=r.body).style.fontSize="48px",(t=r.createElement("div")).style.setProperty("visibility","hidden","important"),n={},i={},a=function(e){var n=r.createElement("span"),i=n.style;return i.position="absolute",i.top="0",i.left="0",i.fontFamily=e,n.textContent="mmMwWLliI0O&1",t.appendChild(n),n},s=function(e,t){return a("'".concat(e,"',").concat(t))},l=function(){return B.map(a)},u=function(){for(var e={},t=function(t){e[t]=B.map(function(e){return s(t,e)})},n=0;n<_.length;n++)t(_[n]);return e},c=function(e){return B.some(function(t,r){return e[r].offsetWidth!==n[t]||e[r].offsetHeight!==i[t]})},d=l(),f=u(),e.appendChild(t),p=0;p<B.length;p++)n[B[p]]=d[p].offsetWidth,i[B[p]]=d[p].offsetHeight;return[2,_.filter(function(e){return c(f[e])})]})})})},domBlockers:function(e){var t=(void 0===e?{}:e).debug;return(0,o.mG)(this,void 0,void 0,function(){var e,n,r,i,a;return(0,o.Jh)(this,function(l){switch(l.label){case 0:var u;if(!(D()||F()))return[2,void 0];return n=Object.keys(e={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',(u=atob)("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",u("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",u("LnNwb25zb3JpdA=="),".ylamainos",u("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),u("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",u("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",u("LmhlYWRlci1ibG9ja2VkLWFk"),u("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",u("I2FkXzMwMFgyNTA="),u("I2Jhbm5lcmZsb2F0MjI="),u("I2NhbXBhaWduLWJhbm5lcg=="),u("I0FkLUNvbnRlbnQ=")],adGuardChinese:[u("LlppX2FkX2FfSA=="),u("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",u("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),u("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",u("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",u("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",u("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),u("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),u("LmFkZ29vZ2xl"),u("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[u("YW1wLWF1dG8tYWRz"),u("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",u("I2FkX2ludmlld19hcmVh")],adGuardRussian:[u("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),u("LnJlY2xhbWE="),'div[id^="smi2adblock"]',u("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[u("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),u("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",u("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),u("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),u("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",u("I3Jla2xhbWk="),u("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),u("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),u("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[u("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",u("LndpZGdldF9wb19hZHNfd2lkZ2V0"),u("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",u("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[u("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),u("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",u("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",u("I3Jla2xhbW5pLWJveA=="),u("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",u("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[u("I2FkdmVydGVudGll"),u("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",u("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",u("LnNwb25zb3JsaW5rZ3J1ZW4="),u("I3dlcmJ1bmdza3k="),u("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),u("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[u("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",u("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),u("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),u("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[u("LnJla2xhbW9zX3RhcnBhcw=="),u("LnJla2xhbW9zX251b3JvZG9z"),u("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),u("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),u("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[u("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[u("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),u("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",u("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[u("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),u("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),u("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",u("LmFkX19tYWlu"),u("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[u("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[u("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),u("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[u("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),u("I2xpdmVyZUFkV3JhcHBlcg=="),u("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),u("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[u("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",u("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),u("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),u("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[u("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),u("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),u("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",u("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),u("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),u("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),u("ZGl2I3NrYXBpZWNfYWQ=")],ro:[u("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),u("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),u("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),u("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[u("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),u("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),u("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",u("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),u("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",u("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}),[4,function(e){var t;return(0,o.mG)(this,void 0,void 0,function(){var n,r,i,a,l,u,c;return(0,o.Jh)(this,function(o){switch(o.label){case 0:for(r=(n=document).createElement("div"),i=Array(e.length),a={},U(r),l=0;l<e.length;++l)"DIALOG"===(u=function(e){for(var t=function(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),i=/^\s*([a-z-]*)(.*)$/i.exec(e),o=i[1]||void 0,a={},s=/([.:#][\w-]+|\[.+?\])/gi,l=function(e,t){a[e]=a[e]||[],a[e].push(t)};;){var u=s.exec(i[2]);if(!u)break;var c=u[0];switch(c[0]){case".":l("class",c.slice(1));break;case"#":l("id",c.slice(1));break;case"[":var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)l(d[1],null!==(n=null!==(t=d[4])&&void 0!==t?t:d[5])&&void 0!==n?n:"");else throw Error(r);break;default:throw Error(r)}}return[o,a]}(e),n=t[0],r=t[1],i=document.createElement(null!=n?n:"div"),o=0,a=Object.keys(r);o<a.length;o++){var s=a[o],l=r[s].join(" ");"style"===s?function(e,t){for(var n=0,r=t.split(";");n<r.length;n++){var i=r[n],o=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(i);if(o){var a=o[1],s=o[2],l=o[4];e.setProperty(a,s,l||"")}}}(i.style,l):i.setAttribute(s,l)}return i}(e[l])).tagName&&u.show(),U(c=n.createElement("div")),c.appendChild(u),r.appendChild(c),i[l]=u;o.label=1;case 1:if(n.body)return[3,3];return[4,s(50)];case 2:return o.sent(),[3,1];case 3:n.body.appendChild(r);try{for(l=0;l<e.length;++l)i[l].offsetParent||(a[e[l]]=!0)}finally{null===(t=r.parentNode)||void 0===t||t.removeChild(r)}return[2,a]}})})}((a=[]).concat.apply(a,n.map(function(t){return e[t]})))];case 1:return r=l.sent(),t&&function(e,t){for(var n="DOM blockers debug:\n```",r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];n+="\n".concat(o,":");for(var a=0,s=e[o];a<s.length;a++){var l=s[a];n+="\n ".concat(t[l]?"\uD83D\uDEAB":"➡️"," ").concat(l)}}console.log("".concat(n,"\n```"))}(e,r),(i=n.filter(function(t){var n=e[t];return m(n.map(function(e){return r[e]}))>.6*n.length})).sort(),[2,i]}})})},fontPreferences:function(){var e,t;return e=function(e,t){for(var n={},r={},i=0,o=Object.keys(ee);i<o.length;i++){var a=o[i],s=ee[a],l=s[0],u=void 0===l?{}:l,c=s[1],d=void 0===c?"mmMwWLliI0fiflO&1":c,f=e.createElement("span");f.textContent=d,f.style.whiteSpace="nowrap";for(var p=0,h=Object.keys(u);p<h.length;p++){var m=h[p],v=u[m];void 0!==v&&(f.style[m]=v)}n[a]=f,t.append(e.createElement("br"),f)}for(var g=0,y=Object.keys(ee);g<y.length;g++){var a=y[g];r[a]=n[a].getBoundingClientRect().width}return r},void 0===t&&(t=4e3),W(function(n,r){var i=r.document,a=i.body,s=a.style;s.width="".concat(t,"px"),s.webkitTextSizeAdjust=s.textSizeAdjust="none",A()?a.style.zoom="".concat(1/r.devicePixelRatio):D()&&(a.style.zoom="reset");var l=i.createElement("div");return l.textContent=(0,o.ev)([],Array(t/20<<0),!0).map(function(){return"word"}).join(" "),a.appendChild(l),e(i,a)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')},audio:function(){var e,t,n,r,i,o;return D()&&V()&&N()||A()&&(e=navigator,t=window,m(["srLatency"in(n=Audio.prototype),"srChannelCount"in n,"devicePosture"in e,(r=t.visualViewport)&&"segments"in r,"getTextInformation"in Image.prototype])>=3)&&(o=(i=window).URLPattern,m(["union"in Set.prototype,"Iterator"in i,o&&"hasRegExpGroups"in o.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3)?-4:function(){var e,t,n=window,r=n.OfflineAudioContext||n.webkitOfflineAudioContext;if(!r)return -2;if(D()&&!j()&&!(m(["DOMRectList"in(e=window),"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3))return -1;var i=new r(1,5e3,44100),o=i.createOscillator();o.type="triangle",o.frequency.value=1e4;var a=i.createDynamicsCompressor();a.threshold.value=-50,a.knee.value=40,a.ratio.value=12,a.attack.value=0,a.release.value=.25,o.connect(a),a.connect(i.destination),o.start(0);var s=(t=function(){},[new Promise(function(e,n){var r=!1,o=0,a=0;i.oncomplete=function(t){return e(t.renderedBuffer)};var s=function(){setTimeout(function(){return n(I("timeout"))},Math.min(500,a+5e3-Date.now()))},u=function(){try{var e=i.startRendering();switch(l(e)&&d(e),i.state){case"running":a=Date.now(),r&&s();break;case"suspended":!document.hidden&&o++,r&&o>=3?n(I("suspended")):setTimeout(u,500)}}catch(e){n(e)}};u(),t=function(){!r&&(r=!0,a>0&&s())}}),t]),u=s[0],c=s[1],f=d(u.then(function(e){return function(e){for(var t=0,n=0;n<e.length;++n)t+=Math.abs(e[n]);return t}(e.getChannelData(0).subarray(4500))},function(e){if("timeout"===e.name||"suspended"===e.name)return -3;throw e}));return function(){return c(),f}}()},screenFrame:function(){var e=this;if(D()&&V()&&N())return function(){return Promise.resolve(void 0)};var t=function(){var e=this;return!function(){if(void 0===i){var e=function(){var t=X();Z(t)?i=setTimeout(e,2500):(r=t,i=void 0)};e()}}(),function(){return(0,o.mG)(e,void 0,void 0,function(){var e;return(0,o.Jh)(this,function(t){switch(t.label){case 0:var n,i;if(!Z(e=X()))return[3,2];if(r)return[2,(0,o.ev)([],r,!0)];if(!((n=document).fullscreenElement||n.msFullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement))return[3,2];return[4,((i=document).exitFullscreen||i.msExitFullscreen||i.mozCancelFullScreen||i.webkitExitFullscreen).call(i)];case 1:t.sent(),e=X(),t.label=2;case 2:return Z(e)||(r=e),[2,e]}})})}}();return function(){return(0,o.mG)(e,void 0,void 0,function(){var e,n;return(0,o.Jh)(this,function(r){switch(r.label){case 0:return[4,t()];case 1:return e=r.sent(),[2,[(n=function(e){return null===e?null:v(e,10)})(e[0]),n(e[1]),n(e[2]),n(e[3])]]}})})}},canvas:function(){var e,t,n,r,i,o,a,s,l,u,c;return e=D()&&V()&&N(),o=!1,s=((t=document.createElement("canvas")).width=1,t.height=1,a=[t,t.getContext("2d")])[0],(l=a[1])&&s.toDataURL?(l.rect(0,0,10,10),l.rect(2,2,6,6),o=!l.isPointInPath(5,5,"evenodd"),e?r=i="skipped":(r=(s.width=240,s.height=60,l.textBaseline="alphabetic",l.fillStyle="#f60",l.fillRect(100,1,62,20),l.fillStyle="#069",l.font='11pt "Times New Roman"',u="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835)),l.fillText(u,2,15),l.fillStyle="rgba(102, 204, 0, 0.2)",l.font="18pt Arial",l.fillText(u,4,45),n=(c=z(s))!==z(s)?["unstable","unstable"]:(function(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(var n=0,r=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];n<r.length;n++){var i=r[n],o=i[0],a=i[1],s=i[2];t.fillStyle=o,t.beginPath(),t.arc(a,s,40,0,2*Math.PI,!0),t.closePath(),t.fill()}t.fillStyle="#f9c",t.arc(60,60,60,0,2*Math.PI,!0),t.arc(60,60,20,0,2*Math.PI,!0),t.fill("evenodd")}(s,l),[z(s),c]))[0],i=n[1])):r=i="unsupported",{winding:o,geometry:r,text:i}},osCpu:function(){return navigator.oscpu},languages:function(){var e,t=navigator,n=[],r=t.language||t.userLanguage||t.browserLanguage||t.systemLanguage;if(void 0!==r&&n.push([r]),Array.isArray(t.languages))A()&&m([!("MediaSettingsRange"in(e=window)),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3||n.push(t.languages);else if("string"==typeof t.languages){var i=t.languages;i&&n.push(i.split(","))}return n},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return h(p(navigator.deviceMemory),void 0)},screenResolution:function(){if(!(D()&&V()&&N())){var e,t,n;return e=screen,(n=[(t=function(e){return h(f(e),null)})(e.width),t(e.height)]).sort().reverse(),n}},hardwareConcurrency:function(){return h(f(navigator.hardwareConcurrency),void 0)},timezone:function(){var e,t,n=null===(t=window.Intl)||void 0===t?void 0:t.DateTimeFormat;if(n){var r=new n().resolvedOptions().timeZone;if(r)return r}var i=-Math.max(p(new Date(e=new Date().getFullYear(),0,1).getTimezoneOffset()),p(new Date(e,6,1).getTimezoneOffset()));return"UTC".concat(i>=0?"+":"").concat(i)},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){var e,t;if(!(L()||m(["msWriteProfilerMark"in(e=window),"MSStream"in e,"msLaunchUri"in(t=navigator),"msSaveBlob"in t])>=3&&!L()))try{return!!window.indexedDB}catch(e){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var e=navigator.platform;return"MacIntel"===e&&D()&&!j()?!function(){if("iPad"===navigator.platform)return!0;var e=screen,t=e.width/e.height;return m(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}()?"iPhone":"iPad":e},plugins:function(){var e=navigator.plugins;if(e){for(var t=[],n=0;n<e.length;++n){var r=e[n];if(r){for(var i=[],o=0;o<r.length;++o){var a=r[o];i.push({type:a.type,suffixes:a.suffixes})}t.push({name:r.name,description:r.description,mimeTypes:i})}}return t}},touchSupport:function(){var e,t=navigator,n=0;void 0!==t.maxTouchPoints?n=f(t.maxTouchPoints):void 0!==t.msMaxTouchPoints&&(n=t.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return{maxTouchPoints:n,touchEvent:e,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];t<n.length;t++){var r=n[t],i=window[r];i&&"object"==typeof i&&e.push(r)}return e.sort()},cookiesEnabled:function(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var t=-1!==e.cookie.indexOf("cookietest=");return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch(e){return!1}},colorGamut:function(){for(var e=0,t=["rec2020","p3","srgb"];e<t.length;e++){var n=t[e];if(matchMedia("(color-gamut: ".concat(n,")")).matches)return n}},invertedColors:function(){return!!Y("inverted")||!Y("none")&&void 0},forcedColors:function(){return!!G("active")||!G("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=100;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw Error("Too high value")}},contrast:function(){return H("no-preference")?0:H("high")||H("more")?1:H("low")||H("less")?-1:H("forced")?10:void 0},reducedMotion:function(){return!!$("reduce")||!$("no-preference")&&void 0},reducedTransparency:function(){return!!K("reduce")||!K("no-preference")&&void 0},hdr:function(){return!!J("high")||!J("standard")&&void 0},math:function(){var e=q.acos||Q,t=q.acosh||Q,n=q.asin||Q,r=q.asinh||Q,i=q.atanh||Q,o=q.atan||Q,a=q.sin||Q,s=q.sinh||Q,l=q.cos||Q,u=q.cosh||Q,c=q.tan||Q,d=q.tanh||Q,f=q.exp||Q,p=q.expm1||Q,h=q.log1p||Q;return{acos:e(.12312423423423424),acosh:t(1e308),acoshPf:q.log(1e154+q.sqrt(1e154*1e154-1)),asin:n(.12312423423423424),asinh:r(1),asinhPf:q.log(1+q.sqrt(2)),atanh:i(.5),atanhPf:q.log(3)/2,atan:o(.5),sin:a(-1e300),sinh:s(1),sinhPf:q.exp(1)-1/q.exp(1)/2,cos:l(10.000000000123),cosh:u(1),coshPf:(q.exp(1)+1/q.exp(1))/2,tan:c(-1e300),tanh:d(1),tanhPf:(q.exp(2)-1)/(q.exp(2)+1),exp:f(1),expm1:p(1),expm1Pf:q.exp(1)-1,log1p:h(10),log1pPf:q.log(11),powPI:q.pow(q.PI,-100)}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]},applePay:function(){var e=window.ApplePaySession;if("function"!=typeof(null==e?void 0:e.canMakePayments))return -1;if(et())return -3;try{return e.canMakePayments()?1:0}catch(e){return function(e){if(e instanceof Error&&"InvalidAccessError"===e.name&&/\bfrom\b.*\binsecure\b/i.test(e.message))return -2;throw e}(e)}},privateClickMeasurement:function(){var e,t=document.createElement("a"),n=null!==(e=t.attributionSourceId)&&void 0!==e?e:t.attributionsourceid;return void 0===n?void 0:String(n)},audioBaseLatency:function(){if(!(F()||D()))return -2;if(!window.AudioContext)return -1;var e=new AudioContext().baseLatency;return null==e?-1:isFinite(e)?e:-3},dateTimeLocale:function(){if(!window.Intl)return -1;var e=window.Intl.DateTimeFormat;if(!e)return -2;var t=e().resolvedOptions().locale;return t||""===t?t:-3},webGlBasics:function(e){var t,n,r,i,o,a,s=es(e.cache);if(!s)return -1;if(!ec(s))return -2;var l=O()?null:s.getExtension(ea);return{version:(null===(t=s.getParameter(s.VERSION))||void 0===t?void 0:t.toString())||"",vendor:(null===(n=s.getParameter(s.VENDOR))||void 0===n?void 0:n.toString())||"",vendorUnmasked:l?null===(r=s.getParameter(l.UNMASKED_VENDOR_WEBGL))||void 0===r?void 0:r.toString():"",renderer:(null===(i=s.getParameter(s.RENDERER))||void 0===i?void 0:i.toString())||"",rendererUnmasked:l?null===(o=s.getParameter(l.UNMASKED_RENDERER_WEBGL))||void 0===o?void 0:o.toString():"",shadingLanguageVersion:(null===(a=s.getParameter(s.SHADING_LANGUAGE_VERSION))||void 0===a?void 0:a.toString())||""}},webGlExtensions:function(e){var t=es(e.cache);if(!t)return -1;if(!ec(t))return -2;var n=t.getSupportedExtensions(),r=t.getContextAttributes(),i=[],o=[],a=[],s=[],l=[];if(r)for(var u=0,c=Object.keys(r);u<c.length;u++){var d=c[u];o.push("".concat(d,"=").concat(r[d]))}for(var f=el(t),p=0;p<f.length;p++){var h=f[p],m=t[h];a.push("".concat(h,"=").concat(m).concat(en.has(m)?"=".concat(t.getParameter(m)):""))}if(n)for(var v=0;v<n.length;v++){var g=n[v];if(!(g===ea&&O()||"WEBGL_polygon_mode"===g&&(A()||D()))){var y=t.getExtension(g);if(!y){i.push(g);continue}for(var b=0,w=el(y);b<w.length;b++){var h=w[b],m=y[h];s.push("".concat(h,"=").concat(m).concat(er.has(m)?"=".concat(t.getParameter(m)):""))}}}for(var x=0;x<ei.length;x++)for(var E=ei[x],P=0;P<eo.length;P++){var T=eo[P],C=function(e,t,n){var r=e.getShaderPrecisionFormat(e[t],e[n]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}(t,E,T);l.push("".concat(E,".").concat(T,"=").concat(C.join(",")))}return s.sort(),a.sort(),{contextAttributes:o,parameters:a,shaderPrecisions:l,extensions:n,extensionParameters:s,unsupportedExtensions:i}}};function ef(e){return JSON.stringify(e,function(e,t){if(t instanceof Error){var n;return(0,o.pi)({name:t.name,message:t.message,stack:null===(n=t.stack)||void 0===n?void 0:n.split("\n")},t)}return t},2)}function ep(e){return function(e,t){var n,r=function(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r>127)return new TextEncoder().encode(e);t[n]=r}return t}(e);t=t||0;var i=[0,r.length],o=i[1]%16,a=i[1]-o,s=[0,t],l=[0,t],u=[0,0],c=[0,0];for(n=0;n<a;n+=16)u[0]=r[n+4]|r[n+5]<<8|r[n+6]<<16|r[n+7]<<24,u[1]=r[n]|r[n+1]<<8|r[n+2]<<16|r[n+3]<<24,c[0]=r[n+12]|r[n+13]<<8|r[n+14]<<16|r[n+15]<<24,c[1]=r[n+8]|r[n+9]<<8|r[n+10]<<16|r[n+11]<<24,y(u,C),b(u,31),y(u,S),x(s,u),b(s,27),g(s,l),y(s,R),g(s,M),y(c,S),b(c,33),y(c,C),x(l,c),b(l,31),g(l,s),y(l,R),g(l,k);u[0]=0,u[1]=0,c[0]=0,c[1]=0;var d=[0,0];switch(o){case 15:d[1]=r[n+14],w(d,48),x(c,d);case 14:d[1]=r[n+13],w(d,40),x(c,d);case 13:d[1]=r[n+12],w(d,32),x(c,d);case 12:d[1]=r[n+11],w(d,24),x(c,d);case 11:d[1]=r[n+10],w(d,16),x(c,d);case 10:d[1]=r[n+9],w(d,8),x(c,d);case 9:d[1]=r[n+8],x(c,d),y(c,S),b(c,33),y(c,C),x(l,c);case 8:d[1]=r[n+7],w(d,56),x(u,d);case 7:d[1]=r[n+6],w(d,48),x(u,d);case 6:d[1]=r[n+5],w(d,40),x(u,d);case 5:d[1]=r[n+4],w(d,32),x(u,d);case 4:d[1]=r[n+3],w(d,24),x(u,d);case 3:d[1]=r[n+2],w(d,16),x(u,d);case 2:d[1]=r[n+1],w(d,8),x(u,d);case 1:d[1]=r[n],x(u,d),y(u,C),b(u,31),y(u,S),x(s,u)}return x(s,i),x(l,i),g(s,l),g(l,s),T(s),T(l),g(s,l),g(l,s),("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)+("00000000"+(l[0]>>>0).toString(16)).slice(-8)+("00000000"+(l[1]>>>0).toString(16)).slice(-8)}(function(e){for(var t="",n=0,r=Object.keys(e).sort();n<r.length;n++){var i=r[n],o=e[i],a="error"in o?"error":JSON.stringify(o.value);t+="".concat(t?"|":"").concat(i.replace(/([:|\\])/g,"\\$1"),":").concat(a)}return t}(e))}var eh={load:function(e){var t;return void 0===e&&(e={}),(0,o.mG)(this,void 0,void 0,function(){var n,r;return(0,o.Jh)(this,function(i){var l,f,p,h,m,g,y,b,w,x,E,P;switch(i.label){case 0:return(null===(t=e.monitoring)||void 0===t||t)&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(a,"/npm-monitoring"),!0),e.send()}catch(e){console.error(e)}}(),n=e.delayFallback,r=e.debug,[4,(void 0===(l=n)&&(l=50),f=l,p=2*l,(h=window.requestIdleCallback)?new Promise(function(e){return h.call(window,function(){return e()},{timeout:p})}):s(Math.min(f,p)))];case 1:return i.sent(),m={cache:{},debug:r},g=[],w=d(c(b=Object.keys(ed).filter(function(e){return!function(e,t){for(var n=0,r=e.length;n<r;++n)if(e[n]===t)return!0;return!1}(g,e)}),function(e){var t,n;return t=ed[e],n=d(new Promise(function(e){var n=Date.now();u(t.bind(null,m),function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=Date.now()-n;if(!t[0])return e(function(){return{error:t[1],duration:i}});var o=t[1];if("function"!=typeof o)return e(function(){return{value:o,duration:i}});e(function(){return new Promise(function(e){var t=Date.now();u(o,function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=i+Date.now()-t;if(!n[0])return e({error:n[1],duration:o});e({value:n[1],duration:o})})})})})})),function(){return n.then(function(e){return e()})}},void 0)),[2,(x=function(){return(0,o.mG)(this,void 0,void 0,function(){var e,t,n;return(0,o.Jh)(this,function(r){switch(r.label){case 0:return[4,w];case 1:return[4,c(r.sent(),function(e){return d(e())},y)];case 2:return[4,Promise.all(r.sent())];case 3:for(n=0,e=r.sent(),t={};n<b.length;++n)t[b[n]]=e[n];return[2,t]}})})},E=r,P=Date.now(),{get:function(e){return(0,o.mG)(this,void 0,void 0,function(){var t,n,r;return(0,o.Jh)(this,function(i){switch(i.label){case 0:return t=Date.now(),[4,x()];case 1:var o,s,l,u;return r={get visitorId(){return void 0===u&&(u=ep(this.components)),u},set visitorId(visitorId){u=visitorId},confidence:(l=v(.99+.01*(s=function(e){if(F())return .4;if(D())return j()&&!(V()&&N())?.5:.3;var t="value"in e.platform?e.platform.value:"";return/^Win/.test(t)?.6:/^Mac/.test(t)?.5:.7}(o=n=i.sent())),1e-4),{score:s,comment:"$ if upgrade to Pro: https://fpjs.dev/pro".replace(/\$/g,"".concat(l))}),components:o,version:a},(E||(null==e?void 0:e.debug))&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(r.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(t-P,"\nvisitorId: ").concat(r.visitorId,"\ncomponents: ").concat(ef(n),"\n```")),[2,r]}})})}})]}})})},hashComponents:ep,componentsToDebugString:ef}},5478:function(e,t,n){n.d(t,{Ry:function(){return u}});var r=new WeakMap,i=new WeakMap,o={},a=0,s=function(e){return e&&(e.host||s(e.parentNode))},l=function(e,t,n,l){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=s(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});o[n]||(o[n]=new WeakMap);var c=o[n],d=[],f=new Set,p=new Set(u),h=function(e){!e||f.has(e)||(f.add(e),h(e.parentNode))};u.forEach(h);var m=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))m(e);else try{var t=e.getAttribute(l),o=null!==t&&"false"!==t,a=(r.get(e)||0)+1,s=(c.get(e)||0)+1;r.set(e,a),c.set(e,s),d.push(e),1===a&&o&&i.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute(l,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),f.clear(),a++,function(){d.forEach(function(e){var t=r.get(e)-1,o=c.get(e)-1;r.set(e,t),c.set(e,o),t||(i.has(e)||e.removeAttribute(l),i.delete(e)),o||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,i=new WeakMap,o={})}},u=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),l(r,i,n,"aria-hidden")):function(){return null}}},99376:function(e,t,n){var r=n(35475);n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},87922:function(e,t,n){n.d(t,{Z:function(){return $}});var r,i,o,a,s,l,u,c=n(5853),d=n(2265),f="right-scroll-bar-position",p="width-before-scroll-bar";function h(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var m="undefined"!=typeof window?d.useLayoutEffect:d.useEffect,v=new WeakMap,g=(void 0===r&&(r={}),(void 0===i&&(i=function(e){return e}),o=[],a=!1,s={read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:null},useMedium:function(e){var t=i(e,a);return o.push(t),function(){o=o.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;o.length;){var t=o;o=[],t.forEach(e)}o={push:function(t){return e(t)},filter:function(){return o}}},assignMedium:function(e){a=!0;var t=[];if(o.length){var n=o;o=[],n.forEach(e),t=o}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),o={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),o}}}}).options=(0,c.pi)({async:!0,ssr:!1},r),s),y=function(){},b=d.forwardRef(function(e,t){var n,r,i,o,a=d.useRef(null),s=d.useState({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:y}),l=s[0],u=s[1],f=e.forwardProps,p=e.children,b=e.className,w=e.removeScrollBar,x=e.enabled,E=e.shards,P=e.sideCar,T=e.noIsolation,C=e.inert,S=e.allowPinchZoom,R=e.as,M=e.gapMode,k=(0,c._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=(n=[a,t],r=function(e){return n.forEach(function(t){return h(t,e)})},(i=(0,d.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,o=i.facade,m(function(){var e=v.get(o);if(e){var t=new Set(e),r=new Set(n),i=o.current;t.forEach(function(e){r.has(e)||h(e,null)}),r.forEach(function(e){t.has(e)||h(e,i)})}v.set(o,n)},[n]),o),A=(0,c.pi)((0,c.pi)({},k),l);return d.createElement(d.Fragment,null,x&&d.createElement(P,{sideCar:g,removeScrollBar:w,shards:E,noIsolation:T,inert:C,setCallbacks:u,allowPinchZoom:!!S,lockRef:a,gapMode:M}),f?d.cloneElement(d.Children.only(p),(0,c.pi)((0,c.pi)({},A),{ref:L})):d.createElement(void 0===R?"div":R,(0,c.pi)({},A,{className:b,ref:L}),p))});b.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},b.classNames={fullWidth:p,zeroRight:f};var w=function(e){var t=e.sideCar,n=(0,c._T)(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,(0,c.pi)({},n))};w.isSideCarExport=!0;var x=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=u||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},E=function(){var e=x();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},P=function(){var e=E();return function(t){return e(t.styles,t.dynamic),null}},T={left:0,top:0,right:0,gap:0},C=function(e){return parseInt(e||"",10)||0},S=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[C(n),C(r),C(i)]},R=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return T;var t=S(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])}},M=P(),k="data-scroll-locked",L=function(e,t,n,r){var i=e.left,o=e.top,a=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(k,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"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(p," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(f," .").concat(f," {\n right: 0 ").concat(r,";\n }\n \n .").concat(p," .").concat(p," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(k,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},A=function(){var e=parseInt(document.body.getAttribute(k)||"0",10);return isFinite(e)?e:0},D=function(){d.useEffect(function(){return document.body.setAttribute(k,(A()+1).toString()),function(){var e=A()-1;e<=0?document.body.removeAttribute(k):document.body.setAttribute(k,e.toString())}},[])},j=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;D();var o=d.useMemo(function(){return R(i)},[i]);return d.createElement(M,{styles:L(o,!t,i,n?"":"!important")})},N=!1;if("undefined"!=typeof window)try{var O=Object.defineProperty({},"passive",{get:function(){return N=!0,!0}});window.addEventListener("test",O,O),window.removeEventListener("test",O,O)}catch(e){N=!1}var V=!!N&&{passive:!1},F=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])},I=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),W(e,r)){var i=B(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},W=function(e,t){return"v"===e?F(t,"overflowY"):F(t,"overflowX")},B=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},_=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,p=0;do{var h=B(e,l),m=h[0],v=h[1]-h[2]-a*m;(m||v)&&W(e,l)&&(f+=v,p+=m),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(f)||!i&&s>f)?c=!0:!d&&(i&&1>Math.abs(p)||!i&&-s>p)&&(c=!0),c},z=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},X=function(e){return[e.deltaX,e.deltaY]},Z=function(e){return e&&"current"in e?e.current:e},U=0,Y=[],G=(l=function(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),i=d.useState(U++)[0],o=d.useState(P)[0],a=d.useRef(e);d.useEffect(function(){a.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,c.ev)([e.lockRef.current],(e.shards||[]).map(Z),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=d.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var i,o=z(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=I(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=I(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var p=r.current||i;return _(p,t,e,"h"===p?l:u,!0)},[]),l=d.useCallback(function(e){if(Y.length&&Y[Y.length-1]===o){var n="deltaY"in e?X(e):z(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 i=(a.current.shards||[]).map(Z).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=d.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,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)},[]),f=d.useCallback(function(e){n.current=z(e),r.current=void 0},[]),p=d.useCallback(function(t){u(t.type,X(t),t.target,s(t,e.lockRef.current))},[]),h=d.useCallback(function(t){u(t.type,z(t),t.target,s(t,e.lockRef.current))},[]);d.useEffect(function(){return Y.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",l,V),document.addEventListener("touchmove",l,V),document.addEventListener("touchstart",f,V),function(){Y=Y.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,V),document.removeEventListener("touchmove",l,V),document.removeEventListener("touchstart",f,V)}},[]);var m=e.removeScrollBar,v=e.inert;return d.createElement(d.Fragment,null,v?d.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?d.createElement(j,{gapMode:e.gapMode}):null)},g.useMedium(l),w),H=d.forwardRef(function(e,t){return d.createElement(b,(0,c.pi)({},e,{ref:t,sideCar:G}))});H.classNames=b.classNames;var $=H},50032:function(e,t,n){n.d(t,{x7:function(){return ef},Me:function(){return ea},oo:function(){return eh},RR:function(){return eu},Cp:function(){return ed},dr:function(){return ep},cv:function(){return es},uY:function(){return el},dp:function(){return ec}});let r=["top","right","bottom","left"],i=Math.min,o=Math.max,a=Math.round,s=Math.floor,l=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},c={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 h(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function v(e){return["top","bottom"].includes(f(e))?"y":"x"}function g(e){return e.replace(/start|end/g,e=>c[e])}function y(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function b(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function w(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function x(e,t,n){let r,{reference:i,floating:o}=e,a=v(t),s=h(v(t)),l=m(s),u=f(t),c="y"===a,d=i.x+i.width/2-o.width/2,g=i.y+i.height/2-o.height/2,y=i[l]/2-o[l]/2;switch(u){case"top":r={x:d,y:i.y-o.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:g};break;case"left":r={x:i.x-o.width,y:g};break;default:r={x:i.x,y:i.y}}switch(p(t)){case"start":r[s]-=y*(n&&c?-1:1);break;case"end":r[s]+=y*(n&&c?-1:1)}return r}let E=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=x(u,r,l),f=r,p={},h=0;for(let n=0;n<s.length;n++){let{name:o,fn:m}=s[n],{x:v,y:g,data:y,reset:b}=await m({x:c,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=v?v:c,d=null!=g?g:d,p={...p,[o]:{...p[o],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:c,y:d}=x(u,f,l)),n=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:p}};async function P(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=d(t,e),m=b(h),v=s[p?"floating"===f?"reference":"floating":f],g=w(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(v)))||n?v:v.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===f?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,x=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),E=await (null==o.isElement?void 0:o.isElement(x))&&await (null==o.getScale?void 0:o.getScale(x))||{x:1,y:1},P=w(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:x,strategy:l}):y);return{top:(g.top-P.top+m.top)/E.y,bottom:(P.bottom-g.bottom+m.bottom)/E.y,left:(g.left-P.left+m.left)/E.x,right:(P.right-g.right+m.right)/E.x}}function T(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function C(e){return r.some(t=>e[t]>=0)}async function S(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=f(n),s=p(n),l="y"===v(n),u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,h=d(t,e),{mainAxis:m,crossAxis:g,alignmentAxis:y}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&"number"==typeof y&&(g="end"===s?-1*y:y),l?{x:g*c,y:m*u}:{x:m*u,y:g*c}}function R(){return"undefined"!=typeof window}function M(e){return A(e)?(e.nodeName||"").toLowerCase():"#document"}function k(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function L(e){var t;return null==(t=(A(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function A(e){return!!R()&&(e instanceof Node||e instanceof k(e).Node)}function D(e){return!!R()&&(e instanceof Element||e instanceof k(e).Element)}function j(e){return!!R()&&(e instanceof HTMLElement||e instanceof k(e).HTMLElement)}function N(e){return!!R()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof k(e).ShadowRoot)}function O(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=B(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function V(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function F(e){let t=I(),n=D(e)?B(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","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 W(e){return["html","body","#document"].includes(M(e))}function B(e){return k(e).getComputedStyle(e)}function _(e){return D(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function z(e){if("html"===M(e))return e;let t=e.assignedSlot||e.parentNode||N(e)&&e.host||L(e);return N(t)?t.host:t}function X(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=z(t);return W(n)?t.ownerDocument?t.ownerDocument.body:t.body:j(n)&&O(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=k(i);if(o){let e=Z(a);return t.concat(a,a.visualViewport||[],O(i)?i:[],e&&n?X(e):[])}return t.concat(i,X(i,[],n))}function Z(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function U(e){let t=B(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=j(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,l=a(n)!==o||a(r)!==s;return l&&(n=o,r=s),{width:n,height:r,$:l}}function Y(e){return D(e)?e:e.contextElement}function G(e){let t=Y(e);if(!j(t))return l(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=U(t),s=(o?a(n.width):n.width)/r,u=(o?a(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),u&&Number.isFinite(u)||(u=1),{x:s,y:u}}let H=l(0);function $(e){let t=k(e);return I()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:H}function K(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),a=Y(e),s=l(1);t&&(r?D(r)&&(s=G(r)):s=G(e));let u=(void 0===(i=n)&&(i=!1),r&&(!i||r===k(a))&&i)?$(a):l(0),c=(o.left+u.x)/s.x,d=(o.top+u.y)/s.y,f=o.width/s.x,p=o.height/s.y;if(a){let e=k(a),t=r&&D(r)?k(r):r,n=e,i=Z(n);for(;i&&r&&t!==n;){let e=G(i),t=i.getBoundingClientRect(),r=B(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,d*=e.y,f*=e.x,p*=e.y,c+=o,d+=a,i=Z(n=k(i))}}return w({width:f,height:p,x:c,y:d})}function J(e,t){let n=_(e).scrollLeft;return t?t.left+n:K(L(e)).left+n}function q(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:J(e,r)),y:r.top+t.scrollTop}}function Q(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=k(e),r=L(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=I();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){let t=L(e),n=_(e),r=e.ownerDocument.body,i=o(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=o(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-n.scrollLeft+J(e),l=-n.scrollTop;return"rtl"===B(r).direction&&(s+=o(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:s,y:l}}(L(e));else if(D(t))r=function(e,t){let n=K(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=j(e)?G(e):l(1),a=e.clientWidth*o.x;return{width:a,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{let n=$(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return w(r)}function ee(e){return"static"===B(e).position}function et(e,t){if(!j(e)||"fixed"===B(e).position)return null;if(t)return t(e);let n=e.offsetParent;return L(e)===n&&(n=n.ownerDocument.body),n}function en(e,t){let n=k(e);if(V(e))return n;if(!j(e)){let t=z(e);for(;t&&!W(t);){if(D(t)&&!ee(t))return t;t=z(t)}return n}let r=et(e,t);for(;r&&["table","td","th"].includes(M(r))&&ee(r);)r=et(r,t);return r&&W(r)&&ee(r)&&!F(r)?n:r||function(e){let t=z(e);for(;j(t)&&!W(t);){if(F(t))return t;if(V(t))break;t=z(t)}return null}(e)||n}let er=async function(e){let t=this.getOffsetParent||en,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=j(t),i=L(t),o="fixed"===n,a=K(e,!0,o,t),s={scrollLeft:0,scrollTop:0},u=l(0);if(r||!r&&!o){if(("body"!==M(t)||O(i))&&(s=_(t)),r){let e=K(t,!0,o,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&(u.x=J(i))}let c=!i||r||o?l(0):q(i,s);return{x:a.left+s.scrollLeft-u.x-c.x,y:a.top+s.scrollTop-u.y-c.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ei={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,a=L(r),s=!!t&&V(t.floating);if(r===a||s&&o)return n;let u={scrollLeft:0,scrollTop:0},c=l(1),d=l(0),f=j(r);if((f||!f&&!o)&&(("body"!==M(r)||O(a))&&(u=_(r)),j(r))){let e=K(r);c=G(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let p=!a||f||o?l(0):q(a,u,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-u.scrollTop*c.y+d.y+p.y}},getDocumentElement:L,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e,s=[..."clippingAncestors"===n?V(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=X(e,[],!1).filter(e=>D(e)&&"body"!==M(e)),i=null,o="fixed"===B(e).position,a=o?z(e):e;for(;D(a)&&!W(a);){let t=B(a),n=F(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||O(a)&&!n&&function e(t,n){let r=z(t);return!(r===n||!D(r)||W(r))&&("fixed"===B(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):i=t,a=z(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=s[0],u=s.reduce((e,n)=>{let r=Q(t,n,a);return e.top=o(r.top,e.top),e.right=i(r.right,e.right),e.bottom=i(r.bottom,e.bottom),e.left=o(r.left,e.left),e},Q(t,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:en,getElementRects:er,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=U(e);return{width:t,height:n}},getScale:G,isElement:D,isRTL:function(e){return"rtl"===B(e).direction}};function eo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ea(e,t,n,r){let a;void 0===r&&(r={});let{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=r,p=Y(e),h=l||u?[...p?X(p):[],...X(t)]:[];h.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let m=p&&d?function(e,t){let n,r=null,a=L(e);function l(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function u(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),l();let f=e.getBoundingClientRect(),{left:p,top:h,width:m,height:v}=f;if(c||t(),!m||!v)return;let g=s(h),y=s(a.clientWidth-(p+m)),b={rootMargin:-g+"px "+-y+"px "+-s(a.clientHeight-(h+v))+"px "+-s(p)+"px",threshold:o(0,i(1,d))||1},w=!0;function x(t){let r=t[0].intersectionRatio;if(r!==d){if(!w)return u();r?u(!1,r):n=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==r||eo(f,e.getBoundingClientRect())||u(),w=!1}try{r=new IntersectionObserver(x,{...b,root:a.ownerDocument})}catch(e){r=new IntersectionObserver(x,b)}r.observe(e)}(!0),l}(p,n):null,v=-1,g=null;c&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&g&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),p&&!f&&g.observe(p),g.observe(t));let y=f?K(e):null;return f&&function t(){let r=K(e);y&&!eo(y,r)&&n(),y=r,a=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{l&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=g)||e.disconnect(),g=null,f&&cancelAnimationFrame(a)}}let es=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:a,middlewareData:s}=t,l=await S(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},el=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:a}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=d(e,t),p={x:n,y:r},m=await P(t,c),g=v(f(a)),y=h(g),b=p[y],w=p[g];if(s){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=b+m[e],r=b-m[t];b=o(n,i(b,r))}if(l){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=w+m[e],r=w-m[t];w=o(n,i(w,r))}let x=u.fn({...t,[y]:b,[g]:w});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[y]:s,[g]:l}}}}}},eu=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,a;let{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:b,elements:w}=t,{mainAxis:x=!0,crossAxis:E=!0,fallbackPlacements:T,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:R=!0,...M}=d(e,t);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};let k=f(s),L=v(c),A=f(c)===c,D=await (null==b.isRTL?void 0:b.isRTL(w.floating)),j=T||(A||!R?[y(c)]:function(e){let t=y(e);return[g(e),t,g(t)]}(c)),N="none"!==S;!T&&N&&j.push(...function(e,t,n,r){let i=p(e),o=function(e,t,n){let r=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(n)return t?i:r;return t?r:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(f(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(g)))),o}(c,R,S,D));let O=[c,...j],V=await P(t,M),F=[],I=(null==(r=l.flip)?void 0:r.overflows)||[];if(x&&F.push(V[k]),E){let e=function(e,t,n){void 0===n&&(n=!1);let r=p(e),i=h(v(e)),o=m(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=y(a)),[a,y(a)]}(s,u,D);F.push(V[e[0]],V[e[1]])}if(I=[...I,{placement:s,overflows:F}],!F.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=O[e];if(t)return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(o=I.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(C){case"bestFit":{let e=null==(a=I.filter(e=>{if(N){let t=v(e.placement);return t===L||"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:a[0];e&&(n=e);break}case"initialPlacement":n=c}if(s!==n)return{reset:{placement:n}}}return{}}}},ec=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let a,s;let{placement:l,rects:u,platform:c,elements:h}=t,{apply:m=()=>{},...g}=d(e,t),y=await P(t,g),b=f(l),w=p(l),x="y"===v(l),{width:E,height:T}=u.floating;"top"===b||"bottom"===b?(a=b,s=w===(await (null==c.isRTL?void 0:c.isRTL(h.floating))?"start":"end")?"left":"right"):(s=b,a="end"===w?"top":"bottom");let C=T-y.top-y.bottom,S=E-y.left-y.right,R=i(T-y[a],C),M=i(E-y[s],S),k=!t.middlewareData.shift,L=R,A=M;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(A=S),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(L=C),k&&!w){let e=o(y.left,0),t=o(y.right,0),n=o(y.top,0),r=o(y.bottom,0);x?A=E-2*(0!==e||0!==t?e+t:o(y.left,y.right)):L=T-2*(0!==n||0!==r?n+r:o(y.top,y.bottom))}await m({...t,availableWidth:A,availableHeight:L});let D=await c.getDimensions(h.floating);return E!==D.width||T!==D.height?{reset:{rects:!0}}:{}}}},ed=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...i}=d(e,t);switch(r){case"referenceHidden":{let e=T(await P(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:C(e)}}}case"escaped":{let e=T(await P(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:C(e)}}}default:return{}}}}},ef=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:a,rects:s,platform:l,elements:u,middlewareData:c}=t,{element:f,padding:g=0}=d(e,t)||{};if(null==f)return{};let y=b(g),w={x:n,y:r},x=h(v(a)),E=m(x),P=await l.getDimensions(f),T="y"===x,C=T?"clientHeight":"clientWidth",S=s.reference[E]+s.reference[x]-w[x]-s.floating[E],R=w[x]-s.reference[x],M=await (null==l.getOffsetParent?void 0:l.getOffsetParent(f)),k=M?M[C]:0;k&&await (null==l.isElement?void 0:l.isElement(M))||(k=u.floating[C]||s.floating[E]);let L=k/2-P[E]/2-1,A=i(y[T?"top":"left"],L),D=i(y[T?"bottom":"right"],L),j=k-P[E]-D,N=k/2-P[E]/2+(S/2-R/2),O=o(A,i(N,j)),V=!c.arrow&&null!=p(a)&&N!==O&&s.reference[E]/2-(N<A?A:D)-P[E]/2<0,F=V?N<A?N-A:N-j:0;return{[x]:w[x]+F,data:{[x]:O,centerOffset:N-O-F,...V&&{alignmentOffset:F}},reset:V}}}),ep=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=d(e,t),c={x:n,y:r},p=v(i),m=h(p),g=c[m],y=c[p],b=d(s,t),w="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){let e="y"===m?"height":"width",t=o.reference[m]-o.floating[e]+w.mainAxis,n=o.reference[m]+o.reference[e]-w.mainAxis;g<t?g=t:g>n&&(g=n)}if(u){var x,E;let e="y"===m?"width":"height",t=["top","left"].includes(f(i)),n=o.reference[p]-o.floating[e]+(t&&(null==(x=a.offset)?void 0:x[p])||0)+(t?0:w.crossAxis),r=o.reference[p]+o.reference[e]+(t?0:(null==(E=a.offset)?void 0:E[p])||0)-(t?w.crossAxis:0);y<n?y=n:y>r&&(y=r)}return{[m]:g,[p]:y}}}},eh=(e,t,n)=>{let r=new Map,i={platform:ei,...n},o={...i.platform,_c:r};return E(e,t,{...i,platform:o})}},97859:function(e,t,n){n.d(t,{Cp:function(){return y},RR:function(){return v},YF:function(){return d},cv:function(){return p},dp:function(){return g},dr:function(){return m},uY:function(){return h},x7:function(){return b}});var r=n(50032),i=n(2265),o=n(54887),a="undefined"!=typeof document?i.useLayoutEffect:function(){};function s(e,t){let n,r,i;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(!s(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!s(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function l(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){let n=l(e);return Math.round(t*n)/n}function c(e){let t=i.useRef(e);return a(()=>{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:h}={},transform:m=!0,whileElementsMounted:v,open:g}=e,[y,b]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[w,x]=i.useState(d);s(w,d)||x(d);let[E,P]=i.useState(null),[T,C]=i.useState(null),S=i.useCallback(e=>{e!==L.current&&(L.current=e,P(e))},[]),R=i.useCallback(e=>{e!==A.current&&(A.current=e,C(e))},[]),M=p||E,k=h||T,L=i.useRef(null),A=i.useRef(null),D=i.useRef(y),j=null!=v,N=c(v),O=c(f),V=c(g),F=i.useCallback(()=>{if(!L.current||!A.current)return;let e={placement:t,strategy:n,middleware:w};O.current&&(e.platform=O.current),(0,r.oo)(L.current,A.current,e).then(e=>{let t={...e,isPositioned:!1!==V.current};I.current&&!s(D.current,t)&&(D.current=t,o.flushSync(()=>{b(t)}))})},[w,t,n,O,V]);a(()=>{!1===g&&D.current.isPositioned&&(D.current.isPositioned=!1,b(e=>({...e,isPositioned:!1})))},[g]);let I=i.useRef(!1);a(()=>(I.current=!0,()=>{I.current=!1}),[]),a(()=>{if(M&&(L.current=M),k&&(A.current=k),M&&k){if(N.current)return N.current(M,k,F);F()}},[M,k,F,N,j]);let W=i.useMemo(()=>({reference:L,floating:A,setReference:S,setFloating:R}),[S,R]),B=i.useMemo(()=>({reference:M,floating:k}),[M,k]),_=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!B.floating)return e;let t=u(B.floating,y.x),r=u(B.floating,y.y);return m?{...e,transform:"translate("+t+"px, "+r+"px)",...l(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,m,B.floating,y.x,y.y]);return i.useMemo(()=>({...y,update:F,refs:W,elements:B,floatingStyles:_}),[y,F,W,B,_])}let f=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:i}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.x7)({element:n.current,padding:i}).fn(t):{}:n?(0,r.x7)({element:n,padding:i}).fn(t):{}}}),p=(e,t)=>({...(0,r.cv)(e),options:[e,t]}),h=(e,t)=>({...(0,r.uY)(e),options:[e,t]}),m=(e,t)=>({...(0,r.dr)(e),options:[e,t]}),v=(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]}),b=(e,t)=>({...f(e),options:[e,t]})},6741: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)}}},45236:function(e,t,n){n.d(t,{z$:function(){return C},fC:function(){return T}});var r=n(2265),i=n(98575),o=n(73966),a=n(6741),s=n(80886),l=n(90420),u=n(71599);n(54887);var c=n(37053),d=n(57437),f=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...i}=e,o=r?c.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(o,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),p="Checkbox",[h,m]=(0,o.b)(p),[v,g]=h(p),y=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:o,checked:l,defaultChecked:u,required:c,disabled:p,value:h="on",onCheckedChange:m,form:g,...y}=e,[b,w]=r.useState(null),T=(0,i.e)(t,e=>w(e)),C=r.useRef(!1),S=!b||g||!!b.closest("form"),[R=!1,M]=(0,s.T)({prop:l,defaultProp:u,onChange:m}),k=r.useRef(R);return r.useEffect(()=>{let e=null==b?void 0:b.form;if(e){let t=()=>M(k.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[b,M]),(0,d.jsxs)(v,{scope:n,state:R,disabled:p,children:[(0,d.jsx)(f.button,{type:"button",role:"checkbox","aria-checked":E(R)?"mixed":R,"aria-required":c,"data-state":P(R),"data-disabled":p?"":void 0,disabled:p,value:h,...y,ref:T,onKeyDown:(0,a.M)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,a.M)(e.onClick,e=>{M(e=>!!E(e)||!e),S&&(C.current=e.isPropagationStopped(),C.current||e.stopPropagation())})}),S&&(0,d.jsx)(x,{control:b,bubbles:!C.current,name:o,value:h,checked:R,required:c,disabled:p,form:g,style:{transform:"translateX(-100%)"},defaultChecked:!E(u)&&u})]})});y.displayName=p;var b="CheckboxIndicator",w=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...i}=e,o=g(b,n);return(0,d.jsx)(u.z,{present:r||E(o.state)||!0===o.state,children:(0,d.jsx)(f.span,{"data-state":P(o.state),"data-disabled":o.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});w.displayName=b;var x=e=>{let{control:t,checked:n,bubbles:i=!0,defaultChecked:o,...a}=e,s=r.useRef(null),u=function(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])}(n),c=(0,l.t)(t);r.useEffect(()=>{let e=s.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(u!==n&&t){let r=new Event("click",{bubbles:i});e.indeterminate=E(n),t.call(e,!E(n)&&n),e.dispatchEvent(r)}},[u,n,i]);let f=r.useRef(!E(n)&&n);return(0,d.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:null!=o?o:f.current,...a,tabIndex:-1,ref:s,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function E(e){return"indeterminate"===e}function P(e){return E(e)?"indeterminate":e?"checked":"unchecked"}var T=y,C=w},98575:function(e,t,n){n.d(t,{F:function(){return o},e:function(){return a}});var r=n(2265);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():i(e[t],null)}}}}function a(...e){return r.useCallback(o(...e),e)}},73966:function(e,t,n){n.d(t,{b:function(){return a},k:function(){return o}});var r=n(2265),i=n(57437);function o(e,t){let n=r.createContext(t),o=e=>{let{children:t,...o}=e,a=r.useMemo(()=>o,Object.values(o));return(0,i.jsx)(n.Provider,{value:a,children:t})};return o.displayName=e+"Provider",[o,function(i){let o=r.useContext(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function a(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return o.scopeName=e,[function(t,o){let a=r.createContext(o),s=n.length;n=[...n,o];let l=t=>{let{scope:n,children:o,...l}=t,u=n?.[e]?.[s]||a,c=r.useMemo(()=>l,Object.values(l));return(0,i.jsx)(u.Provider,{value:c,children:o})};return l.displayName=t+"Provider",[l,function(n,i){let l=i?.[e]?.[s]||a,u=r.useContext(l);if(u)return u;if(void 0!==o)return o;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 i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(o,...t)]}},49009:function(e,t,n){let r;n.d(t,{x8:function(){return eL},VY:function(){return eR},dk:function(){return ek},aV:function(){return eS},h_:function(){return eC},fC:function(){return eP},Dx:function(){return eM},xz:function(){return eT}});var i,o=n(2265),a=n.t(o,2);function s(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function u(...e){return t=>{let n=!1,r=e.map(e=>{let r=l(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():l(e[t],null)}}}}function c(...e){return o.useCallback(u(...e),e)}var d=n(57437),f=globalThis?.document?o.useLayoutEffect:()=>{},p=a[" useId ".trim().toString()]||(()=>void 0),h=0;function m(e){let[t,n]=o.useState(p());return f(()=>{e||n(e=>e??String(h++))},[e]),e||(t?`radix-${t}`:"")}var v=a[" useInsertionEffect ".trim().toString()]||f;Symbol("RADIX:SYNC_STATE");var g=n(54887);function y(e){let t=function(e){let t=o.forwardRef((e,t)=>{let{children:n,...r}=e;if(o.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref,s=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==o.Fragment&&(s.ref=t?u(t,a):a),o.cloneElement(n,s)}return o.Children.count(n)>1?o.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=o.forwardRef((e,n)=>{let{children:r,...i}=e,a=o.Children.toArray(r),s=a.find(w);if(s){let e=s.props.children,r=a.map(t=>t!==s?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,d.jsx)(t,{...i,ref:n,children:o.isValidElement(e)?o.cloneElement(e,void 0,r):null})}return(0,d.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var b=Symbol("radix.slottable");function w(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===b}var x=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=y(`Primitive.${t}`),r=o.forwardRef((e,r)=>{let{asChild:i,...o}=e,a=i?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(a,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function E(e){let t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>(...e)=>t.current?.(...e),[])}var P="dismissableLayer.update",T=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),C=o.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:p,onDismiss:h,...m}=e,v=o.useContext(T),[g,y]=o.useState(null),b=null!==(r=null==g?void 0:g.ownerDocument)&&void 0!==r?r:null===(n=globalThis)||void 0===n?void 0:n.document,[,w]=o.useState({}),C=c(t,e=>y(e)),M=Array.from(v.layers),[k]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),L=M.indexOf(k),A=g?M.indexOf(g):-1,D=v.layersWithOutsidePointerEventsDisabled.size>0,j=A>=L,N=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=E(e),i=o.useRef(!1),a=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){R("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...v.branches].some(e=>e.contains(t));!j||n||(null==u||u(e),null==p||p(e),e.defaultPrevented||null==h||h())},b),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=E(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&R("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;[...v.branches].some(e=>e.contains(t))||(null==f||f(e),null==p||p(e),e.defaultPrevented||null==h||h())},b);return!function(e,t=globalThis?.document){let n=E(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{A!==v.layers.size-1||(null==l||l(e),!e.defaultPrevented&&h&&(e.preventDefault(),h()))},b),o.useEffect(()=>{if(g)return a&&(0===v.layersWithOutsidePointerEventsDisabled.size&&(i=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(g)),v.layers.add(g),S(),()=>{a&&1===v.layersWithOutsidePointerEventsDisabled.size&&(b.body.style.pointerEvents=i)}},[g,b,a,v]),o.useEffect(()=>()=>{g&&(v.layers.delete(g),v.layersWithOutsidePointerEventsDisabled.delete(g),S())},[g,v]),o.useEffect(()=>{let e=()=>w({});return document.addEventListener(P,e),()=>document.removeEventListener(P,e)},[]),(0,d.jsx)(x.div,{...m,ref:C,style:{pointerEvents:D?j?"auto":"none":void 0,...e.style},onFocusCapture:s(e.onFocusCapture,O.onFocusCapture),onBlurCapture:s(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:s(e.onPointerDownCapture,N.onPointerDownCapture)})});function S(){let e=new CustomEvent(P);document.dispatchEvent(e)}function R(e,t,n,r){let{discrete:i}=r,o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&o.addEventListener(e,t,{once:!0}),i)?o&&g.flushSync(()=>o.dispatchEvent(a)):o.dispatchEvent(a)}C.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(T),r=o.useRef(null),i=c(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,d.jsx)(x.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var M="focusScope.autoFocusOnMount",k="focusScope.autoFocusOnUnmount",L={bubbles:!1,cancelable:!0},A=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=e,[l,u]=o.useState(null),f=E(i),p=E(a),h=o.useRef(null),m=c(t,e=>u(e)),v=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(v.paused||!l)return;let t=e.target;l.contains(t)?h.current=t:N(h.current,{select:!0})},t=function(e){if(v.paused||!l)return;let t=e.relatedTarget;null===t||l.contains(t)||N(h.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&&N(l)});return l&&n.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,l,v.paused]),o.useEffect(()=>{if(l){O.add(v);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(M,L);l.addEventListener(M,f),l.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(N(r,{select:t}),document.activeElement!==n)return}(D(l).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&N(l))}return()=>{l.removeEventListener(M,f),setTimeout(()=>{let t=new CustomEvent(k,L);l.addEventListener(k,p),l.dispatchEvent(t),t.defaultPrevented||N(null!=e?e:document.body,{select:!0}),l.removeEventListener(k,p),O.remove(v)},0)}}},[l,f,p,v]);let g=o.useCallback(e=>{if(!n&&!r||v.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,o]=function(e){let t=D(e);return[j(t,e),j(t.reverse(),e)]}(t);r&&o?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&N(o,{select:!0})):(e.preventDefault(),n&&N(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,v.paused]);return(0,d.jsx)(x.div,{tabIndex:-1,...s,ref:m,onKeyDown:g})});function D(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 j(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 N(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()}}A.displayName="FocusScope";var O=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=V(r,e)).unshift(e)},remove(e){var t;null===(t=(r=V(r,e))[0])||void 0===t||t.resume()}});function V(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var F=o.forwardRef((e,t)=>{var n,r;let{container:i,...a}=e,[s,l]=o.useState(!1);f(()=>l(!0),[]);let u=i||s&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return u?g.createPortal((0,d.jsx)(x.div,{...a,ref:t}),u):null});F.displayName="Portal";var I=e=>{var t,n;let r,i;let{present:a,children:s}=e,l=function(e){var t,n;let[r,i]=o.useState(),a=o.useRef(null),s=o.useRef(e),l=o.useRef("none"),[u,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},o.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return o.useEffect(()=>{let e=W(a.current);l.current="mounted"===u?e:"none"},[u]),f(()=>{let t=a.current,n=s.current;if(n!==e){let r=l.current,i=W(t);e?c("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):n&&r!==i?c("ANIMATION_OUT"):c("UNMOUNT"),s.current=e}},[e,c]),f(()=>{if(r){var e;let t;let n=null!==(e=r.ownerDocument.defaultView)&&void 0!==e?e:window,i=e=>{let i=W(a.current).includes(e.animationName);if(e.target===r&&i&&(c("ANIMATION_END"),!s.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},o=e=>{e.target===r&&(l.current=W(a.current))};return r.addEventListener("animationstart",o),r.addEventListener("animationcancel",i),r.addEventListener("animationend",i),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",o),r.removeEventListener("animationcancel",i),r.removeEventListener("animationend",i)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:o.useCallback(e=>{a.current=e?getComputedStyle(e):null,i(e)},[])}}(a),u="function"==typeof s?s({present:l.isPresent}):o.Children.only(s),d=c(l.ref,(r=null===(t=Object.getOwnPropertyDescriptor(u.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in r&&r.isReactWarning?u.ref:(r=null===(n=Object.getOwnPropertyDescriptor(u,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning?u.props.ref:u.props.ref||u.ref);return"function"==typeof s||l.isPresent?o.cloneElement(u,{ref:d}):null};function W(e){return(null==e?void 0:e.animationName)||"none"}I.displayName="Presence";var B=0;function _(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var z=n(87922),X=n(5478),Z="Dialog",[U,Y]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>o.createContext(e));return function(n){let r=n?.[e]||t;return o.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=o.createContext(r),a=n.length;n=[...n,r];let s=t=>{let{scope:n,children:r,...s}=t,l=n?.[e]?.[a]||i,u=o.useMemo(()=>s,Object.values(s));return(0,d.jsx)(l.Provider,{value:u,children:r})};return s.displayName=t+"Provider",[s,function(n,s){let l=s?.[e]?.[a]||i,u=o.useContext(l);if(u)return u;if(void 0!==r)return r;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 r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(Z),[G,H]=U(Z),$=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=o.useRef(null),u=o.useRef(null),[c,f]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,s]=function({defaultProp:e,onChange:t}){let[n,r]=o.useState(e),i=o.useRef(n),a=o.useRef(t);return v(()=>{a.current=t},[t]),o.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}({defaultProp:t,onChange:n}),l=void 0!==e,u=l?e:i;{let t=o.useRef(void 0!==e);o.useEffect(()=>{let e=t.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,r])}return[u,o.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&s.current?.(n)}else a(t)},[l,e,a,s])]}({prop:r,defaultProp:null!=i&&i,onChange:a,caller:Z});return(0,d.jsx)(G,{scope:t,triggerRef:l,contentRef:u,contentId:m(),titleId:m(),descriptionId:m(),open:c,onOpenChange:f,onOpenToggle:o.useCallback(()=>f(e=>!e),[f]),modal:s,children:n})};$.displayName=Z;var K="DialogTrigger",J=o.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=H(K,n),o=c(t,i.triggerRef);return(0,d.jsx)(x.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":eg(i.open),...r,ref:o,onClick:s(e.onClick,i.onOpenToggle)})});J.displayName=K;var q="DialogPortal",[Q,ee]=U(q,{forceMount:void 0}),et=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=H(q,t);return(0,d.jsx)(Q,{scope:t,forceMount:n,children:o.Children.map(r,e=>(0,d.jsx)(I,{present:n||a.open,children:(0,d.jsx)(F,{asChild:!0,container:i,children:e})}))})};et.displayName=q;var en="DialogOverlay",er=o.forwardRef((e,t)=>{let n=ee(en,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=H(en,e.__scopeDialog);return o.modal?(0,d.jsx)(I,{present:r||o.open,children:(0,d.jsx)(eo,{...i,ref:t})}):null});er.displayName=en;var ei=y("DialogOverlay.RemoveScroll"),eo=o.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=H(en,n);return(0,d.jsx)(z.Z,{as:ei,allowPinchZoom:!0,shards:[i.contentRef],children:(0,d.jsx)(x.div,{"data-state":eg(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ea="DialogContent",es=o.forwardRef((e,t)=>{let n=ee(ea,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=H(ea,e.__scopeDialog);return(0,d.jsx)(I,{present:r||o.open,children:o.modal?(0,d.jsx)(el,{...i,ref:t}):(0,d.jsx)(eu,{...i,ref:t})})});es.displayName=ea;var el=o.forwardRef((e,t)=>{let n=H(ea,e.__scopeDialog),r=o.useRef(null),i=c(t,n.contentRef,r);return o.useEffect(()=>{let e=r.current;if(e)return(0,X.Ry)(e)},[]),(0,d.jsx)(ec,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:s(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:s(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:s(e.onFocusOutside,e=>e.preventDefault())})}),eu=o.forwardRef((e,t)=>{let n=H(ea,e.__scopeDialog),r=o.useRef(!1),i=o.useRef(!1);return(0,d.jsx)(ec,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,a;null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{var o,a;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(i.current=!0));let s=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),ec=o.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...s}=e,l=H(ea,n),u=o.useRef(null),f=c(t,u);return o.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:_()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:_()),B++,()=>{1===B&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),B--}},[]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(A,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,d.jsx)(C,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":eg(l.open),...s,ref:f,onDismiss:()=>l.onOpenChange(!1)})}),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ex,{titleId:l.titleId}),(0,d.jsx)(eE,{contentRef:u,descriptionId:l.descriptionId})]})]})}),ed="DialogTitle",ef=o.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=H(ed,n);return(0,d.jsx)(x.h2,{id:i.titleId,...r,ref:t})});ef.displayName=ed;var ep="DialogDescription",eh=o.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=H(ep,n);return(0,d.jsx)(x.p,{id:i.descriptionId,...r,ref:t})});eh.displayName=ep;var em="DialogClose",ev=o.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=H(em,n);return(0,d.jsx)(x.button,{type:"button",...r,ref:t,onClick:s(e.onClick,()=>i.onOpenChange(!1))})});function eg(e){return e?"open":"closed"}ev.displayName=em;var ey="DialogTitleWarning",[eb,ew]=function(e,t){let n=o.createContext(t),r=e=>{let{children:t,...r}=e,i=o.useMemo(()=>r,Object.values(r));return(0,d.jsx)(n.Provider,{value:i,children:t})};return r.displayName=e+"Provider",[r,function(r){let i=o.useContext(n);if(i)return i;if(void 0!==t)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}]}(ey,{contentName:ea,titleName:ed,docsSlug:"dialog"}),ex=e=>{let{titleId:t}=e,n=ew(ey),r="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return o.useEffect(()=>{t&&!document.getElementById(t)&&console.error(r)},[r,t]),null},eE=e=>{let{contentRef:t,descriptionId:n}=e,r=ew("DialogDescriptionWarning"),i="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(r.contentName,"}.");return o.useEffect(()=>{var e;let r=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(i)},[i,t,n]),null},eP=$,eT=J,eC=et,eS=er,eR=es,eM=ef,ek=eh,eL=ev},29114:function(e,t,n){n.d(t,{gm:function(){return o}});var r=n(2265);n(57437);var i=r.createContext(void 0);function o(e){let t=r.useContext(i);return e||t||"ltr"}},40964:function(e,t,n){let r;n.d(t,{oC:function(){return t2},VY:function(){return tq},Qk:function(){return tW},Xi:function(){return t_},ZA:function(){return tQ},ck:function(){return t1},wU:function(){return t6},__:function(){return t0},Uv:function(){return tJ},Ee:function(){return t5},Rk:function(){return t3},fC:function(){return t$},Z0:function(){return t9},Tr:function(){return t4},tu:function(){return t7},fF:function(){return t8},xz:function(){return tK}});var i,o=n(2265),a=n(6741),s=n(98575),l=n(73966),u=n(80886),c=n(82912),d=n(57437),f=o.forwardRef((e,t)=>{let{children:n,...r}=e,i=o.Children.toArray(n),a=i.find(m);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,d.jsx)(p,{...r,ref:t,children:o.isValidElement(e)?o.cloneElement(e,void 0,n):null})}return(0,d.jsx)(p,{...r,ref:t,children:n})});f.displayName="Slot";var p=o.forwardRef((e,t)=>{let{children:n,...r}=e;if(o.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return o.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?(0,s.F)(t,a):a})}return o.Children.count(n)>1?o.Children.only(null):null});p.displayName="SlotClone";var h=({children:e})=>(0,d.jsx)(d.Fragment,{children:e});function m(e){return o.isValidElement(e)&&e.type===h}function v(e){let t=e+"CollectionProvider",[n,r]=(0,l.b)(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=e=>{let{scope:t,children:n}=e,r=o.useRef(null),a=o.useRef(new Map).current;return(0,d.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};u.displayName=t;let c=e+"CollectionSlot",p=o.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=a(c,n),o=(0,s.e)(t,i.collectionRef);return(0,d.jsx)(f,{ref:o,children:r})});p.displayName=c;let h=e+"CollectionItemSlot",m="data-radix-collection-item",v=o.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,l=o.useRef(null),u=(0,s.e)(t,l),c=a(h,n);return o.useEffect(()=>(c.itemMap.set(l,{ref:l,...i}),()=>void c.itemMap.delete(l))),(0,d.jsx)(f,{[m]:"",ref:u,children:r})});return v.displayName=h,[{Provider:u,Slot:p,ItemSlot:v},function(t){let n=a(e+"CollectionConsumer",t);return o.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var g=n(29114),y=n(26606),b=n(91096),w="dismissableLayer.update",x=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),E=o.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,onDismiss:m,...v}=e,g=o.useContext(x),[E,C]=o.useState(null),S=null!==(r=null==E?void 0:E.ownerDocument)&&void 0!==r?r:null===(n=globalThis)||void 0===n?void 0:n.document,[,R]=o.useState({}),M=(0,s.e)(t,e=>C(e)),k=Array.from(g.layers),[L]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),A=k.indexOf(L),D=E?k.indexOf(E):-1,j=g.layersWithOutsidePointerEventsDisabled.size>0,N=D>=A,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,y.W)(e),i=o.useRef(!1),a=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){T("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...g.branches].some(e=>e.contains(t));!N||n||(null==f||f(e),null==h||h(e),e.defaultPrevented||null==m||m())},S),V=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,y.W)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&T("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;[...g.branches].some(e=>e.contains(t))||(null==p||p(e),null==h||h(e),e.defaultPrevented||null==m||m())},S);return(0,b.e)(e=>{D!==g.layers.size-1||(null==u||u(e),!e.defaultPrevented&&m&&(e.preventDefault(),m()))},S),o.useEffect(()=>{if(E)return l&&(0===g.layersWithOutsidePointerEventsDisabled.size&&(i=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(E)),g.layers.add(E),P(),()=>{l&&1===g.layersWithOutsidePointerEventsDisabled.size&&(S.body.style.pointerEvents=i)}},[E,S,l,g]),o.useEffect(()=>()=>{E&&(g.layers.delete(E),g.layersWithOutsidePointerEventsDisabled.delete(E),P())},[E,g]),o.useEffect(()=>{let e=()=>R({});return document.addEventListener(w,e),()=>document.removeEventListener(w,e)},[]),(0,d.jsx)(c.WV.div,{...v,ref:M,style:{pointerEvents:j?N?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.M)(e.onFocusCapture,V.onFocusCapture),onBlurCapture:(0,a.M)(e.onBlurCapture,V.onBlurCapture),onPointerDownCapture:(0,a.M)(e.onPointerDownCapture,O.onPointerDownCapture)})});function P(){let e=new CustomEvent(w);document.dispatchEvent(e)}function T(e,t,n,r){let{discrete:i}=r,o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),i?(0,c.jH)(o,a):o.dispatchEvent(a)}E.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(x),r=o.useRef(null),i=(0,s.e)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,d.jsx)(c.WV.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var C=n(86097),S="focusScope.autoFocusOnMount",R="focusScope.autoFocusOnUnmount",M={bubbles:!1,cancelable:!0},k=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...l}=e,[u,f]=o.useState(null),p=(0,y.W)(i),h=(0,y.W)(a),m=o.useRef(null),v=(0,s.e)(t,e=>f(e)),g=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(g.paused||!u)return;let t=e.target;u.contains(t)?m.current=t:D(m.current,{select:!0})},t=function(e){if(g.paused||!u)return;let t=e.relatedTarget;null===t||u.contains(t)||D(m.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&D(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,g.paused]),o.useEffect(()=>{if(u){j.add(g);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(S,M);u.addEventListener(S,p),u.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(D(r,{select:t}),document.activeElement!==n)return}(L(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&D(u))}return()=>{u.removeEventListener(S,p),setTimeout(()=>{let t=new CustomEvent(R,M);u.addEventListener(R,h),u.dispatchEvent(t),t.defaultPrevented||D(null!=e?e:document.body,{select:!0}),u.removeEventListener(R,h),j.remove(g)},0)}}},[u,p,h,g]);let b=o.useCallback(e=>{if(!n&&!r||g.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,o]=function(e){let t=L(e);return[A(t,e),A(t.reverse(),e)]}(t);r&&o?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&D(o,{select:!0})):(e.preventDefault(),n&&D(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,g.paused]);return(0,d.jsx)(c.WV.div,{tabIndex:-1,...l,ref:v,onKeyDown:b})});function L(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function A(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function D(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}k.displayName="FocusScope";var j=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=N(r,e)).unshift(e)},remove(e){var t;null===(t=(r=N(r,e))[0])||void 0===t||t.resume()}});function N(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var O=n(99255),V=n(97859),F=n(50032),I=o.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,d.jsx)(c.WV.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,d.jsx)("polygon",{points:"0,0 30,0 15,10"})})});I.displayName="Arrow";var W=n(61188),B=n(90420),_="Popper",[z,X]=(0,l.b)(_),[Z,U]=z(_),Y=e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null);return(0,d.jsx)(Z,{scope:t,anchor:r,onAnchorChange:i,children:n})};Y.displayName=_;var G="PopperAnchor",H=o.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=U(G,n),l=o.useRef(null),u=(0,s.e)(t,l);return o.useEffect(()=>{a.onAnchorChange((null==r?void 0:r.current)||l.current)}),r?null:(0,d.jsx)(c.WV.div,{...i,ref:u})});H.displayName=G;var $="PopperContent",[K,J]=z($),q=o.forwardRef((e,t)=>{var n,r,i,a,l,u,f,p;let{__scopePopper:h,side:m="bottom",sideOffset:v=0,align:g="center",alignOffset:b=0,arrowPadding:w=0,avoidCollisions:x=!0,collisionBoundary:E=[],collisionPadding:P=0,sticky:T="partial",hideWhenDetached:C=!1,updatePositionStrategy:S="optimized",onPlaced:R,...M}=e,k=U($,h),[L,A]=o.useState(null),D=(0,s.e)(t,e=>A(e)),[j,N]=o.useState(null),O=(0,B.t)(j),I=null!==(f=null==O?void 0:O.width)&&void 0!==f?f:0,_=null!==(p=null==O?void 0:O.height)&&void 0!==p?p:0,z="number"==typeof P?P:{top:0,right:0,bottom:0,left:0,...P},X=Array.isArray(E)?E:[E],Z=X.length>0,Y={padding:z,boundary:X.filter(en),altBoundary:Z},{refs:G,floatingStyles:H,placement:J,isPositioned:q,middlewareData:Q}=(0,V.YF)({strategy:"fixed",placement:m+("center"!==g?"-"+g:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,F.Me)(...t,{animationFrame:"always"===S})},elements:{reference:k.anchor},middleware:[(0,V.cv)({mainAxis:v+_,alignmentAxis:b}),x&&(0,V.uY)({mainAxis:!0,crossAxis:!1,limiter:"partial"===T?(0,V.dr)():void 0,...Y}),x&&(0,V.RR)({...Y}),(0,V.dp)({...Y,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:i}=e,{width:o,height:a}=n.reference,s=t.floating.style;s.setProperty("--radix-popper-available-width","".concat(r,"px")),s.setProperty("--radix-popper-available-height","".concat(i,"px")),s.setProperty("--radix-popper-anchor-width","".concat(o,"px")),s.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}}),j&&(0,V.x7)({element:j,padding:w}),er({arrowWidth:I,arrowHeight:_}),C&&(0,V.Cp)({strategy:"referenceHidden",...Y})]}),[ee,et]=ei(J),eo=(0,y.W)(R);(0,W.b)(()=>{q&&(null==eo||eo())},[q,eo]);let ea=null===(n=Q.arrow)||void 0===n?void 0:n.x,es=null===(r=Q.arrow)||void 0===r?void 0:r.y,el=(null===(i=Q.arrow)||void 0===i?void 0:i.centerOffset)!==0,[eu,ec]=o.useState();return(0,W.b)(()=>{L&&ec(window.getComputedStyle(L).zIndex)},[L]),(0,d.jsx)("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:q?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eu,"--radix-popper-transform-origin":[null===(a=Q.transformOrigin)||void 0===a?void 0:a.x,null===(l=Q.transformOrigin)||void 0===l?void 0:l.y].join(" "),...(null===(u=Q.hide)||void 0===u?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,d.jsx)(K,{scope:h,placedSide:ee,onArrowChange:N,arrowX:ea,arrowY:es,shouldHideArrow:el,children:(0,d.jsx)(c.WV.div,{"data-side":ee,"data-align":et,...M,ref:D,style:{...M.style,animation:q?void 0:"none"}})})})});q.displayName=$;var Q="PopperArrow",ee={top:"bottom",right:"left",bottom:"top",left:"right"},et=o.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=J(Q,n),o=ee[i.placedSide];return(0,d.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,d.jsx)(I,{...r,ref:t,style:{...r.style,display:"block"}})})});function en(e){return null!==e}et.displayName=Q;var er=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=ei(s),m={start:"0%",center:"50%",end:"100%"}[h],v=(null!==(o=null===(r=u.arrow)||void 0===r?void 0:r.x)&&void 0!==o?o:0)+d/2,g=(null!==(a=null===(i=u.arrow)||void 0===i?void 0:i.y)&&void 0!==a?a:0)+f/2,y="",b="";return"bottom"===p?(y=c?m:"".concat(v,"px"),b="".concat(-f,"px")):"top"===p?(y=c?m:"".concat(v,"px"),b="".concat(l.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),b=c?m:"".concat(g,"px")):"left"===p&&(y="".concat(l.floating.width+f,"px"),b=c?m:"".concat(g,"px")),{data:{x:y,y:b}}}});function ei(e){let[t,n="center"]=e.split("-");return[t,n]}var eo=n(54887),ea=o.forwardRef((e,t)=>{var n,r;let{container:i,...a}=e,[s,l]=o.useState(!1);(0,W.b)(()=>l(!0),[]);let u=i||s&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return u?eo.createPortal((0,d.jsx)(c.WV.div,{...a,ref:t}),u):null});ea.displayName="Portal";var es=n(71599),el="rovingFocusGroup.onEntryFocus",eu={bubbles:!1,cancelable:!0},ec="RovingFocusGroup",[ed,ef,ep]=v(ec),[eh,em]=(0,l.b)(ec,[ep]),[ev,eg]=eh(ec),ey=o.forwardRef((e,t)=>(0,d.jsx)(ed.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(ed.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(eb,{...e,ref:t})})}));ey.displayName=ec;var eb=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:l,currentTabStopId:f,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:h,onEntryFocus:m,preventScrollOnEntryFocus:v=!1,...b}=e,w=o.useRef(null),x=(0,s.e)(t,w),E=(0,g.gm)(l),[P=null,T]=(0,u.T)({prop:f,defaultProp:p,onChange:h}),[C,S]=o.useState(!1),R=(0,y.W)(m),M=ef(n),k=o.useRef(!1),[L,A]=o.useState(0);return o.useEffect(()=>{let e=w.current;if(e)return e.addEventListener(el,R),()=>e.removeEventListener(el,R)},[R]),(0,d.jsx)(ev,{scope:n,orientation:r,dir:E,loop:i,currentTabStopId:P,onItemFocus:o.useCallback(e=>T(e),[T]),onItemShiftTab:o.useCallback(()=>S(!0),[]),onFocusableItemAdd:o.useCallback(()=>A(e=>e+1),[]),onFocusableItemRemove:o.useCallback(()=>A(e=>e-1),[]),children:(0,d.jsx)(c.WV.div,{tabIndex:C||0===L?-1:0,"data-orientation":r,...b,ref:x,style:{outline:"none",...e.style},onMouseDown:(0,a.M)(e.onMouseDown,()=>{k.current=!0}),onFocus:(0,a.M)(e.onFocus,e=>{let t=!k.current;if(e.target===e.currentTarget&&t&&!C){let t=new CustomEvent(el,eu);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=M().filter(e=>e.focusable);eP([e.find(e=>e.active),e.find(e=>e.id===P),...e].filter(Boolean).map(e=>e.ref.current),v)}}k.current=!1}),onBlur:(0,a.M)(e.onBlur,()=>S(!1))})})}),ew="RovingFocusGroupItem",ex=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:s,...l}=e,u=(0,O.M)(),f=s||u,p=eg(ew,n),h=p.currentTabStopId===f,m=ef(n),{onFocusableItemAdd:v,onFocusableItemRemove:g}=p;return o.useEffect(()=>{if(r)return v(),()=>g()},[r,v,g]),(0,d.jsx)(ed.ItemSlot,{scope:n,id:f,focusable:r,active:i,children:(0,d.jsx)(c.WV.span,{tabIndex:h?0:-1,"data-orientation":p.orientation,...l,ref:t,onMouseDown:(0,a.M)(e.onMouseDown,e=>{r?p.onItemFocus(f):e.preventDefault()}),onFocus:(0,a.M)(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:(0,a.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){p.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return eE[i]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&i.reverse();let o=i.indexOf(e.currentTarget);i=p.loop?(n=i,r=o+1,n.map((e,t)=>n[(r+t)%n.length])):i.slice(o+1)}setTimeout(()=>eP(i))}})})})});ex.displayName=ew;var eE={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function eP(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var eT=o.forwardRef((e,t)=>{let{children:n,...r}=e,i=o.Children.toArray(n),a=i.find(eR);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,d.jsx)(eC,{...r,ref:t,children:o.isValidElement(e)?o.cloneElement(e,void 0,n):null})}return(0,d.jsx)(eC,{...r,ref:t,children:n})});eT.displayName="Slot";var eC=o.forwardRef((e,t)=>{let{children:n,...r}=e;if(o.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return o.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?(0,s.F)(t,a):a})}return o.Children.count(n)>1?o.Children.only(null):null});eC.displayName="SlotClone";var eS=({children:e})=>(0,d.jsx)(d.Fragment,{children:e});function eR(e){return o.isValidElement(e)&&e.type===eS}var eM=n(5478),ek=n(87922),eL=["Enter"," "],eA=["ArrowUp","PageDown","End"],eD=["ArrowDown","PageUp","Home",...eA],ej={ltr:[...eL,"ArrowRight"],rtl:[...eL,"ArrowLeft"]},eN={ltr:["ArrowLeft"],rtl:["ArrowRight"]},eO="Menu",[eV,eF,eI]=v(eO),[eW,eB]=(0,l.b)(eO,[eI,X,em]),e_=X(),ez=em(),[eX,eZ]=eW(eO),[eU,eY]=eW(eO),eG=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:s=!0}=e,l=e_(t),[u,c]=o.useState(null),f=o.useRef(!1),p=(0,y.W)(a),h=(0,g.gm)(i);return o.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,d.jsx)(Y,{...l,children:(0,d.jsx)(eX,{scope:t,open:n,onOpenChange:p,content:u,onContentChange:c,children:(0,d.jsx)(eU,{scope:t,onClose:o.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:h,modal:s,children:r})})})};eG.displayName=eO;var eH=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=e_(n);return(0,d.jsx)(H,{...i,...r,ref:t})});eH.displayName="MenuAnchor";var e$="MenuPortal",[eK,eJ]=eW(e$,{forceMount:void 0}),eq=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=eZ(e$,t);return(0,d.jsx)(eK,{scope:t,forceMount:n,children:(0,d.jsx)(es.z,{present:n||o.open,children:(0,d.jsx)(ea,{asChild:!0,container:i,children:r})})})};eq.displayName=e$;var eQ="MenuContent",[e0,e1]=eW(eQ),e2=o.forwardRef((e,t)=>{let n=eJ(eQ,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=eZ(eQ,e.__scopeMenu),a=eY(eQ,e.__scopeMenu);return(0,d.jsx)(eV.Provider,{scope:e.__scopeMenu,children:(0,d.jsx)(es.z,{present:r||o.open,children:(0,d.jsx)(eV.Slot,{scope:e.__scopeMenu,children:a.modal?(0,d.jsx)(e5,{...i,ref:t}):(0,d.jsx)(e3,{...i,ref:t})})})})}),e5=o.forwardRef((e,t)=>{let n=eZ(eQ,e.__scopeMenu),r=o.useRef(null),i=(0,s.e)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return(0,eM.Ry)(e)},[]),(0,d.jsx)(e6,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,a.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),e3=o.forwardRef((e,t)=>{let n=eZ(eQ,e.__scopeMenu);return(0,d.jsx)(e6,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),e6=o.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:l,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEntryFocus:f,onEscapeKeyDown:p,onPointerDownOutside:h,onFocusOutside:m,onInteractOutside:v,onDismiss:g,disableOutsideScroll:y,...b}=e,w=eZ(eQ,n),x=eY(eQ,n),P=e_(n),T=ez(n),S=eF(n),[R,M]=o.useState(null),L=o.useRef(null),A=(0,s.e)(t,L,w.onContentChange),D=o.useRef(0),j=o.useRef(""),N=o.useRef(0),O=o.useRef(null),V=o.useRef("right"),F=o.useRef(0),I=y?ek.Z:o.Fragment,W=e=>{var t,n;let r=j.current+e,i=S().filter(e=>!e.disabled),o=document.activeElement,a=null===(t=i.find(e=>e.ref.current===o))||void 0===t?void 0:t.textValue,s=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===i.length&&(o=o.filter(e=>e!==n));let a=o.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return a!==n?a:void 0}(i.map(e=>e.textValue),r,a),l=null===(n=i.find(e=>e.textValue===s))||void 0===n?void 0:n.ref.current;!function e(t){j.current=t,window.clearTimeout(D.current),""!==t&&(D.current=window.setTimeout(()=>e(""),1e3))}(r),l&&setTimeout(()=>l.focus())};o.useEffect(()=>()=>window.clearTimeout(D.current),[]),(0,C.EW)();let B=o.useCallback(e=>{var t,n,r;return V.current===(null===(t=O.current)||void 0===t?void 0:t.side)&&!!(r=null===(n=O.current)||void 0===n?void 0:n.area)&&function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let a=t[e].x,s=t[e].y,l=t[o].x,u=t[o].y;s>r!=u>r&&n<(l-a)*(r-s)/(u-s)+a&&(i=!i)}return i}({x:e.clientX,y:e.clientY},r)},[]);return(0,d.jsx)(e0,{scope:n,searchRef:j,onItemEnter:o.useCallback(e=>{B(e)&&e.preventDefault()},[B]),onItemLeave:o.useCallback(e=>{var t;B(e)||(null===(t=L.current)||void 0===t||t.focus(),M(null))},[B]),onTriggerLeave:o.useCallback(e=>{B(e)&&e.preventDefault()},[B]),pointerGraceTimerRef:N,onPointerGraceIntentChange:o.useCallback(e=>{O.current=e},[]),children:(0,d.jsx)(I,{...y?{as:eT,allowPinchZoom:!0}:void 0,children:(0,d.jsx)(k,{asChild:!0,trapped:i,onMountAutoFocus:(0,a.M)(l,e=>{var t;e.preventDefault(),null===(t=L.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,d.jsx)(E,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:p,onPointerDownOutside:h,onFocusOutside:m,onInteractOutside:v,onDismiss:g,children:(0,d.jsx)(ey,{asChild:!0,...T,dir:x.dir,orientation:"vertical",loop:r,currentTabStopId:R,onCurrentTabStopIdChange:M,onEntryFocus:(0,a.M)(f,e=>{x.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,d.jsx)(q,{role:"menu","aria-orientation":"vertical","data-state":tP(w.open),"data-radix-menu-content":"",dir:x.dir,...P,...b,ref:A,style:{outline:"none",...b.style},onKeyDown:(0,a.M)(b.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&W(e.key));let i=L.current;if(e.target!==i||!eD.includes(e.key))return;e.preventDefault();let o=S().filter(e=>!e.disabled).map(e=>e.ref.current);eA.includes(e.key)&&o.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(o)}),onBlur:(0,a.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(D.current),j.current="")}),onPointerMove:(0,a.M)(e.onPointerMove,tS(e=>{let t=e.target,n=F.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>F.current?"right":"left";V.current=t,F.current=e.clientX}}))})})})})})})});e2.displayName=eQ;var e9=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,d.jsx)(c.WV.div,{role:"group",...r,ref:t})});e9.displayName="MenuGroup";var e4=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,d.jsx)(c.WV.div,{...r,ref:t})});e4.displayName="MenuLabel";var e8="MenuItem",e7="menu.itemSelect",te=o.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,l=o.useRef(null),u=eY(e8,e.__scopeMenu),f=e1(e8,e.__scopeMenu),p=(0,s.e)(t,l),h=o.useRef(!1);return(0,d.jsx)(tt,{...i,ref:p,disabled:n,onClick:(0,a.M)(e.onClick,()=>{let e=l.current;if(!n&&e){let t=new CustomEvent(e7,{bubbles:!0,cancelable:!0});e.addEventListener(e7,e=>null==r?void 0:r(e),{once:!0}),(0,c.jH)(e,t),t.defaultPrevented?h.current=!1:u.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),h.current=!0},onPointerUp:(0,a.M)(e.onPointerUp,e=>{var t;h.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,a.M)(e.onKeyDown,e=>{let t=""!==f.searchRef.current;!n&&(!t||" "!==e.key)&&eL.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});te.displayName=e8;var tt=o.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...l}=e,u=e1(e8,n),f=ez(n),p=o.useRef(null),h=(0,s.e)(t,p),[m,v]=o.useState(!1),[g,y]=o.useState("");return o.useEffect(()=>{let e=p.current;if(e){var t;y((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[l.children]),(0,d.jsx)(eV.ItemSlot,{scope:n,disabled:r,textValue:null!=i?i:g,children:(0,d.jsx)(ex,{asChild:!0,...f,focusable:!r,children:(0,d.jsx)(c.WV.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...l,ref:h,onPointerMove:(0,a.M)(e.onPointerMove,tS(e=>{r?u.onItemLeave(e):(u.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,a.M)(e.onPointerLeave,tS(e=>u.onItemLeave(e))),onFocus:(0,a.M)(e.onFocus,()=>v(!0)),onBlur:(0,a.M)(e.onBlur,()=>v(!1))})})})}),tn=o.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,d.jsx)(tc,{scope:e.__scopeMenu,checked:n,children:(0,d.jsx)(te,{role:"menuitemcheckbox","aria-checked":tT(n)?"mixed":n,...i,ref:t,"data-state":tC(n),onSelect:(0,a.M)(i.onSelect,()=>null==r?void 0:r(!!tT(n)||!n),{checkForDefaultPrevented:!1})})})});tn.displayName="MenuCheckboxItem";var tr="MenuRadioGroup",[ti,to]=eW(tr,{value:void 0,onValueChange:()=>{}}),ta=o.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,o=(0,y.W)(r);return(0,d.jsx)(ti,{scope:e.__scopeMenu,value:n,onValueChange:o,children:(0,d.jsx)(e9,{...i,ref:t})})});ta.displayName=tr;var ts="MenuRadioItem",tl=o.forwardRef((e,t)=>{let{value:n,...r}=e,i=to(ts,e.__scopeMenu),o=n===i.value;return(0,d.jsx)(tc,{scope:e.__scopeMenu,checked:o,children:(0,d.jsx)(te,{role:"menuitemradio","aria-checked":o,...r,ref:t,"data-state":tC(o),onSelect:(0,a.M)(r.onSelect,()=>{var e;return null===(e=i.onValueChange)||void 0===e?void 0:e.call(i,n)},{checkForDefaultPrevented:!1})})})});tl.displayName=ts;var tu="MenuItemIndicator",[tc,td]=eW(tu,{checked:!1}),tf=o.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,o=td(tu,n);return(0,d.jsx)(es.z,{present:r||tT(o.checked)||!0===o.checked,children:(0,d.jsx)(c.WV.span,{...i,ref:t,"data-state":tC(o.checked)})})});tf.displayName=tu;var tp=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,d.jsx)(c.WV.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});tp.displayName="MenuSeparator";var th=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=e_(n);return(0,d.jsx)(et,{...i,...r,ref:t})});th.displayName="MenuArrow";var tm="MenuSub",[tv,tg]=eW(tm),ty=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=eZ(tm,t),s=e_(t),[l,u]=o.useState(null),[c,f]=o.useState(null),p=(0,y.W)(i);return o.useEffect(()=>(!1===a.open&&p(!1),()=>p(!1)),[a.open,p]),(0,d.jsx)(Y,{...s,children:(0,d.jsx)(eX,{scope:t,open:r,onOpenChange:p,content:c,onContentChange:f,children:(0,d.jsx)(tv,{scope:t,contentId:(0,O.M)(),triggerId:(0,O.M)(),trigger:l,onTriggerChange:u,children:n})})})};ty.displayName=tm;var tb="MenuSubTrigger",tw=o.forwardRef((e,t)=>{let n=eZ(tb,e.__scopeMenu),r=eY(tb,e.__scopeMenu),i=tg(tb,e.__scopeMenu),l=e1(tb,e.__scopeMenu),u=o.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:f}=l,p={__scopeMenu:e.__scopeMenu},h=o.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return o.useEffect(()=>h,[h]),o.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),f(null)}},[c,f]),(0,d.jsx)(eH,{asChild:!0,...p,children:(0,d.jsx)(tt,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":tP(n.open),...e,ref:(0,s.F)(t,i.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,a.M)(e.onPointerMove,tS(t=>{l.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||u.current||(l.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),h()},100))})),onPointerLeave:(0,a.M)(e.onPointerLeave,tS(e=>{var t,r;h();let i=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(i){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,o="right"===t,a=i[o?"left":"right"],s=i[o?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:a,y:i.top},{x:s,y:i.top},{x:s,y:i.bottom},{x:a,y:i.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:(0,a.M)(e.onKeyDown,t=>{let i=""!==l.searchRef.current;if(!e.disabled&&(!i||" "!==t.key)&&ej[r.dir].includes(t.key)){var o;n.onOpenChange(!0),null===(o=n.content)||void 0===o||o.focus(),t.preventDefault()}})})})});tw.displayName=tb;var tx="MenuSubContent",tE=o.forwardRef((e,t)=>{let n=eJ(eQ,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,l=eZ(eQ,e.__scopeMenu),u=eY(eQ,e.__scopeMenu),c=tg(tx,e.__scopeMenu),f=o.useRef(null),p=(0,s.e)(t,f);return(0,d.jsx)(eV.Provider,{scope:e.__scopeMenu,children:(0,d.jsx)(es.z,{present:r||l.open,children:(0,d.jsx)(eV.Slot,{scope:e.__scopeMenu,children:(0,d.jsx)(e6,{id:c.contentId,"aria-labelledby":c.triggerId,...i,ref:p,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;u.isUsingKeyboardRef.current&&(null===(t=f.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,a.M)(e.onFocusOutside,e=>{e.target!==c.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:(0,a.M)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,a.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=eN[u.dir].includes(e.key);if(t&&n){var r;l.onOpenChange(!1),null===(r=c.trigger)||void 0===r||r.focus(),e.preventDefault()}})})})})})});function tP(e){return e?"open":"closed"}function tT(e){return"indeterminate"===e}function tC(e){return tT(e)?"indeterminate":e?"checked":"unchecked"}function tS(e){return t=>"mouse"===t.pointerType?e(t):void 0}tE.displayName=tx;var tR="DropdownMenu",[tM,tk]=(0,l.b)(tR,[eB]),tL=eB(),[tA,tD]=tM(tR),tj=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:s,modal:l=!0}=e,c=tL(t),f=o.useRef(null),[p=!1,h]=(0,u.T)({prop:i,defaultProp:a,onChange:s});return(0,d.jsx)(tA,{scope:t,triggerId:(0,O.M)(),triggerRef:f,contentId:(0,O.M)(),open:p,onOpenChange:h,onOpenToggle:o.useCallback(()=>h(e=>!e),[h]),modal:l,children:(0,d.jsx)(eG,{...c,open:p,onOpenChange:h,dir:r,modal:l,children:n})})};tj.displayName=tR;var tN="DropdownMenuTrigger",tO=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=tD(tN,n),l=tL(n);return(0,d.jsx)(eH,{asChild:!0,...l,children:(0,d.jsx)(c.WV.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:(0,s.F)(t,o.triggerRef),onPointerDown:(0,a.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:(0,a.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});tO.displayName=tN;var tV=e=>{let{__scopeDropdownMenu:t,...n}=e,r=tL(t);return(0,d.jsx)(eq,{...r,...n})};tV.displayName="DropdownMenuPortal";var tF="DropdownMenuContent",tI=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tD(tF,n),s=tL(n),l=o.useRef(!1);return(0,d.jsx)(e2,{id:i.contentId,"aria-labelledby":i.triggerId,...s,...r,ref:t,onCloseAutoFocus:(0,a.M)(e.onCloseAutoFocus,e=>{var t;l.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),l.current=!1,e.preventDefault()}),onInteractOutside:(0,a.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!i.modal||r)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tI.displayName=tF;var tW=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tL(n);return(0,d.jsx)(e9,{...i,...r,ref:t})});tW.displayName="DropdownMenuGroup";var tB=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tL(n);return(0,d.jsx)(e4,{...i,...r,ref:t})});tB.displayName="DropdownMenuLabel";var t_=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tL(n);return(0,d.jsx)(te,{...i,...r,ref:t})});t_.displayName="DropdownMenuItem";var tz=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tL(n);return(0,d.jsx)(tn,{...i,...r,ref:t})});tz.displayName="DropdownMenuCheckboxItem";var tX=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tL(n);return(0,d.jsx)(ta,{...i,...r,ref:t})});tX.displayName="DropdownMenuRadioGroup";var tZ=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tL(n);return(0,d.jsx)(tl,{...i,...r,ref:t})});tZ.displayName="DropdownMenuRadioItem";var tU=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tL(n);return(0,d.jsx)(tf,{...i,...r,ref:t})});tU.displayName="DropdownMenuItemIndicator";var tY=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tL(n);return(0,d.jsx)(tp,{...i,...r,ref:t})});tY.displayName="DropdownMenuSeparator",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tL(n);return(0,d.jsx)(th,{...i,...r,ref:t})}).displayName="DropdownMenuArrow";var tG=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tL(n);return(0,d.jsx)(tw,{...i,...r,ref:t})});tG.displayName="DropdownMenuSubTrigger";var tH=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tL(n);return(0,d.jsx)(tE,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tH.displayName="DropdownMenuSubContent";var t$=tj,tK=tO,tJ=tV,tq=tI,tQ=tW,t0=tB,t1=t_,t2=tz,t5=tX,t3=tZ,t6=tU,t9=tY,t4=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:i,defaultOpen:o}=e,a=tL(t),[s=!1,l]=(0,u.T)({prop:r,defaultProp:o,onChange:i});return(0,d.jsx)(ty,{...a,open:s,onOpenChange:l,children:n})},t8=tG,t7=tH},86097:function(e,t,n){n.d(t,{EW:function(){return o}});var r=n(2265),i=0;function o(){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:a()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:a()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},99255:function(e,t,n){n.d(t,{M:function(){return l}});var r,i=n(2265),o=n(61188),a=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),s=0;function l(e){let[t,n]=i.useState(a());return(0,o.b)(()=>{e||n(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},71599:function(e,t,n){n.d(t,{z:function(){return a}});var r=n(2265),i=n(98575),o=n(61188),a=e=>{var t,n;let a,l;let{present:u,children:c}=e,d=function(e){var t,n;let[i,a]=r.useState(),l=r.useRef({}),u=r.useRef(e),c=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=s(l.current);c.current="mounted"===d?e:"none"},[d]),(0,o.b)(()=>{let t=l.current,n=u.current;if(n!==e){let r=c.current,i=s(t);e?f("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==i?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,o.b)(()=>{if(i){var e;let t;let n=null!==(e=i.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=s(l.current).includes(e.animationName);if(e.target===i&&r&&(f("ANIMATION_END"),!u.current)){let e=i.style.animationFillMode;i.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=e)})}},o=e=>{e.target===i&&(c.current=s(l.current))};return i.addEventListener("animationstart",o),i.addEventListener("animationcancel",r),i.addEventListener("animationend",r),()=>{n.clearTimeout(t),i.removeEventListener("animationstart",o),i.removeEventListener("animationcancel",r),i.removeEventListener("animationend",r)}}f("ANIMATION_END")},[i,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(l.current=getComputedStyle(e)),a(e)},[])}}(u),f="function"==typeof c?c({present:d.isPresent}):r.Children.only(c),p=(0,i.e)(d.ref,(a=null===(t=Object.getOwnPropertyDescriptor(f.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in a&&a.isReactWarning?f.ref:(a=null===(n=Object.getOwnPropertyDescriptor(f,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in a&&a.isReactWarning?f.props.ref:f.props.ref||f.ref);return"function"==typeof c||d.isPresent?r.cloneElement(f,{ref:p}):null};function s(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},82912:function(e,t,n){n.d(t,{WV:function(){return d},jH:function(){return f}});var r=n(2265),i=n(54887),o=n(98575),a=n(57437),s=r.forwardRef((e,t)=>{let{children:n,...i}=e,o=r.Children.toArray(n),s=o.find(c);if(s){let e=s.props.children,n=o.map(t=>t!==s?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,a.jsx)(l,{...i,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,a.jsx)(l,{...i,ref:t,children:n})});s.displayName="Slot";var l=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){let e,a;let s=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return r.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props),ref:t?(0,o.F)(t,s):s})}return r.Children.count(n)>1?r.Children.only(null):null});l.displayName="SlotClone";var u=({children:e})=>(0,a.jsx)(a.Fragment,{children:e});function c(e){return r.isValidElement(e)&&e.type===u}var d=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...i}=e,o=r?s:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(o,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function f(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},55156:function(e,t,n){n.d(t,{f:function(){return u}});var r=n(2265),i=n(82912),o=n(57437),a="horizontal",s=["horizontal","vertical"],l=r.forwardRef((e,t)=>{let{decorative:n,orientation:r=a,...l}=e,u=s.includes(r)?r:a;return(0,o.jsx)(i.WV.div,{"data-orientation":u,...n?{role:"none"}:{"aria-orientation":"vertical"===u?u:void 0,role:"separator"},...l,ref:t})});l.displayName="Separator";var u=l},37053:function(e,t,n){n.d(t,{A4:function(){return l},g7:function(){return a}});var r=n(2265),i=n(98575),o=n(57437),a=r.forwardRef((e,t)=>{let{children:n,...i}=e,a=r.Children.toArray(n),l=a.find(u);if(l){let e=l.props.children,n=a.map(t=>t!==l?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,o.jsx)(s,{...i,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,o.jsx)(s,{...i,ref:t,children:n})});a.displayName="Slot";var s=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){let e,a;let s=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref,l=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(l.ref=t?(0,i.F)(t,s):s),r.cloneElement(n,l)}return r.Children.count(n)>1?r.Children.only(null):null});s.displayName="SlotClone";var l=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});function u(e){return r.isValidElement(e)&&e.type===l}},79856:function(e,t,n){n.d(t,{aU:function(){return em},x8:function(){return ev},dk:function(){return eh},zt:function(){return ec},fC:function(){return ef},Dx:function(){return ep},l_:function(){return ed}});var r,i=n(2265),o=n.t(i,2),a=n(54887);function s(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function u(...e){return t=>{let n=!1,r=e.map(e=>{let r=l(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():l(e[t],null)}}}}function c(...e){return i.useCallback(u(...e),e)}n(53359),n(31378),n(70262);var d=n(57437);function f(e,t=[]){let n=[],r=()=>{let t=n.map(e=>i.createContext(e));return function(n){let r=n?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=i.createContext(r),a=n.length;n=[...n,r];let s=t=>{let{scope:n,children:r,...s}=t,l=n?.[e]?.[a]||o,u=i.useMemo(()=>s,Object.values(s));return(0,d.jsx)(l.Provider,{value:u,children:r})};return s.displayName=t+"Provider",[s,function(n,s){let l=s?.[e]?.[a]||o,u=i.useContext(l);if(u)return u;if(void 0!==r)return r;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 r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}function p(e){let t=function(e){let t=i.forwardRef((e,t)=>{let{children:n,...r}=e;if(i.isValidElement(n)){let e,o;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref,s=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==i.Fragment&&(s.ref=t?u(t,a):a),i.cloneElement(n,s)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=i.forwardRef((e,n)=>{let{children:r,...o}=e,a=i.Children.toArray(r),s=a.find(m);if(s){let e=s.props.children,r=a.map(t=>t!==s?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,d.jsx)(t,{...o,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return(0,d.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var h=Symbol("radix.slottable");function m(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===h}var v=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=p(`Primitive.${t}`),r=i.forwardRef((e,r)=>{let{asChild:i,...o}=e,a=i?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(a,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function g(e,t){e&&a.flushSync(()=>e.dispatchEvent(t))}function y(e){let t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}var b="dismissableLayer.update",w=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),x=i.forwardRef((e,t)=>{var n,o;let{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:p,onDismiss:h,...m}=e,g=i.useContext(w),[x,E]=i.useState(null),C=null!==(o=null==x?void 0:x.ownerDocument)&&void 0!==o?o:null===(n=globalThis)||void 0===n?void 0:n.document,[,S]=i.useState({}),R=c(t,e=>E(e)),M=Array.from(g.layers),[k]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),L=M.indexOf(k),A=x?M.indexOf(x):-1,D=g.layersWithOutsidePointerEventsDisabled.size>0,j=A>=L,N=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=y(e),o=i.useRef(!1),a=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){T("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...g.branches].some(e=>e.contains(t));!j||n||(null==u||u(e),null==p||p(e),e.defaultPrevented||null==h||h())},C),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=y(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!o.current&&T("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...g.branches].some(e=>e.contains(t))||(null==f||f(e),null==p||p(e),e.defaultPrevented||null==h||h())},C);return!function(e,t=globalThis?.document){let n=y(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{A!==g.layers.size-1||(null==l||l(e),!e.defaultPrevented&&h&&(e.preventDefault(),h()))},C),i.useEffect(()=>{if(x)return a&&(0===g.layersWithOutsidePointerEventsDisabled.size&&(r=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(x)),g.layers.add(x),P(),()=>{a&&1===g.layersWithOutsidePointerEventsDisabled.size&&(C.body.style.pointerEvents=r)}},[x,C,a,g]),i.useEffect(()=>()=>{x&&(g.layers.delete(x),g.layersWithOutsidePointerEventsDisabled.delete(x),P())},[x,g]),i.useEffect(()=>{let e=()=>S({});return document.addEventListener(b,e),()=>document.removeEventListener(b,e)},[]),(0,d.jsx)(v.div,{...m,ref:R,style:{pointerEvents:D?j?"auto":"none":void 0,...e.style},onFocusCapture:s(e.onFocusCapture,O.onFocusCapture),onBlurCapture:s(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:s(e.onPointerDownCapture,N.onPointerDownCapture)})});x.displayName="DismissableLayer";var E=i.forwardRef((e,t)=>{let n=i.useContext(w),r=i.useRef(null),o=c(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,d.jsx)(v.div,{...e,ref:o})});function P(){let e=new CustomEvent(b);document.dispatchEvent(e)}function T(e,t,n,r){let{discrete:i}=r,o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),i?g(o,a):o.dispatchEvent(a)}E.displayName="DismissableLayerBranch";var C=globalThis?.document?i.useLayoutEffect:()=>{},S=i.forwardRef((e,t)=>{var n,r;let{container:o,...s}=e,[l,u]=i.useState(!1);C(()=>u(!0),[]);let c=o||l&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return c?a.createPortal((0,d.jsx)(v.div,{...s,ref:t}),c):null});S.displayName="Portal";var R=e=>{var t,n;let r,o;let{present:a,children:s}=e,l=function(e){var t,n;let[r,o]=i.useState(),a=i.useRef({}),s=i.useRef(e),l=i.useRef("none"),[u,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},i.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return i.useEffect(()=>{let e=M(a.current);l.current="mounted"===u?e:"none"},[u]),C(()=>{let t=a.current,n=s.current;if(n!==e){let r=l.current,i=M(t);e?c("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):n&&r!==i?c("ANIMATION_OUT"):c("UNMOUNT"),s.current=e}},[e,c]),C(()=>{if(r){var e;let t;let n=null!==(e=r.ownerDocument.defaultView)&&void 0!==e?e:window,i=e=>{let i=M(a.current).includes(e.animationName);if(e.target===r&&i&&(c("ANIMATION_END"),!s.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},o=e=>{e.target===r&&(l.current=M(a.current))};return r.addEventListener("animationstart",o),r.addEventListener("animationcancel",i),r.addEventListener("animationend",i),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",o),r.removeEventListener("animationcancel",i),r.removeEventListener("animationend",i)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:i.useCallback(e=>{e&&(a.current=getComputedStyle(e)),o(e)},[])}}(a),u="function"==typeof s?s({present:l.isPresent}):i.Children.only(s),d=c(l.ref,(r=null===(t=Object.getOwnPropertyDescriptor(u.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in r&&r.isReactWarning?u.ref:(r=null===(n=Object.getOwnPropertyDescriptor(u,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning?u.props.ref:u.props.ref||u.ref);return"function"==typeof s||l.isPresent?i.cloneElement(u,{ref:d}):null};function M(e){return(null==e?void 0:e.animationName)||"none"}R.displayName="Presence";var k=o[" useInsertionEffect ".trim().toString()]||C;Symbol("RADIX:SYNC_STATE");var L=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),A=i.forwardRef((e,t)=>(0,d.jsx)(v.span,{...e,ref:t,style:{...L,...e.style}}));A.displayName="VisuallyHidden";var D="ToastProvider",[j,N,O]=function(e){let t=e+"CollectionProvider",[n,r]=f(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:n}=e,r=i.useRef(null),a=i.useRef(new Map).current;return(0,d.jsx)(o,{scope:t,itemMap:a,collectionRef:r,children:n})};s.displayName=t;let l=e+"CollectionSlot",u=p(l),h=i.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=c(t,a(l,n).collectionRef);return(0,d.jsx)(u,{ref:i,children:r})});h.displayName=l;let m=e+"CollectionItemSlot",v="data-radix-collection-item",g=p(m),y=i.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,s=i.useRef(null),l=c(t,s),u=a(m,n);return i.useEffect(()=>(u.itemMap.set(s,{ref:s,...o}),()=>void u.itemMap.delete(s))),(0,d.jsx)(g,{[v]:"",ref:l,children:r})});return y.displayName=m,[{Provider:s,Slot:h,ItemSlot:y},function(t){let n=a(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}("Toast"),[V,F]=f("Toast",[O]),[I,W]=V(D),B=e=>{let{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:a=50,children:s}=e,[l,u]=i.useState(null),[c,f]=i.useState(0),p=i.useRef(!1),h=i.useRef(!1);return n.trim()||console.error("Invalid prop `label` supplied to `".concat(D,"`. Expected non-empty `string`.")),(0,d.jsx)(j.Provider,{scope:t,children:(0,d.jsx)(I,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:a,toastCount:c,viewport:l,onViewportChange:u,onToastAdd:i.useCallback(()=>f(e=>e+1),[]),onToastRemove:i.useCallback(()=>f(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:h,children:s})})};B.displayName=D;var _="ToastViewport",z=["F8"],X="toast.viewportPause",Z="toast.viewportResume",U=i.forwardRef((e,t)=>{let{__scopeToast:n,hotkey:r=z,label:o="Notifications ({hotkey})",...a}=e,s=W(_,n),l=N(n),u=i.useRef(null),f=i.useRef(null),p=i.useRef(null),h=i.useRef(null),m=c(t,h,s.onViewportChange),g=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=s.toastCount>0;i.useEffect(()=>{let e=e=>{var t;0!==r.length&&r.every(t=>e[t]||e.code===t)&&(null===(t=h.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[r]),i.useEffect(()=>{let e=u.current,t=h.current;if(y&&e&&t){let n=()=>{if(!s.isClosePausedRef.current){let e=new CustomEvent(X);t.dispatchEvent(e),s.isClosePausedRef.current=!0}},r=()=>{if(s.isClosePausedRef.current){let e=new CustomEvent(Z);t.dispatchEvent(e),s.isClosePausedRef.current=!1}},i=t=>{e.contains(t.relatedTarget)||r()},o=()=>{e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),e.addEventListener("focusout",i),e.addEventListener("pointermove",n),e.addEventListener("pointerleave",o),window.addEventListener("blur",n),window.addEventListener("focus",r),()=>{e.removeEventListener("focusin",n),e.removeEventListener("focusout",i),e.removeEventListener("pointermove",n),e.removeEventListener("pointerleave",o),window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}},[y,s.isClosePausedRef]);let b=i.useCallback(e=>{let{tabbingDirection:t}=e,n=l().map(e=>{let n=e.ref.current,r=[n,...function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}(n)];return"forwards"===t?r:r.reverse()});return("forwards"===t?n.reverse():n).flat()},[l]);return i.useEffect(()=>{let e=h.current;if(e){let t=t=>{let n=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!n){var r,i,o;let n=document.activeElement,a=t.shiftKey;if(t.target===e&&a){null===(r=f.current)||void 0===r||r.focus();return}let s=b({tabbingDirection:a?"backwards":"forwards"}),l=s.findIndex(e=>e===n);eu(s.slice(l+1))?t.preventDefault():a?null===(i=f.current)||void 0===i||i.focus():null===(o=p.current)||void 0===o||o.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[l,b]),(0,d.jsxs)(E,{ref:u,role:"region","aria-label":o.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&(0,d.jsx)(G,{ref:f,onFocusFromOutsideViewport:()=>{eu(b({tabbingDirection:"forwards"}))}}),(0,d.jsx)(j.Slot,{scope:n,children:(0,d.jsx)(v.ol,{tabIndex:-1,...a,ref:m})}),y&&(0,d.jsx)(G,{ref:p,onFocusFromOutsideViewport:()=>{eu(b({tabbingDirection:"backwards"}))}})]})});U.displayName=_;var Y="ToastFocusProxy",G=i.forwardRef((e,t)=>{let{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,o=W(Y,n);return(0,d.jsx)(A,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:e=>{var t;let n=e.relatedTarget;(null===(t=o.viewport)||void 0===t?void 0:t.contains(n))||r()}})});G.displayName=Y;var H="Toast",$=i.forwardRef((e,t)=>{let{forceMount:n,open:r,defaultOpen:o,onOpenChange:a,...l}=e,[u,c]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,a,s]=function({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),o=i.useRef(n),a=i.useRef(t);return k(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}({defaultProp:t,onChange:n}),l=void 0!==e,u=l?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,r])}return[u,i.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&s.current?.(n)}else a(t)},[l,e,a,s])]}({prop:r,defaultProp:null==o||o,onChange:a,caller:H});return(0,d.jsx)(R,{present:n||u,children:(0,d.jsx)(q,{open:u,...l,ref:t,onClose:()=>c(!1),onPause:y(e.onPause),onResume:y(e.onResume),onSwipeStart:s(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:s(e.onSwipeMove,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y","".concat(n,"px"))}),onSwipeCancel:s(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:s(e.onSwipeEnd,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y","".concat(n,"px")),c(!1)})})})});$.displayName=H;var[K,J]=V(H,{onClose(){}}),q=i.forwardRef((e,t)=>{let{__scopeToast:n,type:r="foreground",duration:o,open:l,onClose:u,onEscapeKeyDown:f,onPause:p,onResume:h,onSwipeStart:m,onSwipeMove:g,onSwipeCancel:b,onSwipeEnd:w,...E}=e,P=W(H,n),[T,C]=i.useState(null),S=c(t,e=>C(e)),R=i.useRef(null),M=i.useRef(null),k=o||P.duration,L=i.useRef(0),A=i.useRef(k),D=i.useRef(0),{onToastAdd:N,onToastRemove:O}=P,V=y(()=>{var e;(null==T?void 0:T.contains(document.activeElement))&&(null===(e=P.viewport)||void 0===e||e.focus()),u()}),F=i.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(D.current),L.current=new Date().getTime(),D.current=window.setTimeout(V,e))},[V]);i.useEffect(()=>{let e=P.viewport;if(e){let t=()=>{F(A.current),null==h||h()},n=()=>{let e=new Date().getTime()-L.current;A.current=A.current-e,window.clearTimeout(D.current),null==p||p()};return e.addEventListener(X,n),e.addEventListener(Z,t),()=>{e.removeEventListener(X,n),e.removeEventListener(Z,t)}}},[P.viewport,k,p,h,F]),i.useEffect(()=>{l&&!P.isClosePausedRef.current&&F(k)},[l,k,P.isClosePausedRef,F]),i.useEffect(()=>(N(),()=>O()),[N,O]);let I=i.useMemo(()=>T?function e(t){let n=[];return Array.from(t.childNodes).forEach(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent&&n.push(t.textContent),t.nodeType===t.ELEMENT_NODE){let r=t.ariaHidden||t.hidden||"none"===t.style.display,i=""===t.dataset.radixToastAnnounceExclude;if(!r){if(i){let e=t.dataset.radixToastAnnounceAlt;e&&n.push(e)}else n.push(...e(t))}}}),n}(T):null,[T]);return P.viewport?(0,d.jsxs)(d.Fragment,{children:[I&&(0,d.jsx)(Q,{__scopeToast:n,role:"status","aria-live":"foreground"===r?"assertive":"polite","aria-atomic":!0,children:I}),(0,d.jsx)(K,{scope:n,onClose:V,children:a.createPortal((0,d.jsx)(j.ItemSlot,{scope:n,children:(0,d.jsx)(x,{asChild:!0,onEscapeKeyDown:s(f,()=>{P.isFocusedToastEscapeKeyDownRef.current||V(),P.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,d.jsx)(v.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":P.swipeDirection,...E,ref:S,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:s(e.onKeyDown,e=>{"Escape"!==e.key||(null==f||f(e.nativeEvent),e.nativeEvent.defaultPrevented||(P.isFocusedToastEscapeKeyDownRef.current=!0,V()))}),onPointerDown:s(e.onPointerDown,e=>{0===e.button&&(R.current={x:e.clientX,y:e.clientY})}),onPointerMove:s(e.onPointerMove,e=>{if(!R.current)return;let t=e.clientX-R.current.x,n=e.clientY-R.current.y,r=!!M.current,i=["left","right"].includes(P.swipeDirection),o=["left","up"].includes(P.swipeDirection)?Math.min:Math.max,a=i?o(0,t):0,s=i?0:o(0,n),l="touch"===e.pointerType?10:2,u={x:a,y:s},c={originalEvent:e,delta:u};r?(M.current=u,es("toast.swipeMove",g,c,{discrete:!1})):el(u,P.swipeDirection,l)?(M.current=u,es("toast.swipeStart",m,c,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(n)>l)&&(R.current=null)}),onPointerUp:s(e.onPointerUp,e=>{let t=M.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),M.current=null,R.current=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};el(t,P.swipeDirection,P.swipeThreshold)?es("toast.swipeEnd",w,r,{discrete:!0}):es("toast.swipeCancel",b,r,{discrete:!0}),n.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),P.viewport)})]}):null}),Q=e=>{let{__scopeToast:t,children:n,...r}=e,o=W(H,t),[a,s]=i.useState(!1),[l,u]=i.useState(!1);return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=y(e);C(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}(()=>s(!0)),i.useEffect(()=>{let e=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(e)},[]),l?null:(0,d.jsx)(S,{asChild:!0,children:(0,d.jsx)(A,{...r,children:a&&(0,d.jsxs)(d.Fragment,{children:[o.label," ",n]})})})},ee=i.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,d.jsx)(v.div,{...r,ref:t})});ee.displayName="ToastTitle";var et=i.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,d.jsx)(v.div,{...r,ref:t})});et.displayName="ToastDescription";var en="ToastAction",er=i.forwardRef((e,t)=>{let{altText:n,...r}=e;return n.trim()?(0,d.jsx)(ea,{altText:n,asChild:!0,children:(0,d.jsx)(eo,{...r,ref:t})}):(console.error("Invalid prop `altText` supplied to `".concat(en,"`. Expected non-empty `string`.")),null)});er.displayName=en;var ei="ToastClose",eo=i.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e,i=J(ei,n);return(0,d.jsx)(ea,{asChild:!0,children:(0,d.jsx)(v.button,{type:"button",...r,ref:t,onClick:s(e.onClick,i.onClose)})})});eo.displayName=ei;var ea=i.forwardRef((e,t)=>{let{__scopeToast:n,altText:r,...i}=e;return(0,d.jsx)(v.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function es(e,t,n,r){let{discrete:i}=r,o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),i?g(o,a):o.dispatchEvent(a)}var el=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Math.abs(e.x),i=Math.abs(e.y),o=r>i;return"left"===t||"right"===t?o&&r>n:!o&&i>n};function eu(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var ec=B,ed=U,ef=$,ep=ee,eh=et,em=er,ev=eo},56561:function(e,t,n){n.d(t,{VY:function(){return eP},h_:function(){return eE},zt:function(){return eb},fC:function(){return ew},xz:function(){return ex}});var r,i=n(2265),o=n(6741),a=n(98575),s=n(73966),l=n(54887),u=n(37053),c=n(57437),d=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=i.forwardRef((e,n)=>{let{asChild:r,...i}=e,o=r?u.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,c.jsx)(o,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),f=n(26606),p=n(91096),h="dismissableLayer.update",m=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),v=i.forwardRef((e,t)=>{var n,s;let{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:u,onPointerDownOutside:v,onFocusOutside:b,onInteractOutside:w,onDismiss:x,...E}=e,P=i.useContext(m),[T,C]=i.useState(null),S=null!==(s=null==T?void 0:T.ownerDocument)&&void 0!==s?s:null===(n=globalThis)||void 0===n?void 0:n.document,[,R]=i.useState({}),M=(0,a.e)(t,e=>C(e)),k=Array.from(P.layers),[L]=[...P.layersWithOutsidePointerEventsDisabled].slice(-1),A=k.indexOf(L),D=T?k.indexOf(T):-1,j=P.layersWithOutsidePointerEventsDisabled.size>0,N=D>=A,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,f.W)(e),o=i.useRef(!1),a=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){y("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...P.branches].some(e=>e.contains(t));!N||n||(null==v||v(e),null==w||w(e),e.defaultPrevented||null==x||x())},S),V=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,f.W)(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!o.current&&y("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...P.branches].some(e=>e.contains(t))||(null==b||b(e),null==w||w(e),e.defaultPrevented||null==x||x())},S);return(0,p.e)(e=>{D!==P.layers.size-1||(null==u||u(e),!e.defaultPrevented&&x&&(e.preventDefault(),x()))},S),i.useEffect(()=>{if(T)return l&&(0===P.layersWithOutsidePointerEventsDisabled.size&&(r=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),P.layersWithOutsidePointerEventsDisabled.add(T)),P.layers.add(T),g(),()=>{l&&1===P.layersWithOutsidePointerEventsDisabled.size&&(S.body.style.pointerEvents=r)}},[T,S,l,P]),i.useEffect(()=>()=>{T&&(P.layers.delete(T),P.layersWithOutsidePointerEventsDisabled.delete(T),g())},[T,P]),i.useEffect(()=>{let e=()=>R({});return document.addEventListener(h,e),()=>document.removeEventListener(h,e)},[]),(0,c.jsx)(d.div,{...E,ref:M,style:{pointerEvents:j?N?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.M)(e.onFocusCapture,V.onFocusCapture),onBlurCapture:(0,o.M)(e.onBlurCapture,V.onBlurCapture),onPointerDownCapture:(0,o.M)(e.onPointerDownCapture,O.onPointerDownCapture)})});function g(){let e=new CustomEvent(h);document.dispatchEvent(e)}function y(e,t,n,r){let{discrete:i}=r,o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&o.addEventListener(e,t,{once:!0}),i)?o&&l.flushSync(()=>o.dispatchEvent(a)):o.dispatchEvent(a)}v.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(m),r=i.useRef(null),o=(0,a.e)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,c.jsx)(d.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var b=n(99255),w=n(97859),x=n(50032),E=i.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,c.jsx)(d.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,c.jsx)("polygon",{points:"0,0 30,0 15,10"})})});E.displayName="Arrow";var P=n(61188),T=n(90420),C="Popper",[S,R]=(0,s.b)(C),[M,k]=S(C),L=e=>{let{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return(0,c.jsx)(M,{scope:t,anchor:r,onAnchorChange:o,children:n})};L.displayName=C;var A="PopperAnchor",D=i.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,s=k(A,n),l=i.useRef(null),u=(0,a.e)(t,l);return i.useEffect(()=>{s.onAnchorChange((null==r?void 0:r.current)||l.current)}),r?null:(0,c.jsx)(d.div,{...o,ref:u})});D.displayName=A;var j="PopperContent",[N,O]=S(j),V=i.forwardRef((e,t)=>{var n,r,o,s,l,u,p,h;let{__scopePopper:m,side:v="bottom",sideOffset:g=0,align:y="center",alignOffset:b=0,arrowPadding:E=0,avoidCollisions:C=!0,collisionBoundary:S=[],collisionPadding:R=0,sticky:M="partial",hideWhenDetached:L=!1,updatePositionStrategy:A="optimized",onPlaced:D,...O}=e,V=k(j,m),[F,I]=i.useState(null),W=(0,a.e)(t,e=>I(e)),[X,Z]=i.useState(null),U=(0,T.t)(X),Y=null!==(p=null==U?void 0:U.width)&&void 0!==p?p:0,G=null!==(h=null==U?void 0:U.height)&&void 0!==h?h:0,H="number"==typeof R?R:{top:0,right:0,bottom:0,left:0,...R},$=Array.isArray(S)?S:[S],K=$.length>0,J={padding:H,boundary:$.filter(B),altBoundary:K},{refs:q,floatingStyles:Q,placement:ee,isPositioned:et,middlewareData:en}=(0,w.YF)({strategy:"fixed",placement:v+("center"!==y?"-"+y:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,x.Me)(...t,{animationFrame:"always"===A})},elements:{reference:V.anchor},middleware:[(0,w.cv)({mainAxis:g+G,alignmentAxis:b}),C&&(0,w.uY)({mainAxis:!0,crossAxis:!1,limiter:"partial"===M?(0,w.dr)():void 0,...J}),C&&(0,w.RR)({...J}),(0,w.dp)({...J,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:i}=e,{width:o,height:a}=n.reference,s=t.floating.style;s.setProperty("--radix-popper-available-width","".concat(r,"px")),s.setProperty("--radix-popper-available-height","".concat(i,"px")),s.setProperty("--radix-popper-anchor-width","".concat(o,"px")),s.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}}),X&&(0,w.x7)({element:X,padding:E}),_({arrowWidth:Y,arrowHeight:G}),L&&(0,w.Cp)({strategy:"referenceHidden",...J})]}),[er,ei]=z(ee),eo=(0,f.W)(D);(0,P.b)(()=>{et&&(null==eo||eo())},[et,eo]);let ea=null===(n=en.arrow)||void 0===n?void 0:n.x,es=null===(r=en.arrow)||void 0===r?void 0:r.y,el=(null===(o=en.arrow)||void 0===o?void 0:o.centerOffset)!==0,[eu,ec]=i.useState();return(0,P.b)(()=>{F&&ec(window.getComputedStyle(F).zIndex)},[F]),(0,c.jsx)("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:et?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eu,"--radix-popper-transform-origin":[null===(s=en.transformOrigin)||void 0===s?void 0:s.x,null===(l=en.transformOrigin)||void 0===l?void 0:l.y].join(" "),...(null===(u=en.hide)||void 0===u?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,c.jsx)(N,{scope:m,placedSide:er,onArrowChange:Z,arrowX:ea,arrowY:es,shouldHideArrow:el,children:(0,c.jsx)(d.div,{"data-side":er,"data-align":ei,...O,ref:W,style:{...O.style,animation:et?void 0:"none"}})})})});V.displayName=j;var F="PopperArrow",I={top:"bottom",right:"left",bottom:"top",left:"right"},W=i.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=O(F,n),o=I[i.placedSide];return(0,c.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,c.jsx)(E,{...r,ref:t,style:{...r.style,display:"block"}})})});function B(e){return null!==e}W.displayName=F;var _=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=z(s),m={start:"0%",center:"50%",end:"100%"}[h],v=(null!==(o=null===(r=u.arrow)||void 0===r?void 0:r.x)&&void 0!==o?o:0)+d/2,g=(null!==(a=null===(i=u.arrow)||void 0===i?void 0:i.y)&&void 0!==a?a:0)+f/2,y="",b="";return"bottom"===p?(y=c?m:"".concat(v,"px"),b="".concat(-f,"px")):"top"===p?(y=c?m:"".concat(v,"px"),b="".concat(l.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),b=c?m:"".concat(g,"px")):"left"===p&&(y="".concat(l.floating.width+f,"px"),b=c?m:"".concat(g,"px")),{data:{x:y,y:b}}}});function z(e){let[t,n="center"]=e.split("-");return[t,n]}var X=i.forwardRef((e,t)=>{var n,r;let{container:o,...a}=e,[s,u]=i.useState(!1);(0,P.b)(()=>u(!0),[]);let f=o||s&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return f?l.createPortal((0,c.jsx)(d.div,{...a,ref:t}),f):null});X.displayName="Portal";var Z=n(71599),U=n(80886),Y=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=i.forwardRef((e,n)=>{let{asChild:r,...i}=e,o=r?u.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,c.jsx)(o,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),G=i.forwardRef((e,t)=>(0,c.jsx)(Y.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}}));G.displayName="VisuallyHidden";var[H,$]=(0,s.b)("Tooltip",[R]),K=R(),J="TooltipProvider",q="tooltip.open",[Q,ee]=H(J),et=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[s,l]=i.useState(!0),u=i.useRef(!1),d=i.useRef(0);return i.useEffect(()=>{let e=d.current;return()=>window.clearTimeout(e)},[]),(0,c.jsx)(Q,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:i.useCallback(()=>{window.clearTimeout(d.current),l(!1)},[]),onClose:i.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>l(!0),r)},[r]),isPointerInTransitRef:u,onPointerInTransitChange:i.useCallback(e=>{u.current=e},[]),disableHoverableContent:o,children:a})};et.displayName=J;var en="Tooltip",[er,ei]=H(en),eo=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:l}=e,u=ee(en,e.__scopeTooltip),d=K(t),[f,p]=i.useState(null),h=(0,b.M)(),m=i.useRef(0),v=null!=s?s:u.disableHoverableContent,g=null!=l?l:u.delayDuration,y=i.useRef(!1),[w=!1,x]=(0,U.T)({prop:r,defaultProp:o,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(q))):u.onClose(),null==a||a(e)}}),E=i.useMemo(()=>w?y.current?"delayed-open":"instant-open":"closed",[w]),P=i.useCallback(()=>{window.clearTimeout(m.current),m.current=0,y.current=!1,x(!0)},[x]),T=i.useCallback(()=>{window.clearTimeout(m.current),m.current=0,x(!1)},[x]),C=i.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{y.current=!0,x(!0),m.current=0},g)},[g,x]);return i.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),(0,c.jsx)(L,{...d,children:(0,c.jsx)(er,{scope:t,contentId:h,open:w,stateAttribute:E,trigger:f,onTriggerChange:p,onTriggerEnter:i.useCallback(()=>{u.isOpenDelayed?C():P()},[u.isOpenDelayed,C,P]),onTriggerLeave:i.useCallback(()=>{v?T():(window.clearTimeout(m.current),m.current=0)},[T,v]),onOpen:P,onClose:T,disableHoverableContent:v,children:n})})};eo.displayName=en;var ea="TooltipTrigger",es=i.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,s=ei(ea,n),l=ee(ea,n),u=K(n),f=i.useRef(null),p=(0,a.e)(t,f,s.onTriggerChange),h=i.useRef(!1),m=i.useRef(!1),v=i.useCallback(()=>h.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),(0,c.jsx)(D,{asChild:!0,...u,children:(0,c.jsx)(d.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:p,onPointerMove:(0,o.M)(e.onPointerMove,e=>{"touch"===e.pointerType||m.current||l.isPointerInTransitRef.current||(s.onTriggerEnter(),m.current=!0)}),onPointerLeave:(0,o.M)(e.onPointerLeave,()=>{s.onTriggerLeave(),m.current=!1}),onPointerDown:(0,o.M)(e.onPointerDown,()=>{h.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:(0,o.M)(e.onFocus,()=>{h.current||s.onOpen()}),onBlur:(0,o.M)(e.onBlur,s.onClose),onClick:(0,o.M)(e.onClick,s.onClose)})})});es.displayName=ea;var el="TooltipPortal",[eu,ec]=H(el,{forceMount:void 0}),ed=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=ei(el,t);return(0,c.jsx)(eu,{scope:t,forceMount:n,children:(0,c.jsx)(Z.z,{present:n||o.open,children:(0,c.jsx)(X,{asChild:!0,container:i,children:r})})})};ed.displayName=el;var ef="TooltipContent",ep=i.forwardRef((e,t)=>{let n=ec(ef,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=ei(ef,e.__scopeTooltip);return(0,c.jsx)(Z.z,{present:r||a.open,children:a.disableHoverableContent?(0,c.jsx)(eg,{side:i,...o,ref:t}):(0,c.jsx)(eh,{side:i,...o,ref:t})})}),eh=i.forwardRef((e,t)=>{let n=ei(ef,e.__scopeTooltip),r=ee(ef,e.__scopeTooltip),o=i.useRef(null),s=(0,a.e)(t,o),[l,u]=i.useState(null),{trigger:d,onClose:f}=n,p=o.current,{onPointerInTransitChange:h}=r,m=i.useCallback(()=>{u(null),h(!1)},[h]),v=i.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());u(function(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,i),...function(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect())])),h(!0)},[h]);return i.useEffect(()=>()=>m(),[m]),i.useEffect(()=>{if(d&&p){let e=e=>v(e,p),t=e=>v(e,d);return d.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[d,p,v,m]),i.useEffect(()=>{if(l){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==d?void 0:d.contains(t))||(null==p?void 0:p.contains(t)),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let a=t[e].x,s=t[e].y,l=t[o].x,u=t[o].y;s>r!=u>r&&n<(l-a)*(r-s)/(u-s)+a&&(i=!i)}return i}(n,l);r?m():i&&(m(),f())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[d,p,l,f,m]),(0,c.jsx)(eg,{...e,ref:s})}),[em,ev]=H(en,{isInside:!1}),eg=i.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...l}=e,d=ei(ef,n),f=K(n),{onClose:p}=d;return i.useEffect(()=>(document.addEventListener(q,p),()=>document.removeEventListener(q,p)),[p]),i.useEffect(()=>{if(d.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(d.trigger))&&p()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,p]),(0,c.jsx)(v,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:(0,c.jsxs)(V,{"data-state":d.stateAttribute,...f,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,c.jsx)(u.A4,{children:r}),(0,c.jsx)(em,{scope:n,isInside:!0,children:(0,c.jsx)(G,{id:d.contentId,role:"tooltip",children:o||r})})]})})});ep.displayName=ef;var ey="TooltipArrow";i.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=K(n);return ev(ey,n).isInside?null:(0,c.jsx)(W,{...i,...r,ref:t})}).displayName=ey;var eb=et,ew=eo,ex=es,eE=ed,eP=ep},26606:function(e,t,n){n.d(t,{W:function(){return i}});var r=n(2265);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},80886:function(e,t,n){n.d(t,{T:function(){return o}});var r=n(2265),i=n(26606);function o({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,a]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[o]=n,a=r.useRef(o),s=(0,i.W)(t);return r.useEffect(()=>{a.current!==o&&(s(o),a.current=o)},[o,a,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o,u=(0,i.W)(n);return[l,r.useCallback(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else a(t)},[s,e,a,u])]}},91096:function(e,t,n){n.d(t,{e:function(){return o}});var r=n(2265),i=n(26606);function o(e,t=globalThis?.document){let n=(0,i.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])}},61188:function(e,t,n){n.d(t,{b:function(){return i}});var r=n(2265),i=globalThis?.document?r.useLayoutEffect:()=>{}},90420:function(e,t,n){n.d(t,{t:function(){return o}});var r=n(2265),i=n(61188);function o(e){let[t,n]=r.useState(void 0);return(0,i.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}},16123:function(e,t,n){n.d(t,{J:function(){return r}});function r(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}},53359:function(e,t,n){n.d(t,{_:function(){return i}});var r=n(16123);function i(e,t){var n=(0,r.J)(e,t,"get");return n.get?n.get.call(e):n.value}},31378:function(e,t,n){n.d(t,{_:function(){return r}});function r(e,t,n){!function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}},70262:function(e,t,n){n.d(t,{_:function(){return i}});var r=n(16123);function i(e,t,n){var i=(0,r.J)(e,t,"set");return!function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=n}}(e,i,n),n}},90535:function(e,t,n){n.d(t,{j:function(){return a}});var r=n(61994);let i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,o=r.W,a=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return o(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],r=null==s?void 0:s[e];if(null===t)return null;let o=i(t)||i(r);return a[e][o]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return o(e,l,null==t?void 0:null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...u}[t]):({...s,...u})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},61994:function(e,t,n){function r(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r)}return i}(e))&&(r&&(r+=" "),r+=t);return r}n.d(t,{W:function(){return r}}),t.Z=r},49637:function(e,t,n){n.d(t,{oO:function(){return o}});var r=n(2265),i=n(64252);function o(e=!0){let t=(0,r.useContext)(i.O);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:o,register:a}=t,s=(0,r.useId)();(0,r.useEffect)(()=>{if(e)return a(s)},[e]);let l=(0,r.useCallback)(()=>e&&o&&o(s),[s,o,e]);return!n&&o?[!1,l]:[!0]}},58881:function(e,t,n){n.d(t,{p:function(){return r}});let r=(0,n(2265).createContext)({})},45750:function(e,t,n){n.d(t,{_:function(){return r}});let r=(0,n(2265).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},64252:function(e,t,n){n.d(t,{O:function(){return r}});let r=(0,n(2265).createContext)(null)},8833:function(e,t,n){function r(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function i(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function o(e,t,n,r){if("function"==typeof t){let[o,a]=i(r);t=t(void 0!==n?n:e.custom,o,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[o,a]=i(r);t=t(void 0!==n?n:e.custom,o,a)}return t}function a(e,t,n){let r=e.getProps();return o(r,t,void 0!==n?n:r.custom,e)}function s(e,t){return e?.[t]??e?.default??e}n.d(t,{E:function(){return is}});var l,u,c,d=n(26147);let f=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],p=new Set(f),h=new Set(["width","height","top","left","right","bottom",...f]);var m=n(94357);let v=e=>Array.isArray(e);var g=n(21457),y=n(87493);function b(e,t){let n=e.getValue("willChange");if((0,y.i)(n)&&n.add)return n.add(t);if(!n&&g.c.WillChange){let n=new g.c.WillChange("auto");e.addValue("willChange",n),n.add(t)}}let w=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),x="data-"+w("framerAppearId");var E=n(28441),P=n(56277),T=n(41927),C=n(69118);let S=e=>180*e/Math.PI,R=e=>k(S(Math.atan2(e[1],e[0]))),M={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:R,rotateZ:R,skewX:e=>S(Math.atan(e[1])),skewY:e=>S(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},k=e=>((e%=360)<0&&(e+=360),e),L=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),A=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),D={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:L,scaleY:A,scale:e=>(L(e)+A(e))/2,rotateX:e=>k(S(Math.atan2(e[6],e[5]))),rotateY:e=>k(S(Math.atan2(-e[2],e[0]))),rotateZ:R,rotate:R,skewX:e=>S(Math.atan(e[4])),skewY:e=>S(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function j(e){return e.includes("scale")?1:0}function N(e,t){let n,r;if(!e||"none"===e)return j(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)n=D,r=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=M,r=t}if(!r)return j(t);let o=n[t],a=r[1].split(",").map(V);return"function"==typeof o?o(a):a[o]}let O=(e,t)=>{let{transform:n="none"}=getComputedStyle(e);return N(n,t)};function V(e){return parseFloat(e.trim())}var F=n(61799),I=n(92854);let W=e=>e===F.Rx||e===I.px,B=new Set(["x","y","z"]),_=f.filter(e=>!B.has(e)),z={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>N(t,"x"),y:(e,{transform:t})=>N(t,"y")};z.translateX=z.x,z.translateY=z.y;let X=new Set,Z=!1,U=!1,Y=!1;function G(){if(U){let e=Array.from(X).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=function(e){let t=[];return _.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}U=!1,Z=!1,X.forEach(e=>e.complete(Y)),X.clear()}function H(){X.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(U=!0)})}class ${constructor(e,t,n,r,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(X.add(this),Z||(Z=!0,d.Wi.read(H),d.Wi.resolveKeyframes(G))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let i=r?.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}!function(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),X.delete(this)}cancel(){"scheduled"===this.state&&(X.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}var K=n(29711),J=n(62035);let q=e=>e.startsWith("--");function Q(e){let t;return()=>(void 0===t&&(t=e()),t)}let ee=Q(()=>void 0!==window.ScrollTimeline);var et=n(9868),en=n(35818),er=n(20557),ei=n(53857);let eo={},ea=function(e,t){let n=Q(e);return()=>eo[t]??n()}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing");var es=n(96092);let el=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,eu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:el([0,.65,.55,1]),circOut:el([.55,0,1,.45]),backIn:el([.31,.01,.66,-.59]),backOut:el([.33,1.53,.69,.99])};function ec(e){return"function"==typeof e&&"applyToOptions"in e}class ed extends et.T{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=e,(0,J.k)("string"!=typeof e.type,'animateMini doesn\'t support "type" as a string. Did you mean to import { spring } from "motion"?');let l=function({type:e,...t}){return ec(e)&&ea()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s="easeOut",times:l}={},u){let c={[t]:n};l&&(c.offset=l);let d=function e(t,n){if(t)return"function"==typeof t?ea()?(0,es.w)(t,n):"ease-out":(0,ei.q)(t)?el(t):Array.isArray(t)?t.map(t=>e(t,n)||eu.easeOut):eu[t]}(s,i);Array.isArray(d)&&(c.easing=d),er.f.value&&en.P.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"};u&&(f.pseudoElement=u);let p=e.animate(c,f);return er.f.value&&p.finished.finally(()=>{en.P.waapi--}),p}(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=(0,C.$)(r,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(e):q(n)?t.style.setProperty(n,e):t.style[n]=e,this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return(0,K.X)(Number(e))}get time(){return(0,K.X)(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=(0,K.w)(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&ee())?(this.animation.timeline=e,P.Z):t(this)}}var ef=n(98133),ep=n(43273),eh=n(75567),em=n(52927);let ev={anticipate:ep.L,backInOut:eh.XL,circInOut:em.X7};class eg extends ed{constructor(e){"string"==typeof e.ease&&e.ease in ev&&(e.ease=ev[e.ease]),(0,ef.f)(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...o}=this.options;if(!t)return;if(void 0!==e){t.set(e);return}let a=new E.L({...o,autoplay:!1}),s=(0,K.w)(this.finishedTime??this.time);t.setWithVelocity(a.sample(s-10).value,a.sample(s).value,10),a.stop()}}var ey=n(65050);let eb=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(ey.P.test(e)||"0"===e)&&!e.startsWith("url("));var ew=n(13537);let ex=new Set(["opacity","clipPath","filter","transform"]),eE=Q(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class eP extends et.T{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:s,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=T.X.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,name:s,motionValue:l,element:u,...c},f=u?.KeyframeResolver||$;this.keyframeResolver=new f(a,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:o,velocity:a,delay:s,isHandoff:l,onUpdate:u}=n;this.resolvedAt=T.X.now(),!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],a=eb(i,t),s=eb(o,t);return(0,J.K)(a===s,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!!a&&!!s&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||ec(n))&&r)}(e,i,o,a)&&((g.c.instantAnimations||!s)&&u?.(C.$(e,n,t)),e[0]=e[e.length-1],n.duration=0,n.repeat=0);let c={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!l&&function(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:a}=e;if(!(0,ew.R)(t?.owner?.current))return!1;let{onUpdate:s,transformTemplate:l}=t.owner.getProps();return eE()&&n&&ex.has(n)&&("transform"!==n||!l)&&!s&&!r&&"mirror"!==i&&0!==o&&"inertia"!==a}(c)?new eg({...c,element:c.motionValue.owner.current}):new E.L(c);d.finished.then(()=>this.notifyFinished()).catch(P.Z),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Y=!0,H(),G(),Y=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let eT=e=>null!==e,eC={type:"spring",stiffness:500,damping:25,restSpeed:10},eS=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),eR={type:"keyframes",duration:.8},eM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ek=(e,{keyframes:t})=>t.length>2?eR:p.has(e)?e.startsWith("scale")?eS(t[1]):eC:eM,eL=(e,t,n,r={},i,o)=>a=>{let l=s(r,e)||{},u=l.delay||r.delay||0,{elapsed:c=0}=r;c-=(0,K.w)(u);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-c,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:i};!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(l)&&Object.assign(f,ek(e,f)),f.duration&&(f.duration=(0,K.w)(f.duration)),f.repeatDelay&&(f.repeatDelay=(0,K.w)(f.repeatDelay)),void 0!==f.from&&(f.keyframes[0]=f.from);let p=!1;if(!1!==f.type&&(0!==f.duration||f.repeatDelay)||(f.duration=0,0!==f.delay||(p=!0)),(g.c.instantAnimations||g.c.skipAnimations)&&(p=!0,f.duration=0,f.delay=0),f.allowFlatten=!l.type&&!l.ease,p&&!o&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:n="loop"},r){let i=e.filter(eT),o=t&&"loop"!==n&&t%2==1?0:i.length-1;return i[o]}(f.keyframes,l);if(void 0!==e){d.Wi.update(()=>{f.onUpdate(e),f.onComplete()});return}}return l.isSync?new E.L(f):new eP(f)};function eA(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:l,...u}=t;r&&(o=r);let c=[],f=i&&e.animationState&&e.animationState.getState()[i];for(let t in u){let r=e.getValue(t,e.latestValues[t]??null),i=u[t];if(void 0===i||f&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(f,t))continue;let a={delay:n,...s(o||{},t)},l=r.get();if(void 0!==l&&!r.isAnimating&&!Array.isArray(i)&&i===l&&!a.velocity)continue;let p=!1;if(window.MotionHandoffAnimation){let n=e.props[x];if(n){let e=window.MotionHandoffAnimation(n,t,d.Wi);null!==e&&(a.startTime=e,p=!0)}}b(e,t),r.start(eL(t,r,i,e.shouldReduceMotion&&h.has(t)?{type:!1}:a,e,p));let m=r.animation;m&&c.push(m)}return l&&Promise.all(c).then(()=>{d.Wi.update(()=>{l&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=a(e,t)||{};for(let t in i={...i,...n}){var o;let n=v(o=i[t])?o[o.length-1]||0:o;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,(0,m.BX)(n))}}(e,l)})}),c}function eD(e,t,n={}){let r=a(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let o=r?()=>Promise.all(eA(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,r=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(ej).forEach((e,r)=>{e.notify("AnimationStart",t),a.push(eD(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,o+r,a,s,n)}:()=>Promise.resolve(),{when:l}=i;if(!l)return Promise.all([o(),s(n.delay)]);{let[e,t]="beforeChildren"===l?[o,s]:[s,o];return e().then(()=>t())}}function ej(e,t){return e.sortNodePosition(t)}function eN(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function eO(e){return"string"==typeof e||Array.isArray(e)}let eV=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eF=["initial",...eV],eI=eF.length,eW=[...eV].reverse(),eB=eV.length;function e_(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ez(){return{animate:e_(!0),whileInView:e_(),whileHover:e_(),whileTap:e_(),whileDrag:e_(),whileFocus:e_(),exit:e_()}}class eX{constructor(e){this.isMounted=!1,this.node=e}update(){}}class eZ extends eX{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>eD(e,t,n)));else if("string"==typeof t)r=eD(e,t,n);else{let i="function"==typeof t?a(e,t,n.custom):t;r=Promise.all(eA(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=ez(),i=!0,o=t=>(n,r)=>{let i=a(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function s(s){let{props:l}=e,u=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<eI;e++){let r=eF[e],i=t.props[r];(eO(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},c=[],d=new Set,f={},p=1/0;for(let t=0;t<eB;t++){var h;let a=eW[t],m=n[a],g=void 0!==l[a]?l[a]:u[a],y=eO(g),b=a===s?m.isActive:null;!1===b&&(p=t);let w=g===u[a]&&g!==l[a]&&y;if(w&&i&&e.manuallyAnimateOnMount&&(w=!1),m.protectedKeys={...f},!m.isActive&&null===b||!g&&!m.prevProp||r(g)||"boolean"==typeof g)continue;let x=(h=m.prevProp,"string"==typeof g?g!==h:!!Array.isArray(g)&&!eN(g,h)),E=x||a===s&&m.isActive&&!w&&y||t>p&&y,P=!1,T=Array.isArray(g)?g:[g],C=T.reduce(o(a),{});!1===b&&(C={});let{prevResolvedValues:S={}}=m,R={...S,...C},M=t=>{E=!0,d.has(t)&&(P=!0,d.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in R){let t=C[e],n=S[e];if(!f.hasOwnProperty(e))(v(t)&&v(n)?eN(t,n):t===n)?void 0!==t&&d.has(e)?M(e):m.protectedKeys[e]=!0:null!=t?M(e):d.add(e)}m.prevProp=g,m.prevResolvedValues=C,m.isActive&&(f={...f,...C}),i&&e.blockInitialAnimation&&(E=!1);let k=!(w&&x)||P;E&&k&&c.push(...T.map(e=>({animation:e,options:{type:a}})))}if(d.size){let t={};if("boolean"!=typeof l.initial){let n=a(e,Array.isArray(l.initial)?l.initial[0]:l.initial);n&&n.transition&&(t.transition=n.transition)}d.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let m=!!c.length;return i&&(!1===l.initial||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(m=!1),i=!1,m?t(c):Promise.resolve()}return{animateChanges:s,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=ez(),i=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();r(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let eU=0;class eY extends eX{constructor(){super(...arguments),this.id=eU++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let eG={x:!1,y:!1};var eH=n(33811);function e$(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}let eK=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function eJ(e){return{point:{x:e.pageX,y:e.pageY}}}let eq=e=>t=>eK(t)&&e(t,eJ(t));function eQ(e,t,n,r){return e$(e,t,eq(n),r)}function e0({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function e1(e){return e.max-e.min}function e2(e,t,n,r=.5){e.origin=r,e.originPoint=(0,eH.t)(t.min,t.max,e.origin),e.scale=e1(n)/e1(t),e.translate=(0,eH.t)(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function e5(e,t,n,r){e2(e.x,t.x,n.x,r?r.originX:void 0),e2(e.y,t.y,n.y,r?r.originY:void 0)}function e3(e,t,n){e.min=n.min+t.min,e.max=e.min+e1(t)}function e6(e,t,n){e.min=t.min-n.min,e.max=e.min+e1(t)}function e9(e,t,n){e6(e.x,t.x,n.x),e6(e.y,t.y,n.y)}let e4=()=>({translate:0,scale:1,origin:0,originPoint:0}),e8=()=>({x:e4(),y:e4()}),e7=()=>({min:0,max:0}),te=()=>({x:e7(),y:e7()});function tt(e){return[e("x"),e("y")]}function tn(e){return void 0===e||1===e}function tr({scale:e,scaleX:t,scaleY:n}){return!tn(e)||!tn(t)||!tn(n)}function ti(e){return tr(e)||to(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function to(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function ta(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function ts(e,t=0,n=1,r,i){e.min=ta(e.min,t,n,r,i),e.max=ta(e.max,t,n,r,i)}function tl(e,{x:t,y:n}){ts(e.x,t.translate,t.scale,t.originPoint),ts(e.y,n.translate,n.scale,n.originPoint)}function tu(e,t){e.min=e.min+t,e.max=e.max+t}function tc(e,t,n,r,i=.5){let o=(0,eH.t)(e.min,e.max,i);ts(e,t,n,o,r)}function td(e,t){tc(e.x,t.x,t.scaleX,t.scale,t.originX),tc(e.y,t.y,t.scaleY,t.scale,t.originY)}function tf(e,t){return e0(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let tp=({current:e})=>e?e.ownerDocument.defaultView:null;function th(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}var tm=n(24750);let tv=(e,t)=>Math.abs(e-t);class tg{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=tw(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(e=n.offset,t={x:0,y:0},Math.sqrt(tv(e.x,t.x)**2+tv(e.y,t.y)**2)>=3);if(!r&&!i)return;let{point:o}=n,{timestamp:a}=d.frameData;this.history.push({...o,timestamp:a});let{onStart:s,onMove:l}=this.handlers;r||(s&&s(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=ty(t,this.transformPagePoint),d.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=tw("pointercancel"===e.type?this.lastMoveEventInfo:ty(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!eK(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;let o=ty(eJ(e),this.transformPagePoint),{point:a}=o,{timestamp:s}=d.frameData;this.history=[{...a,timestamp:s}];let{onSessionStart:l}=t;l&&l(e,tw(o,this.history)),this.removeListeners=(0,tm.z)(eQ(this.contextWindow,"pointermove",this.handlePointerMove),eQ(this.contextWindow,"pointerup",this.handlePointerUp),eQ(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,d.Pn)(this.updatePoint)}}function ty(e,t){return t?{point:t(e.point)}:e}function tb(e,t){return{x:e.x-t.x,y:e.y-t.y}}function tw({point:e},t){return{point:e,delta:tb(e,tx(t)),offset:tb(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=tx(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>(0,K.w)(.1)));)n--;if(!r)return{x:0,y:0};let o=(0,K.X)(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function tx(e){return e[e.length-1]}var tE=n(81645),tP=n(21865);function tT(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function tC(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function tS(e,t,n){return{min:tR(e,t),max:tR(e,n)}}function tR(e,t){return"number"==typeof e?e:e[t]||0}let tM=new WeakMap;class tk{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=te(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new tg(e,{onSessionStart:e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(eJ(e).point)},onStart:(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===n||"y"===n?eG[n]?null:(eG[n]=!0,()=>{eG[n]=!1}):eG.x||eG.y?null:(eG.x=eG.y=!0,()=>{eG.x=eG.y=!1}),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tt(e=>{let t=this.getAxisMotionValue(e).get()||0;if(I.aQ.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];if(r){let e=e1(r);t=parseFloat(t)/100*e}}}this.originPoint[e]=t}),i&&d.Wi.postRender(()=>i(e,t)),b(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>tt(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:tp(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&d.Wi.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!tL(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?(0,eH.t)(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?(0,eH.t)(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&th(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:tT(e.x,n,i),y:tT(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:tS(e,"left","right"),y:tS(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&tt(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!th(t))return!1;let r=t.current;(0,J.k)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,n){let r=tf(e,n),{scroll:i}=t;return i&&(tu(r.x,i.offset.x),tu(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a={x:tC((e=i.layout.layoutBox).x,o.x),y:tC(e.y,o.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=e0(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(tt(a=>{if(!tL(a,t,this.currentDirection))return;let l=s&&s[a]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return b(this.visualElement,e),n.start(eL(e,n,0,t,this.visualElement,!1))}stopAnimation(){tt(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){tt(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){tt(t=>{let{drag:n}=this.getProps();if(!tL(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[t];i.set(e[t]-(0,eH.t)(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!th(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};tt(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();r[e]=function(e,t){let n=.5,r=e1(e),i=e1(t);return i>r?n=(0,tE.Y)(t.min,t.max-r,e.min):r>i&&(n=(0,tE.Y)(e.min,e.max-i,t.min)),(0,tP.u)(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),tt(t=>{if(!tL(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set((0,eH.t)(i,o,r[t]))})}addListeners(){if(!this.visualElement.current)return;tM.set(this.visualElement,this);let e=eQ(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();th(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),d.Wi.read(t);let i=e$(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(tt(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),r(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function tL(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class tA extends eX{constructor(e){super(e),this.removeGroupControls=P.Z,this.removeListeners=P.Z,this.controls=new tk(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||P.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let tD=e=>(t,n)=>{e&&d.Wi.postRender(()=>e(t,n))};class tj extends eX{constructor(){super(...arguments),this.removePointerDownListener=P.Z}onPointerDown(e){this.session=new tg(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tp(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:tD(e),onStart:tD(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&d.Wi.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=eQ(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var tN=n(57437);let{schedule:tO,cancel:tV}=(0,n(62862).Z)(queueMicrotask,!1);var tF=n(2265),tI=n(49637),tW=n(58881);let tB=(0,tF.createContext)({}),t_={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tz(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let tX={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!I.px.test(e))return e;e=parseFloat(e)}let n=tz(e,t.target.x),r=tz(e,t.target.y);return`${n}% ${r}%`}};var tZ=n(38596);let tU={};class tY extends tF.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;!function(e){for(let t in e)tU[t]=e[t],(0,tZ.f)(t)&&(tU[t].isCSSVariable=!0)}(tH),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),t_.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:o}=n;return o&&(o.isPresent=i,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||d.Wi.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),tO.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function tG(e){let[t,n]=(0,tI.oO)(),r=(0,tF.useContext)(tW.p);return(0,tN.jsx)(tY,{...e,layoutGroup:r,switchLayoutGroup:(0,tF.useContext)(tB),isPresent:t,safeToRemove:n})}let tH={borderRadius:{...tX,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tX,borderTopRightRadius:tX,borderBottomLeftRadius:tX,borderBottomRightRadius:tX,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=ey.P.parse(e);if(r.length>5)return e;let i=ey.P.createTransformer(e),o="number"!=typeof r[0]?1:0,a=n.x.scale*t.x,s=n.y.scale*t.y;r[0+o]/=a,r[1+o]/=s;let l=(0,eH.t)(a,s,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),i(r)}}};var t$=n(41464);function tK(e){return(0,t$.K)(e)&&"ownerSVGElement"in e}var tJ=n(94513),tq=n(98425);let tQ=(e,t)=>e.depth-t.depth;class t0{constructor(){this.children=[],this.isDirty=!1}add(e){(0,tq.y4)(this.children,e),this.isDirty=!0}remove(e){(0,tq.cl)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(tQ),this.isDirty=!1,this.children.forEach(e)}}function t1(e){return(0,y.i)(e)?e.get():e}let t2=["TopLeft","TopRight","BottomLeft","BottomRight"],t5=t2.length,t3=e=>"string"==typeof e?parseFloat(e):e,t6=e=>"number"==typeof e||I.px.test(e);function t9(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let t4=t7(0,.5,em.Bn),t8=t7(.5,.95,P.Z);function t7(e,t,n){return r=>r<e?0:r>t?1:n((0,tE.Y)(e,t,r))}function ne(e,t){e.min=t.min,e.max=t.max}function nt(e,t){ne(e.x,t.x),ne(e.y,t.y)}function nn(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nr(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function ni(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(I.aQ.test(t)&&(t=parseFloat(t),t=(0,eH.t)(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=(0,eH.t)(o.min,o.max,r);e===o&&(s-=t),e.min=nr(e.min,t,n,s,i),e.max=nr(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let no=["x","scaleX","originX"],na=["y","scaleY","originY"];function ns(e,t,n,r){ni(e.x,t,no,n?n.x:void 0,r?r.x:void 0),ni(e.y,t,na,n?n.y:void 0,r?r.y:void 0)}function nl(e){return 0===e.translate&&1===e.scale}function nu(e){return nl(e.x)&&nl(e.y)}function nc(e,t){return e.min===t.min&&e.max===t.max}function nd(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function nf(e,t){return nd(e.x,t.x)&&nd(e.y,t.y)}function np(e){return e1(e.x)/e1(e.y)}function nh(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class nm{constructor(){this.members=[]}add(e){(0,tq.y4)(this.members,e),e.scheduleRender()}remove(e){if((0,tq.cl)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let nv={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ng=["","X","Y","Z"],ny={visibility:"hidden"},nb=0;function nw(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function nx({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=nb++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,er.f.value&&(nv.nodes=nv.calculatedTargetDeltas=nv.calculatedProjections=0),this.nodes.forEach(nT),this.nodes.forEach(nA),this.nodes.forEach(nD),this.nodes.forEach(nC),er.f.addProjectionMetrics&&er.f.addProjectionMetrics(nv)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new t0)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new tJ.L),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=tK(t)&&!(tK(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n;let r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=T.X.now(),r=({timestamp:t})=>{let i=t-n;i>=250&&((0,d.Pn)(r),e(i-250))};return d.Wi.setup(r,!0),()=>(0,d.Pn)(r)}(r,0),t_.hasAnimatedSinceResize&&(t_.hasAnimatedSinceResize=!1,this.nodes.forEach(nL))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||i.getDefaultTransition()||nI,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=i.getProps(),u=!this.targetLayout||!nf(this.targetLayout,r),c=!t&&n;if(this.options.layoutRoot||this.resumeFrom||c||t&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...s(o,"layout"),onPlay:a,onComplete:l};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c)}else t||nL(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,d.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(nj),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[x];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",d.Wi,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(nR);return}this.isUpdating||this.nodes.forEach(nM),this.isUpdating=!1,this.nodes.forEach(nk),this.nodes.forEach(nE),this.nodes.forEach(nP),this.clearAllSnapshots();let e=T.X.now();d.frameData.delta=(0,tP.u)(0,1e3/60,e-d.frameData.timestamp),d.frameData.timestamp=e,d.frameData.isProcessing=!0,d.yL.update.process(d.frameData),d.yL.preRender.process(d.frameData),d.yL.render.process(d.frameData),d.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tO.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nS),this.sharedNodes.forEach(nN)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,d.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){d.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||e1(this.snapshot.measuredBox.x)||e1(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=te(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!nu(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||ti(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),n_((t=r).x),n_(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return te();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(nX))){let{scroll:e}=this.root;e&&(tu(t.x,e.offset.x),tu(t.y,e.offset.y))}return t}removeElementScroll(e){let t=te();if(nt(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;r!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&nt(t,e),tu(t.x,i.offset.x),tu(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=te();nt(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&td(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),ti(r.latestValues)&&td(n,r.latestValues)}return ti(this.latestValues)&&td(n,this.latestValues),n}removeTransform(e){let t=te();nt(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!ti(n.latestValues))continue;tr(n.latestValues)&&n.updateSnapshot();let r=te();nt(r,n.measurePageBox()),ns(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return ti(this.latestValues)&&ns(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==d.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(this.layout&&(r||i)){if(this.resolvedRelativeTargetAt=d.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=te(),this.relativeTargetOrigin=te(),e9(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),nt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=te(),this.targetWithTransforms=te()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,s;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,s=this.relativeParent.target,e3(o.x,a.x,s.x),e3(o.y,a.y,s.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nt(this.target,this.layout.layoutBox),tl(this.target,this.targetDelta)):nt(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=te(),this.relativeTargetOrigin=te(),e9(this.relativeTargetOrigin,this.target,e.target),nt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}er.f.value&&nv.calculatedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||tr(this.parent.latestValues)||to(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===d.frameData.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;nt(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){let i,o;let a=n.length;if(a){t.x=t.y=1;for(let s=0;s<a;s++){o=(i=n[s]).projectionDelta;let{visualElement:a}=i.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&td(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,tl(e,o)),r&&ti(i.latestValues)&&td(e,i.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=te());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nn(this.prevProjectionDelta.x,this.projectionDelta.x),nn(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),e5(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&nh(this.projectionDelta.x,this.prevProjectionDelta.x)&&nh(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s)),er.f.value&&nv.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=e8(),this.projectionDelta=e8(),this.projectionDeltaWithTransform=e8()}setAnimationOrigin(e,t=!1){let n;let r=this.snapshot,i=r?r.latestValues:{},o={...this.latestValues},a=e8();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=te(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(nF));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(nO(a.x,e.x,r),nO(a.y,e.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,f,p,h;e9(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,h=this.relativeTargetOrigin,nV(p.x,h.x,s.x,r),nV(p.y,h.y,s.y,r),n&&(u=this.relativeTarget,f=n,nc(u.x,f.x)&&nc(u.y,f.y))&&(this.isProjectionDirty=!1),n||(n=te()),nt(n,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,n,r,i,o){i?(e.opacity=(0,eH.t)(0,n.opacity??1,t4(r)),e.opacityExit=(0,eH.t)(t.opacity??1,0,t8(r))):o&&(e.opacity=(0,eH.t)(t.opacity??1,n.opacity??1,r));for(let i=0;i<t5;i++){let o=`border${t2[i]}Radius`,a=t9(t,o),s=t9(n,o);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||t6(a)===t6(s)?(e[o]=Math.max((0,eH.t)(t3(a),t3(s),r),0),(I.aQ.test(s)||I.aQ.test(a))&&(e[o]+="%")):e[o]=s)}(t.rotate||n.rotate)&&(e.rotate=(0,eH.t)(t.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,r,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,d.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=d.Wi.update(()=>{t_.hasAnimatedSinceResize=!0,en.P.layout++,this.motionValue||(this.motionValue=(0,m.BX)(0)),this.currentAnimation=function(e,t,n){let r=(0,y.i)(e)?e:(0,m.BX)(e);return r.start(eL("",r,t,n)),r.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{en.P.layout--},onComplete:()=>{en.P.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&nz(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||te();let t=e1(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=e1(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}nt(t,n),td(t,i),e5(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nm),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&nw("z",e,r,this.animationValues);for(let t=0;t<ng.length;t++)nw(`rotate${ng[t]}`,e,r,this.animationValues),nw(`skew${ng[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){if(!this.instance||this.isSVG)return;if(!this.isVisible)return ny;let t={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,t.opacity="",t.pointerEvents=t1(e?.pointerEvents)||"",t.transform=n?n(this.latestValues,""):"none",t;let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=t1(e?.pointerEvents)||""),this.hasProjected&&!ti(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1),t}let i=r.animationValues||r.latestValues;this.applyTransformsToTarget(),t.transform=function(e,t,n){let r="",i=e.x.translate/t.x,o=e.y.translate/t.y,a=n?.z||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:o,skewX:a,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),o&&(r+=`rotateY(${o}deg) `),a&&(r+=`skewX(${a}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(r+=`scale(${s}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i),n&&(t.transform=n(i,t.transform));let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,r.animationValues?t.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:t.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,tU){if(void 0===i[e])continue;let{correct:n,applyTo:o,isCSSVariable:a}=tU[e],s="none"===t.transform?i[e]:n(i[e],r);if(o){let e=o.length;for(let n=0;n<e;n++)t[o[n]]=s}else a?this.options.visualElement.renderState.vars[e]=s:t[e]=s}return this.options.layoutId&&(t.pointerEvents=r===this?t1(e?.pointerEvents)||"":"none"),t}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(nR),this.root.sharedNodes.clear()}}}function nE(e){e.updateLayout()}function nP(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;"size"===i?tt(e=>{let r=o?t.measuredBox[e]:t.layoutBox[e],i=e1(r);r.min=n[e].min,r.max=r.min+i}):nz(i,t.layoutBox,n)&&tt(r=>{let i=o?t.measuredBox[r]:t.layoutBox[r],a=e1(n[r]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=e8();e5(a,n,t.layoutBox);let s=e8();o?e5(s,e.applyTransform(r,!0),t.measuredBox):e5(s,n,t.layoutBox);let l=!nu(a),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let a=te();e9(a,t.layoutBox,i.layoutBox);let s=te();e9(s,n,o.layoutBox),nf(a,s)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function nT(e){er.f.value&&nv.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function nC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function nS(e){e.clearSnapshot()}function nR(e){e.clearMeasurements()}function nM(e){e.isLayoutDirty=!1}function nk(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function nL(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function nA(e){e.resolveTargetDelta()}function nD(e){e.calcProjection()}function nj(e){e.resetSkewAndRotation()}function nN(e){e.removeLeadSnapshot()}function nO(e,t,n){e.translate=(0,eH.t)(t.translate,0,n),e.scale=(0,eH.t)(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function nV(e,t,n,r){e.min=(0,eH.t)(t.min,n.min,r),e.max=(0,eH.t)(t.max,n.max,r)}function nF(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let nI={duration:.45,ease:[.4,0,.1,1]},nW=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),nB=nW("applewebkit/")&&!nW("chrome/")?Math.round:P.Z;function n_(e){e.min=nB(e.min),e.max=nB(e.max)}function nz(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(np(t)-np(n)))}function nX(e){return e!==e.root&&e.scroll?.wasRoot}let nZ=nx({attachResizeListener:(e,t)=>e$(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),nU={current:void 0},nY=nx({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!nU.current){let e=new nZ({});e.mount(window),e.setOptions({layoutScroll:!0}),nU.current=e}return nU.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function nG(e,t){let n=function(e,t,n){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document,n=(void 0)??t.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function nH(e){return!("touch"===e.pointerType||eG.x||eG.y)}function n$(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&d.Wi.postRender(()=>i(t,eJ(t)))}class nK extends eX{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,o]=nG(e,n),a=e=>{if(!nH(e))return;let{target:n}=e,r=t(n,e);if("function"!=typeof r||!n)return;let o=e=>{nH(e)&&(r(e),n.removeEventListener("pointerleave",o))};n.addEventListener("pointerleave",o,i)};return r.forEach(e=>{e.addEventListener("pointerenter",a,i)}),o}(e,(e,t)=>(n$(this.node,t,"Start"),e=>n$(this.node,e,"End"))))}unmount(){}}class nJ extends eX{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,tm.z)(e$(this.node.current,"focus",()=>this.onFocus()),e$(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let nq=(e,t)=>!!t&&(e===t||nq(e,t.parentElement)),nQ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),n0=new WeakSet;function n1(e){return t=>{"Enter"===t.key&&e(t)}}function n2(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}let n5=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=n1(()=>{if(n0.has(n))return;n2(n,"down");let e=n1(()=>{n2(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>n2(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function n3(e){return eK(e)&&!(eG.x||eG.y)}function n6(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&d.Wi.postRender(()=>i(t,eJ(t)))}class n9 extends eX{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,o]=nG(e,n),a=e=>{let r=e.currentTarget;if(!n3(e))return;n0.add(r);let o=t(r,e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),n0.has(r)&&n0.delete(r),n3(e)&&"function"==typeof o&&o(e,{success:t})},s=e=>{a(e,r===window||r===document||n.useGlobalTarget||nq(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",l,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener("pointerdown",a,i),(0,ew.R)(e)&&(e.addEventListener("focus",e=>n5(e,i)),nQ.has(e.tagName)||-1!==e.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(n6(this.node,t,"Start"),(e,{success:t})=>n6(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let n4=new WeakMap,n8=new WeakMap,n7=e=>{let t=n4.get(e.target);t&&t(e)},re=e=>{e.forEach(n7)},rt={some:0,all:1};class rn extends eX{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:rt[r]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;n8.has(n)||n8.set(n,{});let r=n8.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(re,{root:e,...t})),r[i]}(t);return n4.set(e,n),r.observe(e),()=>{n4.delete(e),r.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}let rr=(0,tF.createContext)({strict:!1});var ri=n(45750);let ro=(0,tF.createContext)({});function ra(e){return r(e.animate)||eF.some(t=>eO(e[t]))}function rs(e){return!!(ra(e)||e.variants)}function rl(e){return Array.isArray(e)?e.join(" "):e}var ru=n(44563);let rc={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},rd={};for(let e in rc)rd[e]={isEnabled:t=>rc[e].some(e=>!!t[e])};let rf=Symbol.for("motionComponentSymbol");var rp=n(64252),rh=n(11534);function rm(e,{layout:t,layoutId:n}){return p.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!tU[e]||"opacity"===e)}let rv=(e,t)=>t&&"number"==typeof e?t.transform(e):e,rg={...F.Rx,transform:Math.round},ry={rotate:I.RW,rotateX:I.RW,rotateY:I.RW,rotateZ:I.RW,scale:F.bA,scaleX:F.bA,scaleY:F.bA,scaleZ:F.bA,skew:I.RW,skewX:I.RW,skewY:I.RW,distance:I.px,translateX:I.px,translateY:I.px,translateZ:I.px,x:I.px,y:I.px,z:I.px,perspective:I.px,transformPerspective:I.px,opacity:F.Fq,originX:I.$C,originY:I.$C,originZ:I.px},rb={borderWidth:I.px,borderTopWidth:I.px,borderRightWidth:I.px,borderBottomWidth:I.px,borderLeftWidth:I.px,borderRadius:I.px,radius:I.px,borderTopLeftRadius:I.px,borderTopRightRadius:I.px,borderBottomRightRadius:I.px,borderBottomLeftRadius:I.px,width:I.px,maxWidth:I.px,height:I.px,maxHeight:I.px,top:I.px,right:I.px,bottom:I.px,left:I.px,padding:I.px,paddingTop:I.px,paddingRight:I.px,paddingBottom:I.px,paddingLeft:I.px,margin:I.px,marginTop:I.px,marginRight:I.px,marginBottom:I.px,marginLeft:I.px,backgroundPositionX:I.px,backgroundPositionY:I.px,...ry,zIndex:rg,fillOpacity:F.Fq,strokeOpacity:F.Fq,numOctaves:rg},rw={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rx=f.length;function rE(e,t,n){let{style:r,vars:i,transformOrigin:o}=e,a=!1,s=!1;for(let e in t){let n=t[e];if(p.has(e)){a=!0;continue}if((0,tZ.f)(e)){i[e]=n;continue}{let t=rv(n,rb[e]);e.startsWith("origin")?(s=!0,o[e]=t):r[e]=t}}if(!t.transform&&(a||n?r.transform=function(e,t,n){let r="",i=!0;for(let o=0;o<rx;o++){let a=f[o],s=e[a];if(void 0===s)continue;let l=!0;if(!(l="number"==typeof s?s===(a.startsWith("scale")?1:0):0===parseFloat(s))||n){let e=rv(s,rb[a]);if(!l){i=!1;let t=rw[a]||a;r+=`${t}(${e}) `}n&&(t[a]=e)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){let{originX:e="50%",originY:t="50%",originZ:n=0}=o;r.transformOrigin=`${e} ${t} ${n}`}}let rP=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function rT(e,t,n){for(let r in t)(0,y.i)(t[r])||rm(r,n)||(e[r]=t[r])}let rC={offset:"stroke-dashoffset",array:"stroke-dasharray"},rS={offset:"strokeDashoffset",array:"strokeDasharray"};function rR(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:a=0,...s},l,u,c){if(rE(e,s,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete d.transformBox),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==i&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?rC:rS;e[o.offset]=I.px.transform(-r);let a=I.px.transform(t),s=I.px.transform(n);e[o.array]=`${a} ${s}`}(d,i,o,a,!1)}let rM=()=>({...rP(),attrs:{}}),rk=e=>"string"==typeof e&&"svg"===e.toLowerCase(),rL=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function rA(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||rL.has(e)}let rD=e=>!rA(e);try{l=require("@emotion/is-prop-valid").default,"function"==typeof l&&(rD=e=>e.startsWith("on")?!rA(e):l(e))}catch{}let rj=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function rN(e){if("string"!=typeof e||e.includes("-"));else if(rj.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var rO=n(53576);let rV=e=>(t,n)=>{let i=(0,tF.useContext)(ro),a=(0,tF.useContext)(rp.O),s=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,i,a){return{latestValues:function(e,t,n,i){let a={},s=i(e,{});for(let e in s)a[e]=t1(s[e]);let{initial:l,animate:u}=e,c=ra(e),d=rs(e);t&&d&&!c&&!1!==e.inherit&&(void 0===l&&(l=t.initial),void 0===u&&(u=t.animate));let f=!!n&&!1===n.initial,p=(f=f||!1===l)?u:l;if(p&&"boolean"!=typeof p&&!r(p)){let t=Array.isArray(p)?p:[p];for(let n=0;n<t.length;n++){let r=o(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=f?t.length-1:0;t=t[e]}null!==t&&(a[e]=t)}for(let t in e)a[t]=e[t]}}}return a}(n,i,a,e),renderState:t()}})(e,t,i,a);return n?s():(0,rO.h)(s)};function rF(e,t,n){let{style:r}=e,i={};for(let o in r)((0,y.i)(r[o])||t.style&&(0,y.i)(t.style[o])||rm(o,e)||n?.getValue(o)?.liveStyle!==void 0)&&(i[o]=r[o]);return i}let rI={useVisualState:rV({scrapeMotionValuesFromProps:rF,createRenderState:rP})};function rW(e,t,n){let r=rF(e,t,n);for(let n in e)((0,y.i)(e[n])||(0,y.i)(t[n]))&&(r[-1!==f.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}let rB={useVisualState:rV({scrapeMotionValuesFromProps:rW,createRenderState:rM})},r_=e=>t=>t.test(e),rz=[F.Rx,I.px,I.aQ,I.RW,I.vw,I.vh,{test:e=>"auto"===e,parse:e=>e}],rX=e=>rz.find(r_(e)),rZ=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),rU=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,rY=e=>/^0[^.\s]+$/u.test(e);var rG=n(3855);let rH=new Set(["brightness","contrast","saturate","opacity"]);function r$(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(rG.K)||[];if(!r)return e;let i=n.replace(r,""),o=rH.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}let rK=/\b([a-z-]*)\(.*?\)/gu,rJ={...ey.P,getAnimatableNone:e=>{let t=e.match(rK);return t?t.map(r$).join(" "):e}};var rq=n(7537);let rQ={...rb,color:rq.$,backgroundColor:rq.$,outlineColor:rq.$,fill:rq.$,stroke:rq.$,borderColor:rq.$,borderTopColor:rq.$,borderRightColor:rq.$,borderBottomColor:rq.$,borderLeftColor:rq.$,filter:rJ,WebkitFilter:rJ},r0=e=>rQ[e];function r1(e,t){let n=r0(e);return n!==rJ&&(n=ey.P),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let r2=new Set(["auto","none","0"]);class r5 extends ${constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),(0,tZ.t)(r))){let i=function e(t,n,r=1){(0,J.k)(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[i,o]=function(e){let t=rU.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}(t);if(!i)return;let a=window.getComputedStyle(n).getPropertyValue(i);if(a){let e=a.trim();return rZ(e)?parseFloat(e):e}return(0,tZ.t)(o)?e(o,n,r+1):o}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!h.has(n)||2!==e.length)return;let[r,i]=e,o=rX(r),a=rX(i);if(o!==a){if(W(o)&&W(a))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else z[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++){var r;(null===e[t]||("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||rY(r)))&&n.push(t)}n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!r2.has(t)&&(0,ey.V)(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=r1(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=z[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,o=n[i];n[i]=z[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let r3=[...rz,rq.$,ey.P],r6=e=>r3.find(r_(e)),r9={current:null},r4={current:!1},r8=new WeakMap,r7=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ie{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=$,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=T.X.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,d.Wi.render(this.render,!1,!0))};let{latestValues:s,renderState:l}=o;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=ra(t),this.isVariantNode=rs(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in c){let t=c[e];void 0!==s[e]&&(0,y.i)(t)&&t.set(s[e],!1)}}mount(e){this.current=e,r8.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),r4.current||function(){if(r4.current=!0,ru.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>r9.current=e.matches;e.addListener(t),t()}else r9.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||r9.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),(0,d.Pn)(this.notifyUpdate),(0,d.Pn)(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let n;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let r=p.has(e);r&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&d.Wi.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),o(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in rd){let t=rd[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):te()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<r7.length;t++){let n=r7[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],o=n[r];if((0,y.i)(i))e.addValue(r,i);else if((0,y.i)(o))e.addValue(r,(0,m.BX)(i,{owner:e}));else if(o!==i){if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,(0,m.BX)(void 0!==t?t:i,{owner:e}))}}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=(0,m.BX)(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&("string"==typeof n&&(rZ(n)||rY(n))?n=parseFloat(n):!r6(n)&&ey.P.test(t)&&(n=r1(e,t)),this.setBaseTarget(e,(0,y.i)(n)?n.get():n)),(0,y.i)(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=o(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||(0,y.i)(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new tJ.L),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class it extends ie{constructor(){super(...arguments),this.KeyframeResolver=r5}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;(0,y.i)(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function ir(e,{style:t,vars:n},r,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(o,n[o])}class ii extends it{constructor(){super(...arguments),this.type="html",this.renderInstance=ir}readValueFromInstance(e,t){if(p.has(t))return this.projection?.isProjecting?j(t):O(e,t);{let n=window.getComputedStyle(e),r=((0,tZ.f)(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return tf(e,t)}build(e,t,n){rE(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return rF(e,t,n)}}let io=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);class ia extends it{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=te}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(p.has(t)){let e=r0(t);return e&&e.default||0}return t=io.has(t)?t:w(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return rW(e,t,n)}build(e,t,n){rR(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){!function(e,t,n,r){for(let n in ir(e,t,void 0,r),t.attrs)e.setAttribute(io.has(n)?n:w(n),t.attrs[n])}(e,t,0,r)}mount(e){this.isSVGTag=rk(e.tagName),super.mount(e)}}let is=function(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}((u={animation:{Feature:eZ},exit:{Feature:eY},inView:{Feature:rn},tap:{Feature:n9},focus:{Feature:nJ},hover:{Feature:nK},pan:{Feature:tj},drag:{Feature:tA,ProjectionNode:nY,MeasureLayout:tG},layout:{ProjectionNode:nY,MeasureLayout:tG}},c=(e,t)=>rN(e)?new ia(t):new ii(t,{allowProjection:e!==tF.Fragment}),function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return function(e){var t,n;let{preloadedFeatures:r,createVisualElement:i,useRender:o,useVisualState:a,Component:s}=e;function l(e,t){var n;let r;let l={...(0,tF.useContext)(ri._),...e,layoutId:function(e){let{layoutId:t}=e,n=(0,tF.useContext)(tW.p).id;return n&&void 0!==t?n+"-"+t:t}(e)},{isStatic:u}=l,c=function(e){let{initial:t,animate:n}=function(e,t){if(ra(e)){let{initial:t,animate:n}=e;return{initial:!1===t||eO(t)?t:void 0,animate:eO(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,tF.useContext)(ro));return(0,tF.useMemo)(()=>({initial:t,animate:n}),[rl(t),rl(n)])}(e),d=a(e,u);if(!u&&ru.j){(0,tF.useContext)(rr).strict;let e=function(e){let{drag:t,layout:n}=rd;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(l);r=e.MeasureLayout,c.visualElement=function(e,t,n,r,i){let{visualElement:o}=(0,tF.useContext)(ro),a=(0,tF.useContext)(rr),s=(0,tF.useContext)(rp.O),l=(0,tF.useContext)(ri._).reducedMotion,u=(0,tF.useRef)(null);r=r||a.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));let c=u.current,d=(0,tF.useContext)(tB);c&&!c.projection&&i&&("html"===c.type||"svg"===c.type)&&function(e,t,n,r){let{layoutId:i,layout:o,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||s&&th(s),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}(u.current,n,i,d);let f=(0,tF.useRef)(!1);(0,tF.useInsertionEffect)(()=>{c&&f.current&&c.update(n,s)});let p=n[x],h=(0,tF.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return(0,rh.L)(()=>{c&&(f.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),tO.render(c.render),h.current&&c.animationState&&c.animationState.animateChanges())}),(0,tF.useEffect)(()=>{c&&(!h.current&&c.animationState&&c.animationState.animateChanges(),h.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),h.current=!1))}),c}(s,d,l,i,e.ProjectionNode)}return(0,tN.jsxs)(ro.Provider,{value:c,children:[r&&c.visualElement?(0,tN.jsx)(r,{visualElement:c.visualElement,...l}):null,o(s,e,(n=c.visualElement,(0,tF.useCallback)(e=>{e&&d.onMount&&d.onMount(e),n&&(e?n.mount(e):n.unmount()),t&&("function"==typeof t?t(e):th(t)&&(t.current=e))},[n])),d,u,c.visualElement)]})}r&&function(e){for(let t in e)rd[t]={...rd[t],...e[t]}}(r),l.displayName="motion.".concat("string"==typeof s?s:"create(".concat(null!==(n=null!==(t=s.displayName)&&void 0!==t?t:s.name)&&void 0!==n?n:"",")"));let u=(0,tF.forwardRef)(l);return u[rf]=s,u}({...rN(e)?rB:rI,preloadedFeatures:u,useRender:function(e=!1){return(t,n,r,{latestValues:i},o)=>{let a=(rN(t)?function(e,t,n,r){let i=(0,tF.useMemo)(()=>{let n=rM();return rR(n,t,rk(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};rT(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n={},r=function(e,t){let n=e.style||{},r={};return rT(r,n,e),Object.assign(r,function({transformTemplate:e},t){return(0,tF.useMemo)(()=>{let n=rP();return rE(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n})(n,i,o,t),s=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(rD(i)||!0===n&&rA(i)||!t&&!rA(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),l=t!==tF.Fragment?{...s,...a,ref:r}:{},{children:u}=n,c=(0,tF.useMemo)(()=>(0,y.i)(u)?u.get():u,[u]);return(0,tF.createElement)(t,{...l,children:c})}}(t),createVisualElement:c,Component:e})}))},44563:function(e,t,n){n.d(t,{j:function(){return r}});let r="undefined"!=typeof window},53576:function(e,t,n){n.d(t,{h:function(){return i}});var r=n(2265);function i(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},11534:function(e,t,n){n.d(t,{L:function(){return i}});var r=n(2265);let i=n(44563).j?r.useLayoutEffect:r.useEffect},96471:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(2265);let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()};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"};let s=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:l,className:u="",children:c,iconNode:d,...f}=e;return(0,r.createElement)("svg",{ref:t,...a,width:i,height:i,stroke:n,strokeWidth:l?24*Number(s)/Number(i):s,className:o("lucide",u),...f},[...d.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(c)?c:[c]])}),l=(e,t)=>{let n=(0,r.forwardRef)((n,a)=>{let{className:l,...u}=n;return(0,r.createElement)(s,{ref:a,iconNode:t,className:o("lucide-".concat(i(e)),l),...u})});return n.displayName="".concat(e),n}},59559:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(96471).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},76848:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(96471).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},78084:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(96471).Z)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},44986:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(96471).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},28441:function(e,t,n){n.d(t,{L:function(){return y}});var r=n(24750),i=n(21865),o=n(29711),a=n(41927),s=n(35818),l=n(63723),u=n(26147);let c=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>u.Wi.update(t,e),stop:()=>(0,u.Pn)(t),now:()=>u.frameData.isProcessing?u.frameData.timestamp:a.X.now()}};var d=n(85898),f=n(29207),p=n(44013),h=n(69118),m=n(98133),v=n(9868);let g=e=>e/100;class y extends v.T{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==a.X.now()&&this.tick(a.X.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},s.P.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;(0,m.f)(e);let{type:t=f.F,repeat:n=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=e,{keyframes:s}=e,u=t||f.F;u!==f.F&&"number"!=typeof s[0]&&(this.mixKeyframes=(0,r.z)(g,(0,l.C)(s[0],s[1])),s=[0,100]);let c=u({...e,keyframes:s});"mirror"===o&&(this.mirroredGenerator=u({...e,keyframes:[...s].reverse(),velocity:-a})),null===c.calculatedDuration&&(c.calculatedDuration=(0,p.i)(c));let{calculatedDuration:d}=c;this.calculatedDuration=d,this.resolvedDuration=d+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:o,mirroredGenerator:a,resolvedDuration:s,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);let{delay:u=0,keyframes:c,repeat:f,repeatType:p,repeatDelay:m,type:v,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let b=this.currentTime-u*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?b<0:b>r;this.currentTime=Math.max(b,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let x=this.currentTime,E=n;if(f){let e=Math.min(this.currentTime,r)/s,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,f+1))%2&&("reverse"===p?(n=1-n,m&&(n-=m/s)):"mirror"===p&&(E=a)),x=(0,i.u)(0,1,n)*s}let P=w?{done:!1,value:c[0]}:E.next(x);o&&(P.value=o(P.value));let{done:T}=P;w||null===l||(T=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let C=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return C&&v!==d.I&&(P.value=(0,h.$)(c,this.options,y,this.speed)),g&&g(P.value),C&&this.finish(),P}then(e,t){return this.finished.then(e,t)}get duration(){return(0,o.X)(this.calculatedDuration)}get time(){return(0,o.X)(this.currentTime)}set time(e){e=(0,o.w)(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(a.X.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=(0,o.X)(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=c,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(a.X.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,s.P.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}},85898:function(e,t,n){n.d(t,{I:function(){return o}});var r=n(68930),i=n(59989);function o({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:a=10,bounceStiffness:s=500,modifyTarget:l,min:u,max:c,restDelta:d=.5,restSpeed:f}){let p,h;let m=e[0],v={done:!1,value:m},g=e=>void 0!==u&&e<u||void 0!==c&&e>c,y=e=>void 0===u?c:void 0===c?u:Math.abs(u-e)<Math.abs(c-e)?u:c,b=n*t,w=m+b,x=void 0===l?w:l(w);x!==w&&(b=x-m);let E=e=>-b*Math.exp(-e/o),P=e=>x+E(e),T=e=>{let t=E(e),n=P(e);v.done=Math.abs(t)<=d,v.value=v.done?x:n},C=e=>{g(v.value)&&(p=e,h=(0,r.S)({keyframes:[v.value,y(v.value)],velocity:(0,i.P)(P,e,v.value),damping:a,stiffness:s,restDelta:d,restSpeed:f}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==p||(t=!0,T(e),C(e)),void 0!==p&&e>=p)?h.next(e-p):(t||T(e),v)}}}},29207:function(e,t,n){n.d(t,{F:function(){return w}});var r=n(60068);let i=(0,r._)(.42,0,1,1),o=(0,r._)(0,0,.58,1),a=(0,r._)(.42,0,.58,1),s=e=>Array.isArray(e)&&"number"!=typeof e[0];var l=n(62035),u=n(56277),c=n(43273),d=n(75567),f=n(52927),p=n(53857);let h={linear:u.Z,easeIn:i,easeInOut:a,easeOut:o,circIn:f.Z7,circInOut:f.X7,circOut:f.Bn,backIn:d.G2,backInOut:d.XL,backOut:d.CG,anticipate:c.L},m=e=>"string"==typeof e,v=e=>{if((0,p.q)(e)){(0,l.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,i,o]=e;return(0,r._)(t,n,i,o)}return m(e)?((0,l.k)(void 0!==h[e],`Invalid easing type '${e}'`),h[e]):e};var g=n(28460),y=n(81645),b=n(33811);function w({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){let i=s(r)?r.map(v):v(r),o={done:!1,value:t[0]},l=(n&&n.length===t.length?n:function(e){let t=[0];return function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=(0,y.Y)(0,t,r);e.push((0,b.t)(n,1,i))}}(t,e.length-1),t}(t)).map(t=>t*e),u=(0,g.s)(l,t,{ease:Array.isArray(i)?i:t.map(()=>i||a).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=u(t),o.done=t>=e,o)}}},68930:function(e,t,n){n.d(t,{S:function(){return h}});var r=n(21865),i=n(29711),o=n(96092),a=n(44013),s=n(59989);let l={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};var u=n(62035);function c(e,t){return e*Math.sqrt(1-t*t)}let d=["duration","bounce"],f=["stiffness","damping","mass"];function p(e,t){return t.some(t=>void 0!==e[t])}function h(e=l.visualDuration,t=l.bounce){let n;let h="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:m,restDelta:v}=h,g=h.keyframes[0],y=h.keyframes[h.keyframes.length-1],b={done:!1,value:g},{stiffness:w,damping:x,mass:E,duration:P,velocity:T,isResolvedFromDuration:C}=function(e){let t={velocity:l.velocity,stiffness:l.stiffness,damping:l.damping,mass:l.mass,isResolvedFromDuration:!1,...e};if(!p(e,f)&&p(e,d)){if(e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),i=n*n,o=2*(0,r.u)(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:l.mass,stiffness:i,damping:o}}else{let n=function({duration:e=l.duration,bounce:t=l.bounce,velocity:n=l.velocity,mass:o=l.mass}){let a,s;(0,u.K)(e<=(0,i.w)(l.maxDuration),"Spring duration must be 10 seconds or less");let d=1-t;d=(0,r.u)(l.minDamping,l.maxDamping,d),e=(0,r.u)(l.minDuration,l.maxDuration,(0,i.X)(e)),d<1?(a=t=>{let r=t*d,i=r*e;return .001-(r-n)/c(t,d)*Math.exp(-i)},s=t=>{let r=t*d*e,i=Math.pow(d,2)*Math.pow(t,2)*e,o=c(Math.pow(t,2),d);return(r*n+n-i)*Math.exp(-r)*(-a(t)+.001>0?-1:1)/o}):(a=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),s=t=>e*e*(n-t)*Math.exp(-t*e));let f=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(a,s,5/e);if(e=(0,i.w)(e),isNaN(f))return{stiffness:l.stiffness,damping:l.damping,duration:e};{let t=Math.pow(f,2)*o;return{stiffness:t,damping:2*d*Math.sqrt(o*t),duration:e}}}(e);(t={...t,...n,mass:l.mass}).isResolvedFromDuration=!0}}return t}({...h,velocity:-(0,i.X)(h.velocity||0)}),S=T||0,R=x/(2*Math.sqrt(w*E)),M=y-g,k=(0,i.X)(Math.sqrt(w/E)),L=5>Math.abs(M);if(m||(m=L?l.restSpeed.granular:l.restSpeed.default),v||(v=L?l.restDelta.granular:l.restDelta.default),R<1){let e=c(k,R);n=t=>y-Math.exp(-R*k*t)*((S+R*k*M)/e*Math.sin(e*t)+M*Math.cos(e*t))}else if(1===R)n=e=>y-Math.exp(-k*e)*(M+(S+k*M)*e);else{let e=k*Math.sqrt(R*R-1);n=t=>{let n=Math.exp(-R*k*t),r=Math.min(e*t,300);return y-n*((S+R*k*M)*Math.sinh(r)+e*M*Math.cosh(r))/e}}let A={calculatedDuration:C&&P||null,next:e=>{let t=n(e);if(C)b.done=e>=P;else{let r=0===e?S:0;R<1&&(r=0===e?(0,i.w)(S):(0,s.P)(n,e,t));let o=Math.abs(r)<=m,a=Math.abs(y-t)<=v;b.done=o&&a}return b.value=b.done?y:t,b},toString:()=>{let e=Math.min((0,a.i)(A),a.E),t=(0,o.w)(t=>A.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return A}h.applyToOptions=e=>{let t=function(e,t=100,n){let r=n({...e,keyframes:[0,t]}),o=Math.min((0,a.i)(r),a.E);return{type:"keyframes",ease:e=>r.next(o*e).value/t,duration:(0,i.X)(o)}}(e,100,h);return e.ease=t.ease,e.duration=(0,i.w)(t.duration),e.type="keyframes",e}},44013:function(e,t,n){n.d(t,{E:function(){return r},i:function(){return i}});let r=2e4;function i(e){let t=0,n=e.next(t);for(;!n.done&&t<r;)t+=50,n=e.next(t);return t>=r?1/0:t}},59989:function(e,t,n){n.d(t,{P:function(){return i}});var r=n(88294);function i(e,t,n){let i=Math.max(t-5,0);return(0,r.R)(n-e(i),t-i)}},69118:function(e,t,n){n.d(t,{$:function(){return i}});let r=e=>null!==e;function i(e,{repeat:t,repeatType:n="loop"},i,o=1){let a=e.filter(r),s=o<0||t&&"loop"!==n&&t%2==1?0:a.length-1;return s&&void 0!==i?i:a[s]}},9868:function(e,t,n){n.d(t,{T:function(){return r}});class r{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}},38596:function(e,t,n){n.d(t,{f:function(){return i},t:function(){return a}});let r=e=>t=>"string"==typeof t&&t.startsWith(e),i=r("--"),o=r("var(--"),a=e=>!!o(e)&&s.test(e.split("/*")[0].trim()),s=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},98133:function(e,t,n){n.d(t,{f:function(){return s}});var r=n(85898),i=n(29207),o=n(68930);let a={decay:r.I,inertia:r.I,tween:i.F,keyframes:i.F,spring:o.S};function s(e){"string"==typeof e.type&&(e.type=a[e.type])}},96092:function(e,t,n){n.d(t,{w:function(){return r}});let r=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`}},62862:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(21457);let i=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var o=n(20557);function a(e,t){let n=!1,a=!0,s={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,u=i.reduce((e,n)=>(e[n]=function(e,t){let n=new Set,r=new Set,i=!1,a=!1,s=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},u=0;function c(t){s.has(t)&&(d.schedule(t),e()),u++,t(l)}let d={schedule:(e,t=!1,o=!1)=>{let a=o&&i?n:r;return t&&s.add(e),a.has(e)||a.add(e),e},cancel:e=>{r.delete(e),s.delete(e)},process:e=>{if(l=e,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(c),t&&o.f.value&&o.f.value.frameloop[t].push(u),u=0,n.clear(),i=!1,a&&(a=!1,d.process(e))}};return d}(l,t?n:void 0),e),{}),{setup:c,read:d,resolveKeyframes:f,preUpdate:p,update:h,preRender:m,render:v,postRender:g}=u,y=()=>{let i=r.c.useManualTiming?s.timestamp:performance.now();n=!1,r.c.useManualTiming||(s.delta=a?1e3/60:Math.max(Math.min(i-s.timestamp,40),1)),s.timestamp=i,s.isProcessing=!0,c.process(s),d.process(s),f.process(s),p.process(s),h.process(s),m.process(s),v.process(s),g.process(s),s.isProcessing=!1,n&&t&&(a=!1,e(y))},b=()=>{n=!0,a=!0,s.isProcessing||e(y)};return{schedule:i.reduce((e,t)=>{let r=u[t];return e[t]=(e,t=!1,i=!1)=>(n||b(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<i.length;t++)u[i[t]].cancel(e)},state:s,steps:u}}},26147:function(e,t,n){n.d(t,{Pn:function(){return o},Wi:function(){return i},frameData:function(){return a},yL:function(){return s}});var r=n(56277);let{schedule:i,cancel:o,state:a,steps:s}=(0,n(62862).Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:r.Z,!0)},41927:function(e,t,n){let r;n.d(t,{X:function(){return s}});var i=n(21457),o=n(26147);function a(){r=void 0}let s={now:()=>(void 0===r&&s.set(o.frameData.isProcessing||i.c.useManualTiming?o.frameData.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(a)}}},35818:function(e,t,n){n.d(t,{P:function(){return r}});let r={layout:0,mainThread:0,waapi:0}},20557:function(e,t,n){n.d(t,{f:function(){return r}});let r={value:null,addProjectionMetrics:null}},28460:function(e,t,n){n.d(t,{s:function(){return c}});var r=n(21457),i=n(56277),o=n(24750),a=n(62035),s=n(81645),l=n(21865),u=n(63723);function c(e,t,{clamp:n=!0,ease:c,mixer:d}={}){let f=e.length;if((0,a.k)(f===t.length,"Both input and output ranges must be the same length"),1===f)return()=>t[0];if(2===f&&t[0]===t[1])return()=>t[1];let p=e[0]===e[1];e[0]>e[f-1]&&(e=[...e].reverse(),t=[...t].reverse());let h=function(e,t,n){let a=[],s=n||r.c.mix||u.C,l=e.length-1;for(let n=0;n<l;n++){let r=s(e[n],e[n+1]);if(t){let e=Array.isArray(t)?t[n]||i.Z:t;r=(0,o.z)(e,r)}a.push(r)}return a}(t,c,d),m=h.length,v=n=>{if(p&&n<e[0])return t[0];let r=0;if(m>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=(0,s.Y)(e[r],e[r+1],n);return h[r](i)};return n?t=>v((0,l.u)(e[0],e[f-1],t)):v}},13537:function(e,t,n){n.d(t,{R:function(){return i}});var r=n(41464);function i(e){return(0,r.K)(e)&&"offsetHeight"in e}},63723:function(e,t,n){n.d(t,{C:function(){return C}});var r=n(24750),i=n(62035),o=n(38596),a=n(7537),s=n(65050),l=n(31664),u=n(32017);function c(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var d=n(80230);function f(e,t){return n=>n>0?t:e}var p=n(33811);let h=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},m=[l.$,d.m,u.J],v=e=>m.find(t=>t.test(e));function g(e){let t=v(e);if((0,i.K)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===u.J&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=c(s,r,e+1/3),o=c(s,r,e),a=c(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(n)),n}let y=(e,t)=>{let n=g(e),r=g(t);if(!n||!r)return f(e,t);let i={...n};return e=>(i.red=h(n.red,r.red,e),i.green=h(n.green,r.green,e),i.blue=h(n.blue,r.blue,e),i.alpha=(0,p.t)(n.alpha,r.alpha,e),d.m.transform(i))},b=new Set(["none","hidden"]);function w(e,t){return n=>(0,p.t)(e,t,n)}function x(e){return"number"==typeof e?w:"string"==typeof e?(0,o.t)(e)?f:a.$.test(e)?y:T:Array.isArray(e)?E:"object"==typeof e?a.$.test(e)?y:P:f}function E(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>x(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function P(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=x(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let T=(e,t)=>{let n=s.P.createTransformer(t),o=(0,s.V)(e),a=(0,s.V)(t);return o.indexes.var.length===a.indexes.var.length&&o.indexes.color.length===a.indexes.color.length&&o.indexes.number.length>=a.indexes.number.length?b.has(e)&&!a.values.length||b.has(t)&&!o.values.length?b.has(e)?n=>n<=0?e:t:n=>n>=1?t:e:(0,r.z)(E(function(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let o=t.types[i],a=e.indexes[o][r[o]],s=e.values[a]??0;n[i]=s,r[o]++}return n}(o,a),a.values),n):((0,i.K)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),f(e,t))};function C(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?(0,p.t)(e,t,n):x(e)(e,t)}},33811:function(e,t,n){n.d(t,{t:function(){return r}});let r=(e,t,n)=>e+(t-e)*n},94357:function(e,t,n){n.d(t,{BX:function(){return c},S1:function(){return l}});var r=n(94513),i=n(88294),o=n(41927),a=n(26147);let s=e=>!isNaN(parseFloat(e)),l={current:void 0};class u{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let n=o.X.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty();t&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=o.X.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=s(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new r.L);let n=this.events[e].add(t);return"change"===e?()=>{n(),a.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=o.X.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,i.R)(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function c(e,t){return new u(e,t)}},31664:function(e,t,n){n.d(t,{$:function(){return i}});var r=n(80230);let i={test:(0,n(48017).i)("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:r.m.transform}},32017:function(e,t,n){n.d(t,{J:function(){return s}});var r=n(61799),i=n(92854),o=n(51224),a=n(48017);let s={test:(0,a.i)("hsl","hue"),parse:(0,a.d)("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:a=1})=>"hsla("+Math.round(e)+", "+i.aQ.transform((0,o.N)(t))+", "+i.aQ.transform((0,o.N)(n))+", "+(0,o.N)(r.Fq.transform(a))+")"}},7537:function(e,t,n){n.d(t,{$:function(){return a}});var r=n(31664),i=n(32017),o=n(80230);let a={test:e=>o.m.test(e)||r.$.test(e)||i.J.test(e),parse:e=>o.m.test(e)?o.m.parse(e):i.J.test(e)?i.J.parse(e):r.$.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?o.m.transform(e):i.J.transform(e),getAnimatableNone:e=>{let t=a.parse(e);return t.alpha=0,a.transform(t)}}},80230:function(e,t,n){n.d(t,{m:function(){return u}});var r=n(21865),i=n(61799),o=n(51224),a=n(48017);let s=e=>(0,r.u)(0,255,e),l={...i.Rx,transform:e=>Math.round(s(e))},u={test:(0,a.i)("rgb","red"),parse:(0,a.d)("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+l.transform(e)+", "+l.transform(t)+", "+l.transform(n)+", "+(0,o.N)(i.Fq.transform(r))+")"}},48017:function(e,t,n){n.d(t,{i:function(){return o},d:function(){return a}});var r=n(3855);let i=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,o=(e,t)=>n=>!!("string"==typeof n&&i.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),a=(e,t,n)=>i=>{if("string"!=typeof i)return i;let[o,a,s,l]=i.match(r.K);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(s),alpha:void 0!==l?parseFloat(l):1}}},65050:function(e,t,n){n.d(t,{V:function(){return c},P:function(){return h}});var r=n(7537);let i=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var o=n(3855),a=n(51224);let s="number",l="color",u=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function c(e){let t=e.toString(),n=[],i={color:[],number:[],var:[]},o=[],a=0,c=t.replace(u,e=>(r.$.test(e)?(i.color.push(a),o.push(l),n.push(r.$.parse(e))):e.startsWith("var(")?(i.var.push(a),o.push("var"),n.push(e)):(i.number.push(a),o.push(s),n.push(parseFloat(e))),++a,"${}")).split("${}");return{values:n,split:c,indexes:i,types:o}}function d(e){return c(e).values}function f(e){let{split:t,types:n}=c(e),i=t.length;return e=>{let o="";for(let u=0;u<i;u++)if(o+=t[u],void 0!==e[u]){let t=n[u];t===s?o+=(0,a.N)(e[u]):t===l?o+=r.$.transform(e[u]):o+=e[u]}return o}}let p=e=>"number"==typeof e?0:r.$.test(e)?r.$.getAnimatableNone(e):e,h={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(o.K)?.length||0)+(e.match(i)?.length||0)>0},parse:d,createTransformer:f,getAnimatableNone:function(e){let t=d(e);return f(e)(t.map(p))}}},61799:function(e,t,n){n.d(t,{Fq:function(){return o},Rx:function(){return i},bA:function(){return a}});var r=n(21865);let i={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},o={...i,transform:e=>(0,r.u)(0,1,e)},a={...i,default:1}},92854:function(e,t,n){n.d(t,{$C:function(){return u},RW:function(){return i},aQ:function(){return o},px:function(){return a},vh:function(){return s},vw:function(){return l}});let r=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),i=r("deg"),o=r("%"),a=r("px"),s=r("vh"),l=r("vw"),u={...o,parse:e=>o.parse(e)/100,transform:e=>o.transform(100*e)}},3855:function(e,t,n){n.d(t,{K:function(){return r}});let r=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},51224:function(e,t,n){n.d(t,{N:function(){return r}});let r=e=>Math.round(1e5*e)/1e5},87493:function(e,t,n){n.d(t,{i:function(){return r}});let r=e=>!!(e&&e.getVelocity)},98425:function(e,t,n){function r(e,t){-1===e.indexOf(t)&&e.push(t)}function i(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}n.d(t,{cl:function(){return i},y4:function(){return r}})},21865:function(e,t,n){n.d(t,{u:function(){return r}});let r=(e,t,n)=>n>t?t:n<e?e:n},43273:function(e,t,n){n.d(t,{L:function(){return i}});var r=n(75567);let i=e=>(e*=2)<1?.5*(0,r.G2)(e):.5*(2-Math.pow(2,-10*(e-1)))},75567:function(e,t,n){n.d(t,{CG:function(){return a},G2:function(){return s},XL:function(){return l}});var r=n(60068),i=n(52333),o=n(79015);let a=(0,r._)(.33,1.53,.69,.99),s=(0,o.M)(a),l=(0,i.o)(s)},52927:function(e,t,n){n.d(t,{Bn:function(){return a},X7:function(){return s},Z7:function(){return o}});var r=n(52333),i=n(79015);let o=e=>1-Math.sin(Math.acos(e)),a=(0,i.M)(o),s=(0,r.o)(o)},60068:function(e,t,n){n.d(t,{_:function(){return o}});var r=n(56277);let i=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function o(e,t,n,o){if(e===t&&n===o)return r.Z;let a=t=>(function(e,t,n,r,o){let a,s;let l=0;do(a=i(s=t+(n-t)/2,r,o)-e)>0?n=s:t=s;while(Math.abs(a)>1e-7&&++l<12);return s})(t,0,1,e,n);return e=>0===e||1===e?e:i(a(e),t,o)}},52333:function(e,t,n){n.d(t,{o:function(){return r}});let r=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2},79015:function(e,t,n){n.d(t,{M:function(){return r}});let r=e=>t=>1-e(1-t)},53857:function(e,t,n){n.d(t,{q:function(){return r}});let r=e=>Array.isArray(e)&&"number"==typeof e[0]},62035:function(e,t,n){n.d(t,{K:function(){return r},k:function(){return i}});let r=()=>{},i=()=>{}},21457:function(e,t,n){n.d(t,{c:function(){return r}});let r={}},41464:function(e,t,n){n.d(t,{K:function(){return r}});function r(e){return"object"==typeof e&&null!==e}},56277:function(e,t,n){n.d(t,{Z:function(){return r}});let r=e=>e},24750:function(e,t,n){n.d(t,{z:function(){return i}});let r=(e,t)=>n=>t(e(n)),i=(...e)=>e.reduce(r)},81645:function(e,t,n){n.d(t,{Y:function(){return r}});let r=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r}},94513:function(e,t,n){n.d(t,{L:function(){return i}});var r=n(98425);class i{constructor(){this.subscriptions=[]}add(e){return(0,r.y4)(this.subscriptions,e),()=>(0,r.cl)(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},29711:function(e,t,n){n.d(t,{X:function(){return i},w:function(){return r}});let r=e=>1e3*e,i=e=>e/1e3},88294:function(e,t,n){n.d(t,{R:function(){return r}});function r(e,t){return t?1e3/t*e:0}},46231:function(e,t,n){n.d(t,{w_:function(){return c}});var r=n(2265),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=r.createContext&&r.createContext(i),a=["attr","size","title"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(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 u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){var r,i;r=t,i=n[t],(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(r))in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e){return t=>r.createElement(d,s({attr:u({},e.attr)},t),function e(t){return t&&t.map((t,n)=>r.createElement(t.tag,u({key:n},t.attr),e(t.child)))}(e.child))}function d(e){var t=t=>{var n,{attr:i,size:o,title:l}=e,c=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(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)&&(i[n]=e[n])}return i}(e,a),d=o||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,c,{className:n,style:u(u({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),l&&r.createElement("title",null,l),e.children)};return void 0!==o?r.createElement(o.Consumer,null,e=>t(e)):t(i)}},53335:function(e,t,n){n.d(t,{m6:function(){return ed}});let r=e=>{let t=s(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{let n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),i(n,t)||a(e)},getConflictingClassGroupIds:(e,t)=>{let i=n[e]||[];return t&&r[e]?[...i,...r[e]]:i}}},i=(e,t)=>{if(0===e.length)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),o=r?i(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;let a=e.join("-");return t.validators.find(({validator:e})=>e(a))?.classGroupId},o=/^\[(.+)\]$/,a=e=>{if(o.test(e)){let t=o.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},s=e=>{let{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(let e in n)l(n[e],r,e,t);return r},l=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){(""===e?t:u(t,e)).classGroupId=n;return}if("function"==typeof e){if(c(e)){l(e(r),t,n,r);return}t.validators.push({validator:e,classGroupId:n});return}Object.entries(e).forEach(([e,i])=>{l(i,u(t,e),n,r)})})},u=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},c=e=>e.isThemeGetter,d=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=new Map,r=new Map,i=(i,o)=>{n.set(i,o),++t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(i(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}},f=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t;let n=[],r=0,i=0,o=0;for(let a=0;a<e.length;a++){let s=e[a];if(0===r&&0===i){if(":"===s){n.push(e.slice(o,a)),o=a+1;continue}if("/"===s){t=a;continue}}"["===s?r++:"]"===s?r--:"("===s?i++:")"===s&&i--}let a=0===n.length?e:e.substring(o),s=p(a);return{modifiers:n,hasImportantModifier:s!==a,baseClassName:s,maybePostfixModifierPosition:t&&t>o?t-o:void 0}};if(t){let e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},p=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,h=e=>{let t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;let n=[],r=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)}),n.push(...r.sort()),n}},m=e=>({cache:d(e.cacheSize),parseClassName:f(e),sortModifiers:h(e),...r(e)}),v=/\s+/,g=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,a=[],s=e.trim().split(v),l="";for(let e=s.length-1;e>=0;e-=1){let t=s[e],{isExternal:u,modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(u){l=t+(l.length>0?" "+l:l);continue}let h=!!p,m=r(h?f.substring(0,p):f);if(!m){if(!h||!(m=r(f))){l=t+(l.length>0?" "+l:l);continue}h=!1}let v=o(c).join(":"),g=d?v+"!":v,y=g+m;if(a.includes(y))continue;a.push(y);let b=i(m,h);for(let e=0;e<b.length;++e){let t=b[e];a.push(g+t)}l=t+(l.length>0?" "+l:l)}return l};function y(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=b(e))&&(r&&(r+=" "),r+=t);return r}let b=e=>{let t;if("string"==typeof e)return e;let n="";for(let r=0;r<e.length;r++)e[r]&&(t=b(e[r]))&&(n&&(n+=" "),n+=t);return n},w=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},x=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,E=/^\((?:(\w[\w-]*):)?(.+)\)$/i,P=/^\d+\/\d+$/,T=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,C=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,S=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,R=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,M=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,k=e=>P.test(e),L=e=>!!e&&!Number.isNaN(Number(e)),A=e=>!!e&&Number.isInteger(Number(e)),D=e=>e.endsWith("%")&&L(e.slice(0,-1)),j=e=>T.test(e),N=()=>!0,O=e=>C.test(e)&&!S.test(e),V=()=>!1,F=e=>R.test(e),I=e=>M.test(e),W=e=>!_(e)&&!G(e),B=e=>ee(e,ea,V),_=e=>x.test(e),z=e=>ee(e,es,O),X=e=>ee(e,el,L),Z=e=>ee(e,en,V),U=e=>ee(e,ei,I),Y=e=>ee(e,V,F),G=e=>E.test(e),H=e=>et(e,es),$=e=>et(e,eu),K=e=>et(e,en),J=e=>et(e,ea),q=e=>et(e,ei),Q=e=>et(e,ec,!0),ee=(e,t,n)=>{let r=x.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},et=(e,t,n=!1)=>{let r=E.exec(e);return!!r&&(r[1]?t(r[1]):n)},en=e=>"position"===e,er=new Set(["image","url"]),ei=e=>er.has(e),eo=new Set(["length","size","percentage"]),ea=e=>eo.has(e),es=e=>"length"===e,el=e=>"number"===e,eu=e=>"family-name"===e,ec=e=>"shadow"===e,ed=function(e,...t){let n,r,i;let o=function(s){return r=(n=m(t.reduce((e,t)=>t(e),e()))).cache.get,i=n.cache.set,o=a,a(s)};function a(e){let t=r(e);if(t)return t;let o=g(e,n);return i(e,o),o}return function(){return o(y.apply(null,arguments))}}(()=>{let e=w("color"),t=w("font"),n=w("text"),r=w("font-weight"),i=w("tracking"),o=w("leading"),a=w("breakpoint"),s=w("container"),l=w("spacing"),u=w("radius"),c=w("shadow"),d=w("inset-shadow"),f=w("drop-shadow"),p=w("blur"),h=w("perspective"),m=w("aspect"),v=w("ease"),g=w("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],x=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],P=()=>[k,"px","full","auto",G,_,l],T=()=>[A,"none","subgrid",G,_],C=()=>["auto",{span:["full",A,G,_]},G,_],S=()=>[A,"auto",G,_],R=()=>["auto","min","max","fr",G,_],M=()=>[G,_,l],O=()=>["start","end","center","between","around","evenly","stretch","baseline"],V=()=>["start","end","center","stretch"],F=()=>[G,_,l],I=()=>["px",...F()],ee=()=>["px","auto",...F()],et=()=>[k,"auto","px","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",G,_,l],en=()=>[e,G,_],er=()=>[D,z],ei=()=>["","none","full",u,G,_],eo=()=>["",L,H,z],ea=()=>["solid","dashed","dotted","double"],es=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],el=()=>["","none",p,G,_],eu=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",G,_],ec=()=>["none",L,G,_],ed=()=>["none",L,G,_],ef=()=>[L,G,_],ep=()=>[k,"full","px",G,_,l];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[j],breakpoint:[j],color:[N],container:[j],"drop-shadow":[j],ease:["in","out","in-out"],font:[W],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[j],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[j],shadow:[j],spacing:[L],text:[j],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",k,_,G,m]}],container:["container"],columns:[{columns:[L,_,G,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...b(),_,G]}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{start:P()}],end:[{end:P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[A,"auto",G,_]}],basis:[{basis:[k,"full","auto",G,_,s,l]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[L,k,"auto","initial","none",_]}],grow:[{grow:["",L,G,_]}],shrink:[{shrink:["",L,G,_]}],order:[{order:[A,"first","last","none",G,_]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:C()}],"col-start":[{"col-start":S()}],"col-end":[{"col-end":S()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:C()}],"row-start":[{"row-start":S()}],"row-end":[{"row-end":S()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":R()}],"auto-rows":[{"auto-rows":R()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...O(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...O()]}],"align-items":[{items:[...V(),"baseline"]}],"align-self":[{self:["auto",...V(),"baseline"]}],"place-content":[{"place-content":O()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:ee()}],mx:[{mx:ee()}],my:[{my:ee()}],ms:[{ms:ee()}],me:[{me:ee()}],mt:[{mt:ee()}],mr:[{mr:ee()}],mb:[{mb:ee()}],ml:[{ml:ee()}],"space-x":[{"space-x":F()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":F()}],"space-y-reverse":["space-y-reverse"],size:[{size:et()}],w:[{w:[s,"screen",...et()]}],"min-w":[{"min-w":[s,"screen","none",...et()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...et()]}],h:[{h:["screen",...et()]}],"min-h":[{"min-h":["screen","none",...et()]}],"max-h":[{"max-h":["screen",...et()]}],"font-size":[{text:["base",n,H,z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,G,X]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",D,_]}],"font-family":[{font:[$,_,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,G,_]}],"line-clamp":[{"line-clamp":[L,"none",G,X]}],leading:[{leading:[G,_,o,l]}],"list-image":[{"list-image":["none",G,_]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",G,_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:en()}],"text-color":[{text:en()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ea(),"wavy"]}],"text-decoration-thickness":[{decoration:[L,"from-font","auto",G,z]}],"text-decoration-color":[{decoration:en()}],"underline-offset":[{"underline-offset":[L,"auto",G,_]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:["px",...F()]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",G,_]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",G,_]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...b(),K,Z]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",J,B]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},A,G,_],radial:["",G,_],conic:[A,G,_]},q,U]}],"bg-color":[{bg:en()}],"gradient-from-pos":[{from:er()}],"gradient-via-pos":[{via:er()}],"gradient-to-pos":[{to:er()}],"gradient-from":[{from:en()}],"gradient-via":[{via:en()}],"gradient-to":[{to:en()}],rounded:[{rounded:ei()}],"rounded-s":[{"rounded-s":ei()}],"rounded-e":[{"rounded-e":ei()}],"rounded-t":[{"rounded-t":ei()}],"rounded-r":[{"rounded-r":ei()}],"rounded-b":[{"rounded-b":ei()}],"rounded-l":[{"rounded-l":ei()}],"rounded-ss":[{"rounded-ss":ei()}],"rounded-se":[{"rounded-se":ei()}],"rounded-ee":[{"rounded-ee":ei()}],"rounded-es":[{"rounded-es":ei()}],"rounded-tl":[{"rounded-tl":ei()}],"rounded-tr":[{"rounded-tr":ei()}],"rounded-br":[{"rounded-br":ei()}],"rounded-bl":[{"rounded-bl":ei()}],"border-w":[{border:eo()}],"border-w-x":[{"border-x":eo()}],"border-w-y":[{"border-y":eo()}],"border-w-s":[{"border-s":eo()}],"border-w-e":[{"border-e":eo()}],"border-w-t":[{"border-t":eo()}],"border-w-r":[{"border-r":eo()}],"border-w-b":[{"border-b":eo()}],"border-w-l":[{"border-l":eo()}],"divide-x":[{"divide-x":eo()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":eo()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ea(),"hidden","none"]}],"divide-style":[{divide:[...ea(),"hidden","none"]}],"border-color":[{border:en()}],"border-color-x":[{"border-x":en()}],"border-color-y":[{"border-y":en()}],"border-color-s":[{"border-s":en()}],"border-color-e":[{"border-e":en()}],"border-color-t":[{"border-t":en()}],"border-color-r":[{"border-r":en()}],"border-color-b":[{"border-b":en()}],"border-color-l":[{"border-l":en()}],"divide-color":[{divide:en()}],"outline-style":[{outline:[...ea(),"none","hidden"]}],"outline-offset":[{"outline-offset":[L,G,_]}],"outline-w":[{outline:["",L,H,z]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",c,Q,Y]}],"shadow-color":[{shadow:en()}],"inset-shadow":[{"inset-shadow":["none",G,_,d]}],"inset-shadow-color":[{"inset-shadow":en()}],"ring-w":[{ring:eo()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:en()}],"ring-offset-w":[{"ring-offset":[L,z]}],"ring-offset-color":[{"ring-offset":en()}],"inset-ring-w":[{"inset-ring":eo()}],"inset-ring-color":[{"inset-ring":en()}],opacity:[{opacity:[L,G,_]}],"mix-blend":[{"mix-blend":[...es(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":es()}],filter:[{filter:["","none",G,_]}],blur:[{blur:el()}],brightness:[{brightness:[L,G,_]}],contrast:[{contrast:[L,G,_]}],"drop-shadow":[{"drop-shadow":["","none",f,G,_]}],grayscale:[{grayscale:["",L,G,_]}],"hue-rotate":[{"hue-rotate":[L,G,_]}],invert:[{invert:["",L,G,_]}],saturate:[{saturate:[L,G,_]}],sepia:[{sepia:["",L,G,_]}],"backdrop-filter":[{"backdrop-filter":["","none",G,_]}],"backdrop-blur":[{"backdrop-blur":el()}],"backdrop-brightness":[{"backdrop-brightness":[L,G,_]}],"backdrop-contrast":[{"backdrop-contrast":[L,G,_]}],"backdrop-grayscale":[{"backdrop-grayscale":["",L,G,_]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[L,G,_]}],"backdrop-invert":[{"backdrop-invert":["",L,G,_]}],"backdrop-opacity":[{"backdrop-opacity":[L,G,_]}],"backdrop-saturate":[{"backdrop-saturate":[L,G,_]}],"backdrop-sepia":[{"backdrop-sepia":["",L,G,_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":F()}],"border-spacing-x":[{"border-spacing-x":F()}],"border-spacing-y":[{"border-spacing-y":F()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",G,_]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[L,"initial",G,_]}],ease:[{ease:["linear","initial",v,G,_]}],delay:[{delay:[L,G,_]}],animate:[{animate:["none",g,G,_]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,G,_]}],"perspective-origin":[{"perspective-origin":eu()}],rotate:[{rotate:ec()}],"rotate-x":[{"rotate-x":ec()}],"rotate-y":[{"rotate-y":ec()}],"rotate-z":[{"rotate-z":ec()}],scale:[{scale:ed()}],"scale-x":[{"scale-x":ed()}],"scale-y":[{"scale-y":ed()}],"scale-z":[{"scale-z":ed()}],"scale-3d":["scale-3d"],skew:[{skew:ef()}],"skew-x":[{"skew-x":ef()}],"skew-y":[{"skew-y":ef()}],transform:[{transform:[G,_,"","none","gpu","cpu"]}],"transform-origin":[{origin:eu()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ep()}],"translate-x":[{"translate-x":ep()}],"translate-y":[{"translate-y":ep()}],"translate-z":[{"translate-z":ep()}],"translate-none":["translate-none"],accent:[{accent:en()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:en()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",G,_]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",G,_]}],fill:[{fill:["none",...en()]}],"stroke-w":[{stroke:[L,H,z,X]}],stroke:[{stroke:["none",...en()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}})},5853:function(e,t,n){n.d(t,{Jh:function(){return a},_T:function(){return i},ev:function(){return s},mG:function(){return o},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 i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function i(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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function o(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function a(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function s(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError},93837:function(e,t,n){let r;n.d(t,{Z:function(){return s}});var i={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o=new Uint8Array(16),a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));var s=function(e,t,n){if(i.randomUUID&&!t&&!e)return i.randomUUID();let s=(e=e||{}).random??e.rng?.()??function(){if(!r){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");r=crypto.getRandomValues.bind(crypto)}return r(o)}();if(s.length<16)throw Error("Random bytes length must be >= 16");if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){if((n=n||0)<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=s[e];return t}return function(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}(s)}}}]);

Callers 15

aFunction · 0.70
eaFunction · 0.70
fnFunction · 0.70
oFunction · 0.70
yFunction · 0.70
IFunction · 0.70
pFunction · 0.70
constructorMethod · 0.70
startMethod · 0.70
stopMethod · 0.70

Calls 15

containsMethod · 0.80
forEachMethod · 0.80
getVelocityMethod · 0.80
spliceMethod · 0.80
sliceMethod · 0.80
findMethod · 0.80
eFunction · 0.70
WFunction · 0.70
cFunction · 0.70
MFunction · 0.70
rFunction · 0.70
thenMethod · 0.45

Tested by

no test coverage detected