const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Index-PTvrvz_A.js","assets/Footer-msu8CTpX.js","assets/shield-e3Y7Sz_1.js","assets/arrow-left-Da2V45wf.js","assets/circle-x-ZWWH0xmU.js","assets/building-2-CATnQq3s.js","assets/database-B-7_RBwM.js","assets/CookieBanner-DMX5OEsB.js","assets/calendar-days-DuNu_GSP.js","assets/index-Bx5AnM3w.js","assets/ContactForm-CY6Llzbf.js","assets/client-NKYmEhGE.js","assets/tslib.es6-CmEaCU22.js","assets/SEOHead-Cuw6L5e5.js","assets/Experts-QrrUaQqO.js","assets/Breadcrumbs-DNfMo_nn.js","assets/users-DVblpnso.js","assets/clock-DhW-WNyN.js","assets/Articles-aUNgSEYg.js","assets/FinesTable-Df8DznV0.js","assets/table-Hka__g-H.js","assets/badge-ByRLp_re.js","assets/select-BIeGTY7t.js","assets/check-CWq9o2xY.js","assets/skeleton-B3pdsJvh.js","assets/circle-alert-DgDAUl0S.js","assets/scale-DAZMM5cC.js","assets/external-link-Cwctejgw.js","assets/calendar-BDpMfJt1.js","assets/CamerasInWorkplace-H7nKurWB.js","assets/RelatedArticles-B2BZc3Uw.js","assets/eye-CczSw1PO.js","assets/arrow-right-F7gi8DTc.js","assets/DpoRequirement-D_b1sMMl.js","assets/circle-check-B-j0iJVO.js","assets/triangle-alert-CmQT-q_G.js","assets/BoardResponsibilities-CoIxrRtW.js","assets/Organizations-BsFJh9PF.js","assets/Webinar-BlQZIbIL.js","assets/shield-alert-DjLkWsct.js","assets/Fines-CT2TIK7M.js","assets/Telegram-Cv6ywAsr.js","assets/tabs-B-JH5bSJ.js","assets/Breaches-qaJLdI2y.js","assets/NotFound-Cc8Xn2nt.js"])))=>i.map(i=>d[i]); var Ng=Object.defineProperty;var Jc=e=>{throw TypeError(e)};var Lg=(e,t,n)=>t in e?Ng(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ut=(e,t,n)=>Lg(e,typeof t!="symbol"?t+"":t,n),Al=(e,t,n)=>t.has(e)||Jc("Cannot "+n);var P=(e,t,n)=>(Al(e,t,"read from private field"),n?n.call(e):t.get(e)),Z=(e,t,n)=>t.has(e)?Jc("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 P(e,t,r)}});function Mg(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 dp={exports:{}},Zs={},fp={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"),Ig=Symbol.for("react.portal"),jg=Symbol.for("react.fragment"),Dg=Symbol.for("react.strict_mode"),zg=Symbol.for("react.profiler"),Fg=Symbol.for("react.provider"),$g=Symbol.for("react.context"),Ug=Symbol.for("react.forward_ref"),Bg=Symbol.for("react.suspense"),Vg=Symbol.for("react.memo"),Hg=Symbol.for("react.lazy"),ed=Symbol.iterator;function Wg(e){return e===null||typeof e!="object"?null:(e=ed&&e[ed]||e["@@iterator"],typeof e=="function"?e:null)}var pp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hp=Object.assign,mp={};function fo(e,t,n){this.props=e,this.context=t,this.refs=mp,this.updater=n||pp}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 vp(){}vp.prototype=fo.prototype;function _u(e,t,n){this.props=e,this.context=t,this.refs=mp,this.updater=n||pp}var Ou=_u.prototype=new vp;Ou.constructor=_u;hp(Ou,fo.prototype);Ou.isPureReactComponent=!0;var td=Array.isArray,gp=Object.prototype.hasOwnProperty,Au={current:null},yp={key:!0,ref:!0,__self:!0,__source:!0};function wp(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)gp.call(t,r)&&!yp.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,z=b[H];if(0>>1;Ho(he,I))keo(J,he)?(b[H]=J,b[ke]=I,H=ke):(b[H]=he,b[q]=I,H=q);else if(keo(J,I))b[H]=J,b[ke]=I,H=ke;else break e}}return _}function o(b,_){var I=b.sortIndex-_.sortIndex;return I!==0?I:b.id-_.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,y=!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(b){for(var _=n(u);_!==null;){if(_.callback===null)r(u);else if(_.startTime<=b)r(u),_.sortIndex=_.expirationTime,t(a,_);else break;_=n(u)}}function E(b){if(y=!1,v(b),!x)if(n(a)!==null)x=!0,$(S);else{var _=n(u);_!==null&&V(E,_.startTime-b)}}function S(b,_){x=!1,y&&(y=!1,m(O),O=-1),f=!0;var I=p;try{for(v(_),d=n(a);d!==null&&(!(d.expirationTime>_)||b&&!F());){var H=d.callback;if(typeof H=="function"){d.callback=null,p=d.priorityLevel;var z=H(d.expirationTime<=_);_=e.unstable_now(),typeof z=="function"?d.callback=z:d===n(a)&&r(a),v(_)}else r(a);d=n(a)}if(d!==null)var K=!0;else{var q=n(u);q!==null&&V(E,q.startTime-_),K=!1}return K}finally{d=null,p=I,f=!1}}var T=!1,k=null,O=-1,L=5,N=-1;function F(){return!(e.unstable_now()-Nb||125H?(b.sortIndex=I,t(u,b),n(a)===null&&b===n(u)&&(y?(m(O),O=-1):y=!0,V(E,I-H))):(b.sortIndex=z,t(a,b),x||f||(x=!0,$(S))),b},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(b){var _=p;return function(){var I=p;p=_;try{return b.apply(this,arguments)}finally{p=I}}}})(kp);Tp.exports=kp;var ny=Tp.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 ry=g,Ze=ny;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,oy=/^[: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]*$/,rd={},od={};function iy(e){return ga.call(od,e)?!0:ga.call(rd,e)?!1:oy.test(e)?od[e]=!0:(rd[e]=!0,!1)}function sy(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 ly(e,t,n,r){if(t===null||typeof t>"u"||sy(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 ze(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 ze(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 ze(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Te[e]=new ze(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Te[e]=new ze(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 ze(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Te[e]=new ze(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Te[e]=new ze(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Te[e]=new ze(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Te[e]=new ze(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 ze(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 ze(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 ze(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Te[e]=new ze(e,1,!1,e.toLowerCase(),null,!1,!1)});Te.xlinkHref=new ze("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Te[e]=new ze(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 ay(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 ju:return"StrictMode";case wa:return"Suspense";case xa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Rp:return(e.displayName||"Context")+".Consumer";case bp:return(e._context.displayName||"Context")+".Provider";case Du: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 hn:t=e._payload,e=e._init;try{return Ea(e(t))}catch{}}return null}function uy(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===ju?"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 In(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 cy(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=cy(e))}function Ap(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 sd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=In(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 Np(e,t){t=t.checked,t!=null&&Iu(e,"checked",t,!1)}function Ca(e,t){Np(e,t);var n=In(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,In(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ld(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 Do={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},dy=["Webkit","ms","Moz","O"];Object.keys(Do).forEach(function(e){dy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Do[t]=Do[e]})});function jp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Do.hasOwnProperty(e)&&Do[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=jp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var fy=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(fy[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 _a=null;function Fu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Oa=null,Fr=null,$r=null;function cd(e){if(e=Si(e)){if(typeof Oa!="function")throw Error(A(280));var t=e.stateNode;t&&(t=rl(t),Oa(e.stateNode,e.type,t))}}function zp(e){Fr?$r?$r.push(e):$r=[e]:Fr=e}function Fp(){if(Fr){var e=Fr,t=$r;if($r=Fr=null,cd(e),t)for(e=0;e>>=0,e===0?32:31-(Cy(e)/Ty|0)|0}var ji=64,Di=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-Ct(t),e[t]=n}function Ry(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),wd=" ",xd=!1;function ih(e,t){switch(e){case"keyup":return n0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rr=!1;function o0(e,t){switch(e){case"compositionend":return sh(t);case"keypress":return t.which!==32?null:(xd=!0,wd);case"textInput":return e=t.data,e===wd&&xd?null:e;default:return null}}function i0(e,t){if(Rr)return e==="compositionend"||!Ku&&ih(e,t)?(e=rh(),os=Hu=Cn=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=Td(n)}}function ch(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ch(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function dh(){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 h0(e){var t=dh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ch(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=kd(n,i);var s=kd(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,_r=null,ja=null,Uo=null,Da=!1;function Pd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Da||_r==null||_r!==ws(r)||(r=_r,"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(ja,"onSelect"),0Nr||(e.current=Va[Nr],Va[Nr]=null,Nr--)}function ne(e,t){Nr++,Va[Nr]=e.current,e.current=t}var jn={},Ae=Bn(jn),Ve=Bn(!1),ar=jn;function ro(e,t){var n=e.type.contextTypes;if(!n)return jn;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 He(e){return e=e.childContextTypes,e!=null}function Rs(){ie(Ve),ie(Ae)}function Ld(e,t,n){if(Ae.current!==jn)throw Error(A(168));ne(Ae,t),ne(Ve,n)}function xh(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,uy(e)||"Unknown",o));return ce({},n,r)}function _s(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jn,ar=Ae.current,ne(Ae,e),ne(Ve,Ve.current),!0}function Md(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=xh(e,t,ar),r.__reactInternalMemoizedMergedChildContext=e,ie(Ve),ie(Ae),ne(Ae,e)):ie(Ve),ne(Ve,n)}var Wt=null,ol=!1,Gl=!1;function Eh(e){Wt===null?Wt=[e]:Wt.push(e)}function P0(e){ol=!0,Eh(e)}function Vn(){if(!Gl&&Wt!==null){Gl=!0;var e=0,t=ee;try{var n=Wt;for(ee=1;e>=s,o-=s,Kt=1<<32-Ct(t)+o|n<O?(L=k,k=null):L=k.sibling;var N=p(m,k,v[O],E);if(N===null){k===null&&(k=L);break}e&&k&&N.alternate===null&&t(m,k),h=i(N,h,O),T===null?S=N:T.sibling=N,T=N,k=L}if(O===v.length)return n(m,k),le&&Yn(m,O),S;if(k===null){for(;OO?(L=k,k=null):L=k.sibling;var F=p(m,k,N.value,E);if(F===null){k===null&&(k=L);break}e&&k&&F.alternate===null&&t(m,k),h=i(F,h,O),T===null?S=F:T.sibling=F,T=F,k=L}if(N.done)return n(m,k),le&&Yn(m,O),S;if(k===null){for(;!N.done;O++,N=v.next())N=d(m,N.value,E),N!==null&&(h=i(N,h,O),T===null?S=N:T.sibling=N,T=N);return le&&Yn(m,O),S}for(k=r(m,k);!N.done;O++,N=v.next())N=f(k,m,O,N.value,E),N!==null&&(e&&N.alternate!==null&&k.delete(N.key===null?O:N.key),h=i(N,h,O),T===null?S=N:T.sibling=N,T=N);return e&&k.forEach(function(D){return t(m,D)}),le&&Yn(m,O),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,T=h;T!==null;){if(T.key===S){if(S=v.type,S===br){if(T.tag===7){n(m,T.sibling),h=o(T,v.props.children),h.return=m,m=h;break e}}else if(T.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===hn&&Dd(S)===T.type){n(m,T.sibling),h=o(T,v.props),h.ref=Po(m,T,v),h.return=m,m=h;break e}n(m,T);break}else t(m,T);T=T.sibling}v.type===br?(h=lr(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(T=v.key;h!==null;){if(h.key===T)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 hn:return T=v._init,w(m,h,T(v._payload),E)}if(Mo(v))return x(m,h,v,E);if(Eo(v))return y(m,h,v,E);Hi(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=kh(!0),Ph=kh(!1),Ns=Bn(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&&(Be=!0),e.firstContext=null)}function at(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 Xn=null;function tc(e){Xn===null?Xn=[e]:Xn.push(e)}function bh(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,Zt(e,r)}function Zt(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 mn=!1;function nc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Rh(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 Gt(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,Zt(e,n)}return o=r.interleaved,o===null?(t.next=t,tc(r)):(t.next=o.next,o.next=t),r.interleaved=t,Zt(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 zd(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;mn=!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,y=l;switch(p=t,f=n,y.tag){case 1:if(x=y.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=y.payload,p=typeof x=="function"?x.call(f,d,p):x,p==null)break e;d=ce({},d,p);break e;case 2:mn=!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);dr|=s,e.lanes=s,e.memoizedState=d}}function Fd(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 Wh(){return ut().memoizedState}function O0(e,t,n){var r=Nn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qh(e))Kh(t,n);else if(n=bh(e,t,n,r),n!==null){var o=je();Tt(n,e,r,o),Yh(n,t,r)}}function A0(e,t,n){var r=Nn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qh(e))Kh(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,kt(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=bh(e,t,o,r),n!==null&&(o=je(),Tt(n,e,r,o),Yh(n,t,r))}}function Qh(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function Kh(e,t){Bo=js=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Yh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Uu(e,n)}}var Ds={readContext:at,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},N0={readContext:at,useCallback:function(e,t){return Ot().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:Ud,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,as(4194308,4,$h.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=Ot();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ot();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=O0.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=Ot();return e={current:e},t.memoizedState=e},useState:$d,useDebugValue:cc,useDeferredValue:function(e){return Ot().memoizedState=e},useTransition:function(){var e=$d(!1),t=e[0];return e=_0.bind(null,e[1]),Ot().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,o=Ot();if(le){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Ee===null)throw Error(A(349));cr&30||Nh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Ud(Mh.bind(null,r,i,e),[e]),r.flags|=2048,ai(9,Lh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ot(),t=Ee.identifierPrefix;if(le){var n=Yt,r=Kt;n=(r&~(1<<32-Ct(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[Mt]=t,e[ri]=r,om(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?Ke&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 $0(e,t){switch(qu(t),t.tag){case 1:return He(t.type)&&Rs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return so(),ie(Ve),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,Oe=!1,U0=typeof WeakSet=="function"?WeakSet:Set,j=null;function jr(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 Zd=!1;function B0(e,t){if(za=Ts,e=dh(),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,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;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 y=x.memoizedProps,w=x.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:vt(t.type,y),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,j=e;break}j=t.return}return x=Zd,Zd=!1,x}function Vo(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 lm(e){var t=e.alternate;t!==null&&(e.alternate=null,lm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mt],delete t[ri],delete t[Ba],delete t[T0],delete t[k0])),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 am(e){return e.tag===5||e.tag===3||e.tag===4}function Jd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||am(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,xt=!1;function cn(e,t,n){for(n=n.child;n!==null;)um(e,t,n),n=n.sibling}function um(e,t,n){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(Js,n)}catch{}switch(n.tag){case 5:Oe||jr(n,t);case 6:var r=Se,o=xt;Se=null,cn(e,t,n),Se=r,xt=o,Se!==null&&(xt?(e=Se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Se.removeChild(n.stateNode));break;case 18:Se!==null&&(xt?(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=xt,Se=n.stateNode.containerInfo,xt=!0,cn(e,t,n),Se=r,xt=o;break;case 0:case 11:case 14:case 15:if(!Oe&&(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)}cn(e,t,n);break;case 1:if(!Oe&&(jr(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)}cn(e,t,n);break;case 21:cn(e,t,n);break;case 22:n.mode&1?(Oe=(r=Oe)||n.memoizedState!==null,cn(e,t,n),Oe=r):cn(e,t,n);break;default:cn(e,t,n)}}function ef(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new U0),t.forEach(function(r){var o=X0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ht(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*H0(r/1960))-r,10e?16:e,Tn===null)var r=!1;else{if(e=Tn,Tn=null,$s=0,X&6)throw Error(A(331));var o=X;for(X|=4,j=e.current;j!==null;){var i=j,s=i.child;if(j.flags&16){var l=i.deletions;if(l!==null){for(var a=0;ape()-hc?sr(e,0):pc|=n),We(e,t)}function gm(e,t){t===0&&(e.mode&1?(t=Di,Di<<=1,!(Di&130023424)&&(Di=4194304)):t=1);var n=je();e=Zt(e,t),e!==null&&(xi(e,t,n),We(e,n))}function q0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gm(e,n)}function X0(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),gm(e,n)}var ym;ym=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ve.current)Be=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Be=!1,z0(e,t,n);Be=!!(e.flags&131072)}else Be=!1,le&&t.flags&1048576&&Sh(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,He(r)?(i=!0,_s(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),Me(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=J0(r),e=vt(r,e),o){case 0:t=qa(null,t,r,e,n);break e;case 1:t=Gd(null,t,r,e,n);break e;case 11:t=Kd(null,t,r,e,n);break e;case 14:t=Yd(null,t,r,vt(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:vt(r,o),qa(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vt(r,o),Gd(e,t,r,o,n);case 3:e:{if(tm(t),e===null)throw Error(A(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Rh(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=qd(e,t,r,n,o);break e}else if(r!==o){o=lo(Error(A(424)),t),t=qd(e,t,r,n,o);break e}else for(Ge=_n(t.stateNode.containerInfo.firstChild),qe=t,le=!0,Et=null,n=Ph(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(oo(),r===o){t=Jt(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return _h(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),em(e,t),Me(e,t,s,n),t.child;case 6:return e===null&&Wa(t),null;case 13:return nm(e,t,n);case 4:return rc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=io(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vt(r,o),Kd(e,t,r,o,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(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(kt(i.value,s)){if(i.children===o.children&&!Ve.current){t=Jt(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=Gt(-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}Me(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Br(t,n),o=at(o),r=r(o),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,o=vt(r,t.pendingProps),o=vt(r.type,o),Yd(e,t,r,o,n);case 15:return Zh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vt(r,o),us(e,t),t.tag=1,He(r)?(e=!0,_s(t)):e=!1,Br(t,n),Gh(t,r,o),Ya(t,r,o,n),Xa(null,t,r,!0,e,n);case 19:return rm(e,t,n);case 22:return Jh(e,t,n)}throw Error(A(156,t.tag))};function wm(e,t){return Qp(e,t)}function Z0(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 st(e,t,n,r){return new Z0(e,t,n,r)}function yc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function J0(e){if(typeof e=="function")return yc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Du)return 11;if(e===zu)return 14}return 2}function Ln(e,t){var n=e.alternate;return n===null?(n=st(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 lr(n.children,o,i,t);case ju:s=8,o|=8;break;case ya:return e=st(12,n,t,o|2),e.elementType=ya,e.lanes=i,e;case wa:return e=st(13,n,t,o),e.elementType=wa,e.lanes=i,e;case xa:return e=st(19,n,t,o),e.elementType=xa,e.lanes=i,e;case _p:return ul(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case bp:s=10;break e;case Rp:s=9;break e;case Du:s=11;break e;case zu:s=14;break e;case hn:s=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=st(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function lr(e,t,n,r){return e=st(7,e,r,t),e.lanes=n,e}function ul(e,t,n,r){return e=st(22,e,r,t),e.elementType=_p,e.lanes=n,e.stateNode={isHidden:!1},e}function na(e,t,n){return e=st(6,e,null,t),e.lanes=n,e}function ra(e,t,n){return t=st(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ew(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=Dl(0),this.expirationTimes=Dl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function wc(e,t,n,r,o,i,s,l,a){return e=new ew(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=st(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 tw(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Cm)}catch(e){console.error(e)}}Cm(),Cp.exports=Je;var Ti=Cp.exports;const Tm=yi(Ti);var km,uf=Ti;km=uf.createRoot,uf.hydrateRoot;var sw=typeof Element<"u",lw=typeof Map=="function",aw=typeof Set=="function",uw=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(lw&&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(aw&&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(uw&&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(sw&&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 cw=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 dw=yi(cw);var fw=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}},pw=fw;const cf=yi(pw);var hw=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))(Pm||{}),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"]}},df=Object.values(Pm),hl={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},bm=Object.entries(hl).reduce((e,[t,n])=>(e[n]=t,e),{}),St="data-rh",Hr={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},vw=e=>{let t=Wr(e,"title");const n=Wr(e,Hr.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Wr(e,Hr.DEFAULT_TITLE);return t||r||void 0},gw=e=>Wr(e,Hr.ON_CHANGE_CLIENT_STATE)||(()=>{}),ia=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),yw=(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),_o=(e,t,n)=>{const r={};return n.filter(o=>Array.isArray(o[e])?!0:(typeof o[e]<"u"&&ww(`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:yw(["href"],e),bodyAttributes:ia("bodyAttributes",e),defer:Wr(e,Hr.DEFER),encode:Wr(e,Hr.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:ia("htmlAttributes",e),linkTags:_o("link",["rel","href"],e),metaTags:_o("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:_o("noscript",["innerHTML"],e),onChangeClientState:gw(e),scriptTags:_o("script",["src","innerHTML"],e),styleTags:_o("style",["cssText"],e),title:vw(e),titleAttributes:ia("titleAttributes",e),prioritizeSeoTags:xw(e,Hr.PRIORITIZE_SEO_TAGS)}),Rm=e=>Array.isArray(e)?e.join(""):e,Sw=(e,t)=>{const n=Object.keys(e);for(let r=0;rArray.isArray(e)?e.reduce((n,r)=>(Sw(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},ff=(e,t)=>({...e,[t]:void 0}),Cw=["noscript","script","style"],uu=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),_m=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),Tw=(e,t,n,r)=>{const o=_m(n),i=Rm(t);return o?`<${e} ${St}="true" ${o}>${uu(i,r)}`:`<${e} ${St}="true">${uu(i,r)}`},kw=(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=Cw.indexOf(e)===-1;return`${r}<${e} ${St}="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),Pw=(e,t,n)=>{const r={key:t,[St]:!0},o=Om(n,r);return[R.createElement("title",o,t)]},hs=(e,t)=>t.map((n,r)=>{const o={key:r,[St]:!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)}),nt=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>Pw(e,t.title,t.titleAttributes),toString:()=>Tw(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Om(t),toString:()=>_m(t)};default:return{toComponent:()=>hs(e,t),toString:()=>kw(e,t,n)}}},bw=({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:()=>`${nt("meta",o.priority,r)} ${nt("link",i.priority,r)} ${nt("script",s.priority,r)}`},metaTags:o.default,linkTags:i.default,scriptTags:s.default}},Rw=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}=bw(e)),{priority:f,base:nt("base",t,r),bodyAttributes:nt("bodyAttributes",n,r),htmlAttributes:nt("htmlAttributes",o,r),link:nt("link",c,r),meta:nt("meta",d,r),noscript:nt("noscript",i,r),script:nt("script",p,r),style:nt("style",s,r),title:nt("title",{title:l,titleAttributes:a},r)}},cu=Rw,Gi=[],Cc=!!(typeof window<"u"&&window.document&&window.document.createElement),du=class{constructor(e,t){Ut(this,"instances",[]);Ut(this,"canUseDOM",Cc);Ut(this,"context");Ut(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:{}}))}},_w=parseInt(R.version.split(".")[0],10),fu=_w>=19,Ow={},Am=R.createContext(Ow),Jn,Nm=(Jn=class extends g.Component{constructor(n){super(n);Ut(this,"helmetData");fu?this.helmetData=null:this.helmetData=new du(this.props.context||{},Jn.canUseDOM)}render(){return fu?R.createElement(R.Fragment,null,this.props.children):R.createElement(Am.Provider,{value:this.helmetData.value},this.props.children)}},Ut(Jn,"canUseDOM",Cc),Jn),kr=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${St}]`),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(St,"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(St),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(St):n.getAttribute(St)!==s.join(",")&&n.setAttribute(St,s.join(","))},Aw=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Rm(e)),pu("title",t)},pf=(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),Aw(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={},y={};Object.keys(f).forEach(w=>{const{newTags:m,oldTags:h}=f[w];m.length&&(x[w]=m),h.length&&(y[w]=f[w].oldTags)}),t&&t(),a(e,x,y)},Oo=null,Nw=e=>{Oo&&cancelAnimationFrame(Oo),e.defer?Oo=requestAnimationFrame(()=>{pf(e,()=>{Oo=null})}):(pf(e),Oo=null)},Lw=Nw,hf=class extends g.Component{constructor(){super(...arguments);Ut(this,"rendered",!1)}shouldComponentUpdate(t){return!mw(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=Ew(t.get().map(i=>{const{context:s,...l}=i.props;return l}));Nm.canUseDOM?Lw(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=[],mf=e=>{const t={};for(const n of Object.keys(e))t[bm[n]||n]=e[n];return t},Kn=e=>{const t={};for(const n of Object.keys(e)){const r=hl[n];t[r||n]=e[n]}return t},vf=(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,mf(r)),o&&Object.assign(t,mf(o))}vf("html",e),vf("body",t)},Mw=class extends g.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",Kn(t),e)}renderBase(){const{base:e}=this.props;return e?R.createElement("base",Kn(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>R.createElement("meta",{key:n,...Kn(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>R.createElement("link",{key:n,...Kn(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...o}=t,i=Kn(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=Kn(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=Kn(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,$T=(va=class extends g.Component{shouldComponentUpdate(e){return!dw(ff(this.props,"helmetData"),ff(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 cf(df.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 ${df.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),cf(!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[bm[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(Mw,{...n}):r?R.createElement(hf,{...n,context:r.value}):R.createElement(Am.Consumer,null,o=>R.createElement(hf,{...n,context:o}))}},Ut(va,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),va);const Iw="modulepreload",jw=function(e){return"/"+e},gf={},ct=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=jw(a),a in gf)return;gf[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":Iw,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)})},Dw=1,zw=1e6;let aa=0;function Fw(){return aa=(aa+1)%Number.MAX_SAFE_INTEGER,aa.toString()}const ua=new Map,yf=e=>{if(ua.has(e))return;const t=setTimeout(()=>{ua.delete(e),Qo({type:"REMOVE_TOAST",toastId:e})},zw);ua.set(e,t)},$w=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Dw)};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?yf(n):e.toasts.forEach(r=>{yf(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=$w(gs,e),vs.forEach(t=>{t(gs)})}function Uw({...e}){const t=Fw(),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 Bw(){const[e,t]=g.useState(gs);return g.useEffect(()=>(vs.push(t),()=>{const n=vs.indexOf(t);n>-1&&vs.splice(n,1)}),[e]),{...e,toast:Uw,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 wf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Lm(...e){return t=>{let n=!1;const r=e.map(o=>{const i=wf(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,y=((m=p==null?void 0:p[e])==null?void 0:m[a])||l,w=g.useMemo(()=>x,Object.values(x));return C.jsx(y.Provider,{value:w,children:f})};u.displayName=i+"Provider";function c(d,p){var y;const f=((y=p==null?void 0:p[e])==null?void 0:y[a])||l,x=g.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=>g.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return g.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,Vw(o,...t)]}function Vw(...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 g.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Vs(e){const t=Ww(e),n=g.forwardRef((r,o)=>{const{children:i,...s}=r,l=g.Children.toArray(i),a=l.find(Kw);if(a){const u=a.props.children,c=l.map(d=>d===a?g.Children.count(u)>1?g.Children.only(null):g.isValidElement(u)?u.props.children:null:d);return C.jsx(t,{...s,ref:o,children:g.isValidElement(u)?g.cloneElement(u,void 0,c):null})}return C.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var Hw=Vs("Slot");function Ww(e){const t=g.forwardRef((n,r)=>{const{children:o,...i}=n;if(g.isValidElement(o)){const s=Gw(o),l=Yw(i,o.props);return o.type!==g.Fragment&&(l.ref=r?Lm(r,s):s),g.cloneElement(o,l)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Mm=Symbol("radix.slottable");function Qw(e){const t=({children:n})=>C.jsx(C.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Mm,t}function Kw(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Mm}function Yw(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 Gw(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 qw(e){const t=e+"CollectionProvider",[n,r]=ml(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=y=>{const{scope:w,children:m}=y,h=R.useRef(null),v=R.useRef(new Map).current;return C.jsx(o,{scope:w,itemMap:v,collectionRef:h,children:m})};s.displayName=t;const l=e+"CollectionSlot",a=Vs(l),u=R.forwardRef((y,w)=>{const{scope:m,children:h}=y,v=i(l,m),E=Pt(w,v.collectionRef);return C.jsx(a,{ref:E,children:h})});u.displayName=l;const c=e+"CollectionItemSlot",d="data-radix-collection-item",p=Vs(c),f=R.forwardRef((y,w)=>{const{scope:m,children:h,...v}=y,E=R.useRef(null),S=Pt(w,E),T=i(c,m);return R.useEffect(()=>(T.itemMap.set(E,{ref:E,...v}),()=>void T.itemMap.delete(E))),C.jsx(p,{[d]:"",ref:S,children:h})});f.displayName=c;function x(y){const w=i(e+"CollectionConsumer",y);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((T,k)=>v.indexOf(T.ref.current)-v.indexOf(k.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:s,Slot:u,ItemSlot:f},x,r]}var Xw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fe=Xw.reduce((e,t)=>{const n=Vs(`Primitive.${t}`),r=g.forwardRef((o,i)=>{const{asChild:s,...l}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),C.jsx(a,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Im(e,t){e&&Ti.flushSync(()=>e.dispatchEvent(t))}function Dn(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Zw(e,t=globalThis==null?void 0:globalThis.document){const n=Dn(e);g.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 Jw="DismissableLayer",hu="dismissableLayer.update",e1="dismissableLayer.pointerDownOutside",t1="dismissableLayer.focusOutside",xf,jm=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Tc=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...a}=e,u=g.useContext(jm),[c,d]=g.useState(null),p=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=g.useState({}),x=Pt(t,k=>d(k)),y=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=y.indexOf(w),h=c?y.indexOf(c):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,E=h>=m,S=r1(k=>{const O=k.target,L=[...u.branches].some(N=>N.contains(O));!E||L||(o==null||o(k),s==null||s(k),k.defaultPrevented||l==null||l())},p),T=o1(k=>{const O=k.target;[...u.branches].some(N=>N.contains(O))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},p);return Zw(k=>{h===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},p),g.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(xf=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Ef(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=xf)}},[c,p,n,u]),g.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Ef())},[c,u]),g.useEffect(()=>{const k=()=>f({});return document.addEventListener(hu,k),()=>document.removeEventListener(hu,k)},[]),C.jsx(Fe.div,{...a,ref:x,style:{pointerEvents:v?E?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,T.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,S.onPointerDownCapture)})});Tc.displayName=Jw;var n1="DismissableLayerBranch",Dm=g.forwardRef((e,t)=>{const n=g.useContext(jm),r=g.useRef(null),o=Pt(t,r);return g.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),C.jsx(Fe.div,{...e,ref:o})});Dm.displayName=n1;function r1(e,t=globalThis==null?void 0:globalThis.document){const n=Dn(e),r=g.useRef(!1),o=g.useRef(()=>{});return g.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let a=function(){zm(e1,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 o1(e,t=globalThis==null?void 0:globalThis.document){const n=Dn(e),r=g.useRef(!1);return g.useEffect(()=>{const o=i=>{i.target&&!r.current&&zm(t1,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 Ef(){const e=new CustomEvent(hu);document.dispatchEvent(e)}function zm(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?Im(o,i):o.dispatchEvent(i)}var i1=Tc,s1=Dm,zn=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},l1="Portal",Fm=g.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=g.useState(!1);zn(()=>i(!0),[]);const s=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?Tm.createPortal(C.jsx(Fe.div,{...r,ref:t}),s):null});Fm.displayName=l1;function a1(e,t){return g.useReducer((n,r)=>t[n][r]??n,e)}var kc=e=>{const{present:t,children:n}=e,r=u1(t),o=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=Pt(r.ref,c1(o));return typeof n=="function"||r.isPresent?g.cloneElement(o,{ref:i}):null};kc.displayName="Presence";function u1(e){const[t,n]=g.useState(),r=g.useRef(null),o=g.useRef(e),i=g.useRef("none"),s=e?"mounted":"unmounted",[l,a]=a1(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const u=qi(r.current);i.current=l==="mounted"?u:"none"},[l]),zn(()=>{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]),zn(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=f=>{const y=qi(r.current).includes(f.animationName);if(f.target===t&&y&&(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:g.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function qi(e){return(e==null?void 0:e.animationName)||"none"}function c1(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 d1=Ep[" useInsertionEffect ".trim().toString()]||zn;function f1({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=p1({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:o;{const c=g.useRef(e!==void 0);g.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=g.useCallback(c=>{var d;if(l){const p=h1(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 p1({defaultProp:e,onChange:t}){const[n,r]=g.useState(e),o=g.useRef(n),i=g.useRef(t);return d1(()=>{i.current=t},[t]),g.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function h1(e){return typeof e=="function"}var m1=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"}),v1="VisuallyHidden",vl=g.forwardRef((e,t)=>C.jsx(Fe.span,{...e,ref:t,style:{...m1,...e.style}}));vl.displayName=v1;var g1=vl,Pc="ToastProvider",[bc,y1,w1]=qw("Toast"),[$m,UT]=ml("Toast",[w1]),[x1,gl]=$m(Pc),Um=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[l,a]=g.useState(null),[u,c]=g.useState(0),d=g.useRef(!1),p=g.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Pc}\`. Expected non-empty \`string\`.`),C.jsx(bc.Provider,{scope:t,children:C.jsx(x1,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:a,onToastAdd:g.useCallback(()=>c(f=>f+1),[]),onToastRemove:g.useCallback(()=>c(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:p,children:s})})};Um.displayName=Pc;var Bm="ToastViewport",E1=["F8"],mu="toast.viewportPause",vu="toast.viewportResume",Vm=g.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=E1,label:o="Notifications ({hotkey})",...i}=e,s=gl(Bm,n),l=y1(n),a=g.useRef(null),u=g.useRef(null),c=g.useRef(null),d=g.useRef(null),p=Pt(t,d,s.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=s.toastCount>0;g.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]),g.useEffect(()=>{const w=a.current,m=d.current;if(x&&w&&m){const h=()=>{if(!s.isClosePausedRef.current){const T=new CustomEvent(mu);m.dispatchEvent(T),s.isClosePausedRef.current=!0}},v=()=>{if(s.isClosePausedRef.current){const T=new CustomEvent(vu);m.dispatchEvent(T),s.isClosePausedRef.current=!1}},E=T=>{!w.contains(T.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 y=g.useCallback(({tabbingDirection:w})=>{const h=l().map(v=>{const E=v.ref.current,S=[E,...M1(E)];return w==="forwards"?S:S.reverse()});return(w==="forwards"?h.reverse():h).flat()},[l]);return g.useEffect(()=>{const w=d.current;if(w){const m=h=>{var S,T,k;const v=h.altKey||h.ctrlKey||h.metaKey;if(h.key==="Tab"&&!v){const O=document.activeElement,L=h.shiftKey;if(h.target===w&&L){(S=u.current)==null||S.focus();return}const D=y({tabbingDirection:L?"backwards":"forwards"}),Q=D.findIndex(M=>M===O);ca(D.slice(Q+1))?h.preventDefault():L?(T=u.current)==null||T.focus():(k=c.current)==null||k.focus()}};return w.addEventListener("keydown",m),()=>w.removeEventListener("keydown",m)}},[l,y]),C.jsxs(s1,{ref:a,role:"region","aria-label":o.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&C.jsx(gu,{ref:u,onFocusFromOutsideViewport:()=>{const w=y({tabbingDirection:"forwards"});ca(w)}}),C.jsx(bc.Slot,{scope:n,children:C.jsx(Fe.ol,{tabIndex:-1,...i,ref:p})}),x&&C.jsx(gu,{ref:c,onFocusFromOutsideViewport:()=>{const w=y({tabbingDirection:"backwards"});ca(w)}})]})});Vm.displayName=Bm;var Hm="ToastFocusProxy",gu=g.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=gl(Hm,n);return C.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",S1="toast.swipeStart",C1="toast.swipeMove",T1="toast.swipeCancel",k1="toast.swipeEnd",Wm=g.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[l,a]=f1({prop:r,defaultProp:o??!0,onChange:i,caller:ki});return C.jsx(kc,{present:n||l,children:C.jsx(R1,{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)})})})});Wm.displayName=ki;var[P1,b1]=$m(ki,{onClose(){}}),R1=g.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,y=gl(ki,n),[w,m]=g.useState(null),h=Pt(t,M=>m(M)),v=g.useRef(null),E=g.useRef(null),S=o||y.duration,T=g.useRef(0),k=g.useRef(S),O=g.useRef(0),{onToastAdd:L,onToastRemove:N}=y,F=Dn(()=>{var G;(w==null?void 0:w.contains(document.activeElement))&&((G=y.viewport)==null||G.focus()),s()}),D=g.useCallback(M=>{!M||M===1/0||(window.clearTimeout(O.current),T.current=new Date().getTime(),O.current=window.setTimeout(F,M))},[F]);g.useEffect(()=>{const M=y.viewport;if(M){const G=()=>{D(k.current),u==null||u()},$=()=>{const V=new Date().getTime()-T.current;k.current=k.current-V,window.clearTimeout(O.current),a==null||a()};return M.addEventListener(mu,$),M.addEventListener(vu,G),()=>{M.removeEventListener(mu,$),M.removeEventListener(vu,G)}}},[y.viewport,S,a,u,D]),g.useEffect(()=>{i&&!y.isClosePausedRef.current&&D(S)},[i,S,y.isClosePausedRef,D]),g.useEffect(()=>(L(),()=>N()),[L,N]);const Q=g.useMemo(()=>w?Zm(w):null,[w]);return y.viewport?C.jsxs(C.Fragment,{children:[Q&&C.jsx(_1,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:Q}),C.jsx(P1,{scope:n,onClose:F,children:Ti.createPortal(C.jsx(bc.ItemSlot,{scope:n,children:C.jsx(i1,{asChild:!0,onEscapeKeyDown:ye(l,()=>{y.isFocusedToastEscapeKeyDownRef.current||F(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:C.jsx(Fe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":y.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||(y.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,V=!!E.current,b=["left","right"].includes(y.swipeDirection),_=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,I=b?_(0,G):0,H=b?0:_(0,$),z=M.pointerType==="touch"?10:2,K={x:I,y:H},q={originalEvent:M,delta:K};V?(E.current=K,Xi(C1,d,q,{discrete:!1})):Sf(K,y.swipeDirection,z)?(E.current=K,Xi(S1,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 V=M.currentTarget,b={originalEvent:M,delta:G};Sf(G,y.swipeDirection,y.swipeThreshold)?Xi(k1,f,b,{discrete:!0}):Xi(T1,p,b,{discrete:!0}),V.addEventListener("click",_=>_.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),_1=e=>{const{__scopeToast:t,children:n,...r}=e,o=gl(ki,t),[i,s]=g.useState(!1),[l,a]=g.useState(!1);return N1(()=>s(!0)),g.useEffect(()=>{const u=window.setTimeout(()=>a(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:C.jsx(Fm,{asChild:!0,children:C.jsx(vl,{...r,children:i&&C.jsxs(C.Fragment,{children:[o.label," ",n]})})})},O1="ToastTitle",Qm=g.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return C.jsx(Fe.div,{...r,ref:t})});Qm.displayName=O1;var A1="ToastDescription",Km=g.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return C.jsx(Fe.div,{...r,ref:t})});Km.displayName=A1;var Ym="ToastAction",Gm=g.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?C.jsx(Xm,{altText:n,asChild:!0,children:C.jsx(Rc,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Ym}\`. Expected non-empty \`string\`.`),null)});Gm.displayName=Ym;var qm="ToastClose",Rc=g.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=b1(qm,n);return C.jsx(Xm,{asChild:!0,children:C.jsx(Fe.button,{type:"button",...r,ref:t,onClick:ye(e.onClick,o.onClose)})})});Rc.displayName=qm;var Xm=g.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return C.jsx(Fe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Zm(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),L1(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(...Zm(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?Im(o,i):o.dispatchEvent(i)}var Sf=(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 N1(e=()=>{}){const t=Dn(e);zn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function L1(e){return e.nodeType===e.ELEMENT_NODE}function M1(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 I1=Um,Jm=Vm,ev=Wm,tv=Qm,nv=Km,rv=Gm,ov=Rc;function iv(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,Tf=sv,_c=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Tf(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=Cf(c)||Cf(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[y,w]=x;return Array.isArray(w)?w.includes({...i,...l}[y]):{...i,...l}[y]===w})?[...u,d,p]:u},[]);return Tf(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 j1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),lv=(...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 D1={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 z1=g.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...l},a)=>g.createElement("svg",{ref:a,...D1,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:lv("lucide",o),...l},[...s.map(([u,c])=>g.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 av=(e,t)=>{const n=g.forwardRef(({className:r,...o},i)=>g.createElement(z1,{ref:i,iconNode:t,className:lv(`lucide-${j1(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 F1=av("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** * @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 $1=av("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Oc="-",U1=e=>{const t=V1(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const l=s.split(Oc);return l[0]===""&&l.length!==1&&l.shift(),uv(l,t)||B1(s)},getConflictingClassGroupIds:(s,l)=>{const a=n[s]||[];return l&&r[s]?[...a,...r[s]]:a}}},uv=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?uv(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},kf=/^\[(.+)\]$/,B1=e=>{if(kf.test(e)){const t=kf.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},V1=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return W1(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:Pf(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(H1(o)){yu(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{yu(s,Pf(t,i),n,r)})})},Pf=(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},H1=e=>e.isThemeGetter,W1=(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,Q1=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)}}},cv="!",K1=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:y}};return n?l=>n({className:l,parseClassName:s}):s},Y1=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},G1=e=>({cache:Q1(e.cacheSize),parseClassName:K1(e),...U1(e)}),q1=/\s+/,X1=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(q1);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,y=r(x?p.substring(0,f):p);if(!y){if(!x){l=u+(l.length>0?" "+l:l);continue}if(y=r(p),!y){l=u+(l.length>0?" "+l:l);continue}x=!1}const w=Y1(c).join(":"),m=d?w+cv:w,h=m+y;if(i.includes(h))continue;i.push(h);const v=o(y,x);for(let E=0;E0?" "+l:l)}return l};function Z1(){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=G1(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=X1(a,n);return o(a,c),c}return function(){return i(Z1.apply(null,arguments))}}const re=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},fv=/^\[(?:([a-z-]+):)?(.+)\]$/i,ex=/^\d+\/\d+$/,tx=new Set(["px","full","screen"]),nx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,rx=/\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$/,ox=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ix=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,sx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Bt=e=>Qr(e)||tx.has(e)||ex.test(e),dn=e=>mo(e,"length",hx),Qr=e=>!!e&&!Number.isNaN(Number(e)),da=e=>mo(e,"number",Qr),Ao=e=>!!e&&Number.isInteger(Number(e)),lx=e=>e.endsWith("%")&&Qr(e.slice(0,-1)),W=e=>fv.test(e),fn=e=>nx.test(e),ax=new Set(["length","size","percentage"]),ux=e=>mo(e,ax,pv),cx=e=>mo(e,"position",pv),dx=new Set(["image","url"]),fx=e=>mo(e,dx,vx),px=e=>mo(e,"",mx),No=()=>!0,mo=(e,t,n)=>{const r=fv.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},hx=e=>rx.test(e)&&!ox.test(e),pv=()=>!1,mx=e=>ix.test(e),vx=e=>sx.test(e),gx=()=>{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"),y=re("inset"),w=re("margin"),m=re("opacity"),h=re("padding"),v=re("saturate"),E=re("scale"),S=re("sepia"),T=re("skew"),k=re("space"),O=re("translate"),L=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",W,t],D=()=>[W,t],Q=()=>["",Bt,dn],M=()=>["auto",Qr,W],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],b=()=>["start","end","center","between","around","evenly","stretch"],_=()=>["","0",W],I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[Qr,W];return{cacheSize:500,separator:":",theme:{colors:[No],spacing:[Bt,dn],blur:["none","",fn,W],brightness:H(),borderColor:[e],borderRadius:["none","","full",fn,W],borderSpacing:D(),borderWidth:Q(),contrast:H(),grayscale:_(),hueRotate:H(),invert:_(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[lx,dn],inset:F(),margin:F(),opacity:H(),padding:D(),saturate:H(),scale:H(),sepia:_(),skew:H(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",W]}],container:["container"],columns:[{columns:[fn]}],"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:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],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:_()}],shrink:[{shrink:_()}],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",...b()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...b(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...b(),"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":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"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:[fn]},fn]}],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",fn,dn]}],"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",Bt,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",Bt,dn]}],"underline-offset":[{"underline-offset":["auto",Bt,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:D()}],"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(),cx]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ux]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},fx]}],"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":[Bt,W]}],"outline-w":[{outline:[Bt,dn]}],"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":[Bt,dn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",fn,px]}],"shadow-color":[{shadow:[No]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",fn,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:H()}],ease:[{ease:["linear","in","out","in-out",W]}],delay:[{delay:H()}],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":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"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":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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:[Bt,dn,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"]}}},yx=J1(gx);function Ne(...e){return yx(sv(e))}const wx=I1,hv=g.forwardRef(({className:e,...t},n)=>C.jsx(Jm,{ref:n,className:Ne("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}));hv.displayName=Jm.displayName;const xx=_c("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"}}),mv=g.forwardRef(({className:e,variant:t,...n},r)=>C.jsx(ev,{ref:r,className:Ne(xx({variant:t}),e),...n}));mv.displayName=ev.displayName;const Ex=g.forwardRef(({className:e,...t},n)=>C.jsx(rv,{ref:n,className:Ne("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}));Ex.displayName=rv.displayName;const vv=g.forwardRef(({className:e,...t},n)=>C.jsx(ov,{ref:n,className:Ne("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:C.jsx($1,{className:"h-4 w-4"})}));vv.displayName=ov.displayName;const gv=g.forwardRef(({className:e,...t},n)=>C.jsx(tv,{ref:n,className:Ne("text-sm font-semibold",e),...t}));gv.displayName=tv.displayName;const yv=g.forwardRef(({className:e,...t},n)=>C.jsx(nv,{ref:n,className:Ne("text-sm opacity-90",e),...t}));yv.displayName=nv.displayName;function Sx(){const{toasts:e}=Bw();return C.jsxs(wx,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return C.jsxs(mv,{...i,children:[C.jsxs("div",{className:"grid gap-1",children:[n&&C.jsx(gv,{children:n}),r&&C.jsx(yv,{children:r})]}),o,C.jsx(vv,{})]},t)}),C.jsx(hv,{})]})}var Hs=["light","dark"],Ac="(prefers-color-scheme: dark)",Cx=typeof window>"u",Nc=g.createContext(void 0),Tx={setTheme:e=>{},themes:[]},kx=()=>{var e;return(e=g.useContext(Nc))!=null?e:Tx},Px=e=>g.useContext(Nc)?e.children:g.createElement(Rx,{...e}),bx=["light","dark"],Rx=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:o="theme",themes:i=bx,defaultTheme:s=n?"system":"light",attribute:l="data-theme",value:a,children:u,nonce:c})=>{let[d,p]=g.useState(()=>bf(o,s)),[f,x]=g.useState(()=>bf(o)),y=a?Object.values(a):i,w=g.useCallback(E=>{let S=E;if(!S)return;E==="system"&&n&&(S=Rf());let T=a?a[S]:S,k=t?Ox():null,O=document.documentElement;if(l==="class"?(O.classList.remove(...y),T&&O.classList.add(T)):T?O.setAttribute(l,T):O.removeAttribute(l),r){let L=Hs.includes(s)?s:null,N=Hs.includes(S)?S:L;O.style.colorScheme=N}k==null||k()},[]),m=g.useCallback(E=>{let S=typeof E=="function"?E(E):E;p(S);try{localStorage.setItem(o,S)}catch{}},[e]),h=g.useCallback(E=>{let S=Rf(E);x(S),d==="system"&&n&&!e&&w("system")},[d,e]);g.useEffect(()=>{let E=window.matchMedia(Ac);return E.addListener(h),h(E),()=>E.removeListener(h)},[h]),g.useEffect(()=>{let E=S=>{if(S.key!==o)return;let T=S.newValue||s;m(T)};return window.addEventListener("storage",E),()=>window.removeEventListener("storage",E)},[m]),g.useEffect(()=>{w(e??d)},[e,d]);let v=g.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 g.createElement(Nc.Provider,{value:v},g.createElement(_x,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:r,storageKey:o,themes:i,defaultTheme:s,attribute:l,value:a,children:u,attrs:y,nonce:c}),u)},_x=g.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?Hs.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,y=!1,w=!0)=>{let m=s?s[x]:x,h=y?x+"|| ''":`'${m}'`,v="";return o&&w&&!y&&Hs.includes(x)&&(v+=`d.style.colorScheme = '${x}';`),n==="class"?y||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='${Ac}',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 g.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:f}})}),bf=(e,t)=>{if(Cx)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},Ox=()=>{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)}},Rf=e=>(e||(e=window.matchMedia(Ac)),e.matches?"dark":"light"),Ax=e=>{switch(e){case"success":return Mx;case"info":return jx;case"warning":return Ix;case"error":return Dx;default:return null}},Nx=Array(12).fill(0),Lx=({visible:e,className:t})=>R.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},R.createElement("div",{className:"sonner-spinner"},Nx.map((n,r)=>R.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Mx=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"})),Ix=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"})),jx=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"})),Dx=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"})),zx=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"})),Fx=()=>{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,$x=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(Bx(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}},$e=new $x,Ux=(e,t)=>{let n=(t==null?void 0:t.id)||wu++;return $e.addToast({title:e,...t,id:n}),n},Bx=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Vx=Ux,Hx=()=>$e.toasts,Wx=()=>$e.getActiveToasts(),BT=Object.assign(Vx,{success:$e.success,info:$e.info,warning:$e.warning,error:$e.error,custom:$e.custom,message:$e.message,promise:$e.promise,dismiss:$e.dismiss,loading:$e.loading},{getHistory:Hx,getToasts:Wx});function Qx(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))}Qx(`: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 Kx=3,Yx="32px",Gx="16px",_f=4e3,qx=356,Xx=14,Zx=20,Jx=200;function mt(...e){return e.filter(Boolean).join(" ")}function eE(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var tE=e=>{var t,n,r,o,i,s,l,a,u,c,d;let{invert:p,toast:f,unstyled:x,interacting:y,setHeights:w,visibleToasts:m,heights:h,index:v,toasts:E,expanded:S,removeToast:T,defaultRichColors:k,closeButton:O,style:L,cancelButtonStyle:N,actionButtonStyle:F,className:D="",descriptionClassName:Q="",duration:M,position:G,gap:$,loadingIcon:V,expandByDefault:b,classNames:_,icons:I,closeButtonAriaLabel:H="Close toast",pauseWhenPageIsHidden:z}=e,[K,q]=R.useState(null),[he,ke]=R.useState(null),[J,yr]=R.useState(!1),[rn,Hn]=R.useState(!1),[on,wr]=R.useState(!1),[sn,Ri]=R.useState(!1),[bl,_i]=R.useState(!1),[Rl,wo]=R.useState(0),[xr,Kc]=R.useState(0),xo=R.useRef(f.duration||M||_f),Yc=R.useRef(null),Wn=R.useRef(null),Cg=v===0,Tg=v+1<=m,tt=f.type,Er=f.dismissible!==!1,kg=f.className||"",Pg=f.descriptionClassName||"",Oi=R.useMemo(()=>h.findIndex(U=>U.toastId===f.id)||0,[h,f.id]),bg=R.useMemo(()=>{var U;return(U=f.closeButton)!=null?U:O},[f.closeButton,O]),Gc=R.useMemo(()=>f.duration||M||_f,[f.duration,M]),_l=R.useRef(0),Sr=R.useRef(0),qc=R.useRef(0),Cr=R.useRef(null),[Rg,_g]=G.split("-"),Xc=R.useMemo(()=>h.reduce((U,te,se)=>se>=Oi?U:U+te.height,0),[h,Oi]),Zc=Fx(),Og=f.invert||p,Ol=tt==="loading";Sr.current=R.useMemo(()=>Oi*$+Xc,[Oi,Xc]),R.useEffect(()=>{xo.current=Gc},[Gc]),R.useEffect(()=>{yr(!0)},[]),R.useEffect(()=>{let U=Wn.current;if(U){let te=U.getBoundingClientRect().height;return Kc(te),w(se=>[{toastId:f.id,height:te,position:f.position},...se]),()=>w(se=>se.filter(dt=>dt.toastId!==f.id))}},[w,f.id]),R.useLayoutEffect(()=>{if(!J)return;let U=Wn.current,te=U.style.height;U.style.height="auto";let se=U.getBoundingClientRect().height;U.style.height=te,Kc(se),w(dt=>dt.find(ft=>ft.toastId===f.id)?dt.map(ft=>ft.toastId===f.id?{...ft,height:se}:ft):[{toastId:f.id,height:se,position:f.position},...dt])},[J,f.title,f.description,w,f.id]);let ln=R.useCallback(()=>{Hn(!0),wo(Sr.current),w(U=>U.filter(te=>te.toastId!==f.id)),setTimeout(()=>{T(f)},Jx)},[f,T,w,Sr]);R.useEffect(()=>{if(f.promise&&tt==="loading"||f.duration===1/0||f.type==="loading")return;let U;return S||y||z&&Zc?(()=>{if(qc.current<_l.current){let te=new Date().getTime()-_l.current;xo.current=xo.current-te}qc.current=new Date().getTime()})():xo.current!==1/0&&(_l.current=new Date().getTime(),U=setTimeout(()=>{var te;(te=f.onAutoClose)==null||te.call(f,f),ln()},xo.current)),()=>clearTimeout(U)},[S,y,f,tt,z,Zc,ln]),R.useEffect(()=>{f.delete&&ln()},[ln,f.delete]);function Ag(){var U,te,se;return I!=null&&I.loading?R.createElement("div",{className:mt(_==null?void 0:_.loader,(U=f==null?void 0:f.classNames)==null?void 0:U.loader,"sonner-loader"),"data-visible":tt==="loading"},I.loading):V?R.createElement("div",{className:mt(_==null?void 0:_.loader,(te=f==null?void 0:f.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":tt==="loading"},V):R.createElement(Lx,{className:mt(_==null?void 0:_.loader,(se=f==null?void 0:f.classNames)==null?void 0:se.loader),visible:tt==="loading"})}return R.createElement("li",{tabIndex:0,ref:Wn,className:mt(D,kg,_==null?void 0:_.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,_==null?void 0:_.default,_==null?void 0:_[tt],(n=f==null?void 0:f.classNames)==null?void 0:n[tt]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:k,"data-styled":!(f.jsx||f.unstyled||x),"data-mounted":J,"data-promise":!!f.promise,"data-swiped":bl,"data-removed":rn,"data-visible":Tg,"data-y-position":Rg,"data-x-position":_g,"data-index":v,"data-front":Cg,"data-swiping":on,"data-dismissible":Er,"data-type":tt,"data-invert":Og,"data-swipe-out":sn,"data-swipe-direction":he,"data-expanded":!!(S||b&&J),style:{"--index":v,"--toasts-before":v,"--z-index":E.length-v,"--offset":`${rn?Rl:Sr.current}px`,"--initial-height":b?"auto":`${xr}px`,...L,...f.style},onDragEnd:()=>{wr(!1),q(null),Cr.current=null},onPointerDown:U=>{Ol||!Er||(Yc.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,dt;if(sn||!Er)return;Cr.current=null;let ft=Number(((U=Wn.current)==null?void 0:U.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),an=Number(((te=Wn.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Qn=new Date().getTime()-((se=Yc.current)==null?void 0:se.getTime()),pt=K==="x"?ft:an,un=Math.abs(pt)/Qn;if(Math.abs(pt)>=Zx||un>.11){wo(Sr.current),(dt=f.onDismiss)==null||dt.call(f,f),ke(K==="x"?ft>0?"right":"left":an>0?"down":"up"),ln(),Ri(!0),_i(!1);return}wr(!1),q(null)},onPointerMove:U=>{var te,se,dt,ft;if(!Cr.current||!Er||((te=window.getSelection())==null?void 0:te.toString().length)>0)return;let an=U.clientY-Cr.current.y,Qn=U.clientX-Cr.current.x,pt=(se=e.swipeDirections)!=null?se:eE(G);!K&&(Math.abs(Qn)>1||Math.abs(an)>1)&&q(Math.abs(Qn)>Math.abs(an)?"x":"y");let un={x:0,y:0};K==="y"?(pt.includes("top")||pt.includes("bottom"))&&(pt.includes("top")&&an<0||pt.includes("bottom")&&an>0)&&(un.y=an):K==="x"&&(pt.includes("left")||pt.includes("right"))&&(pt.includes("left")&&Qn<0||pt.includes("right")&&Qn>0)&&(un.x=Qn),(Math.abs(un.x)>0||Math.abs(un.y)>0)&&_i(!0),(dt=Wn.current)==null||dt.style.setProperty("--swipe-amount-x",`${un.x}px`),(ft=Wn.current)==null||ft.style.setProperty("--swipe-amount-y",`${un.y}px`)}},bg&&!f.jsx?R.createElement("button",{"aria-label":H,"data-disabled":Ol,"data-close-button":!0,onClick:Ol||!Er?()=>{}:()=>{var U;ln(),(U=f.onDismiss)==null||U.call(f,f)},className:mt(_==null?void 0:_.closeButton,(o=f==null?void 0:f.classNames)==null?void 0:o.closeButton)},(i=I==null?void 0:I.close)!=null?i:zx):null,f.jsx||g.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:R.createElement(R.Fragment,null,tt||f.icon||f.promise?R.createElement("div",{"data-icon":"",className:mt(_==null?void 0:_.icon,(s=f==null?void 0:f.classNames)==null?void 0:s.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Ag():null,f.type!=="loading"?f.icon||(I==null?void 0:I[tt])||Ax(tt):null):null,R.createElement("div",{"data-content":"",className:mt(_==null?void 0:_.content,(l=f==null?void 0:f.classNames)==null?void 0:l.content)},R.createElement("div",{"data-title":"",className:mt(_==null?void 0:_.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:mt(Q,Pg,_==null?void 0:_.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),g.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),ln())},className:mt(_==null?void 0:_.cancelButton,(c=f==null?void 0:f.classNames)==null?void 0:c.cancelButton)},f.cancel.label):null,g.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&&ln())},className:mt(_==null?void 0:_.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 nE(e,t){let n={};return[e,t].forEach((r,o)=>{let i=o===1,s=i?"--mobile-offset":"--offset",l=i?Gx:Yx;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 rE=g.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=Kx,toastOptions:y,dir:w=Of(),gap:m=Xx,loadingIcon:h,icons:v,containerAriaLabel:E="Notifications",pauseWhenPageIsHidden:S}=e,[T,k]=R.useState([]),O=R.useMemo(()=>Array.from(new Set([r].concat(T.filter(z=>z.position).map(z=>z.position)))),[T,r]),[L,N]=R.useState([]),[F,D]=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"),V=R.useRef(null),b=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),_=R.useRef(null),I=R.useRef(!1),H=R.useCallback(z=>{k(K=>{var q;return(q=K.find(he=>he.id===z.id))!=null&&q.delete||$e.dismiss(z.id),K.filter(({id:he})=>he!==z.id)})},[]);return R.useEffect(()=>$e.subscribe(z=>{if(z.dismiss){k(K=>K.map(q=>q.id===z.id?{...q,delete:!0}:q));return}setTimeout(()=>{Tm.flushSync(()=>{k(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(()=>{T.length<=1&&D(!1)},[T]),R.useEffect(()=>{let z=K=>{var q,he;o.every(ke=>K[ke]||K.code===ke)&&(D(!0),(q=V.current)==null||q.focus()),K.code==="Escape"&&(document.activeElement===V.current||(he=V.current)!=null&&he.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[o]),R.useEffect(()=>{if(V.current)return()=>{_.current&&(_.current.focus({preventScroll:!0}),_.current=null,I.current=!1)}},[V.current]),R.createElement("section",{ref:t,"aria-label":`${E} ${b}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},O.map((z,K)=>{var q;let[he,ke]=z.split("-");return T.length?R.createElement("ol",{key:z,dir:w==="auto"?Of():w,tabIndex:-1,ref:V,className:l,"data-sonner-toaster":!0,"data-theme":G,"data-y-position":he,"data-lifted":F&&T.length>1&&!i,"data-x-position":ke,style:{"--front-toast-height":`${((q=L[0])==null?void 0:q.height)||0}px`,"--width":`${qx}px`,"--gap":`${m}px`,...f,...nE(a,u)},onBlur:J=>{I.current&&!J.currentTarget.contains(J.relatedTarget)&&(I.current=!1,_.current&&(_.current.focus({preventScroll:!0}),_.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||I.current||(I.current=!0,_.current=J.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{Q||D(!1)},onDragEnd:()=>D(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||M(!0)},onPointerUp:()=>M(!1)},T.filter(J=>!J.position&&K===0||J.position===z).map((J,yr)=>{var rn,Hn;return R.createElement(tE,{key:J.id,icons:v,index:yr,toast:J,defaultRichColors:d,duration:(rn=y==null?void 0:y.duration)!=null?rn:p,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:n,visibleToasts:x,closeButton:(Hn=y==null?void 0:y.closeButton)!=null?Hn:s,interacting:Q,position:z,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,removeToast:H,toasts:T.filter(on=>on.position==J.position),heights:L.filter(on=>on.position==J.position),setHeights:N,expandByDefault:i,gap:m,loadingIcon:h,expanded:F,pauseWhenPageIsHidden:S,swipeDirections:e.swipeDirections})})):null}))});const oE=({...e})=>{const{theme:t="system"}=kx();return C.jsx(rE,{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})},iE=["top","right","bottom","left"],Fn=Math.min,Ye=Math.max,Ws=Math.round,Ji=Math.floor,zt=e=>({x:e,y:e}),sE={left:"right",right:"left",bottom:"top",top:"bottom"},lE={start:"end",end:"start"};function xu(e,t,n){return Ye(e,Fn(t,n))}function en(e,t){return typeof e=="function"?e(t):e}function tn(e){return e.split("-")[0]}function vo(e){return e.split("-")[1]}function Lc(e){return e==="x"?"y":"x"}function Mc(e){return e==="y"?"height":"width"}const aE=new Set(["top","bottom"]);function It(e){return aE.has(tn(e))?"y":"x"}function Ic(e){return Lc(It(e))}function uE(e,t,n){n===void 0&&(n=!1);const r=vo(e),o=Ic(e),i=Mc(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 cE(e){const t=Qs(e);return[Eu(e),t,Eu(t)]}function Eu(e){return e.replace(/start|end/g,t=>lE[t])}const Af=["left","right"],Nf=["right","left"],dE=["top","bottom"],fE=["bottom","top"];function pE(e,t,n){switch(e){case"top":case"bottom":return n?t?Nf:Af:t?Af:Nf;case"left":case"right":return t?dE:fE;default:return[]}}function hE(e,t,n,r){const o=vo(e);let i=pE(tn(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=>sE[t])}function mE(e){return{top:0,right:0,bottom:0,left:0,...e}}function wv(e){return typeof e!="number"?mE(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 Lf(e,t,n){let{reference:r,floating:o}=e;const i=It(t),s=Ic(t),l=Mc(s),a=tn(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 vE=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}=Lf(u,r,a),p=r,f={},x=0;for(let y=0;y({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}=en(e,t)||{};if(u==null)return{};const d=wv(c),p={x:n,y:r},f=Ic(o),x=Mc(f),y=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],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let k=T?T[v]:0;(!k||!await(s.isElement==null?void 0:s.isElement(T)))&&(k=l.floating[v]||i.floating[x]);const O=E/2-S/2,L=k/2-y[x]/2-1,N=Fn(d[m],L),F=Fn(d[h],L),D=N,Q=k-y[x]-F,M=k/2-y[x]/2+O,G=xu(D,M,Q),$=!a.arrow&&vo(o)!=null&&M!==G&&i.reference[x]/2-(MM<=0)){var F,D;const M=(((F=i.flip)==null?void 0:F.index)||0)+1,G=k[M];if(G&&(!(d==="alignment"?h!==It(G):!1)||N.every(b=>b.overflows[0]>0&&It(b.placement)===h)))return{data:{index:M,overflows:N},reset:{placement:G}};let $=(D=N.filter(V=>V.overflows[0]<=0).sort((V,b)=>V.overflows[1]-b.overflows[1])[0])==null?void 0:D.placement;if(!$)switch(f){case"bestFit":{var Q;const V=(Q=N.filter(b=>{if(T){const _=It(b.placement);return _===h||_==="y"}return!0}).map(b=>[b.placement,b.overflows.filter(_=>_>0).reduce((_,I)=>_+I,0)]).sort((b,_)=>b[1]-_[1])[0])==null?void 0:Q[0];V&&($=V);break}case"initialPlacement":$=l;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Mf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function If(e){return iE.some(t=>e[t]>=0)}const wE=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=en(e,t);switch(r){case"referenceHidden":{const i=await ci(t,{...o,elementContext:"reference"}),s=Mf(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:If(s)}}}case"escaped":{const i=await ci(t,{...o,altBoundary:!0}),s=Mf(i,n.floating);return{data:{escapedOffsets:s,escaped:If(s)}}}default:return{}}}}},xv=new Set(["left","top"]);async function xE(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=tn(n),l=vo(n),a=It(n)==="y",u=xv.has(s)?-1:1,c=i&&a?-1:1,d=en(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 EE=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 xE(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}}}}},SE=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}=en(e,t),u={x:n,y:r},c=await ci(t,a),d=It(tn(o)),p=Lc(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 y=l.fn({...t,[p]:f,[d]:x});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[p]:i,[d]:s}}}}}},CE=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}=en(e,t),c={x:n,y:r},d=It(o),p=Lc(d);let f=c[p],x=c[d];const y=en(l,t),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};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=xv.has(tn(o)),S=i.reference[d]-i.floating[v]+(E&&((m=s.offset)==null?void 0:m[d])||0)+(E?0:w.crossAxis),T=i.reference[d]+i.reference[v]+(E?0:((h=s.offset)==null?void 0:h[d])||0)-(E?w.crossAxis:0);xT&&(x=T)}return{[p]:f,[d]:x}}}},TE=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}=en(e,t),c=await ci(t,u),d=tn(o),p=vo(o),f=It(o)==="y",{width:x,height:y}=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=y-c.top-c.bottom,v=x-c.left-c.right,E=Fn(y-c[w],h),S=Fn(x-c[m],v),T=!t.middlewareData.shift;let k=E,O=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=h),T&&!p){const N=Ye(c.left,0),F=Ye(c.right,0),D=Ye(c.top,0),Q=Ye(c.bottom,0);f?O=x-2*(N!==0||F!==0?N+F:Ye(c.left,c.right)):k=y-2*(D!==0||Q!==0?D+Q:Ye(c.top,c.bottom))}await a({...t,availableWidth:O,availableHeight:k});const L=await s.getDimensions(l.floating);return x!==L.width||y!==L.height?{reset:{rects:!0}}:{}}}};function yl(){return typeof window<"u"}function go(e){return Ev(e)?(e.nodeName||"").toLowerCase():"#document"}function Xe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $t(e){var t;return(t=(Ev(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ev(e){return yl()?e instanceof Node||e instanceof Xe(e).Node:!1}function bt(e){return yl()?e instanceof Element||e instanceof Xe(e).Element:!1}function Ft(e){return yl()?e instanceof HTMLElement||e instanceof Xe(e).HTMLElement:!1}function jf(e){return!yl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xe(e).ShadowRoot}const kE=new Set(["inline","contents"]);function Pi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Rt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!kE.has(o)}const PE=new Set(["table","td","th"]);function bE(e){return PE.has(go(e))}const RE=[":popover-open",":modal"];function wl(e){return RE.some(t=>{try{return e.matches(t)}catch{return!1}})}const _E=["transform","translate","scale","rotate","perspective"],OE=["transform","translate","scale","rotate","perspective","filter"],AE=["paint","layout","strict","content"];function jc(e){const t=Dc(),n=bt(e)?Rt(e):e;return _E.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)||OE.some(r=>(n.willChange||"").includes(r))||AE.some(r=>(n.contain||"").includes(r))}function NE(e){let t=$n(e);for(;Ft(t)&&!uo(t);){if(jc(t))return t;if(wl(t))return null;t=$n(t)}return null}function Dc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const LE=new Set(["html","body","#document"]);function uo(e){return LE.has(go(e))}function Rt(e){return Xe(e).getComputedStyle(e)}function xl(e){return bt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $n(e){if(go(e)==="html")return e;const t=e.assignedSlot||e.parentNode||jf(e)&&e.host||$t(e);return jf(t)?t.host:t}function Sv(e){const t=$n(e);return uo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ft(t)&&Pi(t)?t:Sv(t)}function di(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Sv(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Xe(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 Cv(e){const t=Rt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ft(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 zc(e){return bt(e)?e:e.contextElement}function Kr(e){const t=zc(e);if(!Ft(t))return zt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Cv(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 ME=zt(0);function Tv(e){const t=Xe(e);return!Dc()||!t.visualViewport?ME:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function IE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Xe(e)?!1:t}function pr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=zc(e);let s=zt(1);t&&(r?bt(r)&&(s=Kr(r)):s=Kr(e));const l=IE(i,n,r)?Tv(i):zt(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=Xe(i),f=r&&bt(r)?Xe(r):r;let x=p,y=Su(x);for(;y&&r&&f!==x;){const w=Kr(y),m=y.getBoundingClientRect(),h=Rt(y),v=m.left+(y.clientLeft+parseFloat(h.paddingLeft))*w.x,E=m.top+(y.clientTop+parseFloat(h.paddingTop))*w.y;a*=w.x,u*=w.y,c*=w.x,d*=w.y,a+=v,u+=E,x=Xe(y),y=Su(x)}}return Ks({width:c,height:d,x:a,y:u})}function Fc(e,t){const n=xl(e).scrollLeft;return t?t.left+n:pr($t(e)).left+n}function kv(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Fc(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function jE(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=$t(r),l=t?wl(t.floating):!1;if(r===s||l&&i)return n;let a={scrollLeft:0,scrollTop:0},u=zt(1);const c=zt(0),d=Ft(r);if((d||!d&&!i)&&((go(r)!=="body"||Pi(s))&&(a=xl(r)),Ft(r))){const f=pr(r);u=Kr(r),c.x=f.x+r.clientLeft,c.y=f.y+r.clientTop}const p=s&&!d&&!i?kv(s,a,!0):zt(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 DE(e){return Array.from(e.getClientRects())}function zE(e){const t=$t(e),n=xl(e),r=e.ownerDocument.body,o=Ye(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ye(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Fc(e);const l=-n.scrollTop;return Rt(r).direction==="rtl"&&(s+=Ye(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function FE(e,t){const n=Xe(e),r=$t(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 $E=new Set(["absolute","fixed"]);function UE(e,t){const n=pr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ft(e)?Kr(e):zt(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=FE(e,n);else if(t==="document")r=zE($t(e));else if(bt(t))r=UE(t,n);else{const o=Tv(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ks(r)}function Pv(e,t){const n=$n(e);return n===t||!bt(n)||uo(n)?!1:Rt(n).position==="fixed"||Pv(n,t)}function BE(e,t){const n=t.get(e);if(n)return n;let r=di(e,[],!1).filter(l=>bt(l)&&go(l)!=="body"),o=null;const i=Rt(e).position==="fixed";let s=i?$n(e):e;for(;bt(s)&&!uo(s);){const l=Rt(s),a=jc(s);!a&&l.position==="fixed"&&(o=null),(i?!a&&!o:!a&&l.position==="static"&&!!o&&$E.has(o.position)||Pi(s)&&!a&&Pv(e,s))?r=r.filter(c=>c!==s):o=l,s=$n(s)}return t.set(e,r),r}function VE(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?wl(t)?[]:BE(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,c)=>{const d=Df(t,c,o);return u.top=Ye(d.top,u.top),u.right=Fn(d.right,u.right),u.bottom=Fn(d.bottom,u.bottom),u.left=Ye(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 HE(e){const{width:t,height:n}=Cv(e);return{width:t,height:n}}function WE(e,t,n){const r=Ft(t),o=$t(t),i=n==="fixed",s=pr(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=zt(0);function u(){a.x=Fc(o)}if(r||!r&&!i)if((go(t)!=="body"||Pi(o))&&(l=xl(t)),r){const f=pr(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?kv(o,l):zt(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 Rt(e).position==="static"}function zf(e,t){if(!Ft(e)||Rt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return $t(e)===n&&(n=n.ownerDocument.body),n}function bv(e,t){const n=Xe(e);if(wl(e))return n;if(!Ft(e)){let o=$n(e);for(;o&&!uo(o);){if(bt(o)&&!fa(o))return o;o=$n(o)}return n}let r=zf(e,t);for(;r&&bE(r)&&fa(r);)r=zf(r,t);return r&&uo(r)&&fa(r)&&!jc(r)?n:r||NE(e)||n}const QE=async function(e){const t=this.getOffsetParent||bv,n=this.getDimensions,r=await n(e.floating);return{reference:WE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function KE(e){return Rt(e).direction==="rtl"}const YE={convertOffsetParentRelativeRectToViewportRelativeRect:jE,getDocumentElement:$t,getClippingRect:VE,getOffsetParent:bv,getElementRects:QE,getClientRects:DE,getDimensions:HE,getScale:Kr,isElement:bt,isRTL:KE};function Rv(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function GE(e,t){let n=null,r;const o=$t(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),y=Ji(o.clientWidth-(c+p)),w=Ji(o.clientHeight-(d+f)),m=Ji(c),v={rootMargin:-x+"px "+-y+"px "+-w+"px "+-m+"px",threshold:Ye(0,Fn(1,a))||1};let E=!0;function S(T){const k=T[0].intersectionRatio;if(k!==a){if(!E)return s();k?s(!1,k):r=setTimeout(()=>{s(!1,1e-7)},1e3)}k===1&&!Rv(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 qE(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=zc(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?GE(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,y=a?pr(e):null;a&&w();function w(){const m=pr(e);y&&!Rv(y,m)&&n(),y=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 XE=EE,ZE=SE,JE=yE,eS=TE,tS=wE,Ff=gE,nS=CE,rS=(e,t,n)=>{const r=new Map,o={platform:YE,...n},i={...o.platform,_c:r};return vE(e,t,{...o,platform:i})};var oS=typeof document<"u",iS=function(){},ys=oS?g.useLayoutEffect:iS;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 _v(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $f(e,t){const n=_v(e);return Math.round(t*n)/n}function pa(e){const t=g.useRef(e);return ys(()=>{t.current=e}),t}function sS(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]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=g.useState(r);Ys(p,r)||f(r);const[x,y]=g.useState(null),[w,m]=g.useState(null),h=g.useCallback(b=>{b!==T.current&&(T.current=b,y(b))},[]),v=g.useCallback(b=>{b!==k.current&&(k.current=b,m(b))},[]),E=i||x,S=s||w,T=g.useRef(null),k=g.useRef(null),O=g.useRef(c),L=a!=null,N=pa(a),F=pa(o),D=pa(u),Q=g.useCallback(()=>{if(!T.current||!k.current)return;const b={placement:t,strategy:n,middleware:p};F.current&&(b.platform=F.current),rS(T.current,k.current,b).then(_=>{const I={..._,isPositioned:D.current!==!1};M.current&&!Ys(O.current,I)&&(O.current=I,Ti.flushSync(()=>{d(I)}))})},[p,t,n,F,D]);ys(()=>{u===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d(b=>({...b,isPositioned:!1})))},[u]);const M=g.useRef(!1);ys(()=>(M.current=!0,()=>{M.current=!1}),[]),ys(()=>{if(E&&(T.current=E),S&&(k.current=S),E&&S){if(N.current)return N.current(E,S,Q);Q()}},[E,S,Q,N,L]);const G=g.useMemo(()=>({reference:T,floating:k,setReference:h,setFloating:v}),[h,v]),$=g.useMemo(()=>({reference:E,floating:S}),[E,S]),V=g.useMemo(()=>{const b={position:n,left:0,top:0};if(!$.floating)return b;const _=$f($.floating,c.x),I=$f($.floating,c.y);return l?{...b,transform:"translate("+_+"px, "+I+"px)",..._v($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:I}},[n,l,$.floating,c.x,c.y]);return g.useMemo(()=>({...c,update:Q,refs:G,elements:$,floatingStyles:V}),[c,Q,G,$,V])}const lS=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?Ff({element:r.current,padding:o}).fn(n):{}:r?Ff({element:r,padding:o}).fn(n):{}}}},aS=(e,t)=>({...XE(e),options:[e,t]}),uS=(e,t)=>({...ZE(e),options:[e,t]}),cS=(e,t)=>({...nS(e),options:[e,t]}),dS=(e,t)=>({...JE(e),options:[e,t]}),fS=(e,t)=>({...eS(e),options:[e,t]}),pS=(e,t)=>({...tS(e),options:[e,t]}),hS=(e,t)=>({...lS(e),options:[e,t]});var mS="Arrow",Ov=g.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return C.jsx(Fe.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:C.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ov.displayName=mS;var vS=Ov;function gS(e){const[t,n]=g.useState(void 0);return zn(()=>{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 $c="Popper",[Av,Nv]=ml($c),[yS,Lv]=Av($c),Mv=e=>{const{__scopePopper:t,children:n}=e,[r,o]=g.useState(null);return C.jsx(yS,{scope:t,anchor:r,onAnchorChange:o,children:n})};Mv.displayName=$c;var Iv="PopperAnchor",jv=g.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Lv(Iv,n),s=g.useRef(null),l=Pt(t,s);return g.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:C.jsx(Fe.div,{...o,ref:l})});jv.displayName=Iv;var Uc="PopperContent",[wS,xS]=Av(Uc),Dv=g.forwardRef((e,t)=>{var J,yr,rn,Hn,on,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,...y}=e,w=Lv(Uc,n),[m,h]=g.useState(null),v=Pt(t,sn=>h(sn)),[E,S]=g.useState(null),T=gS(E),k=(T==null?void 0:T.width)??0,O=(T==null?void 0:T.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],D=F.length>0,Q={padding:N,boundary:F.filter(SS),altBoundary:D},{refs:M,floatingStyles:G,placement:$,isPositioned:V,middlewareData:b}=sS({strategy:"fixed",placement:L,whileElementsMounted:(...sn)=>qE(...sn,{animationFrame:f==="always"}),elements:{reference:w.anchor},middleware:[aS({mainAxis:o+O,alignmentAxis:s}),a&&uS({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?cS():void 0,...Q}),a&&dS({...Q}),fS({...Q,apply:({elements:sn,rects:Ri,availableWidth:bl,availableHeight:_i})=>{const{width:Rl,height:wo}=Ri.reference,xr=sn.floating.style;xr.setProperty("--radix-popper-available-width",`${bl}px`),xr.setProperty("--radix-popper-available-height",`${_i}px`),xr.setProperty("--radix-popper-anchor-width",`${Rl}px`),xr.setProperty("--radix-popper-anchor-height",`${wo}px`)}}),E&&hS({element:E,padding:l}),CS({arrowWidth:k,arrowHeight:O}),p&&pS({strategy:"referenceHidden",...Q})]}),[_,I]=$v($),H=Dn(x);zn(()=>{V&&(H==null||H())},[V,H]);const z=(J=b.arrow)==null?void 0:J.x,K=(yr=b.arrow)==null?void 0:yr.y,q=((rn=b.arrow)==null?void 0:rn.centerOffset)!==0,[he,ke]=g.useState();return zn(()=>{m&&ke(window.getComputedStyle(m).zIndex)},[m]),C.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:V?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(Hn=b.transformOrigin)==null?void 0:Hn.x,(on=b.transformOrigin)==null?void 0:on.y].join(" "),...((wr=b.hide)==null?void 0:wr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:C.jsx(wS,{scope:n,placedSide:_,onArrowChange:S,arrowX:z,arrowY:K,shouldHideArrow:q,children:C.jsx(Fe.div,{"data-side":_,"data-align":I,...y,ref:v,style:{...y.style,animation:V?void 0:"none"}})})})});Dv.displayName=Uc;var zv="PopperArrow",ES={top:"bottom",right:"left",bottom:"top",left:"right"},Fv=g.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=xS(zv,r),s=ES[i.placedSide];return C.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:C.jsx(vS,{...o,ref:n,style:{...o.style,display:"block"}})})});Fv.displayName=zv;function SS(e){return e!==null}var CS=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]=$v(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="",y="";return u==="bottom"?(x=s?d:`${p}px`,y=`${-a}px`):u==="top"?(x=s?d:`${p}px`,y=`${r.floating.height+a}px`):u==="right"?(x=`${-a}px`,y=s?d:`${f}px`):u==="left"&&(x=`${r.floating.width+a}px`,y=s?d:`${f}px`),{data:{x,y}}}});function $v(e){const[t,n="center"]=e.split("-");return[t,n]}var VT=Mv,TS=jv,kS=Dv,PS=Fv,[El,HT]=ml("Tooltip",[Nv]),Bc=Nv(),Uv="TooltipProvider",bS=700,Uf="tooltip.open",[RS,Bv]=El(Uv),Vv=e=>{const{__scopeTooltip:t,delayDuration:n=bS,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=g.useRef(!0),l=g.useRef(!1),a=g.useRef(0);return g.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),C.jsx(RS,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:g.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:g.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:g.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:i})};Vv.displayName=Uv;var Hv="Tooltip",[WT,Sl]=El(Hv),Cu="TooltipTrigger",_S=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Sl(Cu,n),i=Bv(Cu,n),s=Bc(n),l=g.useRef(null),a=Pt(t,l,o.onTriggerChange),u=g.useRef(!1),c=g.useRef(!1),d=g.useCallback(()=>u.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),C.jsx(TS,{asChild:!0,...s,children:C.jsx(Fe.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)})})});_S.displayName=Cu;var OS="TooltipPortal",[QT,AS]=El(OS,{forceMount:void 0}),co="TooltipContent",Wv=g.forwardRef((e,t)=>{const n=AS(co,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=Sl(co,e.__scopeTooltip);return C.jsx(kc,{present:r||s.open,children:s.disableHoverableContent?C.jsx(Qv,{side:o,...i,ref:t}):C.jsx(NS,{side:o,...i,ref:t})})}),NS=g.forwardRef((e,t)=>{const n=Sl(co,e.__scopeTooltip),r=Bv(co,e.__scopeTooltip),o=g.useRef(null),i=Pt(t,o),[s,l]=g.useState(null),{trigger:a,onClose:u}=n,c=o.current,{onPointerInTransitChange:d}=r,p=g.useCallback(()=>{l(null),d(!1)},[d]),f=g.useCallback((x,y)=>{const w=x.currentTarget,m={x:x.clientX,y:x.clientY},h=DS(m,w.getBoundingClientRect()),v=zS(m,h),E=FS(y.getBoundingClientRect()),S=US([...v,...E]);l(S),d(!0)},[d]);return g.useEffect(()=>()=>p(),[p]),g.useEffect(()=>{if(a&&c){const x=w=>f(w,c),y=w=>f(w,a);return a.addEventListener("pointerleave",x),c.addEventListener("pointerleave",y),()=>{a.removeEventListener("pointerleave",x),c.removeEventListener("pointerleave",y)}}},[a,c,f,p]),g.useEffect(()=>{if(s){const x=y=>{const w=y.target,m={x:y.clientX,y:y.clientY},h=(a==null?void 0:a.contains(w))||(c==null?void 0:c.contains(w)),v=!$S(m,s);h?p():v&&(p(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[a,c,s,u,p]),C.jsx(Qv,{...e,ref:i})}),[LS,MS]=El(Hv,{isInside:!1}),IS=Qw("TooltipContent"),Qv=g.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,a=Sl(co,n),u=Bc(n),{onClose:c}=a;return g.useEffect(()=>(document.addEventListener(Uf,c),()=>document.removeEventListener(Uf,c)),[c]),g.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]),C.jsx(Tc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:C.jsxs(kS,{"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:[C.jsx(IS,{children:r}),C.jsx(LS,{scope:n,isInside:!0,children:C.jsx(g1,{id:a.contentId,role:"tooltip",children:o||r})})]})})});Wv.displayName=co;var Kv="TooltipArrow",jS=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Bc(n);return MS(Kv,n).isInside?null:C.jsx(PS,{...o,...r,ref:t})});jS.displayName=Kv;function DS(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 zS(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 FS(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 $S(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 US(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),BS(t)}function BS(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 VS=Vv,Yv=Wv;const HS=VS,WS=g.forwardRef(({className:e,sideOffset:t=4,...n},r)=>C.jsx(Yv,{ref:r,sideOffset:t,className:Ne("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}));WS.displayName=Yv.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 gt(){}function QS(e,t){return typeof e=="function"?e(t):e}function KS(e){return typeof e=="number"&&e>=0&&e!==1/0}function YS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Tu(e,t){return typeof e=="function"?e(t):e}function GS(e,t){return typeof e=="function"?e(t):e}function Bf(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==Vc(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 Vf(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 Vc(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 Gv(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 XS(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Gv(e,t):t}function ZS(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function JS(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Hc=Symbol();function qv(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 er,yn,Yr,rp,eC=(rp=class extends Cl{constructor(){super();Z(this,er);Z(this,yn);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(){P(this,yn)||this.setEventListener(P(this,Yr))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,yn))==null||t.call(this),B(this,yn,void 0))}setEventListener(t){var n;B(this,Yr,t),(n=P(this,yn))==null||n.call(this),B(this,yn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){P(this,er)!==t&&(B(this,er,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof P(this,er)=="boolean"?P(this,er):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},er=new WeakMap,yn=new WeakMap,Yr=new WeakMap,rp),Xv=new eC,Gr,wn,qr,op,tC=(op=class extends Cl{constructor(){super();Z(this,Gr,!0);Z(this,wn);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(){P(this,wn)||this.setEventListener(P(this,qr))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,wn))==null||t.call(this),B(this,wn,void 0))}setEventListener(t){var n;B(this,qr,t),(n=P(this,wn))==null||n.call(this),B(this,wn,t(this.setOnline.bind(this)))}setOnline(t){P(this,Gr)!==t&&(B(this,Gr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return P(this,Gr)}},Gr=new WeakMap,wn=new WeakMap,qr=new WeakMap,op),Gs=new tC;function nC(){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 rC(e){return Math.min(1e3*2**e,3e4)}function Zv(e){return(e??"online")==="online"?Gs.isOnline():!0}var Jv=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 Jv}function eg(e){let t=!1,n=0,r=!1,o;const i=nC(),s=y=>{var w;r||(p(new Jv(y)),(w=e.abort)==null||w.call(e))},l=()=>{t=!0},a=()=>{t=!1},u=()=>Xv.isFocused()&&(e.networkMode==="always"||Gs.isOnline())&&e.canRun(),c=()=>Zv(e.networkMode)&&e.canRun(),d=y=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,y),o==null||o(),i.resolve(y))},p=y=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,y),o==null||o(),i.reject(y))},f=()=>new Promise(y=>{var w;o=m=>{(r||u())&&y(m)},(w=e.onPause)==null||w.call(e)}).then(()=>{var y;o=void 0,r||(y=e.onContinue)==null||y.call(e)}),x=()=>{if(r)return;let y;const w=n===0?e.initialPromise:void 0;try{y=w??e.fn()}catch(m){y=Promise.reject(m)}Promise.resolve(y).then(d).catch(m=>{var T;if(r)return;const h=e.retry??(Tl?0:3),v=e.retryDelay??rC,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 oC=e=>setTimeout(e,0);function iC(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=oC;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 Ie=iC(),tr,ip,tg=(ip=class{constructor(){Z(this,tr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),KS(this.gcTime)&&B(this,tr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Tl?1/0:5*60*1e3))}clearGcTimeout(){P(this,tr)&&(clearTimeout(P(this,tr)),B(this,tr,void 0))}},tr=new WeakMap,ip),Xr,nr,rt,rr,_e,vi,or,yt,Vt,sp,sC=(sp=class extends tg{constructor(t){super();Z(this,yt);Z(this,Xr);Z(this,nr);Z(this,rt);Z(this,rr);Z(this,_e);Z(this,vi);Z(this,or);B(this,or,!1),B(this,vi,t.defaultOptions),this.setOptions(t.options),this.observers=[],B(this,rr,t.client),B(this,rt,P(this,rr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,B(this,Xr,aC(this.options)),this.state=t.state??P(this,Xr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=P(this,_e))==null?void 0:t.promise}setOptions(t){this.options={...P(this,vi),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&P(this,rt).remove(this)}setData(t,n){const r=XS(this.state.data,t,this.options);return Pe(this,yt,Vt).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,yt,Vt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=P(this,_e))==null?void 0:r.promise;return(o=P(this,_e))==null||o.cancel(t),n?n.then(gt).catch(gt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(P(this,Xr))}isActive(){return this.observers.some(t=>GS(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:!YS(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,_e))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,_e))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),P(this,rt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(P(this,_e)&&(P(this,or)?P(this,_e).cancel({revert:!0}):P(this,_e).cancelRetry()),this.scheduleGc()),P(this,rt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Pe(this,yt,Vt).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(P(this,_e))return P(this,_e).continueRetry(),P(this,_e).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,or,!0),r.signal)})},i=()=>{const p=qv(this.options,n),x=(()=>{const y={client:P(this,rr),queryKey:this.queryKey,meta:this.meta};return o(y),y})();return B(this,or,!1),this.options.persister?this.options.persister(p,x,this):p(x)},l=(()=>{const p={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:P(this,rr),state:this.state,fetchFn:i};return o(p),p})();(u=this.options.behavior)==null||u.onFetch(l,this),B(this,nr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=l.fetchOptions)==null?void 0:c.meta))&&Pe(this,yt,Vt).call(this,{type:"fetch",meta:(d=l.fetchOptions)==null?void 0:d.meta});const a=p=>{var f,x,y,w;ha(p)&&p.silent||Pe(this,yt,Vt).call(this,{type:"error",error:p}),ha(p)||((x=(f=P(this,rt).config).onError)==null||x.call(f,p,this),(w=(y=P(this,rt).config).onSettled)==null||w.call(y,this.state.data,p,this)),this.scheduleGc()};return B(this,_e,eg({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var f,x,y,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=P(this,rt).config).onSuccess)==null||x.call(f,p,this),(w=(y=P(this,rt).config).onSettled)==null||w.call(y,p,this.state.error,this),this.scheduleGc()},onError:a,onFail:(p,f)=>{Pe(this,yt,Vt).call(this,{type:"failed",failureCount:p,error:f})},onPause:()=>{Pe(this,yt,Vt).call(this,{type:"pause"})},onContinue:()=>{Pe(this,yt,Vt).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),P(this,_e).start()}},Xr=new WeakMap,nr=new WeakMap,rt=new WeakMap,rr=new WeakMap,_e=new WeakMap,vi=new WeakMap,or=new WeakMap,yt=new WeakSet,Vt=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,...lC(r.data,this.options),fetchMeta:t.meta??null};case"success":return B(this,nr,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&&P(this,nr)?{...P(this,nr),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),Ie.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),P(this,rt).notify({query:this,type:"updated",action:t})})},sp);function lC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Zv(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function aC(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 At,lp,uC=(lp=class extends Cl{constructor(t={}){super();Z(this,At);this.config=t,B(this,At,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??Vc(o,n);let s=this.get(i);return s||(s=new sC({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){P(this,At).has(t.queryHash)||(P(this,At).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=P(this,At).get(t.queryHash);n&&(t.destroy(),n===t&&P(this,At).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ie.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return P(this,At).get(t)}getAll(){return[...P(this,At).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Bf(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Bf(t,r)):n}notify(t){Ie.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ie.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ie.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},At=new WeakMap,lp),Nt,Le,ir,Lt,pn,ap,cC=(ap=class extends tg{constructor(t){super();Z(this,Lt);Z(this,Nt);Z(this,Le);Z(this,ir);this.mutationId=t.mutationId,B(this,Le,t.mutationCache),B(this,Nt,[]),this.state=t.state||dC(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){P(this,Nt).includes(t)||(P(this,Nt).push(t),this.clearGcTimeout(),P(this,Le).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){B(this,Nt,P(this,Nt).filter(n=>n!==t)),this.scheduleGc(),P(this,Le).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,Nt).length||(this.state.status==="pending"?this.scheduleGc():P(this,Le).remove(this))}continue(){var t;return((t=P(this,ir))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,l,a,u,c,d,p,f,x,y,w,m,h,v,E,S,T,k,O;const n=()=>{Pe(this,Lt,pn).call(this,{type:"continue"})};B(this,ir,eg({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(L,N)=>{Pe(this,Lt,pn).call(this,{type:"failed",failureCount:L,error:N})},onPause:()=>{Pe(this,Lt,pn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>P(this,Le).canRun(this)}));const r=this.state.status==="pending",o=!P(this,ir).canStart();try{if(r)n();else{Pe(this,Lt,pn).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=P(this,Le).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,Lt,pn).call(this,{type:"pending",context:N,variables:t,isPaused:o})}const L=await P(this,ir).start();return await((c=(u=P(this,Le).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=P(this,Le).config).onSettled)==null?void 0:x.call(f,L,null,this.state.variables,this.state.context,this)),await((w=(y=this.options).onSettled)==null?void 0:w.call(y,L,null,t,this.state.context)),Pe(this,Lt,pn).call(this,{type:"success",data:L}),L}catch(L){try{throw await((h=(m=P(this,Le).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((T=(S=P(this,Le).config).onSettled)==null?void 0:T.call(S,void 0,L,this.state.variables,this.state.context,this)),await((O=(k=this.options).onSettled)==null?void 0:O.call(k,void 0,L,t,this.state.context)),L}finally{Pe(this,Lt,pn).call(this,{type:"error",error:L})}}finally{P(this,Le).runNext(this)}}},Nt=new WeakMap,Le=new WeakMap,ir=new WeakMap,Lt=new WeakSet,pn=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),Ie.batch(()=>{P(this,Nt).forEach(r=>{r.onMutationUpdate(t)}),P(this,Le).notify({mutation:this,type:"updated",action:t})})},ap);function dC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Qt,wt,gi,up,fC=(up=class extends Cl{constructor(t={}){super();Z(this,Qt);Z(this,wt);Z(this,gi);this.config=t,B(this,Qt,new Set),B(this,wt,new Map),B(this,gi,0)}build(t,n,r){const o=new cC({mutationCache:this,mutationId:++Ai(this,gi)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){P(this,Qt).add(t);const n=es(t);if(typeof n=="string"){const r=P(this,wt).get(n);r?r.push(t):P(this,wt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(P(this,Qt).delete(t)){const n=es(t);if(typeof n=="string"){const r=P(this,wt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&P(this,wt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=es(t);if(typeof n=="string"){const r=P(this,wt).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=P(this,wt).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(){Ie.batch(()=>{P(this,Qt).forEach(t=>{this.notify({type:"removed",mutation:t})}),P(this,Qt).clear(),P(this,wt).clear()})}getAll(){return Array.from(P(this,Qt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Vf(n,r))}findAll(t={}){return this.getAll().filter(n=>Vf(t,n))}notify(t){Ie.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ie.batch(()=>Promise.all(t.map(n=>n.continue().catch(gt))))}},Qt=new WeakMap,wt=new WeakMap,gi=new WeakMap,up);function es(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Qf(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 y=!1;const w=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},m=qv(t.options,t.fetchOptions),h=async(v,E,S)=>{if(y)return Promise.reject();if(E==null&&v.pages.length)return Promise.resolve(v);const k=(()=>{const F={client:t.client,queryKey:t.queryKey,pageParam:E,direction:S?"backward":"forward",meta:t.options.meta};return w(F),F})(),O=await m(k),{maxPages:L}=t.options,N=S?JS:ZS;return{pages:N(v.pages,O,L),pageParams:N(v.pageParams,E,L)}};if(o&&i.length){const v=o==="backward",E=v?pC:Kf,S={pages:i,pageParams:s},T=E(r,S);l=await h(S,T,v)}else{const v=e??i.length;do{const E=a===0?s[0]??r.initialPageParam:Kf(r,l);if(a>0&&E==null)break;l=await h(l,E),a++}while(a{var y,w;return(w=(y=t.options).persister)==null?void 0:w.call(y,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Kf(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 pC(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,xn,En,Zr,Jr,Sn,eo,to,cp,hC=(cp=class{constructor(e={}){Z(this,de);Z(this,xn);Z(this,En);Z(this,Zr);Z(this,Jr);Z(this,Sn);Z(this,eo);Z(this,to);B(this,de,e.queryCache||new uC),B(this,xn,e.mutationCache||new fC),B(this,En,e.defaultOptions||{}),B(this,Zr,new Map),B(this,Jr,new Map),B(this,Sn,0)}mount(){Ai(this,Sn)._++,P(this,Sn)===1&&(B(this,eo,Xv.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,de).onFocus())})),B(this,to,Gs.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,de).onOnline())})))}unmount(){var e,t;Ai(this,Sn)._--,P(this,Sn)===0&&((e=P(this,eo))==null||e.call(this),B(this,eo,void 0),(t=P(this,to))==null||t.call(this),B(this,to,void 0))}isFetching(e){return P(this,de).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return P(this,xn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,de).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=P(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 P(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=P(this,de).get(r.queryHash),i=o==null?void 0:o.state.data,s=QS(t,i);if(s!==void 0)return P(this,de).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Ie.batch(()=>P(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=P(this,de).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=P(this,de);Ie.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=P(this,de);return Ie.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ie.batch(()=>P(this,de).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(gt).catch(gt)}invalidateQueries(e,t={}){return Ie.batch(()=>(P(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=Ie.batch(()=>P(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(gt)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(gt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=P(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(gt).catch(gt)}fetchInfiniteQuery(e){return e.behavior=Qf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(gt).catch(gt)}ensureInfiniteQueryData(e){return e.behavior=Qf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Gs.isOnline()?P(this,xn).resumePausedMutations():Promise.resolve()}getQueryCache(){return P(this,de)}getMutationCache(){return P(this,xn)}getDefaultOptions(){return P(this,En)}setDefaultOptions(e){B(this,En,e)}setQueryDefaults(e,t){P(this,Zr).set(fi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...P(this,Zr).values()],n={};return t.forEach(r=>{pi(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){P(this,Jr).set(fi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...P(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={...P(this,En).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Vc(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:{...P(this,En).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){P(this,de).clear(),P(this,xn).clear()}},de=new WeakMap,xn=new WeakMap,En=new WeakMap,Zr=new WeakMap,Jr=new WeakMap,Sn=new WeakMap,eo=new WeakMap,to=new WeakMap,cp),mC=g.createContext(void 0),vC=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),C.jsx(mC.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 ng(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function yC(){return Math.random().toString(36).substr(2,8)}function Gf(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||yC()})}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 wC(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,l=kn.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=kn.Pop;let w=c(),m=w==null?null:w-u;u=w,a&&a({action:l,location:y.location,delta:m})}function p(w,m){l=kn.Push;let h=Pu(y.location,w,m);u=c()+1;let v=Gf(h,u),E=y.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:y.location,delta:1})}function f(w,m){l=kn.Replace;let h=Pu(y.location,w,m);u=c();let v=Gf(h,u),E=y.createHref(h);s.replaceState(v,"",E),i&&a&&a({action:l,location:y.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 y={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(Yf,d),a=w,()=>{o.removeEventListener(Yf,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 y}var qf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(qf||(qf={}));function xC(e,t,n){return n===void 0&&(n="/"),EC(e,t,n,!1)}function EC(e,t,n,r){let o=typeof t=="string"?yo(t):t,i=Wc(o.pathname||"/",n);if(i==null)return null;let s=rg(e);SC(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=Mn([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+'".')),rg(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:_C(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 og(i.path))o(i,s,a)}),t}function og(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=og(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 SC(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:OC(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const CC=/^:[\w-]+$/,TC=3,kC=2,PC=1,bC=10,RC=-2,Xf=e=>e==="*";function _C(e,t){let n=e.split("/"),r=n.length;return n.some(Xf)&&(r+=RC),t&&(r+=kC),n.filter(o=>!Xf(o)).reduce((o,i)=>o+(CC.test(i)?TC:i===""?PC:bC),r)}function OC(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 AC(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let l=0;l{let{paramName:p,isOptional:f}=c;if(p==="*"){let y=l[d]||"";s=i.slice(0,i.length-y.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 NC(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ng(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 LC(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ng(!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 Wc(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 MC(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:IC(n,t):t,search:zC(r),hash:FC(o)}}function IC(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 jC(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ig(e,t){let n=jC(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function sg(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=MC(o,l),u=s&&s!=="/"&&s.endsWith("/"),c=(i||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||c)&&(a.pathname+="/"),a}const Mn=e=>e.join("/").replace(/\/\/+/g,"/"),DC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),zC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,FC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function $C(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const lg=["post","put","patch","delete"];new Set(lg);const UC=["get",...lg];new Set(UC);/** * 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}),g.useCallback(function(u,c){if(c===void 0&&(c={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let d=sg(u,JSON.parse(s),i,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Mn([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,s,i,e])}function cg(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=g.useContext(vr),{matches:o}=g.useContext(gr),{pathname:i}=Pl(),s=JSON.stringify(ig(o,r.v7_relativeSplatPath));return g.useMemo(()=>sg(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function QC(e,t){return KC(e,t)}function KC(e,t,n,r){bi()||ve(!1);let{navigator:o}=g.useContext(vr),{matches:i}=g.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=xC(e,{pathname:f}),y=ZC(x&&x.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:Mn([a,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:Mn([a,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&y?g.createElement(kl.Provider,{value:{location:mi({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:kn.Pop}},y):y}function YC(){let e=nT(),t=$C(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 g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),n?g.createElement("pre",{style:o},n):null,null)}const GC=g.createElement(YC,null);class qC extends g.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?g.createElement(gr.Provider,{value:this.props.routeContext},g.createElement(ag.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function XC(e){let{routeContext:t,match:n,children:r}=e,o=g.useContext(Qc);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),g.createElement(gr.Provider,{value:t},r)}function ZC(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,y=null,w=null;n&&(f=l&&d.route.id?l[d.route.id]:void 0,y=d.route.errorElement||GC,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=y:x?v=w:d.route.Component?v=g.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=c,g.createElement(XC,{match:d,routeContext:{outlet:c,matches:m,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?g.createElement(qC,{location:n.location,revalidation:n.revalidation,component:y,error:f,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var dg=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(dg||{}),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 JC(e){let t=g.useContext(Qc);return t||ve(!1),t}function eT(e){let t=g.useContext(BC);return t||ve(!1),t}function tT(e){let t=g.useContext(gr);return t||ve(!1),t}function fg(e){let t=tT(),n=t.matches[t.matches.length-1];return n.route.id||ve(!1),n.route.id}function nT(){var e;let t=g.useContext(ag),n=eT(Xs.UseRouteError),r=fg(Xs.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function rT(){let{router:e}=JC(dg.UseNavigateStable),t=fg(Xs.UseNavigateStable),n=g.useRef(!1);return ug(()=>{n.current=!0}),g.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 oT(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Qe(e){ve(!1)}function iT(e){let{basename:t="/",children:n=null,location:r,navigationType:o=kn.Pop,navigator:i,static:s=!1,future:l}=e;bi()&&ve(!1);let a=t.replace(/^\/*/,"/"),u=g.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,y=g.useMemo(()=>{let w=Wc(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 y==null?null:g.createElement(vr.Provider,{value:u},g.createElement(kl.Provider,{children:n,value:y}))}function sT(e){let{children:t,location:n}=e;return QC(bu(t),n)}new Promise(()=>{});function bu(e,t){t===void 0&&(t=[]);let n=[];return g.Children.forEach(e,(r,o)=>{if(!g.isValidElement(r))return;let i=[...t,o];if(r.type===g.Fragment){n.push.apply(n,bu(r.props.children,i));return}r.type!==Qe&&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 aT(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function uT(e,t){return e.button===0&&(!t||t==="_self")&&!aT(e)}const cT=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],dT="6";try{window.__reactRouterVersion=dT}catch{}const fT="startTransition",Jf=Ep[fT];function pT(e){let{basename:t,children:n,future:r,window:o}=e,i=g.useRef();i.current==null&&(i.current=gC({window:o,v5Compat:!0}));let s=i.current,[l,a]=g.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=g.useCallback(d=>{u&&Jf?Jf(()=>a(d)):a(d)},[a,u]);return g.useLayoutEffect(()=>s.listen(c),[s,c]),g.useEffect(()=>oT(r),[r]),g.createElement(iT,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}const hT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",mT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,KT=g.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=lT(t,cT),{basename:f}=g.useContext(vr),x,y=!1;if(typeof u=="string"&&mT.test(u)&&(x=u,hT))try{let v=new URL(window.location.href),E=u.startsWith("//")?new URL(v.protocol+u):new URL(u),S=Wc(E.pathname,f);E.origin===v.origin&&S!=null?u=S+E.search+E.hash:y=!0}catch{}let w=VC(u,{relative:o}),m=vT(u,{replace:s,state:l,target:a,preventScrollReset:c,relative:o,viewTransition:d});function h(v){r&&r(v),v.defaultPrevented||m(v)}return g.createElement("a",Ru({},p,{href:x||w,onClick:y||i?r:h,ref:n,target:a}))});var ep;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ep||(ep={}));var tp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(tp||(tp={}));function vT(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:l}=t===void 0?{}:t,a=HC(),u=Pl(),c=cg(e,{relative:s});return g.useCallback(d=>{if(uT(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 gT="3167929",np="G-93NG7BDFL6",yT=()=>(g.useEffect(()=>{{window._linkedin_data_partner_ids=window._linkedin_data_partner_ids||[],window._linkedin_data_partner_ids.push(gT);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=${np}`,document.head.appendChild(e),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date),window.gtag("config",np)}},[]),null),YT=e=>{window.lintrk&&window.lintrk("track",{conversion_id:e})},GT=(e,t)=>{window.gtag&&window.gtag("event",e,t)},qT=(e,t)=>{window.fbq&&window.fbq("track",e,t)},pg=g.forwardRef(({className:e,...t},n)=>C.jsx("div",{ref:n,className:Ne("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));pg.displayName="Card";const hg=g.forwardRef(({className:e,...t},n)=>C.jsx("div",{ref:n,className:Ne("flex flex-col space-y-1.5 p-6",e),...t}));hg.displayName="CardHeader";const mg=g.forwardRef(({className:e,...t},n)=>C.jsx("h3",{ref:n,className:Ne("text-2xl font-semibold leading-none tracking-tight",e),...t}));mg.displayName="CardTitle";const vg=g.forwardRef(({className:e,...t},n)=>C.jsx("p",{ref:n,className:Ne("text-sm text-muted-foreground",e),...t}));vg.displayName="CardDescription";const gg=g.forwardRef(({className:e,...t},n)=>C.jsx("div",{ref:n,className:Ne("p-6 pt-0",e),...t}));gg.displayName="CardContent";const wT=g.forwardRef(({className:e,...t},n)=>C.jsx("div",{ref:n,className:Ne("flex items-center p-6 pt-0",e),...t}));wT.displayName="CardFooter";const yg=g.forwardRef(({className:e,type:t,...n},r)=>C.jsx("input",{type:t,className:Ne("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));yg.displayName="Input";var xT="Label",wg=g.forwardRef((e,t)=>C.jsx(Fe.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));wg.displayName=xT;var xg=wg;const ET=_c("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Eg=g.forwardRef(({className:e,...t},n)=>C.jsx(xg,{ref:n,className:Ne(ET(),e),...t}));Eg.displayName=xg.displayName;const ST=_c("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Sg=g.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?Hw:"button";return C.jsx(s,{className:Ne(ST({variant:t,size:n,className:e})),ref:i,...o})});Sg.displayName="Button";const CT=({password:e,storageKey:t,title:n="גישה מוגנת",children:r})=>{const[o,i]=g.useState(!1),[s,l]=g.useState(""),[a,u]=g.useState(!1);g.useEffect(()=>{typeof window<"u"&&sessionStorage.getItem(t)==="1"&&i(!0)},[t]);const c=d=>{d.preventDefault(),s===e?(sessionStorage.setItem(t,"1"),i(!0),u(!1)):u(!0)};return o?C.jsx(C.Fragment,{children:r}):C.jsx("div",{dir:"rtl",className:"min-h-screen bg-background flex items-center justify-center p-4",children:C.jsxs(pg,{className:"w-full max-w-md",children:[C.jsxs(hg,{className:"text-center",children:[C.jsx("div",{className:"mx-auto mb-3 w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center",children:C.jsx(F1,{className:"w-6 h-6 text-primary"})}),C.jsx(mg,{children:n}),C.jsx(vg,{children:"נדרשת סיסמה לצפייה בעמוד זה"})]}),C.jsx(gg,{children:C.jsxs("form",{onSubmit:c,className:"space-y-4",children:[C.jsxs("div",{className:"space-y-2",children:[C.jsx(Eg,{htmlFor:"gate-password",children:"סיסמה"}),C.jsx(yg,{id:"gate-password",type:"password",value:s,onChange:d=>{l(d.target.value),u(!1)},autoFocus:!0,dir:"ltr"}),a&&C.jsx("p",{className:"text-sm text-destructive",children:"סיסמה שגויה"})]}),C.jsx(Sg,{type:"submit",className:"w-full",children:"כניסה"})]})})]})})},TT=g.lazy(()=>ct(()=>import("./Index-PTvrvz_A.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))),kT=g.lazy(()=>ct(()=>import("./Experts-QrrUaQqO.js"),__vite__mapDeps([14,1,7,15,13,3,16,17,2,6]))),PT=g.lazy(()=>ct(()=>import("./Articles-aUNgSEYg.js"),__vite__mapDeps([18,1,7,15,19,20,21,22,9,12,23,24,11,25,26,27,5,28,13,17,3]))),bT=g.lazy(()=>ct(()=>import("./CamerasInWorkplace-H7nKurWB.js"),__vite__mapDeps([29,1,7,20,15,30,3,13,28,17,4,2,31,27,32]))),RT=g.lazy(()=>ct(()=>import("./DpoRequirement-D_b1sMMl.js"),__vite__mapDeps([33,1,15,30,3,13,34,16,2,27,35]))),_T=g.lazy(()=>ct(()=>import("./BoardResponsibilities-CoIxrRtW.js"),__vite__mapDeps([36,1,7,15,30,3,13,28,17,26,34,16,35,2,27,32]))),OT=g.lazy(()=>ct(()=>import("./Organizations-BsFJh9PF.js"),__vite__mapDeps([37,1,7,10,11,12,15,13,3,31,16]))),AT=g.lazy(()=>ct(()=>import("./Webinar-BlQZIbIL.js"),__vite__mapDeps([38,1,22,9,12,23,13,8,17,34,39,16]))),NT=g.lazy(()=>ct(()=>import("./Fines-CT2TIK7M.js"),__vite__mapDeps([40,1,15,19,20,21,22,9,12,23,24,11,25,26,27,5,28,13,32]))),LT=g.lazy(()=>ct(()=>import("./Telegram-Cv6ywAsr.js"),__vite__mapDeps([41,11,12,21,42,9,20,27,23,39,17,25]))),MT=g.lazy(()=>ct(()=>import("./Breaches-qaJLdI2y.js"),__vite__mapDeps([43,11,12,1,21,42,9,24,39,35,28,27]))),IT=g.lazy(()=>ct(()=>import("./NotFound-Cc8Xn2nt.js"),__vite__mapDeps([44,13]))),jT=new hC,DT=()=>C.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:C.jsx("div",{className:"w-8 h-8 border-4 border-primary border-t-transparent rounded-full animate-spin"})}),zT=()=>C.jsx(vC,{client:jT,children:C.jsxs(Px,{attribute:"class",defaultTheme:"dark",enableSystem:!1,children:[C.jsx(yT,{}),C.jsxs(HS,{children:[C.jsx(Sx,{}),C.jsx(oE,{}),C.jsx(pT,{children:C.jsx(g.Suspense,{fallback:C.jsx(DT,{}),children:C.jsxs(sT,{children:[C.jsx(Qe,{path:"/",element:C.jsx(TT,{})}),C.jsx(Qe,{path:"/experts",element:C.jsx(kT,{})}),C.jsx(Qe,{path:"/articles",element:C.jsx(PT,{})}),C.jsx(Qe,{path:"/articles/cameras-in-workplace",element:C.jsx(bT,{})}),C.jsx(Qe,{path:"/articles/dpo-requirement",element:C.jsx(RT,{})}),C.jsx(Qe,{path:"/articles/board-responsibilities",element:C.jsx(_T,{})}),C.jsx(Qe,{path:"/organizations",element:C.jsx(OT,{})}),C.jsx(Qe,{path:"/webinar",element:C.jsx(AT,{})}),C.jsx(Qe,{path:"/fines",element:C.jsx(NT,{})}),C.jsx(Qe,{path:"/telegram",element:C.jsx(CT,{password:"1q2w3e4r!@",storageKey:"telegram-gate",children:C.jsx(LT,{})})}),C.jsx(Qe,{path:"/breaches",element:C.jsx(MT,{})}),C.jsx(Qe,{path:"*",element:C.jsx(IT,{})})]})})})]})]})});km(document.getElementById("root")).render(C.jsx(Nm,{children:C.jsx(zT,{})}));export{TS as A,Sg as B,pg as C,Tc as D,VT as E,Fm as F,Vs as G,_c as H,yg as I,vg as J,$T as K,F1 as L,gS as M,kx as N,Pl as O,Fe as P,Ep as Q,R,m1 as V,$1 as X,qT as a,YT as b,av as c,ml as d,ye as e,kc as f,Pt as g,zn as h,qw as i,C as j,Ne as k,gg as l,KT as m,BT as n,Bw as o,Eg as p,hg as q,g as r,mg as s,GT as t,f1 as u,Dn as v,Nv as w,Ti as x,kS as y,PS as z};