const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Index-DzxY-UoB.js","assets/Footer-B3tv2bOV.js","assets/switch-BWOGR3Bq.js","assets/index-CktclH3N.js","assets/chevron-down-D2gbjdMB.js","assets/shield-C8Ap03HP.js","assets/arrow-left-S5bdLJ0b.js","assets/circle-x-BveGC6O0.js","assets/building-2-BQx9gY-G.js","assets/database-BRxYT0Z3.js","assets/file-text-BQ1KfttO.js","assets/calendar-days-CU7p5zZh.js","assets/index-cj0RQyID.js","assets/index-53SZBVix.js","assets/index-CC1qyRRf.js","assets/ContactForm-ChIoDnBt.js","assets/client-NKYmEhGE.js","assets/tslib.es6-CmEaCU22.js","assets/CookieBanner-DdtoKMZQ.js","assets/SEOHead-BaD_NnoE.js","assets/Experts-B1CFcKJN.js","assets/Breadcrumbs-Ct6bgd94.js","assets/users-9-3Vq-GA.js","assets/clock-GHRcGquT.js","assets/Articles-BVv9KBk5.js","assets/FinesTable-DQxV6G1q.js","assets/table-BfF1FpWY.js","assets/badge-BuzgpQsr.js","assets/select-BbdHfSD8.js","assets/Combination-CKPOsuB4.js","assets/skeleton-0sZRsSn7.js","assets/circle-alert-DlpTaU_i.js","assets/scale-DdiEqTWh.js","assets/external-link-DMmg75YU.js","assets/calendar-DUrqkbX0.js","assets/CamerasInWorkplace-DM7B0HvK.js","assets/RelatedArticles-CbyethYi.js","assets/eye-Dur30yqZ.js","assets/arrow-right-DmuGAOrX.js","assets/DpoRequirement-C_1K9NVG.js","assets/circle-check-CrXfjRfM.js","assets/triangle-alert-CeLWG55V.js","assets/BoardResponsibilities-BXkvwPSy.js","assets/GeneratedArticle-DkuxdgKE.js","assets/purify.es-DZKeO-Ao.js","assets/Organizations-DAt_acLt.js","assets/Webinar-BIYAHo-s.js","assets/shield-alert-CygYfRKo.js","assets/Fines-BZDHHdsw.js","assets/Telegram-BK_AsdXM.js","assets/tabs-DoqYnbRE.js","assets/refresh-ccw-B8dMdkR-.js","assets/sparkles-CYcXP468.js","assets/plus-C-MchFcN.js","assets/Videos-4AWAUeyF.js","assets/textarea-Dit1szSV.js","assets/ArticlesAdmin-BB2DrvoS.js","assets/Breaches-BAG9GcNv.js","assets/NotFound-CZvBorWB.js"])))=>i.map(i=>d[i]); var Lg=Object.defineProperty;var ed=e=>{throw TypeError(e)};var Mg=(e,t,n)=>t in e?Lg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ut=(e,t,n)=>Mg(e,typeof t!="symbol"?t+"":t,n),Al=(e,t,n)=>t.has(e)||ed("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)?ed("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 Ig(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 fp={exports:{}},Zs={},pp={exports:{}},G={};/** * @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"),jg=Symbol.for("react.portal"),Dg=Symbol.for("react.fragment"),zg=Symbol.for("react.strict_mode"),Fg=Symbol.for("react.profiler"),$g=Symbol.for("react.provider"),Ug=Symbol.for("react.context"),Bg=Symbol.for("react.forward_ref"),Vg=Symbol.for("react.suspense"),Hg=Symbol.for("react.memo"),Wg=Symbol.for("react.lazy"),td=Symbol.iterator;function Qg(e){return e===null||typeof e!="object"?null:(e=td&&e[td]||e["@@iterator"],typeof e=="function"?e:null)}var hp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},mp=Object.assign,vp={};function fo(e,t,n){this.props=e,this.context=t,this.refs=vp,this.updater=n||hp}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 gp(){}gp.prototype=fo.prototype;function Ou(e,t,n){this.props=e,this.context=t,this.refs=vp,this.updater=n||hp}var Au=Ou.prototype=new gp;Au.constructor=Ou;mp(Au,fo.prototype);Au.isPureReactComponent=!0;var nd=Array.isArray,yp=Object.prototype.hasOwnProperty,Nu={current:null},wp={key:!0,ref:!0,__self:!0,__source:!0};function xp(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)yp.call(t,r)&&!wp.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 g(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,g(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(g(_),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),g(_)}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}}}})(Pp);kp.exports=Pp;var ry=kp.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 oy=v,Je=ry;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"),ya=Object.prototype.hasOwnProperty,iy=/^[: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]*$/,od={},id={};function sy(e){return ya.call(id,e)?!0:ya.call(od,e)?!1:iy.test(e)?id[e]=!0:(od[e]=!0,!1)}function ly(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 ay(e,t,n,r){if(t===null||typeof t>"u"||ly(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 Fe(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 Fe(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 Fe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Te[e]=new Fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Te[e]=new Fe(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 Fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Te[e]=new Fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Te[e]=new Fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Te[e]=new Fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Te[e]=new Fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Mu=/[\-:]([a-z])/g;function Iu(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(Mu,Iu);Te[t]=new Fe(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(Mu,Iu);Te[t]=new Fe(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(Mu,Iu);Te[t]=new Fe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Te[e]=new Fe(e,1,!1,e.toLowerCase(),null,!1,!1)});Te.xlinkHref=new Fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Te[e]=new Fe(e,1,!1,e.toLowerCase(),null,!0,!0)});function ju(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 uy(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 Sa(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 wa:return"Profiler";case Du:return"StrictMode";case xa:return"Suspense";case Ea:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _p:return(e.displayName||"Context")+".Consumer";case Rp:return(e._context.displayName||"Context")+".Provider";case zu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fu:return t=e.displayName||null,t!==null?t:Sa(e.type)||"Memo";case hn:t=e._payload,e=e._init;try{return Sa(e(t))}catch{}}return null}function cy(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 Sa(t);case 8:return t===Du?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function In(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ap(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dy(e){var t=Ap(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=dy(e))}function Np(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ap(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 Ca(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ld(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 Lp(e,t){t=t.checked,t!=null&&ju(e,"checked",t,!1)}function Ta(e,t){Lp(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")?ka(e,t.type,n):t.hasOwnProperty("defaultValue")&&ka(e,t.type,In(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ad(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 ka(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 Go(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},fy=["Webkit","ms","Moz","O"];Object.keys(Do).forEach(function(e){fy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Do[t]=Do[e]})});function Dp(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 zp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Dp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var py=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 Ra(e,t){if(t){if(py[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 _a(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Oa=null;function $u(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Aa=null,Fr=null,$r=null;function dd(e){if(e=Si(e)){if(typeof Aa!="function")throw Error(A(280));var t=e.stateNode;t&&(t=rl(t),Aa(e.stateNode,e.type,t))}}function Fp(e){Fr?$r?$r.push(e):$r=[e]:Fr=e}function $p(){if(Fr){var e=Fr,t=$r;if($r=Fr=null,dd(e),t)for(e=0;e>>=0,e===0?32:31-(Ty(e)/ky|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 _y(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),xd=" ",Ed=!1;function sh(e,t){switch(e){case"keyup":return r0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rr=!1;function i0(e,t){switch(e){case"compositionend":return lh(t);case"keypress":return t.which!==32?null:(Ed=!0,xd);case"textInput":return e=t.data,e===xd&&Ed?null:e;default:return null}}function s0(e,t){if(Rr)return e==="compositionend"||!Gu&&sh(e,t)?(e=oh(),os=Wu=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=kd(n)}}function dh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?dh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fh(){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 m0(e){var t=fh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dh(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=Pd(n,i);var s=Pd(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,Da=null,Uo=null,za=!1;function bd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;za||_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(Da,"onSelect"),0Nr||(e.current=Ha[Nr],Ha[Nr]=null,Nr--)}function ne(e,t){Nr++,Ha[Nr]=e.current,e.current=t}var jn={},Ne=Bn(jn),We=Bn(!1),ur=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 Qe(e){return e=e.childContextTypes,e!=null}function Rs(){ie(We),ie(Ne)}function Md(e,t,n){if(Ne.current!==jn)throw Error(A(168));ne(Ne,t),ne(We,n)}function Eh(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,cy(e)||"Unknown",o));return ce({},n,r)}function _s(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jn,ur=Ne.current,ne(Ne,e),ne(We,We.current),!0}function Id(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=Eh(e,t,ur),r.__reactInternalMemoizedMergedChildContext=e,ie(We),ie(Ne),ne(Ne,e)):ie(We),ne(We,n)}var Wt=null,ol=!1,Yl=!1;function Sh(e){Wt===null?Wt=[e]:Wt.push(e)}function b0(e){ol=!0,Sh(e)}function Vn(){if(!Yl&&Wt!==null){Yl=!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,g[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===g.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=g.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=g.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,g,E){if(typeof g=="object"&&g!==null&&g.type===br&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Li:e:{for(var S=g.key,T=h;T!==null;){if(T.key===S){if(S=g.type,S===br){if(T.tag===7){n(m,T.sibling),h=o(T,g.props.children),h.return=m,m=h;break e}}else if(T.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===hn&&zd(S)===T.type){n(m,T.sibling),h=o(T,g.props),h.ref=Po(m,T,g),h.return=m,m=h;break e}n(m,T);break}else t(m,T);T=T.sibling}g.type===br?(h=ar(g.props.children,m.mode,E,g.key),h.return=m,m=h):(E=fs(g.type,g.key,g.props,null,m.mode,E),E.ref=Po(m,h,g),E.return=m,m=E)}return s(m);case Pr:e:{for(T=g.key;h!==null;){if(h.key===T)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(m,h.sibling),h=o(h,g.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=ra(g,m.mode,E),h.return=m,m=h}return s(m);case hn:return T=g._init,w(m,h,T(g._payload),E)}if(Mo(g))return x(m,h,g,E);if(Eo(g))return y(m,h,g,E);Hi(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(m,h.sibling),h=o(h,g),h.return=m,m=h):(n(m,h),h=na(g,m.mode,E),h.return=m,m=h),s(m)):n(m,h)}return w}var io=Ph(!0),bh=Ph(!1),Ns=Bn(null),Ls=null,Ir=null,Ju=null;function ec(){Ju=Ir=Ls=null}function tc(e){var t=Ns.current;ie(Ns),e._currentValue=t}function Ka(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,Ju=Ir=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(He=!0),e.firstContext=null)}function ut(e){var t=e._currentValue;if(Ju!==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 Zn=null;function nc(e){Zn===null?Zn=[e]:Zn.push(e)}function Rh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,nc(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 rc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _h(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 Yt(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,nc(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,Bu(e,n)}}function Fd(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);fr|=s,e.lanes=s,e.memoizedState=d}}function $d(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 Qh(){return ct().memoizedState}function A0(e,t,n){var r=Nn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Kh(e))Gh(t,n);else if(n=Rh(e,t,n,r),n!==null){var o=De();Tt(n,e,r,o),Yh(n,t,r)}}function N0(e,t,n){var r=Nn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Kh(e))Gh(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,nc(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Rh(e,t,o,r),n!==null&&(o=De(),Tt(n,e,r,o),Yh(n,t,r))}}function Kh(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function Gh(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,Bu(e,n)}}var Ds={readContext:ut,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},L0={readContext:ut,useCallback:function(e,t){return Ot().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:Bd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,as(4194308,4,Uh.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=A0.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=Ot();return e={current:e},t.memoizedState=e},useState:Ud,useDebugValue:dc,useDeferredValue:function(e){return Ot().memoizedState=e},useTransition:function(){var e=Ud(!1),t=e[0];return e=O0.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));dr&30||Lh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Bd(Ih.bind(null,r,i,e),[e]),r.flags|=2048,ai(9,Mh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ot(),t=Ee.identifierPrefix;if(le){var n=Gt,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,im(e,t,!1,!1),t.stateNode=e;e:{switch(s=_a(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 gc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ge&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 U0(e,t){switch(Xu(t),t.tag){case 1:return Qe(t.type)&&Rs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return so(),ie(We),ie(Ne),sc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ic(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 tc(t.type._context),null;case 22:case 23:return gc(),null;case 24:return null;default:return null}}var Qi=!1,Ae=!1,B0=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 nu(e,t,n){try{n()}catch(r){fe(e,t,r)}}var Jd=!1;function V0(e,t){if(Fa=Ts,e=fh(),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($a={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 g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.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=Jd,Jd=!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&&nu(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 ru(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 am(e){var t=e.alternate;t!==null&&(e.alternate=null,am(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[Va],delete t[k0],delete t[P0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function um(e){return e.tag===5||e.tag===3||e.tag===4}function ef(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||um(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 ou(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(ou(e,t,n),e=e.sibling;e!==null;)ou(e,t,n),e=e.sibling}function iu(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(iu(e,t,n),e=e.sibling;e!==null;)iu(e,t,n),e=e.sibling}var Se=null,xt=!1;function cn(e,t,n){for(n=n.child;n!==null;)cm(e,t,n),n=n.sibling}function cm(e,t,n){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(Js,n)}catch{}switch(n.tag){case 5:Ae||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?Gl(e.parentNode,n):e.nodeType===1&&Gl(e,n),Zo(e)):Gl(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(!Ae&&(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)&&nu(n,t,s),o=o.next}while(o!==r)}cn(e,t,n);break;case 1:if(!Ae&&(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?(Ae=(r=Ae)||n.memoizedState!==null,cn(e,t,n),Ae=r):cn(e,t,n);break;default:cn(e,t,n)}}function tf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new B0),t.forEach(function(r){var o=Z0.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*W0(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()-mc?lr(e,0):hc|=n),Ke(e,t)}function ym(e,t){t===0&&(e.mode&1?(t=Di,Di<<=1,!(Di&130023424)&&(Di=4194304)):t=1);var n=De();e=Zt(e,t),e!==null&&(xi(e,t,n),Ke(e,n))}function X0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ym(e,n)}function Z0(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),ym(e,n)}var wm;wm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||We.current)He=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return He=!1,F0(e,t,n);He=!!(e.flags&131072)}else He=!1,le&&t.flags&1048576&&Ch(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,Ne.current);Br(t,n),o=ac(null,t,r,e,o,n);var i=uc();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,Qe(r)?(i=!0,_s(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,rc(t),o.updater=sl,t.stateNode=o,o._reactInternals=t,Ya(t,r,e,n),t=Za(null,t,r,!0,i,n)):(t.tag=0,le&&i&&qu(t),Ie(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=ew(r),e=vt(r,e),o){case 0:t=Xa(null,t,r,e,n);break e;case 1:t=qd(null,t,r,e,n);break e;case 11:t=Gd(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),Xa(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vt(r,o),qd(e,t,r,o,n);case 3:e:{if(nm(t),e===null)throw Error(A(387));r=t.pendingProps,i=t.memoizedState,o=i.element,_h(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=Xd(e,t,r,n,o);break e}else if(r!==o){o=lo(Error(A(424)),t),t=Xd(e,t,r,n,o);break e}else for(qe=_n(t.stateNode.containerInfo.firstChild),Xe=t,le=!0,Et=null,n=bh(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}Ie(e,t,r,n)}t=t.child}return t;case 5:return Oh(t),e===null&&Qa(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Ua(r,o)?s=null:i!==null&&Ua(r,i)&&(t.flags|=32),tm(e,t),Ie(e,t,s,n),t.child;case 6:return e===null&&Qa(t),null;case 13:return rm(e,t,n);case 4:return oc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=io(t,null,r,n):Ie(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vt(r,o),Gd(e,t,r,o,n);case 7:return Ie(e,t,t.pendingProps,n),t.child;case 8:return Ie(e,t,t.pendingProps.children,n),t.child;case 12:return Ie(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&&!We.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=Yt(-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),Ka(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),Ka(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}Ie(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Br(t,n),o=ut(o),r=r(o),t.flags|=1,Ie(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 Jh(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,Qe(r)?(e=!0,_s(t)):e=!1,Br(t,n),qh(t,r,o),Ya(t,r,o,n),Za(null,t,r,!0,e,n);case 19:return om(e,t,n);case 22:return em(e,t,n)}throw Error(A(156,t.tag))};function xm(e,t){return Kp(e,t)}function J0(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 lt(e,t,n,r){return new J0(e,t,n,r)}function wc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ew(e){if(typeof e=="function")return wc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===zu)return 11;if(e===Fu)return 14}return 2}function Ln(e,t){var n=e.alternate;return n===null?(n=lt(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")wc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case br:return ar(n.children,o,i,t);case Du:s=8,o|=8;break;case wa:return e=lt(12,n,t,o|2),e.elementType=wa,e.lanes=i,e;case xa:return e=lt(13,n,t,o),e.elementType=xa,e.lanes=i,e;case Ea:return e=lt(19,n,t,o),e.elementType=Ea,e.lanes=i,e;case Op:return ul(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Rp:s=10;break e;case _p:s=9;break e;case zu:s=11;break e;case Fu:s=14;break e;case hn:s=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=lt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ar(e,t,n,r){return e=lt(7,e,r,t),e.lanes=n,e}function ul(e,t,n,r){return e=lt(22,e,r,t),e.elementType=Op,e.lanes=n,e.stateNode={isHidden:!1},e}function na(e,t,n){return e=lt(6,e,null,t),e.lanes=n,e}function ra(e,t,n){return t=lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tw(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 xc(e,t,n,r,o,i,s,l,a){return e=new tw(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=lt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},rc(i),e}function nw(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Tm)}catch(e){console.error(e)}}Tm(),Tp.exports=et;var Ti=Tp.exports;const km=yi(Ti);var Pm,cf=Ti;Pm=cf.createRoot,cf.hydrateRoot;var lw=typeof Element<"u",aw=typeof Map=="function",uw=typeof Set=="function",cw=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(aw&&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(uw&&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(cw&&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(lw&&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 dw=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 fw=yi(dw);var pw=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}},hw=pw;const df=yi(hw);var mw=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))(bm||{}),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"]}},ff=Object.values(bm),hl={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Rm=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},gw=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},yw=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}),{}),ww=(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"&&xw(`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:ww(["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:yw(e),scriptTags:_o("script",["src","innerHTML"],e),styleTags:_o("style",["cssText"],e),title:gw(e),titleAttributes:ia("titleAttributes",e),prioritizeSeoTags:Ew(e,Hr.PRIORITIZE_SEO_TAGS)}),_m=e=>Array.isArray(e)?e.join(""):e,Cw=(e,t)=>{const n=Object.keys(e);for(let r=0;rArray.isArray(e)?e.reduce((n,r)=>(Cw(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},pf=(e,t)=>({...e,[t]:void 0}),Tw=["noscript","script","style"],cu=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),Om=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),kw=(e,t,n,r)=>{const o=Om(n),i=_m(t);return o?`<${e} ${St}="true" ${o}>${cu(i,r)}`:`<${e} ${St}="true">${cu(i,r)}`},Pw=(e,t,n=!0)=>t.reduce((r,o)=>{const i=o,s=Object.keys(i).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,c)=>{const d=typeof i[c]>"u"?c:`${c}="${cu(i[c],n)}"`;return u?`${u} ${d}`:d},""),l=i.innerHTML||i.cssText||"",a=Tw.indexOf(e)===-1;return`${r}<${e} ${St}="true" ${s}${a?"/>":`>${l}`}`},""),Am=(e,t={})=>Object.keys(e).reduce((n,r)=>{const o=hl[r];return n[o||r]=e[r],n},t),bw=(e,t,n)=>{const r={key:t,[St]:!0},o=Am(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)}),rt=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>bw(e,t.title,t.titleAttributes),toString:()=>kw(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Am(t),toString:()=>Om(t)};default:return{toComponent:()=>hs(e,t),toString:()=>Pw(e,t,n)}}},Rw=({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:()=>`${rt("meta",o.priority,r)} ${rt("link",i.priority,r)} ${rt("script",s.priority,r)}`},metaTags:o.default,linkTags:i.default,scriptTags:s.default}},_w=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}=Rw(e)),{priority:f,base:rt("base",t,r),bodyAttributes:rt("bodyAttributes",n,r),htmlAttributes:rt("htmlAttributes",o,r),link:rt("link",c,r),meta:rt("meta",d,r),noscript:rt("noscript",i,r),script:rt("script",p,r),style:rt("style",s,r),title:rt("title",{title:l,titleAttributes:a},r)}},du=_w,Yi=[],Tc=!!(typeof window<"u"&&window.document&&window.document.createElement),fu=class{constructor(e,t){Ut(this,"instances",[]);Ut(this,"canUseDOM",Tc);Ut(this,"context");Ut(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Yi:this.instances,add:e=>{(this.canUseDOM?Yi:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Yi:this.instances).indexOf(e);(this.canUseDOM?Yi:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=du({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Ow=parseInt(R.version.split(".")[0],10),pu=Ow>=19,Aw={},Nm=R.createContext(Aw),er,Lm=(er=class extends v.Component{constructor(n){super(n);Ut(this,"helmetData");pu?this.helmetData=null:this.helmetData=new fu(this.props.context||{},er.canUseDOM)}render(){return pu?R.createElement(R.Fragment,null,this.props.children):R.createElement(Nm.Provider,{value:this.helmetData.value},this.props.children)}},Ut(er,"canUseDOM",Tc),er),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}},hu=(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(","))},Nw=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=_m(e)),hu("title",t)},hf=(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;hu("body",r),hu("html",o),Nw(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,Lw=e=>{Oo&&cancelAnimationFrame(Oo),e.defer?Oo=requestAnimationFrame(()=>{hf(e,()=>{Oo=null})}):(hf(e),Oo=null)},Mw=Lw,mf=class extends v.Component{constructor(){super(...arguments);Ut(this,"rendered",!1)}shouldComponentUpdate(t){return!vw(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=Sw(t.get().map(i=>{const{context:s,...l}=i.props;return l}));Lm.canUseDOM?Mw(o):du&&(r=du(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=[],vf=e=>{const t={};for(const n of Object.keys(e))t[Rm[n]||n]=e[n];return t},Gn=e=>{const t={};for(const n of Object.keys(e)){const r=hl[n];t[r||n]=e[n]}return t},gf=(e,t)=>{if(!Tc)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,vf(r)),o&&Object.assign(t,vf(o))}gf("html",e),gf("body",t)},Iw=class extends v.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",Gn(t),e)}renderBase(){const{base:e}=this.props;return e?R.createElement("base",Gn(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>R.createElement("meta",{key:n,...Gn(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>R.createElement("link",{key:n,...Gn(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...o}=t,i=Gn(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=Gn(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=Gn(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())}},ga,VT=(ga=class extends v.Component{shouldComponentUpdate(e){return!fw(pf(this.props,"helmetData"),pf(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 df(ff.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 ${ff.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),df(!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[Rm[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 fu)){const o=r;r=new fu(o.context,!0),delete n.helmetData}return pu?R.createElement(Iw,{...n}):r?R.createElement(mf,{...n,context:r.value}):R.createElement(Nm.Consumer,null,o=>R.createElement(mf,{...n,context:o}))}},Ut(ga,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),ga);const jw="modulepreload",Dw=function(e){return"/"+e},yf={},$e=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=Dw(a),a in yf)return;yf[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":jw,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)})},zw=1,Fw=1e6;let aa=0;function $w(){return aa=(aa+1)%Number.MAX_SAFE_INTEGER,aa.toString()}const ua=new Map,wf=e=>{if(ua.has(e))return;const t=setTimeout(()=>{ua.delete(e),Qo({type:"REMOVE_TOAST",toastId:e})},Fw);ua.set(e,t)},Uw=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,zw)};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?wf(n):e.toasts.forEach(r=>{wf(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=Uw(gs,e),vs.forEach(t=>{t(gs)})}function Bw({...e}){const t=$w(),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 Vw(){const[e,t]=v.useState(gs);return v.useEffect(()=>(vs.push(t),()=>{const n=vs.indexOf(t);n>-1&&vs.splice(n,1)}),[e]),{...e,toast:Bw,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 xf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Mm(...e){return t=>{let n=!1;const r=e.map(o=>{const i=xf(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{const{children:s,...l}=i,a=v.useMemo(()=>l,Object.values(l));return C.jsx(n.Provider,{value:a,children:s})};r.displayName=e+"Provider";function o(i){const s=v.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function ml(e,t=[]){let n=[];function r(i,s){const l=v.createContext(s),a=n.length;n=[...n,s];const u=d=>{var m;const{scope:p,children:f,...x}=d,y=((m=p==null?void 0:p[e])==null?void 0:m[a])||l,w=v.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=v.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=>v.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return v.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,Hw(o,...t)]}function Hw(...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 v.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Vs(e){const t=Qw(e),n=v.forwardRef((r,o)=>{const{children:i,...s}=r,l=v.Children.toArray(i),a=l.find(Gw);if(a){const u=a.props.children,c=l.map(d=>d===a?v.Children.count(u)>1?v.Children.only(null):v.isValidElement(u)?u.props.children:null:d);return C.jsx(t,{...s,ref:o,children:v.isValidElement(u)?v.cloneElement(u,void 0,c):null})}return C.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var Ww=Vs("Slot");function Qw(e){const t=v.forwardRef((n,r)=>{const{children:o,...i}=n;if(v.isValidElement(o)){const s=qw(o),l=Yw(i,o.props);return o.type!==v.Fragment&&(l.ref=r?Mm(r,s):s),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Im=Symbol("radix.slottable");function Kw(e){const t=({children:n})=>C.jsx(C.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Im,t}function Gw(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Im}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 qw(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 Xw(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),g=R.useRef(new Map).current;return C.jsx(o,{scope:w,itemMap:g,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,g=i(l,m),E=Pt(w,g.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,...g}=y,E=R.useRef(null),S=Pt(w,E),T=i(c,m);return R.useEffect(()=>(T.itemMap.set(E,{ref:E,...g}),()=>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 g=Array.from(h.querySelectorAll(`[${d}]`));return Array.from(w.itemMap.values()).sort((T,k)=>g.indexOf(T.ref.current)-g.indexOf(k.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:s,Slot:u,ItemSlot:f},x,r]}var Zw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ue=Zw.reduce((e,t)=>{const n=Vs(`Primitive.${t}`),r=v.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 jm(e,t){e&&Ti.flushSync(()=>e.dispatchEvent(t))}function Dn(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Jw(e,t=globalThis==null?void 0:globalThis.document){const n=Dn(e);v.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 e1="DismissableLayer",mu="dismissableLayer.update",t1="dismissableLayer.pointerDownOutside",n1="dismissableLayer.focusOutside",Ef,Dm=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),kc=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...a}=e,u=v.useContext(Dm),[c,d]=v.useState(null),p=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=v.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,g=u.layersWithOutsidePointerEventsDisabled.size>0,E=h>=m,S=o1(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=i1(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 Jw(k=>{h===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},p),v.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ef=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Sf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Ef)}},[c,p,n,u]),v.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Sf())},[c,u]),v.useEffect(()=>{const k=()=>f({});return document.addEventListener(mu,k),()=>document.removeEventListener(mu,k)},[]),C.jsx(Ue.div,{...a,ref:x,style:{pointerEvents:g?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)})});kc.displayName=e1;var r1="DismissableLayerBranch",zm=v.forwardRef((e,t)=>{const n=v.useContext(Dm),r=v.useRef(null),o=Pt(t,r);return v.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),C.jsx(Ue.div,{...e,ref:o})});zm.displayName=r1;function o1(e,t=globalThis==null?void 0:globalThis.document){const n=Dn(e),r=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let a=function(){Fm(t1,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 i1(e,t=globalThis==null?void 0:globalThis.document){const n=Dn(e),r=v.useRef(!1);return v.useEffect(()=>{const o=i=>{i.target&&!r.current&&Fm(n1,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 Sf(){const e=new CustomEvent(mu);document.dispatchEvent(e)}function Fm(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?jm(o,i):o.dispatchEvent(i)}var s1=kc,l1=zm,zn=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},a1="Portal",$m=v.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=v.useState(!1);zn(()=>i(!0),[]);const s=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?km.createPortal(C.jsx(Ue.div,{...r,ref:t}),s):null});$m.displayName=a1;function u1(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var Pc=e=>{const{present:t,children:n}=e,r=c1(t),o=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),i=Pt(r.ref,d1(o));return typeof n=="function"||r.isPresent?v.cloneElement(o,{ref:i}):null};Pc.displayName="Presence";function c1(e){const[t,n]=v.useState(),r=v.useRef(null),o=v.useRef(e),i=v.useRef("none"),s=e?"mounted":"unmounted",[l,a]=u1(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.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:v.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function qi(e){return(e==null?void 0:e.animationName)||"none"}function d1(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 f1=Sp[" useInsertionEffect ".trim().toString()]||zn;function p1({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=h1({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:o;{const c=v.useRef(e!==void 0);v.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=v.useCallback(c=>{var d;if(l){const p=m1(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 h1({defaultProp:e,onChange:t}){const[n,r]=v.useState(e),o=v.useRef(n),i=v.useRef(t);return f1(()=>{i.current=t},[t]),v.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function m1(e){return typeof e=="function"}var v1=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"}),g1="VisuallyHidden",vl=v.forwardRef((e,t)=>C.jsx(Ue.span,{...e,ref:t,style:{...v1,...e.style}}));vl.displayName=g1;var y1=vl,bc="ToastProvider",[Rc,w1,x1]=Xw("Toast"),[Um,WT]=ml("Toast",[x1]),[E1,gl]=Um(bc),Bm=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[l,a]=v.useState(null),[u,c]=v.useState(0),d=v.useRef(!1),p=v.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${bc}\`. Expected non-empty \`string\`.`),C.jsx(Rc.Provider,{scope:t,children:C.jsx(E1,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:a,onToastAdd:v.useCallback(()=>c(f=>f+1),[]),onToastRemove:v.useCallback(()=>c(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:p,children:s})})};Bm.displayName=bc;var Vm="ToastViewport",S1=["F8"],vu="toast.viewportPause",gu="toast.viewportResume",Hm=v.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=S1,label:o="Notifications ({hotkey})",...i}=e,s=gl(Vm,n),l=w1(n),a=v.useRef(null),u=v.useRef(null),c=v.useRef(null),d=v.useRef(null),p=Pt(t,d,s.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=s.toastCount>0;v.useEffect(()=>{const w=m=>{var g;r.length!==0&&r.every(E=>m[E]||m.code===E)&&((g=d.current)==null||g.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),v.useEffect(()=>{const w=a.current,m=d.current;if(x&&w&&m){const h=()=>{if(!s.isClosePausedRef.current){const T=new CustomEvent(vu);m.dispatchEvent(T),s.isClosePausedRef.current=!0}},g=()=>{if(s.isClosePausedRef.current){const T=new CustomEvent(gu);m.dispatchEvent(T),s.isClosePausedRef.current=!1}},E=T=>{!w.contains(T.relatedTarget)&&g()},S=()=>{w.contains(document.activeElement)||g()};return w.addEventListener("focusin",h),w.addEventListener("focusout",E),w.addEventListener("pointermove",h),w.addEventListener("pointerleave",S),window.addEventListener("blur",h),window.addEventListener("focus",g),()=>{w.removeEventListener("focusin",h),w.removeEventListener("focusout",E),w.removeEventListener("pointermove",h),w.removeEventListener("pointerleave",S),window.removeEventListener("blur",h),window.removeEventListener("focus",g)}}},[x,s.isClosePausedRef]);const y=v.useCallback(({tabbingDirection:w})=>{const h=l().map(g=>{const E=g.ref.current,S=[E,...I1(E)];return w==="forwards"?S:S.reverse()});return(w==="forwards"?h.reverse():h).flat()},[l]);return v.useEffect(()=>{const w=d.current;if(w){const m=h=>{var S,T,k;const g=h.altKey||h.ctrlKey||h.metaKey;if(h.key==="Tab"&&!g){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(l1,{ref:a,role:"region","aria-label":o.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&C.jsx(yu,{ref:u,onFocusFromOutsideViewport:()=>{const w=y({tabbingDirection:"forwards"});ca(w)}}),C.jsx(Rc.Slot,{scope:n,children:C.jsx(Ue.ol,{tabIndex:-1,...i,ref:p})}),x&&C.jsx(yu,{ref:c,onFocusFromOutsideViewport:()=>{const w=y({tabbingDirection:"backwards"});ca(w)}})]})});Hm.displayName=Vm;var Wm="ToastFocusProxy",yu=v.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=gl(Wm,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()}})});yu.displayName=Wm;var ki="Toast",C1="toast.swipeStart",T1="toast.swipeMove",k1="toast.swipeCancel",P1="toast.swipeEnd",Qm=v.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[l,a]=p1({prop:r,defaultProp:o??!0,onChange:i,caller:ki});return C.jsx(Pc,{present:n||l,children:C.jsx(_1,{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)})})})});Qm.displayName=ki;var[b1,R1]=Um(ki,{onClose(){}}),_1=v.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]=v.useState(null),h=Pt(t,M=>m(M)),g=v.useRef(null),E=v.useRef(null),S=o||y.duration,T=v.useRef(0),k=v.useRef(S),O=v.useRef(0),{onToastAdd:L,onToastRemove:N}=y,F=Dn(()=>{var Y;(w==null?void 0:w.contains(document.activeElement))&&((Y=y.viewport)==null||Y.focus()),s()}),D=v.useCallback(M=>{!M||M===1/0||(window.clearTimeout(O.current),T.current=new Date().getTime(),O.current=window.setTimeout(F,M))},[F]);v.useEffect(()=>{const M=y.viewport;if(M){const Y=()=>{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(vu,$),M.addEventListener(gu,Y),()=>{M.removeEventListener(vu,$),M.removeEventListener(gu,Y)}}},[y.viewport,S,a,u,D]),v.useEffect(()=>{i&&!y.isClosePausedRef.current&&D(S)},[i,S,y.isClosePausedRef,D]),v.useEffect(()=>(L(),()=>N()),[L,N]);const Q=v.useMemo(()=>w?Jm(w):null,[w]);return y.viewport?C.jsxs(C.Fragment,{children:[Q&&C.jsx(O1,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:Q}),C.jsx(b1,{scope:n,onClose:F,children:Ti.createPortal(C.jsx(Rc.ItemSlot,{scope:n,children:C.jsx(s1,{asChild:!0,onEscapeKeyDown:ye(l,()=>{y.isFocusedToastEscapeKeyDownRef.current||F(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:C.jsx(Ue.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&&(g.current={x:M.clientX,y:M.clientY})}),onPointerMove:ye(e.onPointerMove,M=>{if(!g.current)return;const Y=M.clientX-g.current.x,$=M.clientY-g.current.y,V=!!E.current,b=["left","right"].includes(y.swipeDirection),_=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,I=b?_(0,Y):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(T1,d,q,{discrete:!1})):Cf(K,y.swipeDirection,z)?(E.current=K,Xi(C1,c,q,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(Y)>z||Math.abs($)>z)&&(g.current=null)}),onPointerUp:ye(e.onPointerUp,M=>{const Y=E.current,$=M.target;if($.hasPointerCapture(M.pointerId)&&$.releasePointerCapture(M.pointerId),E.current=null,g.current=null,Y){const V=M.currentTarget,b={originalEvent:M,delta:Y};Cf(Y,y.swipeDirection,y.swipeThreshold)?Xi(P1,f,b,{discrete:!0}):Xi(k1,p,b,{discrete:!0}),V.addEventListener("click",_=>_.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),O1=e=>{const{__scopeToast:t,children:n,...r}=e,o=gl(ki,t),[i,s]=v.useState(!1),[l,a]=v.useState(!1);return L1(()=>s(!0)),v.useEffect(()=>{const u=window.setTimeout(()=>a(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:C.jsx($m,{asChild:!0,children:C.jsx(vl,{...r,children:i&&C.jsxs(C.Fragment,{children:[o.label," ",n]})})})},A1="ToastTitle",Km=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return C.jsx(Ue.div,{...r,ref:t})});Km.displayName=A1;var N1="ToastDescription",Gm=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return C.jsx(Ue.div,{...r,ref:t})});Gm.displayName=N1;var Ym="ToastAction",qm=v.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?C.jsx(Zm,{altText:n,asChild:!0,children:C.jsx(_c,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Ym}\`. Expected non-empty \`string\`.`),null)});qm.displayName=Ym;var Xm="ToastClose",_c=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=R1(Xm,n);return C.jsx(Zm,{asChild:!0,children:C.jsx(Ue.button,{type:"button",...r,ref:t,onClick:ye(e.onClick,o.onClose)})})});_c.displayName=Xm;var Zm=v.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return C.jsx(Ue.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Jm(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),M1(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(...Jm(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?jm(o,i):o.dispatchEvent(i)}var Cf=(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 L1(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 M1(e){return e.nodeType===e.ELEMENT_NODE}function I1(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 j1=Bm,ev=Hm,tv=Qm,nv=Km,rv=Gm,ov=qm,iv=_c;function sv(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,kf=lv,Oc=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return kf(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=Tf(c)||Tf(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 kf(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 D1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),av=(...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 z1={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 F1=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...l},a)=>v.createElement("svg",{ref:a,...z1,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:av("lucide",o),...l},[...s.map(([u,c])=>v.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 uv=(e,t)=>{const n=v.forwardRef(({className:r,...o},i)=>v.createElement(F1,{ref:i,iconNode:t,className:av(`lucide-${D1(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 $1=uv("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 U1=uv("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Ac="-",B1=e=>{const t=H1(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const l=s.split(Ac);return l[0]===""&&l.length!==1&&l.shift(),cv(l,t)||V1(s)},getConflictingClassGroupIds:(s,l)=>{const a=n[s]||[];return l&&r[s]?[...a,...r[s]]:a}}},cv=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?cv(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Ac);return(s=t.validators.find(({validator:l})=>l(i)))==null?void 0:s.classGroupId},Pf=/^\[(.+)\]$/,V1=e=>{if(Pf.test(e)){const t=Pf.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},H1=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Q1(Object.entries(e.classGroups),n).forEach(([i,s])=>{wu(s,r,i,t)}),r},wu=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:bf(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(W1(o)){wu(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{wu(s,bf(t,i),n,r)})})},bf=(e,t)=>{let n=e;return t.split(Ac).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},W1=e=>e.isThemeGetter,Q1=(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,K1=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)}}},dv="!",G1=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},q1=e=>({cache:K1(e.cacheSize),parseClassName:G1(e),...B1(e)}),X1=/\s+/,Z1=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(X1);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+dv:w,h=m+y;if(i.includes(h))continue;i.push(h);const g=o(y,x);for(let E=0;E0?" "+l:l)}return l};function J1(){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=q1(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=Z1(a,n);return o(a,c),c}return function(){return i(J1.apply(null,arguments))}}const re=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},pv=/^\[(?:([a-z-]+):)?(.+)\]$/i,tx=/^\d+\/\d+$/,nx=new Set(["px","full","screen"]),rx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ox=/\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$/,ix=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,sx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Bt=e=>Qr(e)||nx.has(e)||tx.test(e),dn=e=>mo(e,"length",mx),Qr=e=>!!e&&!Number.isNaN(Number(e)),da=e=>mo(e,"number",Qr),Ao=e=>!!e&&Number.isInteger(Number(e)),ax=e=>e.endsWith("%")&&Qr(e.slice(0,-1)),W=e=>pv.test(e),fn=e=>rx.test(e),ux=new Set(["length","size","percentage"]),cx=e=>mo(e,ux,hv),dx=e=>mo(e,"position",hv),fx=new Set(["image","url"]),px=e=>mo(e,fx,gx),hx=e=>mo(e,"",vx),No=()=>!0,mo=(e,t,n)=>{const r=pv.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},mx=e=>ox.test(e)&&!ix.test(e),hv=()=>!1,vx=e=>sx.test(e),gx=e=>lx.test(e),yx=()=>{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"),g=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],Y=()=>["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:[ax,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:[...Y(),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:[...Y(),dx]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",cx]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},px]}],"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,hx]}],"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:[g]}],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":[g]}],"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"]}}},wx=ex(yx);function Le(...e){return wx(lv(e))}const xx=j1,mv=v.forwardRef(({className:e,...t},n)=>C.jsx(ev,{ref:n,className:Le("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}));mv.displayName=ev.displayName;const Ex=Oc("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"}}),vv=v.forwardRef(({className:e,variant:t,...n},r)=>C.jsx(tv,{ref:r,className:Le(Ex({variant:t}),e),...n}));vv.displayName=tv.displayName;const Sx=v.forwardRef(({className:e,...t},n)=>C.jsx(ov,{ref:n,className:Le("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}));Sx.displayName=ov.displayName;const gv=v.forwardRef(({className:e,...t},n)=>C.jsx(iv,{ref:n,className:Le("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(U1,{className:"h-4 w-4"})}));gv.displayName=iv.displayName;const yv=v.forwardRef(({className:e,...t},n)=>C.jsx(nv,{ref:n,className:Le("text-sm font-semibold",e),...t}));yv.displayName=nv.displayName;const wv=v.forwardRef(({className:e,...t},n)=>C.jsx(rv,{ref:n,className:Le("text-sm opacity-90",e),...t}));wv.displayName=rv.displayName;function Cx(){const{toasts:e}=Vw();return C.jsxs(xx,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return C.jsxs(vv,{...i,children:[C.jsxs("div",{className:"grid gap-1",children:[n&&C.jsx(yv,{children:n}),r&&C.jsx(wv,{children:r})]}),o,C.jsx(gv,{})]},t)}),C.jsx(mv,{})]})}var Hs=["light","dark"],Nc="(prefers-color-scheme: dark)",Tx=typeof window>"u",Lc=v.createContext(void 0),kx={setTheme:e=>{},themes:[]},Px=()=>{var e;return(e=v.useContext(Lc))!=null?e:kx},bx=e=>v.useContext(Lc)?e.children:v.createElement(_x,{...e}),Rx=["light","dark"],_x=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:o="theme",themes:i=Rx,defaultTheme:s=n?"system":"light",attribute:l="data-theme",value:a,children:u,nonce:c})=>{let[d,p]=v.useState(()=>Rf(o,s)),[f,x]=v.useState(()=>Rf(o)),y=a?Object.values(a):i,w=v.useCallback(E=>{let S=E;if(!S)return;E==="system"&&n&&(S=_f());let T=a?a[S]:S,k=t?Ax():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=v.useCallback(E=>{let S=typeof E=="function"?E(E):E;p(S);try{localStorage.setItem(o,S)}catch{}},[e]),h=v.useCallback(E=>{let S=_f(E);x(S),d==="system"&&n&&!e&&w("system")},[d,e]);v.useEffect(()=>{let E=window.matchMedia(Nc);return E.addListener(h),h(E),()=>E.removeListener(h)},[h]),v.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]),v.useEffect(()=>{w(e??d)},[e,d]);let g=v.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 v.createElement(Lc.Provider,{value:g},v.createElement(Ox,{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)},Ox=v.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}'`,g="";return o&&w&&!y&&Hs.includes(x)&&(g+=`d.style.colorScheme = '${x}';`),n==="class"?y||m?g+=`c.add(${h})`:g+="null":m&&(g+=`d[s](n,${h})`),g},f=e?`!function(){${c}${p(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${Nc}',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 v.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:f}})}),Rf=(e,t)=>{if(Tx)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},Ax=()=>{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)}},_f=e=>(e||(e=window.matchMedia(Nc)),e.matches?"dark":"light"),Nx=e=>{switch(e){case"success":return Ix;case"info":return Dx;case"warning":return jx;case"error":return zx;default:return null}},Lx=Array(12).fill(0),Mx=({visible:e,className:t})=>R.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},R.createElement("div",{className:"sonner-spinner"},Lx.map((n,r)=>R.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Ix=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"})),jx=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"})),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-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"})),zx=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"})),Fx=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"})),$x=()=>{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},xu=1,Ux=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:xu++,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(Vx(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)||xu++;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}},Be=new Ux,Bx=(e,t)=>{let n=(t==null?void 0:t.id)||xu++;return Be.addToast({title:e,...t,id:n}),n},Vx=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Hx=Bx,Wx=()=>Be.toasts,Qx=()=>Be.getActiveToasts(),QT=Object.assign(Hx,{success:Be.success,info:Be.info,warning:Be.warning,error:Be.error,custom:Be.custom,message:Be.message,promise:Be.promise,dismiss:Be.dismiss,loading:Be.loading},{getHistory:Wx,getToasts:Qx});function Kx(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))}Kx(`: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 Gx=3,Yx="32px",qx="16px",Of=4e3,Xx=356,Zx=14,Jx=20,eE=200;function mt(...e){return e.filter(Boolean).join(" ")}function tE(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var nE=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:g,toasts:E,expanded:S,removeToast:T,defaultRichColors:k,closeButton:O,style:L,cancelButtonStyle:N,actionButtonStyle:F,className:D="",descriptionClassName:Q="",duration:M,position:Y,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,Wn]=R.useState(!1),[on,wr]=R.useState(!1),[sn,Ri]=R.useState(!1),[bl,_i]=R.useState(!1),[Rl,wo]=R.useState(0),[xr,Gc]=R.useState(0),xo=R.useRef(f.duration||M||Of),Yc=R.useRef(null),Qn=R.useRef(null),Tg=g===0,kg=g+1<=m,nt=f.type,Er=f.dismissible!==!1,Pg=f.className||"",bg=f.descriptionClassName||"",Oi=R.useMemo(()=>h.findIndex(U=>U.toastId===f.id)||0,[h,f.id]),Rg=R.useMemo(()=>{var U;return(U=f.closeButton)!=null?U:O},[f.closeButton,O]),qc=R.useMemo(()=>f.duration||M||Of,[f.duration,M]),_l=R.useRef(0),Sr=R.useRef(0),Xc=R.useRef(0),Cr=R.useRef(null),[_g,Og]=Y.split("-"),Zc=R.useMemo(()=>h.reduce((U,te,se)=>se>=Oi?U:U+te.height,0),[h,Oi]),Jc=$x(),Ag=f.invert||p,Ol=nt==="loading";Sr.current=R.useMemo(()=>Oi*$+Zc,[Oi,Zc]),R.useEffect(()=>{xo.current=qc},[qc]),R.useEffect(()=>{yr(!0)},[]),R.useEffect(()=>{let U=Qn.current;if(U){let te=U.getBoundingClientRect().height;return Gc(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=Qn.current,te=U.style.height;U.style.height="auto";let se=U.getBoundingClientRect().height;U.style.height=te,Gc(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(()=>{Wn(!0),wo(Sr.current),w(U=>U.filter(te=>te.toastId!==f.id)),setTimeout(()=>{T(f)},eE)},[f,T,w,Sr]);R.useEffect(()=>{if(f.promise&&nt==="loading"||f.duration===1/0||f.type==="loading")return;let U;return S||y||z&&Jc?(()=>{if(Xc.current<_l.current){let te=new Date().getTime()-_l.current;xo.current=xo.current-te}Xc.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,nt,z,Jc,ln]),R.useEffect(()=>{f.delete&&ln()},[ln,f.delete]);function Ng(){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":nt==="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":nt==="loading"},V):R.createElement(Mx,{className:mt(_==null?void 0:_.loader,(se=f==null?void 0:f.classNames)==null?void 0:se.loader),visible:nt==="loading"})}return R.createElement("li",{tabIndex:0,ref:Qn,className:mt(D,Pg,_==null?void 0:_.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,_==null?void 0:_.default,_==null?void 0:_[nt],(n=f==null?void 0:f.classNames)==null?void 0:n[nt]),"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":kg,"data-y-position":_g,"data-x-position":Og,"data-index":g,"data-front":Tg,"data-swiping":on,"data-dismissible":Er,"data-type":nt,"data-invert":Ag,"data-swipe-out":sn,"data-swipe-direction":he,"data-expanded":!!(S||b&&J),style:{"--index":g,"--toasts-before":g,"--z-index":E.length-g,"--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=Qn.current)==null?void 0:U.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),an=Number(((te=Qn.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Kn=new Date().getTime()-((se=Yc.current)==null?void 0:se.getTime()),pt=K==="x"?ft:an,un=Math.abs(pt)/Kn;if(Math.abs(pt)>=Jx||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,Kn=U.clientX-Cr.current.x,pt=(se=e.swipeDirections)!=null?se:tE(Y);!K&&(Math.abs(Kn)>1||Math.abs(an)>1)&&q(Math.abs(Kn)>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")&&Kn<0||pt.includes("right")&&Kn>0)&&(un.x=Kn),(Math.abs(un.x)>0||Math.abs(un.y)>0)&&_i(!0),(dt=Qn.current)==null||dt.style.setProperty("--swipe-amount-x",`${un.x}px`),(ft=Qn.current)==null||ft.style.setProperty("--swipe-amount-y",`${un.y}px`)}},Rg&&!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:Fx):null,f.jsx||v.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:R.createElement(R.Fragment,null,nt||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||Ng():null,f.type!=="loading"?f.icon||(I==null?void 0:I[nt])||Nx(nt):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,bg,_==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),v.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,v.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 Af(){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 rE(e,t){let n={};return[e,t].forEach((r,o)=>{let i=o===1,s=i?"--mobile-offset":"--offset",l=i?qx: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 oE=v.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=Gx,toastOptions:y,dir:w=Af(),gap:m=Zx,loadingIcon:h,icons:g,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),[Y,$]=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||Be.dismiss(z.id),K.filter(({id:he})=>he!==z.id)})},[]);return R.useEffect(()=>Be.subscribe(z=>{if(z.dismiss){k(K=>K.map(q=>q.id===z.id?{...q,delete:!0}:q));return}setTimeout(()=>{km.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"?Af():w,tabIndex:-1,ref:V,className:l,"data-sonner-toaster":!0,"data-theme":Y,"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":`${Xx}px`,"--gap":`${m}px`,...f,...rE(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,Wn;return R.createElement(nE,{key:J.id,icons:g,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:(Wn=y==null?void 0:y.closeButton)!=null?Wn: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 iE=({...e})=>{const{theme:t="system"}=Px();return C.jsx(oE,{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})},sE=["top","right","bottom","left"],Fn=Math.min,Ye=Math.max,Ws=Math.round,Ji=Math.floor,zt=e=>({x:e,y:e}),lE={left:"right",right:"left",bottom:"top",top:"bottom"},aE={start:"end",end:"start"};function Eu(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 Mc(e){return e==="x"?"y":"x"}function Ic(e){return e==="y"?"height":"width"}const uE=new Set(["top","bottom"]);function It(e){return uE.has(tn(e))?"y":"x"}function jc(e){return Mc(It(e))}function cE(e,t,n){n===void 0&&(n=!1);const r=vo(e),o=jc(e),i=Ic(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 dE(e){const t=Qs(e);return[Su(e),t,Su(t)]}function Su(e){return e.replace(/start|end/g,t=>aE[t])}const Nf=["left","right"],Lf=["right","left"],fE=["top","bottom"],pE=["bottom","top"];function hE(e,t,n){switch(e){case"top":case"bottom":return n?t?Lf:Nf:t?Nf:Lf;case"left":case"right":return t?fE:pE;default:return[]}}function mE(e,t,n,r){const o=vo(e);let i=hE(tn(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Su)))),i}function Qs(e){return e.replace(/left|right|bottom|top/g,t=>lE[t])}function vE(e){return{top:0,right:0,bottom:0,left:0,...e}}function xv(e){return typeof e!="number"?vE(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 Mf(e,t,n){let{reference:r,floating:o}=e;const i=It(t),s=jc(t),l=Ic(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 gE=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}=Mf(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=xv(c),p={x:n,y:r},f=jc(o),x=Ic(f),y=await s.getDimensions(u),w=f==="y",m=w?"top":"left",h=w?"bottom":"right",g=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[g]:0;(!k||!await(s.isElement==null?void 0:s.isElement(T)))&&(k=l.floating[g]||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,Y=Eu(D,M,Q),$=!a.arrow&&vo(o)!=null&&M!==Y&&i.reference[x]/2-(MM<=0)){var F,D;const M=(((F=i.flip)==null?void 0:F.index)||0)+1,Y=k[M];if(Y&&(!(d==="alignment"?h!==It(Y):!1)||N.every(b=>b.overflows[0]>0&&It(b.placement)===h)))return{data:{index:M,overflows:N},reset:{placement:Y}};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 If(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jf(e){return sE.some(t=>e[t]>=0)}const xE=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=If(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:jf(s)}}}case"escaped":{const i=await ci(t,{...o,altBoundary:!0}),s=If(i,n.floating);return{data:{escapedOffsets:s,escaped:jf(s)}}}default:return{}}}}},Ev=new Set(["left","top"]);async function EE(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=Ev.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 SE=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 EE(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:s}}}}},CE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:m,y:h}=w;return{x:m,y:h}}},...a}=en(e,t),u={x:n,y:r},c=await ci(t,a),d=It(tn(o)),p=Mc(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],g=f-c[m];f=Eu(h,f,g)}if(s){const w=d==="y"?"top":"left",m=d==="y"?"bottom":"right",h=x+c[w],g=x-c[m];x=Eu(h,x,g)}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}}}}}},TE=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=Mc(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 g=p==="y"?"height":"width",E=i.reference[p]-i.floating[g]+w.mainAxis,S=i.reference[p]+i.reference[g]-w.mainAxis;fS&&(f=S)}if(u){var m,h;const g=p==="y"?"width":"height",E=Ev.has(tn(o)),S=i.reference[d]-i.floating[g]+(E&&((m=s.offset)==null?void 0:m[d])||0)+(E?0:w.crossAxis),T=i.reference[d]+i.reference[g]+(E?0:((h=s.offset)==null?void 0:h[d])||0)-(E?w.crossAxis:0);xT&&(x=T)}return{[p]:f,[d]:x}}}},kE=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,g=x-c.left-c.right,E=Fn(y-c[w],h),S=Fn(x-c[m],g),T=!t.middlewareData.shift;let k=E,O=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=g),(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 Sv(e)?(e.nodeName||"").toLowerCase():"#document"}function Ze(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $t(e){var t;return(t=(Sv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Sv(e){return yl()?e instanceof Node||e instanceof Ze(e).Node:!1}function bt(e){return yl()?e instanceof Element||e instanceof Ze(e).Element:!1}function Ft(e){return yl()?e instanceof HTMLElement||e instanceof Ze(e).HTMLElement:!1}function Df(e){return!yl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ze(e).ShadowRoot}const PE=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)&&!PE.has(o)}const bE=new Set(["table","td","th"]);function RE(e){return bE.has(go(e))}const _E=[":popover-open",":modal"];function wl(e){return _E.some(t=>{try{return e.matches(t)}catch{return!1}})}const OE=["transform","translate","scale","rotate","perspective"],AE=["transform","translate","scale","rotate","perspective","filter"],NE=["paint","layout","strict","content"];function Dc(e){const t=zc(),n=bt(e)?Rt(e):e;return OE.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)||AE.some(r=>(n.willChange||"").includes(r))||NE.some(r=>(n.contain||"").includes(r))}function LE(e){let t=$n(e);for(;Ft(t)&&!uo(t);){if(Dc(t))return t;if(wl(t))return null;t=$n(t)}return null}function zc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ME=new Set(["html","body","#document"]);function uo(e){return ME.has(go(e))}function Rt(e){return Ze(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||Df(e)&&e.host||$t(e);return Df(t)?t.host:t}function Cv(e){const t=$n(e);return uo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ft(t)&&Pi(t)?t:Cv(t)}function di(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Cv(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Ze(o);if(i){const l=Cu(s);return t.concat(s,s.visualViewport||[],Pi(o)?o:[],l&&n?di(l):[])}return t.concat(o,di(o,[],n))}function Cu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Tv(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 Fc(e){return bt(e)?e:e.contextElement}function Kr(e){const t=Fc(e);if(!Ft(t))return zt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Tv(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 IE=zt(0);function kv(e){const t=Ze(e);return!zc()||!t.visualViewport?IE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ze(e)?!1:t}function hr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Fc(e);let s=zt(1);t&&(r?bt(r)&&(s=Kr(r)):s=Kr(e));const l=jE(i,n,r)?kv(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=Ze(i),f=r&&bt(r)?Ze(r):r;let x=p,y=Cu(x);for(;y&&r&&f!==x;){const w=Kr(y),m=y.getBoundingClientRect(),h=Rt(y),g=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+=g,u+=E,x=Ze(y),y=Cu(x)}}return Ks({width:c,height:d,x:a,y:u})}function $c(e,t){const n=xl(e).scrollLeft;return t?t.left+n:hr($t(e)).left+n}function Pv(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:$c(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function DE(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=hr(r);u=Kr(r),c.x=f.x+r.clientLeft,c.y=f.y+r.clientTop}const p=s&&!d&&!i?Pv(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 zE(e){return Array.from(e.getClientRects())}function FE(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+$c(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 $E(e,t){const n=Ze(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=zc();(!u||u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l,y:a}}const UE=new Set(["absolute","fixed"]);function BE(e,t){const n=hr(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 zf(e,t,n){let r;if(t==="viewport")r=$E(e,n);else if(t==="document")r=FE($t(e));else if(bt(t))r=BE(t,n);else{const o=kv(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ks(r)}function bv(e,t){const n=$n(e);return n===t||!bt(n)||uo(n)?!1:Rt(n).position==="fixed"||bv(n,t)}function VE(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=Dc(s);!a&&l.position==="fixed"&&(o=null),(i?!a&&!o:!a&&l.position==="static"&&!!o&&UE.has(o.position)||Pi(s)&&!a&&bv(e,s))?r=r.filter(c=>c!==s):o=l,s=$n(s)}return t.set(e,r),r}function HE(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?wl(t)?[]:VE(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,c)=>{const d=zf(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},zf(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function WE(e){const{width:t,height:n}=Tv(e);return{width:t,height:n}}function QE(e,t,n){const r=Ft(t),o=$t(t),i=n==="fixed",s=hr(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=zt(0);function u(){a.x=$c(o)}if(r||!r&&!i)if((go(t)!=="body"||Pi(o))&&(l=xl(t)),r){const f=hr(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?Pv(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 Ff(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 Rv(e,t){const n=Ze(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=Ff(e,t);for(;r&&RE(r)&&fa(r);)r=Ff(r,t);return r&&uo(r)&&fa(r)&&!Dc(r)?n:r||LE(e)||n}const KE=async function(e){const t=this.getOffsetParent||Rv,n=this.getDimensions,r=await n(e.floating);return{reference:QE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function GE(e){return Rt(e).direction==="rtl"}const YE={convertOffsetParentRelativeRectToViewportRelativeRect:DE,getDocumentElement:$t,getClippingRect:HE,getOffsetParent:Rv,getElementRects:KE,getClientRects:zE,getDimensions:WE,getScale:Kr,isElement:bt,isRTL:GE};function _v(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qE(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),g={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&&!_v(u,e.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(S,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,g)}n.observe(e)}return s(!0),i}function XE(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=Fc(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?qE(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 g;(g=f)==null||g.observe(t)})),n()}),u&&!a&&f.observe(u),f.observe(t));let x,y=a?hr(e):null;a&&w();function w(){const m=hr(e);y&&!_v(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 ZE=SE,JE=CE,eS=wE,tS=kE,nS=xE,$f=yE,rS=TE,oS=(e,t,n)=>{const r=new Map,o={platform:YE,...n},i={...o.platform,_c:r};return gE(e,t,{...o,platform:i})};var iS=typeof document<"u",sS=function(){},ys=iS?v.useLayoutEffect:sS;function Gs(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(!Gs(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)&&!Gs(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ov(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Uf(e,t){const n=Ov(e);return Math.round(t*n)/n}function pa(e){const t=v.useRef(e);return ys(()=>{t.current=e}),t}function lS(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]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=v.useState(r);Gs(p,r)||f(r);const[x,y]=v.useState(null),[w,m]=v.useState(null),h=v.useCallback(b=>{b!==T.current&&(T.current=b,y(b))},[]),g=v.useCallback(b=>{b!==k.current&&(k.current=b,m(b))},[]),E=i||x,S=s||w,T=v.useRef(null),k=v.useRef(null),O=v.useRef(c),L=a!=null,N=pa(a),F=pa(o),D=pa(u),Q=v.useCallback(()=>{if(!T.current||!k.current)return;const b={placement:t,strategy:n,middleware:p};F.current&&(b.platform=F.current),oS(T.current,k.current,b).then(_=>{const I={..._,isPositioned:D.current!==!1};M.current&&!Gs(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=v.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 Y=v.useMemo(()=>({reference:T,floating:k,setReference:h,setFloating:g}),[h,g]),$=v.useMemo(()=>({reference:E,floating:S}),[E,S]),V=v.useMemo(()=>{const b={position:n,left:0,top:0};if(!$.floating)return b;const _=Uf($.floating,c.x),I=Uf($.floating,c.y);return l?{...b,transform:"translate("+_+"px, "+I+"px)",...Ov($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:I}},[n,l,$.floating,c.x,c.y]);return v.useMemo(()=>({...c,update:Q,refs:Y,elements:$,floatingStyles:V}),[c,Q,Y,$,V])}const aS=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?$f({element:r.current,padding:o}).fn(n):{}:r?$f({element:r,padding:o}).fn(n):{}}}},uS=(e,t)=>({...ZE(e),options:[e,t]}),cS=(e,t)=>({...JE(e),options:[e,t]}),dS=(e,t)=>({...rS(e),options:[e,t]}),fS=(e,t)=>({...eS(e),options:[e,t]}),pS=(e,t)=>({...tS(e),options:[e,t]}),hS=(e,t)=>({...nS(e),options:[e,t]}),mS=(e,t)=>({...aS(e),options:[e,t]});var vS="Arrow",Av=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return C.jsx(Ue.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"})})});Av.displayName=vS;var gS=Av;function yS(e){const[t,n]=v.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 Uc="Popper",[Nv,Lv]=ml(Uc),[wS,Mv]=Nv(Uc),Iv=e=>{const{__scopePopper:t,children:n}=e,[r,o]=v.useState(null);return C.jsx(wS,{scope:t,anchor:r,onAnchorChange:o,children:n})};Iv.displayName=Uc;var jv="PopperAnchor",Dv=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Mv(jv,n),s=v.useRef(null),l=Pt(t,s);return v.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:C.jsx(Ue.div,{...o,ref:l})});Dv.displayName=jv;var Bc="PopperContent",[xS,ES]=Nv(Bc),zv=v.forwardRef((e,t)=>{var J,yr,rn,Wn,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=Mv(Bc,n),[m,h]=v.useState(null),g=Pt(t,sn=>h(sn)),[E,S]=v.useState(null),T=yS(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(CS),altBoundary:D},{refs:M,floatingStyles:Y,placement:$,isPositioned:V,middlewareData:b}=lS({strategy:"fixed",placement:L,whileElementsMounted:(...sn)=>XE(...sn,{animationFrame:f==="always"}),elements:{reference:w.anchor},middleware:[uS({mainAxis:o+O,alignmentAxis:s}),a&&cS({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?dS():void 0,...Q}),a&&fS({...Q}),pS({...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&&mS({element:E,padding:l}),TS({arrowWidth:k,arrowHeight:O}),p&&hS({strategy:"referenceHidden",...Q})]}),[_,I]=Uv($),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]=v.useState();return zn(()=>{m&&ke(window.getComputedStyle(m).zIndex)},[m]),C.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:V?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(Wn=b.transformOrigin)==null?void 0:Wn.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(xS,{scope:n,placedSide:_,onArrowChange:S,arrowX:z,arrowY:K,shouldHideArrow:q,children:C.jsx(Ue.div,{"data-side":_,"data-align":I,...y,ref:g,style:{...y.style,animation:V?void 0:"none"}})})})});zv.displayName=Bc;var Fv="PopperArrow",SS={top:"bottom",right:"left",bottom:"top",left:"right"},$v=v.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=ES(Fv,r),s=SS[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(gS,{...o,ref:n,style:{...o.style,display:"block"}})})});$v.displayName=Fv;function CS(e){return e!==null}var TS=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]=Uv(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 Uv(e){const[t,n="center"]=e.split("-");return[t,n]}var KT=Iv,kS=Dv,PS=zv,bS=$v,[El,GT]=ml("Tooltip",[Lv]),Vc=Lv(),Bv="TooltipProvider",RS=700,Bf="tooltip.open",[_S,Vv]=El(Bv),Hv=e=>{const{__scopeTooltip:t,delayDuration:n=RS,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=v.useRef(!0),l=v.useRef(!1),a=v.useRef(0);return v.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),C.jsx(_S,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:v.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:v.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:i})};Hv.displayName=Bv;var Wv="Tooltip",[YT,Sl]=El(Wv),Tu="TooltipTrigger",OS=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Sl(Tu,n),i=Vv(Tu,n),s=Vc(n),l=v.useRef(null),a=Pt(t,l,o.onTriggerChange),u=v.useRef(!1),c=v.useRef(!1),d=v.useCallback(()=>u.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),C.jsx(kS,{asChild:!0,...s,children:C.jsx(Ue.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)})})});OS.displayName=Tu;var AS="TooltipPortal",[qT,NS]=El(AS,{forceMount:void 0}),co="TooltipContent",Qv=v.forwardRef((e,t)=>{const n=NS(co,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=Sl(co,e.__scopeTooltip);return C.jsx(Pc,{present:r||s.open,children:s.disableHoverableContent?C.jsx(Kv,{side:o,...i,ref:t}):C.jsx(LS,{side:o,...i,ref:t})})}),LS=v.forwardRef((e,t)=>{const n=Sl(co,e.__scopeTooltip),r=Vv(co,e.__scopeTooltip),o=v.useRef(null),i=Pt(t,o),[s,l]=v.useState(null),{trigger:a,onClose:u}=n,c=o.current,{onPointerInTransitChange:d}=r,p=v.useCallback(()=>{l(null),d(!1)},[d]),f=v.useCallback((x,y)=>{const w=x.currentTarget,m={x:x.clientX,y:x.clientY},h=zS(m,w.getBoundingClientRect()),g=FS(m,h),E=$S(y.getBoundingClientRect()),S=BS([...g,...E]);l(S),d(!0)},[d]);return v.useEffect(()=>()=>p(),[p]),v.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]),v.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)),g=!US(m,s);h?p():g&&(p(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[a,c,s,u,p]),C.jsx(Kv,{...e,ref:i})}),[MS,IS]=El(Wv,{isInside:!1}),jS=Kw("TooltipContent"),Kv=v.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,a=Sl(co,n),u=Vc(n),{onClose:c}=a;return v.useEffect(()=>(document.addEventListener(Bf,c),()=>document.removeEventListener(Bf,c)),[c]),v.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(kc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:C.jsxs(PS,{"data-state":a.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[C.jsx(jS,{children:r}),C.jsx(MS,{scope:n,isInside:!0,children:C.jsx(y1,{id:a.contentId,role:"tooltip",children:o||r})})]})})});Qv.displayName=co;var Gv="TooltipArrow",DS=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Vc(n);return IS(Gv,n).isInside?null:C.jsx(bS,{...o,...r,ref:t})});DS.displayName=Gv;function zS(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 FS(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 $S(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 US(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 BS(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),VS(t)}function VS(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 HS=Hv,Yv=Qv;const WS=HS,QS=v.forwardRef(({className:e,sideOffset:t=4,...n},r)=>C.jsx(Yv,{ref:r,sideOffset:t,className:Le("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}));QS.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 KS(e,t){return typeof e=="function"?e(t):e}function GS(e){return typeof e=="number"&&e>=0&&e!==1/0}function YS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ku(e,t){return typeof e=="function"?e(t):e}function qS(e,t){return typeof e=="function"?e(t):e}function Vf(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==Hc(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 Hf(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 Hc(e,t){return((t==null?void 0:t.queryKeyHashFn)||fi)(e)}function fi(e){return JSON.stringify(e,(t,n)=>Pu(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 qv(e,t){if(e===t)return e;const n=Wf(e)&&Wf(t);if(n||Pu(e)&&Pu(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 ZS(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?qv(e,t):t}function JS(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function eC(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Wc=Symbol();function Xv(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Wc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var tr,yn,Gr,op,tC=(op=class extends Cl{constructor(){super();Z(this,tr);Z(this,yn);Z(this,Gr);B(this,Gr,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,Gr))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,yn))==null||t.call(this),B(this,yn,void 0))}setEventListener(t){var n;B(this,Gr,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,tr)!==t&&(B(this,tr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof P(this,tr)=="boolean"?P(this,tr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},tr=new WeakMap,yn=new WeakMap,Gr=new WeakMap,op),Zv=new tC,Yr,wn,qr,ip,nC=(ip=class extends Cl{constructor(){super();Z(this,Yr,!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,Yr)!==t&&(B(this,Yr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return P(this,Yr)}},Yr=new WeakMap,wn=new WeakMap,qr=new WeakMap,ip),Ys=new nC;function rC(){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 oC(e){return Math.min(1e3*2**e,3e4)}function Jv(e){return(e??"online")==="online"?Ys.isOnline():!0}var eg=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 eg}function tg(e){let t=!1,n=0,r=!1,o;const i=rC(),s=y=>{var w;r||(p(new eg(y)),(w=e.abort)==null||w.call(e))},l=()=>{t=!0},a=()=>{t=!1},u=()=>Zv.isFocused()&&(e.networkMode==="always"||Ys.isOnline())&&e.canRun(),c=()=>Jv(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),g=e.retryDelay??oC,E=typeof g=="function"?g(n,m):g,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 iC=e=>setTimeout(e,0);function sC(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=iC;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 je=sC(),nr,sp,ng=(sp=class{constructor(){Z(this,nr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),GS(this.gcTime)&&B(this,nr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Tl?1/0:5*60*1e3))}clearGcTimeout(){P(this,nr)&&(clearTimeout(P(this,nr)),B(this,nr,void 0))}},nr=new WeakMap,sp),Xr,rr,ot,or,Oe,vi,ir,yt,Vt,lp,lC=(lp=class extends ng{constructor(t){super();Z(this,yt);Z(this,Xr);Z(this,rr);Z(this,ot);Z(this,or);Z(this,Oe);Z(this,vi);Z(this,ir);B(this,ir,!1),B(this,vi,t.defaultOptions),this.setOptions(t.options),this.observers=[],B(this,or,t.client),B(this,ot,P(this,or).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,B(this,Xr,uC(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,Oe))==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,ot).remove(this)}setData(t,n){const r=ZS(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,Oe))==null?void 0:r.promise;return(o=P(this,Oe))==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=>qS(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Wc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ku(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,Oe))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,Oe))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),P(this,ot).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,Oe)&&(P(this,ir)?P(this,Oe).cancel({revert:!0}):P(this,Oe).cancelRetry()),this.scheduleGc()),P(this,ot).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,Oe))return P(this,Oe).continueRetry(),P(this,Oe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(f=>f.options.queryFn);p&&this.setOptions(p.options)}const r=new AbortController,o=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(B(this,ir,!0),r.signal)})},i=()=>{const p=Xv(this.options,n),x=(()=>{const y={client:P(this,or),queryKey:this.queryKey,meta:this.meta};return o(y),y})();return B(this,ir,!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,or),state:this.state,fetchFn:i};return o(p),p})();(u=this.options.behavior)==null||u.onFetch(l,this),B(this,rr,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,ot).config).onError)==null||x.call(f,p,this),(w=(y=P(this,ot).config).onSettled)==null||w.call(y,this.state.data,p,this)),this.scheduleGc()};return B(this,Oe,tg({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,ot).config).onSuccess)==null||x.call(f,p,this),(w=(y=P(this,ot).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,Oe).start()}},Xr=new WeakMap,rr=new WeakMap,ot=new WeakMap,or=new WeakMap,Oe=new WeakMap,vi=new WeakMap,ir=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,...aC(r.data,this.options),fetchMeta:t.meta??null};case"success":return B(this,rr,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,rr)?{...P(this,rr),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),je.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),P(this,ot).notify({query:this,type:"updated",action:t})})},lp);function aC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Jv(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function uC(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,ap,cC=(ap=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??Hc(o,n);let s=this.get(i);return s||(s=new lC({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(){je.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=>Vf(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Vf(t,r)):n}notify(t){je.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){je.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){je.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},At=new WeakMap,ap),Nt,Me,sr,Lt,pn,up,dC=(up=class extends ng{constructor(t){super();Z(this,Lt);Z(this,Nt);Z(this,Me);Z(this,sr);this.mutationId=t.mutationId,B(this,Me,t.mutationCache),B(this,Nt,[]),this.state=t.state||fC(),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,Me).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){B(this,Nt,P(this,Nt).filter(n=>n!==t)),this.scheduleGc(),P(this,Me).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,Nt).length||(this.state.status==="pending"?this.scheduleGc():P(this,Me).remove(this))}continue(){var t;return((t=P(this,sr))==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,g,E,S,T,k,O;const n=()=>{Pe(this,Lt,pn).call(this,{type:"continue"})};B(this,sr,tg({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,Me).canRun(this)}));const r=this.state.status==="pending",o=!P(this,sr).canStart();try{if(r)n();else{Pe(this,Lt,pn).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=P(this,Me).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,sr).start();return await((c=(u=P(this,Me).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,Me).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,Me).config).onError)==null?void 0:h.call(m,L,t,this.state.context,this)),await((E=(g=this.options).onError)==null?void 0:E.call(g,L,t,this.state.context)),await((T=(S=P(this,Me).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,Me).runNext(this)}}},Nt=new WeakMap,Me=new WeakMap,sr=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),je.batch(()=>{P(this,Nt).forEach(r=>{r.onMutationUpdate(t)}),P(this,Me).notify({mutation:this,type:"updated",action:t})})},up);function fC(){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,cp,pC=(cp=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 dC({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(){je.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=>Hf(n,r))}findAll(t={}){return this.getAll().filter(n=>Hf(t,n))}notify(t){je.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return je.batch(()=>Promise.all(t.map(n=>n.continue().catch(gt))))}},Qt=new WeakMap,wt=new WeakMap,gi=new WeakMap,cp);function es(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Kf(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=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},m=Xv(t.options,t.fetchOptions),h=async(g,E,S)=>{if(y)return Promise.reject();if(E==null&&g.pages.length)return Promise.resolve(g);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?eC:JS;return{pages:N(g.pages,O,L),pageParams:N(g.pageParams,E,L)}};if(o&&i.length){const g=o==="backward",E=g?hC:Gf,S={pages:i,pageParams:s},T=E(r,S);l=await h(S,T,g)}else{const g=e??i.length;do{const E=a===0?s[0]??r.initialPageParam:Gf(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 Gf(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 hC(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,dp,mC=(dp=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 cC),B(this,xn,e.mutationCache||new pC),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,Zv.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,de).onFocus())})),B(this,to,Ys.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(ku(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=KS(t,i);if(s!==void 0)return P(this,de).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return je.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);je.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=P(this,de);return je.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=je.batch(()=>P(this,de).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(gt).catch(gt)}invalidateQueries(e,t={}){return je.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=je.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(ku(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=Kf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(gt).catch(gt)}ensureInfiniteQueryData(e){return e.behavior=Kf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ys.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=Hc(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===Wc&&(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,dp),vC=v.createContext(void 0),gC=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),C.jsx(vC.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 rg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function wC(){return Math.random().toString(36).substr(2,8)}function qf(e,t){return{usr:e.state,key:e.key,idx:t}}function bu(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||wC()})}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 xC(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=bu(y.location,w,m);u=c()+1;let g=qf(h,u),E=y.createHref(h);try{s.pushState(g,"",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=bu(y.location,w,m);u=c();let g=qf(h,u),E=y.createHref(h);s.replaceState(g,"",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 Xf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Xf||(Xf={}));function EC(e,t,n){return n===void 0&&(n="/"),SC(e,t,n,!1)}function SC(e,t,n,r){let o=typeof t=="string"?yo(t):t,i=Qc(o.pathname||"/",n);if(i==null)return null;let s=og(e);CC(s);let l=null;for(let a=0;l==null&&a{let a={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};a.relativePath.startsWith("/")&&(ve(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=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+'".')),og(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:OC(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 ig(i.path))o(i,s,a)}),t}function ig(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=ig(r.join("/")),l=[];return l.push(...s.map(a=>a===""?i:[i,a].join("/"))),o&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function CC(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:AC(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const TC=/^:[\w-]+$/,kC=3,PC=2,bC=1,RC=10,_C=-2,Zf=e=>e==="*";function OC(e,t){let n=e.split("/"),r=n.length;return n.some(Zf)&&(r+=_C),t&&(r+=PC),n.filter(o=>!Zf(o)).reduce((o,i)=>o+(TC.test(i)?kC:i===""?bC:RC),r)}function AC(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 NC(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 LC(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),rg(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 MC(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return rg(!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 Qc(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 IC(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:jC(n,t):t,search:FC(r),hash:$C(o)}}function jC(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 DC(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function sg(e,t){let n=DC(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function lg(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=IC(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,"/"),zC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),FC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,$C=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function UC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ag=["post","put","patch","delete"];new Set(ag);const BC=["get",...ag];new Set(BC);/** * 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}),v.useCallback(function(u,c){if(c===void 0&&(c={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let d=lg(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 XT(){let{matches:e}=v.useContext(Hn),t=e[e.length-1];return t?t.params:{}}function dg(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=v.useContext(gr),{matches:o}=v.useContext(Hn),{pathname:i}=Pl(),s=JSON.stringify(sg(o,r.v7_relativeSplatPath));return v.useMemo(()=>lg(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function KC(e,t){return GC(e,t)}function GC(e,t,n,r){bi()||ve(!1);let{navigator:o}=v.useContext(gr),{matches:i}=v.useContext(Hn),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=EC(e,{pathname:f}),y=JC(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?v.createElement(kl.Provider,{value:{location:mi({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:kn.Pop}},y):y}function YC(){let e=rT(),t=UC(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 v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,null)}const qC=v.createElement(YC,null);class XC extends v.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?v.createElement(Hn.Provider,{value:this.props.routeContext},v.createElement(ug.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ZC(e){let{routeContext:t,match:n,children:r}=e,o=v.useContext(Kc);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(Hn.Provider,{value:t},r)}function JC(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||qC,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 g;return f?g=y:x?g=w:d.route.Component?g=v.createElement(d.route.Component,null):d.route.element?g=d.route.element:g=c,v.createElement(ZC,{match:d,routeContext:{outlet:c,matches:m,isDataRoute:n!=null},children:g})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?v.createElement(XC,{location:n.location,revalidation:n.revalidation,component:y,error:f,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var fg=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(fg||{}),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 eT(e){let t=v.useContext(Kc);return t||ve(!1),t}function tT(e){let t=v.useContext(VC);return t||ve(!1),t}function nT(e){let t=v.useContext(Hn);return t||ve(!1),t}function pg(e){let t=nT(),n=t.matches[t.matches.length-1];return n.route.id||ve(!1),n.route.id}function rT(){var e;let t=v.useContext(ug),n=tT(Xs.UseRouteError),r=pg(Xs.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function oT(){let{router:e}=eT(fg.UseNavigateStable),t=pg(Xs.UseNavigateStable),n=v.useRef(!1);return cg(()=>{n.current=!0}),v.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 iT(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function _e(e){ve(!1)}function sT(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=v.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=v.useMemo(()=>{let w=Qc(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:v.createElement(gr.Provider,{value:u},v.createElement(kl.Provider,{children:n,value:y}))}function lT(e){let{children:t,location:n}=e;return KC(Ru(t),n)}new Promise(()=>{});function Ru(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,o)=>{if(!v.isValidElement(r))return;let i=[...t,o];if(r.type===v.Fragment){n.push.apply(n,Ru(r.props.children,i));return}r.type!==_e&&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=Ru(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 _u(){return _u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function uT(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function cT(e,t){return e.button===0&&(!t||t==="_self")&&!uT(e)}const dT=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],fT="6";try{window.__reactRouterVersion=fT}catch{}const pT="startTransition",ep=Sp[pT];function hT(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=yC({window:o,v5Compat:!0}));let s=i.current,[l,a]=v.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=v.useCallback(d=>{u&&ep?ep(()=>a(d)):a(d)},[a,u]);return v.useLayoutEffect(()=>s.listen(c),[s,c]),v.useEffect(()=>iT(r),[r]),v.createElement(sT,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}const mT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ZT=v.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=aT(t,dT),{basename:f}=v.useContext(gr),x,y=!1;if(typeof u=="string"&&vT.test(u)&&(x=u,mT))try{let g=new URL(window.location.href),E=u.startsWith("//")?new URL(g.protocol+u):new URL(u),S=Qc(E.pathname,f);E.origin===g.origin&&S!=null?u=S+E.search+E.hash:y=!0}catch{}let w=HC(u,{relative:o}),m=gT(u,{replace:s,state:l,target:a,preventScrollReset:c,relative:o,viewTransition:d});function h(g){r&&r(g),g.defaultPrevented||m(g)}return v.createElement("a",_u({},p,{href:x||w,onClick:y||i?r:h,ref:n,target:a}))});var tp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(tp||(tp={}));var np;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(np||(np={}));function gT(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:l}=t===void 0?{}:t,a=WC(),u=Pl(),c=dg(e,{relative:s});return v.useCallback(d=>{if(cT(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 yT="3167929",rp="G-93NG7BDFL6",wT=()=>(v.useEffect(()=>{{window._linkedin_data_partner_ids=window._linkedin_data_partner_ids||[],window._linkedin_data_partner_ids.push(yT);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=${rp}`,document.head.appendChild(e),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date),window.gtag("config",rp)}},[]),null),JT=e=>{window.lintrk&&window.lintrk("track",{conversion_id:e})},ek=(e,t)=>{window.gtag&&window.gtag("event",e,t)},tk=(e,t)=>{window.fbq&&window.fbq("track",e,t)},hg=v.forwardRef(({className:e,...t},n)=>C.jsx("div",{ref:n,className:Le("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));hg.displayName="Card";const mg=v.forwardRef(({className:e,...t},n)=>C.jsx("div",{ref:n,className:Le("flex flex-col space-y-1.5 p-6",e),...t}));mg.displayName="CardHeader";const vg=v.forwardRef(({className:e,...t},n)=>C.jsx("h3",{ref:n,className:Le("text-2xl font-semibold leading-none tracking-tight",e),...t}));vg.displayName="CardTitle";const gg=v.forwardRef(({className:e,...t},n)=>C.jsx("p",{ref:n,className:Le("text-sm text-muted-foreground",e),...t}));gg.displayName="CardDescription";const yg=v.forwardRef(({className:e,...t},n)=>C.jsx("div",{ref:n,className:Le("p-6 pt-0",e),...t}));yg.displayName="CardContent";const xT=v.forwardRef(({className:e,...t},n)=>C.jsx("div",{ref:n,className:Le("flex items-center p-6 pt-0",e),...t}));xT.displayName="CardFooter";const wg=v.forwardRef(({className:e,type:t,...n},r)=>C.jsx("input",{type:t,className:Le("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}));wg.displayName="Input";var ET="Label",xg=v.forwardRef((e,t)=>C.jsx(Ue.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())}}));xg.displayName=ET;var Eg=xg;const ST=Oc("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Sg=v.forwardRef(({className:e,...t},n)=>C.jsx(Eg,{ref:n,className:Le(ST(),e),...t}));Sg.displayName=Eg.displayName;const CT=Oc("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"}}),Cg=v.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?Ww:"button";return C.jsx(s,{className:Le(CT({variant:t,size:n,className:e})),ref:i,...o})});Cg.displayName="Button";const va=({password:e,storageKey:t,title:n="גישה מוגנת",children:r})=>{const[o,i]=v.useState(!1),[s,l]=v.useState(""),[a,u]=v.useState(!1);v.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(hg,{className:"w-full max-w-md",children:[C.jsxs(mg,{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($1,{className:"w-6 h-6 text-primary"})}),C.jsx(vg,{children:n}),C.jsx(gg,{children:"נדרשת סיסמה לצפייה בעמוד זה"})]}),C.jsx(yg,{children:C.jsxs("form",{onSubmit:c,className:"space-y-4",children:[C.jsxs("div",{className:"space-y-2",children:[C.jsx(Sg,{htmlFor:"gate-password",children:"סיסמה"}),C.jsx(wg,{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(Cg,{type:"submit",className:"w-full",children:"כניסה"})]})})]})})},TT=v.lazy(()=>$e(()=>import("./Index-DzxY-UoB.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]))),kT=v.lazy(()=>$e(()=>import("./Experts-B1CFcKJN.js"),__vite__mapDeps([20,1,2,3,4,18,21,19,6,22,23,10,5,9]))),PT=v.lazy(()=>$e(()=>import("./Articles-BVv9KBk5.js"),__vite__mapDeps([24,1,2,3,4,18,21,25,26,27,28,14,29,17,13,30,16,31,32,33,8,34,19,10,23,6]))),bT=v.lazy(()=>$e(()=>import("./CamerasInWorkplace-DM7B0HvK.js"),__vite__mapDeps([35,1,2,3,4,18,26,21,36,6,19,34,23,10,7,5,37,33,38]))),RT=v.lazy(()=>$e(()=>import("./DpoRequirement-C_1K9NVG.js"),__vite__mapDeps([39,1,2,3,4,21,36,6,19,40,22,5,33,41]))),_T=v.lazy(()=>$e(()=>import("./BoardResponsibilities-BXkvwPSy.js"),__vite__mapDeps([42,1,2,3,4,18,21,36,6,19,34,23,10,32,40,22,41,5,33,38]))),OT=v.lazy(()=>$e(()=>import("./GeneratedArticle-DkuxdgKE.js"),__vite__mapDeps([43,1,2,3,4,18,21,19,36,6,16,17,44,34,23,33,41,7]))),AT=v.lazy(()=>$e(()=>import("./Organizations-DAt_acLt.js"),__vite__mapDeps([45,1,2,3,4,18,15,16,17,21,19,6,37,10,22]))),NT=v.lazy(()=>$e(()=>import("./Webinar-BIYAHo-s.js"),__vite__mapDeps([46,1,2,3,4,28,14,29,17,13,19,11,23,40,47,22]))),LT=v.lazy(()=>$e(()=>import("./Fines-BZDHHdsw.js"),__vite__mapDeps([48,1,2,3,4,21,25,26,27,28,14,29,17,13,30,16,31,32,33,8,34,19,38]))),MT=v.lazy(()=>$e(()=>import("./Telegram-BK_AsdXM.js"),__vite__mapDeps([49,16,17,27,50,13,14,26,12,28,29,3,4,51,33,10,52,37,53,47,23,31]))),IT=v.lazy(()=>$e(()=>import("./Videos-4AWAUeyF.js"),__vite__mapDeps([54,16,17,55,27,50,13,14,28,29,3,4,26,51,31,53]))),jT=v.lazy(()=>$e(()=>import("./ArticlesAdmin-BB2DrvoS.js"),__vite__mapDeps([56,16,17,55,27,26,13,29,2,3,44,10,52,51,33,6]))),DT=v.lazy(()=>$e(()=>import("./Breaches-BAG9GcNv.js"),__vite__mapDeps([57,16,17,1,2,3,4,27,50,13,14,30,47,41,34,33]))),zT=v.lazy(()=>$e(()=>import("./NotFound-CZvBorWB.js"),__vite__mapDeps([58,19]))),FT=new mC,$T=()=>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"})}),UT=()=>C.jsx(gC,{client:FT,children:C.jsxs(bx,{attribute:"class",defaultTheme:"dark",enableSystem:!1,children:[C.jsx(wT,{}),C.jsxs(WS,{children:[C.jsx(Cx,{}),C.jsx(iE,{}),C.jsx(hT,{children:C.jsx(v.Suspense,{fallback:C.jsx($T,{}),children:C.jsxs(lT,{children:[C.jsx(_e,{path:"/",element:C.jsx(TT,{})}),C.jsx(_e,{path:"/experts",element:C.jsx(kT,{})}),C.jsx(_e,{path:"/articles",element:C.jsx(PT,{})}),C.jsx(_e,{path:"/articles/cameras-in-workplace",element:C.jsx(bT,{})}),C.jsx(_e,{path:"/articles/dpo-requirement",element:C.jsx(RT,{})}),C.jsx(_e,{path:"/articles/board-responsibilities",element:C.jsx(_T,{})}),C.jsx(_e,{path:"/articles/:slug",element:C.jsx(OT,{})}),C.jsx(_e,{path:"/organizations",element:C.jsx(AT,{})}),C.jsx(_e,{path:"/webinar",element:C.jsx(NT,{})}),C.jsx(_e,{path:"/fines",element:C.jsx(LT,{})}),C.jsx(_e,{path:"/telegram",element:C.jsx(va,{password:"1q2w3e4r!@",storageKey:"telegram-gate",children:C.jsx(MT,{})})}),C.jsx(_e,{path:"/videos",element:C.jsx(va,{password:"1q2w3e4r!@",storageKey:"videos-gate",children:C.jsx(IT,{})})}),C.jsx(_e,{path:"/articles-admin",element:C.jsx(va,{password:"1q2w3e4r!@",storageKey:"articles-admin-gate",children:C.jsx(jT,{})})}),C.jsx(_e,{path:"/breaches",element:C.jsx(DT,{})}),C.jsx(_e,{path:"*",element:C.jsx(zT,{})})]})})})]})]})});Pm(document.getElementById("root")).render(C.jsx(Lm,{children:C.jsx(UT,{})}));export{kS as A,Cg as B,hg as C,Ti as D,kc as E,PS as F,bS as G,Dn as H,wg as I,KT as J,$m as K,$1 as L,Vs as M,HT as N,km as O,Ue as P,VT as Q,R,Px as S,Pl as T,Sp as U,v1 as V,U1 as X,tk as a,JT as b,uv as c,Xw as d,ml as e,Pt as f,ye as g,Le as h,yg as i,C as j,ZT as k,XT as l,QT as m,Vw as n,Sg as o,mg as p,vg as q,v as r,Oc as s,ek as t,p1 as u,gg as v,Pc as w,zn as x,yS as y,Lv as z};