const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Index-BvsjX0sN.js","assets/Footer-D8Ibw4RX.js","assets/shield-qbpuxOV0.js","assets/arrow-left-Bsr-Ql10.js","assets/circle-x-SOD-fqRQ.js","assets/building-2-DJz07kN_.js","assets/database-DhzkGPz_.js","assets/CookieBanner-DYOWQQav.js","assets/calendar-days-Cgqzehkw.js","assets/index-DUphM1e2.js","assets/ContactForm-BopKkGmt.js","assets/client-DQ2_ZPXM.js","assets/tslib.es6-eMSY344_.js","assets/SEOHead-DFcqotut.js","assets/Experts-Ci3BqXMm.js","assets/card-Bkrp3c_1.js","assets/Breadcrumbs-D2tpb3KB.js","assets/users-CbKT-E3O.js","assets/clock-BGSVs8qn.js","assets/Articles-C6y1VGTE.js","assets/table-DCcvL62F.js","assets/button-BM1Ztu4R.js","assets/scale-CXav9UJi.js","assets/external-link-CZJvaFU-.js","assets/calendar-DhQgVhx4.js","assets/CamerasInWorkplace-Ca-P7trL.js","assets/RelatedArticles-D9TRukZw.js","assets/eye-IM1_TlLQ.js","assets/arrow-right-BUXPPZ5r.js","assets/DpoRequirement-DSVTNqGv.js","assets/circle-check-D5Nu6iyO.js","assets/triangle-alert-zAgvkDNv.js","assets/BoardResponsibilities-Dvy1ON9P.js","assets/Organizations-DXnN64ns.js","assets/Webinar-zFHFbBRI.js","assets/NotFound-B9eI9SeN.js"])))=>i.map(i=>d[i]); var xg=Object.defineProperty;var Zc=e=>{throw TypeError(e)};var Eg=(e,t,n)=>t in e?xg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ft=(e,t,n)=>Eg(e,typeof t!="symbol"?t+"":t,n),Al=(e,t,n)=>t.has(e)||Zc("Cannot "+n);var k=(e,t,n)=>(Al(e,t,"read from private field"),n?n.call(e):t.get(e)),Z=(e,t,n)=>t.has(e)?Zc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),B=(e,t,n,r)=>(Al(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Pe=(e,t,n)=>(Al(e,t,"access private method"),n);var Ai=(e,t,n,r)=>({set _(o){B(e,t,o,n)},get _(){return k(e,t,r)}});function Sg(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function yi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cp={exports:{}},Zs={},dp={exports:{}},Y={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var wi=Symbol.for("react.element"),Cg=Symbol.for("react.portal"),Tg=Symbol.for("react.fragment"),kg=Symbol.for("react.strict_mode"),Pg=Symbol.for("react.profiler"),bg=Symbol.for("react.provider"),Rg=Symbol.for("react.context"),Og=Symbol.for("react.forward_ref"),_g=Symbol.for("react.suspense"),Ag=Symbol.for("react.memo"),Ng=Symbol.for("react.lazy"),Jc=Symbol.iterator;function Lg(e){return e===null||typeof e!="object"?null:(e=Jc&&e[Jc]||e["@@iterator"],typeof e=="function"?e:null)}var fp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},pp=Object.assign,hp={};function fo(e,t,n){this.props=e,this.context=t,this.refs=hp,this.updater=n||fp}fo.prototype.isReactComponent={};fo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};fo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function mp(){}mp.prototype=fo.prototype;function Ou(e,t,n){this.props=e,this.context=t,this.refs=hp,this.updater=n||fp}var _u=Ou.prototype=new mp;_u.constructor=Ou;pp(_u,fo.prototype);_u.isPureReactComponent=!0;var ed=Array.isArray,vp=Object.prototype.hasOwnProperty,Au={current:null},gp={key:!0,ref:!0,__self:!0,__source:!0};function yp(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)vp.call(t,r)&&!gp.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,z=P[V];if(0>>1;Vo(he,I))keo(J,he)?(P[V]=J,P[ke]=I,V=ke):(P[V]=he,P[q]=I,V=q);else if(keo(J,I))P[V]=J,P[ke]=I,V=ke;else break e}}return O}function o(P,O){var I=P.sortIndex-O.sortIndex;return I!==0?I:P.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,d=null,p=3,f=!1,x=!1,g=!1,w=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(P){for(var O=n(u);O!==null;){if(O.callback===null)r(u);else if(O.startTime<=P)r(u),O.sortIndex=O.expirationTime,t(a,O);else break;O=n(u)}}function E(P){if(g=!1,v(P),!x)if(n(a)!==null)x=!0,$(S);else{var O=n(u);O!==null&&H(E,O.startTime-P)}}function S(P,O){x=!1,g&&(g=!1,m(_),_=-1),f=!0;var I=p;try{for(v(O),d=n(a);d!==null&&(!(d.expirationTime>O)||P&&!F());){var V=d.callback;if(typeof V=="function"){d.callback=null,p=d.priorityLevel;var z=V(d.expirationTime<=O);O=e.unstable_now(),typeof z=="function"?d.callback=z:d===n(a)&&r(a),v(O)}else r(a);d=n(a)}if(d!==null)var K=!0;else{var q=n(u);q!==null&&H(E,q.startTime-O),K=!1}return K}finally{d=null,p=I,f=!1}}var C=!1,T=null,_=-1,L=5,N=-1;function F(){return!(e.unstable_now()-NP||125V?(P.sortIndex=I,t(u,P),n(a)===null&&P===n(u)&&(g?(m(_),_=-1):g=!0,H(E,I-V))):(P.sortIndex=z,t(a,P),x||f||(x=!0,$(S))),P},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(P){var O=p;return function(){var I=p;p=O;try{return P.apply(this,arguments)}finally{p=I}}}})(Tp);Cp.exports=Tp;var Vg=Cp.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Wg=y,qe=Vg;function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ga=Object.prototype.hasOwnProperty,Qg=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,nd={},rd={};function Kg(e){return ga.call(rd,e)?!0:ga.call(nd,e)?!1:Qg.test(e)?rd[e]=!0:(nd[e]=!0,!1)}function Yg(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Gg(e,t,n,r){if(t===null||typeof t>"u"||Yg(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function je(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Te={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Te[e]=new je(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Te[t]=new je(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Te[e]=new je(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Te[e]=new je(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Te[e]=new je(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Te[e]=new je(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Te[e]=new je(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Te[e]=new je(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Te[e]=new je(e,5,!1,e.toLowerCase(),null,!1,!1)});var Lu=/[\-:]([a-z])/g;function Mu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Lu,Mu);Te[t]=new je(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Lu,Mu);Te[t]=new je(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Lu,Mu);Te[t]=new je(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Te[e]=new je(e,1,!1,e.toLowerCase(),null,!1,!1)});Te.xlinkHref=new je("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Te[e]=new je(e,1,!1,e.toLowerCase(),null,!0,!0)});function Iu(e,t,n,r){var o=Te.hasOwnProperty(t)?Te[t]:null;(o!==null?o.type!==0:r||!(2l||o[s]!==i[l]){var a=` `+o[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Ml=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Lo(e):""}function qg(e){switch(e.tag){case 5:return Lo(e.type);case 16:return Lo("Lazy");case 13:return Lo("Suspense");case 19:return Lo("SuspenseList");case 0:case 2:case 15:return e=Il(e.type,!1),e;case 11:return e=Il(e.type.render,!1),e;case 1:return e=Il(e.type,!0),e;default:return""}}function Ea(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case br:return"Fragment";case Pr:return"Portal";case ya:return"Profiler";case Du:return"StrictMode";case wa:return"Suspense";case xa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case bp:return(e.displayName||"Context")+".Consumer";case Pp:return(e._context.displayName||"Context")+".Provider";case ju:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case zu:return t=e.displayName||null,t!==null?t:Ea(e.type)||"Memo";case pn:t=e._payload,e=e._init;try{return Ea(e(t))}catch{}}return null}function Xg(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ea(t);case 8:return t===Du?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Mn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Op(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Zg(e){var t=Op(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mi(e){e._valueTracker||(e._valueTracker=Zg(e))}function _p(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Op(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ws(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Sa(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function id(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Mn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ap(e,t){t=t.checked,t!=null&&Iu(e,"checked",t,!1)}function Ca(e,t){Ap(e,t);var n=Mn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ta(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ta(e,t.type,Mn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function sd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ta(e,t,n){(t!=="number"||ws(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Mo=Array.isArray;function zr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ii.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Yo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var jo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Jg=["Webkit","ms","Moz","O"];Object.keys(jo).forEach(function(e){Jg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),jo[t]=jo[e]})});function Ip(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||jo.hasOwnProperty(e)&&jo[e]?(""+t).trim():t+"px"}function Dp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Ip(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var ey=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ba(e,t){if(t){if(ey[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function Ra(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Oa=null;function Fu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _a=null,Fr=null,$r=null;function ud(e){if(e=Si(e)){if(typeof _a!="function")throw Error(A(280));var t=e.stateNode;t&&(t=rl(t),_a(e.stateNode,e.type,t))}}function jp(e){Fr?$r?$r.push(e):$r=[e]:Fr=e}function zp(){if(Fr){var e=Fr,t=$r;if($r=Fr=null,ud(e),t)for(e=0;e>>=0,e===0?32:31-(dy(e)/fy|0)|0}var Di=64,ji=4194304;function Io(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Cs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=Io(l):(i&=s,i!==0&&(r=Io(i)))}else s=n&~o,s!==0?r=Io(s):i!==0&&(r=Io(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function xi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xt(t),e[t]=n}function vy(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Fo),yd=" ",wd=!1;function oh(e,t){switch(e){case"keyup":return Vy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ih(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rr=!1;function Qy(e,t){switch(e){case"compositionend":return ih(t);case"keypress":return t.which!==32?null:(wd=!0,yd);case"textInput":return e=t.data,e===yd&&wd?null:e;default:return null}}function Ky(e,t){if(Rr)return e==="compositionend"||!Ku&&oh(e,t)?(e=nh(),os=Vu=Sn=null,Rr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Cd(n)}}function uh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?uh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ch(){for(var e=window,t=ws();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ws(e.document)}return t}function Yu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function n0(e){var t=ch(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&uh(n.ownerDocument.documentElement,n)){if(r!==null&&Yu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Td(n,i);var s=Td(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Or=null,Da=null,Uo=null,ja=!1;function kd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ja||Or==null||Or!==ws(r)||(r=Or,"selectionStart"in r&&Yu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Uo&&ei(Uo,r)||(Uo=r,r=Ps(Da,"onSelect"),0Nr||(e.current=Ha[Nr],Ha[Nr]=null,Nr--)}function ne(e,t){Nr++,Ha[Nr]=e.current,e.current=t}var In={},Ae=Un(In),Ue=Un(!1),lr=In;function ro(e,t){var n=e.type.contextTypes;if(!n)return In;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Be(e){return e=e.childContextTypes,e!=null}function Rs(){ie(Ue),ie(Ae)}function Nd(e,t,n){if(Ae.current!==In)throw Error(A(168));ne(Ae,t),ne(Ue,n)}function wh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(A(108,Xg(e)||"Unknown",o));return ce({},n,r)}function Os(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||In,lr=Ae.current,ne(Ae,e),ne(Ue,Ue.current),!0}function Ld(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=wh(e,t,lr),r.__reactInternalMemoizedMergedChildContext=e,ie(Ue),ie(Ae),ne(Ae,e)):ie(Ue),ne(Ue,n)}var Ht=null,ol=!1,Gl=!1;function xh(e){Ht===null?Ht=[e]:Ht.push(e)}function h0(e){ol=!0,xh(e)}function Bn(){if(!Gl&&Ht!==null){Gl=!0;var e=0,t=ee;try{var n=Ht;for(ee=1;e>=s,o-=s,Wt=1<<32-xt(t)+o|n<_?(L=T,T=null):L=T.sibling;var N=p(m,T,v[_],E);if(N===null){T===null&&(T=L);break}e&&T&&N.alternate===null&&t(m,T),h=i(N,h,_),C===null?S=N:C.sibling=N,C=N,T=L}if(_===v.length)return n(m,T),le&&Kn(m,_),S;if(T===null){for(;__?(L=T,T=null):L=T.sibling;var F=p(m,T,N.value,E);if(F===null){T===null&&(T=L);break}e&&T&&F.alternate===null&&t(m,T),h=i(F,h,_),C===null?S=F:C.sibling=F,C=F,T=L}if(N.done)return n(m,T),le&&Kn(m,_),S;if(T===null){for(;!N.done;_++,N=v.next())N=d(m,N.value,E),N!==null&&(h=i(N,h,_),C===null?S=N:C.sibling=N,C=N);return le&&Kn(m,_),S}for(T=r(m,T);!N.done;_++,N=v.next())N=f(T,m,_,N.value,E),N!==null&&(e&&N.alternate!==null&&T.delete(N.key===null?_:N.key),h=i(N,h,_),C===null?S=N:C.sibling=N,C=N);return e&&T.forEach(function(j){return t(m,j)}),le&&Kn(m,_),S}function w(m,h,v,E){if(typeof v=="object"&&v!==null&&v.type===br&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Li:e:{for(var S=v.key,C=h;C!==null;){if(C.key===S){if(S=v.type,S===br){if(C.tag===7){n(m,C.sibling),h=o(C,v.props.children),h.return=m,m=h;break e}}else if(C.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===pn&&Dd(S)===C.type){n(m,C.sibling),h=o(C,v.props),h.ref=Po(m,C,v),h.return=m,m=h;break e}n(m,C);break}else t(m,C);C=C.sibling}v.type===br?(h=sr(v.props.children,m.mode,E,v.key),h.return=m,m=h):(E=fs(v.type,v.key,v.props,null,m.mode,E),E.ref=Po(m,h,v),E.return=m,m=E)}return s(m);case Pr:e:{for(C=v.key;h!==null;){if(h.key===C)if(h.tag===4&&h.stateNode.containerInfo===v.containerInfo&&h.stateNode.implementation===v.implementation){n(m,h.sibling),h=o(h,v.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=ra(v,m.mode,E),h.return=m,m=h}return s(m);case pn:return C=v._init,w(m,h,C(v._payload),E)}if(Mo(v))return x(m,h,v,E);if(Eo(v))return g(m,h,v,E);Vi(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,h!==null&&h.tag===6?(n(m,h.sibling),h=o(h,v),h.return=m,m=h):(n(m,h),h=na(v,m.mode,E),h.return=m,m=h),s(m)):n(m,h)}return w}var io=Th(!0),kh=Th(!1),Ns=Un(null),Ls=null,Ir=null,Zu=null;function Ju(){Zu=Ir=Ls=null}function ec(e){var t=Ns.current;ie(Ns),e._currentValue=t}function Qa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Br(e,t){Ls=e,Zu=Ir=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&($e=!0),e.firstContext=null)}function st(e){var t=e._currentValue;if(Zu!==e)if(e={context:e,memoizedValue:t,next:null},Ir===null){if(Ls===null)throw Error(A(308));Ir=e,Ls.dependencies={lanes:0,firstContext:e}}else Ir=Ir.next=e;return t}var qn=null;function tc(e){qn===null?qn=[e]:qn.push(e)}function Ph(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,tc(t)):(n.next=o.next,o.next=n),t.interleaved=n,qt(e,r)}function qt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var hn=!1;function nc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Kt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function On(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,X&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,qt(e,n)}return o=r.interleaved,o===null?(t.next=t,tc(r)):(t.next=o.next,o.next=t),r.interleaved=t,qt(e,n)}function ss(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Uu(e,n)}}function jd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ms(e,t,n,r){var o=e.updateQueue;hn=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?i=u:s.next=u,s=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==s&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(i!==null){var d=o.baseState;s=0,c=u=a=null,l=i;do{var p=l.lane,f=l.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,g=l;switch(p=t,f=n,g.tag){case 1:if(x=g.payload,typeof x=="function"){d=x.call(f,d,p);break e}d=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=g.payload,p=typeof x=="function"?x.call(f,d,p):x,p==null)break e;d=ce({},d,p);break e;case 2:hn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=f,a=d):c=c.next=f,s|=p;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;p=l,l=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(c===null&&(a=d),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);cr|=s,e.lanes=s,e.memoizedState=d}}function zd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Xl.transition;Xl.transition={};try{e(!1),t()}finally{ee=n,Xl.transition=r}}function Vh(){return lt().memoizedState}function y0(e,t,n){var r=An(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Wh(e))Qh(t,n);else if(n=Ph(e,t,n,r),n!==null){var o=Ie();Et(n,e,r,o),Kh(n,t,r)}}function w0(e,t,n){var r=An(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Wh(e))Qh(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,St(l,s)){var a=t.interleaved;a===null?(o.next=o,tc(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Ph(e,t,o,r),n!==null&&(o=Ie(),Et(n,e,r,o),Kh(n,t,r))}}function Wh(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function Qh(e,t){Bo=Ds=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Kh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Uu(e,n)}}var js={readContext:st,useCallback:be,useContext:be,useEffect:be,useImperativeHandle:be,useInsertionEffect:be,useLayoutEffect:be,useMemo:be,useReducer:be,useRef:be,useState:be,useDebugValue:be,useDeferredValue:be,useTransition:be,useMutableSource:be,useSyncExternalStore:be,useId:be,unstable_isNewReconciler:!1},x0={readContext:st,useCallback:function(e,t){return Rt().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:$d,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,as(4194308,4,Fh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return as(4194308,4,e,t)},useInsertionEffect:function(e,t){return as(4,2,e,t)},useMemo:function(e,t){var n=Rt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Rt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=y0.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=Rt();return e={current:e},t.memoizedState=e},useState:Fd,useDebugValue:cc,useDeferredValue:function(e){return Rt().memoizedState=e},useTransition:function(){var e=Fd(!1),t=e[0];return e=g0.bind(null,e[1]),Rt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,o=Rt();if(le){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Ee===null)throw Error(A(349));ur&30||Ah(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,$d(Lh.bind(null,r,i,e),[e]),r.flags|=2048,ai(9,Nh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Rt(),t=Ee.identifierPrefix;if(le){var n=Qt,r=Wt;n=(r&~(1<<32-xt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=si++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Nt]=t,e[ri]=r,rm(e,t,!1,!1),t.stateNode=e;e:{switch(s=Ra(n,r),n){case"dialog":oe("cancel",e),oe("close",e),o=r;break;case"iframe":case"object":case"embed":oe("load",e),o=r;break;case"video":case"audio":for(o=0;oao&&(t.flags|=128,r=!0,bo(i,!1),t.lanes=4194304)}else{if(!r)if(e=Is(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),bo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!le)return Re(t),null}else 2*pe()-i.renderingStartTime>ao&&n!==1073741824&&(t.flags|=128,r=!0,bo(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=ae.current,ne(ae,r?n&1|2:n&1),t):(Re(t),null);case 22:case 23:return vc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?We&1073741824&&(Re(t),t.subtreeFlags&6&&(t.flags|=8192)):Re(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function R0(e,t){switch(qu(t),t.tag){case 1:return Be(t.type)&&Rs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return so(),ie(Ue),ie(Ae),ic(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return oc(t),null;case 13:if(ie(ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));oo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(ae),null;case 4:return so(),null;case 10:return ec(t.type._context),null;case 22:case 23:return vc(),null;case 24:return null;default:return null}}var Qi=!1,_e=!1,O0=typeof WeakSet=="function"?WeakSet:Set,D=null;function Dr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function tu(e,t,n){try{n()}catch(r){fe(e,t,r)}}var Xd=!1;function _0(e,t){if(za=Ts,e=ch(),Yu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var f;d!==n||o!==0&&d.nodeType!==3||(l=s+o),d!==i||r!==0&&d.nodeType!==3||(a=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(f=d.firstChild)!==null;)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++u===o&&(l=s),p===i&&++c===r&&(a=s),(f=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=f}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fa={focusedElem:e,selectionRange:n},Ts=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var g=x.memoizedProps,w=x.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:pt(t.type,g),w);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(E){fe(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return x=Xd,Xd=!1,x}function Ho(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&tu(t,n,i)}o=o.next}while(o!==r)}}function ll(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function nu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function sm(e){var t=e.alternate;t!==null&&(e.alternate=null,sm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Nt],delete t[ri],delete t[Ba],delete t[f0],delete t[p0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function lm(e){return e.tag===5||e.tag===3||e.tag===4}function Zd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||lm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ru(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=bs));else if(r!==4&&(e=e.child,e!==null))for(ru(e,t,n),e=e.sibling;e!==null;)ru(e,t,n),e=e.sibling}function ou(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ou(e,t,n),e=e.sibling;e!==null;)ou(e,t,n),e=e.sibling}var Se=null,gt=!1;function un(e,t,n){for(n=n.child;n!==null;)am(e,t,n),n=n.sibling}function am(e,t,n){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(Js,n)}catch{}switch(n.tag){case 5:_e||Dr(n,t);case 6:var r=Se,o=gt;Se=null,un(e,t,n),Se=r,gt=o,Se!==null&&(gt?(e=Se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Se.removeChild(n.stateNode));break;case 18:Se!==null&&(gt?(e=Se,n=n.stateNode,e.nodeType===8?Yl(e.parentNode,n):e.nodeType===1&&Yl(e,n),Zo(e)):Yl(Se,n.stateNode));break;case 4:r=Se,o=gt,Se=n.stateNode.containerInfo,gt=!0,un(e,t,n),Se=r,gt=o;break;case 0:case 11:case 14:case 15:if(!_e&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&tu(n,t,s),o=o.next}while(o!==r)}un(e,t,n);break;case 1:if(!_e&&(Dr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){fe(n,t,l)}un(e,t,n);break;case 21:un(e,t,n);break;case 22:n.mode&1?(_e=(r=_e)||n.memoizedState!==null,un(e,t,n),_e=r):un(e,t,n);break;default:un(e,t,n)}}function Jd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new O0),t.forEach(function(r){var o=F0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*N0(r/1960))-r,10e?16:e,Cn===null)var r=!1;else{if(e=Cn,Cn=null,$s=0,X&6)throw Error(A(331));var o=X;for(X|=4,D=e.current;D!==null;){var i=D,s=i.child;if(D.flags&16){var l=i.deletions;if(l!==null){for(var a=0;ape()-hc?ir(e,0):pc|=n),He(e,t)}function vm(e,t){t===0&&(e.mode&1?(t=ji,ji<<=1,!(ji&130023424)&&(ji=4194304)):t=1);var n=Ie();e=qt(e,t),e!==null&&(xi(e,t,n),He(e,n))}function z0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),vm(e,n)}function F0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),vm(e,n)}var gm;gm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ue.current)$e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $e=!1,P0(e,t,n);$e=!!(e.flags&131072)}else $e=!1,le&&t.flags&1048576&&Eh(t,As,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;us(e,t),e=t.pendingProps;var o=ro(t,Ae.current);Br(t,n),o=lc(null,t,r,e,o,n);var i=ac();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Be(r)?(i=!0,Os(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,nc(t),o.updater=sl,t.stateNode=o,o._reactInternals=t,Ya(t,r,e,n),t=Xa(null,t,r,!0,i,n)):(t.tag=0,le&&i&&Gu(t),Le(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(us(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=U0(r),e=pt(r,e),o){case 0:t=qa(null,t,r,e,n);break e;case 1:t=Yd(null,t,r,e,n);break e;case 11:t=Qd(null,t,r,e,n);break e;case 14:t=Kd(null,t,r,pt(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:pt(r,o),qa(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:pt(r,o),Yd(e,t,r,o,n);case 3:e:{if(em(t),e===null)throw Error(A(387));r=t.pendingProps,i=t.memoizedState,o=i.element,bh(e,t),Ms(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=lo(Error(A(423)),t),t=Gd(e,t,r,n,o);break e}else if(r!==o){o=lo(Error(A(424)),t),t=Gd(e,t,r,n,o);break e}else for(Ke=Rn(t.stateNode.containerInfo.firstChild),Ye=t,le=!0,yt=null,n=kh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(oo(),r===o){t=Xt(e,t,n);break e}Le(e,t,r,n)}t=t.child}return t;case 5:return Rh(t),e===null&&Wa(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,$a(r,o)?s=null:i!==null&&$a(r,i)&&(t.flags|=32),Jh(e,t),Le(e,t,s,n),t.child;case 6:return e===null&&Wa(t),null;case 13:return tm(e,t,n);case 4:return rc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=io(t,null,r,n):Le(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:pt(r,o),Qd(e,t,r,o,n);case 7:return Le(e,t,t.pendingProps,n),t.child;case 8:return Le(e,t,t.pendingProps.children,n),t.child;case 12:return Le(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ne(Ns,r._currentValue),r._currentValue=s,i!==null)if(St(i.value,s)){if(i.children===o.children&&!Ue.current){t=Xt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Kt(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Qa(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(A(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Qa(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Le(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Br(t,n),o=st(o),r=r(o),t.flags|=1,Le(e,t,r,n),t.child;case 14:return r=t.type,o=pt(r,t.pendingProps),o=pt(r.type,o),Kd(e,t,r,o,n);case 15:return Xh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:pt(r,o),us(e,t),t.tag=1,Be(r)?(e=!0,Os(t)):e=!1,Br(t,n),Yh(t,r,o),Ya(t,r,o,n),Xa(null,t,r,!0,e,n);case 19:return nm(e,t,n);case 22:return Zh(e,t,n)}throw Error(A(156,t.tag))};function ym(e,t){return Wp(e,t)}function $0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ot(e,t,n,r){return new $0(e,t,n,r)}function yc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function U0(e){if(typeof e=="function")return yc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ju)return 11;if(e===zu)return 14}return 2}function Nn(e,t){var n=e.alternate;return n===null?(n=ot(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function fs(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")yc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case br:return sr(n.children,o,i,t);case Du:s=8,o|=8;break;case ya:return e=ot(12,n,t,o|2),e.elementType=ya,e.lanes=i,e;case wa:return e=ot(13,n,t,o),e.elementType=wa,e.lanes=i,e;case xa:return e=ot(19,n,t,o),e.elementType=xa,e.lanes=i,e;case Rp:return ul(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Pp:s=10;break e;case bp:s=9;break e;case ju:s=11;break e;case zu:s=14;break e;case pn:s=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=ot(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function sr(e,t,n,r){return e=ot(7,e,r,t),e.lanes=n,e}function ul(e,t,n,r){return e=ot(22,e,r,t),e.elementType=Rp,e.lanes=n,e.stateNode={isHidden:!1},e}function na(e,t,n){return e=ot(6,e,null,t),e.lanes=n,e}function ra(e,t,n){return t=ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function B0(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jl(0),this.expirationTimes=jl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function wc(e,t,n,r,o,i,s,l,a){return e=new B0(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ot(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},nc(i),e}function H0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Sm)}catch(e){console.error(e)}}Sm(),Sp.exports=Xe;var Ti=Sp.exports;const Cm=yi(Ti);var Tm,af=Ti;Tm=af.createRoot,af.hydrateRoot;var Y0=typeof Element<"u",G0=typeof Map=="function",q0=typeof Set=="function",X0=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ps(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ps(e[r],t[r]))return!1;return!0}var i;if(G0&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!ps(r.value[1],t.get(r.value[0])))return!1;return!0}if(q0&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(X0&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(Y0&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!ps(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var Z0=function(t,n){try{return ps(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const J0=yi(Z0);var ew=function(e,t,n,r,o,i,s,l){if(!e){var a;if(t===void 0)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,s,l],c=0;a=new Error(t.replace(/%s/g,function(){return u[c++]})),a.name="Invariant Violation"}throw a.framesToPop=1,a}},tw=ew;const uf=yi(tw);var nw=function(t,n,r,o){var i=r?r.call(o,t,n):void 0;if(i!==void 0)return!!i;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var s=Object.keys(t),l=Object.keys(n);if(s.length!==l.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(n),u=0;u(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(km||{}),oa={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},cf=Object.values(km),hl={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Pm=Object.entries(hl).reduce((e,[t,n])=>(e[n]=t,e),{}),wt="data-rh",Vr={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Wr=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},ow=e=>{let t=Wr(e,"title");const n=Wr(e,Vr.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Wr(e,Vr.DEFAULT_TITLE);return t||r||void 0},iw=e=>Wr(e,Vr.ON_CHANGE_CLIENT_STATE)||(()=>{}),ia=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),sw=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const o=Object.keys(r);for(let i=0;iconsole&&typeof console.warn=="function"&&console.warn(e),Oo=(e,t,n)=>{const r={};return n.filter(o=>Array.isArray(o[e])?!0:(typeof o[e]<"u"&&lw(`Helmet: ${e} should be of type "Array". Instead found type "${typeof o[e]}"`),!1)).map(o=>o[e]).reverse().reduce((o,i)=>{const s={};i.filter(a=>{let u;const c=Object.keys(a);for(let p=0;po.push(a));const l=Object.keys(s);for(let a=0;a{if(Array.isArray(e)&&e.length){for(let n=0;n({baseTag:sw(["href"],e),bodyAttributes:ia("bodyAttributes",e),defer:Wr(e,Vr.DEFER),encode:Wr(e,Vr.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:ia("htmlAttributes",e),linkTags:Oo("link",["rel","href"],e),metaTags:Oo("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Oo("noscript",["innerHTML"],e),onChangeClientState:iw(e),scriptTags:Oo("script",["src","innerHTML"],e),styleTags:Oo("style",["cssText"],e),title:ow(e),titleAttributes:ia("titleAttributes",e),prioritizeSeoTags:aw(e,Vr.PRIORITIZE_SEO_TAGS)}),bm=e=>Array.isArray(e)?e.join(""):e,cw=(e,t)=>{const n=Object.keys(e);for(let r=0;rArray.isArray(e)?e.reduce((n,r)=>(cw(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},df=(e,t)=>({...e,[t]:void 0}),dw=["noscript","script","style"],uu=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),Rm=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),fw=(e,t,n,r)=>{const o=Rm(n),i=bm(t);return o?`<${e} ${wt}="true" ${o}>${uu(i,r)}`:`<${e} ${wt}="true">${uu(i,r)}`},pw=(e,t,n=!0)=>t.reduce((r,o)=>{const i=o,s=Object.keys(i).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,c)=>{const d=typeof i[c]>"u"?c:`${c}="${uu(i[c],n)}"`;return u?`${u} ${d}`:d},""),l=i.innerHTML||i.cssText||"",a=dw.indexOf(e)===-1;return`${r}<${e} ${wt}="true" ${s}${a?"/>":`>${l}`}`},""),Om=(e,t={})=>Object.keys(e).reduce((n,r)=>{const o=hl[r];return n[o||r]=e[r],n},t),hw=(e,t,n)=>{const r={key:t,[wt]:!0},o=Om(n,r);return[R.createElement("title",o,t)]},hs=(e,t)=>t.map((n,r)=>{const o={key:r,[wt]:!0};return Object.keys(n).forEach(i=>{const l=hl[i]||i;if(l==="innerHTML"||l==="cssText"){const a=n.innerHTML||n.cssText;o.dangerouslySetInnerHTML={__html:a}}else o[l]=n[i]}),R.createElement(e,o)}),et=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>hw(e,t.title,t.titleAttributes),toString:()=>fw(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Om(t),toString:()=>Rm(t)};default:return{toComponent:()=>hs(e,t),toString:()=>pw(e,t,n)}}},mw=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const o=sa(e,oa.meta),i=sa(t,oa.link),s=sa(n,oa.script);return{priorityMethods:{toComponent:()=>[...hs("meta",o.priority),...hs("link",i.priority),...hs("script",s.priority)],toString:()=>`${et("meta",o.priority,r)} ${et("link",i.priority,r)} ${et("script",s.priority,r)}`},metaTags:o.default,linkTags:i.default,scriptTags:s.default}},vw=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:o,noscriptTags:i,styleTags:s,title:l="",titleAttributes:a,prioritizeSeoTags:u}=e;let{linkTags:c,metaTags:d,scriptTags:p}=e,f={toComponent:()=>[],toString:()=>""};return u&&({priorityMethods:f,linkTags:c,metaTags:d,scriptTags:p}=mw(e)),{priority:f,base:et("base",t,r),bodyAttributes:et("bodyAttributes",n,r),htmlAttributes:et("htmlAttributes",o,r),link:et("link",c,r),meta:et("meta",d,r),noscript:et("noscript",i,r),script:et("script",p,r),style:et("style",s,r),title:et("title",{title:l,titleAttributes:a},r)}},cu=vw,Gi=[],Cc=!!(typeof window<"u"&&window.document&&window.document.createElement),du=class{constructor(e,t){Ft(this,"instances",[]);Ft(this,"canUseDOM",Cc);Ft(this,"context");Ft(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Gi:this.instances,add:e=>{(this.canUseDOM?Gi:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Gi:this.instances).indexOf(e);(this.canUseDOM?Gi:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=cu({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},gw=parseInt(R.version.split(".")[0],10),fu=gw>=19,yw={},_m=R.createContext(yw),Zn,Am=(Zn=class extends y.Component{constructor(n){super(n);Ft(this,"helmetData");fu?this.helmetData=null:this.helmetData=new du(this.props.context||{},Zn.canUseDOM)}render(){return fu?R.createElement(R.Fragment,null,this.props.children):R.createElement(_m.Provider,{value:this.helmetData.value},this.props.children)}},Ft(Zn,"canUseDOM",Cc),Zn),kr=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${wt}]`),o=[].slice.call(r),i=[];let s;return t&&t.length&&t.forEach(l=>{const a=document.createElement(e);for(const u in l)if(Object.prototype.hasOwnProperty.call(l,u))if(u==="innerHTML")a.innerHTML=l.innerHTML;else if(u==="cssText"){const c=l.cssText;a.appendChild(document.createTextNode(c))}else{const c=u,d=typeof l[c]>"u"?"":l[c];a.setAttribute(u,d)}a.setAttribute(wt,"true"),o.some((u,c)=>(s=c,a.isEqualNode(u)))?o.splice(s,1):i.push(a)}),o.forEach(l=>{var a;return(a=l.parentNode)==null?void 0:a.removeChild(l)}),i.forEach(l=>n.appendChild(l)),{oldTags:o,newTags:i}},pu=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(wt),o=r?r.split(","):[],i=[...o],s=Object.keys(t);for(const l of s){const a=t[l]||"";n.getAttribute(l)!==a&&n.setAttribute(l,a),o.indexOf(l)===-1&&o.push(l);const u=i.indexOf(l);u!==-1&&i.splice(u,1)}for(let l=i.length-1;l>=0;l-=1)n.removeAttribute(i[l]);o.length===i.length?n.removeAttribute(wt):n.getAttribute(wt)!==s.join(",")&&n.setAttribute(wt,s.join(","))},ww=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=bm(e)),pu("title",t)},ff=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:o,linkTags:i,metaTags:s,noscriptTags:l,onChangeClientState:a,scriptTags:u,styleTags:c,title:d,titleAttributes:p}=e;pu("body",r),pu("html",o),ww(d,p);const f={baseTag:kr("base",n),linkTags:kr("link",i),metaTags:kr("meta",s),noscriptTags:kr("noscript",l),scriptTags:kr("script",u),styleTags:kr("style",c)},x={},g={};Object.keys(f).forEach(w=>{const{newTags:m,oldTags:h}=f[w];m.length&&(x[w]=m),h.length&&(g[w]=f[w].oldTags)}),t&&t(),a(e,x,g)},_o=null,xw=e=>{_o&&cancelAnimationFrame(_o),e.defer?_o=requestAnimationFrame(()=>{ff(e,()=>{_o=null})}):(ff(e),_o=null)},Ew=xw,pf=class extends y.Component{constructor(){super(...arguments);Ft(this,"rendered",!1)}shouldComponentUpdate(t){return!rw(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const o=uw(t.get().map(i=>{const{context:s,...l}=i.props;return l}));Am.canUseDOM?Ew(o):cu&&(r=cu(o)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},ms=[],hf=e=>{const t={};for(const n of Object.keys(e))t[Pm[n]||n]=e[n];return t},Qn=e=>{const t={};for(const n of Object.keys(e)){const r=hl[n];t[r||n]=e[n]}return t},mf=(e,t)=>{if(!Cc)return;const n=document.getElementsByTagName(e)[0];if(!n)return;const r="data-rh-managed",o=n.getAttribute(r),i=o?o.split(","):[],s=Object.keys(t);for(const l of i)s.includes(l)||n.removeAttribute(l);for(const l of s){const a=t[l];a==null||a===!1?n.removeAttribute(l):a===!0?n.setAttribute(l,""):n.setAttribute(l,String(a))}s.length>0?n.setAttribute(r,s.join(",")):n.removeAttribute(r)},la=()=>{const e={},t={};for(const n of ms){const{htmlAttributes:r,bodyAttributes:o}=n.props;r&&Object.assign(e,hf(r)),o&&Object.assign(t,hf(o))}mf("html",e),mf("body",t)},Sw=class extends y.Component{componentDidMount(){ms.push(this),la()}componentDidUpdate(){la()}componentWillUnmount(){const e=ms.indexOf(this);e!==-1&&ms.splice(e,1),la()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:n}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||n||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const t=this.props.titleAttributes||{};return R.createElement("title",Qn(t),e)}renderBase(){const{base:e}=this.props;return e?R.createElement("base",Qn(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>R.createElement("meta",{key:n,...Qn(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>R.createElement("link",{key:n,...Qn(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...o}=t,i=Qn(o);return r&&(i.dangerouslySetInnerHTML={__html:r}),R.createElement("script",{key:n,...i})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{cssText:r,...o}=t,i=Qn(o);return r&&(i.dangerouslySetInnerHTML={__html:r}),R.createElement("style",{key:n,...i})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...o}=t,i=Qn(o);return r&&(i.dangerouslySetInnerHTML={__html:r}),R.createElement("noscript",{key:n,...i})})}render(){return R.createElement(R.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},va,xT=(va=class extends y.Component{shouldComponentUpdate(e){return!J0(df(this.props,"helmetData"),df(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return uf(cf.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${cf.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),uf(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`} ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return R.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:o,...i}=r.props,s=Object.keys(i).reduce((a,u)=>(a[Pm[u]||u]=i[u],a),{});let{type:l}=r;switch(typeof l=="symbol"?l=l.toString():this.warnOnInvalidChildren(r,o),l){case"Symbol(react.fragment)":t=this.mapChildrenToProps(o,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,s,o);break;default:t=this.mapObjectTypeChildren(r,t,s,o);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof du)){const o=r;r=new du(o.context,!0),delete n.helmetData}return fu?R.createElement(Sw,{...n}):r?R.createElement(pf,{...n,context:r.value}):R.createElement(_m.Consumer,null,o=>R.createElement(pf,{...n,context:o}))}},Ft(va,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),va);const Cw="modulepreload",Tw=function(e){return"/"+e},vf={},tn=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=Promise.allSettled(n.map(a=>{if(a=Tw(a),a in vf)return;vf[a]=!0;const u=a.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":Cw,u||(d.as="script"),d.crossOrigin="",d.href=a,l&&d.setAttribute("nonce",l),document.head.appendChild(d),u)return new Promise((p,f)=>{d.addEventListener("load",p),d.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${a}`)))})}))}function i(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return o.then(s=>{for(const l of s||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})},kw=1,Pw=1e6;let aa=0;function bw(){return aa=(aa+1)%Number.MAX_SAFE_INTEGER,aa.toString()}const ua=new Map,gf=e=>{if(ua.has(e))return;const t=setTimeout(()=>{ua.delete(e),Qo({type:"REMOVE_TOAST",toastId:e})},Pw);ua.set(e,t)},Rw=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,kw)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?gf(n):e.toasts.forEach(r=>{gf(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},vs=[];let gs={toasts:[]};function Qo(e){gs=Rw(gs,e),vs.forEach(t=>{t(gs)})}function Ow({...e}){const t=bw(),n=o=>Qo({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Qo({type:"DISMISS_TOAST",toastId:t});return Qo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function _w(){const[e,t]=y.useState(gs);return y.useEffect(()=>(vs.push(t),()=>{const n=vs.indexOf(t);n>-1&&vs.splice(n,1)}),[e]),{...e,toast:Ow,dismiss:n=>Qo({type:"DISMISS_TOAST",toastId:n})}}function ye(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function yf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Nm(...e){return t=>{let n=!1;const r=e.map(o=>{const i=yf(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{var m;const{scope:p,children:f,...x}=d,g=((m=p==null?void 0:p[e])==null?void 0:m[a])||l,w=y.useMemo(()=>x,Object.values(x));return b.jsx(g.Provider,{value:w,children:f})};u.displayName=i+"Provider";function c(d,p){var g;const f=((g=p==null?void 0:p[e])==null?void 0:g[a])||l,x=y.useContext(f);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,c]}const o=()=>{const i=n.map(s=>y.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return y.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,Aw(o,...t)]}function Aw(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((l,{useScope:a,scopeName:u})=>{const d=a(i)[`__scope${u}`];return{...l,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Hs(e){const t=Nw(e),n=y.forwardRef((r,o)=>{const{children:i,...s}=r,l=y.Children.toArray(i),a=l.find(Mw);if(a){const u=a.props.children,c=l.map(d=>d===a?y.Children.count(u)>1?y.Children.only(null):y.isValidElement(u)?u.props.children:null:d);return b.jsx(t,{...s,ref:o,children:y.isValidElement(u)?y.cloneElement(u,void 0,c):null})}return b.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var ET=Hs("Slot");function Nw(e){const t=y.forwardRef((n,r)=>{const{children:o,...i}=n;if(y.isValidElement(o)){const s=Dw(o),l=Iw(i,o.props);return o.type!==y.Fragment&&(l.ref=r?Nm(r,s):s),y.cloneElement(o,l)}return y.Children.count(o)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Lm=Symbol("radix.slottable");function Lw(e){const t=({children:n})=>b.jsx(b.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Lm,t}function Mw(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Lm}function Iw(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const a=i(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Dw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function jw(e){const t=e+"CollectionProvider",[n,r]=ml(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:w,children:m}=g,h=R.useRef(null),v=R.useRef(new Map).current;return b.jsx(o,{scope:w,itemMap:v,collectionRef:h,children:m})};s.displayName=t;const l=e+"CollectionSlot",a=Hs(l),u=R.forwardRef((g,w)=>{const{scope:m,children:h}=g,v=i(l,m),E=Ct(w,v.collectionRef);return b.jsx(a,{ref:E,children:h})});u.displayName=l;const c=e+"CollectionItemSlot",d="data-radix-collection-item",p=Hs(c),f=R.forwardRef((g,w)=>{const{scope:m,children:h,...v}=g,E=R.useRef(null),S=Ct(w,E),C=i(c,m);return R.useEffect(()=>(C.itemMap.set(E,{ref:E,...v}),()=>void C.itemMap.delete(E))),b.jsx(p,{[d]:"",ref:S,children:h})});f.displayName=c;function x(g){const w=i(e+"CollectionConsumer",g);return R.useCallback(()=>{const h=w.collectionRef.current;if(!h)return[];const v=Array.from(h.querySelectorAll(`[${d}]`));return Array.from(w.itemMap.values()).sort((C,T)=>v.indexOf(C.ref.current)-v.indexOf(T.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:s,Slot:u,ItemSlot:f},x,r]}var zw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ve=zw.reduce((e,t)=>{const n=Hs(`Primitive.${t}`),r=y.forwardRef((o,i)=>{const{asChild:s,...l}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(a,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Mm(e,t){e&&Ti.flushSync(()=>e.dispatchEvent(t))}function Dn(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Fw(e,t=globalThis==null?void 0:globalThis.document){const n=Dn(e);y.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var $w="DismissableLayer",hu="dismissableLayer.update",Uw="dismissableLayer.pointerDownOutside",Bw="dismissableLayer.focusOutside",wf,Im=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Tc=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...a}=e,u=y.useContext(Im),[c,d]=y.useState(null),p=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=y.useState({}),x=Ct(t,T=>d(T)),g=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=g.indexOf(w),h=c?g.indexOf(c):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,E=h>=m,S=Vw(T=>{const _=T.target,L=[...u.branches].some(N=>N.contains(_));!E||L||(o==null||o(T),s==null||s(T),T.defaultPrevented||l==null||l())},p),C=Ww(T=>{const _=T.target;[...u.branches].some(N=>N.contains(_))||(i==null||i(T),s==null||s(T),T.defaultPrevented||l==null||l())},p);return Fw(T=>{h===u.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&l&&(T.preventDefault(),l()))},p),y.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(wf=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),xf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=wf)}},[c,p,n,u]),y.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),xf())},[c,u]),y.useEffect(()=>{const T=()=>f({});return document.addEventListener(hu,T),()=>document.removeEventListener(hu,T)},[]),b.jsx(Ve.div,{...a,ref:x,style:{pointerEvents:v?E?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,C.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,S.onPointerDownCapture)})});Tc.displayName=$w;var Hw="DismissableLayerBranch",Dm=y.forwardRef((e,t)=>{const n=y.useContext(Im),r=y.useRef(null),o=Ct(t,r);return y.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),b.jsx(Ve.div,{...e,ref:o})});Dm.displayName=Hw;function Vw(e,t=globalThis==null?void 0:globalThis.document){const n=Dn(e),r=y.useRef(!1),o=y.useRef(()=>{});return y.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let a=function(){jm(Uw,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ww(e,t=globalThis==null?void 0:globalThis.document){const n=Dn(e),r=y.useRef(!1);return y.useEffect(()=>{const o=i=>{i.target&&!r.current&&jm(Bw,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function xf(){const e=new CustomEvent(hu);document.dispatchEvent(e)}function jm(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Mm(o,i):o.dispatchEvent(i)}var Qw=Tc,Kw=Dm,jn=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},Yw="Portal",zm=y.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=y.useState(!1);jn(()=>i(!0),[]);const s=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?Cm.createPortal(b.jsx(Ve.div,{...r,ref:t}),s):null});zm.displayName=Yw;function Gw(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var kc=e=>{const{present:t,children:n}=e,r=qw(t),o=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),i=Ct(r.ref,Xw(o));return typeof n=="function"||r.isPresent?y.cloneElement(o,{ref:i}):null};kc.displayName="Presence";function qw(e){const[t,n]=y.useState(),r=y.useRef(null),o=y.useRef(e),i=y.useRef("none"),s=e?"mounted":"unmounted",[l,a]=Gw(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const u=qi(r.current);i.current=l==="mounted"?u:"none"},[l]),jn(()=>{const u=r.current,c=o.current;if(c!==e){const p=i.current,f=qi(u);e?a("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(c&&p!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),jn(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=f=>{const g=qi(r.current).includes(f.animationName);if(f.target===t&&g&&(a("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},p=f=>{f.target===t&&(i.current=qi(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:y.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function qi(e){return(e==null?void 0:e.animationName)||"none"}function Xw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Zw=xp[" useInsertionEffect ".trim().toString()]||jn;function Jw({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=e1({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:o;{const c=y.useRef(e!==void 0);y.useEffect(()=>{const d=c.current;d!==l&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. 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.`),c.current=l},[l,r])}const u=y.useCallback(c=>{var d;if(l){const p=t1(c)?c(e):c;p!==e&&((d=s.current)==null||d.call(s,p))}else i(c)},[l,e,i,s]);return[a,u]}function e1({defaultProp:e,onChange:t}){const[n,r]=y.useState(e),o=y.useRef(n),i=y.useRef(t);return Zw(()=>{i.current=t},[t]),y.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function t1(e){return typeof e=="function"}var n1=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"}),r1="VisuallyHidden",vl=y.forwardRef((e,t)=>b.jsx(Ve.span,{...e,ref:t,style:{...n1,...e.style}}));vl.displayName=r1;var o1=vl,Pc="ToastProvider",[bc,i1,s1]=jw("Toast"),[Fm,ST]=ml("Toast",[s1]),[l1,gl]=Fm(Pc),$m=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[l,a]=y.useState(null),[u,c]=y.useState(0),d=y.useRef(!1),p=y.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Pc}\`. Expected non-empty \`string\`.`),b.jsx(bc.Provider,{scope:t,children:b.jsx(l1,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:a,onToastAdd:y.useCallback(()=>c(f=>f+1),[]),onToastRemove:y.useCallback(()=>c(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:p,children:s})})};$m.displayName=Pc;var Um="ToastViewport",a1=["F8"],mu="toast.viewportPause",vu="toast.viewportResume",Bm=y.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=a1,label:o="Notifications ({hotkey})",...i}=e,s=gl(Um,n),l=i1(n),a=y.useRef(null),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=Ct(t,d,s.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=s.toastCount>0;y.useEffect(()=>{const w=m=>{var v;r.length!==0&&r.every(E=>m[E]||m.code===E)&&((v=d.current)==null||v.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),y.useEffect(()=>{const w=a.current,m=d.current;if(x&&w&&m){const h=()=>{if(!s.isClosePausedRef.current){const C=new CustomEvent(mu);m.dispatchEvent(C),s.isClosePausedRef.current=!0}},v=()=>{if(s.isClosePausedRef.current){const C=new CustomEvent(vu);m.dispatchEvent(C),s.isClosePausedRef.current=!1}},E=C=>{!w.contains(C.relatedTarget)&&v()},S=()=>{w.contains(document.activeElement)||v()};return w.addEventListener("focusin",h),w.addEventListener("focusout",E),w.addEventListener("pointermove",h),w.addEventListener("pointerleave",S),window.addEventListener("blur",h),window.addEventListener("focus",v),()=>{w.removeEventListener("focusin",h),w.removeEventListener("focusout",E),w.removeEventListener("pointermove",h),w.removeEventListener("pointerleave",S),window.removeEventListener("blur",h),window.removeEventListener("focus",v)}}},[x,s.isClosePausedRef]);const g=y.useCallback(({tabbingDirection:w})=>{const h=l().map(v=>{const E=v.ref.current,S=[E,...E1(E)];return w==="forwards"?S:S.reverse()});return(w==="forwards"?h.reverse():h).flat()},[l]);return y.useEffect(()=>{const w=d.current;if(w){const m=h=>{var S,C,T;const v=h.altKey||h.ctrlKey||h.metaKey;if(h.key==="Tab"&&!v){const _=document.activeElement,L=h.shiftKey;if(h.target===w&&L){(S=u.current)==null||S.focus();return}const j=g({tabbingDirection:L?"backwards":"forwards"}),Q=j.findIndex(M=>M===_);ca(j.slice(Q+1))?h.preventDefault():L?(C=u.current)==null||C.focus():(T=c.current)==null||T.focus()}};return w.addEventListener("keydown",m),()=>w.removeEventListener("keydown",m)}},[l,g]),b.jsxs(Kw,{ref:a,role:"region","aria-label":o.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&b.jsx(gu,{ref:u,onFocusFromOutsideViewport:()=>{const w=g({tabbingDirection:"forwards"});ca(w)}}),b.jsx(bc.Slot,{scope:n,children:b.jsx(Ve.ol,{tabIndex:-1,...i,ref:p})}),x&&b.jsx(gu,{ref:c,onFocusFromOutsideViewport:()=>{const w=g({tabbingDirection:"backwards"});ca(w)}})]})});Bm.displayName=Um;var Hm="ToastFocusProxy",gu=y.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=gl(Hm,n);return b.jsx(vl,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const l=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&r()}})});gu.displayName=Hm;var ki="Toast",u1="toast.swipeStart",c1="toast.swipeMove",d1="toast.swipeCancel",f1="toast.swipeEnd",Vm=y.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[l,a]=Jw({prop:r,defaultProp:o??!0,onChange:i,caller:ki});return b.jsx(kc,{present:n||l,children:b.jsx(m1,{open:l,...s,ref:t,onClose:()=>a(!1),onPause:Dn(e.onPause),onResume:Dn(e.onResume),onSwipeStart:ye(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ye(e.onSwipeMove,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:ye(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ye(e.onSwipeEnd,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),a(!1)})})})});Vm.displayName=ki;var[p1,h1]=Fm(ki,{onClose(){}}),m1=y.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:l,onPause:a,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:p,onSwipeEnd:f,...x}=e,g=gl(ki,n),[w,m]=y.useState(null),h=Ct(t,M=>m(M)),v=y.useRef(null),E=y.useRef(null),S=o||g.duration,C=y.useRef(0),T=y.useRef(S),_=y.useRef(0),{onToastAdd:L,onToastRemove:N}=g,F=Dn(()=>{var G;(w==null?void 0:w.contains(document.activeElement))&&((G=g.viewport)==null||G.focus()),s()}),j=y.useCallback(M=>{!M||M===1/0||(window.clearTimeout(_.current),C.current=new Date().getTime(),_.current=window.setTimeout(F,M))},[F]);y.useEffect(()=>{const M=g.viewport;if(M){const G=()=>{j(T.current),u==null||u()},$=()=>{const H=new Date().getTime()-C.current;T.current=T.current-H,window.clearTimeout(_.current),a==null||a()};return M.addEventListener(mu,$),M.addEventListener(vu,G),()=>{M.removeEventListener(mu,$),M.removeEventListener(vu,G)}}},[g.viewport,S,a,u,j]),y.useEffect(()=>{i&&!g.isClosePausedRef.current&&j(S)},[i,S,g.isClosePausedRef,j]),y.useEffect(()=>(L(),()=>N()),[L,N]);const Q=y.useMemo(()=>w?Xm(w):null,[w]);return g.viewport?b.jsxs(b.Fragment,{children:[Q&&b.jsx(v1,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:Q}),b.jsx(p1,{scope:n,onClose:F,children:Ti.createPortal(b.jsx(bc.ItemSlot,{scope:n,children:b.jsx(Qw,{asChild:!0,onEscapeKeyDown:ye(l,()=>{g.isFocusedToastEscapeKeyDownRef.current||F(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:b.jsx(Ve.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":g.swipeDirection,...x,ref:h,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ye(e.onKeyDown,M=>{M.key==="Escape"&&(l==null||l(M.nativeEvent),M.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,F()))}),onPointerDown:ye(e.onPointerDown,M=>{M.button===0&&(v.current={x:M.clientX,y:M.clientY})}),onPointerMove:ye(e.onPointerMove,M=>{if(!v.current)return;const G=M.clientX-v.current.x,$=M.clientY-v.current.y,H=!!E.current,P=["left","right"].includes(g.swipeDirection),O=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,I=P?O(0,G):0,V=P?0:O(0,$),z=M.pointerType==="touch"?10:2,K={x:I,y:V},q={originalEvent:M,delta:K};H?(E.current=K,Xi(c1,d,q,{discrete:!1})):Ef(K,g.swipeDirection,z)?(E.current=K,Xi(u1,c,q,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(G)>z||Math.abs($)>z)&&(v.current=null)}),onPointerUp:ye(e.onPointerUp,M=>{const G=E.current,$=M.target;if($.hasPointerCapture(M.pointerId)&&$.releasePointerCapture(M.pointerId),E.current=null,v.current=null,G){const H=M.currentTarget,P={originalEvent:M,delta:G};Ef(G,g.swipeDirection,g.swipeThreshold)?Xi(f1,f,P,{discrete:!0}):Xi(d1,p,P,{discrete:!0}),H.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),v1=e=>{const{__scopeToast:t,children:n,...r}=e,o=gl(ki,t),[i,s]=y.useState(!1),[l,a]=y.useState(!1);return w1(()=>s(!0)),y.useEffect(()=>{const u=window.setTimeout(()=>a(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:b.jsx(zm,{asChild:!0,children:b.jsx(vl,{...r,children:i&&b.jsxs(b.Fragment,{children:[o.label," ",n]})})})},g1="ToastTitle",Wm=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return b.jsx(Ve.div,{...r,ref:t})});Wm.displayName=g1;var y1="ToastDescription",Qm=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return b.jsx(Ve.div,{...r,ref:t})});Qm.displayName=y1;var Km="ToastAction",Ym=y.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?b.jsx(qm,{altText:n,asChild:!0,children:b.jsx(Rc,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Km}\`. Expected non-empty \`string\`.`),null)});Ym.displayName=Km;var Gm="ToastClose",Rc=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=h1(Gm,n);return b.jsx(qm,{asChild:!0,children:b.jsx(Ve.button,{type:"button",...r,ref:t,onClick:ye(e.onClick,o.onClose)})})});Rc.displayName=Gm;var qm=y.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return b.jsx(Ve.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Xm(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),x1(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...Xm(r))}}),t}function Xi(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Mm(o,i):o.dispatchEvent(i)}var Ef=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function w1(e=()=>{}){const t=Dn(e);jn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function x1(e){return e.nodeType===e.ELEMENT_NODE}function E1(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ca(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var S1=$m,Zm=Bm,Jm=Vm,ev=Wm,tv=Qm,nv=Ym,rv=Rc;function ov(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Cf=iv,C1=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Cf(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],d=i==null?void 0:i[u];if(c===null)return null;const p=Sf(c)||Sf(d);return o[u][p]}),l=n&&Object.entries(n).reduce((u,c)=>{let[d,p]=c;return p===void 0||(u[d]=p),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:p,...f}=c;return Object.entries(f).every(x=>{let[g,w]=x;return Array.isArray(w)?w.includes({...i,...l}[g]):{...i,...l}[g]===w})?[...u,d,p]:u},[]);return Cf(e,s,a,n==null?void 0:n.class,n==null?void 0:n.className)};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const T1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),sv=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var k1={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"};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const P1=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...l},a)=>y.createElement("svg",{ref:a,...k1,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:sv("lucide",o),...l},[...s.map(([u,c])=>y.createElement(u,c)),...Array.isArray(i)?i:[i]]));/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const b1=(e,t)=>{const n=y.forwardRef(({className:r,...o},i)=>y.createElement(P1,{ref:i,iconNode:t,className:sv(`lucide-${T1(e)}`,r),...o}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const R1=b1("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Oc="-",O1=e=>{const t=A1(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const l=s.split(Oc);return l[0]===""&&l.length!==1&&l.shift(),lv(l,t)||_1(s)},getConflictingClassGroupIds:(s,l)=>{const a=n[s]||[];return l&&r[s]?[...a,...r[s]]:a}}},lv=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?lv(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Oc);return(s=t.validators.find(({validator:l})=>l(i)))==null?void 0:s.classGroupId},Tf=/^\[(.+)\]$/,_1=e=>{if(Tf.test(e)){const t=Tf.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},A1=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return L1(Object.entries(e.classGroups),n).forEach(([i,s])=>{yu(s,r,i,t)}),r},yu=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:kf(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(N1(o)){yu(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{yu(s,kf(t,i),n,r)})})},kf=(e,t)=>{let n=e;return t.split(Oc).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},N1=e=>e.isThemeGetter,L1=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,l])=>[t+s,l])):i);return[n,o]}):e,M1=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},av="!",I1=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=l=>{const a=[];let u=0,c=0,d;for(let w=0;wc?d-c:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:x,maybePostfixModifierPosition:g}};return n?l=>n({className:l,parseClassName:s}):s},D1=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},j1=e=>({cache:M1(e.cacheSize),parseClassName:I1(e),...O1(e)}),z1=/\s+/,F1=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(z1);let l="";for(let a=s.length-1;a>=0;a-=1){const u=s[a],{modifiers:c,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:f}=n(u);let x=!!f,g=r(x?p.substring(0,f):p);if(!g){if(!x){l=u+(l.length>0?" "+l:l);continue}if(g=r(p),!g){l=u+(l.length>0?" "+l:l);continue}x=!1}const w=D1(c).join(":"),m=d?w+av:w,h=m+g;if(i.includes(h))continue;i.push(h);const v=o(g,x);for(let E=0;E0?" "+l:l)}return l};function $1(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rd(c),e());return n=j1(u),r=n.cache.get,o=n.cache.set,i=l,l(a)}function l(a){const u=r(a);if(u)return u;const c=F1(a,n);return o(a,c),c}return function(){return i($1.apply(null,arguments))}}const re=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},cv=/^\[(?:([a-z-]+):)?(.+)\]$/i,B1=/^\d+\/\d+$/,H1=new Set(["px","full","screen"]),V1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,W1=/\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$/,Q1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,K1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Y1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$t=e=>Qr(e)||H1.has(e)||B1.test(e),cn=e=>mo(e,"length",nx),Qr=e=>!!e&&!Number.isNaN(Number(e)),da=e=>mo(e,"number",Qr),Ao=e=>!!e&&Number.isInteger(Number(e)),G1=e=>e.endsWith("%")&&Qr(e.slice(0,-1)),W=e=>cv.test(e),dn=e=>V1.test(e),q1=new Set(["length","size","percentage"]),X1=e=>mo(e,q1,dv),Z1=e=>mo(e,"position",dv),J1=new Set(["image","url"]),ex=e=>mo(e,J1,ox),tx=e=>mo(e,"",rx),No=()=>!0,mo=(e,t,n)=>{const r=cv.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},nx=e=>W1.test(e)&&!Q1.test(e),dv=()=>!1,rx=e=>K1.test(e),ox=e=>Y1.test(e),ix=()=>{const e=re("colors"),t=re("spacing"),n=re("blur"),r=re("brightness"),o=re("borderColor"),i=re("borderRadius"),s=re("borderSpacing"),l=re("borderWidth"),a=re("contrast"),u=re("grayscale"),c=re("hueRotate"),d=re("invert"),p=re("gap"),f=re("gradientColorStops"),x=re("gradientColorStopPositions"),g=re("inset"),w=re("margin"),m=re("opacity"),h=re("padding"),v=re("saturate"),E=re("scale"),S=re("sepia"),C=re("skew"),T=re("space"),_=re("translate"),L=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",W,t],j=()=>[W,t],Q=()=>["",$t,cn],M=()=>["auto",Qr,W],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",W],I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[Qr,W];return{cacheSize:500,separator:":",theme:{colors:[No],spacing:[$t,cn],blur:["none","",dn,W],brightness:V(),borderColor:[e],borderRadius:["none","","full",dn,W],borderSpacing:j(),borderWidth:Q(),contrast:V(),grayscale:O(),hueRotate:V(),invert:O(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[G1,cn],inset:F(),margin:F(),opacity:V(),padding:j(),saturate:V(),scale:V(),sepia:O(),skew:V(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",W]}],container:["container"],columns:[{columns:[dn]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"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"],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:[...G(),W]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ao,W]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",W]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",Ao,W]}],"grid-cols":[{"grid-cols":[No]}],"col-start-end":[{col:["auto",{span:["full",Ao,W]},W]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[No]}],"row-start-end":[{row:["auto",{span:[Ao,W]},W]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",W]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",W]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",W,t]}],"min-w":[{"min-w":[W,t,"min","max","fit"]}],"max-w":[{"max-w":[W,t,"none","full","min","max","fit","prose",{screen:[dn]},dn]}],h:[{h:[W,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[W,t,"auto","min","max","fit"]}],"font-size":[{text:["base",dn,cn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",da]}],"font-family":[{font:[No]}],"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:["tighter","tight","normal","wide","wider","widest",W]}],"line-clamp":[{"line-clamp":["none",Qr,da]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",$t,W]}],"list-image":[{"list-image":["none",W]}],"list-style-type":[{list:["none","disc","decimal",W]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",$t,cn]}],"underline-offset":[{"underline-offset":["auto",$t,W]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W]}],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",W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...G(),Z1]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",X1]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ex]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:$()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[$t,W]}],"outline-w":[{outline:[$t,cn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[$t,cn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",dn,tx]}],"shadow-color":[{shadow:[No]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...H(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",dn,W]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",W]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",W]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",W]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[Ao,W]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",W]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",W]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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",W]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[$t,cn,da]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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"],"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"]}}},sx=U1(ix);function mr(...e){return sx(iv(e))}const lx=S1,fv=y.forwardRef(({className:e,...t},n)=>b.jsx(Zm,{ref:n,className:mr("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));fv.displayName=Zm.displayName;const ax=C1("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),pv=y.forwardRef(({className:e,variant:t,...n},r)=>b.jsx(Jm,{ref:r,className:mr(ax({variant:t}),e),...n}));pv.displayName=Jm.displayName;const ux=y.forwardRef(({className:e,...t},n)=>b.jsx(nv,{ref:n,className:mr("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));ux.displayName=nv.displayName;const hv=y.forwardRef(({className:e,...t},n)=>b.jsx(rv,{ref:n,className:mr("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:b.jsx(R1,{className:"h-4 w-4"})}));hv.displayName=rv.displayName;const mv=y.forwardRef(({className:e,...t},n)=>b.jsx(ev,{ref:n,className:mr("text-sm font-semibold",e),...t}));mv.displayName=ev.displayName;const vv=y.forwardRef(({className:e,...t},n)=>b.jsx(tv,{ref:n,className:mr("text-sm opacity-90",e),...t}));vv.displayName=tv.displayName;function cx(){const{toasts:e}=_w();return b.jsxs(lx,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return b.jsxs(pv,{...i,children:[b.jsxs("div",{className:"grid gap-1",children:[n&&b.jsx(mv,{children:n}),r&&b.jsx(vv,{children:r})]}),o,b.jsx(hv,{})]},t)}),b.jsx(fv,{})]})}var Vs=["light","dark"],_c="(prefers-color-scheme: dark)",dx=typeof window>"u",Ac=y.createContext(void 0),fx={setTheme:e=>{},themes:[]},px=()=>{var e;return(e=y.useContext(Ac))!=null?e:fx},hx=e=>y.useContext(Ac)?e.children:y.createElement(vx,{...e}),mx=["light","dark"],vx=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:o="theme",themes:i=mx,defaultTheme:s=n?"system":"light",attribute:l="data-theme",value:a,children:u,nonce:c})=>{let[d,p]=y.useState(()=>Pf(o,s)),[f,x]=y.useState(()=>Pf(o)),g=a?Object.values(a):i,w=y.useCallback(E=>{let S=E;if(!S)return;E==="system"&&n&&(S=bf());let C=a?a[S]:S,T=t?yx():null,_=document.documentElement;if(l==="class"?(_.classList.remove(...g),C&&_.classList.add(C)):C?_.setAttribute(l,C):_.removeAttribute(l),r){let L=Vs.includes(s)?s:null,N=Vs.includes(S)?S:L;_.style.colorScheme=N}T==null||T()},[]),m=y.useCallback(E=>{let S=typeof E=="function"?E(E):E;p(S);try{localStorage.setItem(o,S)}catch{}},[e]),h=y.useCallback(E=>{let S=bf(E);x(S),d==="system"&&n&&!e&&w("system")},[d,e]);y.useEffect(()=>{let E=window.matchMedia(_c);return E.addListener(h),h(E),()=>E.removeListener(h)},[h]),y.useEffect(()=>{let E=S=>{if(S.key!==o)return;let C=S.newValue||s;m(C)};return window.addEventListener("storage",E),()=>window.removeEventListener("storage",E)},[m]),y.useEffect(()=>{w(e??d)},[e,d]);let v=y.useMemo(()=>({theme:d,setTheme:m,forcedTheme:e,resolvedTheme:d==="system"?f:d,themes:n?[...i,"system"]:i,systemTheme:n?f:void 0}),[d,m,e,f,n,i]);return y.createElement(Ac.Provider,{value:v},y.createElement(gx,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:r,storageKey:o,themes:i,defaultTheme:s,attribute:l,value:a,children:u,attrs:g,nonce:c}),u)},gx=y.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,attrs:l,nonce:a})=>{let u=i==="system",c=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(x=>`'${x}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=o?Vs.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=(x,g=!1,w=!0)=>{let m=s?s[x]:x,h=g?x+"|| ''":`'${m}'`,v="";return o&&w&&!g&&Vs.includes(x)&&(v+=`d.style.colorScheme = '${x}';`),n==="class"?g||m?v+=`c.add(${h})`:v+="null":m&&(v+=`d[s](n,${h})`),v},f=e?`!function(){${c}${p(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${_c}',m=window.matchMedia(t);if(m.media!==t||m.matches){${p("dark")}}else{${p("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${p(s?"x[e]":"e",!0)}}${u?"":"else{"+p(i,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${p(s?"x[e]":"e",!0)}}else{${p(i,!1,!1)};}${d}}catch(t){}}();`;return y.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:f}})}),Pf=(e,t)=>{if(dx)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},yx=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},bf=e=>(e||(e=window.matchMedia(_c)),e.matches?"dark":"light"),wx=e=>{switch(e){case"success":return Sx;case"info":return Tx;case"warning":return Cx;case"error":return kx;default:return null}},xx=Array(12).fill(0),Ex=({visible:e,className:t})=>R.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},R.createElement("div",{className:"sonner-spinner"},xx.map((n,r)=>R.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Sx=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Cx=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Tx=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),kx=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Px=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},R.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),R.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),bx=()=>{let[e,t]=R.useState(document.hidden);return R.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},wu=1,Rx=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:wu++,i=this.toasts.find(l=>l.id===o),s=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...e,id:o,title:n}),{...l,...e,id:o,dismissible:s,title:n}):l):this.addToast({title:n,...r,dismissible:s,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,i,s=r.then(async a=>{if(i=["resolve",a],R.isValidElement(a))o=!1,this.create({id:n,type:"default",message:a});else if(_x(a)&&!a.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${a.status}`):t.error,c=typeof t.description=="function"?await t.description(`HTTP error! status: ${a.status}`):t.description;this.create({id:n,type:"error",message:u,description:c})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(a):t.success,c=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"success",message:u,description:c})}}).catch(async a=>{if(i=["reject",a],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(a):t.error,c=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"error",message:u,description:c})}}).finally(()=>{var a;o&&(this.dismiss(n),n=void 0),(a=t.finally)==null||a.call(t)}),l=()=>new Promise((a,u)=>s.then(()=>i[0]==="reject"?u(i[1]):a(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||wu++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},ze=new Rx,Ox=(e,t)=>{let n=(t==null?void 0:t.id)||wu++;return ze.addToast({title:e,...t,id:n}),n},_x=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Ax=Ox,Nx=()=>ze.toasts,Lx=()=>ze.getActiveToasts(),CT=Object.assign(Ax,{success:ze.success,info:ze.info,warning:ze.warning,error:ze.error,custom:ze.custom,message:ze.message,promise:ze.promise,dismiss:ze.dismiss,loading:ze.loading},{getHistory:Nx,getToasts:Lx});function Mx(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Mx(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} `);function Zi(e){return e.label!==void 0}var Ix=3,Dx="32px",jx="16px",Rf=4e3,zx=356,Fx=14,$x=20,Ux=200;function ft(...e){return e.filter(Boolean).join(" ")}function Bx(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var Hx=e=>{var t,n,r,o,i,s,l,a,u,c,d;let{invert:p,toast:f,unstyled:x,interacting:g,setHeights:w,visibleToasts:m,heights:h,index:v,toasts:E,expanded:S,removeToast:C,defaultRichColors:T,closeButton:_,style:L,cancelButtonStyle:N,actionButtonStyle:F,className:j="",descriptionClassName:Q="",duration:M,position:G,gap:$,loadingIcon:H,expandByDefault:P,classNames:O,icons:I,closeButtonAriaLabel:V="Close toast",pauseWhenPageIsHidden:z}=e,[K,q]=R.useState(null),[he,ke]=R.useState(null),[J,yr]=R.useState(!1),[nn,Hn]=R.useState(!1),[rn,wr]=R.useState(!1),[on,Ri]=R.useState(!1),[bl,Oi]=R.useState(!1),[Rl,wo]=R.useState(0),[xr,Qc]=R.useState(0),xo=R.useRef(f.duration||M||Rf),Kc=R.useRef(null),Vn=R.useRef(null),dg=v===0,fg=v+1<=m,Je=f.type,Er=f.dismissible!==!1,pg=f.className||"",hg=f.descriptionClassName||"",_i=R.useMemo(()=>h.findIndex(U=>U.toastId===f.id)||0,[h,f.id]),mg=R.useMemo(()=>{var U;return(U=f.closeButton)!=null?U:_},[f.closeButton,_]),Yc=R.useMemo(()=>f.duration||M||Rf,[f.duration,M]),Ol=R.useRef(0),Sr=R.useRef(0),Gc=R.useRef(0),Cr=R.useRef(null),[vg,gg]=G.split("-"),qc=R.useMemo(()=>h.reduce((U,te,se)=>se>=_i?U:U+te.height,0),[h,_i]),Xc=bx(),yg=f.invert||p,_l=Je==="loading";Sr.current=R.useMemo(()=>_i*$+qc,[_i,qc]),R.useEffect(()=>{xo.current=Yc},[Yc]),R.useEffect(()=>{yr(!0)},[]),R.useEffect(()=>{let U=Vn.current;if(U){let te=U.getBoundingClientRect().height;return Qc(te),w(se=>[{toastId:f.id,height:te,position:f.position},...se]),()=>w(se=>se.filter(at=>at.toastId!==f.id))}},[w,f.id]),R.useLayoutEffect(()=>{if(!J)return;let U=Vn.current,te=U.style.height;U.style.height="auto";let se=U.getBoundingClientRect().height;U.style.height=te,Qc(se),w(at=>at.find(ut=>ut.toastId===f.id)?at.map(ut=>ut.toastId===f.id?{...ut,height:se}:ut):[{toastId:f.id,height:se,position:f.position},...at])},[J,f.title,f.description,w,f.id]);let sn=R.useCallback(()=>{Hn(!0),wo(Sr.current),w(U=>U.filter(te=>te.toastId!==f.id)),setTimeout(()=>{C(f)},Ux)},[f,C,w,Sr]);R.useEffect(()=>{if(f.promise&&Je==="loading"||f.duration===1/0||f.type==="loading")return;let U;return S||g||z&&Xc?(()=>{if(Gc.current{var te;(te=f.onAutoClose)==null||te.call(f,f),sn()},xo.current)),()=>clearTimeout(U)},[S,g,f,Je,z,Xc,sn]),R.useEffect(()=>{f.delete&&sn()},[sn,f.delete]);function wg(){var U,te,se;return I!=null&&I.loading?R.createElement("div",{className:ft(O==null?void 0:O.loader,(U=f==null?void 0:f.classNames)==null?void 0:U.loader,"sonner-loader"),"data-visible":Je==="loading"},I.loading):H?R.createElement("div",{className:ft(O==null?void 0:O.loader,(te=f==null?void 0:f.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":Je==="loading"},H):R.createElement(Ex,{className:ft(O==null?void 0:O.loader,(se=f==null?void 0:f.classNames)==null?void 0:se.loader),visible:Je==="loading"})}return R.createElement("li",{tabIndex:0,ref:Vn,className:ft(j,pg,O==null?void 0:O.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,O==null?void 0:O.default,O==null?void 0:O[Je],(n=f==null?void 0:f.classNames)==null?void 0:n[Je]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:T,"data-styled":!(f.jsx||f.unstyled||x),"data-mounted":J,"data-promise":!!f.promise,"data-swiped":bl,"data-removed":nn,"data-visible":fg,"data-y-position":vg,"data-x-position":gg,"data-index":v,"data-front":dg,"data-swiping":rn,"data-dismissible":Er,"data-type":Je,"data-invert":yg,"data-swipe-out":on,"data-swipe-direction":he,"data-expanded":!!(S||P&&J),style:{"--index":v,"--toasts-before":v,"--z-index":E.length-v,"--offset":`${nn?Rl:Sr.current}px`,"--initial-height":P?"auto":`${xr}px`,...L,...f.style},onDragEnd:()=>{wr(!1),q(null),Cr.current=null},onPointerDown:U=>{_l||!Er||(Kc.current=new Date,wo(Sr.current),U.target.setPointerCapture(U.pointerId),U.target.tagName!=="BUTTON"&&(wr(!0),Cr.current={x:U.clientX,y:U.clientY}))},onPointerUp:()=>{var U,te,se,at;if(on||!Er)return;Cr.current=null;let ut=Number(((U=Vn.current)==null?void 0:U.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ln=Number(((te=Vn.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Wn=new Date().getTime()-((se=Kc.current)==null?void 0:se.getTime()),ct=K==="x"?ut:ln,an=Math.abs(ct)/Wn;if(Math.abs(ct)>=$x||an>.11){wo(Sr.current),(at=f.onDismiss)==null||at.call(f,f),ke(K==="x"?ut>0?"right":"left":ln>0?"down":"up"),sn(),Ri(!0),Oi(!1);return}wr(!1),q(null)},onPointerMove:U=>{var te,se,at,ut;if(!Cr.current||!Er||((te=window.getSelection())==null?void 0:te.toString().length)>0)return;let ln=U.clientY-Cr.current.y,Wn=U.clientX-Cr.current.x,ct=(se=e.swipeDirections)!=null?se:Bx(G);!K&&(Math.abs(Wn)>1||Math.abs(ln)>1)&&q(Math.abs(Wn)>Math.abs(ln)?"x":"y");let an={x:0,y:0};K==="y"?(ct.includes("top")||ct.includes("bottom"))&&(ct.includes("top")&&ln<0||ct.includes("bottom")&&ln>0)&&(an.y=ln):K==="x"&&(ct.includes("left")||ct.includes("right"))&&(ct.includes("left")&&Wn<0||ct.includes("right")&&Wn>0)&&(an.x=Wn),(Math.abs(an.x)>0||Math.abs(an.y)>0)&&Oi(!0),(at=Vn.current)==null||at.style.setProperty("--swipe-amount-x",`${an.x}px`),(ut=Vn.current)==null||ut.style.setProperty("--swipe-amount-y",`${an.y}px`)}},mg&&!f.jsx?R.createElement("button",{"aria-label":V,"data-disabled":_l,"data-close-button":!0,onClick:_l||!Er?()=>{}:()=>{var U;sn(),(U=f.onDismiss)==null||U.call(f,f)},className:ft(O==null?void 0:O.closeButton,(o=f==null?void 0:f.classNames)==null?void 0:o.closeButton)},(i=I==null?void 0:I.close)!=null?i:Px):null,f.jsx||y.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:R.createElement(R.Fragment,null,Je||f.icon||f.promise?R.createElement("div",{"data-icon":"",className:ft(O==null?void 0:O.icon,(s=f==null?void 0:f.classNames)==null?void 0:s.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||wg():null,f.type!=="loading"?f.icon||(I==null?void 0:I[Je])||wx(Je):null):null,R.createElement("div",{"data-content":"",className:ft(O==null?void 0:O.content,(l=f==null?void 0:f.classNames)==null?void 0:l.content)},R.createElement("div",{"data-title":"",className:ft(O==null?void 0:O.title,(a=f==null?void 0:f.classNames)==null?void 0:a.title)},typeof f.title=="function"?f.title():f.title),f.description?R.createElement("div",{"data-description":"",className:ft(Q,hg,O==null?void 0:O.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),y.isValidElement(f.cancel)?f.cancel:f.cancel&&Zi(f.cancel)?R.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||N,onClick:U=>{var te,se;Zi(f.cancel)&&Er&&((se=(te=f.cancel).onClick)==null||se.call(te,U),sn())},className:ft(O==null?void 0:O.cancelButton,(c=f==null?void 0:f.classNames)==null?void 0:c.cancelButton)},f.cancel.label):null,y.isValidElement(f.action)?f.action:f.action&&Zi(f.action)?R.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||F,onClick:U=>{var te,se;Zi(f.action)&&((se=(te=f.action).onClick)==null||se.call(te,U),!U.defaultPrevented&&sn())},className:ft(O==null?void 0:O.actionButton,(d=f==null?void 0:f.classNames)==null?void 0:d.actionButton)},f.action.label):null))};function Of(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Vx(e,t){let n={};return[e,t].forEach((r,o)=>{let i=o===1,s=i?"--mobile-offset":"--offset",l=i?jx:Dx;function a(u){["top","right","bottom","left"].forEach(c=>{n[`${s}-${c}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?a(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${s}-${u}`]=l:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):a(l)}),n}var Wx=y.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:i,closeButton:s,className:l,offset:a,mobileOffset:u,theme:c="light",richColors:d,duration:p,style:f,visibleToasts:x=Ix,toastOptions:g,dir:w=Of(),gap:m=Fx,loadingIcon:h,icons:v,containerAriaLabel:E="Notifications",pauseWhenPageIsHidden:S}=e,[C,T]=R.useState([]),_=R.useMemo(()=>Array.from(new Set([r].concat(C.filter(z=>z.position).map(z=>z.position)))),[C,r]),[L,N]=R.useState([]),[F,j]=R.useState(!1),[Q,M]=R.useState(!1),[G,$]=R.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),H=R.useRef(null),P=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),O=R.useRef(null),I=R.useRef(!1),V=R.useCallback(z=>{T(K=>{var q;return(q=K.find(he=>he.id===z.id))!=null&&q.delete||ze.dismiss(z.id),K.filter(({id:he})=>he!==z.id)})},[]);return R.useEffect(()=>ze.subscribe(z=>{if(z.dismiss){T(K=>K.map(q=>q.id===z.id?{...q,delete:!0}:q));return}setTimeout(()=>{Cm.flushSync(()=>{T(K=>{let q=K.findIndex(he=>he.id===z.id);return q!==-1?[...K.slice(0,q),{...K[q],...z},...K.slice(q+1)]:[z,...K]})})})}),[]),R.useEffect(()=>{if(c!=="system"){$(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?$("dark"):$("light")),typeof window>"u")return;let z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:K})=>{$(K?"dark":"light")})}catch{z.addListener(({matches:q})=>{try{$(q?"dark":"light")}catch(he){console.error(he)}})}},[c]),R.useEffect(()=>{C.length<=1&&j(!1)},[C]),R.useEffect(()=>{let z=K=>{var q,he;o.every(ke=>K[ke]||K.code===ke)&&(j(!0),(q=H.current)==null||q.focus()),K.code==="Escape"&&(document.activeElement===H.current||(he=H.current)!=null&&he.contains(document.activeElement))&&j(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[o]),R.useEffect(()=>{if(H.current)return()=>{O.current&&(O.current.focus({preventScroll:!0}),O.current=null,I.current=!1)}},[H.current]),R.createElement("section",{ref:t,"aria-label":`${E} ${P}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},_.map((z,K)=>{var q;let[he,ke]=z.split("-");return C.length?R.createElement("ol",{key:z,dir:w==="auto"?Of():w,tabIndex:-1,ref:H,className:l,"data-sonner-toaster":!0,"data-theme":G,"data-y-position":he,"data-lifted":F&&C.length>1&&!i,"data-x-position":ke,style:{"--front-toast-height":`${((q=L[0])==null?void 0:q.height)||0}px`,"--width":`${zx}px`,"--gap":`${m}px`,...f,...Vx(a,u)},onBlur:J=>{I.current&&!J.currentTarget.contains(J.relatedTarget)&&(I.current=!1,O.current&&(O.current.focus({preventScroll:!0}),O.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||I.current||(I.current=!0,O.current=J.relatedTarget)},onMouseEnter:()=>j(!0),onMouseMove:()=>j(!0),onMouseLeave:()=>{Q||j(!1)},onDragEnd:()=>j(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||M(!0)},onPointerUp:()=>M(!1)},C.filter(J=>!J.position&&K===0||J.position===z).map((J,yr)=>{var nn,Hn;return R.createElement(Hx,{key:J.id,icons:v,index:yr,toast:J,defaultRichColors:d,duration:(nn=g==null?void 0:g.duration)!=null?nn:p,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:n,visibleToasts:x,closeButton:(Hn=g==null?void 0:g.closeButton)!=null?Hn:s,interacting:Q,position:z,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:V,toasts:C.filter(rn=>rn.position==J.position),heights:L.filter(rn=>rn.position==J.position),setHeights:N,expandByDefault:i,gap:m,loadingIcon:h,expanded:F,pauseWhenPageIsHidden:S,swipeDirections:e.swipeDirections})})):null}))});const Qx=({...e})=>{const{theme:t="system"}=px();return b.jsx(Wx,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},Kx=["top","right","bottom","left"],zn=Math.min,Qe=Math.max,Ws=Math.round,Ji=Math.floor,Dt=e=>({x:e,y:e}),Yx={left:"right",right:"left",bottom:"top",top:"bottom"},Gx={start:"end",end:"start"};function xu(e,t,n){return Qe(e,zn(t,n))}function Zt(e,t){return typeof e=="function"?e(t):e}function Jt(e){return e.split("-")[0]}function vo(e){return e.split("-")[1]}function Nc(e){return e==="x"?"y":"x"}function Lc(e){return e==="y"?"height":"width"}const qx=new Set(["top","bottom"]);function Lt(e){return qx.has(Jt(e))?"y":"x"}function Mc(e){return Nc(Lt(e))}function Xx(e,t,n){n===void 0&&(n=!1);const r=vo(e),o=Mc(e),i=Lc(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Qs(s)),[s,Qs(s)]}function Zx(e){const t=Qs(e);return[Eu(e),t,Eu(t)]}function Eu(e){return e.replace(/start|end/g,t=>Gx[t])}const _f=["left","right"],Af=["right","left"],Jx=["top","bottom"],eE=["bottom","top"];function tE(e,t,n){switch(e){case"top":case"bottom":return n?t?Af:_f:t?_f:Af;case"left":case"right":return t?Jx:eE;default:return[]}}function nE(e,t,n,r){const o=vo(e);let i=tE(Jt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Eu)))),i}function Qs(e){return e.replace(/left|right|bottom|top/g,t=>Yx[t])}function rE(e){return{top:0,right:0,bottom:0,left:0,...e}}function gv(e){return typeof e!="number"?rE(e):{top:e,right:e,bottom:e,left:e}}function Ks(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Nf(e,t,n){let{reference:r,floating:o}=e;const i=Lt(t),s=Mc(t),l=Lc(s),a=Jt(t),u=i==="y",c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[l]/2-o[l]/2;let f;switch(a){case"top":f={x:c,y:r.y-o.height};break;case"bottom":f={x:c,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(vo(t)){case"start":f[s]-=p*(n&&u?-1:1);break;case"end":f[s]+=p*(n&&u?-1:1);break}return f}const oE=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=Nf(u,r,a),p=r,f={},x=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:a}=t,{element:u,padding:c=0}=Zt(e,t)||{};if(u==null)return{};const d=gv(c),p={x:n,y:r},f=Mc(o),x=Lc(f),g=await s.getDimensions(u),w=f==="y",m=w?"top":"left",h=w?"bottom":"right",v=w?"clientHeight":"clientWidth",E=i.reference[x]+i.reference[f]-p[f]-i.floating[x],S=p[f]-i.reference[f],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let T=C?C[v]:0;(!T||!await(s.isElement==null?void 0:s.isElement(C)))&&(T=l.floating[v]||i.floating[x]);const _=E/2-S/2,L=T/2-g[x]/2-1,N=zn(d[m],L),F=zn(d[h],L),j=N,Q=T-g[x]-F,M=T/2-g[x]/2+_,G=xu(j,M,Q),$=!a.arrow&&vo(o)!=null&&M!==G&&i.reference[x]/2-(MM<=0)){var F,j;const M=(((F=i.flip)==null?void 0:F.index)||0)+1,G=T[M];if(G&&(!(d==="alignment"?h!==Lt(G):!1)||N.every(P=>P.overflows[0]>0&&Lt(P.placement)===h)))return{data:{index:M,overflows:N},reset:{placement:G}};let $=(j=N.filter(H=>H.overflows[0]<=0).sort((H,P)=>H.overflows[1]-P.overflows[1])[0])==null?void 0:j.placement;if(!$)switch(f){case"bestFit":{var Q;const H=(Q=N.filter(P=>{if(C){const O=Lt(P.placement);return O===h||O==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(O=>O>0).reduce((O,I)=>O+I,0)]).sort((P,O)=>P[1]-O[1])[0])==null?void 0:Q[0];H&&($=H);break}case"initialPlacement":$=l;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Lf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Mf(e){return Kx.some(t=>e[t]>=0)}const lE=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Zt(e,t);switch(r){case"referenceHidden":{const i=await ci(t,{...o,elementContext:"reference"}),s=Lf(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Mf(s)}}}case"escaped":{const i=await ci(t,{...o,altBoundary:!0}),s=Lf(i,n.floating);return{data:{escapedOffsets:s,escaped:Mf(s)}}}default:return{}}}}},yv=new Set(["left","top"]);async function aE(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Jt(n),l=vo(n),a=Lt(n)==="y",u=yv.has(s)?-1:1,c=i&&a?-1:1,d=Zt(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:x}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof x=="number"&&(f=l==="end"?x*-1:x),a?{x:f*c,y:p*u}:{x:p*u,y:f*c}}const uE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=t,a=await aE(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:s}}}}},cE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:m,y:h}=w;return{x:m,y:h}}},...a}=Zt(e,t),u={x:n,y:r},c=await ci(t,a),d=Lt(Jt(o)),p=Nc(d);let f=u[p],x=u[d];if(i){const w=p==="y"?"top":"left",m=p==="y"?"bottom":"right",h=f+c[w],v=f-c[m];f=xu(h,f,v)}if(s){const w=d==="y"?"top":"left",m=d==="y"?"bottom":"right",h=x+c[w],v=x-c[m];x=xu(h,x,v)}const g=l.fn({...t,[p]:f,[d]:x});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:i,[d]:s}}}}}},dE=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=Zt(e,t),c={x:n,y:r},d=Lt(o),p=Nc(d);let f=c[p],x=c[d];const g=Zt(l,t),w=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(a){const v=p==="y"?"height":"width",E=i.reference[p]-i.floating[v]+w.mainAxis,S=i.reference[p]+i.reference[v]-w.mainAxis;fS&&(f=S)}if(u){var m,h;const v=p==="y"?"width":"height",E=yv.has(Jt(o)),S=i.reference[d]-i.floating[v]+(E&&((m=s.offset)==null?void 0:m[d])||0)+(E?0:w.crossAxis),C=i.reference[d]+i.reference[v]+(E?0:((h=s.offset)==null?void 0:h[d])||0)-(E?w.crossAxis:0);xC&&(x=C)}return{[p]:f,[d]:x}}}},fE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:l}=t,{apply:a=()=>{},...u}=Zt(e,t),c=await ci(t,u),d=Jt(o),p=vo(o),f=Lt(o)==="y",{width:x,height:g}=i.floating;let w,m;d==="top"||d==="bottom"?(w=d,m=p===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(m=d,w=p==="end"?"top":"bottom");const h=g-c.top-c.bottom,v=x-c.left-c.right,E=zn(g-c[w],h),S=zn(x-c[m],v),C=!t.middlewareData.shift;let T=E,_=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(_=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=h),C&&!p){const N=Qe(c.left,0),F=Qe(c.right,0),j=Qe(c.top,0),Q=Qe(c.bottom,0);f?_=x-2*(N!==0||F!==0?N+F:Qe(c.left,c.right)):T=g-2*(j!==0||Q!==0?j+Q:Qe(c.top,c.bottom))}await a({...t,availableWidth:_,availableHeight:T});const L=await s.getDimensions(l.floating);return x!==L.width||g!==L.height?{reset:{rects:!0}}:{}}}};function yl(){return typeof window<"u"}function go(e){return wv(e)?(e.nodeName||"").toLowerCase():"#document"}function Ge(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function zt(e){var t;return(t=(wv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function wv(e){return yl()?e instanceof Node||e instanceof Ge(e).Node:!1}function Tt(e){return yl()?e instanceof Element||e instanceof Ge(e).Element:!1}function jt(e){return yl()?e instanceof HTMLElement||e instanceof Ge(e).HTMLElement:!1}function If(e){return!yl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ge(e).ShadowRoot}const pE=new Set(["inline","contents"]);function Pi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!pE.has(o)}const hE=new Set(["table","td","th"]);function mE(e){return hE.has(go(e))}const vE=[":popover-open",":modal"];function wl(e){return vE.some(t=>{try{return e.matches(t)}catch{return!1}})}const gE=["transform","translate","scale","rotate","perspective"],yE=["transform","translate","scale","rotate","perspective","filter"],wE=["paint","layout","strict","content"];function Ic(e){const t=Dc(),n=Tt(e)?kt(e):e;return gE.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||yE.some(r=>(n.willChange||"").includes(r))||wE.some(r=>(n.contain||"").includes(r))}function xE(e){let t=Fn(e);for(;jt(t)&&!uo(t);){if(Ic(t))return t;if(wl(t))return null;t=Fn(t)}return null}function Dc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const EE=new Set(["html","body","#document"]);function uo(e){return EE.has(go(e))}function kt(e){return Ge(e).getComputedStyle(e)}function xl(e){return Tt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Fn(e){if(go(e)==="html")return e;const t=e.assignedSlot||e.parentNode||If(e)&&e.host||zt(e);return If(t)?t.host:t}function xv(e){const t=Fn(e);return uo(t)?e.ownerDocument?e.ownerDocument.body:e.body:jt(t)&&Pi(t)?t:xv(t)}function di(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=xv(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Ge(o);if(i){const l=Su(s);return t.concat(s,s.visualViewport||[],Pi(o)?o:[],l&&n?di(l):[])}return t.concat(o,di(o,[],n))}function Su(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ev(e){const t=kt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=jt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=Ws(n)!==i||Ws(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function jc(e){return Tt(e)?e:e.contextElement}function Kr(e){const t=jc(e);if(!jt(t))return Dt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ev(t);let s=(i?Ws(n.width):n.width)/r,l=(i?Ws(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const SE=Dt(0);function Sv(e){const t=Ge(e);return!Dc()||!t.visualViewport?SE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function CE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ge(e)?!1:t}function fr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=jc(e);let s=Dt(1);t&&(r?Tt(r)&&(s=Kr(r)):s=Kr(e));const l=CE(i,n,r)?Sv(i):Dt(0);let a=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,c=o.width/s.x,d=o.height/s.y;if(i){const p=Ge(i),f=r&&Tt(r)?Ge(r):r;let x=p,g=Su(x);for(;g&&r&&f!==x;){const w=Kr(g),m=g.getBoundingClientRect(),h=kt(g),v=m.left+(g.clientLeft+parseFloat(h.paddingLeft))*w.x,E=m.top+(g.clientTop+parseFloat(h.paddingTop))*w.y;a*=w.x,u*=w.y,c*=w.x,d*=w.y,a+=v,u+=E,x=Ge(g),g=Su(x)}}return Ks({width:c,height:d,x:a,y:u})}function zc(e,t){const n=xl(e).scrollLeft;return t?t.left+n:fr(zt(e)).left+n}function Cv(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:zc(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function TE(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=zt(r),l=t?wl(t.floating):!1;if(r===s||l&&i)return n;let a={scrollLeft:0,scrollTop:0},u=Dt(1);const c=Dt(0),d=jt(r);if((d||!d&&!i)&&((go(r)!=="body"||Pi(s))&&(a=xl(r)),jt(r))){const f=fr(r);u=Kr(r),c.x=f.x+r.clientLeft,c.y=f.y+r.clientTop}const p=s&&!d&&!i?Cv(s,a,!0):Dt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x+p.x,y:n.y*u.y-a.scrollTop*u.y+c.y+p.y}}function kE(e){return Array.from(e.getClientRects())}function PE(e){const t=zt(e),n=xl(e),r=e.ownerDocument.body,o=Qe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Qe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+zc(e);const l=-n.scrollTop;return kt(r).direction==="rtl"&&(s+=Qe(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function bE(e,t){const n=Ge(e),r=zt(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;const u=Dc();(!u||u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l,y:a}}const RE=new Set(["absolute","fixed"]);function OE(e,t){const n=fr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=jt(e)?Kr(e):Dt(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:s,height:l,x:a,y:u}}function Df(e,t,n){let r;if(t==="viewport")r=bE(e,n);else if(t==="document")r=PE(zt(e));else if(Tt(t))r=OE(t,n);else{const o=Sv(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ks(r)}function Tv(e,t){const n=Fn(e);return n===t||!Tt(n)||uo(n)?!1:kt(n).position==="fixed"||Tv(n,t)}function _E(e,t){const n=t.get(e);if(n)return n;let r=di(e,[],!1).filter(l=>Tt(l)&&go(l)!=="body"),o=null;const i=kt(e).position==="fixed";let s=i?Fn(e):e;for(;Tt(s)&&!uo(s);){const l=kt(s),a=Ic(s);!a&&l.position==="fixed"&&(o=null),(i?!a&&!o:!a&&l.position==="static"&&!!o&&RE.has(o.position)||Pi(s)&&!a&&Tv(e,s))?r=r.filter(c=>c!==s):o=l,s=Fn(s)}return t.set(e,r),r}function AE(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?wl(t)?[]:_E(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,c)=>{const d=Df(t,c,o);return u.top=Qe(d.top,u.top),u.right=zn(d.right,u.right),u.bottom=zn(d.bottom,u.bottom),u.left=Qe(d.left,u.left),u},Df(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function NE(e){const{width:t,height:n}=Ev(e);return{width:t,height:n}}function LE(e,t,n){const r=jt(t),o=zt(t),i=n==="fixed",s=fr(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=Dt(0);function u(){a.x=zc(o)}if(r||!r&&!i)if((go(t)!=="body"||Pi(o))&&(l=xl(t)),r){const f=fr(t,!0,i,t);a.x=f.x+t.clientLeft,a.y=f.y+t.clientTop}else o&&u();i&&!r&&o&&u();const c=o&&!r&&!i?Cv(o,l):Dt(0),d=s.left+l.scrollLeft-a.x-c.x,p=s.top+l.scrollTop-a.y-c.y;return{x:d,y:p,width:s.width,height:s.height}}function fa(e){return kt(e).position==="static"}function jf(e,t){if(!jt(e)||kt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return zt(e)===n&&(n=n.ownerDocument.body),n}function kv(e,t){const n=Ge(e);if(wl(e))return n;if(!jt(e)){let o=Fn(e);for(;o&&!uo(o);){if(Tt(o)&&!fa(o))return o;o=Fn(o)}return n}let r=jf(e,t);for(;r&&mE(r)&&fa(r);)r=jf(r,t);return r&&uo(r)&&fa(r)&&!Ic(r)?n:r||xE(e)||n}const ME=async function(e){const t=this.getOffsetParent||kv,n=this.getDimensions,r=await n(e.floating);return{reference:LE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function IE(e){return kt(e).direction==="rtl"}const DE={convertOffsetParentRelativeRectToViewportRelativeRect:TE,getDocumentElement:zt,getClippingRect:AE,getOffsetParent:kv,getElementRects:ME,getClientRects:kE,getDimensions:NE,getScale:Kr,isElement:Tt,isRTL:IE};function Pv(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function jE(e,t){let n=null,r;const o=zt(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const u=e.getBoundingClientRect(),{left:c,top:d,width:p,height:f}=u;if(l||t(),!p||!f)return;const x=Ji(d),g=Ji(o.clientWidth-(c+p)),w=Ji(o.clientHeight-(d+f)),m=Ji(c),v={rootMargin:-x+"px "+-g+"px "+-w+"px "+-m+"px",threshold:Qe(0,zn(1,a))||1};let E=!0;function S(C){const T=C[0].intersectionRatio;if(T!==a){if(!E)return s();T?s(!1,T):r=setTimeout(()=>{s(!1,1e-7)},1e3)}T===1&&!Pv(u,e.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(S,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,v)}n.observe(e)}return s(!0),i}function zE(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=jc(e),c=o||i?[...u?di(u):[],...di(t)]:[];c.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const d=u&&l?jE(u,n):null;let p=-1,f=null;s&&(f=new ResizeObserver(m=>{let[h]=m;h&&h.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var v;(v=f)==null||v.observe(t)})),n()}),u&&!a&&f.observe(u),f.observe(t));let x,g=a?fr(e):null;a&&w();function w(){const m=fr(e);g&&!Pv(g,m)&&n(),g=m,x=requestAnimationFrame(w)}return n(),()=>{var m;c.forEach(h=>{o&&h.removeEventListener("scroll",n),i&&h.removeEventListener("resize",n)}),d==null||d(),(m=f)==null||m.disconnect(),f=null,a&&cancelAnimationFrame(x)}}const FE=uE,$E=cE,UE=sE,BE=fE,HE=lE,zf=iE,VE=dE,WE=(e,t,n)=>{const r=new Map,o={platform:DE,...n},i={...o.platform,_c:r};return oE(e,t,{...o,platform:i})};var QE=typeof document<"u",KE=function(){},ys=QE?y.useLayoutEffect:KE;function Ys(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ys(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Ys(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function bv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ff(e,t){const n=bv(e);return Math.round(t*n)/n}function pa(e){const t=y.useRef(e);return ys(()=>{t.current=e}),t}function YE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[c,d]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=y.useState(r);Ys(p,r)||f(r);const[x,g]=y.useState(null),[w,m]=y.useState(null),h=y.useCallback(P=>{P!==C.current&&(C.current=P,g(P))},[]),v=y.useCallback(P=>{P!==T.current&&(T.current=P,m(P))},[]),E=i||x,S=s||w,C=y.useRef(null),T=y.useRef(null),_=y.useRef(c),L=a!=null,N=pa(a),F=pa(o),j=pa(u),Q=y.useCallback(()=>{if(!C.current||!T.current)return;const P={placement:t,strategy:n,middleware:p};F.current&&(P.platform=F.current),WE(C.current,T.current,P).then(O=>{const I={...O,isPositioned:j.current!==!1};M.current&&!Ys(_.current,I)&&(_.current=I,Ti.flushSync(()=>{d(I)}))})},[p,t,n,F,j]);ys(()=>{u===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,d(P=>({...P,isPositioned:!1})))},[u]);const M=y.useRef(!1);ys(()=>(M.current=!0,()=>{M.current=!1}),[]),ys(()=>{if(E&&(C.current=E),S&&(T.current=S),E&&S){if(N.current)return N.current(E,S,Q);Q()}},[E,S,Q,N,L]);const G=y.useMemo(()=>({reference:C,floating:T,setReference:h,setFloating:v}),[h,v]),$=y.useMemo(()=>({reference:E,floating:S}),[E,S]),H=y.useMemo(()=>{const P={position:n,left:0,top:0};if(!$.floating)return P;const O=Ff($.floating,c.x),I=Ff($.floating,c.y);return l?{...P,transform:"translate("+O+"px, "+I+"px)",...bv($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:I}},[n,l,$.floating,c.x,c.y]);return y.useMemo(()=>({...c,update:Q,refs:G,elements:$,floatingStyles:H}),[c,Q,G,$,H])}const GE=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?zf({element:r.current,padding:o}).fn(n):{}:r?zf({element:r,padding:o}).fn(n):{}}}},qE=(e,t)=>({...FE(e),options:[e,t]}),XE=(e,t)=>({...$E(e),options:[e,t]}),ZE=(e,t)=>({...VE(e),options:[e,t]}),JE=(e,t)=>({...UE(e),options:[e,t]}),eS=(e,t)=>({...BE(e),options:[e,t]}),tS=(e,t)=>({...HE(e),options:[e,t]}),nS=(e,t)=>({...GE(e),options:[e,t]});var rS="Arrow",Rv=y.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return b.jsx(Ve.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});Rv.displayName=rS;var oS=Rv;function iS(e){const[t,n]=y.useState(void 0);return jn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,l;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Fc="Popper",[Ov,_v]=ml(Fc),[sS,Av]=Ov(Fc),Nv=e=>{const{__scopePopper:t,children:n}=e,[r,o]=y.useState(null);return b.jsx(sS,{scope:t,anchor:r,onAnchorChange:o,children:n})};Nv.displayName=Fc;var Lv="PopperAnchor",Mv=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Av(Lv,n),s=y.useRef(null),l=Ct(t,s);return y.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:b.jsx(Ve.div,{...o,ref:l})});Mv.displayName=Lv;var $c="PopperContent",[lS,aS]=Ov($c),Iv=y.forwardRef((e,t)=>{var J,yr,nn,Hn,rn,wr;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:p=!1,updatePositionStrategy:f="optimized",onPlaced:x,...g}=e,w=Av($c,n),[m,h]=y.useState(null),v=Ct(t,on=>h(on)),[E,S]=y.useState(null),C=iS(E),T=(C==null?void 0:C.width)??0,_=(C==null?void 0:C.height)??0,L=r+(i!=="center"?"-"+i:""),N=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},F=Array.isArray(u)?u:[u],j=F.length>0,Q={padding:N,boundary:F.filter(cS),altBoundary:j},{refs:M,floatingStyles:G,placement:$,isPositioned:H,middlewareData:P}=YE({strategy:"fixed",placement:L,whileElementsMounted:(...on)=>zE(...on,{animationFrame:f==="always"}),elements:{reference:w.anchor},middleware:[qE({mainAxis:o+_,alignmentAxis:s}),a&&XE({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?ZE():void 0,...Q}),a&&JE({...Q}),eS({...Q,apply:({elements:on,rects:Ri,availableWidth:bl,availableHeight:Oi})=>{const{width:Rl,height:wo}=Ri.reference,xr=on.floating.style;xr.setProperty("--radix-popper-available-width",`${bl}px`),xr.setProperty("--radix-popper-available-height",`${Oi}px`),xr.setProperty("--radix-popper-anchor-width",`${Rl}px`),xr.setProperty("--radix-popper-anchor-height",`${wo}px`)}}),E&&nS({element:E,padding:l}),dS({arrowWidth:T,arrowHeight:_}),p&&tS({strategy:"referenceHidden",...Q})]}),[O,I]=zv($),V=Dn(x);jn(()=>{H&&(V==null||V())},[H,V]);const z=(J=P.arrow)==null?void 0:J.x,K=(yr=P.arrow)==null?void 0:yr.y,q=((nn=P.arrow)==null?void 0:nn.centerOffset)!==0,[he,ke]=y.useState();return jn(()=>{m&&ke(window.getComputedStyle(m).zIndex)},[m]),b.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:H?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(Hn=P.transformOrigin)==null?void 0:Hn.x,(rn=P.transformOrigin)==null?void 0:rn.y].join(" "),...((wr=P.hide)==null?void 0:wr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(lS,{scope:n,placedSide:O,onArrowChange:S,arrowX:z,arrowY:K,shouldHideArrow:q,children:b.jsx(Ve.div,{"data-side":O,"data-align":I,...g,ref:v,style:{...g.style,animation:H?void 0:"none"}})})})});Iv.displayName=$c;var Dv="PopperArrow",uS={top:"bottom",right:"left",bottom:"top",left:"right"},jv=y.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=aS(Dv,r),s=uS[i.placedSide];return b.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:b.jsx(oS,{...o,ref:n,style:{...o.style,display:"block"}})})});jv.displayName=Dv;function cS(e){return e!==null}var dS=e=>({name:"transformOrigin",options:e,fn(t){var w,m,h;const{placement:n,rects:r,middlewareData:o}=t,s=((w=o.arrow)==null?void 0:w.centerOffset)!==0,l=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[u,c]=zv(n),d={start:"0%",center:"50%",end:"100%"}[c],p=(((m=o.arrow)==null?void 0:m.x)??0)+l/2,f=(((h=o.arrow)==null?void 0:h.y)??0)+a/2;let x="",g="";return u==="bottom"?(x=s?d:`${p}px`,g=`${-a}px`):u==="top"?(x=s?d:`${p}px`,g=`${r.floating.height+a}px`):u==="right"?(x=`${-a}px`,g=s?d:`${f}px`):u==="left"&&(x=`${r.floating.width+a}px`,g=s?d:`${f}px`),{data:{x,y:g}}}});function zv(e){const[t,n="center"]=e.split("-");return[t,n]}var TT=Nv,fS=Mv,pS=Iv,hS=jv,[El,kT]=ml("Tooltip",[_v]),Uc=_v(),Fv="TooltipProvider",mS=700,$f="tooltip.open",[vS,$v]=El(Fv),Uv=e=>{const{__scopeTooltip:t,delayDuration:n=mS,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=y.useRef(!0),l=y.useRef(!1),a=y.useRef(0);return y.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),b.jsx(vS,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:y.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:y.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:i})};Uv.displayName=Fv;var Bv="Tooltip",[PT,Sl]=El(Bv),Cu="TooltipTrigger",gS=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Sl(Cu,n),i=$v(Cu,n),s=Uc(n),l=y.useRef(null),a=Ct(t,l,o.onTriggerChange),u=y.useRef(!1),c=y.useRef(!1),d=y.useCallback(()=>u.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),b.jsx(fS,{asChild:!0,...s,children:b.jsx(Ve.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:ye(e.onPointerMove,p=>{p.pointerType!=="touch"&&!c.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:ye(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:ye(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:ye(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ye(e.onBlur,o.onClose),onClick:ye(e.onClick,o.onClose)})})});gS.displayName=Cu;var yS="TooltipPortal",[bT,wS]=El(yS,{forceMount:void 0}),co="TooltipContent",Hv=y.forwardRef((e,t)=>{const n=wS(co,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=Sl(co,e.__scopeTooltip);return b.jsx(kc,{present:r||s.open,children:s.disableHoverableContent?b.jsx(Vv,{side:o,...i,ref:t}):b.jsx(xS,{side:o,...i,ref:t})})}),xS=y.forwardRef((e,t)=>{const n=Sl(co,e.__scopeTooltip),r=$v(co,e.__scopeTooltip),o=y.useRef(null),i=Ct(t,o),[s,l]=y.useState(null),{trigger:a,onClose:u}=n,c=o.current,{onPointerInTransitChange:d}=r,p=y.useCallback(()=>{l(null),d(!1)},[d]),f=y.useCallback((x,g)=>{const w=x.currentTarget,m={x:x.clientX,y:x.clientY},h=kS(m,w.getBoundingClientRect()),v=PS(m,h),E=bS(g.getBoundingClientRect()),S=OS([...v,...E]);l(S),d(!0)},[d]);return y.useEffect(()=>()=>p(),[p]),y.useEffect(()=>{if(a&&c){const x=w=>f(w,c),g=w=>f(w,a);return a.addEventListener("pointerleave",x),c.addEventListener("pointerleave",g),()=>{a.removeEventListener("pointerleave",x),c.removeEventListener("pointerleave",g)}}},[a,c,f,p]),y.useEffect(()=>{if(s){const x=g=>{const w=g.target,m={x:g.clientX,y:g.clientY},h=(a==null?void 0:a.contains(w))||(c==null?void 0:c.contains(w)),v=!RS(m,s);h?p():v&&(p(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[a,c,s,u,p]),b.jsx(Vv,{...e,ref:i})}),[ES,SS]=El(Bv,{isInside:!1}),CS=Lw("TooltipContent"),Vv=y.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,a=Sl(co,n),u=Uc(n),{onClose:c}=a;return y.useEffect(()=>(document.addEventListener($f,c),()=>document.removeEventListener($f,c)),[c]),y.useEffect(()=>{if(a.trigger){const d=p=>{const f=p.target;f!=null&&f.contains(a.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[a.trigger,c]),b.jsx(Tc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:b.jsxs(pS,{"data-state":a.stateAttribute,...u,...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:[b.jsx(CS,{children:r}),b.jsx(ES,{scope:n,isInside:!0,children:b.jsx(o1,{id:a.contentId,role:"tooltip",children:o||r})})]})})});Hv.displayName=co;var Wv="TooltipArrow",TS=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Uc(n);return SS(Wv,n).isInside?null:b.jsx(hS,{...o,...r,ref:t})});TS.displayName=Wv;function kS(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function PS(e,t,n=5){const 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});break}return r}function bS(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function RS(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=p>r&&n<(d-u)*(r-c)/(p-c)+u&&(o=!o)}return o}function OS(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),_S(t)}function _S(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var AS=Uv,Qv=Hv;const NS=AS,LS=y.forwardRef(({className:e,sideOffset:t=4,...n},r)=>b.jsx(Qv,{ref:r,sideOffset:t,className:mr("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));LS.displayName=Qv.displayName;var Cl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Tl=typeof window>"u"||"Deno"in globalThis;function ht(){}function MS(e,t){return typeof e=="function"?e(t):e}function IS(e){return typeof e=="number"&&e>=0&&e!==1/0}function DS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Tu(e,t){return typeof e=="function"?e(t):e}function jS(e,t){return typeof e=="function"?e(t):e}function Uf(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==Bc(s,t.options))return!1}else if(!pi(t.queryKey,s))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||i&&!i(t))}function Bf(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(fi(t.options.mutationKey)!==fi(i))return!1}else if(!pi(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Bc(e,t){return((t==null?void 0:t.queryKeyHashFn)||fi)(e)}function fi(e){return JSON.stringify(e,(t,n)=>ku(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function pi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>pi(e[n],t[n])):!1}function Kv(e,t){if(e===t)return e;const n=Hf(e)&&Hf(t);if(n||ku(e)&&ku(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,l=n?[]:{},a=new Set(r);let u=0;for(let c=0;c{setTimeout(t,e)})}function FS(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Kv(e,t):t}function $S(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function US(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Hc=Symbol();function Yv(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Hc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Jn,gn,Yr,np,BS=(np=class extends Cl{constructor(){super();Z(this,Jn);Z(this,gn);Z(this,Yr);B(this,Yr,t=>{if(!Tl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){k(this,gn)||this.setEventListener(k(this,Yr))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,gn))==null||t.call(this),B(this,gn,void 0))}setEventListener(t){var n;B(this,Yr,t),(n=k(this,gn))==null||n.call(this),B(this,gn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){k(this,Jn)!==t&&(B(this,Jn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof k(this,Jn)=="boolean"?k(this,Jn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Jn=new WeakMap,gn=new WeakMap,Yr=new WeakMap,np),Gv=new BS,Gr,yn,qr,rp,HS=(rp=class extends Cl{constructor(){super();Z(this,Gr,!0);Z(this,yn);Z(this,qr);B(this,qr,t=>{if(!Tl&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){k(this,yn)||this.setEventListener(k(this,qr))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,yn))==null||t.call(this),B(this,yn,void 0))}setEventListener(t){var n;B(this,qr,t),(n=k(this,yn))==null||n.call(this),B(this,yn,t(this.setOnline.bind(this)))}setOnline(t){k(this,Gr)!==t&&(B(this,Gr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return k(this,Gr)}},Gr=new WeakMap,yn=new WeakMap,qr=new WeakMap,rp),Gs=new HS;function VS(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function WS(e){return Math.min(1e3*2**e,3e4)}function qv(e){return(e??"online")==="online"?Gs.isOnline():!0}var Xv=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function ha(e){return e instanceof Xv}function Zv(e){let t=!1,n=0,r=!1,o;const i=VS(),s=g=>{var w;r||(p(new Xv(g)),(w=e.abort)==null||w.call(e))},l=()=>{t=!0},a=()=>{t=!1},u=()=>Gv.isFocused()&&(e.networkMode==="always"||Gs.isOnline())&&e.canRun(),c=()=>qv(e.networkMode)&&e.canRun(),d=g=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,g),o==null||o(),i.resolve(g))},p=g=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,g),o==null||o(),i.reject(g))},f=()=>new Promise(g=>{var w;o=m=>{(r||u())&&g(m)},(w=e.onPause)==null||w.call(e)}).then(()=>{var g;o=void 0,r||(g=e.onContinue)==null||g.call(e)}),x=()=>{if(r)return;let g;const w=n===0?e.initialPromise:void 0;try{g=w??e.fn()}catch(m){g=Promise.reject(m)}Promise.resolve(g).then(d).catch(m=>{var C;if(r)return;const h=e.retry??(Tl?0:3),v=e.retryDelay??WS,E=typeof v=="function"?v(n,m):v,S=h===!0||typeof h=="number"&&nu()?void 0:f()).then(()=>{t?p(m):x()})})};return{promise:i,cancel:s,continue:()=>(o==null||o(),i),cancelRetry:l,continueRetry:a,canStart:c,start:()=>(c()?x():f().then(x),i)}}var QS=e=>setTimeout(e,0);function KS(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=QS;const i=l=>{t?e.push(l):o(()=>{n(l)})},s=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||s()}return a},batchCalls:l=>(...a)=>{i(()=>{l(...a)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var Me=KS(),er,op,Jv=(op=class{constructor(){Z(this,er)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),IS(this.gcTime)&&B(this,er,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Tl?1/0:5*60*1e3))}clearGcTimeout(){k(this,er)&&(clearTimeout(k(this,er)),B(this,er,void 0))}},er=new WeakMap,op),Xr,tr,tt,nr,Oe,vi,rr,mt,Ut,ip,YS=(ip=class extends Jv{constructor(t){super();Z(this,mt);Z(this,Xr);Z(this,tr);Z(this,tt);Z(this,nr);Z(this,Oe);Z(this,vi);Z(this,rr);B(this,rr,!1),B(this,vi,t.defaultOptions),this.setOptions(t.options),this.observers=[],B(this,nr,t.client),B(this,tt,k(this,nr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,B(this,Xr,qS(this.options)),this.state=t.state??k(this,Xr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=k(this,Oe))==null?void 0:t.promise}setOptions(t){this.options={...k(this,vi),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,tt).remove(this)}setData(t,n){const r=FS(this.state.data,t,this.options);return Pe(this,mt,Ut).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Pe(this,mt,Ut).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=k(this,Oe))==null?void 0:r.promise;return(o=k(this,Oe))==null||o.cancel(t),n?n.then(ht).catch(ht):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,Xr))}isActive(){return this.observers.some(t=>jS(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Hc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Tu(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!DS(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,Oe))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,Oe))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),k(this,tt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(k(this,Oe)&&(k(this,rr)?k(this,Oe).cancel({revert:!0}):k(this,Oe).cancelRetry()),this.scheduleGc()),k(this,tt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Pe(this,mt,Ut).call(this,{type:"invalidate"})}fetch(t,n){var u,c,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(k(this,Oe))return k(this,Oe).continueRetry(),k(this,Oe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(f=>f.options.queryFn);p&&this.setOptions(p.options)}const r=new AbortController,o=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(B(this,rr,!0),r.signal)})},i=()=>{const p=Yv(this.options,n),x=(()=>{const g={client:k(this,nr),queryKey:this.queryKey,meta:this.meta};return o(g),g})();return B(this,rr,!1),this.options.persister?this.options.persister(p,x,this):p(x)},l=(()=>{const p={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:k(this,nr),state:this.state,fetchFn:i};return o(p),p})();(u=this.options.behavior)==null||u.onFetch(l,this),B(this,tr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=l.fetchOptions)==null?void 0:c.meta))&&Pe(this,mt,Ut).call(this,{type:"fetch",meta:(d=l.fetchOptions)==null?void 0:d.meta});const a=p=>{var f,x,g,w;ha(p)&&p.silent||Pe(this,mt,Ut).call(this,{type:"error",error:p}),ha(p)||((x=(f=k(this,tt).config).onError)==null||x.call(f,p,this),(w=(g=k(this,tt).config).onSettled)==null||w.call(g,this.state.data,p,this)),this.scheduleGc()};return B(this,Oe,Zv({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var f,x,g,w;if(p===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(m){a(m);return}(x=(f=k(this,tt).config).onSuccess)==null||x.call(f,p,this),(w=(g=k(this,tt).config).onSettled)==null||w.call(g,p,this.state.error,this),this.scheduleGc()},onError:a,onFail:(p,f)=>{Pe(this,mt,Ut).call(this,{type:"failed",failureCount:p,error:f})},onPause:()=>{Pe(this,mt,Ut).call(this,{type:"pause"})},onContinue:()=>{Pe(this,mt,Ut).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),k(this,Oe).start()}},Xr=new WeakMap,tr=new WeakMap,tt=new WeakMap,nr=new WeakMap,Oe=new WeakMap,vi=new WeakMap,rr=new WeakMap,mt=new WeakSet,Ut=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...GS(r.data,this.options),fetchMeta:t.meta??null};case"success":return B(this,tr,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return ha(o)&&o.revert&&k(this,tr)?{...k(this,tr),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Me.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),k(this,tt).notify({query:this,type:"updated",action:t})})},ip);function GS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:qv(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function qS(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Ot,sp,XS=(sp=class extends Cl{constructor(t={}){super();Z(this,Ot);this.config=t,B(this,Ot,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??Bc(o,n);let s=this.get(i);return s||(s=new YS({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){k(this,Ot).has(t.queryHash)||(k(this,Ot).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=k(this,Ot).get(t.queryHash);n&&(t.destroy(),n===t&&k(this,Ot).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Me.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,Ot).get(t)}getAll(){return[...k(this,Ot).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Uf(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Uf(t,r)):n}notify(t){Me.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Me.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Me.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ot=new WeakMap,sp),_t,Ne,or,At,fn,lp,ZS=(lp=class extends Jv{constructor(t){super();Z(this,At);Z(this,_t);Z(this,Ne);Z(this,or);this.mutationId=t.mutationId,B(this,Ne,t.mutationCache),B(this,_t,[]),this.state=t.state||JS(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){k(this,_t).includes(t)||(k(this,_t).push(t),this.clearGcTimeout(),k(this,Ne).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){B(this,_t,k(this,_t).filter(n=>n!==t)),this.scheduleGc(),k(this,Ne).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,_t).length||(this.state.status==="pending"?this.scheduleGc():k(this,Ne).remove(this))}continue(){var t;return((t=k(this,or))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,l,a,u,c,d,p,f,x,g,w,m,h,v,E,S,C,T,_;const n=()=>{Pe(this,At,fn).call(this,{type:"continue"})};B(this,or,Zv({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(L,N)=>{Pe(this,At,fn).call(this,{type:"failed",failureCount:L,error:N})},onPause:()=>{Pe(this,At,fn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,Ne).canRun(this)}));const r=this.state.status==="pending",o=!k(this,or).canStart();try{if(r)n();else{Pe(this,At,fn).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=k(this,Ne).config).onMutate)==null?void 0:s.call(i,t,this));const N=await((a=(l=this.options).onMutate)==null?void 0:a.call(l,t));N!==this.state.context&&Pe(this,At,fn).call(this,{type:"pending",context:N,variables:t,isPaused:o})}const L=await k(this,or).start();return await((c=(u=k(this,Ne).config).onSuccess)==null?void 0:c.call(u,L,t,this.state.context,this)),await((p=(d=this.options).onSuccess)==null?void 0:p.call(d,L,t,this.state.context)),await((x=(f=k(this,Ne).config).onSettled)==null?void 0:x.call(f,L,null,this.state.variables,this.state.context,this)),await((w=(g=this.options).onSettled)==null?void 0:w.call(g,L,null,t,this.state.context)),Pe(this,At,fn).call(this,{type:"success",data:L}),L}catch(L){try{throw await((h=(m=k(this,Ne).config).onError)==null?void 0:h.call(m,L,t,this.state.context,this)),await((E=(v=this.options).onError)==null?void 0:E.call(v,L,t,this.state.context)),await((C=(S=k(this,Ne).config).onSettled)==null?void 0:C.call(S,void 0,L,this.state.variables,this.state.context,this)),await((_=(T=this.options).onSettled)==null?void 0:_.call(T,void 0,L,t,this.state.context)),L}finally{Pe(this,At,fn).call(this,{type:"error",error:L})}}finally{k(this,Ne).runNext(this)}}},_t=new WeakMap,Ne=new WeakMap,or=new WeakMap,At=new WeakSet,fn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Me.batch(()=>{k(this,_t).forEach(r=>{r.onMutationUpdate(t)}),k(this,Ne).notify({mutation:this,type:"updated",action:t})})},lp);function JS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Vt,vt,gi,ap,eC=(ap=class extends Cl{constructor(t={}){super();Z(this,Vt);Z(this,vt);Z(this,gi);this.config=t,B(this,Vt,new Set),B(this,vt,new Map),B(this,gi,0)}build(t,n,r){const o=new ZS({mutationCache:this,mutationId:++Ai(this,gi)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){k(this,Vt).add(t);const n=es(t);if(typeof n=="string"){const r=k(this,vt).get(n);r?r.push(t):k(this,vt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(k(this,Vt).delete(t)){const n=es(t);if(typeof n=="string"){const r=k(this,vt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&k(this,vt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=es(t);if(typeof n=="string"){const r=k(this,vt).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=es(t);if(typeof n=="string"){const o=(r=k(this,vt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Me.batch(()=>{k(this,Vt).forEach(t=>{this.notify({type:"removed",mutation:t})}),k(this,Vt).clear(),k(this,vt).clear()})}getAll(){return Array.from(k(this,Vt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Bf(n,r))}findAll(t={}){return this.getAll().filter(n=>Bf(t,n))}notify(t){Me.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Me.batch(()=>Promise.all(t.map(n=>n.continue().catch(ht))))}},Vt=new WeakMap,vt=new WeakMap,gi=new WeakMap,ap);function es(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Wf(e){return{onFetch:(t,n)=>{var c,d,p,f,x;const r=t.options,o=(p=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:p.direction,i=((f=t.state.data)==null?void 0:f.pages)||[],s=((x=t.state.data)==null?void 0:x.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const u=async()=>{let g=!1;const w=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},m=Yv(t.options,t.fetchOptions),h=async(v,E,S)=>{if(g)return Promise.reject();if(E==null&&v.pages.length)return Promise.resolve(v);const T=(()=>{const F={client:t.client,queryKey:t.queryKey,pageParam:E,direction:S?"backward":"forward",meta:t.options.meta};return w(F),F})(),_=await m(T),{maxPages:L}=t.options,N=S?US:$S;return{pages:N(v.pages,_,L),pageParams:N(v.pageParams,E,L)}};if(o&&i.length){const v=o==="backward",E=v?tC:Qf,S={pages:i,pageParams:s},C=E(r,S);l=await h(S,C,v)}else{const v=e??i.length;do{const E=a===0?s[0]??r.initialPageParam:Qf(r,l);if(a>0&&E==null)break;l=await h(l,E),a++}while(a{var g,w;return(w=(g=t.options).persister)==null?void 0:w.call(g,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Qf(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function tC(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var de,wn,xn,Zr,Jr,En,eo,to,up,nC=(up=class{constructor(e={}){Z(this,de);Z(this,wn);Z(this,xn);Z(this,Zr);Z(this,Jr);Z(this,En);Z(this,eo);Z(this,to);B(this,de,e.queryCache||new XS),B(this,wn,e.mutationCache||new eC),B(this,xn,e.defaultOptions||{}),B(this,Zr,new Map),B(this,Jr,new Map),B(this,En,0)}mount(){Ai(this,En)._++,k(this,En)===1&&(B(this,eo,Gv.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,de).onFocus())})),B(this,to,Gs.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,de).onOnline())})))}unmount(){var e,t;Ai(this,En)._--,k(this,En)===0&&((e=k(this,eo))==null||e.call(this),B(this,eo,void 0),(t=k(this,to))==null||t.call(this),B(this,to,void 0))}isFetching(e){return k(this,de).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return k(this,wn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,de).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=k(this,de).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Tu(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return k(this,de).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=k(this,de).get(r.queryHash),i=o==null?void 0:o.state.data,s=MS(t,i);if(s!==void 0)return k(this,de).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Me.batch(()=>k(this,de).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,de).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=k(this,de);Me.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=k(this,de);return Me.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Me.batch(()=>k(this,de).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(ht).catch(ht)}invalidateQueries(e,t={}){return Me.batch(()=>(k(this,de).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Me.batch(()=>k(this,de).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(ht)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(ht)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=k(this,de).build(this,t);return n.isStaleByTime(Tu(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ht).catch(ht)}fetchInfiniteQuery(e){return e.behavior=Wf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ht).catch(ht)}ensureInfiniteQueryData(e){return e.behavior=Wf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Gs.isOnline()?k(this,wn).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,de)}getMutationCache(){return k(this,wn)}getDefaultOptions(){return k(this,xn)}setDefaultOptions(e){B(this,xn,e)}setQueryDefaults(e,t){k(this,Zr).set(fi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...k(this,Zr).values()],n={};return t.forEach(r=>{pi(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){k(this,Jr).set(fi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...k(this,Jr).values()],n={};return t.forEach(r=>{pi(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...k(this,xn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Bc(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Hc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...k(this,xn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){k(this,de).clear(),k(this,wn).clear()}},de=new WeakMap,wn=new WeakMap,xn=new WeakMap,Zr=new WeakMap,Jr=new WeakMap,En=new WeakMap,eo=new WeakMap,to=new WeakMap,up),rC=y.createContext(void 0),oC=({client:e,children:t})=>(y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),b.jsx(rC.Provider,{value:e,children:t}));/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function hi(){return hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function eg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function sC(){return Math.random().toString(36).substr(2,8)}function Yf(e,t){return{usr:e.state,key:e.key,idx:t}}function Pu(e,t,n,r){return n===void 0&&(n=null),hi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?yo(t):t,{state:n,key:t&&t.key||r||sC()})}function qs(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function yo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function lC(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,l=Tn.Pop,a=null,u=c();u==null&&(u=0,s.replaceState(hi({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){l=Tn.Pop;let w=c(),m=w==null?null:w-u;u=w,a&&a({action:l,location:g.location,delta:m})}function p(w,m){l=Tn.Push;let h=Pu(g.location,w,m);u=c()+1;let v=Yf(h,u),E=g.createHref(h);try{s.pushState(v,"",E)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(E)}i&&a&&a({action:l,location:g.location,delta:1})}function f(w,m){l=Tn.Replace;let h=Pu(g.location,w,m);u=c();let v=Yf(h,u),E=g.createHref(h);s.replaceState(v,"",E),i&&a&&a({action:l,location:g.location,delta:0})}function x(w){let m=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof w=="string"?w:qs(w);return h=h.replace(/ $/,"%20"),ve(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let g={get action(){return l},get location(){return e(o,s)},listen(w){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(Kf,d),a=w,()=>{o.removeEventListener(Kf,d),a=null}},createHref(w){return t(o,w)},createURL:x,encodeLocation(w){let m=x(w);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:p,replace:f,go(w){return s.go(w)}};return g}var Gf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Gf||(Gf={}));function aC(e,t,n){return n===void 0&&(n="/"),uC(e,t,n,!1)}function uC(e,t,n,r){let o=typeof t=="string"?yo(t):t,i=Vc(o.pathname||"/",n);if(i==null)return null;let s=tg(e);cC(s);let l=null;for(let a=0;l==null&&a{let a={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};a.relativePath.startsWith("/")&&(ve(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=Ln([r,a.relativePath]),c=n.concat(a);i.children&&i.children.length>0&&(ve(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),tg(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:gC(u,i.index),routesMeta:c})};return e.forEach((i,s)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,s);else for(let a of ng(i.path))o(i,s,a)}),t}function ng(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=ng(r.join("/")),l=[];return l.push(...s.map(a=>a===""?i:[i,a].join("/"))),o&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function cC(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:yC(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const dC=/^:[\w-]+$/,fC=3,pC=2,hC=1,mC=10,vC=-2,qf=e=>e==="*";function gC(e,t){let n=e.split("/"),r=n.length;return n.some(qf)&&(r+=vC),t&&(r+=pC),n.filter(o=>!qf(o)).reduce((o,i)=>o+(dC.test(i)?fC:i===""?hC:mC),r)}function yC(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function wC(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let l=0;l{let{paramName:p,isOptional:f}=c;if(p==="*"){let g=l[d]||"";s=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const x=l[d];return f&&!x?u[p]=void 0:u[p]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function xC(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),eg(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function EC(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return eg(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Vc(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function SC(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?yo(e):e;return{pathname:n?n.startsWith("/")?n:CC(n,t):t,search:PC(r),hash:bC(o)}}function CC(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function ma(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function TC(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function rg(e,t){let n=TC(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function og(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=yo(e):(o=hi({},e),ve(!o.pathname||!o.pathname.includes("?"),ma("?","pathname","search",o)),ve(!o.pathname||!o.pathname.includes("#"),ma("#","pathname","hash",o)),ve(!o.search||!o.search.includes("#"),ma("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,l;if(s==null)l=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),d-=1;o.pathname=p.join("/")}l=d>=0?t[d]:"/"}let a=SC(o,l),u=s&&s!=="/"&&s.endsWith("/"),c=(i||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||c)&&(a.pathname+="/"),a}const Ln=e=>e.join("/").replace(/\/\/+/g,"/"),kC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),PC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function RC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ig=["post","put","patch","delete"];new Set(ig);const OC=["get",...ig];new Set(OC);/** * React Router v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function mi(){return mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),y.useCallback(function(u,c){if(c===void 0&&(c={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let d=og(u,JSON.parse(s),i,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Ln([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,s,i,e])}function ag(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=y.useContext(vr),{matches:o}=y.useContext(gr),{pathname:i}=Pl(),s=JSON.stringify(rg(o,r.v7_relativeSplatPath));return y.useMemo(()=>og(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function MC(e,t){return IC(e,t)}function IC(e,t,n,r){bi()||ve(!1);let{navigator:o}=y.useContext(vr),{matches:i}=y.useContext(gr),s=i[i.length-1],l=s?s.params:{};s&&s.pathname;let a=s?s.pathnameBase:"/";s&&s.route;let u=Pl(),c;if(t){var d;let w=typeof t=="string"?yo(t):t;a==="/"||(d=w.pathname)!=null&&d.startsWith(a)||ve(!1),c=w}else c=u;let p=c.pathname||"/",f=p;if(a!=="/"){let w=a.replace(/^\//,"").split("/");f="/"+p.replace(/^\//,"").split("/").slice(w.length).join("/")}let x=aC(e,{pathname:f}),g=$C(x&&x.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:Ln([a,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:Ln([a,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&g?y.createElement(kl.Provider,{value:{location:mi({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Tn.Pop}},g):g}function DC(){let e=VC(),t=RC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:o},n):null,null)}const jC=y.createElement(DC,null);class zC extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(gr.Provider,{value:this.props.routeContext},y.createElement(sg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function FC(e){let{routeContext:t,match:n,children:r}=e,o=y.useContext(Wc);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(gr.Provider,{value:t},r)}function $C(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let c=s.findIndex(d=>d.route.id&&(l==null?void 0:l[d.route.id])!==void 0);c>=0||ve(!1),s=s.slice(0,Math.min(s.length,c+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,d,p)=>{let f,x=!1,g=null,w=null;n&&(f=l&&d.route.id?l[d.route.id]:void 0,g=d.route.errorElement||jC,a&&(u<0&&p===0?(x=!0,w=null):u===p&&(x=!0,w=d.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,p+1)),h=()=>{let v;return f?v=g:x?v=w:d.route.Component?v=y.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=c,y.createElement(FC,{match:d,routeContext:{outlet:c,matches:m,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?y.createElement(zC,{location:n.location,revalidation:n.revalidation,component:g,error:f,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var ug=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ug||{}),Xs=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Xs||{});function UC(e){let t=y.useContext(Wc);return t||ve(!1),t}function BC(e){let t=y.useContext(_C);return t||ve(!1),t}function HC(e){let t=y.useContext(gr);return t||ve(!1),t}function cg(e){let t=HC(),n=t.matches[t.matches.length-1];return n.route.id||ve(!1),n.route.id}function VC(){var e;let t=y.useContext(sg),n=BC(Xs.UseRouteError),r=cg(Xs.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function WC(){let{router:e}=UC(ug.UseNavigateStable),t=cg(Xs.UseNavigateStable),n=y.useRef(!1);return lg(()=>{n.current=!0}),y.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,mi({fromRouteId:t},i)))},[e,t])}function QC(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function bt(e){ve(!1)}function KC(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Tn.Pop,navigator:i,static:s=!1,future:l}=e;bi()&&ve(!1);let a=t.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:a,navigator:i,static:s,future:mi({v7_relativeSplatPath:!1},l)}),[a,l,i,s]);typeof r=="string"&&(r=yo(r));let{pathname:c="/",search:d="",hash:p="",state:f=null,key:x="default"}=r,g=y.useMemo(()=>{let w=Vc(c,a);return w==null?null:{location:{pathname:w,search:d,hash:p,state:f,key:x},navigationType:o}},[a,c,d,p,f,x,o]);return g==null?null:y.createElement(vr.Provider,{value:u},y.createElement(kl.Provider,{children:n,value:g}))}function YC(e){let{children:t,location:n}=e;return MC(bu(t),n)}new Promise(()=>{});function bu(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,o)=>{if(!y.isValidElement(r))return;let i=[...t,o];if(r.type===y.Fragment){n.push.apply(n,bu(r.props.children,i));return}r.type!==bt&&ve(!1),!r.props.index||!r.props.children||ve(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=bu(r.props.children,i)),n.push(s)}),n}/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Ru(){return Ru=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function qC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function XC(e,t){return e.button===0&&(!t||t==="_self")&&!qC(e)}const ZC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],JC="6";try{window.__reactRouterVersion=JC}catch{}const eT="startTransition",Zf=xp[eT];function tT(e){let{basename:t,children:n,future:r,window:o}=e,i=y.useRef();i.current==null&&(i.current=iC({window:o,v5Compat:!0}));let s=i.current,[l,a]=y.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=y.useCallback(d=>{u&&Zf?Zf(()=>a(d)):a(d)},[a,u]);return y.useLayoutEffect(()=>s.listen(c),[s,c]),y.useEffect(()=>QC(r),[r]),y.createElement(KC,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}const nT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",rT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,RT=y.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:l,target:a,to:u,preventScrollReset:c,viewTransition:d}=t,p=GC(t,ZC),{basename:f}=y.useContext(vr),x,g=!1;if(typeof u=="string"&&rT.test(u)&&(x=u,nT))try{let v=new URL(window.location.href),E=u.startsWith("//")?new URL(v.protocol+u):new URL(u),S=Vc(E.pathname,f);E.origin===v.origin&&S!=null?u=S+E.search+E.hash:g=!0}catch{}let w=AC(u,{relative:o}),m=oT(u,{replace:s,state:l,target:a,preventScrollReset:c,relative:o,viewTransition:d});function h(v){r&&r(v),v.defaultPrevented||m(v)}return y.createElement("a",Ru({},p,{href:x||w,onClick:g||i?r:h,ref:n,target:a}))});var Jf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Jf||(Jf={}));var ep;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ep||(ep={}));function oT(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:l}=t===void 0?{}:t,a=NC(),u=Pl(),c=ag(e,{relative:s});return y.useCallback(d=>{if(XC(d,n)){d.preventDefault();let p=r!==void 0?r:qs(u)===qs(c);a(e,{replace:p,state:o,preventScrollReset:i,relative:s,viewTransition:l})}},[u,a,c,r,o,n,e,i,s,l])}const iT="3167929",tp="G-93NG7BDFL6",sT=()=>(y.useEffect(()=>{{window._linkedin_data_partner_ids=window._linkedin_data_partner_ids||[],window._linkedin_data_partner_ids.push(iT);const e=document.createElement("script");e.async=!0,e.src="https://snap.licdn.com/li.lms-analytics/insight.min.js",document.head.appendChild(e)}{const e=document.createElement("script");e.async=!0,e.src=`https://www.googletagmanager.com/gtag/js?id=${tp}`,document.head.appendChild(e),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date),window.gtag("config",tp)}},[]),null),OT=e=>{window.lintrk&&window.lintrk("track",{conversion_id:e})},_T=(e,t)=>{window.gtag&&window.gtag("event",e,t)},AT=(e,t)=>{window.fbq&&window.fbq("track",e,t)},lT=y.lazy(()=>tn(()=>import("./Index-BvsjX0sN.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))),aT=y.lazy(()=>tn(()=>import("./Experts-Ci3BqXMm.js"),__vite__mapDeps([14,1,7,15,16,13,3,17,18,2,6]))),uT=y.lazy(()=>tn(()=>import("./Articles-C6y1VGTE.js"),__vite__mapDeps([19,1,7,16,20,15,21,9,12,11,22,23,5,24,13,18,3]))),cT=y.lazy(()=>tn(()=>import("./CamerasInWorkplace-Ca-P7trL.js"),__vite__mapDeps([25,1,7,20,16,26,3,13,24,18,4,2,27,23,28]))),dT=y.lazy(()=>tn(()=>import("./DpoRequirement-DSVTNqGv.js"),__vite__mapDeps([29,1,16,26,3,13,30,17,2,23,31]))),fT=y.lazy(()=>tn(()=>import("./BoardResponsibilities-Dvy1ON9P.js"),__vite__mapDeps([32,1,7,16,26,3,13,24,18,22,30,17,31,2,23,28]))),pT=y.lazy(()=>tn(()=>import("./Organizations-DXnN64ns.js"),__vite__mapDeps([33,1,7,10,11,12,16,13,3,27,17]))),hT=y.lazy(()=>tn(()=>import("./Webinar-zFHFbBRI.js"),__vite__mapDeps([34,1,21,9,12,15,13,8,18,30,17]))),mT=y.lazy(()=>tn(()=>import("./NotFound-B9eI9SeN.js"),__vite__mapDeps([35,13]))),vT=new nC,gT=()=>b.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:b.jsx("div",{className:"w-8 h-8 border-4 border-primary border-t-transparent rounded-full animate-spin"})}),yT=()=>b.jsx(oC,{client:vT,children:b.jsxs(hx,{attribute:"class",defaultTheme:"dark",enableSystem:!1,children:[b.jsx(sT,{}),b.jsxs(NS,{children:[b.jsx(cx,{}),b.jsx(Qx,{}),b.jsx(tT,{children:b.jsx(y.Suspense,{fallback:b.jsx(gT,{}),children:b.jsxs(YC,{children:[b.jsx(bt,{path:"/",element:b.jsx(lT,{})}),b.jsx(bt,{path:"/experts",element:b.jsx(aT,{})}),b.jsx(bt,{path:"/articles",element:b.jsx(uT,{})}),b.jsx(bt,{path:"/articles/cameras-in-workplace",element:b.jsx(cT,{})}),b.jsx(bt,{path:"/articles/dpo-requirement",element:b.jsx(dT,{})}),b.jsx(bt,{path:"/articles/board-responsibilities",element:b.jsx(fT,{})}),b.jsx(bt,{path:"/organizations",element:b.jsx(pT,{})}),b.jsx(bt,{path:"/webinar",element:b.jsx(hT,{})}),b.jsx(bt,{path:"*",element:b.jsx(mT,{})})]})})})]})]})});Tm(document.getElementById("root")).render(b.jsx(Am,{children:b.jsx(yT,{})}));export{fS as A,px as B,pS as C,Tc as D,Pl as E,xT as H,RT as L,Ve as P,R,ET as S,n1 as V,R1 as X,AT as a,OT as b,b1 as c,ml as d,ye as e,kc as f,Ct as g,jn as h,jw as i,b as j,mr as k,C1 as l,CT as m,_w as n,Dn as o,_v as p,Ti as q,y as r,hS as s,_T as t,Jw as u,TT as v,zm as w,Hs as x,xp as y,iS as z};