From 4314af089083ab125528c87c2fe4094a16336b82 Mon Sep 17 00:00:00 2001 From: dilaouid Date: Wed, 3 Jan 2024 00:46:20 +0100 Subject: [PATCH] Updates --- .../{index-495b85ff.js => index-6bc78cab.js} | 48 +++++++++---------- index.html | 2 +- 2 files changed, 25 insertions(+), 25 deletions(-) rename assets/{index-495b85ff.js => index-6bc78cab.js} (88%) diff --git a/assets/index-495b85ff.js b/assets/index-6bc78cab.js similarity index 88% rename from assets/index-495b85ff.js rename to assets/index-6bc78cab.js index 42be962..b0c0335 100644 --- a/assets/index-495b85ff.js +++ b/assets/index-6bc78cab.js @@ -6,7 +6,7 @@ function Dv(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),md=Object.prototype.hasOwnProperty,G_=/^[: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]*$/,_m={},Em={};function K_(e){return md.call(Em,e)?!0:md.call(_m,e)?!1:G_.test(e)?Em[e]=!0:(_m[e]=!0,!1)}function Q_(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 Y_(e,t,n,r){if(t===null||typeof t>"u"||Q_(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 Wt(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Rt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Rt[e]=new Wt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Rt[t]=new Wt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Rt[e]=new Wt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Rt[e]=new Wt(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){Rt[e]=new Wt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Rt[e]=new Wt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Rt[e]=new Wt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Rt[e]=new Wt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Rt[e]=new Wt(e,5,!1,e.toLowerCase(),null,!1,!1)});var $f=/[\-:]([a-z])/g;function Mf(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($f,Mf);Rt[t]=new Wt(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($f,Mf);Rt[t]=new Wt(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($f,Mf);Rt[t]=new Wt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Rt[e]=new Wt(e,1,!1,e.toLowerCase(),null,!1,!1)});Rt.xlinkHref=new Wt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Rt[e]=new Wt(e,1,!1,e.toLowerCase(),null,!0,!0)});function If(e,t,n,r){var i=Rt.hasOwnProperty(t)?Rt[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gd=Object.prototype.hasOwnProperty,G_=/^[: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]*$/,_m={},Em={};function K_(e){return gd.call(Em,e)?!0:gd.call(_m,e)?!1:G_.test(e)?Em[e]=!0:(_m[e]=!0,!1)}function Q_(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 Y_(e,t,n,r){if(t===null||typeof t>"u"||Q_(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 Wt(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Rt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Rt[e]=new Wt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Rt[t]=new Wt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Rt[e]=new Wt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Rt[e]=new Wt(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){Rt[e]=new Wt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Rt[e]=new Wt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Rt[e]=new Wt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Rt[e]=new Wt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Rt[e]=new Wt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Mf=/[\-:]([a-z])/g;function If(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(Mf,If);Rt[t]=new Wt(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(Mf,If);Rt[t]=new Wt(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(Mf,If);Rt[t]=new Wt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Rt[e]=new Wt(e,1,!1,e.toLowerCase(),null,!1,!1)});Rt.xlinkHref=new Wt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Rt[e]=new Wt(e,1,!1,e.toLowerCase(),null,!0,!0)});function zf(e,t,n,r){var i=Rt.hasOwnProperty(t)?Rt[t]:null;(i!==null?i.type!==0:r||!(2l||i[s]!==o[l]){var u=` -`+i[s].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=s&&0<=l);break}}}finally{Lc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?js(e):""}function q_(e){switch(e.tag){case 5:return js(e.type);case 16:return js("Lazy");case 13:return js("Suspense");case 19:return js("SuspenseList");case 0:case 2:case 15:return e=Rc(e.type,!1),e;case 11:return e=Rc(e.type.render,!1),e;case 1:return e=Rc(e.type,!0),e;default:return""}}function wd(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 po:return"Fragment";case fo:return"Portal";case gd:return"Profiler";case zf:return"StrictMode";case vd:return"Suspense";case yd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jv:return(e.displayName||"Context")+".Consumer";case Zv:return(e._context.displayName||"Context")+".Provider";case Ff:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Bf:return t=e.displayName||null,t!==null?t:wd(e.type)||"Memo";case zr:t=e._payload,e=e._init;try{return wd(e(t))}catch{}}return null}function X_(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 wd(t);case 8:return t===zf?"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 ti(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function t0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Z_(e){var t=t0(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.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 il(e){e._valueTracker||(e._valueTracker=Z_(e))}function n0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=t0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Vl(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 xd(e,t){var n=t.checked;return it({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Sm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ti(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 r0(e,t){t=t.checked,t!=null&&If(e,"checked",t,!1)}function _d(e,t){r0(e,t);var n=ti(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")?Ed(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ed(e,t.type,ti(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function km(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 Ed(e,t,n){(t!=="number"||Vl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ns=Array.isArray;function To(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=ol.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ea(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ms={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},J_=["Webkit","ms","Moz","O"];Object.keys(Ms).forEach(function(e){J_.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ms[t]=Ms[e]})});function a0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ms.hasOwnProperty(e)&&Ms[e]?(""+t).trim():t+"px"}function l0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=a0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var eE=it({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 kd(e,t){if(t){if(eE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(W(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(W(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(W(61))}if(t.style!=null&&typeof t.style!="object")throw Error(W(62))}}function Cd(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 Td=null;function Uf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Od=null,Oo=null,Po=null;function Om(e){if(e=Ca(e)){if(typeof Od!="function")throw Error(W(280));var t=e.stateNode;t&&(t=Tu(t),Od(e.stateNode,e.type,t))}}function u0(e){Oo?Po?Po.push(e):Po=[e]:Oo=e}function c0(){if(Oo){var e=Oo,t=Po;if(Po=Oo=null,Om(e),t)for(e=0;e>>=0,e===0?32:31-(dE(e)/fE|0)|0}var sl=64,al=4194304;function Ls(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 Yl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Ls(l):(o&=s,o!==0&&(r=Ls(o)))}else s=n&~i,s!==0?r=Ls(s):o!==0&&(r=Ls(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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 Sa(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Vn(t),e[t]=n}function gE(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=zs),Mm=String.fromCharCode(32),Im=!1;function j0(e,t){switch(e){case"keyup":return WE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function N0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ho=!1;function GE(e,t){switch(e){case"compositionend":return N0(t);case"keypress":return t.which!==32?null:(Im=!0,Mm);case"textInput":return e=t.data,e===Mm&&Im?null:e;default:return null}}function KE(e,t){if(ho)return e==="compositionend"||!qf&&j0(e,t)?(e=O0(),Ol=Kf=Wr=null,ho=!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=Um(n)}}function D0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?D0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $0(){for(var e=window,t=Vl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vl(e.document)}return t}function Xf(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 nb(e){var t=$0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&D0(n.ownerDocument.documentElement,n)){if(r!==null&&Xf(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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Hm(n,o);var s=Hm(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>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,mo=null,Ad=null,Bs=null,Dd=!1;function Wm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Dd||mo==null||mo!==Vl(r)||(r=mo,"selectionStart"in r&&Xf(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}),Bs&&sa(Bs,r)||(Bs=r,r=Zl(Ad,"onSelect"),0yo||(e.current=Bd[yo],Bd[yo]=null,yo--)}function qe(e,t){yo++,Bd[yo]=e.current,e.current=t}var ni={},Mt=si(ni),Xt=si(!1),Fi=ni;function Ao(e,t){var n=e.type.contextTypes;if(!n)return ni;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Zt(e){return e=e.childContextTypes,e!=null}function eu(){Je(Xt),Je(Mt)}function Xm(e,t,n){if(Mt.current!==ni)throw Error(W(168));qe(Mt,t),qe(Xt,n)}function V0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(W(108,X_(e)||"Unknown",i));return it({},n,r)}function tu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ni,Fi=Mt.current,qe(Mt,e),qe(Xt,Xt.current),!0}function Zm(e,t,n){var r=e.stateNode;if(!r)throw Error(W(169));n?(e=V0(e,t,Fi),r.__reactInternalMemoizedMergedChildContext=e,Je(Xt),Je(Mt),qe(Mt,e)):Je(Xt),qe(Xt,n)}var gr=null,Ou=!1,Kc=!1;function G0(e){gr===null?gr=[e]:gr.push(e)}function hb(e){Ou=!0,G0(e)}function ai(){if(!Kc&&gr!==null){Kc=!0;var e=0,t=He;try{var n=gr;for(He=1;e>=s,i-=s,vr=1<<32-Vn(t)+i|n<A?(F=O,O=null):F=O.sibling;var H=m(v,O,b[A],T);if(H===null){O===null&&(O=F);break}e&&O&&H.alternate===null&&t(v,O),g=o(H,g,A),k===null?N=H:k.sibling=H,k=H,O=F}if(A===b.length)return n(v,O),tt&&Ei(v,A),N;if(O===null){for(;AA?(F=O,O=null):F=O.sibling;var z=m(v,O,H.value,T);if(z===null){O===null&&(O=F);break}e&&O&&z.alternate===null&&t(v,O),g=o(z,g,A),k===null?N=z:k.sibling=z,k=z,O=F}if(H.done)return n(v,O),tt&&Ei(v,A),N;if(O===null){for(;!H.done;A++,H=b.next())H=h(v,H.value,T),H!==null&&(g=o(H,g,A),k===null?N=H:k.sibling=H,k=H);return tt&&Ei(v,A),N}for(O=r(v,O);!H.done;A++,H=b.next())H=y(O,v,A,H.value,T),H!==null&&(e&&H.alternate!==null&&O.delete(H.key===null?A:H.key),g=o(H,g,A),k===null?N=H:k.sibling=H,k=H);return e&&O.forEach(function(I){return t(v,I)}),tt&&Ei(v,A),N}function C(v,g,b,T){if(typeof b=="object"&&b!==null&&b.type===po&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case rl:e:{for(var N=b.key,k=g;k!==null;){if(k.key===N){if(N=b.type,N===po){if(k.tag===7){n(v,k.sibling),g=i(k,b.props.children),g.return=v,v=g;break e}}else if(k.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===zr&&og(N)===k.type){n(v,k.sibling),g=i(k,b.props),g.ref=_s(v,k,b),g.return=v,v=g;break e}n(v,k);break}else t(v,k);k=k.sibling}b.type===po?(g=$i(b.props.children,v.mode,T,b.key),g.return=v,v=g):(T=$l(b.type,b.key,b.props,null,v.mode,T),T.ref=_s(v,g,b),T.return=v,v=T)}return s(v);case fo:e:{for(k=b.key;g!==null;){if(g.key===k)if(g.tag===4&&g.stateNode.containerInfo===b.containerInfo&&g.stateNode.implementation===b.implementation){n(v,g.sibling),g=i(g,b.children||[]),g.return=v,v=g;break e}else{n(v,g);break}else t(v,g);g=g.sibling}g=td(b,v.mode,T),g.return=v,v=g}return s(v);case zr:return k=b._init,C(v,g,k(b._payload),T)}if(Ns(b))return x(v,g,b,T);if(gs(b))return _(v,g,b,T);hl(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,g!==null&&g.tag===6?(n(v,g.sibling),g=i(g,b),g.return=v,v=g):(n(v,g),g=ed(b,v.mode,T),g.return=v,v=g),s(v)):n(v,g)}return C}var $o=ey(!0),ty=ey(!1),Ta={},or=si(Ta),ca=si(Ta),da=si(Ta);function Pi(e){if(e===Ta)throw Error(W(174));return e}function sp(e,t){switch(qe(da,t),qe(ca,e),qe(or,Ta),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Sd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Sd(t,e)}Je(or),qe(or,t)}function Mo(){Je(or),Je(ca),Je(da)}function ny(e){Pi(da.current);var t=Pi(or.current),n=Sd(t,e.type);t!==n&&(qe(ca,e),qe(or,n))}function ap(e){ca.current===e&&(Je(or),Je(ca))}var nt=si(0);function au(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Qc=[];function lp(){for(var e=0;en?n:4,e(!0);var r=Yc.transition;Yc.transition={};try{e(!1),t()}finally{He=n,Yc.transition=r}}function yy(){return Nn().memoizedState}function yb(e,t,n){var r=Jr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},wy(e))xy(t,n);else if(n=q0(e,t,n,r),n!==null){var i=Ut();Gn(n,e,r,i),_y(n,t,r)}}function wb(e,t,n){var r=Jr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(wy(e))xy(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,Qn(l,s)){var u=t.interleaved;u===null?(i.next=i,ip(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=q0(e,t,i,r),n!==null&&(i=Ut(),Gn(n,e,r,i),_y(n,t,r))}}function wy(e){var t=e.alternate;return e===rt||t!==null&&t===rt}function xy(e,t){Us=lu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _y(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Wf(e,n)}}var uu={readContext:jn,useCallback:At,useContext:At,useEffect:At,useImperativeHandle:At,useInsertionEffect:At,useLayoutEffect:At,useMemo:At,useReducer:At,useRef:At,useState:At,useDebugValue:At,useDeferredValue:At,useTransition:At,useMutableSource:At,useSyncExternalStore:At,useId:At,unstable_isNewReconciler:!1},xb={readContext:jn,useCallback:function(e,t){return tr().memoizedState=[e,t===void 0?null:t],e},useContext:jn,useEffect:ag,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ll(4194308,4,py.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ll(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ll(4,2,e,t)},useMemo:function(e,t){var n=tr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=tr();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=yb.bind(null,rt,e),[r.memoizedState,e]},useRef:function(e){var t=tr();return e={current:e},t.memoizedState=e},useState:sg,useDebugValue:pp,useDeferredValue:function(e){return tr().memoizedState=e},useTransition:function(){var e=sg(!1),t=e[0];return e=vb.bind(null,e[1]),tr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=rt,i=tr();if(tt){if(n===void 0)throw Error(W(407));n=n()}else{if(n=t(),Tt===null)throw Error(W(349));Ui&30||oy(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ag(ay.bind(null,r,o,e),[e]),r.flags|=2048,ha(9,sy.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=tr(),t=Tt.identifierPrefix;if(tt){var n=yr,r=vr;n=(r&~(1<<32-Vn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=fa++,0")&&(u=u.replace("",e.displayName)),u}while(1<=s&&0<=l);break}}}finally{Rc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?js(e):""}function q_(e){switch(e.tag){case 5:return js(e.type);case 16:return js("Lazy");case 13:return js("Suspense");case 19:return js("SuspenseList");case 0:case 2:case 15:return e=Ac(e.type,!1),e;case 11:return e=Ac(e.type.render,!1),e;case 1:return e=Ac(e.type,!0),e;default:return""}}function xd(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 po:return"Fragment";case fo:return"Portal";case vd:return"Profiler";case Ff:return"StrictMode";case yd:return"Suspense";case wd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jv:return(e.displayName||"Context")+".Consumer";case Zv:return(e._context.displayName||"Context")+".Provider";case Bf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Uf:return t=e.displayName||null,t!==null?t:xd(e.type)||"Memo";case zr:t=e._payload,e=e._init;try{return xd(e(t))}catch{}}return null}function X_(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 xd(t);case 8:return t===Ff?"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 ti(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function t0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Z_(e){var t=t0(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.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 il(e){e._valueTracker||(e._valueTracker=Z_(e))}function n0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=t0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Vl(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 _d(e,t){var n=t.checked;return it({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Sm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ti(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 r0(e,t){t=t.checked,t!=null&&zf(e,"checked",t,!1)}function Ed(e,t){r0(e,t);var n=ti(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")?bd(e,t.type,n):t.hasOwnProperty("defaultValue")&&bd(e,t.type,ti(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function km(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 bd(e,t,n){(t!=="number"||Vl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ns=Array.isArray;function To(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=ol.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ea(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ms={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},J_=["Webkit","ms","Moz","O"];Object.keys(Ms).forEach(function(e){J_.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ms[t]=Ms[e]})});function a0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ms.hasOwnProperty(e)&&Ms[e]?(""+t).trim():t+"px"}function l0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=a0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var eE=it({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 Cd(e,t){if(t){if(eE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(W(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(W(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(W(61))}if(t.style!=null&&typeof t.style!="object")throw Error(W(62))}}function Td(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 Od=null;function Hf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pd=null,Oo=null,Po=null;function Om(e){if(e=Ca(e)){if(typeof Pd!="function")throw Error(W(280));var t=e.stateNode;t&&(t=Tu(t),Pd(e.stateNode,e.type,t))}}function u0(e){Oo?Po?Po.push(e):Po=[e]:Oo=e}function c0(){if(Oo){var e=Oo,t=Po;if(Po=Oo=null,Om(e),t)for(e=0;e>>=0,e===0?32:31-(dE(e)/fE|0)|0}var sl=64,al=4194304;function Ls(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 Yl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Ls(l):(o&=s,o!==0&&(r=Ls(o)))}else s=n&~i,s!==0?r=Ls(s):o!==0&&(r=Ls(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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 Sa(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Vn(t),e[t]=n}function gE(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=zs),Mm=String.fromCharCode(32),Im=!1;function j0(e,t){switch(e){case"keyup":return WE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function N0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ho=!1;function GE(e,t){switch(e){case"compositionend":return N0(t);case"keypress":return t.which!==32?null:(Im=!0,Mm);case"textInput":return e=t.data,e===Mm&&Im?null:e;default:return null}}function KE(e,t){if(ho)return e==="compositionend"||!Xf&&j0(e,t)?(e=O0(),Ol=Qf=Wr=null,ho=!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=Um(n)}}function D0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?D0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $0(){for(var e=window,t=Vl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vl(e.document)}return t}function Zf(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 nb(e){var t=$0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&D0(n.ownerDocument.documentElement,n)){if(r!==null&&Zf(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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Hm(n,o);var s=Hm(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>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,mo=null,Dd=null,Bs=null,$d=!1;function Wm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$d||mo==null||mo!==Vl(r)||(r=mo,"selectionStart"in r&&Zf(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}),Bs&&sa(Bs,r)||(Bs=r,r=Zl(Dd,"onSelect"),0yo||(e.current=Ud[yo],Ud[yo]=null,yo--)}function qe(e,t){yo++,Ud[yo]=e.current,e.current=t}var ni={},Mt=si(ni),Xt=si(!1),Fi=ni;function Ao(e,t){var n=e.type.contextTypes;if(!n)return ni;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Zt(e){return e=e.childContextTypes,e!=null}function eu(){Je(Xt),Je(Mt)}function Xm(e,t,n){if(Mt.current!==ni)throw Error(W(168));qe(Mt,t),qe(Xt,n)}function V0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(W(108,X_(e)||"Unknown",i));return it({},n,r)}function tu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ni,Fi=Mt.current,qe(Mt,e),qe(Xt,Xt.current),!0}function Zm(e,t,n){var r=e.stateNode;if(!r)throw Error(W(169));n?(e=V0(e,t,Fi),r.__reactInternalMemoizedMergedChildContext=e,Je(Xt),Je(Mt),qe(Mt,e)):Je(Xt),qe(Xt,n)}var gr=null,Ou=!1,Qc=!1;function G0(e){gr===null?gr=[e]:gr.push(e)}function hb(e){Ou=!0,G0(e)}function ai(){if(!Qc&&gr!==null){Qc=!0;var e=0,t=He;try{var n=gr;for(He=1;e>=s,i-=s,vr=1<<32-Vn(t)+i|n<A?(F=O,O=null):F=O.sibling;var H=m(v,O,b[A],T);if(H===null){O===null&&(O=F);break}e&&O&&H.alternate===null&&t(v,O),g=o(H,g,A),k===null?N=H:k.sibling=H,k=H,O=F}if(A===b.length)return n(v,O),tt&&Ei(v,A),N;if(O===null){for(;AA?(F=O,O=null):F=O.sibling;var z=m(v,O,H.value,T);if(z===null){O===null&&(O=F);break}e&&O&&z.alternate===null&&t(v,O),g=o(z,g,A),k===null?N=z:k.sibling=z,k=z,O=F}if(H.done)return n(v,O),tt&&Ei(v,A),N;if(O===null){for(;!H.done;A++,H=b.next())H=h(v,H.value,T),H!==null&&(g=o(H,g,A),k===null?N=H:k.sibling=H,k=H);return tt&&Ei(v,A),N}for(O=r(v,O);!H.done;A++,H=b.next())H=y(O,v,A,H.value,T),H!==null&&(e&&H.alternate!==null&&O.delete(H.key===null?A:H.key),g=o(H,g,A),k===null?N=H:k.sibling=H,k=H);return e&&O.forEach(function(I){return t(v,I)}),tt&&Ei(v,A),N}function C(v,g,b,T){if(typeof b=="object"&&b!==null&&b.type===po&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case rl:e:{for(var N=b.key,k=g;k!==null;){if(k.key===N){if(N=b.type,N===po){if(k.tag===7){n(v,k.sibling),g=i(k,b.props.children),g.return=v,v=g;break e}}else if(k.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===zr&&og(N)===k.type){n(v,k.sibling),g=i(k,b.props),g.ref=_s(v,k,b),g.return=v,v=g;break e}n(v,k);break}else t(v,k);k=k.sibling}b.type===po?(g=$i(b.props.children,v.mode,T,b.key),g.return=v,v=g):(T=$l(b.type,b.key,b.props,null,v.mode,T),T.ref=_s(v,g,b),T.return=v,v=T)}return s(v);case fo:e:{for(k=b.key;g!==null;){if(g.key===k)if(g.tag===4&&g.stateNode.containerInfo===b.containerInfo&&g.stateNode.implementation===b.implementation){n(v,g.sibling),g=i(g,b.children||[]),g.return=v,v=g;break e}else{n(v,g);break}else t(v,g);g=g.sibling}g=nd(b,v.mode,T),g.return=v,v=g}return s(v);case zr:return k=b._init,C(v,g,k(b._payload),T)}if(Ns(b))return x(v,g,b,T);if(gs(b))return _(v,g,b,T);hl(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,g!==null&&g.tag===6?(n(v,g.sibling),g=i(g,b),g.return=v,v=g):(n(v,g),g=td(b,v.mode,T),g.return=v,v=g),s(v)):n(v,g)}return C}var $o=ey(!0),ty=ey(!1),Ta={},or=si(Ta),ca=si(Ta),da=si(Ta);function Pi(e){if(e===Ta)throw Error(W(174));return e}function ap(e,t){switch(qe(da,t),qe(ca,e),qe(or,Ta),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:kd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=kd(t,e)}Je(or),qe(or,t)}function Mo(){Je(or),Je(ca),Je(da)}function ny(e){Pi(da.current);var t=Pi(or.current),n=kd(t,e.type);t!==n&&(qe(ca,e),qe(or,n))}function lp(e){ca.current===e&&(Je(or),Je(ca))}var nt=si(0);function au(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Yc=[];function up(){for(var e=0;en?n:4,e(!0);var r=qc.transition;qc.transition={};try{e(!1),t()}finally{He=n,qc.transition=r}}function yy(){return Nn().memoizedState}function yb(e,t,n){var r=Jr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},wy(e))xy(t,n);else if(n=q0(e,t,n,r),n!==null){var i=Ut();Gn(n,e,r,i),_y(n,t,r)}}function wb(e,t,n){var r=Jr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(wy(e))xy(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,Qn(l,s)){var u=t.interleaved;u===null?(i.next=i,op(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=q0(e,t,i,r),n!==null&&(i=Ut(),Gn(n,e,r,i),_y(n,t,r))}}function wy(e){var t=e.alternate;return e===rt||t!==null&&t===rt}function xy(e,t){Us=lu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _y(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Vf(e,n)}}var uu={readContext:jn,useCallback:At,useContext:At,useEffect:At,useImperativeHandle:At,useInsertionEffect:At,useLayoutEffect:At,useMemo:At,useReducer:At,useRef:At,useState:At,useDebugValue:At,useDeferredValue:At,useTransition:At,useMutableSource:At,useSyncExternalStore:At,useId:At,unstable_isNewReconciler:!1},xb={readContext:jn,useCallback:function(e,t){return tr().memoizedState=[e,t===void 0?null:t],e},useContext:jn,useEffect:ag,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ll(4194308,4,py.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ll(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ll(4,2,e,t)},useMemo:function(e,t){var n=tr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=tr();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=yb.bind(null,rt,e),[r.memoizedState,e]},useRef:function(e){var t=tr();return e={current:e},t.memoizedState=e},useState:sg,useDebugValue:hp,useDeferredValue:function(e){return tr().memoizedState=e},useTransition:function(){var e=sg(!1),t=e[0];return e=vb.bind(null,e[1]),tr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=rt,i=tr();if(tt){if(n===void 0)throw Error(W(407));n=n()}else{if(n=t(),Tt===null)throw Error(W(349));Ui&30||oy(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ag(ay.bind(null,r,o,e),[e]),r.flags|=2048,ha(9,sy.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=tr(),t=Tt.identifierPrefix;if(tt){var n=yr,r=vr;n=(r&~(1<<32-Vn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=fa++,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[rr]=t,e[ua]=r,jy(e,t,!1,!1),t.stateNode=e;e:{switch(s=Cd(n,r),n){case"dialog":Xe("cancel",e),Xe("close",e),i=r;break;case"iframe":case"object":case"embed":Xe("load",e),i=r;break;case"video":case"audio":for(i=0;izo&&(t.flags|=128,r=!0,Es(o,!1),t.lanes=4194304)}else{if(!r)if(e=au(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Es(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!tt)return Dt(t),null}else 2*ht()-o.renderingStartTime>zo&&n!==1073741824&&(t.flags|=128,r=!0,Es(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ht(),t.sibling=null,n=nt.current,qe(nt,r?n&1|2:n&1),t):(Dt(t),null);case 22:case 23:return wp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?un&1073741824&&(Dt(t),t.subtreeFlags&6&&(t.flags|=8192)):Dt(t),null;case 24:return null;case 25:return null}throw Error(W(156,t.tag))}function Ob(e,t){switch(Jf(t),t.tag){case 1:return Zt(t.type)&&eu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mo(),Je(Xt),Je(Mt),lp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ap(t),null;case 13:if(Je(nt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));Do()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Je(nt),null;case 4:return Mo(),null;case 10:return rp(t.type._context),null;case 22:case 23:return wp(),null;case 24:return null;default:return null}}var gl=!1,$t=!1,Pb=typeof WeakSet=="function"?WeakSet:Set,ee=null;function Eo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ut(e,t,r)}else n.current=null}function Jd(e,t,n){try{n()}catch(r){ut(e,t,r)}}var gg=!1;function jb(e,t){if($d=ql,e=$0(),Xf(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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,u=-1,c=0,f=0,h=e,m=null;t:for(;;){for(var y;h!==n||i!==0&&h.nodeType!==3||(l=s+i),h!==o||r!==0&&h.nodeType!==3||(u=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(y=h.firstChild)!==null;)m=h,h=y;for(;;){if(h===e)break t;if(m===n&&++c===i&&(l=s),m===o&&++f===r&&(u=s),(y=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=y}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Md={focusedElem:e,selectionRange:n},ql=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;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 _=x.memoizedProps,C=x.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?_:Bn(t.type,_),C);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(W(163))}}catch(T){ut(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return x=gg,gg=!1,x}function Hs(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Jd(t,n,o)}i=i.next}while(i!==r)}}function Nu(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 ef(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 Ry(e){var t=e.alternate;t!==null&&(e.alternate=null,Ry(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rr],delete t[ua],delete t[Fd],delete t[fb],delete t[pb])),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 Ay(e){return e.tag===5||e.tag===3||e.tag===4}function vg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ay(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 tf(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=Jl));else if(r!==4&&(e=e.child,e!==null))for(tf(e,t,n),e=e.sibling;e!==null;)tf(e,t,n),e=e.sibling}function nf(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(nf(e,t,n),e=e.sibling;e!==null;)nf(e,t,n),e=e.sibling}var Nt=null,Un=!1;function $r(e,t,n){for(n=n.child;n!==null;)Dy(e,t,n),n=n.sibling}function Dy(e,t,n){if(ir&&typeof ir.onCommitFiberUnmount=="function")try{ir.onCommitFiberUnmount(bu,n)}catch{}switch(n.tag){case 5:$t||Eo(n,t);case 6:var r=Nt,i=Un;Nt=null,$r(e,t,n),Nt=r,Un=i,Nt!==null&&(Un?(e=Nt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Nt.removeChild(n.stateNode));break;case 18:Nt!==null&&(Un?(e=Nt,n=n.stateNode,e.nodeType===8?Gc(e.parentNode,n):e.nodeType===1&&Gc(e,n),ia(e)):Gc(Nt,n.stateNode));break;case 4:r=Nt,i=Un,Nt=n.stateNode.containerInfo,Un=!0,$r(e,t,n),Nt=r,Un=i;break;case 0:case 11:case 14:case 15:if(!$t&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Jd(n,t,s),i=i.next}while(i!==r)}$r(e,t,n);break;case 1:if(!$t&&(Eo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ut(n,t,l)}$r(e,t,n);break;case 21:$r(e,t,n);break;case 22:n.mode&1?($t=(r=$t)||n.memoizedState!==null,$r(e,t,n),$t=r):$r(e,t,n);break;default:$r(e,t,n)}}function yg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Pb),t.forEach(function(r){var i=zb.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Fn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=ht()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Lb(r/1960))-r,10e?16:e,Vr===null)var r=!1;else{if(e=Vr,Vr=null,fu=0,Me&6)throw Error(W(331));var i=Me;for(Me|=4,ee=e.current;ee!==null;){var o=ee,s=o.child;if(ee.flags&16){var l=o.deletions;if(l!==null){for(var u=0;uht()-vp?Di(e,0):gp|=n),Jt(e,t)}function Hy(e,t){t===0&&(e.mode&1?(t=al,al<<=1,!(al&130023424)&&(al=4194304)):t=1);var n=Ut();e=br(e,t),e!==null&&(Sa(e,t,n),Jt(e,n))}function Ib(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Hy(e,n)}function zb(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(W(314))}r!==null&&r.delete(t),Hy(e,n)}var Wy;Wy=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xt.current)Qt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Qt=!1,Cb(e,t,n);Qt=!!(e.flags&131072)}else Qt=!1,tt&&t.flags&1048576&&K0(t,ru,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Rl(e,t),e=t.pendingProps;var i=Ao(t,Mt.current);No(t,n),i=cp(null,t,r,e,i,n);var o=dp();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Zt(r)?(o=!0,tu(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,op(t),i.updater=Pu,t.stateNode=i,i._reactInternals=t,Gd(t,r,e,n),t=Yd(null,t,r,!0,o,n)):(t.tag=0,tt&&o&&Zf(t),Bt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Rl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Bb(r),e=Bn(r,e),i){case 0:t=Qd(null,t,r,e,n);break e;case 1:t=pg(null,t,r,e,n);break e;case 11:t=dg(null,t,r,e,n);break e;case 14:t=fg(null,t,r,Bn(r.type,e),n);break e}throw Error(W(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bn(r,i),Qd(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bn(r,i),pg(e,t,r,i,n);case 3:e:{if(Ty(t),e===null)throw Error(W(387));r=t.pendingProps,o=t.memoizedState,i=o.element,X0(e,t),su(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Io(Error(W(423)),t),t=hg(e,t,r,n,i);break e}else if(r!==i){i=Io(Error(W(424)),t),t=hg(e,t,r,n,i);break e}else for(cn=qr(t.stateNode.containerInfo.firstChild),dn=t,tt=!0,Wn=null,n=ty(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Do(),r===i){t=Sr(e,t,n);break e}Bt(e,t,r,n)}t=t.child}return t;case 5:return ny(t),e===null&&Hd(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Id(r,i)?s=null:o!==null&&Id(r,o)&&(t.flags|=32),Cy(e,t),Bt(e,t,s,n),t.child;case 6:return e===null&&Hd(t),null;case 13:return Oy(e,t,n);case 4:return sp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=$o(t,null,r,n):Bt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bn(r,i),dg(e,t,r,i,n);case 7:return Bt(e,t,t.pendingProps,n),t.child;case 8:return Bt(e,t,t.pendingProps.children,n),t.child;case 12:return Bt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,qe(iu,r._currentValue),r._currentValue=s,o!==null)if(Qn(o.value,s)){if(o.children===i.children&&!Xt.current){t=Sr(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var u=l.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=wr(-1,n&-n),u.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Wd(o.return,n,t),l.lanes|=n;break}u=u.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(W(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Wd(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Bt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,No(t,n),i=jn(i),r=r(i),t.flags|=1,Bt(e,t,r,n),t.child;case 14:return r=t.type,i=Bn(r,t.pendingProps),i=Bn(r.type,i),fg(e,t,r,i,n);case 15:return Sy(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bn(r,i),Rl(e,t),t.tag=1,Zt(r)?(e=!0,tu(t)):e=!1,No(t,n),J0(t,r,i),Gd(t,r,i,n),Yd(null,t,r,!0,e,n);case 19:return Py(e,t,n);case 22:return ky(e,t,n)}throw Error(W(156,t.tag))};function Vy(e,t){return v0(e,t)}function Fb(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 On(e,t,n,r){return new Fb(e,t,n,r)}function _p(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bb(e){if(typeof e=="function")return _p(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ff)return 11;if(e===Bf)return 14}return 2}function ei(e,t){var n=e.alternate;return n===null?(n=On(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 $l(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")_p(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case po:return $i(n.children,i,o,t);case zf:s=8,i|=8;break;case gd:return e=On(12,n,t,i|2),e.elementType=gd,e.lanes=o,e;case vd:return e=On(13,n,t,i),e.elementType=vd,e.lanes=o,e;case yd:return e=On(19,n,t,i),e.elementType=yd,e.lanes=o,e;case e0:return Ru(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zv:s=10;break e;case Jv:s=9;break e;case Ff:s=11;break e;case Bf:s=14;break e;case zr:s=16,r=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=On(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function $i(e,t,n,r){return e=On(7,e,r,t),e.lanes=n,e}function Ru(e,t,n,r){return e=On(22,e,r,t),e.elementType=e0,e.lanes=n,e.stateNode={isHidden:!1},e}function ed(e,t,n){return e=On(6,e,null,t),e.lanes=n,e}function td(e,t,n){return t=On(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ub(e,t,n,r,i){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=Dc(0),this.expirationTimes=Dc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dc(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ep(e,t,n,r,i,o,s,l,u){return e=new Ub(e,t,n,l,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=On(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},op(o),e}function Hb(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yy)}catch(e){console.error(e)}}Yy(),Kv.exports=hn;var Cp=Kv.exports;const ji=qo(Cp),Qb=Dv({__proto__:null,default:ji},[Cp]);var Cg=Cp;hd.createRoot=Cg.createRoot,hd.hydrateRoot=Cg.hydrateRoot;/** +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Jc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Qd(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var bb=typeof WeakMap=="function"?WeakMap:Map;function Ey(e,t,n){n=wr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){du||(du=!0,of=r),Qd(e,t)},n}function by(e,t,n){n=wr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Qd(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Qd(e,t),typeof r!="function"&&(Zr===null?Zr=new Set([this]):Zr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function lg(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new bb;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Mb.bind(null,e,t,n),t.then(e,e))}function ug(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function cg(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=wr(-1,1),t.tag=2,Xr(n,t,1))),n.lanes|=1),e)}var Sb=Cr.ReactCurrentOwner,Qt=!1;function Bt(e,t,n,r){t.child=e===null?ty(t,null,n,r):$o(t,e.child,n,r)}function dg(e,t,n,r,i){n=n.render;var o=t.ref;return No(t,i),r=dp(e,t,n,r,o,i),n=fp(),e!==null&&!Qt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Sr(e,t,i)):(tt&&n&&Jf(t),t.flags|=1,Bt(e,t,r,i),t.child)}function fg(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Ep(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Sy(e,t,o,r,i)):(e=$l(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:sa,n(s,r)&&e.ref===t.ref)return Sr(e,t,i)}return t.flags|=1,e=ei(o,r),e.ref=t.ref,e.return=t,t.child=e}function Sy(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(sa(o,r)&&e.ref===t.ref)if(Qt=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Qt=!0);else return t.lanes=e.lanes,Sr(e,t,i)}return Yd(e,t,n,r,i)}function ky(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},qe(bo,un),un|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,qe(bo,un),un|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,qe(bo,un),un|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,qe(bo,un),un|=r;return Bt(e,t,i,n),t.child}function Cy(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yd(e,t,n,r,i){var o=Zt(n)?Fi:Mt.current;return o=Ao(t,o),No(t,i),n=dp(e,t,n,r,o,i),r=fp(),e!==null&&!Qt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Sr(e,t,i)):(tt&&r&&Jf(t),t.flags|=1,Bt(e,t,n,i),t.child)}function pg(e,t,n,r,i){if(Zt(n)){var o=!0;tu(t)}else o=!1;if(No(t,i),t.stateNode===null)Rl(e,t),J0(t,n,r),Kd(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var u=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=jn(c):(c=Zt(n)?Fi:Mt.current,c=Ao(t,c));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||u!==c)&&ig(t,s,r,c),Fr=!1;var m=t.memoizedState;s.state=m,su(t,r,s,i),u=t.memoizedState,l!==r||m!==u||Xt.current||Fr?(typeof f=="function"&&(Gd(t,n,f,r),u=t.memoizedState),(l=Fr||rg(t,n,l,r,m,u,c))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),s.props=r,s.state=u,s.context=c,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,X0(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Bn(t.type,l),s.props=c,h=t.pendingProps,m=s.context,u=n.contextType,typeof u=="object"&&u!==null?u=jn(u):(u=Zt(n)?Fi:Mt.current,u=Ao(t,u));var y=n.getDerivedStateFromProps;(f=typeof y=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==h||m!==u)&&ig(t,s,r,u),Fr=!1,m=t.memoizedState,s.state=m,su(t,r,s,i);var x=t.memoizedState;l!==h||m!==x||Xt.current||Fr?(typeof y=="function"&&(Gd(t,n,y,r),x=t.memoizedState),(c=Fr||rg(t,n,c,r,m,x,u)||!1)?(f||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,x,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,x,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),s.props=r,s.state=x,s.context=u,r=c):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return qd(e,t,n,r,o,i)}function qd(e,t,n,r,i,o){Cy(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&Zm(t,n,!1),Sr(e,t,o);r=t.stateNode,Sb.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=$o(t,e.child,null,o),t.child=$o(t,null,l,o)):Bt(e,t,l,o),t.memoizedState=r.state,i&&Zm(t,n,!0),t.child}function Ty(e){var t=e.stateNode;t.pendingContext?Xm(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Xm(e,t.context,!1),ap(e,t.containerInfo)}function hg(e,t,n,r,i){return Do(),tp(i),t.flags|=256,Bt(e,t,n,r),t.child}var Xd={dehydrated:null,treeContext:null,retryLane:0};function Zd(e){return{baseLanes:e,cachePool:null,transitions:null}}function Oy(e,t,n){var r=t.pendingProps,i=nt.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),qe(nt,i&1),e===null)return Wd(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Ru(s,r,0,null),e=$i(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Zd(n),t.memoizedState=Xd,e):mp(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return kb(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var u={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=ei(i,u),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=ei(l,o):(o=$i(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Zd(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Xd,r}return o=e.child,e=o.sibling,r=ei(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function mp(e,t){return t=Ru({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ml(e,t,n,r){return r!==null&&tp(r),$o(t,e.child,null,n),e=mp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function kb(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=Jc(Error(W(422))),ml(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Ru({mode:"visible",children:r.children},i,0,null),o=$i(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&$o(t,e.child,null,s),t.child.memoizedState=Zd(s),t.memoizedState=Xd,o);if(!(t.mode&1))return ml(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(W(419)),r=Jc(o,r,void 0),ml(e,t,s,r)}if(l=(s&e.childLanes)!==0,Qt||l){if(r=Tt,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,br(e,i),Gn(r,e,i,-1))}return _p(),r=Jc(Error(W(421))),ml(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Ib.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,cn=qr(i.nextSibling),dn=t,tt=!0,Wn=null,e!==null&&(Cn[Tn++]=vr,Cn[Tn++]=yr,Cn[Tn++]=Bi,vr=e.id,yr=e.overflow,Bi=t),t=mp(t,r.children),t.flags|=4096,t)}function mg(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Vd(e.return,t,n)}function ed(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Py(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Bt(e,t,r.children,n),r=nt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&mg(e,n,t);else if(e.tag===19)mg(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(qe(nt,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&au(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ed(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&au(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ed(t,!0,n,null,o);break;case"together":ed(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Rl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Sr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Hi|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(W(153));if(t.child!==null){for(e=t.child,n=ei(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ei(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Cb(e,t,n){switch(t.tag){case 3:Ty(t),Do();break;case 5:ny(t);break;case 1:Zt(t.type)&&tu(t);break;case 4:ap(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;qe(iu,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(qe(nt,nt.current&1),t.flags|=128,null):n&t.child.childLanes?Oy(e,t,n):(qe(nt,nt.current&1),e=Sr(e,t,n),e!==null?e.sibling:null);qe(nt,nt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Py(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),qe(nt,nt.current),r)break;return null;case 22:case 23:return t.lanes=0,ky(e,t,n)}return Sr(e,t,n)}var jy,Jd,Ny,Ly;jy=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Jd=function(){};Ny=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Pi(or.current);var o=null;switch(n){case"input":i=_d(e,i),r=_d(e,r),o=[];break;case"select":i=it({},i,{value:void 0}),r=it({},r,{value:void 0}),o=[];break;case"textarea":i=Sd(e,i),r=Sd(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Jl)}Cd(n,r);var s;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var l=i[c];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Js.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var u=r[c];if(l=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(u!=null||l!=null))if(c==="style")if(l){for(s in l)!l.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in u)u.hasOwnProperty(s)&&l[s]!==u[s]&&(n||(n={}),n[s]=u[s])}else n||(o||(o=[]),o.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(o=o||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Js.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&Xe("scroll",e),o||l===u||(o=[])):(o=o||[]).push(c,u))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};Ly=function(e,t,n,r){n!==r&&(t.flags|=4)};function Es(e,t){if(!tt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Dt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Tb(e,t,n){var r=t.pendingProps;switch(ep(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(t),null;case 1:return Zt(t.type)&&eu(),Dt(t),null;case 3:return r=t.stateNode,Mo(),Je(Xt),Je(Mt),up(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(pl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Wn!==null&&(lf(Wn),Wn=null))),Jd(e,t),Dt(t),null;case 5:lp(t);var i=Pi(da.current);if(n=t.type,e!==null&&t.stateNode!=null)Ny(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(W(166));return Dt(t),null}if(e=Pi(or.current),pl(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[rr]=t,r[ua]=o,e=(t.mode&1)!==0,n){case"dialog":Xe("cancel",r),Xe("close",r);break;case"iframe":case"object":case"embed":Xe("load",r);break;case"video":case"audio":for(i=0;i<\/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[rr]=t,e[ua]=r,jy(e,t,!1,!1),t.stateNode=e;e:{switch(s=Td(n,r),n){case"dialog":Xe("cancel",e),Xe("close",e),i=r;break;case"iframe":case"object":case"embed":Xe("load",e),i=r;break;case"video":case"audio":for(i=0;izo&&(t.flags|=128,r=!0,Es(o,!1),t.lanes=4194304)}else{if(!r)if(e=au(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Es(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!tt)return Dt(t),null}else 2*ht()-o.renderingStartTime>zo&&n!==1073741824&&(t.flags|=128,r=!0,Es(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ht(),t.sibling=null,n=nt.current,qe(nt,r?n&1|2:n&1),t):(Dt(t),null);case 22:case 23:return xp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?un&1073741824&&(Dt(t),t.subtreeFlags&6&&(t.flags|=8192)):Dt(t),null;case 24:return null;case 25:return null}throw Error(W(156,t.tag))}function Ob(e,t){switch(ep(t),t.tag){case 1:return Zt(t.type)&&eu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mo(),Je(Xt),Je(Mt),up(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return lp(t),null;case 13:if(Je(nt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));Do()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Je(nt),null;case 4:return Mo(),null;case 10:return ip(t.type._context),null;case 22:case 23:return xp(),null;case 24:return null;default:return null}}var gl=!1,$t=!1,Pb=typeof WeakSet=="function"?WeakSet:Set,ee=null;function Eo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ut(e,t,r)}else n.current=null}function ef(e,t,n){try{n()}catch(r){ut(e,t,r)}}var gg=!1;function jb(e,t){if(Md=ql,e=$0(),Zf(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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,u=-1,c=0,f=0,h=e,m=null;t:for(;;){for(var y;h!==n||i!==0&&h.nodeType!==3||(l=s+i),h!==o||r!==0&&h.nodeType!==3||(u=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(y=h.firstChild)!==null;)m=h,h=y;for(;;){if(h===e)break t;if(m===n&&++c===i&&(l=s),m===o&&++f===r&&(u=s),(y=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=y}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Id={focusedElem:e,selectionRange:n},ql=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;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 _=x.memoizedProps,C=x.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?_:Bn(t.type,_),C);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(W(163))}}catch(T){ut(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return x=gg,gg=!1,x}function Hs(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&ef(t,n,o)}i=i.next}while(i!==r)}}function Nu(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 tf(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 Ry(e){var t=e.alternate;t!==null&&(e.alternate=null,Ry(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rr],delete t[ua],delete t[Bd],delete t[fb],delete t[pb])),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 Ay(e){return e.tag===5||e.tag===3||e.tag===4}function vg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ay(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 nf(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=Jl));else if(r!==4&&(e=e.child,e!==null))for(nf(e,t,n),e=e.sibling;e!==null;)nf(e,t,n),e=e.sibling}function rf(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(rf(e,t,n),e=e.sibling;e!==null;)rf(e,t,n),e=e.sibling}var Nt=null,Un=!1;function $r(e,t,n){for(n=n.child;n!==null;)Dy(e,t,n),n=n.sibling}function Dy(e,t,n){if(ir&&typeof ir.onCommitFiberUnmount=="function")try{ir.onCommitFiberUnmount(bu,n)}catch{}switch(n.tag){case 5:$t||Eo(n,t);case 6:var r=Nt,i=Un;Nt=null,$r(e,t,n),Nt=r,Un=i,Nt!==null&&(Un?(e=Nt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Nt.removeChild(n.stateNode));break;case 18:Nt!==null&&(Un?(e=Nt,n=n.stateNode,e.nodeType===8?Kc(e.parentNode,n):e.nodeType===1&&Kc(e,n),ia(e)):Kc(Nt,n.stateNode));break;case 4:r=Nt,i=Un,Nt=n.stateNode.containerInfo,Un=!0,$r(e,t,n),Nt=r,Un=i;break;case 0:case 11:case 14:case 15:if(!$t&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&ef(n,t,s),i=i.next}while(i!==r)}$r(e,t,n);break;case 1:if(!$t&&(Eo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ut(n,t,l)}$r(e,t,n);break;case 21:$r(e,t,n);break;case 22:n.mode&1?($t=(r=$t)||n.memoizedState!==null,$r(e,t,n),$t=r):$r(e,t,n);break;default:$r(e,t,n)}}function yg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Pb),t.forEach(function(r){var i=zb.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Fn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=ht()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Lb(r/1960))-r,10e?16:e,Vr===null)var r=!1;else{if(e=Vr,Vr=null,fu=0,Me&6)throw Error(W(331));var i=Me;for(Me|=4,ee=e.current;ee!==null;){var o=ee,s=o.child;if(ee.flags&16){var l=o.deletions;if(l!==null){for(var u=0;uht()-yp?Di(e,0):vp|=n),Jt(e,t)}function Hy(e,t){t===0&&(e.mode&1?(t=al,al<<=1,!(al&130023424)&&(al=4194304)):t=1);var n=Ut();e=br(e,t),e!==null&&(Sa(e,t,n),Jt(e,n))}function Ib(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Hy(e,n)}function zb(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(W(314))}r!==null&&r.delete(t),Hy(e,n)}var Wy;Wy=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xt.current)Qt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Qt=!1,Cb(e,t,n);Qt=!!(e.flags&131072)}else Qt=!1,tt&&t.flags&1048576&&K0(t,ru,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Rl(e,t),e=t.pendingProps;var i=Ao(t,Mt.current);No(t,n),i=dp(null,t,r,e,i,n);var o=fp();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Zt(r)?(o=!0,tu(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,sp(t),i.updater=Pu,t.stateNode=i,i._reactInternals=t,Kd(t,r,e,n),t=qd(null,t,r,!0,o,n)):(t.tag=0,tt&&o&&Jf(t),Bt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Rl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Bb(r),e=Bn(r,e),i){case 0:t=Yd(null,t,r,e,n);break e;case 1:t=pg(null,t,r,e,n);break e;case 11:t=dg(null,t,r,e,n);break e;case 14:t=fg(null,t,r,Bn(r.type,e),n);break e}throw Error(W(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bn(r,i),Yd(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bn(r,i),pg(e,t,r,i,n);case 3:e:{if(Ty(t),e===null)throw Error(W(387));r=t.pendingProps,o=t.memoizedState,i=o.element,X0(e,t),su(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Io(Error(W(423)),t),t=hg(e,t,r,n,i);break e}else if(r!==i){i=Io(Error(W(424)),t),t=hg(e,t,r,n,i);break e}else for(cn=qr(t.stateNode.containerInfo.firstChild),dn=t,tt=!0,Wn=null,n=ty(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Do(),r===i){t=Sr(e,t,n);break e}Bt(e,t,r,n)}t=t.child}return t;case 5:return ny(t),e===null&&Wd(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,zd(r,i)?s=null:o!==null&&zd(r,o)&&(t.flags|=32),Cy(e,t),Bt(e,t,s,n),t.child;case 6:return e===null&&Wd(t),null;case 13:return Oy(e,t,n);case 4:return ap(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=$o(t,null,r,n):Bt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bn(r,i),dg(e,t,r,i,n);case 7:return Bt(e,t,t.pendingProps,n),t.child;case 8:return Bt(e,t,t.pendingProps.children,n),t.child;case 12:return Bt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,qe(iu,r._currentValue),r._currentValue=s,o!==null)if(Qn(o.value,s)){if(o.children===i.children&&!Xt.current){t=Sr(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var u=l.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=wr(-1,n&-n),u.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Vd(o.return,n,t),l.lanes|=n;break}u=u.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(W(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Vd(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Bt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,No(t,n),i=jn(i),r=r(i),t.flags|=1,Bt(e,t,r,n),t.child;case 14:return r=t.type,i=Bn(r,t.pendingProps),i=Bn(r.type,i),fg(e,t,r,i,n);case 15:return Sy(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bn(r,i),Rl(e,t),t.tag=1,Zt(r)?(e=!0,tu(t)):e=!1,No(t,n),J0(t,r,i),Kd(t,r,i,n),qd(null,t,r,!0,e,n);case 19:return Py(e,t,n);case 22:return ky(e,t,n)}throw Error(W(156,t.tag))};function Vy(e,t){return v0(e,t)}function Fb(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 On(e,t,n,r){return new Fb(e,t,n,r)}function Ep(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bb(e){if(typeof e=="function")return Ep(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bf)return 11;if(e===Uf)return 14}return 2}function ei(e,t){var n=e.alternate;return n===null?(n=On(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 $l(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Ep(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case po:return $i(n.children,i,o,t);case Ff:s=8,i|=8;break;case vd:return e=On(12,n,t,i|2),e.elementType=vd,e.lanes=o,e;case yd:return e=On(13,n,t,i),e.elementType=yd,e.lanes=o,e;case wd:return e=On(19,n,t,i),e.elementType=wd,e.lanes=o,e;case e0:return Ru(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zv:s=10;break e;case Jv:s=9;break e;case Bf:s=11;break e;case Uf:s=14;break e;case zr:s=16,r=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=On(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function $i(e,t,n,r){return e=On(7,e,r,t),e.lanes=n,e}function Ru(e,t,n,r){return e=On(22,e,r,t),e.elementType=e0,e.lanes=n,e.stateNode={isHidden:!1},e}function td(e,t,n){return e=On(6,e,null,t),e.lanes=n,e}function nd(e,t,n){return t=On(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ub(e,t,n,r,i){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=$c(0),this.expirationTimes=$c(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$c(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function bp(e,t,n,r,i,o,s,l,u){return e=new Ub(e,t,n,l,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=On(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},sp(o),e}function Hb(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yy)}catch(e){console.error(e)}}Yy(),Kv.exports=hn;var Tp=Kv.exports;const ji=qo(Tp),Qb=Dv({__proto__:null,default:ji},[Tp]);var Cg=Tp;md.createRoot=Cg.createRoot,md.hydrateRoot=Cg.hydrateRoot;/** * @remix-run/router v1.14.1 * * Copyright (c) Remix Software Inc. @@ -46,8 +46,8 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ct(){return ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function ri(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function qb(){return Math.random().toString(36).substr(2,8)}function Og(e,t){return{usr:e.state,key:e.key,idx:t}}function ga(e,t,n,r){return n===void 0&&(n=null),ct({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ur(t):t,{state:n,key:t&&t.key||r||qb()})}function Vi(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 ur(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 Xb(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,l=pt.Pop,u=null,c=f();c==null&&(c=0,s.replaceState(ct({},s.state,{idx:c}),""));function f(){return(s.state||{idx:null}).idx}function h(){l=pt.Pop;let C=f(),v=C==null?null:C-c;c=C,u&&u({action:l,location:_.location,delta:v})}function m(C,v){l=pt.Push;let g=ga(_.location,C,v);n&&n(g,C),c=f()+1;let b=Og(g,c),T=_.createHref(g);try{s.pushState(b,"",T)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;i.location.assign(T)}o&&u&&u({action:l,location:_.location,delta:1})}function y(C,v){l=pt.Replace;let g=ga(_.location,C,v);n&&n(g,C),c=f();let b=Og(g,c),T=_.createHref(g);s.replaceState(b,"",T),o&&u&&u({action:l,location:_.location,delta:0})}function x(C){let v=i.location.origin!=="null"?i.location.origin:i.location.href,g=typeof C=="string"?C:Vi(C);return Se(v,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,v)}let _={get action(){return l},get location(){return e(i,s)},listen(C){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(Tg,h),u=C,()=>{i.removeEventListener(Tg,h),u=null}},createHref(C){return t(i,C)},createURL:x,encodeLocation(C){let v=x(C);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:m,replace:y,go(C){return s.go(C)}};return _}var lt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lt||(lt={}));const Zb=new Set(["lazy","caseSensitive","path","id","index","children"]);function Jb(e){return e.index===!0}function lf(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let s=[...n,o],l=typeof i.id=="string"?i.id:s.join("-");if(Se(i.index!==!0||!i.children,"Cannot specify children on an index route"),Se(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),Jb(i)){let u=ct({},i,t(i),{id:l});return r[l]=u,u}else{let u=ct({},i,t(i),{id:l,children:void 0});return r[l]=u,i.children&&(u.children=lf(i.children,t,s,r)),u}})}function So(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ur(t):t,i=es(r.pathname||"/",n);if(i==null)return null;let o=qy(e);tS(o);let s=null;for(let l=0;s==null&&l{let u={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};u.relativePath.startsWith("/")&&(Se(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=xr([r,u.relativePath]),f=n.concat(u);o.children&&o.children.length>0&&(Se(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),qy(o.children,t,f,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:lS(c,o.index),routesMeta:f})};return e.forEach((o,s)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,s);else for(let u of Xy(o.path))i(o,s,u)}),t}function Xy(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=Xy(r.join("/")),l=[];return l.push(...s.map(u=>u===""?o:[o,u].join("/"))),i&&l.push(...s),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function tS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:uS(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const nS=/^:\w+$/,rS=3,iS=2,oS=1,sS=10,aS=-2,Pg=e=>e==="*";function lS(e,t){let n=e.split("/"),r=n.length;return n.some(Pg)&&(r+=aS),t&&(r+=iS),n.filter(i=>!Pg(i)).reduce((i,o)=>i+(nS.test(o)?rS:o===""?oS:sS),r)}function uS(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function cS(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let s=0;s{let{paramName:m,isOptional:y}=f;if(m==="*"){let _=l[h]||"";s=o.slice(0,o.length-_.length).replace(/(.)\/+$/,"$1")}const x=l[h];return y&&!x?c[m]=void 0:c[m]=hS(x||"",m),c},{}),pathname:o,pathnameBase:s,pattern:e}}function fS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ri(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(s,l,u)=>(r.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function pS(e){try{return decodeURI(e)}catch(t){return ri(!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 hS(e,t){try{return decodeURIComponent(e)}catch(n){return ri(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function es(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 mS(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ur(e):e;return{pathname:n?n.startsWith("/")?n:gS(n,t):t,search:yS(r),hash:wS(i)}}function gS(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function nd(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 Zy(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Tp(e,t){let n=Zy(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Op(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=ur(e):(i=ct({},e),Se(!i.pathname||!i.pathname.includes("?"),nd("?","pathname","search",i)),Se(!i.pathname||!i.pathname.includes("#"),nd("#","pathname","hash",i)),Se(!i.search||!i.search.includes("#"),nd("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,l;if(s==null)l=n;else{let h=t.length-1;if(!r&&s.startsWith("..")){let m=s.split("/");for(;m[0]==="..";)m.shift(),h-=1;i.pathname=m.join("/")}l=h>=0?t[h]:"/"}let u=mS(i,l),c=s&&s!=="/"&&s.endsWith("/"),f=(o||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||f)&&(u.pathname+="/"),u}const xr=e=>e.join("/").replace(/\/\/+/g,"/"),vS=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),yS=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,wS=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Pp{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Jy(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const e1=["post","put","patch","delete"],xS=new Set(e1),_S=["get",...e1],ES=new Set(_S),bS=new Set([301,302,303,307,308]),SS=new Set([307,308]),rd={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},kS={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ss={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},t1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,CS=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),n1="remix-router-transitions";function TS(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Se(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let L=e.detectErrorBoundary;i=D=>({hasErrorBoundary:L(D)})}else i=CS;let o={},s=lf(e.routes,i,void 0,o),l,u=e.basename||"/",c=ct({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),f=null,h=new Set,m=null,y=null,x=null,_=e.hydrationData!=null,C=So(s,e.history.location,u),v=null;if(C==null){let L=Sn(404,{pathname:e.history.location.pathname}),{matches:D,route:M}=Mg(s);C=D,v={[M.id]:L}}let g,b=C.some(L=>L.route.lazy),T=C.some(L=>L.route.loader);if(b)g=!1;else if(!T)g=!0;else if(c.v7_partialHydration){let L=e.hydrationData?e.hydrationData.loaderData:null,D=e.hydrationData?e.hydrationData.errors:null;g=C.every(M=>M.route.loader&&M.route.loader.hydrate!==!0&&(L&&L[M.route.id]!==void 0||D&&D[M.route.id]!==void 0))}else g=e.hydrationData!=null;let N,k={historyAction:e.history.action,location:e.history.location,matches:C,initialized:g,navigation:rd,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},O=pt.Pop,A=!1,F,H=!1,z=new Map,I=null,K=!1,V=!1,re=[],oe=[],ne=new Map,U=0,q=-1,R=new Map,se=new Set,ve=new Map,Re=new Map,ae=new Set,ye=new Map,ue=new Map,xe=!1;function G(){if(f=e.history.listen(L=>{let{action:D,location:M,delta:Y}=L;if(xe){xe=!1;return}ri(ue.size===0||Y!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Z=Ia({currentLocation:k.location,nextLocation:M,historyAction:D});if(Z&&Y!=null){xe=!0,e.history.go(Y*-1),Zi(Z,{state:"blocked",location:M,proceed(){Zi(Z,{state:"proceeding",proceed:void 0,reset:void 0,location:M}),e.history.go(Y)},reset(){let pe=new Map(k.blockers);pe.set(Z,Ss),Te({blockers:pe})}});return}return ze(D,M)}),n){IS(t,z);let L=()=>zS(t,z);t.addEventListener("pagehide",L),I=()=>t.removeEventListener("pagehide",L)}return k.initialized||ze(pt.Pop,k.location,{initialHydration:!0}),N}function We(){f&&f(),I&&I(),h.clear(),F&&F.abort(),k.fetchers.forEach((L,D)=>rn(D)),k.blockers.forEach((L,D)=>Ma(D))}function mt(L){return h.add(L),()=>h.delete(L)}function Te(L,D){D===void 0&&(D={}),k=ct({},k,L);let M=[],Y=[];c.v7_fetcherPersist&&k.fetchers.forEach((Z,pe)=>{Z.state==="idle"&&(ae.has(pe)?Y.push(pe):M.push(pe))}),[...h].forEach(Z=>Z(k,{deletedFetchers:Y,unstable_viewTransitionOpts:D.viewTransitionOpts,unstable_flushSync:D.flushSync===!0})),c.v7_fetcherPersist&&(M.forEach(Z=>k.fetchers.delete(Z)),Y.forEach(Z=>rn(Z)))}function xt(L,D,M){var Y,Z;let{flushSync:pe}=M===void 0?{}:M,de=k.actionData!=null&&k.navigation.formMethod!=null&&Hn(k.navigation.formMethod)&&k.navigation.state==="loading"&&((Y=L.state)==null?void 0:Y._isRedirect)!==!0,le;D.actionData?Object.keys(D.actionData).length>0?le=D.actionData:le=null:de?le=k.actionData:le=null;let ie=D.loaderData?$g(k.loaderData,D.loaderData,D.matches||[],D.errors):k.loaderData,Oe=k.blockers;Oe.size>0&&(Oe=new Map(Oe),Oe.forEach((De,ot)=>Oe.set(ot,Ss)));let vt=A===!0||k.navigation.formMethod!=null&&Hn(k.navigation.formMethod)&&((Z=L.state)==null?void 0:Z._isRedirect)!==!0;l&&(s=l,l=void 0),K||O===pt.Pop||(O===pt.Push?e.history.push(L,L.state):O===pt.Replace&&e.history.replace(L,L.state));let he;if(O===pt.Pop){let De=z.get(k.location.pathname);De&&De.has(L.pathname)?he={currentLocation:k.location,nextLocation:L}:z.has(L.pathname)&&(he={currentLocation:L,nextLocation:k.location})}else if(H){let De=z.get(k.location.pathname);De?De.add(L.pathname):(De=new Set([L.pathname]),z.set(k.location.pathname,De)),he={currentLocation:k.location,nextLocation:L}}Te(ct({},D,{actionData:le,loaderData:ie,historyAction:O,location:L,initialized:!0,navigation:rd,revalidation:"idle",restoreScrollPosition:ls(L,D.matches||k.matches),preventScrollReset:vt,blockers:Oe}),{viewTransitionOpts:he,flushSync:pe===!0}),O=pt.Pop,A=!1,H=!1,K=!1,V=!1,re=[],oe=[]}async function je(L,D){if(typeof L=="number"){e.history.go(L);return}let M=uf(k.location,k.matches,u,c.v7_prependBasename,L,c.v7_relativeSplatPath,D==null?void 0:D.fromRouteId,D==null?void 0:D.relative),{path:Y,submission:Z,error:pe}=jg(c.v7_normalizeFormMethod,!1,M,D),de=k.location,le=ga(k.location,Y,D&&D.state);le=ct({},le,e.history.encodeLocation(le));let ie=D&&D.replace!=null?D.replace:void 0,Oe=pt.Push;ie===!0?Oe=pt.Replace:ie===!1||Z!=null&&Hn(Z.formMethod)&&Z.formAction===k.location.pathname+k.location.search&&(Oe=pt.Replace);let vt=D&&"preventScrollReset"in D?D.preventScrollReset===!0:void 0,he=(D&&D.unstable_flushSync)===!0,De=Ia({currentLocation:de,nextLocation:le,historyAction:Oe});if(De){Zi(De,{state:"blocked",location:le,proceed(){Zi(De,{state:"proceeding",proceed:void 0,reset:void 0,location:le}),je(L,D)},reset(){let ot=new Map(k.blockers);ot.set(De,Ss),Te({blockers:ot})}});return}return await ze(Oe,le,{submission:Z,pendingError:pe,preventScrollReset:vt,replace:D&&D.replace,enableViewTransition:D&&D.unstable_viewTransition,flushSync:he})}function Ne(){if(Pr(),Te({revalidation:"loading"}),k.navigation.state!=="submitting"){if(k.navigation.state==="idle"){ze(k.historyAction,k.location,{startUninterruptedRevalidation:!0});return}ze(O||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation})}}async function ze(L,D,M){F&&F.abort(),F=null,O=L,K=(M&&M.startUninterruptedRevalidation)===!0,Ji(k.location,k.matches),A=(M&&M.preventScrollReset)===!0,H=(M&&M.enableViewTransition)===!0;let Y=l||s,Z=M&&M.overrideNavigation,pe=So(Y,D,u),de=(M&&M.flushSync)===!0;if(!pe){let ot=Sn(404,{pathname:D.pathname}),{matches:Vt,route:st}=Mg(Y);ss(),xt(D,{matches:Vt,loaderData:{},errors:{[st.id]:ot}},{flushSync:de});return}if(k.initialized&&!V&&LS(k.location,D)&&!(M&&M.submission&&Hn(M.submission.formMethod))){xt(D,{matches:pe},{flushSync:de});return}F=new AbortController;let le=Cs(e.history,D,F.signal,M&&M.submission),ie,Oe;if(M&&M.pendingError)Oe={[Gs(pe).route.id]:M.pendingError};else if(M&&M.submission&&Hn(M.submission.formMethod)){let ot=await gt(le,D,M.submission,pe,{replace:M.replace,flushSync:de});if(ot.shortCircuited)return;ie=ot.pendingActionData,Oe=ot.pendingActionError,Z=id(D,M.submission),de=!1,le=new Request(le.url,{signal:le.signal})}let{shortCircuited:vt,loaderData:he,errors:De}=await cr(le,D,pe,Z,M&&M.submission,M&&M.fetcherSubmission,M&&M.replace,M&&M.initialHydration===!0,de,ie,Oe);vt||(F=null,xt(D,ct({matches:pe},ie?{actionData:ie}:{},{loaderData:he,errors:De})))}async function gt(L,D,M,Y,Z){Z===void 0&&(Z={}),Pr();let pe=$S(D,M);Te({navigation:pe},{flushSync:Z.flushSync===!0});let de,le=df(Y,D);if(!le.route.action&&!le.route.lazy)de={type:lt.error,error:Sn(405,{method:L.method,pathname:D.pathname,routeId:le.route.id})};else if(de=await ks("action",L,le,Y,o,i,u,c.v7_relativeSplatPath),L.signal.aborted)return{shortCircuited:!0};if(Li(de)){let ie;return Z&&Z.replace!=null?ie=Z.replace:ie=de.location===k.location.pathname+k.location.search,await vn(k,de,{submission:M,replace:ie}),{shortCircuited:!0}}if(ko(de)){let ie=Gs(Y,le.route.id);return(Z&&Z.replace)!==!0&&(O=pt.Push),{pendingActionData:{},pendingActionError:{[ie.route.id]:de.error}}}if(Ni(de))throw Sn(400,{type:"defer-action"});return{pendingActionData:{[le.route.id]:de.data}}}async function cr(L,D,M,Y,Z,pe,de,le,ie,Oe,vt){let he=Y||id(D,Z),De=Z||pe||Fg(he),ot=l||s,[Vt,st]=Ng(e.history,k,M,De,D,c.v7_partialHydration&&le===!0,V,re,oe,ae,ve,se,ot,u,Oe,vt);if(ss(Ae=>!(M&&M.some(Ke=>Ke.route.id===Ae))||Vt&&Vt.some(Ke=>Ke.route.id===Ae)),q=++U,Vt.length===0&&st.length===0){let Ae=$a();return xt(D,ct({matches:M,loaderData:{},errors:vt||null},Oe?{actionData:Oe}:{},Ae?{fetchers:new Map(k.fetchers)}:{}),{flushSync:ie}),{shortCircuited:!0}}if(!K&&(!c.v7_partialHydration||!le)){st.forEach(Ke=>{let Gt=k.fetchers.get(Ke.key),Mn=Ts(void 0,Gt?Gt.data:void 0);k.fetchers.set(Ke.key,Mn)});let Ae=Oe||k.actionData;Te(ct({navigation:he},Ae?Object.keys(Ae).length===0?{actionData:null}:{actionData:Ae}:{},st.length>0?{fetchers:new Map(k.fetchers)}:{}),{flushSync:ie})}st.forEach(Ae=>{ne.has(Ae.key)&&It(Ae.key),Ae.controller&&ne.set(Ae.key,Ae.controller)});let Nr=()=>st.forEach(Ae=>It(Ae.key));F&&F.signal.addEventListener("abort",Nr);let{results:us,loaderResults:on,fetcherResults:et}=await ci(k.matches,M,Vt,st,L);if(L.signal.aborted)return{shortCircuited:!0};F&&F.signal.removeEventListener("abort",Nr),st.forEach(Ae=>ne.delete(Ae.key));let dt=Ig(us);if(dt){if(dt.idx>=Vt.length){let Ae=st[dt.idx-Vt.length].key;se.add(Ae)}return await vn(k,dt.result,{replace:de}),{shortCircuited:!0}}let{loaderData:jt,errors:_t}=Dg(k,M,Vt,on,vt,st,et,ye);ye.forEach((Ae,Ke)=>{Ae.subscribe(Gt=>{(Gt||Ae.done)&&ye.delete(Ke)})});let Lr=$a(),sn=Xi(q),yn=Lr||sn||st.length>0;return ct({loaderData:jt,errors:_t},yn?{fetchers:new Map(k.fetchers)}:{})}function is(L,D,M,Y){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");ne.has(L)&&It(L);let Z=(Y&&Y.unstable_flushSync)===!0,pe=l||s,de=uf(k.location,k.matches,u,c.v7_prependBasename,M,c.v7_relativeSplatPath,D,Y==null?void 0:Y.relative),le=So(pe,de,u);if(!le){Pt(L,D,Sn(404,{pathname:de}),{flushSync:Z});return}let{path:ie,submission:Oe,error:vt}=jg(c.v7_normalizeFormMethod,!0,de,Y);if(vt){Pt(L,D,vt,{flushSync:Z});return}let he=df(le,ie);if(A=(Y&&Y.preventScrollReset)===!0,Oe&&Hn(Oe.formMethod)){os(L,D,ie,he,le,Z,Oe);return}ve.set(L,{routeId:D,path:ie}),Dn(L,D,ie,he,le,Z,Oe)}async function os(L,D,M,Y,Z,pe,de){if(Pr(),ve.delete(L),!Y.route.action&&!Y.route.lazy){let Ke=Sn(405,{method:de.formMethod,pathname:M,routeId:D});Pt(L,D,Ke,{flushSync:pe});return}let le=k.fetchers.get(L);Ot(L,MS(de,le),{flushSync:pe});let ie=new AbortController,Oe=Cs(e.history,M,ie.signal,de);ne.set(L,ie);let vt=U,he=await ks("action",Oe,Y,Z,o,i,u,c.v7_relativeSplatPath);if(Oe.signal.aborted){ne.get(L)===ie&&ne.delete(L);return}if(c.v7_fetcherPersist&&ae.has(L)){if(Li(he)||ko(he)){Ot(L,Mr(void 0));return}}else{if(Li(he))if(ne.delete(L),q>vt){Ot(L,Mr(void 0));return}else return se.add(L),Ot(L,Ts(de)),vn(k,he,{fetcherSubmission:de});if(ko(he)){Pt(L,D,he.error);return}}if(Ni(he))throw Sn(400,{type:"defer-action"});let De=k.navigation.location||k.location,ot=Cs(e.history,De,ie.signal),Vt=l||s,st=k.navigation.state!=="idle"?So(Vt,k.navigation.location,u):k.matches;Se(st,"Didn't find any matches after fetcher action");let Nr=++U;R.set(L,Nr);let us=Ts(de,he.data);k.fetchers.set(L,us);let[on,et]=Ng(e.history,k,st,de,De,!1,V,re,oe,ae,ve,se,Vt,u,{[Y.route.id]:he.data},void 0);et.filter(Ke=>Ke.key!==L).forEach(Ke=>{let Gt=Ke.key,Mn=k.fetchers.get(Gt),Fa=Ts(void 0,Mn?Mn.data:void 0);k.fetchers.set(Gt,Fa),ne.has(Gt)&&It(Gt),Ke.controller&&ne.set(Gt,Ke.controller)}),Te({fetchers:new Map(k.fetchers)});let dt=()=>et.forEach(Ke=>It(Ke.key));ie.signal.addEventListener("abort",dt);let{results:jt,loaderResults:_t,fetcherResults:Lr}=await ci(k.matches,st,on,et,ot);if(ie.signal.aborted)return;ie.signal.removeEventListener("abort",dt),R.delete(L),ne.delete(L),et.forEach(Ke=>ne.delete(Ke.key));let sn=Ig(jt);if(sn){if(sn.idx>=on.length){let Ke=et[sn.idx-on.length].key;se.add(Ke)}return vn(k,sn.result)}let{loaderData:yn,errors:Ae}=Dg(k,k.matches,on,_t,void 0,et,Lr,ye);if(k.fetchers.has(L)){let Ke=Mr(he.data);k.fetchers.set(L,Ke)}Xi(Nr),k.navigation.state==="loading"&&Nr>q?(Se(O,"Expected pending action"),F&&F.abort(),xt(k.navigation.location,{matches:st,loaderData:yn,errors:Ae,fetchers:new Map(k.fetchers)})):(Te({errors:Ae,loaderData:$g(k.loaderData,yn,st,Ae),fetchers:new Map(k.fetchers)}),V=!1)}async function Dn(L,D,M,Y,Z,pe,de){let le=k.fetchers.get(L);Ot(L,Ts(de,le?le.data:void 0),{flushSync:pe});let ie=new AbortController,Oe=Cs(e.history,M,ie.signal);ne.set(L,ie);let vt=U,he=await ks("loader",Oe,Y,Z,o,i,u,c.v7_relativeSplatPath);if(Ni(he)&&(he=await o1(he,Oe.signal,!0)||he),ne.get(L)===ie&&ne.delete(L),!Oe.signal.aborted){if(ae.has(L)){Ot(L,Mr(void 0));return}if(Li(he))if(q>vt){Ot(L,Mr(void 0));return}else{se.add(L),await vn(k,he);return}if(ko(he)){Pt(L,D,he.error);return}Se(!Ni(he),"Unhandled fetcher deferred data"),Ot(L,Mr(he.data))}}async function vn(L,D,M){let{submission:Y,fetcherSubmission:Z,replace:pe}=M===void 0?{}:M;D.revalidate&&(V=!0);let de=ga(L.location,D.location,{_isRedirect:!0});if(Se(de,"Expected a location on the redirect navigation"),n){let De=!1;if(D.reloadDocument)De=!0;else if(t1.test(D.location)){const ot=e.history.createURL(D.location);De=ot.origin!==t.location.origin||es(ot.pathname,u)==null}if(De){pe?t.location.replace(D.location):t.location.assign(D.location);return}}F=null;let le=pe===!0?pt.Replace:pt.Push,{formMethod:ie,formAction:Oe,formEncType:vt}=L.navigation;!Y&&!Z&&ie&&Oe&&vt&&(Y=Fg(L.navigation));let he=Y||Z;if(SS.has(D.status)&&he&&Hn(he.formMethod))await ze(le,de,{submission:ct({},he,{formAction:D.location}),preventScrollReset:A});else{let De=id(de,Y);await ze(le,de,{overrideNavigation:De,fetcherSubmission:Z,preventScrollReset:A})}}async function ci(L,D,M,Y,Z){let pe=await Promise.all([...M.map(ie=>ks("loader",Z,ie,D,o,i,u,c.v7_relativeSplatPath)),...Y.map(ie=>ie.matches&&ie.match&&ie.controller?ks("loader",Cs(e.history,ie.path,ie.controller.signal),ie.match,ie.matches,o,i,u,c.v7_relativeSplatPath):{type:lt.error,error:Sn(404,{pathname:ie.path})})]),de=pe.slice(0,M.length),le=pe.slice(M.length);return await Promise.all([zg(L,M,de,de.map(()=>Z.signal),!1,k.loaderData),zg(L,Y.map(ie=>ie.match),le,Y.map(ie=>ie.controller?ie.controller.signal:null),!0)]),{results:pe,loaderResults:de,fetcherResults:le}}function Pr(){V=!0,re.push(...ss()),ve.forEach((L,D)=>{ne.has(D)&&(oe.push(D),It(D))})}function Ot(L,D,M){M===void 0&&(M={}),k.fetchers.set(L,D),Te({fetchers:new Map(k.fetchers)},{flushSync:(M&&M.flushSync)===!0})}function Pt(L,D,M,Y){Y===void 0&&(Y={});let Z=Gs(k.matches,D);rn(L),Te({errors:{[Z.route.id]:M},fetchers:new Map(k.fetchers)},{flushSync:(Y&&Y.flushSync)===!0})}function jr(L){return c.v7_fetcherPersist&&(Re.set(L,(Re.get(L)||0)+1),ae.has(L)&&ae.delete(L)),k.fetchers.get(L)||kS}function rn(L){let D=k.fetchers.get(L);ne.has(L)&&!(D&&D.state==="loading"&&R.has(L))&&It(L),ve.delete(L),R.delete(L),se.delete(L),ae.delete(L),k.fetchers.delete(L)}function $n(L){if(c.v7_fetcherPersist){let D=(Re.get(L)||0)-1;D<=0?(Re.delete(L),ae.add(L)):Re.set(L,D)}else rn(L);Te({fetchers:new Map(k.fetchers)})}function It(L){let D=ne.get(L);Se(D,"Expected fetch controller: "+L),D.abort(),ne.delete(L)}function di(L){for(let D of L){let M=jr(D),Y=Mr(M.data);k.fetchers.set(D,Y)}}function $a(){let L=[],D=!1;for(let M of se){let Y=k.fetchers.get(M);Se(Y,"Expected fetcher: "+M),Y.state==="loading"&&(se.delete(M),L.push(M),D=!0)}return di(L),D}function Xi(L){let D=[];for(let[M,Y]of R)if(Y0}function Ju(L,D){let M=k.blockers.get(L)||Ss;return ue.get(L)!==D&&ue.set(L,D),M}function Ma(L){k.blockers.delete(L),ue.delete(L)}function Zi(L,D){let M=k.blockers.get(L)||Ss;Se(M.state==="unblocked"&&D.state==="blocked"||M.state==="blocked"&&D.state==="blocked"||M.state==="blocked"&&D.state==="proceeding"||M.state==="blocked"&&D.state==="unblocked"||M.state==="proceeding"&&D.state==="unblocked","Invalid blocker state transition: "+M.state+" -> "+D.state);let Y=new Map(k.blockers);Y.set(L,D),Te({blockers:Y})}function Ia(L){let{currentLocation:D,nextLocation:M,historyAction:Y}=L;if(ue.size===0)return;ue.size>1&&ri(!1,"A router only supports one blocker at a time");let Z=Array.from(ue.entries()),[pe,de]=Z[Z.length-1],le=k.blockers.get(pe);if(!(le&&le.state==="proceeding")&&de({currentLocation:D,nextLocation:M,historyAction:Y}))return pe}function ss(L){let D=[];return ye.forEach((M,Y)=>{(!L||L(Y))&&(M.cancel(),D.push(Y),ye.delete(Y))}),D}function ec(L,D,M){if(m=L,x=D,y=M||null,!_&&k.navigation===rd){_=!0;let Y=ls(k.location,k.matches);Y!=null&&Te({restoreScrollPosition:Y})}return()=>{m=null,x=null,y=null}}function as(L,D){return y&&y(L,D.map(Y=>eS(Y,k.loaderData)))||L.key}function Ji(L,D){if(m&&x){let M=as(L,D);m[M]=x()}}function ls(L,D){if(m){let M=as(L,D),Y=m[M];if(typeof Y=="number")return Y}return null}function za(L){o={},l=lf(L,i,void 0,o)}return N={get basename(){return u},get future(){return c},get state(){return k},get routes(){return s},get window(){return t},initialize:G,subscribe:mt,enableScrollRestoration:ec,navigate:je,fetch:is,revalidate:Ne,createHref:L=>e.history.createHref(L),encodeLocation:L=>e.history.encodeLocation(L),getFetcher:jr,deleteFetcher:$n,dispose:We,getBlocker:Ju,deleteBlocker:Ma,_internalFetchControllers:ne,_internalActiveDeferreds:ye,_internalSetRoutes:za},N}function OS(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function uf(e,t,n,r,i,o,s,l){let u,c;if(s){u=[];for(let h of t)if(u.push(h),h.route.id===s){c=h;break}}else u=t,c=t[t.length-1];let f=Op(i||".",Tp(u,o),es(e.pathname,n)||e.pathname,l==="path");return i==null&&(f.search=e.search,f.hash=e.hash),(i==null||i===""||i===".")&&c&&c.route.index&&!jp(f.search)&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(f.pathname=f.pathname==="/"?n:xr([n,f.pathname])),Vi(f)}function jg(e,t,n,r){if(!r||!OS(r))return{path:n};if(r.formMethod&&!DS(r.formMethod))return{path:n,error:Sn(405,{method:r.formMethod})};let i=()=>({path:n,error:Sn(400,{type:"invalid-body"})}),o=r.formMethod||"get",s=e?o.toUpperCase():o.toLowerCase(),l=i1(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Hn(s))return i();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,x)=>{let[_,C]=x;return""+y+_+"="+C+` -`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!Hn(s))return i();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:l,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return i()}}}Se(typeof FormData=="function","FormData is not available in this environment");let u,c;if(r.formData)u=cf(r.formData),c=r.formData;else if(r.body instanceof FormData)u=cf(r.body),c=r.body;else if(r.body instanceof URLSearchParams)u=r.body,c=Ag(u);else if(r.body==null)u=new URLSearchParams,c=new FormData;else try{u=new URLSearchParams(r.body),c=Ag(u)}catch{return i()}let f={formMethod:s,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Hn(f.formMethod))return{path:n,submission:f};let h=ur(n);return t&&h.search&&jp(h.search)&&u.append("index",""),h.search="?"+u,{path:Vi(h),submission:f}}function PS(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Ng(e,t,n,r,i,o,s,l,u,c,f,h,m,y,x,_){let C=_?Object.values(_)[0]:x?Object.values(x)[0]:void 0,v=e.createURL(t.location),g=e.createURL(i),b=_?Object.keys(_)[0]:void 0,N=PS(n,b).filter((O,A)=>{let{route:F}=O;if(F.lazy)return!0;if(F.loader==null)return!1;if(o)return F.loader.hydrate?!0:t.loaderData[F.id]===void 0&&(!t.errors||t.errors[F.id]===void 0);if(jS(t.loaderData,t.matches[A],O)||l.some(I=>I===O.route.id))return!0;let H=t.matches[A],z=O;return Lg(O,ct({currentUrl:v,currentParams:H.params,nextUrl:g,nextParams:z.params},r,{actionResult:C,defaultShouldRevalidate:s||v.pathname+v.search===g.pathname+g.search||v.search!==g.search||r1(H,z)}))}),k=[];return f.forEach((O,A)=>{if(o||!n.some(K=>K.route.id===O.routeId)||c.has(A))return;let F=So(m,O.path,y);if(!F){k.push({key:A,routeId:O.routeId,path:O.path,matches:null,match:null,controller:null});return}let H=t.fetchers.get(A),z=df(F,O.path),I=!1;h.has(A)?I=!1:u.includes(A)?I=!0:H&&H.state!=="idle"&&H.data===void 0?I=s:I=Lg(z,ct({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params},r,{actionResult:C,defaultShouldRevalidate:s})),I&&k.push({key:A,routeId:O.routeId,path:O.path,matches:F,match:z,controller:new AbortController})}),[N,k]}function jS(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function r1(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Lg(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Rg(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Se(i,"No route found in manifest");let o={};for(let s in r){let u=i[s]!==void 0&&s!=="hasErrorBoundary";ri(!u,'Route "'+i.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!u&&!Zb.has(s)&&(o[s]=r[s])}Object.assign(i,o),Object.assign(i,ct({},t(i),{lazy:void 0}))}async function ks(e,t,n,r,i,o,s,l,u){u===void 0&&(u={});let c,f,h,m=_=>{let C,v=new Promise((g,b)=>C=b);return h=()=>C(),t.signal.addEventListener("abort",h),Promise.race([_({request:t,params:n.params,context:u.requestContext}),v])};try{let _=n.route[e];if(n.route.lazy)if(_){let C,v=await Promise.all([m(_).catch(g=>{C=g}),Rg(n.route,o,i)]);if(C)throw C;f=v[0]}else if(await Rg(n.route,o,i),_=n.route[e],_)f=await m(_);else if(e==="action"){let C=new URL(t.url),v=C.pathname+C.search;throw Sn(405,{method:t.method,pathname:v,routeId:n.route.id})}else return{type:lt.data,data:void 0};else if(_)f=await m(_);else{let C=new URL(t.url),v=C.pathname+C.search;throw Sn(404,{pathname:v})}Se(f!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(_){c=lt.error,f=_}finally{h&&t.signal.removeEventListener("abort",h)}if(AS(f)){let _=f.status;if(bS.has(_)){let v=f.headers.get("Location");if(Se(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!t1.test(v))v=uf(new URL(t.url),r.slice(0,r.indexOf(n)+1),s,!0,v,l);else if(!u.isStaticRequest){let g=new URL(t.url),b=v.startsWith("//")?new URL(g.protocol+v):new URL(v),T=es(b.pathname,s)!=null;b.origin===g.origin&&T&&(v=b.pathname+b.search+b.hash)}if(u.isStaticRequest)throw f.headers.set("Location",v),f;return{type:lt.redirect,status:_,location:v,revalidate:f.headers.get("X-Remix-Revalidate")!==null,reloadDocument:f.headers.get("X-Remix-Reload-Document")!==null}}if(u.isRouteRequest)throw{type:c===lt.error?lt.error:lt.data,response:f};let C;try{let v=f.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?C=await f.json():C=await f.text()}catch(v){return{type:lt.error,error:v}}return c===lt.error?{type:c,error:new Pp(_,f.statusText,C),headers:f.headers}:{type:lt.data,data:C,statusCode:f.status,headers:f.headers}}if(c===lt.error)return{type:c,error:f};if(RS(f)){var y,x;return{type:lt.deferred,deferredData:f,statusCode:(y=f.init)==null?void 0:y.status,headers:((x=f.init)==null?void 0:x.headers)&&new Headers(f.init.headers)}}return{type:lt.data,data:f}}function Cs(e,t,n,r){let i=e.createURL(i1(t)).toString(),o={signal:n};if(r&&Hn(r.formMethod)){let{formMethod:s,formEncType:l}=r;o.method=s.toUpperCase(),l==="application/json"?(o.headers=new Headers({"Content-Type":l}),o.body=JSON.stringify(r.json)):l==="text/plain"?o.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?o.body=cf(r.formData):o.body=r.formData}return new Request(i,o)}function cf(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Ag(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function NS(e,t,n,r,i){let o={},s=null,l,u=!1,c={};return n.forEach((f,h)=>{let m=t[h].route.id;if(Se(!Li(f),"Cannot handle redirect results in processLoaderData"),ko(f)){let y=Gs(e,m),x=f.error;r&&(x=Object.values(r)[0],r=void 0),s=s||{},s[y.route.id]==null&&(s[y.route.id]=x),o[m]=void 0,u||(u=!0,l=Jy(f.error)?f.error.status:500),f.headers&&(c[m]=f.headers)}else Ni(f)?(i.set(m,f.deferredData),o[m]=f.deferredData.data):o[m]=f.data,f.statusCode!=null&&f.statusCode!==200&&!u&&(l=f.statusCode),f.headers&&(c[m]=f.headers)}),r&&(s=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:s,statusCode:l||200,loaderHeaders:c}}function Dg(e,t,n,r,i,o,s,l){let{loaderData:u,errors:c}=NS(t,n,r,i,l);for(let f=0;fr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Mg(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Sn(e,t){let{pathname:n,routeId:r,method:i,type:o}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&n&&r?l="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?l="defer() is not supported in actions":o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",i&&n&&r?l="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new Pp(e||500,s,new Error(l),!0)}function Ig(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Li(n))return{result:n,idx:t}}}function i1(e){let t=typeof e=="string"?ur(e):e;return Vi(ct({},t,{hash:""}))}function LS(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Ni(e){return e.type===lt.deferred}function ko(e){return e.type===lt.error}function Li(e){return(e&&e.type)===lt.redirect}function RS(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function AS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function DS(e){return ES.has(e.toLowerCase())}function Hn(e){return xS.has(e.toLowerCase())}async function zg(e,t,n,r,i,o){for(let s=0;sh.route.id===u.route.id),f=c!=null&&!r1(c,u)&&(o&&o[u.route.id])!==void 0;if(Ni(l)&&(i||f)){let h=r[s];Se(h,"Expected an AbortSignal for revalidating fetcher deferred result"),await o1(l,h,i).then(m=>{m&&(n[s]=m||n[s])})}}}async function o1(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:lt.data,data:e.deferredData.unwrappedData}}catch(i){return{type:lt.error,error:i}}return{type:lt.data,data:e.deferredData.data}}}function jp(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function df(e,t){let n=typeof t=="string"?ur(t).search:t.search;if(e[e.length-1].route.index&&jp(n||""))return e[e.length-1];let r=Zy(e);return r[r.length-1]}function Fg(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:s}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function id(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function $S(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Ts(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function MS(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Mr(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function IS(e,t){try{let n=e.sessionStorage.getItem(n1);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function zS(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(n1,JSON.stringify(n))}catch(r){ri(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function ct(){return ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function ri(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function qb(){return Math.random().toString(36).substr(2,8)}function Og(e,t){return{usr:e.state,key:e.key,idx:t}}function ga(e,t,n,r){return n===void 0&&(n=null),ct({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ur(t):t,{state:n,key:t&&t.key||r||qb()})}function Vi(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 ur(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 Xb(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,l=pt.Pop,u=null,c=f();c==null&&(c=0,s.replaceState(ct({},s.state,{idx:c}),""));function f(){return(s.state||{idx:null}).idx}function h(){l=pt.Pop;let C=f(),v=C==null?null:C-c;c=C,u&&u({action:l,location:_.location,delta:v})}function m(C,v){l=pt.Push;let g=ga(_.location,C,v);n&&n(g,C),c=f()+1;let b=Og(g,c),T=_.createHref(g);try{s.pushState(b,"",T)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;i.location.assign(T)}o&&u&&u({action:l,location:_.location,delta:1})}function y(C,v){l=pt.Replace;let g=ga(_.location,C,v);n&&n(g,C),c=f();let b=Og(g,c),T=_.createHref(g);s.replaceState(b,"",T),o&&u&&u({action:l,location:_.location,delta:0})}function x(C){let v=i.location.origin!=="null"?i.location.origin:i.location.href,g=typeof C=="string"?C:Vi(C);return Se(v,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,v)}let _={get action(){return l},get location(){return e(i,s)},listen(C){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(Tg,h),u=C,()=>{i.removeEventListener(Tg,h),u=null}},createHref(C){return t(i,C)},createURL:x,encodeLocation(C){let v=x(C);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:m,replace:y,go(C){return s.go(C)}};return _}var lt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lt||(lt={}));const Zb=new Set(["lazy","caseSensitive","path","id","index","children"]);function Jb(e){return e.index===!0}function uf(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let s=[...n,o],l=typeof i.id=="string"?i.id:s.join("-");if(Se(i.index!==!0||!i.children,"Cannot specify children on an index route"),Se(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),Jb(i)){let u=ct({},i,t(i),{id:l});return r[l]=u,u}else{let u=ct({},i,t(i),{id:l,children:void 0});return r[l]=u,i.children&&(u.children=uf(i.children,t,s,r)),u}})}function So(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ur(t):t,i=es(r.pathname||"/",n);if(i==null)return null;let o=qy(e);tS(o);let s=null;for(let l=0;s==null&&l{let u={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};u.relativePath.startsWith("/")&&(Se(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=xr([r,u.relativePath]),f=n.concat(u);o.children&&o.children.length>0&&(Se(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),qy(o.children,t,f,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:lS(c,o.index),routesMeta:f})};return e.forEach((o,s)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,s);else for(let u of Xy(o.path))i(o,s,u)}),t}function Xy(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=Xy(r.join("/")),l=[];return l.push(...s.map(u=>u===""?o:[o,u].join("/"))),i&&l.push(...s),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function tS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:uS(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const nS=/^:\w+$/,rS=3,iS=2,oS=1,sS=10,aS=-2,Pg=e=>e==="*";function lS(e,t){let n=e.split("/"),r=n.length;return n.some(Pg)&&(r+=aS),t&&(r+=iS),n.filter(i=>!Pg(i)).reduce((i,o)=>i+(nS.test(o)?rS:o===""?oS:sS),r)}function uS(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function cS(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let s=0;s{let{paramName:m,isOptional:y}=f;if(m==="*"){let _=l[h]||"";s=o.slice(0,o.length-_.length).replace(/(.)\/+$/,"$1")}const x=l[h];return y&&!x?c[m]=void 0:c[m]=hS(x||"",m),c},{}),pathname:o,pathnameBase:s,pattern:e}}function fS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ri(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(s,l,u)=>(r.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function pS(e){try{return decodeURI(e)}catch(t){return ri(!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 hS(e,t){try{return decodeURIComponent(e)}catch(n){return ri(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function es(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 mS(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ur(e):e;return{pathname:n?n.startsWith("/")?n:gS(n,t):t,search:yS(r),hash:wS(i)}}function gS(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function rd(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 Zy(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Op(e,t){let n=Zy(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Pp(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=ur(e):(i=ct({},e),Se(!i.pathname||!i.pathname.includes("?"),rd("?","pathname","search",i)),Se(!i.pathname||!i.pathname.includes("#"),rd("#","pathname","hash",i)),Se(!i.search||!i.search.includes("#"),rd("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,l;if(s==null)l=n;else{let h=t.length-1;if(!r&&s.startsWith("..")){let m=s.split("/");for(;m[0]==="..";)m.shift(),h-=1;i.pathname=m.join("/")}l=h>=0?t[h]:"/"}let u=mS(i,l),c=s&&s!=="/"&&s.endsWith("/"),f=(o||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||f)&&(u.pathname+="/"),u}const xr=e=>e.join("/").replace(/\/\/+/g,"/"),vS=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),yS=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,wS=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class jp{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Jy(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const e1=["post","put","patch","delete"],xS=new Set(e1),_S=["get",...e1],ES=new Set(_S),bS=new Set([301,302,303,307,308]),SS=new Set([307,308]),id={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},kS={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ss={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},t1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,CS=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),n1="remix-router-transitions";function TS(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Se(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let L=e.detectErrorBoundary;i=D=>({hasErrorBoundary:L(D)})}else i=CS;let o={},s=uf(e.routes,i,void 0,o),l,u=e.basename||"/",c=ct({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),f=null,h=new Set,m=null,y=null,x=null,_=e.hydrationData!=null,C=So(s,e.history.location,u),v=null;if(C==null){let L=Sn(404,{pathname:e.history.location.pathname}),{matches:D,route:M}=Mg(s);C=D,v={[M.id]:L}}let g,b=C.some(L=>L.route.lazy),T=C.some(L=>L.route.loader);if(b)g=!1;else if(!T)g=!0;else if(c.v7_partialHydration){let L=e.hydrationData?e.hydrationData.loaderData:null,D=e.hydrationData?e.hydrationData.errors:null;g=C.every(M=>M.route.loader&&M.route.loader.hydrate!==!0&&(L&&L[M.route.id]!==void 0||D&&D[M.route.id]!==void 0))}else g=e.hydrationData!=null;let N,k={historyAction:e.history.action,location:e.history.location,matches:C,initialized:g,navigation:id,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},O=pt.Pop,A=!1,F,H=!1,z=new Map,I=null,K=!1,V=!1,re=[],oe=[],ne=new Map,U=0,q=-1,R=new Map,se=new Set,ve=new Map,Re=new Map,ae=new Set,ye=new Map,ue=new Map,xe=!1;function G(){if(f=e.history.listen(L=>{let{action:D,location:M,delta:Y}=L;if(xe){xe=!1;return}ri(ue.size===0||Y!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Z=Ia({currentLocation:k.location,nextLocation:M,historyAction:D});if(Z&&Y!=null){xe=!0,e.history.go(Y*-1),Zi(Z,{state:"blocked",location:M,proceed(){Zi(Z,{state:"proceeding",proceed:void 0,reset:void 0,location:M}),e.history.go(Y)},reset(){let pe=new Map(k.blockers);pe.set(Z,Ss),Te({blockers:pe})}});return}return ze(D,M)}),n){IS(t,z);let L=()=>zS(t,z);t.addEventListener("pagehide",L),I=()=>t.removeEventListener("pagehide",L)}return k.initialized||ze(pt.Pop,k.location,{initialHydration:!0}),N}function We(){f&&f(),I&&I(),h.clear(),F&&F.abort(),k.fetchers.forEach((L,D)=>rn(D)),k.blockers.forEach((L,D)=>Ma(D))}function mt(L){return h.add(L),()=>h.delete(L)}function Te(L,D){D===void 0&&(D={}),k=ct({},k,L);let M=[],Y=[];c.v7_fetcherPersist&&k.fetchers.forEach((Z,pe)=>{Z.state==="idle"&&(ae.has(pe)?Y.push(pe):M.push(pe))}),[...h].forEach(Z=>Z(k,{deletedFetchers:Y,unstable_viewTransitionOpts:D.viewTransitionOpts,unstable_flushSync:D.flushSync===!0})),c.v7_fetcherPersist&&(M.forEach(Z=>k.fetchers.delete(Z)),Y.forEach(Z=>rn(Z)))}function xt(L,D,M){var Y,Z;let{flushSync:pe}=M===void 0?{}:M,de=k.actionData!=null&&k.navigation.formMethod!=null&&Hn(k.navigation.formMethod)&&k.navigation.state==="loading"&&((Y=L.state)==null?void 0:Y._isRedirect)!==!0,le;D.actionData?Object.keys(D.actionData).length>0?le=D.actionData:le=null:de?le=k.actionData:le=null;let ie=D.loaderData?$g(k.loaderData,D.loaderData,D.matches||[],D.errors):k.loaderData,Oe=k.blockers;Oe.size>0&&(Oe=new Map(Oe),Oe.forEach((De,ot)=>Oe.set(ot,Ss)));let vt=A===!0||k.navigation.formMethod!=null&&Hn(k.navigation.formMethod)&&((Z=L.state)==null?void 0:Z._isRedirect)!==!0;l&&(s=l,l=void 0),K||O===pt.Pop||(O===pt.Push?e.history.push(L,L.state):O===pt.Replace&&e.history.replace(L,L.state));let he;if(O===pt.Pop){let De=z.get(k.location.pathname);De&&De.has(L.pathname)?he={currentLocation:k.location,nextLocation:L}:z.has(L.pathname)&&(he={currentLocation:L,nextLocation:k.location})}else if(H){let De=z.get(k.location.pathname);De?De.add(L.pathname):(De=new Set([L.pathname]),z.set(k.location.pathname,De)),he={currentLocation:k.location,nextLocation:L}}Te(ct({},D,{actionData:le,loaderData:ie,historyAction:O,location:L,initialized:!0,navigation:id,revalidation:"idle",restoreScrollPosition:ls(L,D.matches||k.matches),preventScrollReset:vt,blockers:Oe}),{viewTransitionOpts:he,flushSync:pe===!0}),O=pt.Pop,A=!1,H=!1,K=!1,V=!1,re=[],oe=[]}async function je(L,D){if(typeof L=="number"){e.history.go(L);return}let M=cf(k.location,k.matches,u,c.v7_prependBasename,L,c.v7_relativeSplatPath,D==null?void 0:D.fromRouteId,D==null?void 0:D.relative),{path:Y,submission:Z,error:pe}=jg(c.v7_normalizeFormMethod,!1,M,D),de=k.location,le=ga(k.location,Y,D&&D.state);le=ct({},le,e.history.encodeLocation(le));let ie=D&&D.replace!=null?D.replace:void 0,Oe=pt.Push;ie===!0?Oe=pt.Replace:ie===!1||Z!=null&&Hn(Z.formMethod)&&Z.formAction===k.location.pathname+k.location.search&&(Oe=pt.Replace);let vt=D&&"preventScrollReset"in D?D.preventScrollReset===!0:void 0,he=(D&&D.unstable_flushSync)===!0,De=Ia({currentLocation:de,nextLocation:le,historyAction:Oe});if(De){Zi(De,{state:"blocked",location:le,proceed(){Zi(De,{state:"proceeding",proceed:void 0,reset:void 0,location:le}),je(L,D)},reset(){let ot=new Map(k.blockers);ot.set(De,Ss),Te({blockers:ot})}});return}return await ze(Oe,le,{submission:Z,pendingError:pe,preventScrollReset:vt,replace:D&&D.replace,enableViewTransition:D&&D.unstable_viewTransition,flushSync:he})}function Ne(){if(Pr(),Te({revalidation:"loading"}),k.navigation.state!=="submitting"){if(k.navigation.state==="idle"){ze(k.historyAction,k.location,{startUninterruptedRevalidation:!0});return}ze(O||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation})}}async function ze(L,D,M){F&&F.abort(),F=null,O=L,K=(M&&M.startUninterruptedRevalidation)===!0,Ji(k.location,k.matches),A=(M&&M.preventScrollReset)===!0,H=(M&&M.enableViewTransition)===!0;let Y=l||s,Z=M&&M.overrideNavigation,pe=So(Y,D,u),de=(M&&M.flushSync)===!0;if(!pe){let ot=Sn(404,{pathname:D.pathname}),{matches:Vt,route:st}=Mg(Y);ss(),xt(D,{matches:Vt,loaderData:{},errors:{[st.id]:ot}},{flushSync:de});return}if(k.initialized&&!V&&LS(k.location,D)&&!(M&&M.submission&&Hn(M.submission.formMethod))){xt(D,{matches:pe},{flushSync:de});return}F=new AbortController;let le=Cs(e.history,D,F.signal,M&&M.submission),ie,Oe;if(M&&M.pendingError)Oe={[Gs(pe).route.id]:M.pendingError};else if(M&&M.submission&&Hn(M.submission.formMethod)){let ot=await gt(le,D,M.submission,pe,{replace:M.replace,flushSync:de});if(ot.shortCircuited)return;ie=ot.pendingActionData,Oe=ot.pendingActionError,Z=od(D,M.submission),de=!1,le=new Request(le.url,{signal:le.signal})}let{shortCircuited:vt,loaderData:he,errors:De}=await cr(le,D,pe,Z,M&&M.submission,M&&M.fetcherSubmission,M&&M.replace,M&&M.initialHydration===!0,de,ie,Oe);vt||(F=null,xt(D,ct({matches:pe},ie?{actionData:ie}:{},{loaderData:he,errors:De})))}async function gt(L,D,M,Y,Z){Z===void 0&&(Z={}),Pr();let pe=$S(D,M);Te({navigation:pe},{flushSync:Z.flushSync===!0});let de,le=ff(Y,D);if(!le.route.action&&!le.route.lazy)de={type:lt.error,error:Sn(405,{method:L.method,pathname:D.pathname,routeId:le.route.id})};else if(de=await ks("action",L,le,Y,o,i,u,c.v7_relativeSplatPath),L.signal.aborted)return{shortCircuited:!0};if(Li(de)){let ie;return Z&&Z.replace!=null?ie=Z.replace:ie=de.location===k.location.pathname+k.location.search,await vn(k,de,{submission:M,replace:ie}),{shortCircuited:!0}}if(ko(de)){let ie=Gs(Y,le.route.id);return(Z&&Z.replace)!==!0&&(O=pt.Push),{pendingActionData:{},pendingActionError:{[ie.route.id]:de.error}}}if(Ni(de))throw Sn(400,{type:"defer-action"});return{pendingActionData:{[le.route.id]:de.data}}}async function cr(L,D,M,Y,Z,pe,de,le,ie,Oe,vt){let he=Y||od(D,Z),De=Z||pe||Fg(he),ot=l||s,[Vt,st]=Ng(e.history,k,M,De,D,c.v7_partialHydration&&le===!0,V,re,oe,ae,ve,se,ot,u,Oe,vt);if(ss(Ae=>!(M&&M.some(Ke=>Ke.route.id===Ae))||Vt&&Vt.some(Ke=>Ke.route.id===Ae)),q=++U,Vt.length===0&&st.length===0){let Ae=$a();return xt(D,ct({matches:M,loaderData:{},errors:vt||null},Oe?{actionData:Oe}:{},Ae?{fetchers:new Map(k.fetchers)}:{}),{flushSync:ie}),{shortCircuited:!0}}if(!K&&(!c.v7_partialHydration||!le)){st.forEach(Ke=>{let Gt=k.fetchers.get(Ke.key),Mn=Ts(void 0,Gt?Gt.data:void 0);k.fetchers.set(Ke.key,Mn)});let Ae=Oe||k.actionData;Te(ct({navigation:he},Ae?Object.keys(Ae).length===0?{actionData:null}:{actionData:Ae}:{},st.length>0?{fetchers:new Map(k.fetchers)}:{}),{flushSync:ie})}st.forEach(Ae=>{ne.has(Ae.key)&&It(Ae.key),Ae.controller&&ne.set(Ae.key,Ae.controller)});let Nr=()=>st.forEach(Ae=>It(Ae.key));F&&F.signal.addEventListener("abort",Nr);let{results:us,loaderResults:on,fetcherResults:et}=await ci(k.matches,M,Vt,st,L);if(L.signal.aborted)return{shortCircuited:!0};F&&F.signal.removeEventListener("abort",Nr),st.forEach(Ae=>ne.delete(Ae.key));let dt=Ig(us);if(dt){if(dt.idx>=Vt.length){let Ae=st[dt.idx-Vt.length].key;se.add(Ae)}return await vn(k,dt.result,{replace:de}),{shortCircuited:!0}}let{loaderData:jt,errors:_t}=Dg(k,M,Vt,on,vt,st,et,ye);ye.forEach((Ae,Ke)=>{Ae.subscribe(Gt=>{(Gt||Ae.done)&&ye.delete(Ke)})});let Lr=$a(),sn=Xi(q),yn=Lr||sn||st.length>0;return ct({loaderData:jt,errors:_t},yn?{fetchers:new Map(k.fetchers)}:{})}function is(L,D,M,Y){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");ne.has(L)&&It(L);let Z=(Y&&Y.unstable_flushSync)===!0,pe=l||s,de=cf(k.location,k.matches,u,c.v7_prependBasename,M,c.v7_relativeSplatPath,D,Y==null?void 0:Y.relative),le=So(pe,de,u);if(!le){Pt(L,D,Sn(404,{pathname:de}),{flushSync:Z});return}let{path:ie,submission:Oe,error:vt}=jg(c.v7_normalizeFormMethod,!0,de,Y);if(vt){Pt(L,D,vt,{flushSync:Z});return}let he=ff(le,ie);if(A=(Y&&Y.preventScrollReset)===!0,Oe&&Hn(Oe.formMethod)){os(L,D,ie,he,le,Z,Oe);return}ve.set(L,{routeId:D,path:ie}),Dn(L,D,ie,he,le,Z,Oe)}async function os(L,D,M,Y,Z,pe,de){if(Pr(),ve.delete(L),!Y.route.action&&!Y.route.lazy){let Ke=Sn(405,{method:de.formMethod,pathname:M,routeId:D});Pt(L,D,Ke,{flushSync:pe});return}let le=k.fetchers.get(L);Ot(L,MS(de,le),{flushSync:pe});let ie=new AbortController,Oe=Cs(e.history,M,ie.signal,de);ne.set(L,ie);let vt=U,he=await ks("action",Oe,Y,Z,o,i,u,c.v7_relativeSplatPath);if(Oe.signal.aborted){ne.get(L)===ie&&ne.delete(L);return}if(c.v7_fetcherPersist&&ae.has(L)){if(Li(he)||ko(he)){Ot(L,Mr(void 0));return}}else{if(Li(he))if(ne.delete(L),q>vt){Ot(L,Mr(void 0));return}else return se.add(L),Ot(L,Ts(de)),vn(k,he,{fetcherSubmission:de});if(ko(he)){Pt(L,D,he.error);return}}if(Ni(he))throw Sn(400,{type:"defer-action"});let De=k.navigation.location||k.location,ot=Cs(e.history,De,ie.signal),Vt=l||s,st=k.navigation.state!=="idle"?So(Vt,k.navigation.location,u):k.matches;Se(st,"Didn't find any matches after fetcher action");let Nr=++U;R.set(L,Nr);let us=Ts(de,he.data);k.fetchers.set(L,us);let[on,et]=Ng(e.history,k,st,de,De,!1,V,re,oe,ae,ve,se,Vt,u,{[Y.route.id]:he.data},void 0);et.filter(Ke=>Ke.key!==L).forEach(Ke=>{let Gt=Ke.key,Mn=k.fetchers.get(Gt),Fa=Ts(void 0,Mn?Mn.data:void 0);k.fetchers.set(Gt,Fa),ne.has(Gt)&&It(Gt),Ke.controller&&ne.set(Gt,Ke.controller)}),Te({fetchers:new Map(k.fetchers)});let dt=()=>et.forEach(Ke=>It(Ke.key));ie.signal.addEventListener("abort",dt);let{results:jt,loaderResults:_t,fetcherResults:Lr}=await ci(k.matches,st,on,et,ot);if(ie.signal.aborted)return;ie.signal.removeEventListener("abort",dt),R.delete(L),ne.delete(L),et.forEach(Ke=>ne.delete(Ke.key));let sn=Ig(jt);if(sn){if(sn.idx>=on.length){let Ke=et[sn.idx-on.length].key;se.add(Ke)}return vn(k,sn.result)}let{loaderData:yn,errors:Ae}=Dg(k,k.matches,on,_t,void 0,et,Lr,ye);if(k.fetchers.has(L)){let Ke=Mr(he.data);k.fetchers.set(L,Ke)}Xi(Nr),k.navigation.state==="loading"&&Nr>q?(Se(O,"Expected pending action"),F&&F.abort(),xt(k.navigation.location,{matches:st,loaderData:yn,errors:Ae,fetchers:new Map(k.fetchers)})):(Te({errors:Ae,loaderData:$g(k.loaderData,yn,st,Ae),fetchers:new Map(k.fetchers)}),V=!1)}async function Dn(L,D,M,Y,Z,pe,de){let le=k.fetchers.get(L);Ot(L,Ts(de,le?le.data:void 0),{flushSync:pe});let ie=new AbortController,Oe=Cs(e.history,M,ie.signal);ne.set(L,ie);let vt=U,he=await ks("loader",Oe,Y,Z,o,i,u,c.v7_relativeSplatPath);if(Ni(he)&&(he=await o1(he,Oe.signal,!0)||he),ne.get(L)===ie&&ne.delete(L),!Oe.signal.aborted){if(ae.has(L)){Ot(L,Mr(void 0));return}if(Li(he))if(q>vt){Ot(L,Mr(void 0));return}else{se.add(L),await vn(k,he);return}if(ko(he)){Pt(L,D,he.error);return}Se(!Ni(he),"Unhandled fetcher deferred data"),Ot(L,Mr(he.data))}}async function vn(L,D,M){let{submission:Y,fetcherSubmission:Z,replace:pe}=M===void 0?{}:M;D.revalidate&&(V=!0);let de=ga(L.location,D.location,{_isRedirect:!0});if(Se(de,"Expected a location on the redirect navigation"),n){let De=!1;if(D.reloadDocument)De=!0;else if(t1.test(D.location)){const ot=e.history.createURL(D.location);De=ot.origin!==t.location.origin||es(ot.pathname,u)==null}if(De){pe?t.location.replace(D.location):t.location.assign(D.location);return}}F=null;let le=pe===!0?pt.Replace:pt.Push,{formMethod:ie,formAction:Oe,formEncType:vt}=L.navigation;!Y&&!Z&&ie&&Oe&&vt&&(Y=Fg(L.navigation));let he=Y||Z;if(SS.has(D.status)&&he&&Hn(he.formMethod))await ze(le,de,{submission:ct({},he,{formAction:D.location}),preventScrollReset:A});else{let De=od(de,Y);await ze(le,de,{overrideNavigation:De,fetcherSubmission:Z,preventScrollReset:A})}}async function ci(L,D,M,Y,Z){let pe=await Promise.all([...M.map(ie=>ks("loader",Z,ie,D,o,i,u,c.v7_relativeSplatPath)),...Y.map(ie=>ie.matches&&ie.match&&ie.controller?ks("loader",Cs(e.history,ie.path,ie.controller.signal),ie.match,ie.matches,o,i,u,c.v7_relativeSplatPath):{type:lt.error,error:Sn(404,{pathname:ie.path})})]),de=pe.slice(0,M.length),le=pe.slice(M.length);return await Promise.all([zg(L,M,de,de.map(()=>Z.signal),!1,k.loaderData),zg(L,Y.map(ie=>ie.match),le,Y.map(ie=>ie.controller?ie.controller.signal:null),!0)]),{results:pe,loaderResults:de,fetcherResults:le}}function Pr(){V=!0,re.push(...ss()),ve.forEach((L,D)=>{ne.has(D)&&(oe.push(D),It(D))})}function Ot(L,D,M){M===void 0&&(M={}),k.fetchers.set(L,D),Te({fetchers:new Map(k.fetchers)},{flushSync:(M&&M.flushSync)===!0})}function Pt(L,D,M,Y){Y===void 0&&(Y={});let Z=Gs(k.matches,D);rn(L),Te({errors:{[Z.route.id]:M},fetchers:new Map(k.fetchers)},{flushSync:(Y&&Y.flushSync)===!0})}function jr(L){return c.v7_fetcherPersist&&(Re.set(L,(Re.get(L)||0)+1),ae.has(L)&&ae.delete(L)),k.fetchers.get(L)||kS}function rn(L){let D=k.fetchers.get(L);ne.has(L)&&!(D&&D.state==="loading"&&R.has(L))&&It(L),ve.delete(L),R.delete(L),se.delete(L),ae.delete(L),k.fetchers.delete(L)}function $n(L){if(c.v7_fetcherPersist){let D=(Re.get(L)||0)-1;D<=0?(Re.delete(L),ae.add(L)):Re.set(L,D)}else rn(L);Te({fetchers:new Map(k.fetchers)})}function It(L){let D=ne.get(L);Se(D,"Expected fetch controller: "+L),D.abort(),ne.delete(L)}function di(L){for(let D of L){let M=jr(D),Y=Mr(M.data);k.fetchers.set(D,Y)}}function $a(){let L=[],D=!1;for(let M of se){let Y=k.fetchers.get(M);Se(Y,"Expected fetcher: "+M),Y.state==="loading"&&(se.delete(M),L.push(M),D=!0)}return di(L),D}function Xi(L){let D=[];for(let[M,Y]of R)if(Y0}function ec(L,D){let M=k.blockers.get(L)||Ss;return ue.get(L)!==D&&ue.set(L,D),M}function Ma(L){k.blockers.delete(L),ue.delete(L)}function Zi(L,D){let M=k.blockers.get(L)||Ss;Se(M.state==="unblocked"&&D.state==="blocked"||M.state==="blocked"&&D.state==="blocked"||M.state==="blocked"&&D.state==="proceeding"||M.state==="blocked"&&D.state==="unblocked"||M.state==="proceeding"&&D.state==="unblocked","Invalid blocker state transition: "+M.state+" -> "+D.state);let Y=new Map(k.blockers);Y.set(L,D),Te({blockers:Y})}function Ia(L){let{currentLocation:D,nextLocation:M,historyAction:Y}=L;if(ue.size===0)return;ue.size>1&&ri(!1,"A router only supports one blocker at a time");let Z=Array.from(ue.entries()),[pe,de]=Z[Z.length-1],le=k.blockers.get(pe);if(!(le&&le.state==="proceeding")&&de({currentLocation:D,nextLocation:M,historyAction:Y}))return pe}function ss(L){let D=[];return ye.forEach((M,Y)=>{(!L||L(Y))&&(M.cancel(),D.push(Y),ye.delete(Y))}),D}function tc(L,D,M){if(m=L,x=D,y=M||null,!_&&k.navigation===id){_=!0;let Y=ls(k.location,k.matches);Y!=null&&Te({restoreScrollPosition:Y})}return()=>{m=null,x=null,y=null}}function as(L,D){return y&&y(L,D.map(Y=>eS(Y,k.loaderData)))||L.key}function Ji(L,D){if(m&&x){let M=as(L,D);m[M]=x()}}function ls(L,D){if(m){let M=as(L,D),Y=m[M];if(typeof Y=="number")return Y}return null}function za(L){o={},l=uf(L,i,void 0,o)}return N={get basename(){return u},get future(){return c},get state(){return k},get routes(){return s},get window(){return t},initialize:G,subscribe:mt,enableScrollRestoration:tc,navigate:je,fetch:is,revalidate:Ne,createHref:L=>e.history.createHref(L),encodeLocation:L=>e.history.encodeLocation(L),getFetcher:jr,deleteFetcher:$n,dispose:We,getBlocker:ec,deleteBlocker:Ma,_internalFetchControllers:ne,_internalActiveDeferreds:ye,_internalSetRoutes:za},N}function OS(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function cf(e,t,n,r,i,o,s,l){let u,c;if(s){u=[];for(let h of t)if(u.push(h),h.route.id===s){c=h;break}}else u=t,c=t[t.length-1];let f=Pp(i||".",Op(u,o),es(e.pathname,n)||e.pathname,l==="path");return i==null&&(f.search=e.search,f.hash=e.hash),(i==null||i===""||i===".")&&c&&c.route.index&&!Np(f.search)&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(f.pathname=f.pathname==="/"?n:xr([n,f.pathname])),Vi(f)}function jg(e,t,n,r){if(!r||!OS(r))return{path:n};if(r.formMethod&&!DS(r.formMethod))return{path:n,error:Sn(405,{method:r.formMethod})};let i=()=>({path:n,error:Sn(400,{type:"invalid-body"})}),o=r.formMethod||"get",s=e?o.toUpperCase():o.toLowerCase(),l=i1(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Hn(s))return i();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,x)=>{let[_,C]=x;return""+y+_+"="+C+` +`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!Hn(s))return i();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:l,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return i()}}}Se(typeof FormData=="function","FormData is not available in this environment");let u,c;if(r.formData)u=df(r.formData),c=r.formData;else if(r.body instanceof FormData)u=df(r.body),c=r.body;else if(r.body instanceof URLSearchParams)u=r.body,c=Ag(u);else if(r.body==null)u=new URLSearchParams,c=new FormData;else try{u=new URLSearchParams(r.body),c=Ag(u)}catch{return i()}let f={formMethod:s,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Hn(f.formMethod))return{path:n,submission:f};let h=ur(n);return t&&h.search&&Np(h.search)&&u.append("index",""),h.search="?"+u,{path:Vi(h),submission:f}}function PS(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Ng(e,t,n,r,i,o,s,l,u,c,f,h,m,y,x,_){let C=_?Object.values(_)[0]:x?Object.values(x)[0]:void 0,v=e.createURL(t.location),g=e.createURL(i),b=_?Object.keys(_)[0]:void 0,N=PS(n,b).filter((O,A)=>{let{route:F}=O;if(F.lazy)return!0;if(F.loader==null)return!1;if(o)return F.loader.hydrate?!0:t.loaderData[F.id]===void 0&&(!t.errors||t.errors[F.id]===void 0);if(jS(t.loaderData,t.matches[A],O)||l.some(I=>I===O.route.id))return!0;let H=t.matches[A],z=O;return Lg(O,ct({currentUrl:v,currentParams:H.params,nextUrl:g,nextParams:z.params},r,{actionResult:C,defaultShouldRevalidate:s||v.pathname+v.search===g.pathname+g.search||v.search!==g.search||r1(H,z)}))}),k=[];return f.forEach((O,A)=>{if(o||!n.some(K=>K.route.id===O.routeId)||c.has(A))return;let F=So(m,O.path,y);if(!F){k.push({key:A,routeId:O.routeId,path:O.path,matches:null,match:null,controller:null});return}let H=t.fetchers.get(A),z=ff(F,O.path),I=!1;h.has(A)?I=!1:u.includes(A)?I=!0:H&&H.state!=="idle"&&H.data===void 0?I=s:I=Lg(z,ct({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params},r,{actionResult:C,defaultShouldRevalidate:s})),I&&k.push({key:A,routeId:O.routeId,path:O.path,matches:F,match:z,controller:new AbortController})}),[N,k]}function jS(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function r1(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Lg(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Rg(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Se(i,"No route found in manifest");let o={};for(let s in r){let u=i[s]!==void 0&&s!=="hasErrorBoundary";ri(!u,'Route "'+i.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!u&&!Zb.has(s)&&(o[s]=r[s])}Object.assign(i,o),Object.assign(i,ct({},t(i),{lazy:void 0}))}async function ks(e,t,n,r,i,o,s,l,u){u===void 0&&(u={});let c,f,h,m=_=>{let C,v=new Promise((g,b)=>C=b);return h=()=>C(),t.signal.addEventListener("abort",h),Promise.race([_({request:t,params:n.params,context:u.requestContext}),v])};try{let _=n.route[e];if(n.route.lazy)if(_){let C,v=await Promise.all([m(_).catch(g=>{C=g}),Rg(n.route,o,i)]);if(C)throw C;f=v[0]}else if(await Rg(n.route,o,i),_=n.route[e],_)f=await m(_);else if(e==="action"){let C=new URL(t.url),v=C.pathname+C.search;throw Sn(405,{method:t.method,pathname:v,routeId:n.route.id})}else return{type:lt.data,data:void 0};else if(_)f=await m(_);else{let C=new URL(t.url),v=C.pathname+C.search;throw Sn(404,{pathname:v})}Se(f!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(_){c=lt.error,f=_}finally{h&&t.signal.removeEventListener("abort",h)}if(AS(f)){let _=f.status;if(bS.has(_)){let v=f.headers.get("Location");if(Se(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!t1.test(v))v=cf(new URL(t.url),r.slice(0,r.indexOf(n)+1),s,!0,v,l);else if(!u.isStaticRequest){let g=new URL(t.url),b=v.startsWith("//")?new URL(g.protocol+v):new URL(v),T=es(b.pathname,s)!=null;b.origin===g.origin&&T&&(v=b.pathname+b.search+b.hash)}if(u.isStaticRequest)throw f.headers.set("Location",v),f;return{type:lt.redirect,status:_,location:v,revalidate:f.headers.get("X-Remix-Revalidate")!==null,reloadDocument:f.headers.get("X-Remix-Reload-Document")!==null}}if(u.isRouteRequest)throw{type:c===lt.error?lt.error:lt.data,response:f};let C;try{let v=f.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?C=await f.json():C=await f.text()}catch(v){return{type:lt.error,error:v}}return c===lt.error?{type:c,error:new jp(_,f.statusText,C),headers:f.headers}:{type:lt.data,data:C,statusCode:f.status,headers:f.headers}}if(c===lt.error)return{type:c,error:f};if(RS(f)){var y,x;return{type:lt.deferred,deferredData:f,statusCode:(y=f.init)==null?void 0:y.status,headers:((x=f.init)==null?void 0:x.headers)&&new Headers(f.init.headers)}}return{type:lt.data,data:f}}function Cs(e,t,n,r){let i=e.createURL(i1(t)).toString(),o={signal:n};if(r&&Hn(r.formMethod)){let{formMethod:s,formEncType:l}=r;o.method=s.toUpperCase(),l==="application/json"?(o.headers=new Headers({"Content-Type":l}),o.body=JSON.stringify(r.json)):l==="text/plain"?o.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?o.body=df(r.formData):o.body=r.formData}return new Request(i,o)}function df(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Ag(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function NS(e,t,n,r,i){let o={},s=null,l,u=!1,c={};return n.forEach((f,h)=>{let m=t[h].route.id;if(Se(!Li(f),"Cannot handle redirect results in processLoaderData"),ko(f)){let y=Gs(e,m),x=f.error;r&&(x=Object.values(r)[0],r=void 0),s=s||{},s[y.route.id]==null&&(s[y.route.id]=x),o[m]=void 0,u||(u=!0,l=Jy(f.error)?f.error.status:500),f.headers&&(c[m]=f.headers)}else Ni(f)?(i.set(m,f.deferredData),o[m]=f.deferredData.data):o[m]=f.data,f.statusCode!=null&&f.statusCode!==200&&!u&&(l=f.statusCode),f.headers&&(c[m]=f.headers)}),r&&(s=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:s,statusCode:l||200,loaderHeaders:c}}function Dg(e,t,n,r,i,o,s,l){let{loaderData:u,errors:c}=NS(t,n,r,i,l);for(let f=0;fr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Mg(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Sn(e,t){let{pathname:n,routeId:r,method:i,type:o}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&n&&r?l="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?l="defer() is not supported in actions":o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",i&&n&&r?l="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new jp(e||500,s,new Error(l),!0)}function Ig(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Li(n))return{result:n,idx:t}}}function i1(e){let t=typeof e=="string"?ur(e):e;return Vi(ct({},t,{hash:""}))}function LS(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Ni(e){return e.type===lt.deferred}function ko(e){return e.type===lt.error}function Li(e){return(e&&e.type)===lt.redirect}function RS(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function AS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function DS(e){return ES.has(e.toLowerCase())}function Hn(e){return xS.has(e.toLowerCase())}async function zg(e,t,n,r,i,o){for(let s=0;sh.route.id===u.route.id),f=c!=null&&!r1(c,u)&&(o&&o[u.route.id])!==void 0;if(Ni(l)&&(i||f)){let h=r[s];Se(h,"Expected an AbortSignal for revalidating fetcher deferred result"),await o1(l,h,i).then(m=>{m&&(n[s]=m||n[s])})}}}async function o1(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:lt.data,data:e.deferredData.unwrappedData}}catch(i){return{type:lt.error,error:i}}return{type:lt.data,data:e.deferredData.data}}}function Np(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ff(e,t){let n=typeof t=="string"?ur(t).search:t.search;if(e[e.length-1].route.index&&Np(n||""))return e[e.length-1];let r=Zy(e);return r[r.length-1]}function Fg(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:s}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function od(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function $S(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Ts(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function MS(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Mr(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function IS(e,t){try{let n=e.sessionStorage.getItem(n1);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function zS(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(n1,JSON.stringify(n))}catch(r){ri(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.21.1 * * Copyright (c) Remix Software Inc. @@ -56,7 +56,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function va(){return va=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),S.useCallback(function(c,f){if(f===void 0&&(f={}),!l.current)return;if(typeof c=="number"){r.go(c);return}let h=Op(c,JSON.parse(s),o,f.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:xr([t,h.pathname])),(f.replace?r.replace:r.push)(h,f.state,f)},[t,r,s,o,e])}function US(){let{matches:e}=S.useContext(li),t=e[e.length-1];return t?t.params:{}}function u1(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=S.useContext(qi),{matches:i}=S.useContext(li),{pathname:o}=Pa(),s=JSON.stringify(Tp(i,r.v7_relativeSplatPath));return S.useMemo(()=>Op(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function HS(e,t){return c1(e,t)}function c1(e,t,n,r){Oa()||Se(!1);let{navigator:i}=S.useContext(qi),{matches:o}=S.useContext(li),s=o[o.length-1],l=s?s.params:{};s&&s.pathname;let u=s?s.pathnameBase:"/";s&&s.route;let c=Pa(),f;if(t){var h;let C=typeof t=="string"?ur(t):t;u==="/"||(h=C.pathname)!=null&&h.startsWith(u)||Se(!1),f=C}else f=c;let m=f.pathname||"/",y=u==="/"?m:m.slice(u.length)||"/",x=So(e,{pathname:y}),_=QS(x&&x.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:xr([u,i.encodeLocation?i.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:xr([u,i.encodeLocation?i.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),o,n,r);return t&&_?S.createElement(zu.Provider,{value:{location:va({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:pt.Pop}},_):_}function WS(){let e=ZS(),t=Jy(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:i},n):null,o)}const VS=S.createElement(WS,null);class GS extends S.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?S.createElement(li.Provider,{value:this.props.routeContext},S.createElement(a1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function KS(e){let{routeContext:t,match:n,children:r}=e,i=S.useContext(Iu);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(li.Provider,{value:t},r)}function QS(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let s=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let f=s.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id]));f>=0||Se(!1),s=s.slice(0,Math.min(s.length,f+1))}let u=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((f,h,m)=>{let y,x=!1,_=null,C=null;n&&(y=l&&h.route.id?l[h.route.id]:void 0,_=h.route.errorElement||VS,u&&(c<0&&m===0?(e2("route-fallback",!1),x=!0,C=null):c===m&&(x=!0,C=h.route.hydrateFallbackElement||null)));let v=t.concat(s.slice(0,m+1)),g=()=>{let b;return y?b=_:x?b=C:h.route.Component?b=S.createElement(h.route.Component,null):h.route.element?b=h.route.element:b=f,S.createElement(KS,{match:h,routeContext:{outlet:f,matches:v,isDataRoute:n!=null},children:b})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?S.createElement(GS,{location:n.location,revalidation:n.revalidation,component:_,error:y,children:g(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):g()},null)}var d1=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(d1||{}),mu=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}(mu||{});function YS(e){let t=S.useContext(Iu);return t||Se(!1),t}function qS(e){let t=S.useContext(s1);return t||Se(!1),t}function XS(e){let t=S.useContext(li);return t||Se(!1),t}function f1(e){let t=XS(),n=t.matches[t.matches.length-1];return n.route.id||Se(!1),n.route.id}function ZS(){var e;let t=S.useContext(a1),n=qS(mu.UseRouteError),r=f1(mu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function JS(){let{router:e}=YS(d1.UseNavigateStable),t=f1(mu.UseNavigateStable),n=S.useRef(!1);return l1(()=>{n.current=!0}),S.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,va({fromRouteId:t},o)))},[e,t])}const Bg={};function e2(e,t,n){!t&&!Bg[e]&&(Bg[e]=!0)}function co(e){Se(!1)}function t2(e){let{basename:t="/",children:n=null,location:r,navigationType:i=pt.Pop,navigator:o,static:s=!1,future:l}=e;Oa()&&Se(!1);let u=t.replace(/^\/*/,"/"),c=S.useMemo(()=>({basename:u,navigator:o,static:s,future:va({v7_relativeSplatPath:!1},l)}),[u,l,o,s]);typeof r=="string"&&(r=ur(r));let{pathname:f="/",search:h="",hash:m="",state:y=null,key:x="default"}=r,_=S.useMemo(()=>{let C=es(f,u);return C==null?null:{location:{pathname:C,search:h,hash:m,state:y,key:x},navigationType:i}},[u,f,h,m,y,x,i]);return _==null?null:S.createElement(qi.Provider,{value:c},S.createElement(zu.Provider,{children:n,value:_}))}function n2(e){let{children:t,location:n}=e;return HS(ff(t),n)}new Promise(()=>{});function ff(e,t){t===void 0&&(t=[]);let n=[];return S.Children.forEach(e,(r,i)=>{if(!S.isValidElement(r))return;let o=[...t,i];if(r.type===S.Fragment){n.push.apply(n,ff(r.props.children,o));return}r.type!==co&&Se(!1),!r.props.index||!r.props.children||Se(!1);let s={id:r.props.id||o.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=ff(r.props.children,o)),n.push(s)}),n}function r2(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:S.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:S.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:S.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function va(){return va=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),S.useCallback(function(c,f){if(f===void 0&&(f={}),!l.current)return;if(typeof c=="number"){r.go(c);return}let h=Pp(c,JSON.parse(s),o,f.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:xr([t,h.pathname])),(f.replace?r.replace:r.push)(h,f.state,f)},[t,r,s,o,e])}function US(){let{matches:e}=S.useContext(li),t=e[e.length-1];return t?t.params:{}}function u1(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=S.useContext(qi),{matches:i}=S.useContext(li),{pathname:o}=Pa(),s=JSON.stringify(Op(i,r.v7_relativeSplatPath));return S.useMemo(()=>Pp(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function HS(e,t){return c1(e,t)}function c1(e,t,n,r){Oa()||Se(!1);let{navigator:i}=S.useContext(qi),{matches:o}=S.useContext(li),s=o[o.length-1],l=s?s.params:{};s&&s.pathname;let u=s?s.pathnameBase:"/";s&&s.route;let c=Pa(),f;if(t){var h;let C=typeof t=="string"?ur(t):t;u==="/"||(h=C.pathname)!=null&&h.startsWith(u)||Se(!1),f=C}else f=c;let m=f.pathname||"/",y=u==="/"?m:m.slice(u.length)||"/",x=So(e,{pathname:y}),_=QS(x&&x.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:xr([u,i.encodeLocation?i.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:xr([u,i.encodeLocation?i.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),o,n,r);return t&&_?S.createElement(zu.Provider,{value:{location:va({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:pt.Pop}},_):_}function WS(){let e=ZS(),t=Jy(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:i},n):null,o)}const VS=S.createElement(WS,null);class GS extends S.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?S.createElement(li.Provider,{value:this.props.routeContext},S.createElement(a1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function KS(e){let{routeContext:t,match:n,children:r}=e,i=S.useContext(Iu);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(li.Provider,{value:t},r)}function QS(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let s=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let f=s.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id]));f>=0||Se(!1),s=s.slice(0,Math.min(s.length,f+1))}let u=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((f,h,m)=>{let y,x=!1,_=null,C=null;n&&(y=l&&h.route.id?l[h.route.id]:void 0,_=h.route.errorElement||VS,u&&(c<0&&m===0?(e2("route-fallback",!1),x=!0,C=null):c===m&&(x=!0,C=h.route.hydrateFallbackElement||null)));let v=t.concat(s.slice(0,m+1)),g=()=>{let b;return y?b=_:x?b=C:h.route.Component?b=S.createElement(h.route.Component,null):h.route.element?b=h.route.element:b=f,S.createElement(KS,{match:h,routeContext:{outlet:f,matches:v,isDataRoute:n!=null},children:b})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?S.createElement(GS,{location:n.location,revalidation:n.revalidation,component:_,error:y,children:g(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):g()},null)}var d1=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(d1||{}),mu=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}(mu||{});function YS(e){let t=S.useContext(Iu);return t||Se(!1),t}function qS(e){let t=S.useContext(s1);return t||Se(!1),t}function XS(e){let t=S.useContext(li);return t||Se(!1),t}function f1(e){let t=XS(),n=t.matches[t.matches.length-1];return n.route.id||Se(!1),n.route.id}function ZS(){var e;let t=S.useContext(a1),n=qS(mu.UseRouteError),r=f1(mu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function JS(){let{router:e}=YS(d1.UseNavigateStable),t=f1(mu.UseNavigateStable),n=S.useRef(!1);return l1(()=>{n.current=!0}),S.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,va({fromRouteId:t},o)))},[e,t])}const Bg={};function e2(e,t,n){!t&&!Bg[e]&&(Bg[e]=!0)}function co(e){Se(!1)}function t2(e){let{basename:t="/",children:n=null,location:r,navigationType:i=pt.Pop,navigator:o,static:s=!1,future:l}=e;Oa()&&Se(!1);let u=t.replace(/^\/*/,"/"),c=S.useMemo(()=>({basename:u,navigator:o,static:s,future:va({v7_relativeSplatPath:!1},l)}),[u,l,o,s]);typeof r=="string"&&(r=ur(r));let{pathname:f="/",search:h="",hash:m="",state:y=null,key:x="default"}=r,_=S.useMemo(()=>{let C=es(f,u);return C==null?null:{location:{pathname:C,search:h,hash:m,state:y,key:x},navigationType:i}},[u,f,h,m,y,x,i]);return _==null?null:S.createElement(qi.Provider,{value:c},S.createElement(zu.Provider,{children:n,value:_}))}function n2(e){let{children:t,location:n}=e;return HS(pf(t),n)}new Promise(()=>{});function pf(e,t){t===void 0&&(t=[]);let n=[];return S.Children.forEach(e,(r,i)=>{if(!S.isValidElement(r))return;let o=[...t,i];if(r.type===S.Fragment){n.push.apply(n,pf(r.props.children,o));return}r.type!==co&&Se(!1),!r.props.index||!r.props.children||Se(!1);let s={id:r.props.id||o.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=pf(r.props.children,o)),n.push(s)}),n}function r2(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:S.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:S.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:S.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.21.1 * * Copyright (c) Remix Software Inc. @@ -65,7 +65,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ya(){return ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function o2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function s2(e,t){return e.button===0&&(!t||t==="_self")&&!o2(e)}const a2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];function l2(e,t){return TS({basename:t==null?void 0:t.basename,future:ya({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Yb({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||u2(),routes:e,mapRouteProperties:r2,window:t==null?void 0:t.window}).initialize()}function u2(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=ya({},t,{errors:c2(t.errors)})),t}function c2(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new Pp(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let s=new o(i.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const d2=S.createContext({isTransitioning:!1}),f2=S.createContext(new Map),p2="startTransition",Ug=I_[p2],h2="flushSync",Hg=Qb[h2];function m2(e){Ug?Ug(e):e()}function Os(e){Hg?Hg(e):e()}class g2{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function v2(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=S.useState(n.state),[s,l]=S.useState(),[u,c]=S.useState({isTransitioning:!1}),[f,h]=S.useState(),[m,y]=S.useState(),[x,_]=S.useState(),C=S.useRef(new Map),{v7_startTransition:v}=r||{},g=S.useCallback(O=>{v?m2(O):O()},[v]),b=S.useCallback((O,A)=>{let{deletedFetchers:F,unstable_flushSync:H,unstable_viewTransitionOpts:z}=A;F.forEach(K=>C.current.delete(K)),O.fetchers.forEach((K,V)=>{K.data!==void 0&&C.current.set(V,K.data)});let I=n.window==null||typeof n.window.document.startViewTransition!="function";if(!z||I){H?Os(()=>o(O)):g(()=>o(O));return}if(H){Os(()=>{m&&(f&&f.resolve(),m.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:z.currentLocation,nextLocation:z.nextLocation})});let K=n.window.document.startViewTransition(()=>{Os(()=>o(O))});K.finished.finally(()=>{Os(()=>{h(void 0),y(void 0),l(void 0),c({isTransitioning:!1})})}),Os(()=>y(K));return}m?(f&&f.resolve(),m.skipTransition(),_({state:O,currentLocation:z.currentLocation,nextLocation:z.nextLocation})):(l(O),c({isTransitioning:!0,flushSync:!1,currentLocation:z.currentLocation,nextLocation:z.nextLocation}))},[n.window,m,f,C,g]);S.useLayoutEffect(()=>n.subscribe(b),[n,b]),S.useEffect(()=>{u.isTransitioning&&!u.flushSync&&h(new g2)},[u]),S.useEffect(()=>{if(f&&s&&n.window){let O=s,A=f.promise,F=n.window.document.startViewTransition(async()=>{g(()=>o(O)),await A});F.finished.finally(()=>{h(void 0),y(void 0),l(void 0),c({isTransitioning:!1})}),y(F)}},[g,s,f,n.window]),S.useEffect(()=>{f&&s&&i.location.key===s.location.key&&f.resolve()},[f,m,i.location,s]),S.useEffect(()=>{!u.isTransitioning&&x&&(l(x.state),c({isTransitioning:!0,flushSync:!1,currentLocation:x.currentLocation,nextLocation:x.nextLocation}),_(void 0))},[u.isTransitioning,x]),S.useEffect(()=>{},[]);let T=S.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:O=>n.navigate(O),push:(O,A,F)=>n.navigate(O,{state:A,preventScrollReset:F==null?void 0:F.preventScrollReset}),replace:(O,A,F)=>n.navigate(O,{replace:!0,state:A,preventScrollReset:F==null?void 0:F.preventScrollReset})}),[n]),N=n.basename||"/",k=S.useMemo(()=>({router:n,navigator:T,static:!1,basename:N}),[n,T,N]);return S.createElement(S.Fragment,null,S.createElement(Iu.Provider,{value:k},S.createElement(s1.Provider,{value:i},S.createElement(f2.Provider,{value:C.current},S.createElement(d2.Provider,{value:u},S.createElement(t2,{basename:N,location:i.location,navigationType:i.historyAction,navigator:T,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},i.initialized||n.future.v7_partialHydration?S.createElement(y2,{routes:n.routes,future:n.future,state:i}):t))))),null)}function y2(e){let{routes:t,future:n,state:r}=e;return c1(t,void 0,r,n)}const w2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",x2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gu=S.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:l,target:u,to:c,preventScrollReset:f,unstable_viewTransition:h}=t,m=i2(t,a2),{basename:y}=S.useContext(qi),x,_=!1;if(typeof c=="string"&&x2.test(c)&&(x=c,w2))try{let b=new URL(window.location.href),T=c.startsWith("//")?new URL(b.protocol+c):new URL(c),N=es(T.pathname,y);T.origin===b.origin&&N!=null?c=N+T.search+T.hash:_=!0}catch{}let C=FS(c,{relative:i}),v=_2(c,{replace:s,state:l,target:u,preventScrollReset:f,relative:i,unstable_viewTransition:h});function g(b){r&&r(b),b.defaultPrevented||v(b)}return S.createElement("a",ya({},m,{href:x||C,onClick:_||o?r:g,ref:n,target:u}))});var Wg;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Wg||(Wg={}));var Vg;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Vg||(Vg={}));function _2(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:l}=t===void 0?{}:t,u=Tr(),c=Pa(),f=u1(e,{relative:s});return S.useCallback(h=>{if(s2(h,n)){h.preventDefault();let m=r!==void 0?r:Vi(c)===Vi(f);u(e,{replace:m,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:l})}},[c,u,f,r,i,n,e,o,s,l])}var p1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})($v,function(){return function(n){function r(o){if(i[o])return i[o].exports;var s=i[o]={exports:{},id:o,loaded:!1};return n[o].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}var i={};return r.m=n,r.c=i,r.p="dist/",r(0)}([function(n,r,i){function o(V){return V&&V.__esModule?V:{default:V}}var s=Object.assign||function(V){for(var re=1;re0&&arguments[0]!==void 0&&arguments[0];if(V&&(O=!0),O)return k=(0,b.default)(k,A),(0,v.default)(k,A.once),k},H=function(){k=(0,N.default)(),F()},z=function(){k.forEach(function(V,re){V.node.removeAttribute("data-aos"),V.node.removeAttribute("data-aos-easing"),V.node.removeAttribute("data-aos-duration"),V.node.removeAttribute("data-aos-delay")})},I=function(V){return V===!0||V==="mobile"&&_.default.mobile()||V==="phone"&&_.default.phone()||V==="tablet"&&_.default.tablet()||typeof V=="function"&&V()===!0},K=function(V){A=s(A,V),k=(0,N.default)();var re=document.all&&!window.atob;return I(A.disable)||re?z():(A.disableMutationObserver||y.default.isSupported()||(console.info(` + */function ya(){return ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function o2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function s2(e,t){return e.button===0&&(!t||t==="_self")&&!o2(e)}const a2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];function l2(e,t){return TS({basename:t==null?void 0:t.basename,future:ya({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Yb({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||u2(),routes:e,mapRouteProperties:r2,window:t==null?void 0:t.window}).initialize()}function u2(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=ya({},t,{errors:c2(t.errors)})),t}function c2(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new jp(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let s=new o(i.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const d2=S.createContext({isTransitioning:!1}),f2=S.createContext(new Map),p2="startTransition",Ug=I_[p2],h2="flushSync",Hg=Qb[h2];function m2(e){Ug?Ug(e):e()}function Os(e){Hg?Hg(e):e()}class g2{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function v2(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=S.useState(n.state),[s,l]=S.useState(),[u,c]=S.useState({isTransitioning:!1}),[f,h]=S.useState(),[m,y]=S.useState(),[x,_]=S.useState(),C=S.useRef(new Map),{v7_startTransition:v}=r||{},g=S.useCallback(O=>{v?m2(O):O()},[v]),b=S.useCallback((O,A)=>{let{deletedFetchers:F,unstable_flushSync:H,unstable_viewTransitionOpts:z}=A;F.forEach(K=>C.current.delete(K)),O.fetchers.forEach((K,V)=>{K.data!==void 0&&C.current.set(V,K.data)});let I=n.window==null||typeof n.window.document.startViewTransition!="function";if(!z||I){H?Os(()=>o(O)):g(()=>o(O));return}if(H){Os(()=>{m&&(f&&f.resolve(),m.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:z.currentLocation,nextLocation:z.nextLocation})});let K=n.window.document.startViewTransition(()=>{Os(()=>o(O))});K.finished.finally(()=>{Os(()=>{h(void 0),y(void 0),l(void 0),c({isTransitioning:!1})})}),Os(()=>y(K));return}m?(f&&f.resolve(),m.skipTransition(),_({state:O,currentLocation:z.currentLocation,nextLocation:z.nextLocation})):(l(O),c({isTransitioning:!0,flushSync:!1,currentLocation:z.currentLocation,nextLocation:z.nextLocation}))},[n.window,m,f,C,g]);S.useLayoutEffect(()=>n.subscribe(b),[n,b]),S.useEffect(()=>{u.isTransitioning&&!u.flushSync&&h(new g2)},[u]),S.useEffect(()=>{if(f&&s&&n.window){let O=s,A=f.promise,F=n.window.document.startViewTransition(async()=>{g(()=>o(O)),await A});F.finished.finally(()=>{h(void 0),y(void 0),l(void 0),c({isTransitioning:!1})}),y(F)}},[g,s,f,n.window]),S.useEffect(()=>{f&&s&&i.location.key===s.location.key&&f.resolve()},[f,m,i.location,s]),S.useEffect(()=>{!u.isTransitioning&&x&&(l(x.state),c({isTransitioning:!0,flushSync:!1,currentLocation:x.currentLocation,nextLocation:x.nextLocation}),_(void 0))},[u.isTransitioning,x]),S.useEffect(()=>{},[]);let T=S.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:O=>n.navigate(O),push:(O,A,F)=>n.navigate(O,{state:A,preventScrollReset:F==null?void 0:F.preventScrollReset}),replace:(O,A,F)=>n.navigate(O,{replace:!0,state:A,preventScrollReset:F==null?void 0:F.preventScrollReset})}),[n]),N=n.basename||"/",k=S.useMemo(()=>({router:n,navigator:T,static:!1,basename:N}),[n,T,N]);return S.createElement(S.Fragment,null,S.createElement(Iu.Provider,{value:k},S.createElement(s1.Provider,{value:i},S.createElement(f2.Provider,{value:C.current},S.createElement(d2.Provider,{value:u},S.createElement(t2,{basename:N,location:i.location,navigationType:i.historyAction,navigator:T,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},i.initialized||n.future.v7_partialHydration?S.createElement(y2,{routes:n.routes,future:n.future,state:i}):t))))),null)}function y2(e){let{routes:t,future:n,state:r}=e;return c1(t,void 0,r,n)}const w2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",x2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gu=S.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:l,target:u,to:c,preventScrollReset:f,unstable_viewTransition:h}=t,m=i2(t,a2),{basename:y}=S.useContext(qi),x,_=!1;if(typeof c=="string"&&x2.test(c)&&(x=c,w2))try{let b=new URL(window.location.href),T=c.startsWith("//")?new URL(b.protocol+c):new URL(c),N=es(T.pathname,y);T.origin===b.origin&&N!=null?c=N+T.search+T.hash:_=!0}catch{}let C=FS(c,{relative:i}),v=_2(c,{replace:s,state:l,target:u,preventScrollReset:f,relative:i,unstable_viewTransition:h});function g(b){r&&r(b),b.defaultPrevented||v(b)}return S.createElement("a",ya({},m,{href:x||C,onClick:_||o?r:g,ref:n,target:u}))});var Wg;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Wg||(Wg={}));var Vg;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Vg||(Vg={}));function _2(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:l}=t===void 0?{}:t,u=Tr(),c=Pa(),f=u1(e,{relative:s});return S.useCallback(h=>{if(s2(h,n)){h.preventDefault();let m=r!==void 0?r:Vi(c)===Vi(f);u(e,{replace:m,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:l})}},[c,u,f,r,i,n,e,o,s,l])}var p1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})($v,function(){return function(n){function r(o){if(i[o])return i[o].exports;var s=i[o]={exports:{},id:o,loaded:!1};return n[o].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}var i={};return r.m=n,r.c=i,r.p="dist/",r(0)}([function(n,r,i){function o(V){return V&&V.__esModule?V:{default:V}}var s=Object.assign||function(V){for(var re=1;re0&&arguments[0]!==void 0&&arguments[0];if(V&&(O=!0),O)return k=(0,b.default)(k,A),(0,v.default)(k,A.once),k},H=function(){k=(0,N.default)(),F()},z=function(){k.forEach(function(V,re){V.node.removeAttribute("data-aos"),V.node.removeAttribute("data-aos-easing"),V.node.removeAttribute("data-aos-duration"),V.node.removeAttribute("data-aos-delay")})},I=function(V){return V===!0||V==="mobile"&&_.default.mobile()||V==="phone"&&_.default.phone()||V==="tablet"&&_.default.tablet()||typeof V=="function"&&V()===!0},K=function(V){A=s(A,V),k=(0,N.default)();var re=document.all&&!window.atob;return I(A.disable)||re?z():(A.disableMutationObserver||y.default.isSupported()||(console.info(` aos: MutationObserver is not supported on this browser, code mutations observing has been disabled. You may have to call "refreshHard()" by yourself. @@ -73,8 +73,8 @@ Error generating stack: `+o.message+` * Bootstrap v5.3.2 (https://getbootstrap.com/) * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */(function(e,t){(function(n,r){e.exports=r()})($v,function(){const n=new Map,r={set(p,a,d){n.has(p)||n.set(p,new Map);const w=n.get(p);w.has(a)||w.size===0?w.set(a,d):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(w.keys())[0]}.`)},get:(p,a)=>n.has(p)&&n.get(p).get(a)||null,remove(p,a){if(!n.has(p))return;const d=n.get(p);d.delete(a),d.size===0&&n.delete(p)}},i="transitionend",o=p=>(p&&window.CSS&&window.CSS.escape&&(p=p.replace(/#([^\s"#']+)/g,(a,d)=>`#${CSS.escape(d)}`)),p),s=p=>{p.dispatchEvent(new Event(i))},l=p=>!(!p||typeof p!="object")&&(p.jquery!==void 0&&(p=p[0]),p.nodeType!==void 0),u=p=>l(p)?p.jquery?p[0]:p:typeof p=="string"&&p.length>0?document.querySelector(o(p)):null,c=p=>{if(!l(p)||p.getClientRects().length===0)return!1;const a=getComputedStyle(p).getPropertyValue("visibility")==="visible",d=p.closest("details:not([open])");if(!d)return a;if(d!==p){const w=p.closest("summary");if(w&&w.parentNode!==d||w===null)return!1}return a},f=p=>!p||p.nodeType!==Node.ELEMENT_NODE||!!p.classList.contains("disabled")||(p.disabled!==void 0?p.disabled:p.hasAttribute("disabled")&&p.getAttribute("disabled")!=="false"),h=p=>{if(!document.documentElement.attachShadow)return null;if(typeof p.getRootNode=="function"){const a=p.getRootNode();return a instanceof ShadowRoot?a:null}return p instanceof ShadowRoot?p:p.parentNode?h(p.parentNode):null},m=()=>{},y=p=>{p.offsetHeight},x=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,_=[],C=()=>document.documentElement.dir==="rtl",v=p=>{var a;a=()=>{const d=x();if(d){const w=p.NAME,P=d.fn[w];d.fn[w]=p.jQueryInterface,d.fn[w].Constructor=p,d.fn[w].noConflict=()=>(d.fn[w]=P,p.jQueryInterface)}},document.readyState==="loading"?(_.length||document.addEventListener("DOMContentLoaded",()=>{for(const d of _)d()}),_.push(a)):a()},g=(p,a=[],d=p)=>typeof p=="function"?p(...a):d,b=(p,a,d=!0)=>{if(!d)return void g(p);const w=($=>{if(!$)return 0;let{transitionDuration:B,transitionDelay:Q}=window.getComputedStyle($);const J=Number.parseFloat(B),te=Number.parseFloat(Q);return J||te?(B=B.split(",")[0],Q=Q.split(",")[0],1e3*(Number.parseFloat(B)+Number.parseFloat(Q))):0})(a)+5;let P=!1;const j=({target:$})=>{$===a&&(P=!0,a.removeEventListener(i,j),g(p))};a.addEventListener(i,j),setTimeout(()=>{P||s(a)},w)},T=(p,a,d,w)=>{const P=p.length;let j=p.indexOf(a);return j===-1?!d&&w?p[P-1]:p[0]:(j+=d?1:-1,w&&(j=(j+P)%P),p[Math.max(0,Math.min(j,P-1))])},N=/[^.]*(?=\..*)\.|.*/,k=/\..*/,O=/::\d+$/,A={};let F=1;const H={mouseenter:"mouseover",mouseleave:"mouseout"},z=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function I(p,a){return a&&`${a}::${F++}`||p.uidEvent||F++}function K(p){const a=I(p);return p.uidEvent=a,A[a]=A[a]||{},A[a]}function V(p,a,d=null){return Object.values(p).find(w=>w.callable===a&&w.delegationSelector===d)}function re(p,a,d){const w=typeof a=="string",P=w?d:a||d;let j=q(p);return z.has(j)||(j=p),[w,P,j]}function oe(p,a,d,w,P){if(typeof a!="string"||!p)return;let[j,$,B]=re(a,d,w);a in H&&($=(me=>function(fe){if(!fe.relatedTarget||fe.relatedTarget!==fe.delegateTarget&&!fe.delegateTarget.contains(fe.relatedTarget))return me.call(this,fe)})($));const Q=K(p),J=Q[B]||(Q[B]={}),te=V(J,$,j?d:null);if(te)return void(te.oneOff=te.oneOff&&P);const X=I($,a.replace(N,"")),_e=j?function(ce,me,fe){return function ge(Ve){const Ye=ce.querySelectorAll(me);for(let{target:Ce}=Ve;Ce&&Ce!==this;Ce=Ce.parentNode)for(const Ie of Ye)if(Ie===Ce)return se(Ve,{delegateTarget:Ce}),ge.oneOff&&R.off(ce,Ve.type,me,fe),fe.apply(Ce,[Ve])}}(p,d,$):function(ce,me){return function fe(ge){return se(ge,{delegateTarget:ce}),fe.oneOff&&R.off(ce,ge.type,me),me.apply(ce,[ge])}}(p,$);_e.delegationSelector=j?d:null,_e.callable=$,_e.oneOff=P,_e.uidEvent=X,J[X]=_e,p.addEventListener(B,_e,j)}function ne(p,a,d,w,P){const j=V(a[d],w,P);j&&(p.removeEventListener(d,j,!!P),delete a[d][j.uidEvent])}function U(p,a,d,w){const P=a[d]||{};for(const[j,$]of Object.entries(P))j.includes(w)&&ne(p,a,d,$.callable,$.delegationSelector)}function q(p){return p=p.replace(k,""),H[p]||p}const R={on(p,a,d,w){oe(p,a,d,w,!1)},one(p,a,d,w){oe(p,a,d,w,!0)},off(p,a,d,w){if(typeof a!="string"||!p)return;const[P,j,$]=re(a,d,w),B=$!==a,Q=K(p),J=Q[$]||{},te=a.startsWith(".");if(j===void 0){if(te)for(const X of Object.keys(Q))U(p,Q,X,a.slice(1));for(const[X,_e]of Object.entries(J)){const ce=X.replace(O,"");B&&!a.includes(ce)||ne(p,Q,$,_e.callable,_e.delegationSelector)}}else{if(!Object.keys(J).length)return;ne(p,Q,$,j,P?d:null)}},trigger(p,a,d){if(typeof a!="string"||!p)return null;const w=x();let P=null,j=!0,$=!0,B=!1;a!==q(a)&&w&&(P=w.Event(a,d),w(p).trigger(P),j=!P.isPropagationStopped(),$=!P.isImmediatePropagationStopped(),B=P.isDefaultPrevented());const Q=se(new Event(a,{bubbles:j,cancelable:!0}),d);return B&&Q.preventDefault(),$&&p.dispatchEvent(Q),Q.defaultPrevented&&P&&P.preventDefault(),Q}};function se(p,a={}){for(const[d,w]of Object.entries(a))try{p[d]=w}catch{Object.defineProperty(p,d,{configurable:!0,get:()=>w})}return p}function ve(p){if(p==="true")return!0;if(p==="false")return!1;if(p===Number(p).toString())return Number(p);if(p===""||p==="null")return null;if(typeof p!="string")return p;try{return JSON.parse(decodeURIComponent(p))}catch{return p}}function Re(p){return p.replace(/[A-Z]/g,a=>`-${a.toLowerCase()}`)}const ae={setDataAttribute(p,a,d){p.setAttribute(`data-bs-${Re(a)}`,d)},removeDataAttribute(p,a){p.removeAttribute(`data-bs-${Re(a)}`)},getDataAttributes(p){if(!p)return{};const a={},d=Object.keys(p.dataset).filter(w=>w.startsWith("bs")&&!w.startsWith("bsConfig"));for(const w of d){let P=w.replace(/^bs/,"");P=P.charAt(0).toLowerCase()+P.slice(1,P.length),a[P]=ve(p.dataset[w])}return a},getDataAttribute:(p,a)=>ve(p.getAttribute(`data-bs-${Re(a)}`))};class ye{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(a){return a=this._mergeConfigObj(a),a=this._configAfterMerge(a),this._typeCheckConfig(a),a}_configAfterMerge(a){return a}_mergeConfigObj(a,d){const w=l(d)?ae.getDataAttribute(d,"config"):{};return{...this.constructor.Default,...typeof w=="object"?w:{},...l(d)?ae.getDataAttributes(d):{},...typeof a=="object"?a:{}}}_typeCheckConfig(a,d=this.constructor.DefaultType){for(const[P,j]of Object.entries(d)){const $=a[P],B=l($)?"element":(w=$)==null?`${w}`:Object.prototype.toString.call(w).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(j).test(B))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${P}" provided type "${B}" but expected type "${j}".`)}var w}}class ue extends ye{constructor(a,d){super(),(a=u(a))&&(this._element=a,this._config=this._getConfig(d),r.set(this._element,this.constructor.DATA_KEY,this))}dispose(){r.remove(this._element,this.constructor.DATA_KEY),R.off(this._element,this.constructor.EVENT_KEY);for(const a of Object.getOwnPropertyNames(this))this[a]=null}_queueCallback(a,d,w=!0){b(a,d,w)}_getConfig(a){return a=this._mergeConfigObj(a,this._element),a=this._configAfterMerge(a),this._typeCheckConfig(a),a}static getInstance(a){return r.get(u(a),this.DATA_KEY)}static getOrCreateInstance(a,d={}){return this.getInstance(a)||new this(a,typeof d=="object"?d:null)}static get VERSION(){return"5.3.2"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(a){return`${a}${this.EVENT_KEY}`}}const xe=p=>{let a=p.getAttribute("data-bs-target");if(!a||a==="#"){let d=p.getAttribute("href");if(!d||!d.includes("#")&&!d.startsWith("."))return null;d.includes("#")&&!d.startsWith("#")&&(d=`#${d.split("#")[1]}`),a=d&&d!=="#"?o(d.trim()):null}return a},G={find:(p,a=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(a,p)),findOne:(p,a=document.documentElement)=>Element.prototype.querySelector.call(a,p),children:(p,a)=>[].concat(...p.children).filter(d=>d.matches(a)),parents(p,a){const d=[];let w=p.parentNode.closest(a);for(;w;)d.push(w),w=w.parentNode.closest(a);return d},prev(p,a){let d=p.previousElementSibling;for(;d;){if(d.matches(a))return[d];d=d.previousElementSibling}return[]},next(p,a){let d=p.nextElementSibling;for(;d;){if(d.matches(a))return[d];d=d.nextElementSibling}return[]},focusableChildren(p){const a=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(d=>`${d}:not([tabindex^="-"])`).join(",");return this.find(a,p).filter(d=>!f(d)&&c(d))},getSelectorFromElement(p){const a=xe(p);return a&&G.findOne(a)?a:null},getElementFromSelector(p){const a=xe(p);return a?G.findOne(a):null},getMultipleElementsFromSelector(p){const a=xe(p);return a?G.find(a):[]}},We=(p,a="hide")=>{const d=`click.dismiss${p.EVENT_KEY}`,w=p.NAME;R.on(document,d,`[data-bs-dismiss="${w}"]`,function(P){if(["A","AREA"].includes(this.tagName)&&P.preventDefault(),f(this))return;const j=G.getElementFromSelector(this)||this.closest(`.${w}`);p.getOrCreateInstance(j)[a]()})},mt=".bs.alert",Te=`close${mt}`,xt=`closed${mt}`;class je extends ue{static get NAME(){return"alert"}close(){if(R.trigger(this._element,Te).defaultPrevented)return;this._element.classList.remove("show");const a=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,a)}_destroyElement(){this._element.remove(),R.trigger(this._element,xt),this.dispose()}static jQueryInterface(a){return this.each(function(){const d=je.getOrCreateInstance(this);if(typeof a=="string"){if(d[a]===void 0||a.startsWith("_")||a==="constructor")throw new TypeError(`No method named "${a}"`);d[a](this)}})}}We(je,"close"),v(je);const Ne='[data-bs-toggle="button"]';class ze extends ue{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(a){return this.each(function(){const d=ze.getOrCreateInstance(this);a==="toggle"&&d[a]()})}}R.on(document,"click.bs.button.data-api",Ne,p=>{p.preventDefault();const a=p.target.closest(Ne);ze.getOrCreateInstance(a).toggle()}),v(ze);const gt=".bs.swipe",cr=`touchstart${gt}`,is=`touchmove${gt}`,os=`touchend${gt}`,Dn=`pointerdown${gt}`,vn=`pointerup${gt}`,ci={endCallback:null,leftCallback:null,rightCallback:null},Pr={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Ot extends ye{constructor(a,d){super(),this._element=a,a&&Ot.isSupported()&&(this._config=this._getConfig(d),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return ci}static get DefaultType(){return Pr}static get NAME(){return"swipe"}dispose(){R.off(this._element,gt)}_start(a){this._supportPointerEvents?this._eventIsPointerPenTouch(a)&&(this._deltaX=a.clientX):this._deltaX=a.touches[0].clientX}_end(a){this._eventIsPointerPenTouch(a)&&(this._deltaX=a.clientX-this._deltaX),this._handleSwipe(),g(this._config.endCallback)}_move(a){this._deltaX=a.touches&&a.touches.length>1?0:a.touches[0].clientX-this._deltaX}_handleSwipe(){const a=Math.abs(this._deltaX);if(a<=40)return;const d=a/this._deltaX;this._deltaX=0,d&&g(d>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(R.on(this._element,Dn,a=>this._start(a)),R.on(this._element,vn,a=>this._end(a)),this._element.classList.add("pointer-event")):(R.on(this._element,cr,a=>this._start(a)),R.on(this._element,is,a=>this._move(a)),R.on(this._element,os,a=>this._end(a)))}_eventIsPointerPenTouch(a){return this._supportPointerEvents&&(a.pointerType==="pen"||a.pointerType==="touch")}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Pt=".bs.carousel",jr=".data-api",rn="next",$n="prev",It="left",di="right",$a=`slide${Pt}`,Xi=`slid${Pt}`,Ju=`keydown${Pt}`,Ma=`mouseenter${Pt}`,Zi=`mouseleave${Pt}`,Ia=`dragstart${Pt}`,ss=`load${Pt}${jr}`,ec=`click${Pt}${jr}`,as="carousel",Ji="active",ls=".active",za=".carousel-item",L=ls+za,D={ArrowLeft:di,ArrowRight:It},M={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Y={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Z extends ue{constructor(a,d){super(a,d),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=G.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===as&&this.cycle()}static get Default(){return M}static get DefaultType(){return Y}static get NAME(){return"carousel"}next(){this._slide(rn)}nextWhenVisible(){!document.hidden&&c(this._element)&&this.next()}prev(){this._slide($n)}pause(){this._isSliding&&s(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?R.one(this._element,Xi,()=>this.cycle()):this.cycle())}to(a){const d=this._getItems();if(a>d.length-1||a<0)return;if(this._isSliding)return void R.one(this._element,Xi,()=>this.to(a));const w=this._getItemIndex(this._getActive());if(w===a)return;const P=a>w?rn:$n;this._slide(P,d[a])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(a){return a.defaultInterval=a.interval,a}_addEventListeners(){this._config.keyboard&&R.on(this._element,Ju,a=>this._keydown(a)),this._config.pause==="hover"&&(R.on(this._element,Ma,()=>this.pause()),R.on(this._element,Zi,()=>this._maybeEnableCycle())),this._config.touch&&Ot.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const d of G.find(".carousel-item img",this._element))R.on(d,Ia,w=>w.preventDefault());const a={leftCallback:()=>this._slide(this._directionToOrder(It)),rightCallback:()=>this._slide(this._directionToOrder(di)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new Ot(this._element,a)}_keydown(a){if(/input|textarea/i.test(a.target.tagName))return;const d=D[a.key];d&&(a.preventDefault(),this._slide(this._directionToOrder(d)))}_getItemIndex(a){return this._getItems().indexOf(a)}_setActiveIndicatorElement(a){if(!this._indicatorsElement)return;const d=G.findOne(ls,this._indicatorsElement);d.classList.remove(Ji),d.removeAttribute("aria-current");const w=G.findOne(`[data-bs-slide-to="${a}"]`,this._indicatorsElement);w&&(w.classList.add(Ji),w.setAttribute("aria-current","true"))}_updateInterval(){const a=this._activeElement||this._getActive();if(!a)return;const d=Number.parseInt(a.getAttribute("data-bs-interval"),10);this._config.interval=d||this._config.defaultInterval}_slide(a,d=null){if(this._isSliding)return;const w=this._getActive(),P=a===rn,j=d||T(this._getItems(),w,P,this._config.wrap);if(j===w)return;const $=this._getItemIndex(j),B=X=>R.trigger(this._element,X,{relatedTarget:j,direction:this._orderToDirection(a),from:this._getItemIndex(w),to:$});if(B($a).defaultPrevented||!w||!j)return;const Q=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement($),this._activeElement=j;const J=P?"carousel-item-start":"carousel-item-end",te=P?"carousel-item-next":"carousel-item-prev";j.classList.add(te),y(j),w.classList.add(J),j.classList.add(J),this._queueCallback(()=>{j.classList.remove(J,te),j.classList.add(Ji),w.classList.remove(Ji,te,J),this._isSliding=!1,B(Xi)},w,this._isAnimated()),Q&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return G.findOne(L,this._element)}_getItems(){return G.find(za,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(a){return C()?a===It?$n:rn:a===It?rn:$n}_orderToDirection(a){return C()?a===$n?It:di:a===$n?di:It}static jQueryInterface(a){return this.each(function(){const d=Z.getOrCreateInstance(this,a);if(typeof a!="number"){if(typeof a=="string"){if(d[a]===void 0||a.startsWith("_")||a==="constructor")throw new TypeError(`No method named "${a}"`);d[a]()}}else d.to(a)})}}R.on(document,ec,"[data-bs-slide], [data-bs-slide-to]",function(p){const a=G.getElementFromSelector(this);if(!a||!a.classList.contains(as))return;p.preventDefault();const d=Z.getOrCreateInstance(a),w=this.getAttribute("data-bs-slide-to");return w?(d.to(w),void d._maybeEnableCycle()):ae.getDataAttribute(this,"slide")==="next"?(d.next(),void d._maybeEnableCycle()):(d.prev(),void d._maybeEnableCycle())}),R.on(window,ss,()=>{const p=G.find('[data-bs-ride="carousel"]');for(const a of p)Z.getOrCreateInstance(a)}),v(Z);const pe=".bs.collapse",de=`show${pe}`,le=`shown${pe}`,ie=`hide${pe}`,Oe=`hidden${pe}`,vt=`click${pe}.data-api`,he="show",De="collapse",ot="collapsing",Vt=`:scope .${De} .${De}`,st='[data-bs-toggle="collapse"]',Nr={parent:null,toggle:!0},us={parent:"(null|element)",toggle:"boolean"};class on extends ue{constructor(a,d){super(a,d),this._isTransitioning=!1,this._triggerArray=[];const w=G.find(st);for(const P of w){const j=G.getSelectorFromElement(P),$=G.find(j).filter(B=>B===this._element);j!==null&&$.length&&this._triggerArray.push(P)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Nr}static get DefaultType(){return us}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let a=[];if(this._config.parent&&(a=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(P=>P!==this._element).map(P=>on.getOrCreateInstance(P,{toggle:!1}))),a.length&&a[0]._isTransitioning||R.trigger(this._element,de).defaultPrevented)return;for(const P of a)P.hide();const d=this._getDimension();this._element.classList.remove(De),this._element.classList.add(ot),this._element.style[d]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const w=`scroll${d[0].toUpperCase()+d.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ot),this._element.classList.add(De,he),this._element.style[d]="",R.trigger(this._element,le)},this._element,!0),this._element.style[d]=`${this._element[w]}px`}hide(){if(this._isTransitioning||!this._isShown()||R.trigger(this._element,ie).defaultPrevented)return;const a=this._getDimension();this._element.style[a]=`${this._element.getBoundingClientRect()[a]}px`,y(this._element),this._element.classList.add(ot),this._element.classList.remove(De,he);for(const d of this._triggerArray){const w=G.getElementFromSelector(d);w&&!this._isShown(w)&&this._addAriaAndCollapsedClass([d],!1)}this._isTransitioning=!0,this._element.style[a]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ot),this._element.classList.add(De),R.trigger(this._element,Oe)},this._element,!0)}_isShown(a=this._element){return a.classList.contains(he)}_configAfterMerge(a){return a.toggle=!!a.toggle,a.parent=u(a.parent),a}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const a=this._getFirstLevelChildren(st);for(const d of a){const w=G.getElementFromSelector(d);w&&this._addAriaAndCollapsedClass([d],this._isShown(w))}}_getFirstLevelChildren(a){const d=G.find(Vt,this._config.parent);return G.find(a,this._config.parent).filter(w=>!d.includes(w))}_addAriaAndCollapsedClass(a,d){if(a.length)for(const w of a)w.classList.toggle("collapsed",!d),w.setAttribute("aria-expanded",d)}static jQueryInterface(a){const d={};return typeof a=="string"&&/show|hide/.test(a)&&(d.toggle=!1),this.each(function(){const w=on.getOrCreateInstance(this,d);if(typeof a=="string"){if(w[a]===void 0)throw new TypeError(`No method named "${a}"`);w[a]()}})}}R.on(document,vt,st,function(p){(p.target.tagName==="A"||p.delegateTarget&&p.delegateTarget.tagName==="A")&&p.preventDefault();for(const a of G.getMultipleElementsFromSelector(this))on.getOrCreateInstance(a,{toggle:!1}).toggle()}),v(on);var et="top",dt="bottom",jt="right",_t="left",Lr="auto",sn=[et,dt,jt,_t],yn="start",Ae="end",Ke="clippingParents",Gt="viewport",Mn="popper",Fa="reference",tc=sn.reduce(function(p,a){return p.concat([a+"-"+yn,a+"-"+Ae])},[]),nc=[].concat(sn,[Lr]).reduce(function(p,a){return p.concat([a,a+"-"+yn,a+"-"+Ae])},[]),Qp="beforeRead",Yp="read",qp="afterRead",Xp="beforeMain",Zp="main",Jp="afterMain",eh="beforeWrite",th="write",nh="afterWrite",rh=[Qp,Yp,qp,Xp,Zp,Jp,eh,th,nh];function qn(p){return p?(p.nodeName||"").toLowerCase():null}function an(p){if(p==null)return window;if(p.toString()!=="[object Window]"){var a=p.ownerDocument;return a&&a.defaultView||window}return p}function fi(p){return p instanceof an(p).Element||p instanceof Element}function wn(p){return p instanceof an(p).HTMLElement||p instanceof HTMLElement}function rc(p){return typeof ShadowRoot<"u"&&(p instanceof an(p).ShadowRoot||p instanceof ShadowRoot)}const ic={name:"applyStyles",enabled:!0,phase:"write",fn:function(p){var a=p.state;Object.keys(a.elements).forEach(function(d){var w=a.styles[d]||{},P=a.attributes[d]||{},j=a.elements[d];wn(j)&&qn(j)&&(Object.assign(j.style,w),Object.keys(P).forEach(function($){var B=P[$];B===!1?j.removeAttribute($):j.setAttribute($,B===!0?"":B)}))})},effect:function(p){var a=p.state,d={popper:{position:a.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(a.elements.popper.style,d.popper),a.styles=d,a.elements.arrow&&Object.assign(a.elements.arrow.style,d.arrow),function(){Object.keys(a.elements).forEach(function(w){var P=a.elements[w],j=a.attributes[w]||{},$=Object.keys(a.styles.hasOwnProperty(w)?a.styles[w]:d[w]).reduce(function(B,Q){return B[Q]="",B},{});wn(P)&&qn(P)&&(Object.assign(P.style,$),Object.keys(j).forEach(function(B){P.removeAttribute(B)}))})}},requires:["computeStyles"]};function Xn(p){return p.split("-")[0]}var pi=Math.max,Ba=Math.min,eo=Math.round;function oc(){var p=navigator.userAgentData;return p!=null&&p.brands&&Array.isArray(p.brands)?p.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}function ih(){return!/^((?!chrome|android).)*safari/i.test(oc())}function to(p,a,d){a===void 0&&(a=!1),d===void 0&&(d=!1);var w=p.getBoundingClientRect(),P=1,j=1;a&&wn(p)&&(P=p.offsetWidth>0&&eo(w.width)/p.offsetWidth||1,j=p.offsetHeight>0&&eo(w.height)/p.offsetHeight||1);var $=(fi(p)?an(p):window).visualViewport,B=!ih()&&d,Q=(w.left+(B&&$?$.offsetLeft:0))/P,J=(w.top+(B&&$?$.offsetTop:0))/j,te=w.width/P,X=w.height/j;return{width:te,height:X,top:J,right:Q+te,bottom:J+X,left:Q,x:Q,y:J}}function sc(p){var a=to(p),d=p.offsetWidth,w=p.offsetHeight;return Math.abs(a.width-d)<=1&&(d=a.width),Math.abs(a.height-w)<=1&&(w=a.height),{x:p.offsetLeft,y:p.offsetTop,width:d,height:w}}function oh(p,a){var d=a.getRootNode&&a.getRootNode();if(p.contains(a))return!0;if(d&&rc(d)){var w=a;do{if(w&&p.isSameNode(w))return!0;w=w.parentNode||w.host}while(w)}return!1}function dr(p){return an(p).getComputedStyle(p)}function $w(p){return["table","td","th"].indexOf(qn(p))>=0}function Rr(p){return((fi(p)?p.ownerDocument:p.document)||window.document).documentElement}function Ua(p){return qn(p)==="html"?p:p.assignedSlot||p.parentNode||(rc(p)?p.host:null)||Rr(p)}function sh(p){return wn(p)&&dr(p).position!=="fixed"?p.offsetParent:null}function cs(p){for(var a=an(p),d=sh(p);d&&$w(d)&&dr(d).position==="static";)d=sh(d);return d&&(qn(d)==="html"||qn(d)==="body"&&dr(d).position==="static")?a:d||function(w){var P=/firefox/i.test(oc());if(/Trident/i.test(oc())&&wn(w)&&dr(w).position==="fixed")return null;var j=Ua(w);for(rc(j)&&(j=j.host);wn(j)&&["html","body"].indexOf(qn(j))<0;){var $=dr(j);if($.transform!=="none"||$.perspective!=="none"||$.contain==="paint"||["transform","perspective"].indexOf($.willChange)!==-1||P&&$.willChange==="filter"||P&&$.filter&&$.filter!=="none")return j;j=j.parentNode}return null}(p)||a}function ac(p){return["top","bottom"].indexOf(p)>=0?"x":"y"}function ds(p,a,d){return pi(p,Ba(a,d))}function ah(p){return Object.assign({},{top:0,right:0,bottom:0,left:0},p)}function lh(p,a){return a.reduce(function(d,w){return d[w]=p,d},{})}const uh={name:"arrow",enabled:!0,phase:"main",fn:function(p){var a,d=p.state,w=p.name,P=p.options,j=d.elements.arrow,$=d.modifiersData.popperOffsets,B=Xn(d.placement),Q=ac(B),J=[_t,jt].indexOf(B)>=0?"height":"width";if(j&&$){var te=function(Ge,Ue){return ah(typeof(Ge=typeof Ge=="function"?Ge(Object.assign({},Ue.rects,{placement:Ue.placement})):Ge)!="number"?Ge:lh(Ge,sn))}(P.padding,d),X=sc(j),_e=Q==="y"?et:_t,ce=Q==="y"?dt:jt,me=d.rects.reference[J]+d.rects.reference[Q]-$[Q]-d.rects.popper[J],fe=$[Q]-d.rects.reference[Q],ge=cs(j),Ve=ge?Q==="y"?ge.clientHeight||0:ge.clientWidth||0:0,Ye=me/2-fe/2,Ce=te[_e],Ie=Ve-X[J]-te[ce],Ee=Ve/2-X[J]/2+Ye,Le=ds(Ce,Ee,Ie),Be=Q;d.modifiersData[w]=((a={})[Be]=Le,a.centerOffset=Le-Ee,a)}},effect:function(p){var a=p.state,d=p.options.element,w=d===void 0?"[data-popper-arrow]":d;w!=null&&(typeof w!="string"||(w=a.elements.popper.querySelector(w)))&&oh(a.elements.popper,w)&&(a.elements.arrow=w)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function no(p){return p.split("-")[1]}var Mw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ch(p){var a,d=p.popper,w=p.popperRect,P=p.placement,j=p.variation,$=p.offsets,B=p.position,Q=p.gpuAcceleration,J=p.adaptive,te=p.roundOffsets,X=p.isFixed,_e=$.x,ce=_e===void 0?0:_e,me=$.y,fe=me===void 0?0:me,ge=typeof te=="function"?te({x:ce,y:fe}):{x:ce,y:fe};ce=ge.x,fe=ge.y;var Ve=$.hasOwnProperty("x"),Ye=$.hasOwnProperty("y"),Ce=_t,Ie=et,Ee=window;if(J){var Le=cs(d),Be="clientHeight",Ge="clientWidth";Le===an(d)&&dr(Le=Rr(d)).position!=="static"&&B==="absolute"&&(Be="scrollHeight",Ge="scrollWidth"),(P===et||(P===_t||P===jt)&&j===Ae)&&(Ie=dt,fe-=(X&&Le===Ee&&Ee.visualViewport?Ee.visualViewport.height:Le[Be])-w.height,fe*=Q?1:-1),P!==_t&&(P!==et&&P!==dt||j!==Ae)||(Ce=jt,ce-=(X&&Le===Ee&&Ee.visualViewport?Ee.visualViewport.width:Le[Ge])-w.width,ce*=Q?1:-1)}var Ue,ft=Object.assign({position:B},J&&Mw),ln=te===!0?function(zn,zt){var _n=zn.x,En=zn.y,at=zt.devicePixelRatio||1;return{x:eo(_n*at)/at||0,y:eo(En*at)/at||0}}({x:ce,y:fe},an(d)):{x:ce,y:fe};return ce=ln.x,fe=ln.y,Q?Object.assign({},ft,((Ue={})[Ie]=Ye?"0":"",Ue[Ce]=Ve?"0":"",Ue.transform=(Ee.devicePixelRatio||1)<=1?"translate("+ce+"px, "+fe+"px)":"translate3d("+ce+"px, "+fe+"px, 0)",Ue)):Object.assign({},ft,((a={})[Ie]=Ye?fe+"px":"",a[Ce]=Ve?ce+"px":"",a.transform="",a))}const lc={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(p){var a=p.state,d=p.options,w=d.gpuAcceleration,P=w===void 0||w,j=d.adaptive,$=j===void 0||j,B=d.roundOffsets,Q=B===void 0||B,J={placement:Xn(a.placement),variation:no(a.placement),popper:a.elements.popper,popperRect:a.rects.popper,gpuAcceleration:P,isFixed:a.options.strategy==="fixed"};a.modifiersData.popperOffsets!=null&&(a.styles.popper=Object.assign({},a.styles.popper,ch(Object.assign({},J,{offsets:a.modifiersData.popperOffsets,position:a.options.strategy,adaptive:$,roundOffsets:Q})))),a.modifiersData.arrow!=null&&(a.styles.arrow=Object.assign({},a.styles.arrow,ch(Object.assign({},J,{offsets:a.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Q})))),a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-placement":a.placement})},data:{}};var Ha={passive:!0};const uc={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(p){var a=p.state,d=p.instance,w=p.options,P=w.scroll,j=P===void 0||P,$=w.resize,B=$===void 0||$,Q=an(a.elements.popper),J=[].concat(a.scrollParents.reference,a.scrollParents.popper);return j&&J.forEach(function(te){te.addEventListener("scroll",d.update,Ha)}),B&&Q.addEventListener("resize",d.update,Ha),function(){j&&J.forEach(function(te){te.removeEventListener("scroll",d.update,Ha)}),B&&Q.removeEventListener("resize",d.update,Ha)}},data:{}};var Iw={left:"right",right:"left",bottom:"top",top:"bottom"};function Wa(p){return p.replace(/left|right|bottom|top/g,function(a){return Iw[a]})}var zw={start:"end",end:"start"};function dh(p){return p.replace(/start|end/g,function(a){return zw[a]})}function cc(p){var a=an(p);return{scrollLeft:a.pageXOffset,scrollTop:a.pageYOffset}}function dc(p){return to(Rr(p)).left+cc(p).scrollLeft}function fc(p){var a=dr(p),d=a.overflow,w=a.overflowX,P=a.overflowY;return/auto|scroll|overlay|hidden/.test(d+P+w)}function fh(p){return["html","body","#document"].indexOf(qn(p))>=0?p.ownerDocument.body:wn(p)&&fc(p)?p:fh(Ua(p))}function fs(p,a){var d;a===void 0&&(a=[]);var w=fh(p),P=w===((d=p.ownerDocument)==null?void 0:d.body),j=an(w),$=P?[j].concat(j.visualViewport||[],fc(w)?w:[]):w,B=a.concat($);return P?B:B.concat(fs(Ua($)))}function pc(p){return Object.assign({},p,{left:p.x,top:p.y,right:p.x+p.width,bottom:p.y+p.height})}function ph(p,a,d){return a===Gt?pc(function(w,P){var j=an(w),$=Rr(w),B=j.visualViewport,Q=$.clientWidth,J=$.clientHeight,te=0,X=0;if(B){Q=B.width,J=B.height;var _e=ih();(_e||!_e&&P==="fixed")&&(te=B.offsetLeft,X=B.offsetTop)}return{width:Q,height:J,x:te+dc(w),y:X}}(p,d)):fi(a)?function(w,P){var j=to(w,!1,P==="fixed");return j.top=j.top+w.clientTop,j.left=j.left+w.clientLeft,j.bottom=j.top+w.clientHeight,j.right=j.left+w.clientWidth,j.width=w.clientWidth,j.height=w.clientHeight,j.x=j.left,j.y=j.top,j}(a,d):pc(function(w){var P,j=Rr(w),$=cc(w),B=(P=w.ownerDocument)==null?void 0:P.body,Q=pi(j.scrollWidth,j.clientWidth,B?B.scrollWidth:0,B?B.clientWidth:0),J=pi(j.scrollHeight,j.clientHeight,B?B.scrollHeight:0,B?B.clientHeight:0),te=-$.scrollLeft+dc(w),X=-$.scrollTop;return dr(B||j).direction==="rtl"&&(te+=pi(j.clientWidth,B?B.clientWidth:0)-Q),{width:Q,height:J,x:te,y:X}}(Rr(p)))}function hh(p){var a,d=p.reference,w=p.element,P=p.placement,j=P?Xn(P):null,$=P?no(P):null,B=d.x+d.width/2-w.width/2,Q=d.y+d.height/2-w.height/2;switch(j){case et:a={x:B,y:d.y-w.height};break;case dt:a={x:B,y:d.y+d.height};break;case jt:a={x:d.x+d.width,y:Q};break;case _t:a={x:d.x-w.width,y:Q};break;default:a={x:d.x,y:d.y}}var J=j?ac(j):null;if(J!=null){var te=J==="y"?"height":"width";switch($){case yn:a[J]=a[J]-(d[te]/2-w[te]/2);break;case Ae:a[J]=a[J]+(d[te]/2-w[te]/2)}}return a}function ro(p,a){a===void 0&&(a={});var d=a,w=d.placement,P=w===void 0?p.placement:w,j=d.strategy,$=j===void 0?p.strategy:j,B=d.boundary,Q=B===void 0?Ke:B,J=d.rootBoundary,te=J===void 0?Gt:J,X=d.elementContext,_e=X===void 0?Mn:X,ce=d.altBoundary,me=ce!==void 0&&ce,fe=d.padding,ge=fe===void 0?0:fe,Ve=ah(typeof ge!="number"?ge:lh(ge,sn)),Ye=_e===Mn?Fa:Mn,Ce=p.rects.popper,Ie=p.elements[me?Ye:_e],Ee=function(zt,_n,En,at){var Zn=_n==="clippingParents"?function(Qe){var Ft=fs(Ua(Qe)),bn=["absolute","fixed"].indexOf(dr(Qe).position)>=0&&wn(Qe)?cs(Qe):Qe;return fi(bn)?Ft.filter(function(Dr){return fi(Dr)&&oh(Dr,bn)&&qn(Dr)!=="body"}):[]}(zt):[].concat(_n),Jn=[].concat(Zn,[En]),so=Jn[0],St=Jn.reduce(function(Qe,Ft){var bn=ph(zt,Ft,at);return Qe.top=pi(bn.top,Qe.top),Qe.right=Ba(bn.right,Qe.right),Qe.bottom=Ba(bn.bottom,Qe.bottom),Qe.left=pi(bn.left,Qe.left),Qe},ph(zt,so,at));return St.width=St.right-St.left,St.height=St.bottom-St.top,St.x=St.left,St.y=St.top,St}(fi(Ie)?Ie:Ie.contextElement||Rr(p.elements.popper),Q,te,$),Le=to(p.elements.reference),Be=hh({reference:Le,element:Ce,strategy:"absolute",placement:P}),Ge=pc(Object.assign({},Ce,Be)),Ue=_e===Mn?Ge:Le,ft={top:Ee.top-Ue.top+Ve.top,bottom:Ue.bottom-Ee.bottom+Ve.bottom,left:Ee.left-Ue.left+Ve.left,right:Ue.right-Ee.right+Ve.right},ln=p.modifiersData.offset;if(_e===Mn&&ln){var zn=ln[P];Object.keys(ft).forEach(function(zt){var _n=[jt,dt].indexOf(zt)>=0?1:-1,En=[et,dt].indexOf(zt)>=0?"y":"x";ft[zt]+=zn[En]*_n})}return ft}function Fw(p,a){a===void 0&&(a={});var d=a,w=d.placement,P=d.boundary,j=d.rootBoundary,$=d.padding,B=d.flipVariations,Q=d.allowedAutoPlacements,J=Q===void 0?nc:Q,te=no(w),X=te?B?tc:tc.filter(function(me){return no(me)===te}):sn,_e=X.filter(function(me){return J.indexOf(me)>=0});_e.length===0&&(_e=X);var ce=_e.reduce(function(me,fe){return me[fe]=ro(p,{placement:fe,boundary:P,rootBoundary:j,padding:$})[Xn(fe)],me},{});return Object.keys(ce).sort(function(me,fe){return ce[me]-ce[fe]})}const mh={name:"flip",enabled:!0,phase:"main",fn:function(p){var a=p.state,d=p.options,w=p.name;if(!a.modifiersData[w]._skip){for(var P=d.mainAxis,j=P===void 0||P,$=d.altAxis,B=$===void 0||$,Q=d.fallbackPlacements,J=d.padding,te=d.boundary,X=d.rootBoundary,_e=d.altBoundary,ce=d.flipVariations,me=ce===void 0||ce,fe=d.allowedAutoPlacements,ge=a.options.placement,Ve=Xn(ge),Ye=Q||(Ve!==ge&&me?function(Qe){if(Xn(Qe)===Lr)return[];var Ft=Wa(Qe);return[dh(Qe),Ft,dh(Ft)]}(ge):[Wa(ge)]),Ce=[ge].concat(Ye).reduce(function(Qe,Ft){return Qe.concat(Xn(Ft)===Lr?Fw(a,{placement:Ft,boundary:te,rootBoundary:X,padding:J,flipVariations:me,allowedAutoPlacements:fe}):Ft)},[]),Ie=a.rects.reference,Ee=a.rects.popper,Le=new Map,Be=!0,Ge=Ce[0],Ue=0;Ue=0,_n=zt?"width":"height",En=ro(a,{placement:ft,boundary:te,rootBoundary:X,altBoundary:_e,padding:J}),at=zt?zn?jt:_t:zn?dt:et;Ie[_n]>Ee[_n]&&(at=Wa(at));var Zn=Wa(at),Jn=[];if(j&&Jn.push(En[ln]<=0),B&&Jn.push(En[at]<=0,En[Zn]<=0),Jn.every(function(Qe){return Qe})){Ge=ft,Be=!1;break}Le.set(ft,Jn)}if(Be)for(var so=function(Qe){var Ft=Ce.find(function(bn){var Dr=Le.get(bn);if(Dr)return Dr.slice(0,Qe).every(function(Ja){return Ja})});if(Ft)return Ge=Ft,"break"},St=me?3:1;St>0&&so(St)!=="break";St--);a.placement!==Ge&&(a.modifiersData[w]._skip=!0,a.placement=Ge,a.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function gh(p,a,d){return d===void 0&&(d={x:0,y:0}),{top:p.top-a.height-d.y,right:p.right-a.width+d.x,bottom:p.bottom-a.height+d.y,left:p.left-a.width-d.x}}function vh(p){return[et,jt,dt,_t].some(function(a){return p[a]>=0})}const yh={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(p){var a=p.state,d=p.name,w=a.rects.reference,P=a.rects.popper,j=a.modifiersData.preventOverflow,$=ro(a,{elementContext:"reference"}),B=ro(a,{altBoundary:!0}),Q=gh($,w),J=gh(B,P,j),te=vh(Q),X=vh(J);a.modifiersData[d]={referenceClippingOffsets:Q,popperEscapeOffsets:J,isReferenceHidden:te,hasPopperEscaped:X},a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-reference-hidden":te,"data-popper-escaped":X})}},wh={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(p){var a=p.state,d=p.options,w=p.name,P=d.offset,j=P===void 0?[0,0]:P,$=nc.reduce(function(te,X){return te[X]=function(_e,ce,me){var fe=Xn(_e),ge=[_t,et].indexOf(fe)>=0?-1:1,Ve=typeof me=="function"?me(Object.assign({},ce,{placement:_e})):me,Ye=Ve[0],Ce=Ve[1];return Ye=Ye||0,Ce=(Ce||0)*ge,[_t,jt].indexOf(fe)>=0?{x:Ce,y:Ye}:{x:Ye,y:Ce}}(X,a.rects,j),te},{}),B=$[a.placement],Q=B.x,J=B.y;a.modifiersData.popperOffsets!=null&&(a.modifiersData.popperOffsets.x+=Q,a.modifiersData.popperOffsets.y+=J),a.modifiersData[w]=$}},hc={name:"popperOffsets",enabled:!0,phase:"read",fn:function(p){var a=p.state,d=p.name;a.modifiersData[d]=hh({reference:a.rects.reference,element:a.rects.popper,strategy:"absolute",placement:a.placement})},data:{}},xh={name:"preventOverflow",enabled:!0,phase:"main",fn:function(p){var a=p.state,d=p.options,w=p.name,P=d.mainAxis,j=P===void 0||P,$=d.altAxis,B=$!==void 0&&$,Q=d.boundary,J=d.rootBoundary,te=d.altBoundary,X=d.padding,_e=d.tether,ce=_e===void 0||_e,me=d.tetherOffset,fe=me===void 0?0:me,ge=ro(a,{boundary:Q,rootBoundary:J,padding:X,altBoundary:te}),Ve=Xn(a.placement),Ye=no(a.placement),Ce=!Ye,Ie=ac(Ve),Ee=Ie==="x"?"y":"x",Le=a.modifiersData.popperOffsets,Be=a.rects.reference,Ge=a.rects.popper,Ue=typeof fe=="function"?fe(Object.assign({},a.rects,{placement:a.placement})):fe,ft=typeof Ue=="number"?{mainAxis:Ue,altAxis:Ue}:Object.assign({mainAxis:0,altAxis:0},Ue),ln=a.modifiersData.offset?a.modifiersData.offset[a.placement]:null,zn={x:0,y:0};if(Le){if(j){var zt,_n=Ie==="y"?et:_t,En=Ie==="y"?dt:jt,at=Ie==="y"?"height":"width",Zn=Le[Ie],Jn=Zn+ge[_n],so=Zn-ge[En],St=ce?-Ge[at]/2:0,Qe=Ye===yn?Be[at]:Ge[at],Ft=Ye===yn?-Ge[at]:-Be[at],bn=a.elements.arrow,Dr=ce&&bn?sc(bn):{width:0,height:0},Ja=a.modifiersData["arrow#persistent"]?a.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},sm=Ja[_n],am=Ja[En],el=ds(0,Be[at],Dr[at]),m_=Ce?Be[at]/2-St-el-sm-ft.mainAxis:Qe-el-sm-ft.mainAxis,g_=Ce?-Be[at]/2+St+el+am+ft.mainAxis:Ft+el+am+ft.mainAxis,Tc=a.elements.arrow&&cs(a.elements.arrow),v_=Tc?Ie==="y"?Tc.clientTop||0:Tc.clientLeft||0:0,lm=(zt=ln==null?void 0:ln[Ie])!=null?zt:0,y_=Zn+g_-lm,um=ds(ce?Ba(Jn,Zn+m_-lm-v_):Jn,Zn,ce?pi(so,y_):so);Le[Ie]=um,zn[Ie]=um-Zn}if(B){var cm,w_=Ie==="x"?et:_t,x_=Ie==="x"?dt:jt,_i=Le[Ee],tl=Ee==="y"?"height":"width",dm=_i+ge[w_],fm=_i-ge[x_],Oc=[et,_t].indexOf(Ve)!==-1,pm=(cm=ln==null?void 0:ln[Ee])!=null?cm:0,hm=Oc?dm:_i-Be[tl]-Ge[tl]-pm+ft.altAxis,mm=Oc?_i+Be[tl]+Ge[tl]-pm-ft.altAxis:fm,gm=ce&&Oc?function(__,E_,Pc){var vm=ds(__,E_,Pc);return vm>Pc?Pc:vm}(hm,_i,mm):ds(ce?hm:dm,_i,ce?mm:fm);Le[Ee]=gm,zn[Ee]=gm-_i}a.modifiersData[w]=zn}},requiresIfExists:["offset"]};function Bw(p,a,d){d===void 0&&(d=!1);var w,P,j=wn(a),$=wn(a)&&function(X){var _e=X.getBoundingClientRect(),ce=eo(_e.width)/X.offsetWidth||1,me=eo(_e.height)/X.offsetHeight||1;return ce!==1||me!==1}(a),B=Rr(a),Q=to(p,$,d),J={scrollLeft:0,scrollTop:0},te={x:0,y:0};return(j||!j&&!d)&&((qn(a)!=="body"||fc(B))&&(J=(w=a)!==an(w)&&wn(w)?{scrollLeft:(P=w).scrollLeft,scrollTop:P.scrollTop}:cc(w)),wn(a)?((te=to(a,!0)).x+=a.clientLeft,te.y+=a.clientTop):B&&(te.x=dc(B))),{x:Q.left+J.scrollLeft-te.x,y:Q.top+J.scrollTop-te.y,width:Q.width,height:Q.height}}function Uw(p){var a=new Map,d=new Set,w=[];function P(j){d.add(j.name),[].concat(j.requires||[],j.requiresIfExists||[]).forEach(function($){if(!d.has($)){var B=a.get($);B&&P(B)}}),w.push(j)}return p.forEach(function(j){a.set(j.name,j)}),p.forEach(function(j){d.has(j.name)||P(j)}),w}var _h={placement:"bottom",modifiers:[],strategy:"absolute"};function Eh(){for(var p=arguments.length,a=new Array(p),d=0;dNumber.parseInt(d,10)):typeof a=="function"?d=>a(d,this._element):a}_getPopperConfig(){const a={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(ae.setDataAttribute(this._menu,"popper","static"),a.modifiers=[{name:"applyStyles",enabled:!1}]),{...a,...g(this._config.popperConfig,[a])}}_selectMenuItem({key:a,target:d}){const w=G.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(P=>c(P));w.length&&T(w,d,a===kh,!w.includes(d)).focus()}static jQueryInterface(a){return this.each(function(){const d=In.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0)throw new TypeError(`No method named "${a}"`);d[a]()}})}static clearMenus(a){if(a.button===2||a.type==="keyup"&&a.key!=="Tab")return;const d=G.find(Xw);for(const w of d){const P=In.getInstance(w);if(!P||P._config.autoClose===!1)continue;const j=a.composedPath(),$=j.includes(P._menu);if(j.includes(P._element)||P._config.autoClose==="inside"&&!$||P._config.autoClose==="outside"&&$||P._menu.contains(a.target)&&(a.type==="keyup"&&a.key==="Tab"||/input|select|option|textarea|form/i.test(a.target.tagName)))continue;const B={relatedTarget:P._element};a.type==="click"&&(B.clickEvent=a),P._completeHide(B)}}static dataApiKeydownHandler(a){const d=/input|textarea/i.test(a.target.tagName),w=a.key==="Escape",P=[Vw,kh].includes(a.key);if(!P&&!w||d&&!w)return;a.preventDefault();const j=this.matches(mi)?this:G.prev(this,mi)[0]||G.next(this,mi)[0]||G.findOne(mi,a.delegateTarget.parentNode),$=In.getOrCreateInstance(j);if(P)return a.stopPropagation(),$.show(),void $._selectMenuItem(a);$._isShown()&&(a.stopPropagation(),$.hide(),j.focus())}}R.on(document,Th,mi,In.dataApiKeydownHandler),R.on(document,Th,Ga,In.dataApiKeydownHandler),R.on(document,Ch,In.clearMenus),R.on(document,qw,In.clearMenus),R.on(document,Ch,mi,function(p){p.preventDefault(),In.getOrCreateInstance(this).toggle()}),v(In);const Oh="backdrop",Ph="show",jh=`mousedown.bs.${Oh}`,sx={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ax={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Nh extends ye{constructor(a){super(),this._config=this._getConfig(a),this._isAppended=!1,this._element=null}static get Default(){return sx}static get DefaultType(){return ax}static get NAME(){return Oh}show(a){if(!this._config.isVisible)return void g(a);this._append();const d=this._getElement();this._config.isAnimated&&y(d),d.classList.add(Ph),this._emulateAnimation(()=>{g(a)})}hide(a){this._config.isVisible?(this._getElement().classList.remove(Ph),this._emulateAnimation(()=>{this.dispose(),g(a)})):g(a)}dispose(){this._isAppended&&(R.off(this._element,jh),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const a=document.createElement("div");a.className=this._config.className,this._config.isAnimated&&a.classList.add("fade"),this._element=a}return this._element}_configAfterMerge(a){return a.rootElement=u(a.rootElement),a}_append(){if(this._isAppended)return;const a=this._getElement();this._config.rootElement.append(a),R.on(a,jh,()=>{g(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(a){b(a,this._getElement(),this._config.isAnimated)}}const Ka=".bs.focustrap",lx=`focusin${Ka}`,ux=`keydown.tab${Ka}`,Lh="backward",cx={autofocus:!0,trapElement:null},dx={autofocus:"boolean",trapElement:"element"};class Rh extends ye{constructor(a){super(),this._config=this._getConfig(a),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return cx}static get DefaultType(){return dx}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),R.off(document,Ka),R.on(document,lx,a=>this._handleFocusin(a)),R.on(document,ux,a=>this._handleKeydown(a)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,R.off(document,Ka))}_handleFocusin(a){const{trapElement:d}=this._config;if(a.target===document||a.target===d||d.contains(a.target))return;const w=G.focusableChildren(d);w.length===0?d.focus():this._lastTabNavDirection===Lh?w[w.length-1].focus():w[0].focus()}_handleKeydown(a){a.key==="Tab"&&(this._lastTabNavDirection=a.shiftKey?Lh:"forward")}}const Ah=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Dh=".sticky-top",Qa="padding-right",$h="margin-right";class vc{constructor(){this._element=document.body}getWidth(){const a=document.documentElement.clientWidth;return Math.abs(window.innerWidth-a)}hide(){const a=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Qa,d=>d+a),this._setElementAttributes(Ah,Qa,d=>d+a),this._setElementAttributes(Dh,$h,d=>d-a)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Qa),this._resetElementAttributes(Ah,Qa),this._resetElementAttributes(Dh,$h)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(a,d,w){const P=this.getWidth();this._applyManipulationCallback(a,j=>{if(j!==this._element&&window.innerWidth>j.clientWidth+P)return;this._saveInitialAttribute(j,d);const $=window.getComputedStyle(j).getPropertyValue(d);j.style.setProperty(d,`${w(Number.parseFloat($))}px`)})}_saveInitialAttribute(a,d){const w=a.style.getPropertyValue(d);w&&ae.setDataAttribute(a,d,w)}_resetElementAttributes(a,d){this._applyManipulationCallback(a,w=>{const P=ae.getDataAttribute(w,d);P!==null?(ae.removeDataAttribute(w,d),w.style.setProperty(d,P)):w.style.removeProperty(d)})}_applyManipulationCallback(a,d){if(l(a))d(a);else for(const w of G.find(a,this._element))d(w)}}const xn=".bs.modal",fx=`hide${xn}`,px=`hidePrevented${xn}`,Mh=`hidden${xn}`,Ih=`show${xn}`,hx=`shown${xn}`,mx=`resize${xn}`,gx=`click.dismiss${xn}`,vx=`mousedown.dismiss${xn}`,yx=`keydown.dismiss${xn}`,wx=`click${xn}.data-api`,zh="modal-open",Fh="show",yc="modal-static",xx={backdrop:!0,focus:!0,keyboard:!0},_x={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class gi extends ue{constructor(a,d){super(a,d),this._dialog=G.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new vc,this._addEventListeners()}static get Default(){return xx}static get DefaultType(){return _x}static get NAME(){return"modal"}toggle(a){return this._isShown?this.hide():this.show(a)}show(a){this._isShown||this._isTransitioning||R.trigger(this._element,Ih,{relatedTarget:a}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(zh),this._adjustDialog(),this._backdrop.show(()=>this._showElement(a)))}hide(){this._isShown&&!this._isTransitioning&&(R.trigger(this._element,fx).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Fh),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){R.off(window,xn),R.off(this._dialog,xn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Nh({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Rh({trapElement:this._element})}_showElement(a){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const d=G.findOne(".modal-body",this._dialog);d&&(d.scrollTop=0),y(this._element),this._element.classList.add(Fh),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,R.trigger(this._element,hx,{relatedTarget:a})},this._dialog,this._isAnimated())}_addEventListeners(){R.on(this._element,yx,a=>{a.key==="Escape"&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),R.on(window,mx,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),R.on(this._element,vx,a=>{R.one(this._element,gx,d=>{this._element===a.target&&this._element===d.target&&(this._config.backdrop!=="static"?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(zh),this._resetAdjustments(),this._scrollBar.reset(),R.trigger(this._element,Mh)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(R.trigger(this._element,px).defaultPrevented)return;const a=this._element.scrollHeight>document.documentElement.clientHeight,d=this._element.style.overflowY;d==="hidden"||this._element.classList.contains(yc)||(a||(this._element.style.overflowY="hidden"),this._element.classList.add(yc),this._queueCallback(()=>{this._element.classList.remove(yc),this._queueCallback(()=>{this._element.style.overflowY=d},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const a=this._element.scrollHeight>document.documentElement.clientHeight,d=this._scrollBar.getWidth(),w=d>0;if(w&&!a){const P=C()?"paddingLeft":"paddingRight";this._element.style[P]=`${d}px`}if(!w&&a){const P=C()?"paddingRight":"paddingLeft";this._element.style[P]=`${d}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(a,d){return this.each(function(){const w=gi.getOrCreateInstance(this,a);if(typeof a=="string"){if(w[a]===void 0)throw new TypeError(`No method named "${a}"`);w[a](d)}})}}R.on(document,wx,'[data-bs-toggle="modal"]',function(p){const a=G.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&p.preventDefault(),R.one(a,Ih,w=>{w.defaultPrevented||R.one(a,Mh,()=>{c(this)&&this.focus()})});const d=G.findOne(".modal.show");d&&gi.getInstance(d).hide(),gi.getOrCreateInstance(a).toggle(this)}),We(gi),v(gi);const fr=".bs.offcanvas",Bh=".data-api",Ex=`load${fr}${Bh}`,Uh="show",Hh="showing",Wh="hiding",Vh=".offcanvas.show",bx=`show${fr}`,Sx=`shown${fr}`,kx=`hide${fr}`,Gh=`hidePrevented${fr}`,Kh=`hidden${fr}`,Cx=`resize${fr}`,Tx=`click${fr}${Bh}`,Ox=`keydown.dismiss${fr}`,Px={backdrop:!0,keyboard:!0,scroll:!1},jx={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class pr extends ue{constructor(a,d){super(a,d),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Px}static get DefaultType(){return jx}static get NAME(){return"offcanvas"}toggle(a){return this._isShown?this.hide():this.show(a)}show(a){this._isShown||R.trigger(this._element,bx,{relatedTarget:a}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new vc().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Hh),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Uh),this._element.classList.remove(Hh),R.trigger(this._element,Sx,{relatedTarget:a})},this._element,!0))}hide(){this._isShown&&(R.trigger(this._element,kx).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Wh),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Uh,Wh),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new vc().reset(),R.trigger(this._element,Kh)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const a=!!this._config.backdrop;return new Nh({className:"offcanvas-backdrop",isVisible:a,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:a?()=>{this._config.backdrop!=="static"?this.hide():R.trigger(this._element,Gh)}:null})}_initializeFocusTrap(){return new Rh({trapElement:this._element})}_addEventListeners(){R.on(this._element,Ox,a=>{a.key==="Escape"&&(this._config.keyboard?this.hide():R.trigger(this._element,Gh))})}static jQueryInterface(a){return this.each(function(){const d=pr.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0||a.startsWith("_")||a==="constructor")throw new TypeError(`No method named "${a}"`);d[a](this)}})}}R.on(document,Tx,'[data-bs-toggle="offcanvas"]',function(p){const a=G.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&p.preventDefault(),f(this))return;R.one(a,Kh,()=>{c(this)&&this.focus()});const d=G.findOne(Vh);d&&d!==a&&pr.getInstance(d).hide(),pr.getOrCreateInstance(a).toggle(this)}),R.on(window,Ex,()=>{for(const p of G.find(Vh))pr.getOrCreateInstance(p).show()}),R.on(window,Cx,()=>{for(const p of G.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(p).position!=="fixed"&&pr.getOrCreateInstance(p).hide()}),We(pr),v(pr);const Qh={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Nx=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Lx=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Rx=(p,a)=>{const d=p.nodeName.toLowerCase();return a.includes(d)?!Nx.has(d)||!!Lx.test(p.nodeValue):a.filter(w=>w instanceof RegExp).some(w=>w.test(d))},Ax={allowList:Qh,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Dx={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},$x={entry:"(string|element|function|null)",selector:"(string|element)"};class Mx extends ye{constructor(a){super(),this._config=this._getConfig(a)}static get Default(){return Ax}static get DefaultType(){return Dx}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(a=>this._resolvePossibleFunction(a)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(a){return this._checkContent(a),this._config.content={...this._config.content,...a},this}toHtml(){const a=document.createElement("div");a.innerHTML=this._maybeSanitize(this._config.template);for(const[P,j]of Object.entries(this._config.content))this._setContent(a,j,P);const d=a.children[0],w=this._resolvePossibleFunction(this._config.extraClass);return w&&d.classList.add(...w.split(" ")),d}_typeCheckConfig(a){super._typeCheckConfig(a),this._checkContent(a.content)}_checkContent(a){for(const[d,w]of Object.entries(a))super._typeCheckConfig({selector:d,entry:w},$x)}_setContent(a,d,w){const P=G.findOne(w,a);P&&((d=this._resolvePossibleFunction(d))?l(d)?this._putElementInTemplate(u(d),P):this._config.html?P.innerHTML=this._maybeSanitize(d):P.textContent=d:P.remove())}_maybeSanitize(a){return this._config.sanitize?function(d,w,P){if(!d.length)return d;if(P&&typeof P=="function")return P(d);const j=new window.DOMParser().parseFromString(d,"text/html"),$=[].concat(...j.body.querySelectorAll("*"));for(const B of $){const Q=B.nodeName.toLowerCase();if(!Object.keys(w).includes(Q)){B.remove();continue}const J=[].concat(...B.attributes),te=[].concat(w["*"]||[],w[Q]||[]);for(const X of J)Rx(X,te)||B.removeAttribute(X.nodeName)}return j.body.innerHTML}(a,this._config.allowList,this._config.sanitizeFn):a}_resolvePossibleFunction(a){return g(a,[this])}_putElementInTemplate(a,d){if(this._config.html)return d.innerHTML="",void d.append(a);d.textContent=a.textContent}}const Ix=new Set(["sanitize","allowList","sanitizeFn"]),wc="fade",Ya="show",Yh=".modal",qh="hide.bs.modal",ps="hover",xc="focus",zx={AUTO:"auto",TOP:"top",RIGHT:C()?"left":"right",BOTTOM:"bottom",LEFT:C()?"right":"left"},Fx={allowList:Qh,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},Bx={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class vi extends ue{constructor(a,d){if(bh===void 0)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(a,d),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Fx}static get DefaultType(){return Bx}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),R.off(this._element.closest(Yh),qh,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const a=R.trigger(this._element,this.constructor.eventName("show")),d=(h(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(a.defaultPrevented||!d)return;this._disposePopper();const w=this._getTipElement();this._element.setAttribute("aria-describedby",w.getAttribute("id"));const{container:P}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(P.append(w),R.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(w),w.classList.add(Ya),"ontouchstart"in document.documentElement)for(const j of[].concat(...document.body.children))R.on(j,"mouseover",m);this._queueCallback(()=>{R.trigger(this._element,this.constructor.eventName("shown")),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!R.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(Ya),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))R.off(a,"mouseover",m);this._activeTrigger.click=!1,this._activeTrigger[xc]=!1,this._activeTrigger[ps]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),R.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(a){const d=this._getTemplateFactory(a).toHtml();if(!d)return null;d.classList.remove(wc,Ya),d.classList.add(`bs-${this.constructor.NAME}-auto`);const w=(P=>{do P+=Math.floor(1e6*Math.random());while(document.getElementById(P));return P})(this.constructor.NAME).toString();return d.setAttribute("id",w),this._isAnimated()&&d.classList.add(wc),d}setContent(a){this._newContent=a,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(a){return this._templateFactory?this._templateFactory.changeContent(a):this._templateFactory=new Mx({...this._config,content:a,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(a){return this.constructor.getOrCreateInstance(a.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(wc)}_isShown(){return this.tip&&this.tip.classList.contains(Ya)}_createPopper(a){const d=g(this._config.placement,[this,a,this._element]),w=zx[d.toUpperCase()];return mc(this._element,a,this._getPopperConfig(w))}_getOffset(){const{offset:a}=this._config;return typeof a=="string"?a.split(",").map(d=>Number.parseInt(d,10)):typeof a=="function"?d=>a(d,this._element):a}_resolvePossibleFunction(a){return g(a,[this._element])}_getPopperConfig(a){const d={placement:a,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:w=>{this._getTipElement().setAttribute("data-popper-placement",w.state.placement)}}]};return{...d,...g(this._config.popperConfig,[d])}}_setListeners(){const a=this._config.trigger.split(" ");for(const d of a)if(d==="click")R.on(this._element,this.constructor.eventName("click"),this._config.selector,w=>{this._initializeOnDelegatedTarget(w).toggle()});else if(d!=="manual"){const w=d===ps?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),P=d===ps?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");R.on(this._element,w,this._config.selector,j=>{const $=this._initializeOnDelegatedTarget(j);$._activeTrigger[j.type==="focusin"?xc:ps]=!0,$._enter()}),R.on(this._element,P,this._config.selector,j=>{const $=this._initializeOnDelegatedTarget(j);$._activeTrigger[j.type==="focusout"?xc:ps]=$._element.contains(j.relatedTarget),$._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},R.on(this._element.closest(Yh),qh,this._hideModalHandler)}_fixTitle(){const a=this._element.getAttribute("title");a&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",a),this._element.setAttribute("data-bs-original-title",a),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(a,d){clearTimeout(this._timeout),this._timeout=setTimeout(a,d)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(a){const d=ae.getDataAttributes(this._element);for(const w of Object.keys(d))Ix.has(w)&&delete d[w];return a={...d,...typeof a=="object"&&a?a:{}},a=this._mergeConfigObj(a),a=this._configAfterMerge(a),this._typeCheckConfig(a),a}_configAfterMerge(a){return a.container=a.container===!1?document.body:u(a.container),typeof a.delay=="number"&&(a.delay={show:a.delay,hide:a.delay}),typeof a.title=="number"&&(a.title=a.title.toString()),typeof a.content=="number"&&(a.content=a.content.toString()),a}_getDelegateConfig(){const a={};for(const[d,w]of Object.entries(this._config))this.constructor.Default[d]!==w&&(a[d]=w);return a.selector=!1,a.trigger="manual",a}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(a){return this.each(function(){const d=vi.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0)throw new TypeError(`No method named "${a}"`);d[a]()}})}}v(vi);const Ux={...vi.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},Hx={...vi.DefaultType,content:"(null|string|element|function)"};class qa extends vi{static get Default(){return Ux}static get DefaultType(){return Hx}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(a){return this.each(function(){const d=qa.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0)throw new TypeError(`No method named "${a}"`);d[a]()}})}}v(qa);const _c=".bs.scrollspy",Wx=`activate${_c}`,Xh=`click${_c}`,Vx=`load${_c}.data-api`,oo="active",Ec="[href]",Zh=".nav-link",Gx=`${Zh}, .nav-item > ${Zh}, .list-group-item`,Kx={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Qx={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class hs extends ue{constructor(a,d){super(a,d),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Kx}static get DefaultType(){return Qx}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const a of this._observableSections.values())this._observer.observe(a)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(a){return a.target=u(a.target)||document.body,a.rootMargin=a.offset?`${a.offset}px 0px -30%`:a.rootMargin,typeof a.threshold=="string"&&(a.threshold=a.threshold.split(",").map(d=>Number.parseFloat(d))),a}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(R.off(this._config.target,Xh),R.on(this._config.target,Xh,Ec,a=>{const d=this._observableSections.get(a.target.hash);if(d){a.preventDefault();const w=this._rootElement||window,P=d.offsetTop-this._element.offsetTop;if(w.scrollTo)return void w.scrollTo({top:P,behavior:"smooth"});w.scrollTop=P}}))}_getNewObserver(){const a={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(d=>this._observerCallback(d),a)}_observerCallback(a){const d=$=>this._targetLinks.get(`#${$.target.id}`),w=$=>{this._previousScrollData.visibleEntryTop=$.target.offsetTop,this._process(d($))},P=(this._rootElement||document.documentElement).scrollTop,j=P>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=P;for(const $ of a){if(!$.isIntersecting){this._activeTarget=null,this._clearActiveClass(d($));continue}const B=$.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(j&&B){if(w($),!P)return}else j||B||w($)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const a=G.find(Ec,this._config.target);for(const d of a){if(!d.hash||f(d))continue;const w=G.findOne(decodeURI(d.hash),this._element);c(w)&&(this._targetLinks.set(decodeURI(d.hash),d),this._observableSections.set(d.hash,w))}}_process(a){this._activeTarget!==a&&(this._clearActiveClass(this._config.target),this._activeTarget=a,a.classList.add(oo),this._activateParents(a),R.trigger(this._element,Wx,{relatedTarget:a}))}_activateParents(a){if(a.classList.contains("dropdown-item"))G.findOne(".dropdown-toggle",a.closest(".dropdown")).classList.add(oo);else for(const d of G.parents(a,".nav, .list-group"))for(const w of G.prev(d,Gx))w.classList.add(oo)}_clearActiveClass(a){a.classList.remove(oo);const d=G.find(`${Ec}.${oo}`,a);for(const w of d)w.classList.remove(oo)}static jQueryInterface(a){return this.each(function(){const d=hs.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0||a.startsWith("_")||a==="constructor")throw new TypeError(`No method named "${a}"`);d[a]()}})}}R.on(window,Vx,()=>{for(const p of G.find('[data-bs-spy="scroll"]'))hs.getOrCreateInstance(p)}),v(hs);const yi=".bs.tab",Yx=`hide${yi}`,qx=`hidden${yi}`,Xx=`show${yi}`,Zx=`shown${yi}`,Jx=`click${yi}`,e_=`keydown${yi}`,t_=`load${yi}`,n_="ArrowLeft",Jh="ArrowRight",r_="ArrowUp",em="ArrowDown",bc="Home",tm="End",wi="active",nm="fade",Sc="show",rm=".dropdown-toggle",kc=`:not(${rm})`,im='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Cc=`.nav-link${kc}, .list-group-item${kc}, [role="tab"]${kc}, ${im}`,i_=`.${wi}[data-bs-toggle="tab"], .${wi}[data-bs-toggle="pill"], .${wi}[data-bs-toggle="list"]`;class xi extends ue{constructor(a){super(a),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),R.on(this._element,e_,d=>this._keydown(d)))}static get NAME(){return"tab"}show(){const a=this._element;if(this._elemIsActive(a))return;const d=this._getActiveElem(),w=d?R.trigger(d,Yx,{relatedTarget:a}):null;R.trigger(a,Xx,{relatedTarget:d}).defaultPrevented||w&&w.defaultPrevented||(this._deactivate(d,a),this._activate(a,d))}_activate(a,d){a&&(a.classList.add(wi),this._activate(G.getElementFromSelector(a)),this._queueCallback(()=>{a.getAttribute("role")==="tab"?(a.removeAttribute("tabindex"),a.setAttribute("aria-selected",!0),this._toggleDropDown(a,!0),R.trigger(a,Zx,{relatedTarget:d})):a.classList.add(Sc)},a,a.classList.contains(nm)))}_deactivate(a,d){a&&(a.classList.remove(wi),a.blur(),this._deactivate(G.getElementFromSelector(a)),this._queueCallback(()=>{a.getAttribute("role")==="tab"?(a.setAttribute("aria-selected",!1),a.setAttribute("tabindex","-1"),this._toggleDropDown(a,!1),R.trigger(a,qx,{relatedTarget:d})):a.classList.remove(Sc)},a,a.classList.contains(nm)))}_keydown(a){if(![n_,Jh,r_,em,bc,tm].includes(a.key))return;a.stopPropagation(),a.preventDefault();const d=this._getChildren().filter(P=>!f(P));let w;if([bc,tm].includes(a.key))w=d[a.key===bc?0:d.length-1];else{const P=[Jh,em].includes(a.key);w=T(d,a.target,P,!0)}w&&(w.focus({preventScroll:!0}),xi.getOrCreateInstance(w).show())}_getChildren(){return G.find(Cc,this._parent)}_getActiveElem(){return this._getChildren().find(a=>this._elemIsActive(a))||null}_setInitialAttributes(a,d){this._setAttributeIfNotExists(a,"role","tablist");for(const w of d)this._setInitialAttributesOnChild(w)}_setInitialAttributesOnChild(a){a=this._getInnerElement(a);const d=this._elemIsActive(a),w=this._getOuterElement(a);a.setAttribute("aria-selected",d),w!==a&&this._setAttributeIfNotExists(w,"role","presentation"),d||a.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(a,"role","tab"),this._setInitialAttributesOnTargetPanel(a)}_setInitialAttributesOnTargetPanel(a){const d=G.getElementFromSelector(a);d&&(this._setAttributeIfNotExists(d,"role","tabpanel"),a.id&&this._setAttributeIfNotExists(d,"aria-labelledby",`${a.id}`))}_toggleDropDown(a,d){const w=this._getOuterElement(a);if(!w.classList.contains("dropdown"))return;const P=(j,$)=>{const B=G.findOne(j,w);B&&B.classList.toggle($,d)};P(rm,wi),P(".dropdown-menu",Sc),w.setAttribute("aria-expanded",d)}_setAttributeIfNotExists(a,d,w){a.hasAttribute(d)||a.setAttribute(d,w)}_elemIsActive(a){return a.classList.contains(wi)}_getInnerElement(a){return a.matches(Cc)?a:G.findOne(Cc,a)}_getOuterElement(a){return a.closest(".nav-item, .list-group-item")||a}static jQueryInterface(a){return this.each(function(){const d=xi.getOrCreateInstance(this);if(typeof a=="string"){if(d[a]===void 0||a.startsWith("_")||a==="constructor")throw new TypeError(`No method named "${a}"`);d[a]()}})}}R.on(document,Jx,im,function(p){["A","AREA"].includes(this.tagName)&&p.preventDefault(),f(this)||xi.getOrCreateInstance(this).show()}),R.on(window,t_,()=>{for(const p of G.find(i_))xi.getOrCreateInstance(p)}),v(xi);const Ar=".bs.toast",o_=`mouseover${Ar}`,s_=`mouseout${Ar}`,a_=`focusin${Ar}`,l_=`focusout${Ar}`,u_=`hide${Ar}`,c_=`hidden${Ar}`,d_=`show${Ar}`,f_=`shown${Ar}`,om="hide",Xa="show",Za="showing",p_={animation:"boolean",autohide:"boolean",delay:"number"},h_={animation:!0,autohide:!0,delay:5e3};class ms extends ue{constructor(a,d){super(a,d),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return h_}static get DefaultType(){return p_}static get NAME(){return"toast"}show(){R.trigger(this._element,d_).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(om),y(this._element),this._element.classList.add(Xa,Za),this._queueCallback(()=>{this._element.classList.remove(Za),R.trigger(this._element,f_),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(R.trigger(this._element,u_).defaultPrevented||(this._element.classList.add(Za),this._queueCallback(()=>{this._element.classList.add(om),this._element.classList.remove(Za,Xa),R.trigger(this._element,c_)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Xa),super.dispose()}isShown(){return this._element.classList.contains(Xa)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(a,d){switch(a.type){case"mouseover":case"mouseout":this._hasMouseInteraction=d;break;case"focusin":case"focusout":this._hasKeyboardInteraction=d}if(d)return void this._clearTimeout();const w=a.relatedTarget;this._element===w||this._element.contains(w)||this._maybeScheduleHide()}_setListeners(){R.on(this._element,o_,a=>this._onInteraction(a,!0)),R.on(this._element,s_,a=>this._onInteraction(a,!1)),R.on(this._element,a_,a=>this._onInteraction(a,!0)),R.on(this._element,l_,a=>this._onInteraction(a,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(a){return this.each(function(){const d=ms.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0)throw new TypeError(`No method named "${a}"`);d[a](this)}})}}return We(ms),v(ms),{Alert:je,Button:ze,Carousel:Z,Collapse:on,Dropdown:In,Modal:gi,Offcanvas:pr,Popover:qa,ScrollSpy:hs,Tab:xi,Toast:ms,Tooltip:vi}})})(b2);var Yt=function(){return Yt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?Ct(ts,--Ln):0,Bo--,yt===10&&(Bo=1,Bu--),yt}function Kn(){return yt=Ln2||hf(yt)>3?"":" "}function A2(e,t){for(;--t&&Kn()&&!(yt<48||yt>102||yt>57&&yt<65||yt>70&&yt<97););return Hu(e,Il()+(t<6&&Mi()==32&&Kn()==32))}function mf(e){for(;Kn();)switch(yt){case e:return Ln;case 34:case 39:e!==34&&e!==39&&mf(yt);break;case 40:e===41&&mf(e);break;case 92:Kn();break}return Ln}function D2(e,t){for(;Kn()&&e+yt!==47+10;)if(e+yt===42+42&&Mi()===47)break;return"/*"+Hu(t,Ln-1)+"*"+Lp(e===47?e:Kn())}function $2(e){for(;!hf(Mi());)Kn();return Hu(e,Ln)}function M2(e){return L2(zl("",null,null,null,[""],e=N2(e),0,[0],e))}function zl(e,t,n,r,i,o,s,l,u){for(var c=0,f=0,h=s,m=0,y=0,x=0,_=1,C=1,v=1,g=0,b="",T=i,N=o,k=r,O=b;C;)switch(x=g,g=Kn()){case 40:if(x!=108&&Ct(O,h-1)==58){Ml(O+=be(od(g),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:O+=od(g);break;case 9:case 10:case 13:case 32:O+=R2(x);break;case 92:O+=A2(Il()-1,7);continue;case 47:switch(Mi()){case 42:case 47:As(I2(D2(Kn(),Il()),t,n,u),u);break;default:O+="/"}break;case 123*_:l[c++]=nr(O)*v;case 125*_:case 59:case 0:switch(g){case 0:case 125:C=0;case 59+f:v==-1&&(O=be(O,/\f/g,"")),y>0&&nr(O)-h&&As(y>32?Yg(O+";",r,n,h-1,u):Yg(be(O," ","")+";",r,n,h-2,u),u);break;case 59:O+=";";default:if(As(k=Qg(O,t,n,c,f,i,l,b,T=[],N=[],h,o),o),g===123)if(f===0)zl(O,t,k,k,T,o,h,l,N);else switch(m===99&&Ct(O,3)===110?100:m){case 100:case 108:case 109:case 115:zl(e,k,k,r&&As(Qg(e,k,k,0,0,i,l,b,i,T=[],h,N),N),i,N,h,l,r?T:N);break;default:zl(O,k,k,k,[""],N,0,l,N)}}c=f=y=0,_=v=1,b=O="",h=s;break;case 58:h=1+nr(O),y=x;default:if(_<1){if(g==123)--_;else if(g==125&&_++==0&&j2()==125)continue}switch(O+=Lp(g),g*_){case 38:v=f>0?1:(O+="\f",-1);break;case 44:l[c++]=(nr(O)-1)*v,v=1;break;case 64:Mi()===45&&(O+=od(Kn())),m=Mi(),f=h=nr(b=O+=$2(Il())),g++;break;case 45:x===45&&nr(O)==2&&(_=0)}}return o}function Qg(e,t,n,r,i,o,s,l,u,c,f,h){for(var m=i-1,y=i===0?o:[""],x=v1(y),_=0,C=0,v=0;_0?y[g]+" "+b:be(b,/&\f/g,y[g])))&&(u[v++]=T);return Uu(e,t,n,i===0?Fu:l,u,c,f,h)}function I2(e,t,n,r){return Uu(e,t,n,h1,Lp(P2()),Fo(e,2,-2),0,r)}function Yg(e,t,n,r,i){return Uu(e,t,n,Np,Fo(e,0,r),Fo(e,r+1,-1),r,i)}function w1(e,t,n){switch(T2(e,t)){case 5103:return Fe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Fe+e+e;case 4789:return Ks+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Fe+e+Ks+e+Ze+e+e;case 5936:switch(Ct(e,t+11)){case 114:return Fe+e+Ze+be(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Fe+e+Ze+be(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Fe+e+Ze+be(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Fe+e+Ze+e+e;case 6165:return Fe+e+Ze+"flex-"+e+e;case 5187:return Fe+e+be(e,/(\w+).+(:[^]+)/,Fe+"box-$1$2"+Ze+"flex-$1$2")+e;case 5443:return Fe+e+Ze+"flex-item-"+be(e,/flex-|-self/g,"")+(mr(e,/flex-|baseline/)?"":Ze+"grid-row-"+be(e,/flex-|-self/g,""))+e;case 4675:return Fe+e+Ze+"flex-line-pack"+be(e,/align-content|flex-|-self/g,"")+e;case 5548:return Fe+e+Ze+be(e,"shrink","negative")+e;case 5292:return Fe+e+Ze+be(e,"basis","preferred-size")+e;case 6060:return Fe+"box-"+be(e,"-grow","")+Fe+e+Ze+be(e,"grow","positive")+e;case 4554:return Fe+be(e,/([^-])(transform)/g,"$1"+Fe+"$2")+e;case 6187:return be(be(be(e,/(zoom-|grab)/,Fe+"$1"),/(image-set)/,Fe+"$1"),e,"")+e;case 5495:case 3959:return be(e,/(image-set\([^]*)/,Fe+"$1$`$1");case 4968:return be(be(e,/(.+:)(flex-)?(.*)/,Fe+"box-pack:$3"+Ze+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Fe+e+e;case 4200:if(!mr(e,/flex-|baseline/))return Ze+"grid-column-align"+Fo(e,t)+e;break;case 2592:case 3360:return Ze+be(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,mr(r.props,/grid-\w+-end/)})?~Ml(e+(n=n[t].value),"span")?e:Ze+be(e,"-start","")+e+Ze+"grid-row-span:"+(~Ml(n,"span")?mr(n,/\d+/):+mr(n,/\d+/)-+mr(e,/\d+/))+";":Ze+be(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return mr(r.props,/grid-\w+-start/)})?e:Ze+be(be(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return be(e,/(.+)-inline(.+)/,Fe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(nr(e)-1-t>6)switch(Ct(e,t+1)){case 109:if(Ct(e,t+4)!==45)break;case 102:return be(e,/(.+:)(.+)-([^]+)/,"$1"+Fe+"$2-$3$1"+Ks+(Ct(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ml(e,"stretch")?w1(be(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return be(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,s,l,u,c){return Ze+i+":"+o+c+(s?Ze+i+"-span:"+(l?u:+u-+o)+c:"")+e});case 4949:if(Ct(e,t+6)===121)return be(e,":",":"+Fe)+e;break;case 6444:switch(Ct(e,Ct(e,14)===45?18:11)){case 120:return be(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Fe+(Ct(e,14)===45?"inline-":"")+"box$3$1"+Fe+"$2$3$1"+Ze+"$2box$3")+e;case 100:return be(e,":",":"+Ze)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return be(e,"scroll-","scroll-snap-")+e}return e}function vu(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case Np:e.return=w1(e.value,e.length,n);return;case m1:return vu([Ir(e,{value:be(e.value,"@","@"+Fe)})],r);case Fu:if(e.length)return O2(n=e.props,function(i){switch(mr(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":lo(Ir(e,{props:[be(i,/:(read-\w+)/,":"+Ks+"$1")]})),lo(Ir(e,{props:[i]})),pf(e,{props:Kg(n,r)});break;case"::placeholder":lo(Ir(e,{props:[be(i,/:(plac\w+)/,":"+Fe+"input-$1")]})),lo(Ir(e,{props:[be(i,/:(plac\w+)/,":"+Ks+"$1")]})),lo(Ir(e,{props:[be(i,/:(plac\w+)/,Ze+"input-$1")]})),lo(Ir(e,{props:[i]})),pf(e,{props:Kg(n,r)});break}return""})}}var H2={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Uo=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",x1="active",_1="data-styled-version",Wu="6.1.3",Rp=`/*!sc*/ -`,Ap=typeof window<"u"&&"HTMLElement"in window,W2=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==""?{}.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&{}.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.SC_DISABLE_SPEEDY!==void 0&&{}.SC_DISABLE_SPEEDY!==""&&{}.SC_DISABLE_SPEEDY!=="false"&&{}.SC_DISABLE_SPEEDY),Vu=Object.freeze([]),Ho=Object.freeze({});function V2(e,t,n){return n===void 0&&(n=Ho),e.theme!==n.theme&&e.theme||t||n.theme}var E1=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),G2=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,K2=/(^-|-$)/g;function qg(e){return e.replace(G2,"-").replace(K2,"")}var Q2=/(a)(d)/gi,wl=52,Xg=function(e){return String.fromCharCode(e+(e>25?39:97))};function gf(e){var t,n="";for(t=Math.abs(e);t>wl;t=t/wl|0)n=Xg(t%wl)+n;return(Xg(t%wl)+n).replace(Q2,"$1-$2")}var sd,b1=5381,Co=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},S1=function(e){return Co(b1,e)};function k1(e){return gf(S1(e)>>>0)}function Y2(e){return e.displayName||e.name||"Component"}function ad(e){return typeof e=="string"&&!0}var C1=typeof Symbol=="function"&&Symbol.for,T1=C1?Symbol.for("react.memo"):60115,q2=C1?Symbol.for("react.forward_ref"):60112,X2={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Z2={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},O1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J2=((sd={})[q2]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},sd[T1]=O1,sd);function Zg(e){return("type"in(t=e)&&t.type.$$typeof)===T1?O1:"$$typeof"in e?J2[e.$$typeof]:X2;var t}var ek=Object.defineProperty,tk=Object.getOwnPropertyNames,Jg=Object.getOwnPropertySymbols,nk=Object.getOwnPropertyDescriptor,rk=Object.getPrototypeOf,ev=Object.prototype;function P1(e,t,n){if(typeof t!="string"){if(ev){var r=rk(t);r&&r!==ev&&P1(e,r,n)}var i=tk(t);Jg&&(i=i.concat(Jg(t)));for(var o=Zg(e),s=Zg(t),l=0;l0?" Args: ".concat(t.join(", ")):""))}var ik=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw ja(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var s=i;s=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,s=i;s=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(C+="".concat(v,","))}),u+="".concat(x).concat(_,'{content:"').concat(C,'"}').concat(Rp)},f=0;f0?".".concat(t):m},f=u.slice();f.push(function(m){m.type===Fu&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(mk,n).replace(r,c))}),s.prefix&&f.push(U2),f.push(z2);var h=function(m,y,x,_){y===void 0&&(y=""),x===void 0&&(x=""),_===void 0&&(_="&"),t=_,n=y,r=new RegExp("\\".concat(n,"\\b"),"g");var C=m.replace(gk,""),v=M2(x||y?"".concat(x," ").concat(y," { ").concat(C," }"):C);s.namespace&&(v=L1(v,s.namespace));var g=[];return vu(v,F2(f.concat(B2(function(b){return g.push(b)})))),g};return h.hash=u.length?u.reduce(function(m,y){return y.name||ja(15),Co(m,y.name)},b1).toString():"",h}var yk=new N1,wf=vk(),R1=ke.createContext({shouldForwardProp:void 0,styleSheet:yk,stylis:wf});R1.Consumer;ke.createContext(void 0);function nv(){return S.useContext(R1)}var A1=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=wf);var s=r.name+o.hash;i.hasNameForId(r.id,s)||i.insertRules(r.id,s,o(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,$p(this,function(){throw ja(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=wf),this.name+t.hash},e}(),wk=function(e){return e>="A"&&e<="Z"};function rv(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,s)){var l=r(o,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,l)}i=Ri(i,s),this.staticRulesId=s}else{for(var u=Co(this.baseHash,r.hash),c="",f=0;f>>0);n.hasNameForId(this.componentId,y)||n.insertRules(this.componentId,y,r(c,".".concat(y),void 0,this.componentId)),i=Ri(i,y)}}return i},e}(),M1=ke.createContext(void 0);M1.Consumer;var ld={};function bk(e,t,n){var r=Dp(e),i=e,o=!ad(e),s=t.attrs,l=s===void 0?Vu:s,u=t.componentId,c=u===void 0?function(T,N){var k=typeof T!="string"?"sc":qg(T);ld[k]=(ld[k]||0)+1;var O="".concat(k,"-").concat(k1(Wu+k+ld[k]));return N?"".concat(N,"-").concat(O):O}(t.displayName,t.parentComponentId):u,f=t.displayName,h=f===void 0?function(T){return ad(T)?"styled.".concat(T):"Styled(".concat(Y2(T),")")}(e):f,m=t.displayName&&t.componentId?"".concat(qg(t.displayName),"-").concat(t.componentId):t.componentId||c,y=r&&i.attrs?i.attrs.concat(l).filter(Boolean):l,x=t.shouldForwardProp;if(r&&i.shouldForwardProp){var _=i.shouldForwardProp;if(t.shouldForwardProp){var C=t.shouldForwardProp;x=function(T,N){return _(T,N)&&C(T,N)}}else x=_}var v=new Ek(n,m,r?i.componentStyle:void 0);function g(T,N){return function(k,O,A){var F=k.attrs,H=k.componentStyle,z=k.defaultProps,I=k.foldedComponentIds,K=k.styledComponentId,V=k.target,re=ke.useContext(M1),oe=nv(),ne=k.shouldForwardProp||oe.shouldForwardProp,U=function(ae,ye,ue){for(var xe,G=Yt(Yt({},ye),{className:void 0,theme:ue}),We=0;Wen.has(p)&&n.get(p).get(a)||null,remove(p,a){if(!n.has(p))return;const d=n.get(p);d.delete(a),d.size===0&&n.delete(p)}},i="transitionend",o=p=>(p&&window.CSS&&window.CSS.escape&&(p=p.replace(/#([^\s"#']+)/g,(a,d)=>`#${CSS.escape(d)}`)),p),s=p=>{p.dispatchEvent(new Event(i))},l=p=>!(!p||typeof p!="object")&&(p.jquery!==void 0&&(p=p[0]),p.nodeType!==void 0),u=p=>l(p)?p.jquery?p[0]:p:typeof p=="string"&&p.length>0?document.querySelector(o(p)):null,c=p=>{if(!l(p)||p.getClientRects().length===0)return!1;const a=getComputedStyle(p).getPropertyValue("visibility")==="visible",d=p.closest("details:not([open])");if(!d)return a;if(d!==p){const w=p.closest("summary");if(w&&w.parentNode!==d||w===null)return!1}return a},f=p=>!p||p.nodeType!==Node.ELEMENT_NODE||!!p.classList.contains("disabled")||(p.disabled!==void 0?p.disabled:p.hasAttribute("disabled")&&p.getAttribute("disabled")!=="false"),h=p=>{if(!document.documentElement.attachShadow)return null;if(typeof p.getRootNode=="function"){const a=p.getRootNode();return a instanceof ShadowRoot?a:null}return p instanceof ShadowRoot?p:p.parentNode?h(p.parentNode):null},m=()=>{},y=p=>{p.offsetHeight},x=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,_=[],C=()=>document.documentElement.dir==="rtl",v=p=>{var a;a=()=>{const d=x();if(d){const w=p.NAME,P=d.fn[w];d.fn[w]=p.jQueryInterface,d.fn[w].Constructor=p,d.fn[w].noConflict=()=>(d.fn[w]=P,p.jQueryInterface)}},document.readyState==="loading"?(_.length||document.addEventListener("DOMContentLoaded",()=>{for(const d of _)d()}),_.push(a)):a()},g=(p,a=[],d=p)=>typeof p=="function"?p(...a):d,b=(p,a,d=!0)=>{if(!d)return void g(p);const w=($=>{if(!$)return 0;let{transitionDuration:B,transitionDelay:Q}=window.getComputedStyle($);const J=Number.parseFloat(B),te=Number.parseFloat(Q);return J||te?(B=B.split(",")[0],Q=Q.split(",")[0],1e3*(Number.parseFloat(B)+Number.parseFloat(Q))):0})(a)+5;let P=!1;const j=({target:$})=>{$===a&&(P=!0,a.removeEventListener(i,j),g(p))};a.addEventListener(i,j),setTimeout(()=>{P||s(a)},w)},T=(p,a,d,w)=>{const P=p.length;let j=p.indexOf(a);return j===-1?!d&&w?p[P-1]:p[0]:(j+=d?1:-1,w&&(j=(j+P)%P),p[Math.max(0,Math.min(j,P-1))])},N=/[^.]*(?=\..*)\.|.*/,k=/\..*/,O=/::\d+$/,A={};let F=1;const H={mouseenter:"mouseover",mouseleave:"mouseout"},z=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function I(p,a){return a&&`${a}::${F++}`||p.uidEvent||F++}function K(p){const a=I(p);return p.uidEvent=a,A[a]=A[a]||{},A[a]}function V(p,a,d=null){return Object.values(p).find(w=>w.callable===a&&w.delegationSelector===d)}function re(p,a,d){const w=typeof a=="string",P=w?d:a||d;let j=q(p);return z.has(j)||(j=p),[w,P,j]}function oe(p,a,d,w,P){if(typeof a!="string"||!p)return;let[j,$,B]=re(a,d,w);a in H&&($=(me=>function(fe){if(!fe.relatedTarget||fe.relatedTarget!==fe.delegateTarget&&!fe.delegateTarget.contains(fe.relatedTarget))return me.call(this,fe)})($));const Q=K(p),J=Q[B]||(Q[B]={}),te=V(J,$,j?d:null);if(te)return void(te.oneOff=te.oneOff&&P);const X=I($,a.replace(N,"")),_e=j?function(ce,me,fe){return function ge(Ve){const Ye=ce.querySelectorAll(me);for(let{target:Ce}=Ve;Ce&&Ce!==this;Ce=Ce.parentNode)for(const Ie of Ye)if(Ie===Ce)return se(Ve,{delegateTarget:Ce}),ge.oneOff&&R.off(ce,Ve.type,me,fe),fe.apply(Ce,[Ve])}}(p,d,$):function(ce,me){return function fe(ge){return se(ge,{delegateTarget:ce}),fe.oneOff&&R.off(ce,ge.type,me),me.apply(ce,[ge])}}(p,$);_e.delegationSelector=j?d:null,_e.callable=$,_e.oneOff=P,_e.uidEvent=X,J[X]=_e,p.addEventListener(B,_e,j)}function ne(p,a,d,w,P){const j=V(a[d],w,P);j&&(p.removeEventListener(d,j,!!P),delete a[d][j.uidEvent])}function U(p,a,d,w){const P=a[d]||{};for(const[j,$]of Object.entries(P))j.includes(w)&&ne(p,a,d,$.callable,$.delegationSelector)}function q(p){return p=p.replace(k,""),H[p]||p}const R={on(p,a,d,w){oe(p,a,d,w,!1)},one(p,a,d,w){oe(p,a,d,w,!0)},off(p,a,d,w){if(typeof a!="string"||!p)return;const[P,j,$]=re(a,d,w),B=$!==a,Q=K(p),J=Q[$]||{},te=a.startsWith(".");if(j===void 0){if(te)for(const X of Object.keys(Q))U(p,Q,X,a.slice(1));for(const[X,_e]of Object.entries(J)){const ce=X.replace(O,"");B&&!a.includes(ce)||ne(p,Q,$,_e.callable,_e.delegationSelector)}}else{if(!Object.keys(J).length)return;ne(p,Q,$,j,P?d:null)}},trigger(p,a,d){if(typeof a!="string"||!p)return null;const w=x();let P=null,j=!0,$=!0,B=!1;a!==q(a)&&w&&(P=w.Event(a,d),w(p).trigger(P),j=!P.isPropagationStopped(),$=!P.isImmediatePropagationStopped(),B=P.isDefaultPrevented());const Q=se(new Event(a,{bubbles:j,cancelable:!0}),d);return B&&Q.preventDefault(),$&&p.dispatchEvent(Q),Q.defaultPrevented&&P&&P.preventDefault(),Q}};function se(p,a={}){for(const[d,w]of Object.entries(a))try{p[d]=w}catch{Object.defineProperty(p,d,{configurable:!0,get:()=>w})}return p}function ve(p){if(p==="true")return!0;if(p==="false")return!1;if(p===Number(p).toString())return Number(p);if(p===""||p==="null")return null;if(typeof p!="string")return p;try{return JSON.parse(decodeURIComponent(p))}catch{return p}}function Re(p){return p.replace(/[A-Z]/g,a=>`-${a.toLowerCase()}`)}const ae={setDataAttribute(p,a,d){p.setAttribute(`data-bs-${Re(a)}`,d)},removeDataAttribute(p,a){p.removeAttribute(`data-bs-${Re(a)}`)},getDataAttributes(p){if(!p)return{};const a={},d=Object.keys(p.dataset).filter(w=>w.startsWith("bs")&&!w.startsWith("bsConfig"));for(const w of d){let P=w.replace(/^bs/,"");P=P.charAt(0).toLowerCase()+P.slice(1,P.length),a[P]=ve(p.dataset[w])}return a},getDataAttribute:(p,a)=>ve(p.getAttribute(`data-bs-${Re(a)}`))};class ye{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(a){return a=this._mergeConfigObj(a),a=this._configAfterMerge(a),this._typeCheckConfig(a),a}_configAfterMerge(a){return a}_mergeConfigObj(a,d){const w=l(d)?ae.getDataAttribute(d,"config"):{};return{...this.constructor.Default,...typeof w=="object"?w:{},...l(d)?ae.getDataAttributes(d):{},...typeof a=="object"?a:{}}}_typeCheckConfig(a,d=this.constructor.DefaultType){for(const[P,j]of Object.entries(d)){const $=a[P],B=l($)?"element":(w=$)==null?`${w}`:Object.prototype.toString.call(w).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(j).test(B))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${P}" provided type "${B}" but expected type "${j}".`)}var w}}class ue extends ye{constructor(a,d){super(),(a=u(a))&&(this._element=a,this._config=this._getConfig(d),r.set(this._element,this.constructor.DATA_KEY,this))}dispose(){r.remove(this._element,this.constructor.DATA_KEY),R.off(this._element,this.constructor.EVENT_KEY);for(const a of Object.getOwnPropertyNames(this))this[a]=null}_queueCallback(a,d,w=!0){b(a,d,w)}_getConfig(a){return a=this._mergeConfigObj(a,this._element),a=this._configAfterMerge(a),this._typeCheckConfig(a),a}static getInstance(a){return r.get(u(a),this.DATA_KEY)}static getOrCreateInstance(a,d={}){return this.getInstance(a)||new this(a,typeof d=="object"?d:null)}static get VERSION(){return"5.3.2"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(a){return`${a}${this.EVENT_KEY}`}}const xe=p=>{let a=p.getAttribute("data-bs-target");if(!a||a==="#"){let d=p.getAttribute("href");if(!d||!d.includes("#")&&!d.startsWith("."))return null;d.includes("#")&&!d.startsWith("#")&&(d=`#${d.split("#")[1]}`),a=d&&d!=="#"?o(d.trim()):null}return a},G={find:(p,a=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(a,p)),findOne:(p,a=document.documentElement)=>Element.prototype.querySelector.call(a,p),children:(p,a)=>[].concat(...p.children).filter(d=>d.matches(a)),parents(p,a){const d=[];let w=p.parentNode.closest(a);for(;w;)d.push(w),w=w.parentNode.closest(a);return d},prev(p,a){let d=p.previousElementSibling;for(;d;){if(d.matches(a))return[d];d=d.previousElementSibling}return[]},next(p,a){let d=p.nextElementSibling;for(;d;){if(d.matches(a))return[d];d=d.nextElementSibling}return[]},focusableChildren(p){const a=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(d=>`${d}:not([tabindex^="-"])`).join(",");return this.find(a,p).filter(d=>!f(d)&&c(d))},getSelectorFromElement(p){const a=xe(p);return a&&G.findOne(a)?a:null},getElementFromSelector(p){const a=xe(p);return a?G.findOne(a):null},getMultipleElementsFromSelector(p){const a=xe(p);return a?G.find(a):[]}},We=(p,a="hide")=>{const d=`click.dismiss${p.EVENT_KEY}`,w=p.NAME;R.on(document,d,`[data-bs-dismiss="${w}"]`,function(P){if(["A","AREA"].includes(this.tagName)&&P.preventDefault(),f(this))return;const j=G.getElementFromSelector(this)||this.closest(`.${w}`);p.getOrCreateInstance(j)[a]()})},mt=".bs.alert",Te=`close${mt}`,xt=`closed${mt}`;class je extends ue{static get NAME(){return"alert"}close(){if(R.trigger(this._element,Te).defaultPrevented)return;this._element.classList.remove("show");const a=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,a)}_destroyElement(){this._element.remove(),R.trigger(this._element,xt),this.dispose()}static jQueryInterface(a){return this.each(function(){const d=je.getOrCreateInstance(this);if(typeof a=="string"){if(d[a]===void 0||a.startsWith("_")||a==="constructor")throw new TypeError(`No method named "${a}"`);d[a](this)}})}}We(je,"close"),v(je);const Ne='[data-bs-toggle="button"]';class ze extends ue{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(a){return this.each(function(){const d=ze.getOrCreateInstance(this);a==="toggle"&&d[a]()})}}R.on(document,"click.bs.button.data-api",Ne,p=>{p.preventDefault();const a=p.target.closest(Ne);ze.getOrCreateInstance(a).toggle()}),v(ze);const gt=".bs.swipe",cr=`touchstart${gt}`,is=`touchmove${gt}`,os=`touchend${gt}`,Dn=`pointerdown${gt}`,vn=`pointerup${gt}`,ci={endCallback:null,leftCallback:null,rightCallback:null},Pr={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Ot extends ye{constructor(a,d){super(),this._element=a,a&&Ot.isSupported()&&(this._config=this._getConfig(d),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return ci}static get DefaultType(){return Pr}static get NAME(){return"swipe"}dispose(){R.off(this._element,gt)}_start(a){this._supportPointerEvents?this._eventIsPointerPenTouch(a)&&(this._deltaX=a.clientX):this._deltaX=a.touches[0].clientX}_end(a){this._eventIsPointerPenTouch(a)&&(this._deltaX=a.clientX-this._deltaX),this._handleSwipe(),g(this._config.endCallback)}_move(a){this._deltaX=a.touches&&a.touches.length>1?0:a.touches[0].clientX-this._deltaX}_handleSwipe(){const a=Math.abs(this._deltaX);if(a<=40)return;const d=a/this._deltaX;this._deltaX=0,d&&g(d>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(R.on(this._element,Dn,a=>this._start(a)),R.on(this._element,vn,a=>this._end(a)),this._element.classList.add("pointer-event")):(R.on(this._element,cr,a=>this._start(a)),R.on(this._element,is,a=>this._move(a)),R.on(this._element,os,a=>this._end(a)))}_eventIsPointerPenTouch(a){return this._supportPointerEvents&&(a.pointerType==="pen"||a.pointerType==="touch")}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Pt=".bs.carousel",jr=".data-api",rn="next",$n="prev",It="left",di="right",$a=`slide${Pt}`,Xi=`slid${Pt}`,ec=`keydown${Pt}`,Ma=`mouseenter${Pt}`,Zi=`mouseleave${Pt}`,Ia=`dragstart${Pt}`,ss=`load${Pt}${jr}`,tc=`click${Pt}${jr}`,as="carousel",Ji="active",ls=".active",za=".carousel-item",L=ls+za,D={ArrowLeft:di,ArrowRight:It},M={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Y={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Z extends ue{constructor(a,d){super(a,d),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=G.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===as&&this.cycle()}static get Default(){return M}static get DefaultType(){return Y}static get NAME(){return"carousel"}next(){this._slide(rn)}nextWhenVisible(){!document.hidden&&c(this._element)&&this.next()}prev(){this._slide($n)}pause(){this._isSliding&&s(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?R.one(this._element,Xi,()=>this.cycle()):this.cycle())}to(a){const d=this._getItems();if(a>d.length-1||a<0)return;if(this._isSliding)return void R.one(this._element,Xi,()=>this.to(a));const w=this._getItemIndex(this._getActive());if(w===a)return;const P=a>w?rn:$n;this._slide(P,d[a])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(a){return a.defaultInterval=a.interval,a}_addEventListeners(){this._config.keyboard&&R.on(this._element,ec,a=>this._keydown(a)),this._config.pause==="hover"&&(R.on(this._element,Ma,()=>this.pause()),R.on(this._element,Zi,()=>this._maybeEnableCycle())),this._config.touch&&Ot.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const d of G.find(".carousel-item img",this._element))R.on(d,Ia,w=>w.preventDefault());const a={leftCallback:()=>this._slide(this._directionToOrder(It)),rightCallback:()=>this._slide(this._directionToOrder(di)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new Ot(this._element,a)}_keydown(a){if(/input|textarea/i.test(a.target.tagName))return;const d=D[a.key];d&&(a.preventDefault(),this._slide(this._directionToOrder(d)))}_getItemIndex(a){return this._getItems().indexOf(a)}_setActiveIndicatorElement(a){if(!this._indicatorsElement)return;const d=G.findOne(ls,this._indicatorsElement);d.classList.remove(Ji),d.removeAttribute("aria-current");const w=G.findOne(`[data-bs-slide-to="${a}"]`,this._indicatorsElement);w&&(w.classList.add(Ji),w.setAttribute("aria-current","true"))}_updateInterval(){const a=this._activeElement||this._getActive();if(!a)return;const d=Number.parseInt(a.getAttribute("data-bs-interval"),10);this._config.interval=d||this._config.defaultInterval}_slide(a,d=null){if(this._isSliding)return;const w=this._getActive(),P=a===rn,j=d||T(this._getItems(),w,P,this._config.wrap);if(j===w)return;const $=this._getItemIndex(j),B=X=>R.trigger(this._element,X,{relatedTarget:j,direction:this._orderToDirection(a),from:this._getItemIndex(w),to:$});if(B($a).defaultPrevented||!w||!j)return;const Q=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement($),this._activeElement=j;const J=P?"carousel-item-start":"carousel-item-end",te=P?"carousel-item-next":"carousel-item-prev";j.classList.add(te),y(j),w.classList.add(J),j.classList.add(J),this._queueCallback(()=>{j.classList.remove(J,te),j.classList.add(Ji),w.classList.remove(Ji,te,J),this._isSliding=!1,B(Xi)},w,this._isAnimated()),Q&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return G.findOne(L,this._element)}_getItems(){return G.find(za,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(a){return C()?a===It?$n:rn:a===It?rn:$n}_orderToDirection(a){return C()?a===$n?It:di:a===$n?di:It}static jQueryInterface(a){return this.each(function(){const d=Z.getOrCreateInstance(this,a);if(typeof a!="number"){if(typeof a=="string"){if(d[a]===void 0||a.startsWith("_")||a==="constructor")throw new TypeError(`No method named "${a}"`);d[a]()}}else d.to(a)})}}R.on(document,tc,"[data-bs-slide], [data-bs-slide-to]",function(p){const a=G.getElementFromSelector(this);if(!a||!a.classList.contains(as))return;p.preventDefault();const d=Z.getOrCreateInstance(a),w=this.getAttribute("data-bs-slide-to");return w?(d.to(w),void d._maybeEnableCycle()):ae.getDataAttribute(this,"slide")==="next"?(d.next(),void d._maybeEnableCycle()):(d.prev(),void d._maybeEnableCycle())}),R.on(window,ss,()=>{const p=G.find('[data-bs-ride="carousel"]');for(const a of p)Z.getOrCreateInstance(a)}),v(Z);const pe=".bs.collapse",de=`show${pe}`,le=`shown${pe}`,ie=`hide${pe}`,Oe=`hidden${pe}`,vt=`click${pe}.data-api`,he="show",De="collapse",ot="collapsing",Vt=`:scope .${De} .${De}`,st='[data-bs-toggle="collapse"]',Nr={parent:null,toggle:!0},us={parent:"(null|element)",toggle:"boolean"};class on extends ue{constructor(a,d){super(a,d),this._isTransitioning=!1,this._triggerArray=[];const w=G.find(st);for(const P of w){const j=G.getSelectorFromElement(P),$=G.find(j).filter(B=>B===this._element);j!==null&&$.length&&this._triggerArray.push(P)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Nr}static get DefaultType(){return us}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let a=[];if(this._config.parent&&(a=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(P=>P!==this._element).map(P=>on.getOrCreateInstance(P,{toggle:!1}))),a.length&&a[0]._isTransitioning||R.trigger(this._element,de).defaultPrevented)return;for(const P of a)P.hide();const d=this._getDimension();this._element.classList.remove(De),this._element.classList.add(ot),this._element.style[d]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const w=`scroll${d[0].toUpperCase()+d.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ot),this._element.classList.add(De,he),this._element.style[d]="",R.trigger(this._element,le)},this._element,!0),this._element.style[d]=`${this._element[w]}px`}hide(){if(this._isTransitioning||!this._isShown()||R.trigger(this._element,ie).defaultPrevented)return;const a=this._getDimension();this._element.style[a]=`${this._element.getBoundingClientRect()[a]}px`,y(this._element),this._element.classList.add(ot),this._element.classList.remove(De,he);for(const d of this._triggerArray){const w=G.getElementFromSelector(d);w&&!this._isShown(w)&&this._addAriaAndCollapsedClass([d],!1)}this._isTransitioning=!0,this._element.style[a]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ot),this._element.classList.add(De),R.trigger(this._element,Oe)},this._element,!0)}_isShown(a=this._element){return a.classList.contains(he)}_configAfterMerge(a){return a.toggle=!!a.toggle,a.parent=u(a.parent),a}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const a=this._getFirstLevelChildren(st);for(const d of a){const w=G.getElementFromSelector(d);w&&this._addAriaAndCollapsedClass([d],this._isShown(w))}}_getFirstLevelChildren(a){const d=G.find(Vt,this._config.parent);return G.find(a,this._config.parent).filter(w=>!d.includes(w))}_addAriaAndCollapsedClass(a,d){if(a.length)for(const w of a)w.classList.toggle("collapsed",!d),w.setAttribute("aria-expanded",d)}static jQueryInterface(a){const d={};return typeof a=="string"&&/show|hide/.test(a)&&(d.toggle=!1),this.each(function(){const w=on.getOrCreateInstance(this,d);if(typeof a=="string"){if(w[a]===void 0)throw new TypeError(`No method named "${a}"`);w[a]()}})}}R.on(document,vt,st,function(p){(p.target.tagName==="A"||p.delegateTarget&&p.delegateTarget.tagName==="A")&&p.preventDefault();for(const a of G.getMultipleElementsFromSelector(this))on.getOrCreateInstance(a,{toggle:!1}).toggle()}),v(on);var et="top",dt="bottom",jt="right",_t="left",Lr="auto",sn=[et,dt,jt,_t],yn="start",Ae="end",Ke="clippingParents",Gt="viewport",Mn="popper",Fa="reference",nc=sn.reduce(function(p,a){return p.concat([a+"-"+yn,a+"-"+Ae])},[]),rc=[].concat(sn,[Lr]).reduce(function(p,a){return p.concat([a,a+"-"+yn,a+"-"+Ae])},[]),Qp="beforeRead",Yp="read",qp="afterRead",Xp="beforeMain",Zp="main",Jp="afterMain",eh="beforeWrite",th="write",nh="afterWrite",rh=[Qp,Yp,qp,Xp,Zp,Jp,eh,th,nh];function qn(p){return p?(p.nodeName||"").toLowerCase():null}function an(p){if(p==null)return window;if(p.toString()!=="[object Window]"){var a=p.ownerDocument;return a&&a.defaultView||window}return p}function fi(p){return p instanceof an(p).Element||p instanceof Element}function wn(p){return p instanceof an(p).HTMLElement||p instanceof HTMLElement}function ic(p){return typeof ShadowRoot<"u"&&(p instanceof an(p).ShadowRoot||p instanceof ShadowRoot)}const oc={name:"applyStyles",enabled:!0,phase:"write",fn:function(p){var a=p.state;Object.keys(a.elements).forEach(function(d){var w=a.styles[d]||{},P=a.attributes[d]||{},j=a.elements[d];wn(j)&&qn(j)&&(Object.assign(j.style,w),Object.keys(P).forEach(function($){var B=P[$];B===!1?j.removeAttribute($):j.setAttribute($,B===!0?"":B)}))})},effect:function(p){var a=p.state,d={popper:{position:a.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(a.elements.popper.style,d.popper),a.styles=d,a.elements.arrow&&Object.assign(a.elements.arrow.style,d.arrow),function(){Object.keys(a.elements).forEach(function(w){var P=a.elements[w],j=a.attributes[w]||{},$=Object.keys(a.styles.hasOwnProperty(w)?a.styles[w]:d[w]).reduce(function(B,Q){return B[Q]="",B},{});wn(P)&&qn(P)&&(Object.assign(P.style,$),Object.keys(j).forEach(function(B){P.removeAttribute(B)}))})}},requires:["computeStyles"]};function Xn(p){return p.split("-")[0]}var pi=Math.max,Ba=Math.min,eo=Math.round;function sc(){var p=navigator.userAgentData;return p!=null&&p.brands&&Array.isArray(p.brands)?p.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}function ih(){return!/^((?!chrome|android).)*safari/i.test(sc())}function to(p,a,d){a===void 0&&(a=!1),d===void 0&&(d=!1);var w=p.getBoundingClientRect(),P=1,j=1;a&&wn(p)&&(P=p.offsetWidth>0&&eo(w.width)/p.offsetWidth||1,j=p.offsetHeight>0&&eo(w.height)/p.offsetHeight||1);var $=(fi(p)?an(p):window).visualViewport,B=!ih()&&d,Q=(w.left+(B&&$?$.offsetLeft:0))/P,J=(w.top+(B&&$?$.offsetTop:0))/j,te=w.width/P,X=w.height/j;return{width:te,height:X,top:J,right:Q+te,bottom:J+X,left:Q,x:Q,y:J}}function ac(p){var a=to(p),d=p.offsetWidth,w=p.offsetHeight;return Math.abs(a.width-d)<=1&&(d=a.width),Math.abs(a.height-w)<=1&&(w=a.height),{x:p.offsetLeft,y:p.offsetTop,width:d,height:w}}function oh(p,a){var d=a.getRootNode&&a.getRootNode();if(p.contains(a))return!0;if(d&&ic(d)){var w=a;do{if(w&&p.isSameNode(w))return!0;w=w.parentNode||w.host}while(w)}return!1}function dr(p){return an(p).getComputedStyle(p)}function $w(p){return["table","td","th"].indexOf(qn(p))>=0}function Rr(p){return((fi(p)?p.ownerDocument:p.document)||window.document).documentElement}function Ua(p){return qn(p)==="html"?p:p.assignedSlot||p.parentNode||(ic(p)?p.host:null)||Rr(p)}function sh(p){return wn(p)&&dr(p).position!=="fixed"?p.offsetParent:null}function cs(p){for(var a=an(p),d=sh(p);d&&$w(d)&&dr(d).position==="static";)d=sh(d);return d&&(qn(d)==="html"||qn(d)==="body"&&dr(d).position==="static")?a:d||function(w){var P=/firefox/i.test(sc());if(/Trident/i.test(sc())&&wn(w)&&dr(w).position==="fixed")return null;var j=Ua(w);for(ic(j)&&(j=j.host);wn(j)&&["html","body"].indexOf(qn(j))<0;){var $=dr(j);if($.transform!=="none"||$.perspective!=="none"||$.contain==="paint"||["transform","perspective"].indexOf($.willChange)!==-1||P&&$.willChange==="filter"||P&&$.filter&&$.filter!=="none")return j;j=j.parentNode}return null}(p)||a}function lc(p){return["top","bottom"].indexOf(p)>=0?"x":"y"}function ds(p,a,d){return pi(p,Ba(a,d))}function ah(p){return Object.assign({},{top:0,right:0,bottom:0,left:0},p)}function lh(p,a){return a.reduce(function(d,w){return d[w]=p,d},{})}const uh={name:"arrow",enabled:!0,phase:"main",fn:function(p){var a,d=p.state,w=p.name,P=p.options,j=d.elements.arrow,$=d.modifiersData.popperOffsets,B=Xn(d.placement),Q=lc(B),J=[_t,jt].indexOf(B)>=0?"height":"width";if(j&&$){var te=function(Ge,Ue){return ah(typeof(Ge=typeof Ge=="function"?Ge(Object.assign({},Ue.rects,{placement:Ue.placement})):Ge)!="number"?Ge:lh(Ge,sn))}(P.padding,d),X=ac(j),_e=Q==="y"?et:_t,ce=Q==="y"?dt:jt,me=d.rects.reference[J]+d.rects.reference[Q]-$[Q]-d.rects.popper[J],fe=$[Q]-d.rects.reference[Q],ge=cs(j),Ve=ge?Q==="y"?ge.clientHeight||0:ge.clientWidth||0:0,Ye=me/2-fe/2,Ce=te[_e],Ie=Ve-X[J]-te[ce],Ee=Ve/2-X[J]/2+Ye,Le=ds(Ce,Ee,Ie),Be=Q;d.modifiersData[w]=((a={})[Be]=Le,a.centerOffset=Le-Ee,a)}},effect:function(p){var a=p.state,d=p.options.element,w=d===void 0?"[data-popper-arrow]":d;w!=null&&(typeof w!="string"||(w=a.elements.popper.querySelector(w)))&&oh(a.elements.popper,w)&&(a.elements.arrow=w)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function no(p){return p.split("-")[1]}var Mw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ch(p){var a,d=p.popper,w=p.popperRect,P=p.placement,j=p.variation,$=p.offsets,B=p.position,Q=p.gpuAcceleration,J=p.adaptive,te=p.roundOffsets,X=p.isFixed,_e=$.x,ce=_e===void 0?0:_e,me=$.y,fe=me===void 0?0:me,ge=typeof te=="function"?te({x:ce,y:fe}):{x:ce,y:fe};ce=ge.x,fe=ge.y;var Ve=$.hasOwnProperty("x"),Ye=$.hasOwnProperty("y"),Ce=_t,Ie=et,Ee=window;if(J){var Le=cs(d),Be="clientHeight",Ge="clientWidth";Le===an(d)&&dr(Le=Rr(d)).position!=="static"&&B==="absolute"&&(Be="scrollHeight",Ge="scrollWidth"),(P===et||(P===_t||P===jt)&&j===Ae)&&(Ie=dt,fe-=(X&&Le===Ee&&Ee.visualViewport?Ee.visualViewport.height:Le[Be])-w.height,fe*=Q?1:-1),P!==_t&&(P!==et&&P!==dt||j!==Ae)||(Ce=jt,ce-=(X&&Le===Ee&&Ee.visualViewport?Ee.visualViewport.width:Le[Ge])-w.width,ce*=Q?1:-1)}var Ue,ft=Object.assign({position:B},J&&Mw),ln=te===!0?function(zn,zt){var _n=zn.x,En=zn.y,at=zt.devicePixelRatio||1;return{x:eo(_n*at)/at||0,y:eo(En*at)/at||0}}({x:ce,y:fe},an(d)):{x:ce,y:fe};return ce=ln.x,fe=ln.y,Q?Object.assign({},ft,((Ue={})[Ie]=Ye?"0":"",Ue[Ce]=Ve?"0":"",Ue.transform=(Ee.devicePixelRatio||1)<=1?"translate("+ce+"px, "+fe+"px)":"translate3d("+ce+"px, "+fe+"px, 0)",Ue)):Object.assign({},ft,((a={})[Ie]=Ye?fe+"px":"",a[Ce]=Ve?ce+"px":"",a.transform="",a))}const uc={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(p){var a=p.state,d=p.options,w=d.gpuAcceleration,P=w===void 0||w,j=d.adaptive,$=j===void 0||j,B=d.roundOffsets,Q=B===void 0||B,J={placement:Xn(a.placement),variation:no(a.placement),popper:a.elements.popper,popperRect:a.rects.popper,gpuAcceleration:P,isFixed:a.options.strategy==="fixed"};a.modifiersData.popperOffsets!=null&&(a.styles.popper=Object.assign({},a.styles.popper,ch(Object.assign({},J,{offsets:a.modifiersData.popperOffsets,position:a.options.strategy,adaptive:$,roundOffsets:Q})))),a.modifiersData.arrow!=null&&(a.styles.arrow=Object.assign({},a.styles.arrow,ch(Object.assign({},J,{offsets:a.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Q})))),a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-placement":a.placement})},data:{}};var Ha={passive:!0};const cc={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(p){var a=p.state,d=p.instance,w=p.options,P=w.scroll,j=P===void 0||P,$=w.resize,B=$===void 0||$,Q=an(a.elements.popper),J=[].concat(a.scrollParents.reference,a.scrollParents.popper);return j&&J.forEach(function(te){te.addEventListener("scroll",d.update,Ha)}),B&&Q.addEventListener("resize",d.update,Ha),function(){j&&J.forEach(function(te){te.removeEventListener("scroll",d.update,Ha)}),B&&Q.removeEventListener("resize",d.update,Ha)}},data:{}};var Iw={left:"right",right:"left",bottom:"top",top:"bottom"};function Wa(p){return p.replace(/left|right|bottom|top/g,function(a){return Iw[a]})}var zw={start:"end",end:"start"};function dh(p){return p.replace(/start|end/g,function(a){return zw[a]})}function dc(p){var a=an(p);return{scrollLeft:a.pageXOffset,scrollTop:a.pageYOffset}}function fc(p){return to(Rr(p)).left+dc(p).scrollLeft}function pc(p){var a=dr(p),d=a.overflow,w=a.overflowX,P=a.overflowY;return/auto|scroll|overlay|hidden/.test(d+P+w)}function fh(p){return["html","body","#document"].indexOf(qn(p))>=0?p.ownerDocument.body:wn(p)&&pc(p)?p:fh(Ua(p))}function fs(p,a){var d;a===void 0&&(a=[]);var w=fh(p),P=w===((d=p.ownerDocument)==null?void 0:d.body),j=an(w),$=P?[j].concat(j.visualViewport||[],pc(w)?w:[]):w,B=a.concat($);return P?B:B.concat(fs(Ua($)))}function hc(p){return Object.assign({},p,{left:p.x,top:p.y,right:p.x+p.width,bottom:p.y+p.height})}function ph(p,a,d){return a===Gt?hc(function(w,P){var j=an(w),$=Rr(w),B=j.visualViewport,Q=$.clientWidth,J=$.clientHeight,te=0,X=0;if(B){Q=B.width,J=B.height;var _e=ih();(_e||!_e&&P==="fixed")&&(te=B.offsetLeft,X=B.offsetTop)}return{width:Q,height:J,x:te+fc(w),y:X}}(p,d)):fi(a)?function(w,P){var j=to(w,!1,P==="fixed");return j.top=j.top+w.clientTop,j.left=j.left+w.clientLeft,j.bottom=j.top+w.clientHeight,j.right=j.left+w.clientWidth,j.width=w.clientWidth,j.height=w.clientHeight,j.x=j.left,j.y=j.top,j}(a,d):hc(function(w){var P,j=Rr(w),$=dc(w),B=(P=w.ownerDocument)==null?void 0:P.body,Q=pi(j.scrollWidth,j.clientWidth,B?B.scrollWidth:0,B?B.clientWidth:0),J=pi(j.scrollHeight,j.clientHeight,B?B.scrollHeight:0,B?B.clientHeight:0),te=-$.scrollLeft+fc(w),X=-$.scrollTop;return dr(B||j).direction==="rtl"&&(te+=pi(j.clientWidth,B?B.clientWidth:0)-Q),{width:Q,height:J,x:te,y:X}}(Rr(p)))}function hh(p){var a,d=p.reference,w=p.element,P=p.placement,j=P?Xn(P):null,$=P?no(P):null,B=d.x+d.width/2-w.width/2,Q=d.y+d.height/2-w.height/2;switch(j){case et:a={x:B,y:d.y-w.height};break;case dt:a={x:B,y:d.y+d.height};break;case jt:a={x:d.x+d.width,y:Q};break;case _t:a={x:d.x-w.width,y:Q};break;default:a={x:d.x,y:d.y}}var J=j?lc(j):null;if(J!=null){var te=J==="y"?"height":"width";switch($){case yn:a[J]=a[J]-(d[te]/2-w[te]/2);break;case Ae:a[J]=a[J]+(d[te]/2-w[te]/2)}}return a}function ro(p,a){a===void 0&&(a={});var d=a,w=d.placement,P=w===void 0?p.placement:w,j=d.strategy,$=j===void 0?p.strategy:j,B=d.boundary,Q=B===void 0?Ke:B,J=d.rootBoundary,te=J===void 0?Gt:J,X=d.elementContext,_e=X===void 0?Mn:X,ce=d.altBoundary,me=ce!==void 0&&ce,fe=d.padding,ge=fe===void 0?0:fe,Ve=ah(typeof ge!="number"?ge:lh(ge,sn)),Ye=_e===Mn?Fa:Mn,Ce=p.rects.popper,Ie=p.elements[me?Ye:_e],Ee=function(zt,_n,En,at){var Zn=_n==="clippingParents"?function(Qe){var Ft=fs(Ua(Qe)),bn=["absolute","fixed"].indexOf(dr(Qe).position)>=0&&wn(Qe)?cs(Qe):Qe;return fi(bn)?Ft.filter(function(Dr){return fi(Dr)&&oh(Dr,bn)&&qn(Dr)!=="body"}):[]}(zt):[].concat(_n),Jn=[].concat(Zn,[En]),so=Jn[0],St=Jn.reduce(function(Qe,Ft){var bn=ph(zt,Ft,at);return Qe.top=pi(bn.top,Qe.top),Qe.right=Ba(bn.right,Qe.right),Qe.bottom=Ba(bn.bottom,Qe.bottom),Qe.left=pi(bn.left,Qe.left),Qe},ph(zt,so,at));return St.width=St.right-St.left,St.height=St.bottom-St.top,St.x=St.left,St.y=St.top,St}(fi(Ie)?Ie:Ie.contextElement||Rr(p.elements.popper),Q,te,$),Le=to(p.elements.reference),Be=hh({reference:Le,element:Ce,strategy:"absolute",placement:P}),Ge=hc(Object.assign({},Ce,Be)),Ue=_e===Mn?Ge:Le,ft={top:Ee.top-Ue.top+Ve.top,bottom:Ue.bottom-Ee.bottom+Ve.bottom,left:Ee.left-Ue.left+Ve.left,right:Ue.right-Ee.right+Ve.right},ln=p.modifiersData.offset;if(_e===Mn&&ln){var zn=ln[P];Object.keys(ft).forEach(function(zt){var _n=[jt,dt].indexOf(zt)>=0?1:-1,En=[et,dt].indexOf(zt)>=0?"y":"x";ft[zt]+=zn[En]*_n})}return ft}function Fw(p,a){a===void 0&&(a={});var d=a,w=d.placement,P=d.boundary,j=d.rootBoundary,$=d.padding,B=d.flipVariations,Q=d.allowedAutoPlacements,J=Q===void 0?rc:Q,te=no(w),X=te?B?nc:nc.filter(function(me){return no(me)===te}):sn,_e=X.filter(function(me){return J.indexOf(me)>=0});_e.length===0&&(_e=X);var ce=_e.reduce(function(me,fe){return me[fe]=ro(p,{placement:fe,boundary:P,rootBoundary:j,padding:$})[Xn(fe)],me},{});return Object.keys(ce).sort(function(me,fe){return ce[me]-ce[fe]})}const mh={name:"flip",enabled:!0,phase:"main",fn:function(p){var a=p.state,d=p.options,w=p.name;if(!a.modifiersData[w]._skip){for(var P=d.mainAxis,j=P===void 0||P,$=d.altAxis,B=$===void 0||$,Q=d.fallbackPlacements,J=d.padding,te=d.boundary,X=d.rootBoundary,_e=d.altBoundary,ce=d.flipVariations,me=ce===void 0||ce,fe=d.allowedAutoPlacements,ge=a.options.placement,Ve=Xn(ge),Ye=Q||(Ve!==ge&&me?function(Qe){if(Xn(Qe)===Lr)return[];var Ft=Wa(Qe);return[dh(Qe),Ft,dh(Ft)]}(ge):[Wa(ge)]),Ce=[ge].concat(Ye).reduce(function(Qe,Ft){return Qe.concat(Xn(Ft)===Lr?Fw(a,{placement:Ft,boundary:te,rootBoundary:X,padding:J,flipVariations:me,allowedAutoPlacements:fe}):Ft)},[]),Ie=a.rects.reference,Ee=a.rects.popper,Le=new Map,Be=!0,Ge=Ce[0],Ue=0;Ue=0,_n=zt?"width":"height",En=ro(a,{placement:ft,boundary:te,rootBoundary:X,altBoundary:_e,padding:J}),at=zt?zn?jt:_t:zn?dt:et;Ie[_n]>Ee[_n]&&(at=Wa(at));var Zn=Wa(at),Jn=[];if(j&&Jn.push(En[ln]<=0),B&&Jn.push(En[at]<=0,En[Zn]<=0),Jn.every(function(Qe){return Qe})){Ge=ft,Be=!1;break}Le.set(ft,Jn)}if(Be)for(var so=function(Qe){var Ft=Ce.find(function(bn){var Dr=Le.get(bn);if(Dr)return Dr.slice(0,Qe).every(function(Ja){return Ja})});if(Ft)return Ge=Ft,"break"},St=me?3:1;St>0&&so(St)!=="break";St--);a.placement!==Ge&&(a.modifiersData[w]._skip=!0,a.placement=Ge,a.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function gh(p,a,d){return d===void 0&&(d={x:0,y:0}),{top:p.top-a.height-d.y,right:p.right-a.width+d.x,bottom:p.bottom-a.height+d.y,left:p.left-a.width-d.x}}function vh(p){return[et,jt,dt,_t].some(function(a){return p[a]>=0})}const yh={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(p){var a=p.state,d=p.name,w=a.rects.reference,P=a.rects.popper,j=a.modifiersData.preventOverflow,$=ro(a,{elementContext:"reference"}),B=ro(a,{altBoundary:!0}),Q=gh($,w),J=gh(B,P,j),te=vh(Q),X=vh(J);a.modifiersData[d]={referenceClippingOffsets:Q,popperEscapeOffsets:J,isReferenceHidden:te,hasPopperEscaped:X},a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-reference-hidden":te,"data-popper-escaped":X})}},wh={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(p){var a=p.state,d=p.options,w=p.name,P=d.offset,j=P===void 0?[0,0]:P,$=rc.reduce(function(te,X){return te[X]=function(_e,ce,me){var fe=Xn(_e),ge=[_t,et].indexOf(fe)>=0?-1:1,Ve=typeof me=="function"?me(Object.assign({},ce,{placement:_e})):me,Ye=Ve[0],Ce=Ve[1];return Ye=Ye||0,Ce=(Ce||0)*ge,[_t,jt].indexOf(fe)>=0?{x:Ce,y:Ye}:{x:Ye,y:Ce}}(X,a.rects,j),te},{}),B=$[a.placement],Q=B.x,J=B.y;a.modifiersData.popperOffsets!=null&&(a.modifiersData.popperOffsets.x+=Q,a.modifiersData.popperOffsets.y+=J),a.modifiersData[w]=$}},mc={name:"popperOffsets",enabled:!0,phase:"read",fn:function(p){var a=p.state,d=p.name;a.modifiersData[d]=hh({reference:a.rects.reference,element:a.rects.popper,strategy:"absolute",placement:a.placement})},data:{}},xh={name:"preventOverflow",enabled:!0,phase:"main",fn:function(p){var a=p.state,d=p.options,w=p.name,P=d.mainAxis,j=P===void 0||P,$=d.altAxis,B=$!==void 0&&$,Q=d.boundary,J=d.rootBoundary,te=d.altBoundary,X=d.padding,_e=d.tether,ce=_e===void 0||_e,me=d.tetherOffset,fe=me===void 0?0:me,ge=ro(a,{boundary:Q,rootBoundary:J,padding:X,altBoundary:te}),Ve=Xn(a.placement),Ye=no(a.placement),Ce=!Ye,Ie=lc(Ve),Ee=Ie==="x"?"y":"x",Le=a.modifiersData.popperOffsets,Be=a.rects.reference,Ge=a.rects.popper,Ue=typeof fe=="function"?fe(Object.assign({},a.rects,{placement:a.placement})):fe,ft=typeof Ue=="number"?{mainAxis:Ue,altAxis:Ue}:Object.assign({mainAxis:0,altAxis:0},Ue),ln=a.modifiersData.offset?a.modifiersData.offset[a.placement]:null,zn={x:0,y:0};if(Le){if(j){var zt,_n=Ie==="y"?et:_t,En=Ie==="y"?dt:jt,at=Ie==="y"?"height":"width",Zn=Le[Ie],Jn=Zn+ge[_n],so=Zn-ge[En],St=ce?-Ge[at]/2:0,Qe=Ye===yn?Be[at]:Ge[at],Ft=Ye===yn?-Ge[at]:-Be[at],bn=a.elements.arrow,Dr=ce&&bn?ac(bn):{width:0,height:0},Ja=a.modifiersData["arrow#persistent"]?a.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},sm=Ja[_n],am=Ja[En],el=ds(0,Be[at],Dr[at]),m_=Ce?Be[at]/2-St-el-sm-ft.mainAxis:Qe-el-sm-ft.mainAxis,g_=Ce?-Be[at]/2+St+el+am+ft.mainAxis:Ft+el+am+ft.mainAxis,Oc=a.elements.arrow&&cs(a.elements.arrow),v_=Oc?Ie==="y"?Oc.clientTop||0:Oc.clientLeft||0:0,lm=(zt=ln==null?void 0:ln[Ie])!=null?zt:0,y_=Zn+g_-lm,um=ds(ce?Ba(Jn,Zn+m_-lm-v_):Jn,Zn,ce?pi(so,y_):so);Le[Ie]=um,zn[Ie]=um-Zn}if(B){var cm,w_=Ie==="x"?et:_t,x_=Ie==="x"?dt:jt,_i=Le[Ee],tl=Ee==="y"?"height":"width",dm=_i+ge[w_],fm=_i-ge[x_],Pc=[et,_t].indexOf(Ve)!==-1,pm=(cm=ln==null?void 0:ln[Ee])!=null?cm:0,hm=Pc?dm:_i-Be[tl]-Ge[tl]-pm+ft.altAxis,mm=Pc?_i+Be[tl]+Ge[tl]-pm-ft.altAxis:fm,gm=ce&&Pc?function(__,E_,jc){var vm=ds(__,E_,jc);return vm>jc?jc:vm}(hm,_i,mm):ds(ce?hm:dm,_i,ce?mm:fm);Le[Ee]=gm,zn[Ee]=gm-_i}a.modifiersData[w]=zn}},requiresIfExists:["offset"]};function Bw(p,a,d){d===void 0&&(d=!1);var w,P,j=wn(a),$=wn(a)&&function(X){var _e=X.getBoundingClientRect(),ce=eo(_e.width)/X.offsetWidth||1,me=eo(_e.height)/X.offsetHeight||1;return ce!==1||me!==1}(a),B=Rr(a),Q=to(p,$,d),J={scrollLeft:0,scrollTop:0},te={x:0,y:0};return(j||!j&&!d)&&((qn(a)!=="body"||pc(B))&&(J=(w=a)!==an(w)&&wn(w)?{scrollLeft:(P=w).scrollLeft,scrollTop:P.scrollTop}:dc(w)),wn(a)?((te=to(a,!0)).x+=a.clientLeft,te.y+=a.clientTop):B&&(te.x=fc(B))),{x:Q.left+J.scrollLeft-te.x,y:Q.top+J.scrollTop-te.y,width:Q.width,height:Q.height}}function Uw(p){var a=new Map,d=new Set,w=[];function P(j){d.add(j.name),[].concat(j.requires||[],j.requiresIfExists||[]).forEach(function($){if(!d.has($)){var B=a.get($);B&&P(B)}}),w.push(j)}return p.forEach(function(j){a.set(j.name,j)}),p.forEach(function(j){d.has(j.name)||P(j)}),w}var _h={placement:"bottom",modifiers:[],strategy:"absolute"};function Eh(){for(var p=arguments.length,a=new Array(p),d=0;dNumber.parseInt(d,10)):typeof a=="function"?d=>a(d,this._element):a}_getPopperConfig(){const a={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(ae.setDataAttribute(this._menu,"popper","static"),a.modifiers=[{name:"applyStyles",enabled:!1}]),{...a,...g(this._config.popperConfig,[a])}}_selectMenuItem({key:a,target:d}){const w=G.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(P=>c(P));w.length&&T(w,d,a===kh,!w.includes(d)).focus()}static jQueryInterface(a){return this.each(function(){const d=In.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0)throw new TypeError(`No method named "${a}"`);d[a]()}})}static clearMenus(a){if(a.button===2||a.type==="keyup"&&a.key!=="Tab")return;const d=G.find(Xw);for(const w of d){const P=In.getInstance(w);if(!P||P._config.autoClose===!1)continue;const j=a.composedPath(),$=j.includes(P._menu);if(j.includes(P._element)||P._config.autoClose==="inside"&&!$||P._config.autoClose==="outside"&&$||P._menu.contains(a.target)&&(a.type==="keyup"&&a.key==="Tab"||/input|select|option|textarea|form/i.test(a.target.tagName)))continue;const B={relatedTarget:P._element};a.type==="click"&&(B.clickEvent=a),P._completeHide(B)}}static dataApiKeydownHandler(a){const d=/input|textarea/i.test(a.target.tagName),w=a.key==="Escape",P=[Vw,kh].includes(a.key);if(!P&&!w||d&&!w)return;a.preventDefault();const j=this.matches(mi)?this:G.prev(this,mi)[0]||G.next(this,mi)[0]||G.findOne(mi,a.delegateTarget.parentNode),$=In.getOrCreateInstance(j);if(P)return a.stopPropagation(),$.show(),void $._selectMenuItem(a);$._isShown()&&(a.stopPropagation(),$.hide(),j.focus())}}R.on(document,Th,mi,In.dataApiKeydownHandler),R.on(document,Th,Ga,In.dataApiKeydownHandler),R.on(document,Ch,In.clearMenus),R.on(document,qw,In.clearMenus),R.on(document,Ch,mi,function(p){p.preventDefault(),In.getOrCreateInstance(this).toggle()}),v(In);const Oh="backdrop",Ph="show",jh=`mousedown.bs.${Oh}`,sx={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ax={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Nh extends ye{constructor(a){super(),this._config=this._getConfig(a),this._isAppended=!1,this._element=null}static get Default(){return sx}static get DefaultType(){return ax}static get NAME(){return Oh}show(a){if(!this._config.isVisible)return void g(a);this._append();const d=this._getElement();this._config.isAnimated&&y(d),d.classList.add(Ph),this._emulateAnimation(()=>{g(a)})}hide(a){this._config.isVisible?(this._getElement().classList.remove(Ph),this._emulateAnimation(()=>{this.dispose(),g(a)})):g(a)}dispose(){this._isAppended&&(R.off(this._element,jh),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const a=document.createElement("div");a.className=this._config.className,this._config.isAnimated&&a.classList.add("fade"),this._element=a}return this._element}_configAfterMerge(a){return a.rootElement=u(a.rootElement),a}_append(){if(this._isAppended)return;const a=this._getElement();this._config.rootElement.append(a),R.on(a,jh,()=>{g(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(a){b(a,this._getElement(),this._config.isAnimated)}}const Ka=".bs.focustrap",lx=`focusin${Ka}`,ux=`keydown.tab${Ka}`,Lh="backward",cx={autofocus:!0,trapElement:null},dx={autofocus:"boolean",trapElement:"element"};class Rh extends ye{constructor(a){super(),this._config=this._getConfig(a),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return cx}static get DefaultType(){return dx}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),R.off(document,Ka),R.on(document,lx,a=>this._handleFocusin(a)),R.on(document,ux,a=>this._handleKeydown(a)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,R.off(document,Ka))}_handleFocusin(a){const{trapElement:d}=this._config;if(a.target===document||a.target===d||d.contains(a.target))return;const w=G.focusableChildren(d);w.length===0?d.focus():this._lastTabNavDirection===Lh?w[w.length-1].focus():w[0].focus()}_handleKeydown(a){a.key==="Tab"&&(this._lastTabNavDirection=a.shiftKey?Lh:"forward")}}const Ah=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Dh=".sticky-top",Qa="padding-right",$h="margin-right";class yc{constructor(){this._element=document.body}getWidth(){const a=document.documentElement.clientWidth;return Math.abs(window.innerWidth-a)}hide(){const a=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Qa,d=>d+a),this._setElementAttributes(Ah,Qa,d=>d+a),this._setElementAttributes(Dh,$h,d=>d-a)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Qa),this._resetElementAttributes(Ah,Qa),this._resetElementAttributes(Dh,$h)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(a,d,w){const P=this.getWidth();this._applyManipulationCallback(a,j=>{if(j!==this._element&&window.innerWidth>j.clientWidth+P)return;this._saveInitialAttribute(j,d);const $=window.getComputedStyle(j).getPropertyValue(d);j.style.setProperty(d,`${w(Number.parseFloat($))}px`)})}_saveInitialAttribute(a,d){const w=a.style.getPropertyValue(d);w&&ae.setDataAttribute(a,d,w)}_resetElementAttributes(a,d){this._applyManipulationCallback(a,w=>{const P=ae.getDataAttribute(w,d);P!==null?(ae.removeDataAttribute(w,d),w.style.setProperty(d,P)):w.style.removeProperty(d)})}_applyManipulationCallback(a,d){if(l(a))d(a);else for(const w of G.find(a,this._element))d(w)}}const xn=".bs.modal",fx=`hide${xn}`,px=`hidePrevented${xn}`,Mh=`hidden${xn}`,Ih=`show${xn}`,hx=`shown${xn}`,mx=`resize${xn}`,gx=`click.dismiss${xn}`,vx=`mousedown.dismiss${xn}`,yx=`keydown.dismiss${xn}`,wx=`click${xn}.data-api`,zh="modal-open",Fh="show",wc="modal-static",xx={backdrop:!0,focus:!0,keyboard:!0},_x={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class gi extends ue{constructor(a,d){super(a,d),this._dialog=G.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new yc,this._addEventListeners()}static get Default(){return xx}static get DefaultType(){return _x}static get NAME(){return"modal"}toggle(a){return this._isShown?this.hide():this.show(a)}show(a){this._isShown||this._isTransitioning||R.trigger(this._element,Ih,{relatedTarget:a}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(zh),this._adjustDialog(),this._backdrop.show(()=>this._showElement(a)))}hide(){this._isShown&&!this._isTransitioning&&(R.trigger(this._element,fx).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Fh),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){R.off(window,xn),R.off(this._dialog,xn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Nh({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Rh({trapElement:this._element})}_showElement(a){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const d=G.findOne(".modal-body",this._dialog);d&&(d.scrollTop=0),y(this._element),this._element.classList.add(Fh),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,R.trigger(this._element,hx,{relatedTarget:a})},this._dialog,this._isAnimated())}_addEventListeners(){R.on(this._element,yx,a=>{a.key==="Escape"&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),R.on(window,mx,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),R.on(this._element,vx,a=>{R.one(this._element,gx,d=>{this._element===a.target&&this._element===d.target&&(this._config.backdrop!=="static"?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(zh),this._resetAdjustments(),this._scrollBar.reset(),R.trigger(this._element,Mh)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(R.trigger(this._element,px).defaultPrevented)return;const a=this._element.scrollHeight>document.documentElement.clientHeight,d=this._element.style.overflowY;d==="hidden"||this._element.classList.contains(wc)||(a||(this._element.style.overflowY="hidden"),this._element.classList.add(wc),this._queueCallback(()=>{this._element.classList.remove(wc),this._queueCallback(()=>{this._element.style.overflowY=d},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const a=this._element.scrollHeight>document.documentElement.clientHeight,d=this._scrollBar.getWidth(),w=d>0;if(w&&!a){const P=C()?"paddingLeft":"paddingRight";this._element.style[P]=`${d}px`}if(!w&&a){const P=C()?"paddingRight":"paddingLeft";this._element.style[P]=`${d}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(a,d){return this.each(function(){const w=gi.getOrCreateInstance(this,a);if(typeof a=="string"){if(w[a]===void 0)throw new TypeError(`No method named "${a}"`);w[a](d)}})}}R.on(document,wx,'[data-bs-toggle="modal"]',function(p){const a=G.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&p.preventDefault(),R.one(a,Ih,w=>{w.defaultPrevented||R.one(a,Mh,()=>{c(this)&&this.focus()})});const d=G.findOne(".modal.show");d&&gi.getInstance(d).hide(),gi.getOrCreateInstance(a).toggle(this)}),We(gi),v(gi);const fr=".bs.offcanvas",Bh=".data-api",Ex=`load${fr}${Bh}`,Uh="show",Hh="showing",Wh="hiding",Vh=".offcanvas.show",bx=`show${fr}`,Sx=`shown${fr}`,kx=`hide${fr}`,Gh=`hidePrevented${fr}`,Kh=`hidden${fr}`,Cx=`resize${fr}`,Tx=`click${fr}${Bh}`,Ox=`keydown.dismiss${fr}`,Px={backdrop:!0,keyboard:!0,scroll:!1},jx={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class pr extends ue{constructor(a,d){super(a,d),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Px}static get DefaultType(){return jx}static get NAME(){return"offcanvas"}toggle(a){return this._isShown?this.hide():this.show(a)}show(a){this._isShown||R.trigger(this._element,bx,{relatedTarget:a}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new yc().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Hh),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Uh),this._element.classList.remove(Hh),R.trigger(this._element,Sx,{relatedTarget:a})},this._element,!0))}hide(){this._isShown&&(R.trigger(this._element,kx).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Wh),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Uh,Wh),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new yc().reset(),R.trigger(this._element,Kh)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const a=!!this._config.backdrop;return new Nh({className:"offcanvas-backdrop",isVisible:a,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:a?()=>{this._config.backdrop!=="static"?this.hide():R.trigger(this._element,Gh)}:null})}_initializeFocusTrap(){return new Rh({trapElement:this._element})}_addEventListeners(){R.on(this._element,Ox,a=>{a.key==="Escape"&&(this._config.keyboard?this.hide():R.trigger(this._element,Gh))})}static jQueryInterface(a){return this.each(function(){const d=pr.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0||a.startsWith("_")||a==="constructor")throw new TypeError(`No method named "${a}"`);d[a](this)}})}}R.on(document,Tx,'[data-bs-toggle="offcanvas"]',function(p){const a=G.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&p.preventDefault(),f(this))return;R.one(a,Kh,()=>{c(this)&&this.focus()});const d=G.findOne(Vh);d&&d!==a&&pr.getInstance(d).hide(),pr.getOrCreateInstance(a).toggle(this)}),R.on(window,Ex,()=>{for(const p of G.find(Vh))pr.getOrCreateInstance(p).show()}),R.on(window,Cx,()=>{for(const p of G.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(p).position!=="fixed"&&pr.getOrCreateInstance(p).hide()}),We(pr),v(pr);const Qh={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Nx=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Lx=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Rx=(p,a)=>{const d=p.nodeName.toLowerCase();return a.includes(d)?!Nx.has(d)||!!Lx.test(p.nodeValue):a.filter(w=>w instanceof RegExp).some(w=>w.test(d))},Ax={allowList:Qh,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Dx={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},$x={entry:"(string|element|function|null)",selector:"(string|element)"};class Mx extends ye{constructor(a){super(),this._config=this._getConfig(a)}static get Default(){return Ax}static get DefaultType(){return Dx}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(a=>this._resolvePossibleFunction(a)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(a){return this._checkContent(a),this._config.content={...this._config.content,...a},this}toHtml(){const a=document.createElement("div");a.innerHTML=this._maybeSanitize(this._config.template);for(const[P,j]of Object.entries(this._config.content))this._setContent(a,j,P);const d=a.children[0],w=this._resolvePossibleFunction(this._config.extraClass);return w&&d.classList.add(...w.split(" ")),d}_typeCheckConfig(a){super._typeCheckConfig(a),this._checkContent(a.content)}_checkContent(a){for(const[d,w]of Object.entries(a))super._typeCheckConfig({selector:d,entry:w},$x)}_setContent(a,d,w){const P=G.findOne(w,a);P&&((d=this._resolvePossibleFunction(d))?l(d)?this._putElementInTemplate(u(d),P):this._config.html?P.innerHTML=this._maybeSanitize(d):P.textContent=d:P.remove())}_maybeSanitize(a){return this._config.sanitize?function(d,w,P){if(!d.length)return d;if(P&&typeof P=="function")return P(d);const j=new window.DOMParser().parseFromString(d,"text/html"),$=[].concat(...j.body.querySelectorAll("*"));for(const B of $){const Q=B.nodeName.toLowerCase();if(!Object.keys(w).includes(Q)){B.remove();continue}const J=[].concat(...B.attributes),te=[].concat(w["*"]||[],w[Q]||[]);for(const X of J)Rx(X,te)||B.removeAttribute(X.nodeName)}return j.body.innerHTML}(a,this._config.allowList,this._config.sanitizeFn):a}_resolvePossibleFunction(a){return g(a,[this])}_putElementInTemplate(a,d){if(this._config.html)return d.innerHTML="",void d.append(a);d.textContent=a.textContent}}const Ix=new Set(["sanitize","allowList","sanitizeFn"]),xc="fade",Ya="show",Yh=".modal",qh="hide.bs.modal",ps="hover",_c="focus",zx={AUTO:"auto",TOP:"top",RIGHT:C()?"left":"right",BOTTOM:"bottom",LEFT:C()?"right":"left"},Fx={allowList:Qh,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},Bx={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class vi extends ue{constructor(a,d){if(bh===void 0)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(a,d),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Fx}static get DefaultType(){return Bx}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),R.off(this._element.closest(Yh),qh,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const a=R.trigger(this._element,this.constructor.eventName("show")),d=(h(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(a.defaultPrevented||!d)return;this._disposePopper();const w=this._getTipElement();this._element.setAttribute("aria-describedby",w.getAttribute("id"));const{container:P}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(P.append(w),R.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(w),w.classList.add(Ya),"ontouchstart"in document.documentElement)for(const j of[].concat(...document.body.children))R.on(j,"mouseover",m);this._queueCallback(()=>{R.trigger(this._element,this.constructor.eventName("shown")),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!R.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(Ya),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))R.off(a,"mouseover",m);this._activeTrigger.click=!1,this._activeTrigger[_c]=!1,this._activeTrigger[ps]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),R.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(a){const d=this._getTemplateFactory(a).toHtml();if(!d)return null;d.classList.remove(xc,Ya),d.classList.add(`bs-${this.constructor.NAME}-auto`);const w=(P=>{do P+=Math.floor(1e6*Math.random());while(document.getElementById(P));return P})(this.constructor.NAME).toString();return d.setAttribute("id",w),this._isAnimated()&&d.classList.add(xc),d}setContent(a){this._newContent=a,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(a){return this._templateFactory?this._templateFactory.changeContent(a):this._templateFactory=new Mx({...this._config,content:a,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(a){return this.constructor.getOrCreateInstance(a.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(xc)}_isShown(){return this.tip&&this.tip.classList.contains(Ya)}_createPopper(a){const d=g(this._config.placement,[this,a,this._element]),w=zx[d.toUpperCase()];return gc(this._element,a,this._getPopperConfig(w))}_getOffset(){const{offset:a}=this._config;return typeof a=="string"?a.split(",").map(d=>Number.parseInt(d,10)):typeof a=="function"?d=>a(d,this._element):a}_resolvePossibleFunction(a){return g(a,[this._element])}_getPopperConfig(a){const d={placement:a,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:w=>{this._getTipElement().setAttribute("data-popper-placement",w.state.placement)}}]};return{...d,...g(this._config.popperConfig,[d])}}_setListeners(){const a=this._config.trigger.split(" ");for(const d of a)if(d==="click")R.on(this._element,this.constructor.eventName("click"),this._config.selector,w=>{this._initializeOnDelegatedTarget(w).toggle()});else if(d!=="manual"){const w=d===ps?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),P=d===ps?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");R.on(this._element,w,this._config.selector,j=>{const $=this._initializeOnDelegatedTarget(j);$._activeTrigger[j.type==="focusin"?_c:ps]=!0,$._enter()}),R.on(this._element,P,this._config.selector,j=>{const $=this._initializeOnDelegatedTarget(j);$._activeTrigger[j.type==="focusout"?_c:ps]=$._element.contains(j.relatedTarget),$._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},R.on(this._element.closest(Yh),qh,this._hideModalHandler)}_fixTitle(){const a=this._element.getAttribute("title");a&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",a),this._element.setAttribute("data-bs-original-title",a),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(a,d){clearTimeout(this._timeout),this._timeout=setTimeout(a,d)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(a){const d=ae.getDataAttributes(this._element);for(const w of Object.keys(d))Ix.has(w)&&delete d[w];return a={...d,...typeof a=="object"&&a?a:{}},a=this._mergeConfigObj(a),a=this._configAfterMerge(a),this._typeCheckConfig(a),a}_configAfterMerge(a){return a.container=a.container===!1?document.body:u(a.container),typeof a.delay=="number"&&(a.delay={show:a.delay,hide:a.delay}),typeof a.title=="number"&&(a.title=a.title.toString()),typeof a.content=="number"&&(a.content=a.content.toString()),a}_getDelegateConfig(){const a={};for(const[d,w]of Object.entries(this._config))this.constructor.Default[d]!==w&&(a[d]=w);return a.selector=!1,a.trigger="manual",a}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(a){return this.each(function(){const d=vi.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0)throw new TypeError(`No method named "${a}"`);d[a]()}})}}v(vi);const Ux={...vi.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},Hx={...vi.DefaultType,content:"(null|string|element|function)"};class qa extends vi{static get Default(){return Ux}static get DefaultType(){return Hx}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(a){return this.each(function(){const d=qa.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0)throw new TypeError(`No method named "${a}"`);d[a]()}})}}v(qa);const Ec=".bs.scrollspy",Wx=`activate${Ec}`,Xh=`click${Ec}`,Vx=`load${Ec}.data-api`,oo="active",bc="[href]",Zh=".nav-link",Gx=`${Zh}, .nav-item > ${Zh}, .list-group-item`,Kx={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Qx={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class hs extends ue{constructor(a,d){super(a,d),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Kx}static get DefaultType(){return Qx}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const a of this._observableSections.values())this._observer.observe(a)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(a){return a.target=u(a.target)||document.body,a.rootMargin=a.offset?`${a.offset}px 0px -30%`:a.rootMargin,typeof a.threshold=="string"&&(a.threshold=a.threshold.split(",").map(d=>Number.parseFloat(d))),a}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(R.off(this._config.target,Xh),R.on(this._config.target,Xh,bc,a=>{const d=this._observableSections.get(a.target.hash);if(d){a.preventDefault();const w=this._rootElement||window,P=d.offsetTop-this._element.offsetTop;if(w.scrollTo)return void w.scrollTo({top:P,behavior:"smooth"});w.scrollTop=P}}))}_getNewObserver(){const a={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(d=>this._observerCallback(d),a)}_observerCallback(a){const d=$=>this._targetLinks.get(`#${$.target.id}`),w=$=>{this._previousScrollData.visibleEntryTop=$.target.offsetTop,this._process(d($))},P=(this._rootElement||document.documentElement).scrollTop,j=P>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=P;for(const $ of a){if(!$.isIntersecting){this._activeTarget=null,this._clearActiveClass(d($));continue}const B=$.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(j&&B){if(w($),!P)return}else j||B||w($)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const a=G.find(bc,this._config.target);for(const d of a){if(!d.hash||f(d))continue;const w=G.findOne(decodeURI(d.hash),this._element);c(w)&&(this._targetLinks.set(decodeURI(d.hash),d),this._observableSections.set(d.hash,w))}}_process(a){this._activeTarget!==a&&(this._clearActiveClass(this._config.target),this._activeTarget=a,a.classList.add(oo),this._activateParents(a),R.trigger(this._element,Wx,{relatedTarget:a}))}_activateParents(a){if(a.classList.contains("dropdown-item"))G.findOne(".dropdown-toggle",a.closest(".dropdown")).classList.add(oo);else for(const d of G.parents(a,".nav, .list-group"))for(const w of G.prev(d,Gx))w.classList.add(oo)}_clearActiveClass(a){a.classList.remove(oo);const d=G.find(`${bc}.${oo}`,a);for(const w of d)w.classList.remove(oo)}static jQueryInterface(a){return this.each(function(){const d=hs.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0||a.startsWith("_")||a==="constructor")throw new TypeError(`No method named "${a}"`);d[a]()}})}}R.on(window,Vx,()=>{for(const p of G.find('[data-bs-spy="scroll"]'))hs.getOrCreateInstance(p)}),v(hs);const yi=".bs.tab",Yx=`hide${yi}`,qx=`hidden${yi}`,Xx=`show${yi}`,Zx=`shown${yi}`,Jx=`click${yi}`,e_=`keydown${yi}`,t_=`load${yi}`,n_="ArrowLeft",Jh="ArrowRight",r_="ArrowUp",em="ArrowDown",Sc="Home",tm="End",wi="active",nm="fade",kc="show",rm=".dropdown-toggle",Cc=`:not(${rm})`,im='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Tc=`.nav-link${Cc}, .list-group-item${Cc}, [role="tab"]${Cc}, ${im}`,i_=`.${wi}[data-bs-toggle="tab"], .${wi}[data-bs-toggle="pill"], .${wi}[data-bs-toggle="list"]`;class xi extends ue{constructor(a){super(a),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),R.on(this._element,e_,d=>this._keydown(d)))}static get NAME(){return"tab"}show(){const a=this._element;if(this._elemIsActive(a))return;const d=this._getActiveElem(),w=d?R.trigger(d,Yx,{relatedTarget:a}):null;R.trigger(a,Xx,{relatedTarget:d}).defaultPrevented||w&&w.defaultPrevented||(this._deactivate(d,a),this._activate(a,d))}_activate(a,d){a&&(a.classList.add(wi),this._activate(G.getElementFromSelector(a)),this._queueCallback(()=>{a.getAttribute("role")==="tab"?(a.removeAttribute("tabindex"),a.setAttribute("aria-selected",!0),this._toggleDropDown(a,!0),R.trigger(a,Zx,{relatedTarget:d})):a.classList.add(kc)},a,a.classList.contains(nm)))}_deactivate(a,d){a&&(a.classList.remove(wi),a.blur(),this._deactivate(G.getElementFromSelector(a)),this._queueCallback(()=>{a.getAttribute("role")==="tab"?(a.setAttribute("aria-selected",!1),a.setAttribute("tabindex","-1"),this._toggleDropDown(a,!1),R.trigger(a,qx,{relatedTarget:d})):a.classList.remove(kc)},a,a.classList.contains(nm)))}_keydown(a){if(![n_,Jh,r_,em,Sc,tm].includes(a.key))return;a.stopPropagation(),a.preventDefault();const d=this._getChildren().filter(P=>!f(P));let w;if([Sc,tm].includes(a.key))w=d[a.key===Sc?0:d.length-1];else{const P=[Jh,em].includes(a.key);w=T(d,a.target,P,!0)}w&&(w.focus({preventScroll:!0}),xi.getOrCreateInstance(w).show())}_getChildren(){return G.find(Tc,this._parent)}_getActiveElem(){return this._getChildren().find(a=>this._elemIsActive(a))||null}_setInitialAttributes(a,d){this._setAttributeIfNotExists(a,"role","tablist");for(const w of d)this._setInitialAttributesOnChild(w)}_setInitialAttributesOnChild(a){a=this._getInnerElement(a);const d=this._elemIsActive(a),w=this._getOuterElement(a);a.setAttribute("aria-selected",d),w!==a&&this._setAttributeIfNotExists(w,"role","presentation"),d||a.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(a,"role","tab"),this._setInitialAttributesOnTargetPanel(a)}_setInitialAttributesOnTargetPanel(a){const d=G.getElementFromSelector(a);d&&(this._setAttributeIfNotExists(d,"role","tabpanel"),a.id&&this._setAttributeIfNotExists(d,"aria-labelledby",`${a.id}`))}_toggleDropDown(a,d){const w=this._getOuterElement(a);if(!w.classList.contains("dropdown"))return;const P=(j,$)=>{const B=G.findOne(j,w);B&&B.classList.toggle($,d)};P(rm,wi),P(".dropdown-menu",kc),w.setAttribute("aria-expanded",d)}_setAttributeIfNotExists(a,d,w){a.hasAttribute(d)||a.setAttribute(d,w)}_elemIsActive(a){return a.classList.contains(wi)}_getInnerElement(a){return a.matches(Tc)?a:G.findOne(Tc,a)}_getOuterElement(a){return a.closest(".nav-item, .list-group-item")||a}static jQueryInterface(a){return this.each(function(){const d=xi.getOrCreateInstance(this);if(typeof a=="string"){if(d[a]===void 0||a.startsWith("_")||a==="constructor")throw new TypeError(`No method named "${a}"`);d[a]()}})}}R.on(document,Jx,im,function(p){["A","AREA"].includes(this.tagName)&&p.preventDefault(),f(this)||xi.getOrCreateInstance(this).show()}),R.on(window,t_,()=>{for(const p of G.find(i_))xi.getOrCreateInstance(p)}),v(xi);const Ar=".bs.toast",o_=`mouseover${Ar}`,s_=`mouseout${Ar}`,a_=`focusin${Ar}`,l_=`focusout${Ar}`,u_=`hide${Ar}`,c_=`hidden${Ar}`,d_=`show${Ar}`,f_=`shown${Ar}`,om="hide",Xa="show",Za="showing",p_={animation:"boolean",autohide:"boolean",delay:"number"},h_={animation:!0,autohide:!0,delay:5e3};class ms extends ue{constructor(a,d){super(a,d),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return h_}static get DefaultType(){return p_}static get NAME(){return"toast"}show(){R.trigger(this._element,d_).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(om),y(this._element),this._element.classList.add(Xa,Za),this._queueCallback(()=>{this._element.classList.remove(Za),R.trigger(this._element,f_),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(R.trigger(this._element,u_).defaultPrevented||(this._element.classList.add(Za),this._queueCallback(()=>{this._element.classList.add(om),this._element.classList.remove(Za,Xa),R.trigger(this._element,c_)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Xa),super.dispose()}isShown(){return this._element.classList.contains(Xa)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(a,d){switch(a.type){case"mouseover":case"mouseout":this._hasMouseInteraction=d;break;case"focusin":case"focusout":this._hasKeyboardInteraction=d}if(d)return void this._clearTimeout();const w=a.relatedTarget;this._element===w||this._element.contains(w)||this._maybeScheduleHide()}_setListeners(){R.on(this._element,o_,a=>this._onInteraction(a,!0)),R.on(this._element,s_,a=>this._onInteraction(a,!1)),R.on(this._element,a_,a=>this._onInteraction(a,!0)),R.on(this._element,l_,a=>this._onInteraction(a,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(a){return this.each(function(){const d=ms.getOrCreateInstance(this,a);if(typeof a=="string"){if(d[a]===void 0)throw new TypeError(`No method named "${a}"`);d[a](this)}})}}return We(ms),v(ms),{Alert:je,Button:ze,Carousel:Z,Collapse:on,Dropdown:In,Modal:gi,Offcanvas:pr,Popover:qa,ScrollSpy:hs,Tab:xi,Toast:ms,Tooltip:vi}})})(b2);var Yt=function(){return Yt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?Ct(ts,--Ln):0,Bo--,yt===10&&(Bo=1,Bu--),yt}function Kn(){return yt=Ln2||mf(yt)>3?"":" "}function A2(e,t){for(;--t&&Kn()&&!(yt<48||yt>102||yt>57&&yt<65||yt>70&&yt<97););return Hu(e,Il()+(t<6&&Mi()==32&&Kn()==32))}function gf(e){for(;Kn();)switch(yt){case e:return Ln;case 34:case 39:e!==34&&e!==39&&gf(yt);break;case 40:e===41&&gf(e);break;case 92:Kn();break}return Ln}function D2(e,t){for(;Kn()&&e+yt!==47+10;)if(e+yt===42+42&&Mi()===47)break;return"/*"+Hu(t,Ln-1)+"*"+Rp(e===47?e:Kn())}function $2(e){for(;!mf(Mi());)Kn();return Hu(e,Ln)}function M2(e){return L2(zl("",null,null,null,[""],e=N2(e),0,[0],e))}function zl(e,t,n,r,i,o,s,l,u){for(var c=0,f=0,h=s,m=0,y=0,x=0,_=1,C=1,v=1,g=0,b="",T=i,N=o,k=r,O=b;C;)switch(x=g,g=Kn()){case 40:if(x!=108&&Ct(O,h-1)==58){Ml(O+=be(sd(g),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:O+=sd(g);break;case 9:case 10:case 13:case 32:O+=R2(x);break;case 92:O+=A2(Il()-1,7);continue;case 47:switch(Mi()){case 42:case 47:As(I2(D2(Kn(),Il()),t,n,u),u);break;default:O+="/"}break;case 123*_:l[c++]=nr(O)*v;case 125*_:case 59:case 0:switch(g){case 0:case 125:C=0;case 59+f:v==-1&&(O=be(O,/\f/g,"")),y>0&&nr(O)-h&&As(y>32?Yg(O+";",r,n,h-1,u):Yg(be(O," ","")+";",r,n,h-2,u),u);break;case 59:O+=";";default:if(As(k=Qg(O,t,n,c,f,i,l,b,T=[],N=[],h,o),o),g===123)if(f===0)zl(O,t,k,k,T,o,h,l,N);else switch(m===99&&Ct(O,3)===110?100:m){case 100:case 108:case 109:case 115:zl(e,k,k,r&&As(Qg(e,k,k,0,0,i,l,b,i,T=[],h,N),N),i,N,h,l,r?T:N);break;default:zl(O,k,k,k,[""],N,0,l,N)}}c=f=y=0,_=v=1,b=O="",h=s;break;case 58:h=1+nr(O),y=x;default:if(_<1){if(g==123)--_;else if(g==125&&_++==0&&j2()==125)continue}switch(O+=Rp(g),g*_){case 38:v=f>0?1:(O+="\f",-1);break;case 44:l[c++]=(nr(O)-1)*v,v=1;break;case 64:Mi()===45&&(O+=sd(Kn())),m=Mi(),f=h=nr(b=O+=$2(Il())),g++;break;case 45:x===45&&nr(O)==2&&(_=0)}}return o}function Qg(e,t,n,r,i,o,s,l,u,c,f,h){for(var m=i-1,y=i===0?o:[""],x=v1(y),_=0,C=0,v=0;_0?y[g]+" "+b:be(b,/&\f/g,y[g])))&&(u[v++]=T);return Uu(e,t,n,i===0?Fu:l,u,c,f,h)}function I2(e,t,n,r){return Uu(e,t,n,h1,Rp(P2()),Fo(e,2,-2),0,r)}function Yg(e,t,n,r,i){return Uu(e,t,n,Lp,Fo(e,0,r),Fo(e,r+1,-1),r,i)}function w1(e,t,n){switch(T2(e,t)){case 5103:return Fe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Fe+e+e;case 4789:return Ks+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Fe+e+Ks+e+Ze+e+e;case 5936:switch(Ct(e,t+11)){case 114:return Fe+e+Ze+be(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Fe+e+Ze+be(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Fe+e+Ze+be(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Fe+e+Ze+e+e;case 6165:return Fe+e+Ze+"flex-"+e+e;case 5187:return Fe+e+be(e,/(\w+).+(:[^]+)/,Fe+"box-$1$2"+Ze+"flex-$1$2")+e;case 5443:return Fe+e+Ze+"flex-item-"+be(e,/flex-|-self/g,"")+(mr(e,/flex-|baseline/)?"":Ze+"grid-row-"+be(e,/flex-|-self/g,""))+e;case 4675:return Fe+e+Ze+"flex-line-pack"+be(e,/align-content|flex-|-self/g,"")+e;case 5548:return Fe+e+Ze+be(e,"shrink","negative")+e;case 5292:return Fe+e+Ze+be(e,"basis","preferred-size")+e;case 6060:return Fe+"box-"+be(e,"-grow","")+Fe+e+Ze+be(e,"grow","positive")+e;case 4554:return Fe+be(e,/([^-])(transform)/g,"$1"+Fe+"$2")+e;case 6187:return be(be(be(e,/(zoom-|grab)/,Fe+"$1"),/(image-set)/,Fe+"$1"),e,"")+e;case 5495:case 3959:return be(e,/(image-set\([^]*)/,Fe+"$1$`$1");case 4968:return be(be(e,/(.+:)(flex-)?(.*)/,Fe+"box-pack:$3"+Ze+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Fe+e+e;case 4200:if(!mr(e,/flex-|baseline/))return Ze+"grid-column-align"+Fo(e,t)+e;break;case 2592:case 3360:return Ze+be(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,mr(r.props,/grid-\w+-end/)})?~Ml(e+(n=n[t].value),"span")?e:Ze+be(e,"-start","")+e+Ze+"grid-row-span:"+(~Ml(n,"span")?mr(n,/\d+/):+mr(n,/\d+/)-+mr(e,/\d+/))+";":Ze+be(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return mr(r.props,/grid-\w+-start/)})?e:Ze+be(be(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return be(e,/(.+)-inline(.+)/,Fe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(nr(e)-1-t>6)switch(Ct(e,t+1)){case 109:if(Ct(e,t+4)!==45)break;case 102:return be(e,/(.+:)(.+)-([^]+)/,"$1"+Fe+"$2-$3$1"+Ks+(Ct(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ml(e,"stretch")?w1(be(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return be(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,s,l,u,c){return Ze+i+":"+o+c+(s?Ze+i+"-span:"+(l?u:+u-+o)+c:"")+e});case 4949:if(Ct(e,t+6)===121)return be(e,":",":"+Fe)+e;break;case 6444:switch(Ct(e,Ct(e,14)===45?18:11)){case 120:return be(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Fe+(Ct(e,14)===45?"inline-":"")+"box$3$1"+Fe+"$2$3$1"+Ze+"$2box$3")+e;case 100:return be(e,":",":"+Ze)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return be(e,"scroll-","scroll-snap-")+e}return e}function vu(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case Lp:e.return=w1(e.value,e.length,n);return;case m1:return vu([Ir(e,{value:be(e.value,"@","@"+Fe)})],r);case Fu:if(e.length)return O2(n=e.props,function(i){switch(mr(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":lo(Ir(e,{props:[be(i,/:(read-\w+)/,":"+Ks+"$1")]})),lo(Ir(e,{props:[i]})),hf(e,{props:Kg(n,r)});break;case"::placeholder":lo(Ir(e,{props:[be(i,/:(plac\w+)/,":"+Fe+"input-$1")]})),lo(Ir(e,{props:[be(i,/:(plac\w+)/,":"+Ks+"$1")]})),lo(Ir(e,{props:[be(i,/:(plac\w+)/,Ze+"input-$1")]})),lo(Ir(e,{props:[i]})),hf(e,{props:Kg(n,r)});break}return""})}}var H2={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Uo=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",x1="active",_1="data-styled-version",Wu="6.1.3",Ap=`/*!sc*/ +`,Dp=typeof window<"u"&&"HTMLElement"in window,W2=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==""?{}.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&{}.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.SC_DISABLE_SPEEDY!==void 0&&{}.SC_DISABLE_SPEEDY!==""&&{}.SC_DISABLE_SPEEDY!=="false"&&{}.SC_DISABLE_SPEEDY),Vu=Object.freeze([]),Ho=Object.freeze({});function V2(e,t,n){return n===void 0&&(n=Ho),e.theme!==n.theme&&e.theme||t||n.theme}var E1=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),G2=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,K2=/(^-|-$)/g;function qg(e){return e.replace(G2,"-").replace(K2,"")}var Q2=/(a)(d)/gi,wl=52,Xg=function(e){return String.fromCharCode(e+(e>25?39:97))};function vf(e){var t,n="";for(t=Math.abs(e);t>wl;t=t/wl|0)n=Xg(t%wl)+n;return(Xg(t%wl)+n).replace(Q2,"$1-$2")}var ad,b1=5381,Co=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},S1=function(e){return Co(b1,e)};function k1(e){return vf(S1(e)>>>0)}function Y2(e){return e.displayName||e.name||"Component"}function ld(e){return typeof e=="string"&&!0}var C1=typeof Symbol=="function"&&Symbol.for,T1=C1?Symbol.for("react.memo"):60115,q2=C1?Symbol.for("react.forward_ref"):60112,X2={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Z2={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},O1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J2=((ad={})[q2]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ad[T1]=O1,ad);function Zg(e){return("type"in(t=e)&&t.type.$$typeof)===T1?O1:"$$typeof"in e?J2[e.$$typeof]:X2;var t}var ek=Object.defineProperty,tk=Object.getOwnPropertyNames,Jg=Object.getOwnPropertySymbols,nk=Object.getOwnPropertyDescriptor,rk=Object.getPrototypeOf,ev=Object.prototype;function P1(e,t,n){if(typeof t!="string"){if(ev){var r=rk(t);r&&r!==ev&&P1(e,r,n)}var i=tk(t);Jg&&(i=i.concat(Jg(t)));for(var o=Zg(e),s=Zg(t),l=0;l0?" Args: ".concat(t.join(", ")):""))}var ik=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw ja(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var s=i;s=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,s=i;s=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(C+="".concat(v,","))}),u+="".concat(x).concat(_,'{content:"').concat(C,'"}').concat(Ap)},f=0;f0?".".concat(t):m},f=u.slice();f.push(function(m){m.type===Fu&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(mk,n).replace(r,c))}),s.prefix&&f.push(U2),f.push(z2);var h=function(m,y,x,_){y===void 0&&(y=""),x===void 0&&(x=""),_===void 0&&(_="&"),t=_,n=y,r=new RegExp("\\".concat(n,"\\b"),"g");var C=m.replace(gk,""),v=M2(x||y?"".concat(x," ").concat(y," { ").concat(C," }"):C);s.namespace&&(v=L1(v,s.namespace));var g=[];return vu(v,F2(f.concat(B2(function(b){return g.push(b)})))),g};return h.hash=u.length?u.reduce(function(m,y){return y.name||ja(15),Co(m,y.name)},b1).toString():"",h}var yk=new N1,xf=vk(),R1=ke.createContext({shouldForwardProp:void 0,styleSheet:yk,stylis:xf});R1.Consumer;ke.createContext(void 0);function nv(){return S.useContext(R1)}var A1=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=xf);var s=r.name+o.hash;i.hasNameForId(r.id,s)||i.insertRules(r.id,s,o(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Mp(this,function(){throw ja(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=xf),this.name+t.hash},e}(),wk=function(e){return e>="A"&&e<="Z"};function rv(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,s)){var l=r(o,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,l)}i=Ri(i,s),this.staticRulesId=s}else{for(var u=Co(this.baseHash,r.hash),c="",f=0;f>>0);n.hasNameForId(this.componentId,y)||n.insertRules(this.componentId,y,r(c,".".concat(y),void 0,this.componentId)),i=Ri(i,y)}}return i},e}(),M1=ke.createContext(void 0);M1.Consumer;var ud={};function bk(e,t,n){var r=$p(e),i=e,o=!ld(e),s=t.attrs,l=s===void 0?Vu:s,u=t.componentId,c=u===void 0?function(T,N){var k=typeof T!="string"?"sc":qg(T);ud[k]=(ud[k]||0)+1;var O="".concat(k,"-").concat(k1(Wu+k+ud[k]));return N?"".concat(N,"-").concat(O):O}(t.displayName,t.parentComponentId):u,f=t.displayName,h=f===void 0?function(T){return ld(T)?"styled.".concat(T):"Styled(".concat(Y2(T),")")}(e):f,m=t.displayName&&t.componentId?"".concat(qg(t.displayName),"-").concat(t.componentId):t.componentId||c,y=r&&i.attrs?i.attrs.concat(l).filter(Boolean):l,x=t.shouldForwardProp;if(r&&i.shouldForwardProp){var _=i.shouldForwardProp;if(t.shouldForwardProp){var C=t.shouldForwardProp;x=function(T,N){return _(T,N)&&C(T,N)}}else x=_}var v=new Ek(n,m,r?i.componentStyle:void 0);function g(T,N){return function(k,O,A){var F=k.attrs,H=k.componentStyle,z=k.defaultProps,I=k.foldedComponentIds,K=k.styledComponentId,V=k.target,re=ke.useContext(M1),oe=nv(),ne=k.shouldForwardProp||oe.shouldForwardProp,U=function(ae,ye,ue){for(var xe,G=Yt(Yt({},ye),{className:void 0,theme:ue}),We=0;We{const t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):void 0},B1="https://steam-wgp-production.up.railway.app",U1=Ip("token"),H1=async()=>{try{if(!document.cookie.split(";").some(n=>n.trim().startsWith("token="))){const r=new URLSearchParams(window.location.search).get("token");r&&(document.cookie=`token=${r}; path=/;`)}window.history.replaceState({},document.title,window.location.pathname);const e=await fetch(`${B1}/auth/me`,{headers:{Authorization:"Bearer "+U1},credentials:"include"});if(!e.ok)throw new Error("Authentification non vérifiée");return(await e.json()).data}catch(e){throw console.error("Erreur lors de la vérification de l’authentification:",e),e}},Ck=async()=>{try{const e=await fetch(B1+"/auth/logout",{credentials:"include",method:"GET",headers:{Authorization:"Bearer "+U1}});if(!e.ok)throw new Error("Impossible de déconnecter l'utilisateur authentifié");return await e.json()}catch(e){throw console.error("Une erreur est survenue lors de la déconnexion de l'utilisateur: "+e),e}};function Tk(){return E.jsx("p",{className:"fw-bold text-primary mb-2",children:"Let's play together!"})}const Ok=F1` +`;function Ip(){return E.jsxs("div",{"data-aos":"zoom-in","data-aos-duration":"1000",className:"text-center",children:[E.jsxs(kk,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:"bi bi-steam text-info",children:[E.jsx("path",{d:"M.329 10.333A8.01 8.01 0 0 0 7.99 16C12.414 16 16 12.418 16 8s-3.586-8-8.009-8A8.006 8.006 0 0 0 0 7.468l.003.006 4.304 1.769A2.198 2.198 0 0 1 5.62 8.88l1.96-2.844-.001-.04a3.046 3.046 0 0 1 3.042-3.043 3.046 3.046 0 0 1 3.042 3.043 3.047 3.047 0 0 1-3.111 3.044l-2.804 2a2.223 2.223 0 0 1-3.075 2.11 2.217 2.217 0 0 1-1.312-1.568L.33 10.333Z"}),E.jsx("path",{d:"M4.868 12.683a1.715 1.715 0 0 0 1.318-3.165 1.705 1.705 0 0 0-1.263-.02l1.023.424a1.261 1.261 0 1 1-.97 2.33l-.99-.41a1.7 1.7 0 0 0 .882.84Zm3.726-6.687a2.03 2.03 0 0 0 2.027 2.029 2.03 2.03 0 0 0 2.027-2.029 2.03 2.03 0 0 0-2.027-2.027 2.03 2.03 0 0 0-2.027 2.027Zm2.03-1.527a1.524 1.524 0 1 1-.002 3.048 1.524 1.524 0 0 1 .002-3.048Z"})]}),E.jsx(Sk,{className:"spinner-border text-info-emphasis",role:"status"})]})}const Gu=e=>{const t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):void 0},B1="https://steam-wgp-production.up.railway.app",U1=Gu("token"),H1=async()=>{try{if(!document.cookie.split(";").some(n=>n.trim().startsWith("token="))){const r=new URLSearchParams(window.location.search).get("token");r&&(document.cookie=`token=${r}; path=/;`)}window.history.replaceState({},document.title,window.location.pathname);const e=await fetch(`${B1}/auth/me`,{headers:{Authorization:"Bearer "+U1},credentials:"include"});if(!e.ok)throw new Error("Authentification non vérifiée");return(await e.json()).data}catch(e){throw console.error("Erreur lors de la vérification de l’authentification:",e),e}},Ck=async()=>{try{const e=await fetch(B1+"/auth/logout",{credentials:"include",method:"GET",headers:{Authorization:"Bearer "+U1}});if(!e.ok)throw new Error("Impossible de déconnecter l'utilisateur authentifié");return await e.json()}catch(e){throw console.error("Une erreur est survenue lors de la déconnexion de l'utilisateur: "+e),e}};function Tk(){return E.jsx("p",{className:"fw-bold text-primary mb-2",children:"Let's play together!"})}const Ok=F1` 0%, 100% { background-image: linear-gradient(45deg, #391ee4, #af4261); } @@ -123,7 +123,7 @@ Error generating stack: `+o.message+` user-select: none; `;function Ik(){return E.jsxs("div",{className:"text-center p-4 p-lg-5",children:[E.jsxs(Mk,{"data-aos":"fade-down","data-aos-duration":"1000",children:[E.jsx(Tk,{}),E.jsx(W1,{}),E.jsx(Nk,{})]}),E.jsx(Ak,{}),E.jsx($k,{})]})}function V1(){return E.jsx("div",{className:"container",children:E.jsx(Ik,{})})}const zk=we.strong` color: rgb(105, 34, 140); -`,Fk=({username:e})=>E.jsxs("h3",{className:"text-primary-emphasis",children:["Bonjour ",E.jsx(zk,{children:e})," !"]}),Bk={isAuthenticated:!1,user:{id:"",username:"",waitlist:""}},gn=S.createContext(null),Uk=({children:e})=>{const[t,n]=S.useState(Bk);return E.jsx(gn.Provider,{value:{auth:t,setAuth:n},children:e})},Na=S.createContext(null),Hk=({children:e})=>{const[t,n]=S.useState(!1);return E.jsx(Na.Provider,{value:{loadingComplete:t,setLoadingComplete:n},children:e})},nn=S.createContext(null),Wk=({children:e})=>{const[t,n]=S.useState(null);return E.jsx(nn.Provider,{value:{room:t,setRoom:n},children:e})},Vk="wss://steam-wgp-production.up.railway.app",Gk=(e,t)=>{const n=`${Vk}/ws/${e}`,r=new WebSocket(n,[t]);return r.onopen=()=>{console.log("WebSocket connection established")},r.onmessage=i=>{const o=JSON.parse(i.data);console.log("Data received from server",o)},r.onclose=()=>{console.log("WebSocket connection closed")},r.onerror=i=>{console.error("WebSocket error",i)},r},Kk=(e,t)=>{if(e.readyState===WebSocket.OPEN){const n=JSON.stringify({action:"swipe",payload:{gameId:t}});e.send(n)}},Qk=(e,t)=>{if(e.readyState===WebSocket.OPEN){const n=JSON.stringify({action:"unswipe",payload:{gameId:t}});e.send(n)}},ns=S.createContext(null),Yk=({children:e})=>{const[t,n]=S.useState(null),{room:r}=S.useContext(nn),i=r==null?void 0:r.id;return S.useEffect(()=>{const o=Ip("token");if(!o||!i)return;const s=Gk(i,o);return n(s),()=>{s&&s.close()}},[i]),E.jsx(ns.Provider,{value:{socket:t,setSocket:n},children:e})},qk=we.svg` +`,Fk=({username:e})=>E.jsxs("h3",{className:"text-primary-emphasis",children:["Bonjour ",E.jsx(zk,{children:e})," !"]}),Bk={isAuthenticated:!1,user:{id:"",username:"",waitlist:""}},gn=S.createContext(null),Uk=({children:e})=>{const[t,n]=S.useState(Bk);return E.jsx(gn.Provider,{value:{auth:t,setAuth:n},children:e})},Na=S.createContext(null),Hk=({children:e})=>{const[t,n]=S.useState(!1);return E.jsx(Na.Provider,{value:{loadingComplete:t,setLoadingComplete:n},children:e})},nn=S.createContext(null),Wk=({children:e})=>{const[t,n]=S.useState(null);return E.jsx(nn.Provider,{value:{room:t,setRoom:n},children:e})},Vk="wss://steam-wgp-production.up.railway.app",Gk=(e,t)=>{const n=`${Vk}/ws/${e}`,r=new WebSocket(n,[t]);return r.onopen=()=>{console.log("WebSocket connection established")},r.onmessage=i=>{const o=JSON.parse(i.data);console.log("Data received from server",o)},r.onclose=()=>{console.log("WebSocket connection closed")},r.onerror=i=>{console.error("WebSocket error",i)},r},Kk=(e,t)=>{if(e.readyState===WebSocket.OPEN){const n=JSON.stringify({action:"swipe",payload:{gameId:t}});e.send(n)}},Qk=(e,t)=>{if(e.readyState===WebSocket.OPEN){const n=JSON.stringify({action:"unswipe",payload:{gameId:t}});e.send(n)}},ns=S.createContext(null),Yk=({children:e})=>{const[t,n]=S.useState(null),{room:r}=S.useContext(nn),i=r==null?void 0:r.id;return S.useEffect(()=>{const o=Gu("token");if(!o||!i)return;const s=Gk(i,o);return n(s),()=>{s&&s.close()}},[i]),E.jsx(ns.Provider,{value:{socket:t,setSocket:n},children:e})},qk=we.svg` margin-top: -2px; margin-right: 4px; `,Xk=()=>E.jsxs(qk,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:"bi bi-exclamation-diamond",children:[E.jsx("path",{d:"M6.95.435c.58-.58 1.52-.58 2.1 0l6.515 6.516c.58.58.58 1.519 0 2.098L9.05 15.565c-.58.58-1.519.58-2.098 0L.435 9.05a1.482 1.482 0 0 1 0-2.098L6.95.435zm1.4.7a.495.495 0 0 0-.7 0L1.134 7.65a.495.495 0 0 0 0 .7l6.516 6.516a.495.495 0 0 0 .7 0l6.516-6.516a.495.495 0 0 0 0-.7L8.35 1.134z"}),E.jsx("path",{d:"M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z"})]}),Zk=we.p` @@ -131,7 +131,7 @@ Error generating stack: `+o.message+` margin-bottom: 0px; `,Jk=({type:e,message:t})=>E.jsxs(Zk,{className:"text-center text-"+e+"-emphasis","data-aos":"fade-up","data-aos-duration":"700","data-aos-once":"true",children:[e==="danger"?E.jsx(Xk,{}):null,t]}),eC=we.p` margin-bottom: 42px; -`;function tC({messages:e,animateFirstDiv:t}){const{auth:n}=S.useContext(gn);return E.jsx("div",{className:"text-center p-4 p-lg-5",children:E.jsxs("div",{id:"sectionHeadingHomepage",className:t?"animate__animated animate__zoomOut animate__slower":"",children:[E.jsx(W1,{}),E.jsx(Mp,{}),E.jsx(Fk,{username:n.user.username}),E.jsxs(eC,{className:"text-light-emphasis",children:["Nous préparons tout ce qu'il faut pour vous,",E.jsx("br",{}),"merci de patienter un instant, ça ne devrait pas être",E.jsx("br",{}),"long ! "]}),e.map((r,i)=>E.jsx("div",{children:E.jsx(Jk,{message:r.message,type:r.type})},i))]})})}const La="https://steam-wgp-production.up.railway.app",Ra=Ip("token"),nC=async e=>{try{const t=await fetch(La+"/waitlist/"+e,{headers:{Authorization:"Bearer "+Ra},credentials:"include"}),n=await t.json();if(!t.ok)throw new Error(n.message||"Impossible de récupérer les informations de la room");return n}catch(t){throw console.error("Une erreur est survenue lors de la récupération des informations de la room: "+t),t}},rC=async(e,t)=>{try{const n=await fetch(La+"/waitlist/"+e,{headers:{Authorization:"Bearer "+Ra},method:"PATCH",credentials:"include"}),r=await n.json();if(!n.ok)throw new Error(r.message||"Impossible de rejoindre la room");return t(i=>({...i,user:{...i.user,waitlist:e}})),r}catch(n){throw console.error("Une erreur est survenue lors de l'action sur la room: "+n),n}},iC=async(e,t)=>{try{const n=await fetch(La+"/waitlist/"+e,{headers:{Authorization:"Bearer "+Ra},method:"DELETE",credentials:"include"}),r=await n.json();if(!n.ok)throw new Error(r.message||"Impossible de quitter la room");return t(i=>({...i,user:{...i.user,waitlist:null}})),r}catch(n){throw console.error("Une erreur est survenue lors de l'action sur la room: "+n),n}},oC=async(e,t)=>{try{const n=await fetch(La+"/waitlist/"+e+"/kick/"+t,{headers:{Authorization:"Bearer "+Ra},method:"DELETE",credentials:"include"}),r=await n.json();if(!n.ok)throw new Error(r.message||"Impossible de kick le joueur");return r}catch(n){throw console.error("Une erreur est survenue lors du kick du joueur: "+n),n}},sC=async e=>{try{const t=await fetch(La+"/waitlist",{headers:{Authorization:"Bearer "+Ra},credentials:"include",method:"POST"}),n=await t.json();if(!t.ok)throw new Error(n.message||"Impossible de créer la room");return e(r=>({...r,user:{...r.user,waitlist:n.data.id}})),n}catch(t){throw console.error("Une erreur est survenue lors de la création de la room: ",t),t}},aC=we.svg` +`;function tC({messages:e,animateFirstDiv:t}){const{auth:n}=S.useContext(gn);return E.jsx("div",{className:"text-center p-4 p-lg-5",children:E.jsxs("div",{id:"sectionHeadingHomepage",className:t?"animate__animated animate__zoomOut animate__slower":"",children:[E.jsx(W1,{}),E.jsx(Ip,{}),E.jsx(Fk,{username:n.user.username}),E.jsxs(eC,{className:"text-light-emphasis",children:["Nous préparons tout ce qu'il faut pour vous,",E.jsx("br",{}),"merci de patienter un instant, ça ne devrait pas être",E.jsx("br",{}),"long ! "]}),e.map((r,i)=>E.jsx("div",{children:E.jsx(Jk,{message:r.message,type:r.type})},i))]})})}const La="https://steam-wgp-production.up.railway.app",Ra=Gu("token"),nC=async e=>{try{const t=await fetch(La+"/waitlist/"+e,{headers:{Authorization:"Bearer "+Ra},credentials:"include"}),n=await t.json();if(!t.ok)throw new Error(n.message||"Impossible de récupérer les informations de la room");return n}catch(t){throw console.error("Une erreur est survenue lors de la récupération des informations de la room: "+t),t}},rC=async(e,t)=>{try{const n=await fetch(La+"/waitlist/"+e,{headers:{Authorization:"Bearer "+Ra},method:"PATCH",credentials:"include"}),r=await n.json();if(!n.ok)throw new Error(r.message||"Impossible de rejoindre la room");return t(i=>({...i,user:{...i.user,waitlist:e}})),r}catch(n){throw console.error("Une erreur est survenue lors de l'action sur la room: "+n),n}},iC=async(e,t)=>{try{const n=await fetch(La+"/waitlist/"+e,{headers:{Authorization:"Bearer "+Ra},method:"DELETE",credentials:"include"}),r=await n.json();if(!n.ok)throw new Error(r.message||"Impossible de quitter la room");return t(i=>({...i,user:{...i.user,waitlist:null}})),r}catch(n){throw console.error("Une erreur est survenue lors de l'action sur la room: "+n),n}},oC=async(e,t)=>{try{const n=await fetch(La+"/waitlist/"+e+"/kick/"+t,{headers:{Authorization:"Bearer "+Ra},method:"DELETE",credentials:"include"}),r=await n.json();if(!n.ok)throw new Error(r.message||"Impossible de kick le joueur");return r}catch(n){throw console.error("Une erreur est survenue lors du kick du joueur: "+n),n}},sC=async e=>{try{const t=await fetch(La+"/waitlist",{headers:{Authorization:"Bearer "+Ra},credentials:"include",method:"POST"}),n=await t.json();if(!t.ok)throw new Error(n.message||"Impossible de créer la room");return e(r=>({...r,user:{...r.user,waitlist:n.data.id}})),n}catch(t){throw console.error("Une erreur est survenue lors de la création de la room: ",t),t}},aC=we.svg` font-size: 47px; margin-bottom: 10px; `;function lC({className:e}){return E.jsx(aC,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:e+" bi bi-capslock-fill fs-2",children:E.jsx("path",{d:"M7.27 1.047a1 1 0 0 1 1.46 0l6.345 6.77c.6.638.146 1.683-.73 1.683H11.5v1a1 1 0 0 1-1 1h-5a1 1 0 0 1-1-1v-1H1.654C.78 9.5.326 8.455.924 7.816L7.27 1.047zM4.5 13.5a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-5a1 1 0 0 1-1-1v-1z"})})}const uC=we.svg` @@ -153,7 +153,7 @@ Error generating stack: `+o.message+` animation-delay: -1.6s; `,hC=we(zp)` animation-delay: -0.8s; -`,mC=()=>E.jsxs("svg",{viewBox:"-5 -6 30 30",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx(fC,{x:"1",y:"1",rx:"1",width:5,height:5,fill:"#09202B"}),E.jsx(pC,{x:"1",y:"1",rx:"1",width:5,height:5,fill:"#09202B"}),E.jsx(hC,{x:"1",y:"1",rx:"1",width:5,height:5,fill:"#09202B"})]});function G1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="number"&&!isNaN(e),Gi=e=>typeof e=="string",qt=e=>typeof e=="function",Ul=e=>Gi(e)||qt(e)?e:null,ud=e=>S.isValidElement(e)||Gi(e)||qt(e)||Qs(e);function gC(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Gu(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(s){let{children:l,position:u,preventExitTransition:c,done:f,nodeRef:h,isIn:m}=s;const y=r?`${t}--${u}`:t,x=r?`${n}--${u}`:n,_=S.useRef(0);return S.useLayoutEffect(()=>{const C=h.current,v=y.split(" "),g=b=>{b.target===h.current&&(C.dispatchEvent(new Event("d")),C.removeEventListener("animationend",g),C.removeEventListener("animationcancel",g),_.current===0&&b.type!=="animationcancel"&&C.classList.remove(...v))};C.classList.add(...v),C.addEventListener("animationend",g),C.addEventListener("animationcancel",g)},[]),S.useEffect(()=>{const C=h.current,v=()=>{C.removeEventListener("animationend",v),i?gC(C,f,o):f()};m||(c?v():(_.current=1,C.className+=` ${x}`,C.addEventListener("animationend",v)))},[m]),ke.createElement(ke.Fragment,null,l)}}function sv(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const kn={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter(r=>r!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}},_l=e=>{let{theme:t,type:n,...r}=e;return ke.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},cd={info:function(e){return ke.createElement(_l,{...e},ke.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return ke.createElement(_l,{...e},ke.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return ke.createElement(_l,{...e},ke.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return ke.createElement(_l,{...e},ke.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return ke.createElement("div",{className:"Toastify__spinner"})}};function vC(e){const[,t]=S.useReducer(y=>y+1,0),[n,r]=S.useState([]),i=S.useRef(null),o=S.useRef(new Map).current,s=y=>n.indexOf(y)!==-1,l=S.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:s,getToast:y=>o.get(y)}).current;function u(y){let{containerId:x}=y;const{limit:_}=l.props;!_||x&&l.containerId!==x||(l.count-=l.queue.length,l.queue=[])}function c(y){r(x=>y==null?[]:x.filter(_=>_!==y))}function f(){const{toastContent:y,toastProps:x,staleId:_}=l.queue.shift();m(y,x,_)}function h(y,x){let{delay:_,staleId:C,...v}=x;if(!ud(y)||function(I){return!i.current||l.props.enableMultiContainer&&I.containerId!==l.props.containerId||o.has(I.toastId)&&I.updateId==null}(v))return;const{toastId:g,updateId:b,data:T}=v,{props:N}=l,k=()=>c(g),O=b==null;O&&l.count++;const A={...N,style:N.toastStyle,key:l.toastKey++,...Object.fromEntries(Object.entries(v).filter(I=>{let[K,V]=I;return V!=null})),toastId:g,updateId:b,data:T,closeToast:k,isIn:!1,className:Ul(v.className||N.toastClassName),bodyClassName:Ul(v.bodyClassName||N.bodyClassName),progressClassName:Ul(v.progressClassName||N.progressClassName),autoClose:!v.isLoading&&(F=v.autoClose,H=N.autoClose,F===!1||Qs(F)&&F>0?F:H),deleteToast(){const I=sv(o.get(g),"removed");o.delete(g),kn.emit(4,I);const K=l.queue.length;if(l.count=g==null?l.count-l.displayedToast:l.count-1,l.count<0&&(l.count=0),K>0){const V=g==null?l.props.limit:1;if(K===1||V===1)l.displayedToast++,f();else{const re=V>K?K:V;l.displayedToast=re;for(let oe=0;oeq in cd)(V)&&(ne=cd[V](U))),ne}(A),qt(v.onOpen)&&(A.onOpen=v.onOpen),qt(v.onClose)&&(A.onClose=v.onClose),A.closeButton=N.closeButton,v.closeButton===!1||ud(v.closeButton)?A.closeButton=v.closeButton:v.closeButton===!0&&(A.closeButton=!ud(N.closeButton)||N.closeButton);let z=y;S.isValidElement(y)&&!Gi(y.type)?z=S.cloneElement(y,{closeToast:k,toastProps:A,data:T}):qt(y)&&(z=y({closeToast:k,toastProps:A,data:T})),N.limit&&N.limit>0&&l.count>N.limit&&O?l.queue.push({toastContent:z,toastProps:A,staleId:C}):Qs(_)?setTimeout(()=>{m(z,A,C)},_):m(z,A,C)}function m(y,x,_){const{toastId:C}=x;_&&o.delete(_);const v={content:y,props:x};o.set(C,v),r(g=>[...g,C].filter(b=>b!==_)),kn.emit(4,sv(v,v.props.updateId==null?"added":"updated"))}return S.useEffect(()=>(l.containerId=e.containerId,kn.cancelEmit(3).on(0,h).on(1,y=>i.current&&c(y)).on(5,u).emit(2,l),()=>{o.clear(),kn.emit(3,l)}),[]),S.useEffect(()=>{l.props=e,l.isToastActive=s,l.displayedToast=n.length}),{getToastToRender:function(y){const x=new Map,_=Array.from(o.values());return e.newestOnTop&&_.reverse(),_.forEach(C=>{const{position:v}=C.props;x.has(v)||x.set(v,[]),x.get(v).push(C)}),Array.from(x,C=>y(C[0],C[1]))},containerRef:i,isToastActive:s}}function av(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function lv(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function yC(e){const[t,n]=S.useState(!1),[r,i]=S.useState(!1),o=S.useRef(null),s=S.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,l=S.useRef(e),{autoClose:u,pauseOnHover:c,closeToast:f,onClick:h,closeOnClick:m}=e;function y(T){if(e.draggable){T.nativeEvent.type==="touchstart"&&T.nativeEvent.preventDefault(),s.didMove=!1,document.addEventListener("mousemove",v),document.addEventListener("mouseup",g),document.addEventListener("touchmove",v),document.addEventListener("touchend",g);const N=o.current;s.canCloseOnClick=!0,s.canDrag=!0,s.boundingRect=N.getBoundingClientRect(),N.style.transition="",s.x=av(T.nativeEvent),s.y=lv(T.nativeEvent),e.draggableDirection==="x"?(s.start=s.x,s.removalDistance=N.offsetWidth*(e.draggablePercent/100)):(s.start=s.y,s.removalDistance=N.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent/100))}}function x(T){if(s.boundingRect){const{top:N,bottom:k,left:O,right:A}=s.boundingRect;T.nativeEvent.type!=="touchend"&&e.pauseOnHover&&s.x>=O&&s.x<=A&&s.y>=N&&s.y<=k?C():_()}}function _(){n(!0)}function C(){n(!1)}function v(T){const N=o.current;s.canDrag&&N&&(s.didMove=!0,t&&C(),s.x=av(T),s.y=lv(T),s.delta=e.draggableDirection==="x"?s.x-s.start:s.y-s.start,s.start!==s.x&&(s.canCloseOnClick=!1),N.style.transform=`translate${e.draggableDirection}(${s.delta}px)`,N.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function g(){document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",g),document.removeEventListener("touchmove",v),document.removeEventListener("touchend",g);const T=o.current;if(s.canDrag&&s.didMove&&T){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),void e.closeToast();T.style.transition="transform 0.2s, opacity 0.2s",T.style.transform=`translate${e.draggableDirection}(0)`,T.style.opacity="1"}}S.useEffect(()=>{l.current=e}),S.useEffect(()=>(o.current&&o.current.addEventListener("d",_,{once:!0}),qt(e.onOpen)&&e.onOpen(S.isValidElement(e.children)&&e.children.props),()=>{const T=l.current;qt(T.onClose)&&T.onClose(S.isValidElement(T.children)&&T.children.props)}),[]),S.useEffect(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||C(),window.addEventListener("focus",_),window.addEventListener("blur",C)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",_),window.removeEventListener("blur",C))}),[e.pauseOnFocusLoss]);const b={onMouseDown:y,onTouchStart:y,onMouseUp:x,onTouchEnd:x};return u&&c&&(b.onMouseEnter=C,b.onMouseLeave=_),m&&(b.onClick=T=>{h&&h(T),s.canCloseOnClick&&f()}),{playToast:_,pauseToast:C,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:b}}function K1(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return ke.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:i=>{i.stopPropagation(),t(i)},"aria-label":r},ke.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},ke.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function wC(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:o,className:s,style:l,controlledProgress:u,progress:c,rtl:f,isIn:h,theme:m}=e;const y=o||u&&c===0,x={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:y?0:1};u&&(x.transform=`scaleX(${c})`);const _=Gr("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":f}),C=qt(s)?s({rtl:f,type:i,defaultClassName:_}):Gr(_,s);return ke.createElement("div",{role:"progressbar","aria-hidden":y?"true":"false","aria-label":"notification timer",className:C,style:x,[u&&c>=1?"onTransitionEnd":"onAnimationEnd"]:u&&c<1?null:()=>{h&&r()}})}const xC=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i}=yC(e),{closeButton:o,children:s,autoClose:l,onClick:u,type:c,hideProgressBar:f,closeToast:h,transition:m,position:y,className:x,style:_,bodyClassName:C,bodyStyle:v,progressClassName:g,progressStyle:b,updateId:T,role:N,progress:k,rtl:O,toastId:A,deleteToast:F,isIn:H,isLoading:z,iconOut:I,closeOnClick:K,theme:V}=e,re=Gr("Toastify__toast",`Toastify__toast-theme--${V}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":O},{"Toastify__toast--close-on-click":K}),oe=qt(x)?x({rtl:O,position:y,type:c,defaultClassName:re}):Gr(re,x),ne=!!k||!l,U={closeToast:h,type:c,theme:V};let q=null;return o===!1||(q=qt(o)?o(U):S.isValidElement(o)?S.cloneElement(o,U):K1(U)),ke.createElement(m,{isIn:H,done:F,position:y,preventExitTransition:n,nodeRef:r},ke.createElement("div",{id:A,onClick:u,className:oe,...i,style:_,ref:r},ke.createElement("div",{...H&&{role:N},className:qt(C)?C({type:c}):Gr("Toastify__toast-body",C),style:v},I!=null&&ke.createElement("div",{className:Gr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!z})},I),ke.createElement("div",null,s)),q,ke.createElement(wC,{...T&&!ne?{key:`pb-${T}`}:{},rtl:O,theme:V,delay:l,isRunning:t,isIn:H,closeToast:h,hide:f,type:c,style:b,className:g,controlledProgress:ne,progress:k||0})))},Ku=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},_C=Gu(Ku("bounce",!0));Gu(Ku("slide",!0));Gu(Ku("zoom"));Gu(Ku("flip"));const _f=S.forwardRef((e,t)=>{const{getToastToRender:n,containerRef:r,isToastActive:i}=vC(e),{className:o,style:s,rtl:l,containerId:u}=e;function c(f){const h=Gr("Toastify__toast-container",`Toastify__toast-container--${f}`,{"Toastify__toast-container--rtl":l});return qt(o)?o({position:f,rtl:l,defaultClassName:h}):Gr(h,Ul(o))}return S.useEffect(()=>{t&&(t.current=r.current)},[]),ke.createElement("div",{ref:r,className:"Toastify",id:u},n((f,h)=>{const m=h.length?{...s}:{...s,pointerEvents:"none"};return ke.createElement("div",{className:c(f),style:m,key:`container-${f}`},h.map((y,x)=>{let{content:_,props:C}=y;return ke.createElement(xC,{...C,isIn:i(C.toastId),style:{...C.style,"--nth":x+1,"--len":h.length},key:`toast-${C.key}`},_)}))}))});_f.displayName="ToastContainer",_f.defaultProps={position:"top-right",transition:_C,autoClose:5e3,closeButton:K1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let dd,Si=new Map,Ds=[],EC=1;function Q1(){return""+EC++}function bC(e){return e&&(Gi(e.toastId)||Qs(e.toastId))?e.toastId:Q1()}function Ys(e,t){return Si.size>0?kn.emit(0,e,t):Ds.push({content:e,options:t}),t.toastId}function wu(e,t){return{...t,type:t&&t.type||e,toastId:bC(t)}}function El(e){return(t,n)=>Ys(t,wu(e,n))}function $e(e,t){return Ys(e,wu("default",t))}$e.loading=(e,t)=>Ys(e,wu("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),$e.promise=function(e,t,n){let r,{pending:i,error:o,success:s}=t;i&&(r=Gi(i)?$e.loading(i,n):$e.loading(i.render,{...n,...i}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(f,h,m)=>{if(h==null)return void $e.dismiss(r);const y={type:f,...l,...n,data:m},x=Gi(h)?{render:h}:h;return r?$e.update(r,{...y,...x}):$e(x.render,{...y,...x}),m},c=qt(e)?e():e;return c.then(f=>u("success",s,f)).catch(f=>u("error",o,f)),c},$e.success=El("success"),$e.info=El("info"),$e.error=El("error"),$e.warning=El("warning"),$e.warn=$e.warning,$e.dark=(e,t)=>Ys(e,wu("default",{theme:"dark",...t})),$e.dismiss=e=>{Si.size>0?kn.emit(1,e):Ds=Ds.filter(t=>e!=null&&t.options.toastId!==e)},$e.clearWaitingQueue=function(e){return e===void 0&&(e={}),kn.emit(5,e)},$e.isActive=e=>{let t=!1;return Si.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},$e.update=function(e,t){t===void 0&&(t={}),setTimeout(()=>{const n=function(r,i){let{containerId:o}=i;const s=Si.get(o||dd);return s&&s.getToast(r)}(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:Q1()};o.toastId!==e&&(o.staleId=e);const s=o.render||i;delete o.render,Ys(s,o)}},0)},$e.done=e=>{$e.update(e,{progress:1})},$e.onChange=e=>(kn.on(4,e),()=>{kn.off(4,e)}),$e.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},$e.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},kn.on(2,e=>{dd=e.containerId||e,Si.set(dd,e),Ds.forEach(t=>{kn.emit(0,t.content,t.options)}),Ds=[]}).on(3,e=>{Si.delete(e.containerId||e),Si.size===0&&kn.off(0).off(1).off(5)});const SC=we.span` +`,mC=()=>E.jsxs("svg",{viewBox:"-5 -6 30 30",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx(fC,{x:"1",y:"1",rx:"1",width:5,height:5,fill:"#09202B"}),E.jsx(pC,{x:"1",y:"1",rx:"1",width:5,height:5,fill:"#09202B"}),E.jsx(hC,{x:"1",y:"1",rx:"1",width:5,height:5,fill:"#09202B"})]});function G1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="number"&&!isNaN(e),Gi=e=>typeof e=="string",qt=e=>typeof e=="function",Ul=e=>Gi(e)||qt(e)?e:null,cd=e=>S.isValidElement(e)||Gi(e)||qt(e)||Qs(e);function gC(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Ku(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(s){let{children:l,position:u,preventExitTransition:c,done:f,nodeRef:h,isIn:m}=s;const y=r?`${t}--${u}`:t,x=r?`${n}--${u}`:n,_=S.useRef(0);return S.useLayoutEffect(()=>{const C=h.current,v=y.split(" "),g=b=>{b.target===h.current&&(C.dispatchEvent(new Event("d")),C.removeEventListener("animationend",g),C.removeEventListener("animationcancel",g),_.current===0&&b.type!=="animationcancel"&&C.classList.remove(...v))};C.classList.add(...v),C.addEventListener("animationend",g),C.addEventListener("animationcancel",g)},[]),S.useEffect(()=>{const C=h.current,v=()=>{C.removeEventListener("animationend",v),i?gC(C,f,o):f()};m||(c?v():(_.current=1,C.className+=` ${x}`,C.addEventListener("animationend",v)))},[m]),ke.createElement(ke.Fragment,null,l)}}function sv(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const kn={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter(r=>r!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}},_l=e=>{let{theme:t,type:n,...r}=e;return ke.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},dd={info:function(e){return ke.createElement(_l,{...e},ke.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return ke.createElement(_l,{...e},ke.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return ke.createElement(_l,{...e},ke.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return ke.createElement(_l,{...e},ke.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return ke.createElement("div",{className:"Toastify__spinner"})}};function vC(e){const[,t]=S.useReducer(y=>y+1,0),[n,r]=S.useState([]),i=S.useRef(null),o=S.useRef(new Map).current,s=y=>n.indexOf(y)!==-1,l=S.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:s,getToast:y=>o.get(y)}).current;function u(y){let{containerId:x}=y;const{limit:_}=l.props;!_||x&&l.containerId!==x||(l.count-=l.queue.length,l.queue=[])}function c(y){r(x=>y==null?[]:x.filter(_=>_!==y))}function f(){const{toastContent:y,toastProps:x,staleId:_}=l.queue.shift();m(y,x,_)}function h(y,x){let{delay:_,staleId:C,...v}=x;if(!cd(y)||function(I){return!i.current||l.props.enableMultiContainer&&I.containerId!==l.props.containerId||o.has(I.toastId)&&I.updateId==null}(v))return;const{toastId:g,updateId:b,data:T}=v,{props:N}=l,k=()=>c(g),O=b==null;O&&l.count++;const A={...N,style:N.toastStyle,key:l.toastKey++,...Object.fromEntries(Object.entries(v).filter(I=>{let[K,V]=I;return V!=null})),toastId:g,updateId:b,data:T,closeToast:k,isIn:!1,className:Ul(v.className||N.toastClassName),bodyClassName:Ul(v.bodyClassName||N.bodyClassName),progressClassName:Ul(v.progressClassName||N.progressClassName),autoClose:!v.isLoading&&(F=v.autoClose,H=N.autoClose,F===!1||Qs(F)&&F>0?F:H),deleteToast(){const I=sv(o.get(g),"removed");o.delete(g),kn.emit(4,I);const K=l.queue.length;if(l.count=g==null?l.count-l.displayedToast:l.count-1,l.count<0&&(l.count=0),K>0){const V=g==null?l.props.limit:1;if(K===1||V===1)l.displayedToast++,f();else{const re=V>K?K:V;l.displayedToast=re;for(let oe=0;oeq in dd)(V)&&(ne=dd[V](U))),ne}(A),qt(v.onOpen)&&(A.onOpen=v.onOpen),qt(v.onClose)&&(A.onClose=v.onClose),A.closeButton=N.closeButton,v.closeButton===!1||cd(v.closeButton)?A.closeButton=v.closeButton:v.closeButton===!0&&(A.closeButton=!cd(N.closeButton)||N.closeButton);let z=y;S.isValidElement(y)&&!Gi(y.type)?z=S.cloneElement(y,{closeToast:k,toastProps:A,data:T}):qt(y)&&(z=y({closeToast:k,toastProps:A,data:T})),N.limit&&N.limit>0&&l.count>N.limit&&O?l.queue.push({toastContent:z,toastProps:A,staleId:C}):Qs(_)?setTimeout(()=>{m(z,A,C)},_):m(z,A,C)}function m(y,x,_){const{toastId:C}=x;_&&o.delete(_);const v={content:y,props:x};o.set(C,v),r(g=>[...g,C].filter(b=>b!==_)),kn.emit(4,sv(v,v.props.updateId==null?"added":"updated"))}return S.useEffect(()=>(l.containerId=e.containerId,kn.cancelEmit(3).on(0,h).on(1,y=>i.current&&c(y)).on(5,u).emit(2,l),()=>{o.clear(),kn.emit(3,l)}),[]),S.useEffect(()=>{l.props=e,l.isToastActive=s,l.displayedToast=n.length}),{getToastToRender:function(y){const x=new Map,_=Array.from(o.values());return e.newestOnTop&&_.reverse(),_.forEach(C=>{const{position:v}=C.props;x.has(v)||x.set(v,[]),x.get(v).push(C)}),Array.from(x,C=>y(C[0],C[1]))},containerRef:i,isToastActive:s}}function av(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function lv(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function yC(e){const[t,n]=S.useState(!1),[r,i]=S.useState(!1),o=S.useRef(null),s=S.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,l=S.useRef(e),{autoClose:u,pauseOnHover:c,closeToast:f,onClick:h,closeOnClick:m}=e;function y(T){if(e.draggable){T.nativeEvent.type==="touchstart"&&T.nativeEvent.preventDefault(),s.didMove=!1,document.addEventListener("mousemove",v),document.addEventListener("mouseup",g),document.addEventListener("touchmove",v),document.addEventListener("touchend",g);const N=o.current;s.canCloseOnClick=!0,s.canDrag=!0,s.boundingRect=N.getBoundingClientRect(),N.style.transition="",s.x=av(T.nativeEvent),s.y=lv(T.nativeEvent),e.draggableDirection==="x"?(s.start=s.x,s.removalDistance=N.offsetWidth*(e.draggablePercent/100)):(s.start=s.y,s.removalDistance=N.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent/100))}}function x(T){if(s.boundingRect){const{top:N,bottom:k,left:O,right:A}=s.boundingRect;T.nativeEvent.type!=="touchend"&&e.pauseOnHover&&s.x>=O&&s.x<=A&&s.y>=N&&s.y<=k?C():_()}}function _(){n(!0)}function C(){n(!1)}function v(T){const N=o.current;s.canDrag&&N&&(s.didMove=!0,t&&C(),s.x=av(T),s.y=lv(T),s.delta=e.draggableDirection==="x"?s.x-s.start:s.y-s.start,s.start!==s.x&&(s.canCloseOnClick=!1),N.style.transform=`translate${e.draggableDirection}(${s.delta}px)`,N.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function g(){document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",g),document.removeEventListener("touchmove",v),document.removeEventListener("touchend",g);const T=o.current;if(s.canDrag&&s.didMove&&T){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),void e.closeToast();T.style.transition="transform 0.2s, opacity 0.2s",T.style.transform=`translate${e.draggableDirection}(0)`,T.style.opacity="1"}}S.useEffect(()=>{l.current=e}),S.useEffect(()=>(o.current&&o.current.addEventListener("d",_,{once:!0}),qt(e.onOpen)&&e.onOpen(S.isValidElement(e.children)&&e.children.props),()=>{const T=l.current;qt(T.onClose)&&T.onClose(S.isValidElement(T.children)&&T.children.props)}),[]),S.useEffect(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||C(),window.addEventListener("focus",_),window.addEventListener("blur",C)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",_),window.removeEventListener("blur",C))}),[e.pauseOnFocusLoss]);const b={onMouseDown:y,onTouchStart:y,onMouseUp:x,onTouchEnd:x};return u&&c&&(b.onMouseEnter=C,b.onMouseLeave=_),m&&(b.onClick=T=>{h&&h(T),s.canCloseOnClick&&f()}),{playToast:_,pauseToast:C,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:b}}function K1(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return ke.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:i=>{i.stopPropagation(),t(i)},"aria-label":r},ke.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},ke.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function wC(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:o,className:s,style:l,controlledProgress:u,progress:c,rtl:f,isIn:h,theme:m}=e;const y=o||u&&c===0,x={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:y?0:1};u&&(x.transform=`scaleX(${c})`);const _=Gr("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":f}),C=qt(s)?s({rtl:f,type:i,defaultClassName:_}):Gr(_,s);return ke.createElement("div",{role:"progressbar","aria-hidden":y?"true":"false","aria-label":"notification timer",className:C,style:x,[u&&c>=1?"onTransitionEnd":"onAnimationEnd"]:u&&c<1?null:()=>{h&&r()}})}const xC=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i}=yC(e),{closeButton:o,children:s,autoClose:l,onClick:u,type:c,hideProgressBar:f,closeToast:h,transition:m,position:y,className:x,style:_,bodyClassName:C,bodyStyle:v,progressClassName:g,progressStyle:b,updateId:T,role:N,progress:k,rtl:O,toastId:A,deleteToast:F,isIn:H,isLoading:z,iconOut:I,closeOnClick:K,theme:V}=e,re=Gr("Toastify__toast",`Toastify__toast-theme--${V}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":O},{"Toastify__toast--close-on-click":K}),oe=qt(x)?x({rtl:O,position:y,type:c,defaultClassName:re}):Gr(re,x),ne=!!k||!l,U={closeToast:h,type:c,theme:V};let q=null;return o===!1||(q=qt(o)?o(U):S.isValidElement(o)?S.cloneElement(o,U):K1(U)),ke.createElement(m,{isIn:H,done:F,position:y,preventExitTransition:n,nodeRef:r},ke.createElement("div",{id:A,onClick:u,className:oe,...i,style:_,ref:r},ke.createElement("div",{...H&&{role:N},className:qt(C)?C({type:c}):Gr("Toastify__toast-body",C),style:v},I!=null&&ke.createElement("div",{className:Gr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!z})},I),ke.createElement("div",null,s)),q,ke.createElement(wC,{...T&&!ne?{key:`pb-${T}`}:{},rtl:O,theme:V,delay:l,isRunning:t,isIn:H,closeToast:h,hide:f,type:c,style:b,className:g,controlledProgress:ne,progress:k||0})))},Qu=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},_C=Ku(Qu("bounce",!0));Ku(Qu("slide",!0));Ku(Qu("zoom"));Ku(Qu("flip"));const Ef=S.forwardRef((e,t)=>{const{getToastToRender:n,containerRef:r,isToastActive:i}=vC(e),{className:o,style:s,rtl:l,containerId:u}=e;function c(f){const h=Gr("Toastify__toast-container",`Toastify__toast-container--${f}`,{"Toastify__toast-container--rtl":l});return qt(o)?o({position:f,rtl:l,defaultClassName:h}):Gr(h,Ul(o))}return S.useEffect(()=>{t&&(t.current=r.current)},[]),ke.createElement("div",{ref:r,className:"Toastify",id:u},n((f,h)=>{const m=h.length?{...s}:{...s,pointerEvents:"none"};return ke.createElement("div",{className:c(f),style:m,key:`container-${f}`},h.map((y,x)=>{let{content:_,props:C}=y;return ke.createElement(xC,{...C,isIn:i(C.toastId),style:{...C.style,"--nth":x+1,"--len":h.length},key:`toast-${C.key}`},_)}))}))});Ef.displayName="ToastContainer",Ef.defaultProps={position:"top-right",transition:_C,autoClose:5e3,closeButton:K1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let fd,Si=new Map,Ds=[],EC=1;function Q1(){return""+EC++}function bC(e){return e&&(Gi(e.toastId)||Qs(e.toastId))?e.toastId:Q1()}function Ys(e,t){return Si.size>0?kn.emit(0,e,t):Ds.push({content:e,options:t}),t.toastId}function wu(e,t){return{...t,type:t&&t.type||e,toastId:bC(t)}}function El(e){return(t,n)=>Ys(t,wu(e,n))}function $e(e,t){return Ys(e,wu("default",t))}$e.loading=(e,t)=>Ys(e,wu("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),$e.promise=function(e,t,n){let r,{pending:i,error:o,success:s}=t;i&&(r=Gi(i)?$e.loading(i,n):$e.loading(i.render,{...n,...i}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(f,h,m)=>{if(h==null)return void $e.dismiss(r);const y={type:f,...l,...n,data:m},x=Gi(h)?{render:h}:h;return r?$e.update(r,{...y,...x}):$e(x.render,{...y,...x}),m},c=qt(e)?e():e;return c.then(f=>u("success",s,f)).catch(f=>u("error",o,f)),c},$e.success=El("success"),$e.info=El("info"),$e.error=El("error"),$e.warning=El("warning"),$e.warn=$e.warning,$e.dark=(e,t)=>Ys(e,wu("default",{theme:"dark",...t})),$e.dismiss=e=>{Si.size>0?kn.emit(1,e):Ds=Ds.filter(t=>e!=null&&t.options.toastId!==e)},$e.clearWaitingQueue=function(e){return e===void 0&&(e={}),kn.emit(5,e)},$e.isActive=e=>{let t=!1;return Si.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},$e.update=function(e,t){t===void 0&&(t={}),setTimeout(()=>{const n=function(r,i){let{containerId:o}=i;const s=Si.get(o||fd);return s&&s.getToast(r)}(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:Q1()};o.toastId!==e&&(o.staleId=e);const s=o.render||i;delete o.render,Ys(s,o)}},0)},$e.done=e=>{$e.update(e,{progress:1})},$e.onChange=e=>(kn.on(4,e),()=>{kn.off(4,e)}),$e.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},$e.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},kn.on(2,e=>{fd=e.containerId||e,Si.set(fd,e),Ds.forEach(t=>{kn.emit(0,t.content,t.options)}),Ds=[]}).on(3,e=>{Si.delete(e.containerId||e),Si.size===0&&kn.off(0).off(1).off(5)});const SC=we.span` font-size: 1.2rem; font-weight: bolder; `,kC=we.div` @@ -167,15 +167,15 @@ Error generating stack: `+o.message+` Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i=0)&&(n[i]=e[i]);return n}function LC(e,t,n){var r=S.useRef(e!==void 0),i=S.useState(t),o=i[0],s=i[1],l=e!==void 0,u=r.current;return r.current=l,!l&&u&&o!==t&&s(t),[l?e:o,S.useCallback(function(c){for(var f=arguments.length,h=new Array(f>1?f-1:0),m=1;m{o.target===e&&(i(),t(o))},n+r)}function i3(e){e.offsetHeight}const fv=e=>!e||typeof e=="function"?e:t=>{e.current=t};function o3(e,t){const n=fv(e),r=fv(t);return i=>{n&&n(i),r&&r(i)}}function rs(e,t){return S.useMemo(()=>o3(e,t),[e,t])}function xu(e){return e&&"setState"in e?ji.findDOMNode(e):e??null}const s3=ke.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:o,addEndListener:s,children:l,childRef:u,...c},f)=>{const h=S.useRef(null),m=rs(h,u),y=k=>{m(xu(k))},x=k=>O=>{k&&h.current&&k(h.current,O)},_=S.useCallback(x(e),[e]),C=S.useCallback(x(t),[t]),v=S.useCallback(x(n),[n]),g=S.useCallback(x(r),[r]),b=S.useCallback(x(i),[i]),T=S.useCallback(x(o),[o]),N=S.useCallback(x(s),[s]);return E.jsx(qC,{ref:f,...c,onEnter:_,onEntered:v,onEntering:C,onExit:g,onExited:T,onExiting:b,addEndListener:N,nodeRef:h,children:typeof l=="function"?(k,O)=>l(k,{...O,ref:y}):ke.cloneElement(l,{ref:y})})}),a3=s3;function l3(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e},[e]),t}function Vo(e){const t=l3(e);return S.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function pv(){return S.useState(null)}function iw(){const e=S.useRef(!0),t=S.useRef(()=>e.current);return S.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}const u3=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",c3=typeof document<"u",Cf=c3||u3?S.useLayoutEffect:S.useEffect,d3=["as","disabled"];function f3(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function p3(e){return!e||e.trim()==="#"}function ow({tagName:e,disabled:t,href:n,target:r,rel:i,role:o,onClick:s,tabIndex:l=0,type:u}){e||(n!=null||r!=null||i!=null?e="a":e="button");const c={tagName:e};if(e==="button")return[{type:u||"button",disabled:t},c];const f=m=>{if((t||e==="a"&&p3(n))&&m.preventDefault(),t){m.stopPropagation();return}s==null||s(m)},h=m=>{m.key===" "&&(m.preventDefault(),f(m))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:o??"button",disabled:void 0,tabIndex:t?void 0:l,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?i:void 0,onClick:f,onKeyDown:h},c]}const h3=S.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=f3(e,d3);const[o,{tagName:s}]=ow(Object.assign({tagName:n,disabled:r},i));return E.jsx(s,Object.assign({},i,o,{ref:t}))});h3.displayName="Button";const m3={[Br]:"show",[Ci]:"show"},sw=S.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},o)=>{const s={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},l=S.useCallback((u,c)=>{i3(u),r==null||r(u,c)},[r]);return E.jsx(a3,{ref:o,addEndListener:r3,...s,onEnter:l,childRef:t.ref,children:(u,c)=>S.cloneElement(t,{...c,className:Yn("fade",e,t.props.className,m3[u],n[u])})})});sw.displayName="Fade";const hv=sw,aw=S.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:o=!1,className:s,...l},u)=>{const c=lr(t,"btn"),[f,{tagName:h}]=ow({tagName:e,disabled:o,...l}),m=h;return E.jsx(m,{...f,...l,ref:u,disabled:o,className:Yn(s,c,i&&"active",n&&`${c}-${n}`,r&&`${c}-${r}`,l.href&&o&&"disabled")})});aw.displayName="Button";const mv=aw;function g3(e){const t=S.useRef(e);return t.current=e,t}function v3(e){const t=g3(e);S.useEffect(()=>()=>t.current(),[])}const Tf=2**31-1;function lw(e,t,n){const r=n-Date.now();e.current=r<=Tf?setTimeout(t,r):setTimeout(()=>lw(e,t,n),Tf)}function y3(){const e=iw(),t=S.useRef();return v3(()=>clearTimeout(t.current)),S.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(i,o=0){e()&&(n(),o<=Tf?t.current=setTimeout(i,o):lw(t,i,Date.now()+o))}return{set:r,clear:n,handleRef:t}},[])}function w3({as:e,bsPrefix:t,className:n,...r}){t=lr(t,"col");const i=q1(),o=X1(),s=[],l=[];return i.forEach(u=>{const c=r[u];delete r[u];let f,h,m;typeof c=="object"&&c!=null?{span:f,offset:h,order:m}=c:f=c;const y=u!==o?`-${u}`:"";f&&s.push(f===!0?`${t}${y}`:`${t}${y}-${f}`),m!=null&&l.push(`order${y}-${m}`),h!=null&&l.push(`offset${y}-${h}`)}),[{...r,className:Yn(n,...s,...l)},{as:e,bsPrefix:t,spans:s}]}const uw=S.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:o,spans:s}]=w3(e);return E.jsx(i,{...r,ref:t,className:Yn(n,!s.length&&o)})});uw.displayName="Col";const gv=uw;var vv=Object.prototype.hasOwnProperty;function yv(e,t,n){for(n of e.keys())if(qs(n,t))return n}function qs(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&qs(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(i=r,i&&typeof i=="object"&&(i=yv(t,i),!i)||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(i=r[0],i&&typeof i=="object"&&(i=yv(t,i),!i)||!qs(r[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(vv.call(e,n)&&++r&&!vv.call(t,n)||!(n in t)||!qs(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function x3(e){const t=iw();return[e[0],S.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var en="top",Rn="bottom",An="right",tn="left",Bp="auto",Aa=[en,Rn,An,tn],Go="start",_a="end",_3="clippingParents",cw="viewport",Ps="popper",E3="reference",wv=Aa.reduce(function(e,t){return e.concat([t+"-"+Go,t+"-"+_a])},[]),dw=[].concat(Aa,[Bp]).reduce(function(e,t){return e.concat([t,t+"-"+Go,t+"-"+_a])},[]),b3="beforeRead",S3="read",k3="afterRead",C3="beforeMain",T3="main",O3="afterMain",P3="beforeWrite",j3="write",N3="afterWrite",L3=[b3,S3,k3,C3,T3,O3,P3,j3,N3];function sr(e){return e.split("-")[0]}function pn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ki(e){var t=pn(e).Element;return e instanceof t||e instanceof Element}function ar(e){var t=pn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Up(e){if(typeof ShadowRoot>"u")return!1;var t=pn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var zi=Math.max,_u=Math.min,Ko=Math.round;function Of(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function fw(){return!/^((?!chrome|android).)*safari/i.test(Of())}function Qo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&ar(e)&&(i=e.offsetWidth>0&&Ko(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Ko(r.height)/e.offsetHeight||1);var s=Ki(e)?pn(e):window,l=s.visualViewport,u=!fw()&&n,c=(r.left+(u&&l?l.offsetLeft:0))/i,f=(r.top+(u&&l?l.offsetTop:0))/o,h=r.width/i,m=r.height/o;return{width:h,height:m,top:f,right:c+h,bottom:f+m,left:c,x:c,y:f}}function Hp(e){var t=Qo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function pw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Up(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ii(e){return e?(e.nodeName||"").toLowerCase():null}function kr(e){return pn(e).getComputedStyle(e)}function R3(e){return["table","td","th"].indexOf(ii(e))>=0}function ui(e){return((Ki(e)?e.ownerDocument:e.document)||window.document).documentElement}function qu(e){return ii(e)==="html"?e:e.assignedSlot||e.parentNode||(Up(e)?e.host:null)||ui(e)}function xv(e){return!ar(e)||kr(e).position==="fixed"?null:e.offsetParent}function A3(e){var t=/firefox/i.test(Of()),n=/Trident/i.test(Of());if(n&&ar(e)){var r=kr(e);if(r.position==="fixed")return null}var i=qu(e);for(Up(i)&&(i=i.host);ar(i)&&["html","body"].indexOf(ii(i))<0;){var o=kr(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Da(e){for(var t=pn(e),n=xv(e);n&&R3(n)&&kr(n).position==="static";)n=xv(n);return n&&(ii(n)==="html"||ii(n)==="body"&&kr(n).position==="static")?t:n||A3(e)||t}function Wp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Xs(e,t,n){return zi(e,_u(t,n))}function D3(e,t,n){var r=Xs(e,t,n);return r>n?n:r}function hw(){return{top:0,right:0,bottom:0,left:0}}function mw(e){return Object.assign({},hw(),e)}function gw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var $3=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,mw(typeof t!="number"?t:gw(t,Aa))};function M3(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,l=sr(n.placement),u=Wp(l),c=[tn,An].indexOf(l)>=0,f=c?"height":"width";if(!(!o||!s)){var h=$3(i.padding,n),m=Hp(o),y=u==="y"?en:tn,x=u==="y"?Rn:An,_=n.rects.reference[f]+n.rects.reference[u]-s[u]-n.rects.popper[f],C=s[u]-n.rects.reference[u],v=Da(o),g=v?u==="y"?v.clientHeight||0:v.clientWidth||0:0,b=_/2-C/2,T=h[y],N=g-m[f]-h[x],k=g/2-m[f]/2+b,O=Xs(T,k,N),A=u;n.modifiersData[r]=(t={},t[A]=O,t.centerOffset=O-k,t)}}function I3(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||pw(t.elements.popper,i)&&(t.elements.arrow=i))}const z3={name:"arrow",enabled:!0,phase:"main",fn:M3,effect:I3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yo(e){return e.split("-")[1]}var F3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function B3(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Ko(n*i)/i||0,y:Ko(r*i)/i||0}}function _v(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,h=e.isFixed,m=s.x,y=m===void 0?0:m,x=s.y,_=x===void 0?0:x,C=typeof f=="function"?f({x:y,y:_}):{x:y,y:_};y=C.x,_=C.y;var v=s.hasOwnProperty("x"),g=s.hasOwnProperty("y"),b=tn,T=en,N=window;if(c){var k=Da(n),O="clientHeight",A="clientWidth";if(k===pn(n)&&(k=ui(n),kr(k).position!=="static"&&l==="absolute"&&(O="scrollHeight",A="scrollWidth")),k=k,i===en||(i===tn||i===An)&&o===_a){T=Rn;var F=h&&k===N&&N.visualViewport?N.visualViewport.height:k[O];_-=F-r.height,_*=u?1:-1}if(i===tn||(i===en||i===Rn)&&o===_a){b=An;var H=h&&k===N&&N.visualViewport?N.visualViewport.width:k[A];y-=H-r.width,y*=u?1:-1}}var z=Object.assign({position:l},c&&F3),I=f===!0?B3({x:y,y:_},pn(n)):{x:y,y:_};if(y=I.x,_=I.y,u){var K;return Object.assign({},z,(K={},K[T]=g?"0":"",K[b]=v?"0":"",K.transform=(N.devicePixelRatio||1)<=1?"translate("+y+"px, "+_+"px)":"translate3d("+y+"px, "+_+"px, 0)",K))}return Object.assign({},z,(t={},t[T]=g?_+"px":"",t[b]=v?y+"px":"",t.transform="",t))}function U3(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,l=n.roundOffsets,u=l===void 0?!0:l,c={placement:sr(t.placement),variation:Yo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,_v(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,_v(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const H3={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:U3,data:{}};var Sl={passive:!0};function W3(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,l=s===void 0?!0:s,u=pn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(f){f.addEventListener("scroll",n.update,Sl)}),l&&u.addEventListener("resize",n.update,Sl),function(){o&&c.forEach(function(f){f.removeEventListener("scroll",n.update,Sl)}),l&&u.removeEventListener("resize",n.update,Sl)}}const V3={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:W3,data:{}};var G3={left:"right",right:"left",bottom:"top",top:"bottom"};function Hl(e){return e.replace(/left|right|bottom|top/g,function(t){return G3[t]})}var K3={start:"end",end:"start"};function Ev(e){return e.replace(/start|end/g,function(t){return K3[t]})}function Vp(e){var t=pn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Gp(e){return Qo(ui(e)).left+Vp(e).scrollLeft}function Q3(e,t){var n=pn(e),r=ui(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,l=0,u=0;if(i){o=i.width,s=i.height;var c=fw();(c||!c&&t==="fixed")&&(l=i.offsetLeft,u=i.offsetTop)}return{width:o,height:s,x:l+Gp(e),y:u}}function Y3(e){var t,n=ui(e),r=Vp(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=zi(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=zi(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Gp(e),u=-r.scrollTop;return kr(i||n).direction==="rtl"&&(l+=zi(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:l,y:u}}function Kp(e){var t=kr(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function vw(e){return["html","body","#document"].indexOf(ii(e))>=0?e.ownerDocument.body:ar(e)&&Kp(e)?e:vw(qu(e))}function Zs(e,t){var n;t===void 0&&(t=[]);var r=vw(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=pn(r),s=i?[o].concat(o.visualViewport||[],Kp(r)?r:[]):r,l=t.concat(s);return i?l:l.concat(Zs(qu(s)))}function Pf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function q3(e,t){var n=Qo(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function bv(e,t,n){return t===cw?Pf(Q3(e,n)):Ki(t)?q3(t,n):Pf(Y3(ui(e)))}function X3(e){var t=Zs(qu(e)),n=["absolute","fixed"].indexOf(kr(e).position)>=0,r=n&&ar(e)?Da(e):e;return Ki(r)?t.filter(function(i){return Ki(i)&&pw(i,r)&&ii(i)!=="body"}):[]}function Z3(e,t,n,r){var i=t==="clippingParents"?X3(e):[].concat(t),o=[].concat(i,[n]),s=o[0],l=o.reduce(function(u,c){var f=bv(e,c,r);return u.top=zi(f.top,u.top),u.right=_u(f.right,u.right),u.bottom=_u(f.bottom,u.bottom),u.left=zi(f.left,u.left),u},bv(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function yw(e){var t=e.reference,n=e.element,r=e.placement,i=r?sr(r):null,o=r?Yo(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(i){case en:u={x:s,y:t.y-n.height};break;case Rn:u={x:s,y:t.y+t.height};break;case An:u={x:t.x+t.width,y:l};break;case tn:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var c=i?Wp(i):null;if(c!=null){var f=c==="y"?"height":"width";switch(o){case Go:u[c]=u[c]-(t[f]/2-n[f]/2);break;case _a:u[c]=u[c]+(t[f]/2-n[f]/2);break}}return u}function Ea(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,l=n.boundary,u=l===void 0?_3:l,c=n.rootBoundary,f=c===void 0?cw:c,h=n.elementContext,m=h===void 0?Ps:h,y=n.altBoundary,x=y===void 0?!1:y,_=n.padding,C=_===void 0?0:_,v=mw(typeof C!="number"?C:gw(C,Aa)),g=m===Ps?E3:Ps,b=e.rects.popper,T=e.elements[x?g:m],N=Z3(Ki(T)?T:T.contextElement||ui(e.elements.popper),u,f,s),k=Qo(e.elements.reference),O=yw({reference:k,element:b,strategy:"absolute",placement:i}),A=Pf(Object.assign({},b,O)),F=m===Ps?A:k,H={top:N.top-F.top+v.top,bottom:F.bottom-N.bottom+v.bottom,left:N.left-F.left+v.left,right:F.right-N.right+v.right},z=e.modifiersData.offset;if(m===Ps&&z){var I=z[i];Object.keys(H).forEach(function(K){var V=[An,Rn].indexOf(K)>=0?1:-1,re=[en,Rn].indexOf(K)>=0?"y":"x";H[K]+=I[re]*V})}return H}function J3(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?dw:u,f=Yo(r),h=f?l?wv:wv.filter(function(x){return Yo(x)===f}):Aa,m=h.filter(function(x){return c.indexOf(x)>=0});m.length===0&&(m=h);var y=m.reduce(function(x,_){return x[_]=Ea(e,{placement:_,boundary:i,rootBoundary:o,padding:s})[sr(_)],x},{});return Object.keys(y).sort(function(x,_){return y[x]-y[_]})}function e4(e){if(sr(e)===Bp)return[];var t=Hl(e);return[Ev(e),t,Ev(t)]}function t4(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,l=s===void 0?!0:s,u=n.fallbackPlacements,c=n.padding,f=n.boundary,h=n.rootBoundary,m=n.altBoundary,y=n.flipVariations,x=y===void 0?!0:y,_=n.allowedAutoPlacements,C=t.options.placement,v=sr(C),g=v===C,b=u||(g||!x?[Hl(C)]:e4(C)),T=[C].concat(b).reduce(function(ae,ye){return ae.concat(sr(ye)===Bp?J3(t,{placement:ye,boundary:f,rootBoundary:h,padding:c,flipVariations:x,allowedAutoPlacements:_}):ye)},[]),N=t.rects.reference,k=t.rects.popper,O=new Map,A=!0,F=T[0],H=0;H=0,re=V?"width":"height",oe=Ea(t,{placement:z,boundary:f,rootBoundary:h,altBoundary:m,padding:c}),ne=V?K?An:tn:K?Rn:en;N[re]>k[re]&&(ne=Hl(ne));var U=Hl(ne),q=[];if(o&&q.push(oe[I]<=0),l&&q.push(oe[ne]<=0,oe[U]<=0),q.every(function(ae){return ae})){F=z,A=!1;break}O.set(z,q)}if(A)for(var R=x?3:1,se=function(ye){var ue=T.find(function(xe){var G=O.get(xe);if(G)return G.slice(0,ye).every(function(We){return We})});if(ue)return F=ue,"break"},ve=R;ve>0;ve--){var Re=se(ve);if(Re==="break")break}t.placement!==F&&(t.modifiersData[r]._skip=!0,t.placement=F,t.reset=!0)}}const n4={name:"flip",enabled:!0,phase:"main",fn:t4,requiresIfExists:["offset"],data:{_skip:!1}};function Sv(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function kv(e){return[en,An,Rn,tn].some(function(t){return e[t]>=0})}function r4(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Ea(t,{elementContext:"reference"}),l=Ea(t,{altBoundary:!0}),u=Sv(s,r),c=Sv(l,i,o),f=kv(u),h=kv(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const i4={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:r4};function o4(e,t,n){var r=sr(e),i=[tn,en].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],l=o[1];return s=s||0,l=(l||0)*i,[tn,An].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function s4(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=dw.reduce(function(f,h){return f[h]=o4(h,t.rects,o),f},{}),l=s[t.placement],u=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const a4={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:s4};function l4(e){var t=e.state,n=e.name;t.modifiersData[n]=yw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const u4={name:"popperOffsets",enabled:!0,phase:"read",fn:l4,data:{}};function c4(e){return e==="x"?"y":"x"}function d4(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,l=s===void 0?!1:s,u=n.boundary,c=n.rootBoundary,f=n.altBoundary,h=n.padding,m=n.tether,y=m===void 0?!0:m,x=n.tetherOffset,_=x===void 0?0:x,C=Ea(t,{boundary:u,rootBoundary:c,padding:h,altBoundary:f}),v=sr(t.placement),g=Yo(t.placement),b=!g,T=Wp(v),N=c4(T),k=t.modifiersData.popperOffsets,O=t.rects.reference,A=t.rects.popper,F=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,H=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(k){if(o){var K,V=T==="y"?en:tn,re=T==="y"?Rn:An,oe=T==="y"?"height":"width",ne=k[T],U=ne+C[V],q=ne-C[re],R=y?-A[oe]/2:0,se=g===Go?O[oe]:A[oe],ve=g===Go?-A[oe]:-O[oe],Re=t.elements.arrow,ae=y&&Re?Hp(Re):{width:0,height:0},ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:hw(),ue=ye[V],xe=ye[re],G=Xs(0,O[oe],ae[oe]),We=b?O[oe]/2-R-G-ue-H.mainAxis:se-G-ue-H.mainAxis,mt=b?-O[oe]/2+R+G+xe+H.mainAxis:ve+G+xe+H.mainAxis,Te=t.elements.arrow&&Da(t.elements.arrow),xt=Te?T==="y"?Te.clientTop||0:Te.clientLeft||0:0,je=(K=z==null?void 0:z[T])!=null?K:0,Ne=ne+We-je-xt,ze=ne+mt-je,gt=Xs(y?_u(U,Ne):U,ne,y?zi(q,ze):q);k[T]=gt,I[T]=gt-ne}if(l){var cr,is=T==="x"?en:tn,os=T==="x"?Rn:An,Dn=k[N],vn=N==="y"?"height":"width",ci=Dn+C[is],Pr=Dn-C[os],Ot=[en,tn].indexOf(v)!==-1,Pt=(cr=z==null?void 0:z[N])!=null?cr:0,jr=Ot?ci:Dn-O[vn]-A[vn]-Pt+H.altAxis,rn=Ot?Dn+O[vn]+A[vn]-Pt-H.altAxis:Pr,$n=y&&Ot?D3(jr,Dn,rn):Xs(y?jr:ci,Dn,y?rn:Pr);k[N]=$n,I[N]=$n-Dn}t.modifiersData[r]=I}}const f4={name:"preventOverflow",enabled:!0,phase:"main",fn:d4,requiresIfExists:["offset"]};function p4(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function h4(e){return e===pn(e)||!ar(e)?Vp(e):p4(e)}function m4(e){var t=e.getBoundingClientRect(),n=Ko(t.width)/e.offsetWidth||1,r=Ko(t.height)/e.offsetHeight||1;return n!==1||r!==1}function g4(e,t,n){n===void 0&&(n=!1);var r=ar(t),i=ar(t)&&m4(t),o=ui(t),s=Qo(e,i,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((ii(t)!=="body"||Kp(o))&&(l=h4(t)),ar(t)?(u=Qo(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=Gp(o))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function v4(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&i(u)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function y4(e){var t=v4(e);return L3.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function w4(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function x4(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Cv={placement:"bottom",modifiers:[],strategy:"absolute"};function Tv(){for(var e=arguments.length,t=new Array(e),n=0;n=0)&&(n[i]=e[i]);return n}const k4={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},C4={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(i=>i.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,i=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&i==="tooltip"&&"setAttribute"in r){const o=r.getAttribute("aria-describedby");if(o&&o.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",o?`${o},${n.id}`:n.id)}}},T4=[];function O4(e,t,n={}){let{enabled:r=!0,placement:i="bottom",strategy:o="absolute",modifiers:s=T4}=n,l=S4(n,b4);const u=S.useRef(s),c=S.useRef(),f=S.useCallback(()=>{var C;(C=c.current)==null||C.update()},[]),h=S.useCallback(()=>{var C;(C=c.current)==null||C.forceUpdate()},[]),[m,y]=x3(S.useState({placement:i,update:f,forceUpdate:h,attributes:{},styles:{popper:{},arrow:{}}})),x=S.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:C})=>{const v={},g={};Object.keys(C.elements).forEach(b=>{v[b]=C.styles[b],g[b]=C.attributes[b]}),y({state:C,styles:v,attributes:g,update:f,forceUpdate:h,placement:C.placement})}}),[f,h,y]),_=S.useMemo(()=>(qs(u.current,s)||(u.current=s),u.current),[s]);return S.useEffect(()=>{!c.current||!r||c.current.setOptions({placement:i,strategy:o,modifiers:[..._,x,k4]})},[o,i,x,r,_]),S.useEffect(()=>{if(!(!r||e==null||t==null))return c.current=E4(e,t,Object.assign({},l,{placement:i,strategy:o,modifiers:[..._,C4,x]})),()=>{c.current!=null&&(c.current.destroy(),c.current=void 0,y(C=>Object.assign({},C,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),m}function jf(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var P4=function(){},j4=P4;const N4=qo(j4),Ov=()=>{};function L4(e){return e.button===0}function R4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Wl=e=>e&&("current"in e?e.current:e),Pv={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function A4(e,t=Ov,{disabled:n,clickTrigger:r="click"}={}){const i=S.useRef(!1),o=S.useRef(!1),s=S.useCallback(c=>{const f=Wl(e);N4(!!f,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!f||R4(c)||!L4(c)||!!jf(f,c.target)||o.current,o.current=!1},[e]),l=Vo(c=>{const f=Wl(e);f&&jf(f,c.target)&&(o.current=!0)}),u=Vo(c=>{i.current||t(c)});S.useEffect(()=>{var c,f;if(n||e==null)return;const h=Yu(Wl(e)),m=h.defaultView||window;let y=(c=m.event)!=null?c:(f=m.parent)==null?void 0:f.event,x=null;Pv[r]&&(x=Ai(h,Pv[r],l,!0));const _=Ai(h,r,s,!0),C=Ai(h,r,g=>{if(g===y){y=void 0;return}u(g)});let v=[];return"ontouchstart"in h.documentElement&&(v=[].slice.call(h.body.children).map(g=>Ai(g,"mousemove",Ov))),()=>{x==null||x(),_(),C(),v.forEach(g=>g())}},[e,n,r,s,l,u])}function D4(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function $4(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function M4({enabled:e,enableEvents:t,placement:n,flip:r,offset:i,fixed:o,containerPadding:s,arrowElement:l,popperConfig:u={}}){var c,f,h,m,y;const x=D4(u.modifiers);return Object.assign({},u,{placement:n,enabled:e,strategy:o?"fixed":u.strategy,modifiers:$4(Object.assign({},x,{eventListeners:{enabled:t,options:(c=x.eventListeners)==null?void 0:c.options},preventOverflow:Object.assign({},x.preventOverflow,{options:s?Object.assign({padding:s},(f=x.preventOverflow)==null?void 0:f.options):(h=x.preventOverflow)==null?void 0:h.options}),offset:{options:Object.assign({offset:i},(m=x.offset)==null?void 0:m.options)},arrow:Object.assign({},x.arrow,{enabled:!!l,options:Object.assign({},(y=x.arrow)==null?void 0:y.options,{element:l})}),flip:Object.assign({enabled:!!r},x.flip)}))})}const ww=S.createContext(Fp?window:void 0);ww.Provider;function I4(){return S.useContext(ww)}const pd=(e,t)=>Fp?e==null?(t||Yu()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function jv(e,t){const n=I4(),[r,i]=S.useState(()=>pd(e,n==null?void 0:n.document));if(!r){const o=pd(e);o&&i(o)}return S.useEffect(()=>{t&&r&&t(r)},[t,r]),S.useEffect(()=>{const o=pd(e);o!==r&&i(o)},[e,r]),r}function z4({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const o=S.useRef(null),s=S.useRef(t),l=Vo(n);S.useEffect(()=>{t?s.current=!0:l(o.current)},[t,l]);const u=rs(o,e.ref),c=S.cloneElement(e,{ref:u});return t?c:i||!s.current&&r?null:c}function F4({in:e,onTransition:t}){const n=S.useRef(null),r=S.useRef(!0),i=Vo(t);return Cf(()=>{if(!n.current)return;let o=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>o}),()=>{o=!0}},[e,i]),Cf(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function B4({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[o,s]=S.useState(!t);t&&o&&s(!1);const l=F4({in:!!t,onTransition:c=>{const f=()=>{c.isStale()||(c.in?r==null||r(c.element,c.initial):(s(!0),n==null||n(c.element)))};Promise.resolve(i(c)).then(f,h=>{throw c.in||s(!0),h})}}),u=rs(l,e.ref);return o&&!t?null:S.cloneElement(e,{ref:u})}function U4(e,t,n){return e?E.jsx(e,Object.assign({},n)):t?E.jsx(B4,Object.assign({},n,{transition:t})):E.jsx(z4,Object.assign({},n))}function H4(e){return e.code==="Escape"||e.keyCode===27}function Nv(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}const W4=()=>{};function V4(e,t,{disabled:n,clickTrigger:r}={}){const i=t||W4;A4(e,i,{disabled:n,clickTrigger:r});const o=Vo(s=>{H4(s)&&i(s)});S.useEffect(()=>{if(n||e==null)return;const s=Yu(Wl(e));let l=(s.defaultView||window).event;const u=Ai(s,"keyup",c=>{if(c===l){l=void 0;return}o(c)});return()=>{u()}},[e,n,o])}const xw=S.forwardRef((e,t)=>{const{flip:n,offset:r,placement:i,containerPadding:o,popperConfig:s={},transition:l,runTransition:u}=e,[c,f]=pv(),[h,m]=pv(),y=rs(f,t),x=jv(e.container),_=jv(e.target),[C,v]=S.useState(!e.show),g=O4(_,c,M4({placement:i,enableEvents:!!e.show,containerPadding:o||5,flip:n,offset:r,arrowElement:h,popperConfig:s}));e.show&&C&&v(!1);const b=(...z)=>{v(!0),e.onExited&&e.onExited(...z)},T=e.show||!C;if(V4(c,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!T)return null;const{onExit:N,onExiting:k,onEnter:O,onEntering:A,onEntered:F}=e;let H=e.children(Object.assign({},g.attributes.popper,{style:g.styles.popper,ref:y}),{popper:g,placement:i,show:!!e.show,arrowProps:Object.assign({},g.attributes.arrow,{style:g.styles.arrow,ref:m})});return H=U4(l,u,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:H,onExit:N,onExiting:k,onExited:b,onEnter:O,onEntering:A,onEntered:F}),x?ji.createPortal(H,x):null});xw.displayName="Overlay";const G4=xw,_w=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=lr(t,"popover-header"),E.jsx(n,{ref:i,className:Yn(e,t),...r})));_w.displayName="PopoverHeader";const K4=_w,Ew=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=lr(t,"popover-body"),E.jsx(n,{ref:i,className:Yn(e,t),...r})));Ew.displayName="PopoverBody";const bw=Ew;function Sw(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function kw(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const Q4=S.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,body:o,arrowProps:s,hasDoneInitialMeasure:l,popper:u,show:c,...f},h)=>{const m=lr(e,"popover"),y=Z1(),[x]=(t==null?void 0:t.split("-"))||[],_=Sw(x,y);let C=r;return c&&!l&&(C={...r,...kw(u==null?void 0:u.strategy)}),E.jsxs("div",{ref:h,role:"tooltip",style:C,"x-placement":x,className:Yn(n,m,x&&`bs-popover-${_}`),...f,children:[E.jsx("div",{className:"popover-arrow",...s}),o?E.jsx(bw,{children:i}):i]})}),Y4=Object.assign(Q4,{Header:K4,Body:bw,POPPER_OFFSET:[0,8]}),Cw=S.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,arrowProps:o,hasDoneInitialMeasure:s,popper:l,show:u,...c},f)=>{e=lr(e,"tooltip");const h=Z1(),[m]=(t==null?void 0:t.split("-"))||[],y=Sw(m,h);let x=r;return u&&!s&&(x={...r,...kw(l==null?void 0:l.strategy)}),E.jsxs("div",{ref:f,style:x,role:"tooltip","x-placement":m,className:Yn(n,e,`bs-tooltip-${y}`),...c,children:[E.jsx("div",{className:"tooltip-arrow",...o}),E.jsx("div",{className:`${e}-inner`,children:i})]})});Cw.displayName="Tooltip";const Nf=Object.assign(Cw,{TOOLTIP_OFFSET:[0,6]});function q4(e){const t=S.useRef(null),n=lr(void 0,"popover"),r=lr(void 0,"tooltip"),i=S.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(Nv(t.current,n))return Y4.POPPER_OFFSET;if(Nv(t.current,r))return Nf.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[i]]}function X4(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=i=>n(xu(i))),t.ref=r.__wrapped||(r.__wrapped=i=>r(xu(i)))}const Tw=S.forwardRef(({children:e,transition:t=hv,popperConfig:n={},rootClose:r=!1,placement:i="top",show:o=!1,...s},l)=>{const u=S.useRef({}),[c,f]=S.useState(null),[h,m]=q4(s.offset),y=rs(l,h),x=t===!0?hv:t||void 0,_=Vo(C=>{f(C),n==null||n.onFirstUpdate==null||n.onFirstUpdate(C)});return Cf(()=>{c&&s.target&&(u.current.scheduleUpdate==null||u.current.scheduleUpdate())},[c,s.target]),S.useEffect(()=>{o||f(null)},[o]),E.jsx(G4,{...s,ref:y,popperConfig:{...n,modifiers:m.concat(n.modifiers||[]),onFirstUpdate:_},transition:x,rootClose:r,placement:i,show:o,children:(C,{arrowProps:v,popper:g,show:b})=>{var T,N;X4(C,v);const k=g==null?void 0:g.placement,O=Object.assign(u.current,{state:g==null?void 0:g.state,scheduleUpdate:g==null?void 0:g.update,placement:k,outOfBoundaries:(g==null||(T=g.state)==null||(N=T.modifiersData.hide)==null?void 0:N.isReferenceHidden)||!1,strategy:n.strategy}),A=!!c;return typeof e=="function"?e({...C,placement:k,show:b,...!t&&b&&{className:"show"},popper:O,arrowProps:v,hasDoneInitialMeasure:A}):S.cloneElement(e,{...C,placement:k,arrowProps:v,popper:O,hasDoneInitialMeasure:A,className:Yn(e.props.className,!t&&b&&"show"),style:{...e.props.style,...C.style}})}})});Tw.displayName="Overlay";const Z4=Tw;function J4(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function Lv(e,t,n){const[r]=t,i=r.currentTarget,o=r.relatedTarget||r.nativeEvent[n];(!o||o!==i)&&!jf(i,o)&&e(...t)}QC.oneOf(["click","hover","focus"]);const eT=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:i,defaultShow:o=!1,onToggle:s,delay:l,placement:u,flip:c=u&&u.indexOf("auto")!==-1,...f})=>{const h=S.useRef(null),m=rs(h,n.ref),y=y3(),x=S.useRef(""),[_,C]=LC(i,o,s),v=J4(l),{onFocus:g,onBlur:b,onClick:T}=typeof n!="function"?S.Children.only(n).props:{},N=re=>{m(xu(re))},k=S.useCallback(()=>{if(y.clear(),x.current="show",!v.show){C(!0);return}y.set(()=>{x.current==="show"&&C(!0)},v.show)},[v.show,C,y]),O=S.useCallback(()=>{if(y.clear(),x.current="hide",!v.hide){C(!1);return}y.set(()=>{x.current==="hide"&&C(!1)},v.hide)},[v.hide,C,y]),A=S.useCallback((...re)=>{k(),g==null||g(...re)},[k,g]),F=S.useCallback((...re)=>{O(),b==null||b(...re)},[O,b]),H=S.useCallback((...re)=>{C(!_),T==null||T(...re)},[T,C,_]),z=S.useCallback((...re)=>{Lv(k,re,"fromElement")},[k]),I=S.useCallback((...re)=>{Lv(O,re,"toElement")},[O]),K=e==null?[]:[].concat(e),V={ref:N};return K.indexOf("click")!==-1&&(V.onClick=H),K.indexOf("focus")!==-1&&(V.onFocus=A,V.onBlur=F),K.indexOf("hover")!==-1&&(V.onMouseOver=z,V.onMouseOut=I),E.jsxs(E.Fragment,{children:[typeof n=="function"?n(V):S.cloneElement(n,V),E.jsx(Z4,{...f,show:_,onHide:O,flip:c,placement:u,popperConfig:r,target:h.current,children:t})]})},Rv=eT,Ow=S.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},i)=>{const o=lr(e,"row"),s=q1(),l=X1(),u=`${o}-cols`,c=[];return s.forEach(f=>{const h=r[f];delete r[f];let m;h!=null&&typeof h=="object"?{cols:m}=h:m=h;const y=f!==l?`-${f}`:"";m!=null&&c.push(`${u}${y}-${m}`)}),E.jsx(n,{ref:i,...r,className:Yn(t,o,...c)})});Ow.displayName="Row";const tT=Ow,Pw=S.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:i="div",className:o,...s},l)=>{e=lr(e,"spinner");const u=`${e}-${n}`;return E.jsx(i,{ref:l,...s,className:Yn(o,u,r&&`${u}-${r}`,t&&`text-${t}`)})});Pw.displayName="Spinner";const Xu=Pw,nT=we.div` +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i=0)&&(n[i]=e[i]);return n}function LC(e,t,n){var r=S.useRef(e!==void 0),i=S.useState(t),o=i[0],s=i[1],l=e!==void 0,u=r.current;return r.current=l,!l&&u&&o!==t&&s(t),[l?e:o,S.useCallback(function(c){for(var f=arguments.length,h=new Array(f>1?f-1:0),m=1;m{o.target===e&&(i(),t(o))},n+r)}function i3(e){e.offsetHeight}const fv=e=>!e||typeof e=="function"?e:t=>{e.current=t};function o3(e,t){const n=fv(e),r=fv(t);return i=>{n&&n(i),r&&r(i)}}function rs(e,t){return S.useMemo(()=>o3(e,t),[e,t])}function xu(e){return e&&"setState"in e?ji.findDOMNode(e):e??null}const s3=ke.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:o,addEndListener:s,children:l,childRef:u,...c},f)=>{const h=S.useRef(null),m=rs(h,u),y=k=>{m(xu(k))},x=k=>O=>{k&&h.current&&k(h.current,O)},_=S.useCallback(x(e),[e]),C=S.useCallback(x(t),[t]),v=S.useCallback(x(n),[n]),g=S.useCallback(x(r),[r]),b=S.useCallback(x(i),[i]),T=S.useCallback(x(o),[o]),N=S.useCallback(x(s),[s]);return E.jsx(qC,{ref:f,...c,onEnter:_,onEntered:v,onEntering:C,onExit:g,onExited:T,onExiting:b,addEndListener:N,nodeRef:h,children:typeof l=="function"?(k,O)=>l(k,{...O,ref:y}):ke.cloneElement(l,{ref:y})})}),a3=s3;function l3(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e},[e]),t}function Vo(e){const t=l3(e);return S.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function pv(){return S.useState(null)}function iw(){const e=S.useRef(!0),t=S.useRef(()=>e.current);return S.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}const u3=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",c3=typeof document<"u",Tf=c3||u3?S.useLayoutEffect:S.useEffect,d3=["as","disabled"];function f3(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function p3(e){return!e||e.trim()==="#"}function ow({tagName:e,disabled:t,href:n,target:r,rel:i,role:o,onClick:s,tabIndex:l=0,type:u}){e||(n!=null||r!=null||i!=null?e="a":e="button");const c={tagName:e};if(e==="button")return[{type:u||"button",disabled:t},c];const f=m=>{if((t||e==="a"&&p3(n))&&m.preventDefault(),t){m.stopPropagation();return}s==null||s(m)},h=m=>{m.key===" "&&(m.preventDefault(),f(m))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:o??"button",disabled:void 0,tabIndex:t?void 0:l,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?i:void 0,onClick:f,onKeyDown:h},c]}const h3=S.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=f3(e,d3);const[o,{tagName:s}]=ow(Object.assign({tagName:n,disabled:r},i));return E.jsx(s,Object.assign({},i,o,{ref:t}))});h3.displayName="Button";const m3={[Br]:"show",[Ci]:"show"},sw=S.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},o)=>{const s={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},l=S.useCallback((u,c)=>{i3(u),r==null||r(u,c)},[r]);return E.jsx(a3,{ref:o,addEndListener:r3,...s,onEnter:l,childRef:t.ref,children:(u,c)=>S.cloneElement(t,{...c,className:Yn("fade",e,t.props.className,m3[u],n[u])})})});sw.displayName="Fade";const hv=sw,aw=S.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:o=!1,className:s,...l},u)=>{const c=lr(t,"btn"),[f,{tagName:h}]=ow({tagName:e,disabled:o,...l}),m=h;return E.jsx(m,{...f,...l,ref:u,disabled:o,className:Yn(s,c,i&&"active",n&&`${c}-${n}`,r&&`${c}-${r}`,l.href&&o&&"disabled")})});aw.displayName="Button";const mv=aw;function g3(e){const t=S.useRef(e);return t.current=e,t}function v3(e){const t=g3(e);S.useEffect(()=>()=>t.current(),[])}const Of=2**31-1;function lw(e,t,n){const r=n-Date.now();e.current=r<=Of?setTimeout(t,r):setTimeout(()=>lw(e,t,n),Of)}function y3(){const e=iw(),t=S.useRef();return v3(()=>clearTimeout(t.current)),S.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(i,o=0){e()&&(n(),o<=Of?t.current=setTimeout(i,o):lw(t,i,Date.now()+o))}return{set:r,clear:n,handleRef:t}},[])}function w3({as:e,bsPrefix:t,className:n,...r}){t=lr(t,"col");const i=q1(),o=X1(),s=[],l=[];return i.forEach(u=>{const c=r[u];delete r[u];let f,h,m;typeof c=="object"&&c!=null?{span:f,offset:h,order:m}=c:f=c;const y=u!==o?`-${u}`:"";f&&s.push(f===!0?`${t}${y}`:`${t}${y}-${f}`),m!=null&&l.push(`order${y}-${m}`),h!=null&&l.push(`offset${y}-${h}`)}),[{...r,className:Yn(n,...s,...l)},{as:e,bsPrefix:t,spans:s}]}const uw=S.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:o,spans:s}]=w3(e);return E.jsx(i,{...r,ref:t,className:Yn(n,!s.length&&o)})});uw.displayName="Col";const gv=uw;var vv=Object.prototype.hasOwnProperty;function yv(e,t,n){for(n of e.keys())if(qs(n,t))return n}function qs(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&qs(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(i=r,i&&typeof i=="object"&&(i=yv(t,i),!i)||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(i=r[0],i&&typeof i=="object"&&(i=yv(t,i),!i)||!qs(r[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(vv.call(e,n)&&++r&&!vv.call(t,n)||!(n in t)||!qs(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function x3(e){const t=iw();return[e[0],S.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var en="top",Rn="bottom",An="right",tn="left",Bp="auto",Aa=[en,Rn,An,tn],Go="start",_a="end",_3="clippingParents",cw="viewport",Ps="popper",E3="reference",wv=Aa.reduce(function(e,t){return e.concat([t+"-"+Go,t+"-"+_a])},[]),dw=[].concat(Aa,[Bp]).reduce(function(e,t){return e.concat([t,t+"-"+Go,t+"-"+_a])},[]),b3="beforeRead",S3="read",k3="afterRead",C3="beforeMain",T3="main",O3="afterMain",P3="beforeWrite",j3="write",N3="afterWrite",L3=[b3,S3,k3,C3,T3,O3,P3,j3,N3];function sr(e){return e.split("-")[0]}function pn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ki(e){var t=pn(e).Element;return e instanceof t||e instanceof Element}function ar(e){var t=pn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Up(e){if(typeof ShadowRoot>"u")return!1;var t=pn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var zi=Math.max,_u=Math.min,Ko=Math.round;function Pf(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function fw(){return!/^((?!chrome|android).)*safari/i.test(Pf())}function Qo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&ar(e)&&(i=e.offsetWidth>0&&Ko(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Ko(r.height)/e.offsetHeight||1);var s=Ki(e)?pn(e):window,l=s.visualViewport,u=!fw()&&n,c=(r.left+(u&&l?l.offsetLeft:0))/i,f=(r.top+(u&&l?l.offsetTop:0))/o,h=r.width/i,m=r.height/o;return{width:h,height:m,top:f,right:c+h,bottom:f+m,left:c,x:c,y:f}}function Hp(e){var t=Qo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function pw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Up(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ii(e){return e?(e.nodeName||"").toLowerCase():null}function kr(e){return pn(e).getComputedStyle(e)}function R3(e){return["table","td","th"].indexOf(ii(e))>=0}function ui(e){return((Ki(e)?e.ownerDocument:e.document)||window.document).documentElement}function Xu(e){return ii(e)==="html"?e:e.assignedSlot||e.parentNode||(Up(e)?e.host:null)||ui(e)}function xv(e){return!ar(e)||kr(e).position==="fixed"?null:e.offsetParent}function A3(e){var t=/firefox/i.test(Pf()),n=/Trident/i.test(Pf());if(n&&ar(e)){var r=kr(e);if(r.position==="fixed")return null}var i=Xu(e);for(Up(i)&&(i=i.host);ar(i)&&["html","body"].indexOf(ii(i))<0;){var o=kr(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Da(e){for(var t=pn(e),n=xv(e);n&&R3(n)&&kr(n).position==="static";)n=xv(n);return n&&(ii(n)==="html"||ii(n)==="body"&&kr(n).position==="static")?t:n||A3(e)||t}function Wp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Xs(e,t,n){return zi(e,_u(t,n))}function D3(e,t,n){var r=Xs(e,t,n);return r>n?n:r}function hw(){return{top:0,right:0,bottom:0,left:0}}function mw(e){return Object.assign({},hw(),e)}function gw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var $3=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,mw(typeof t!="number"?t:gw(t,Aa))};function M3(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,l=sr(n.placement),u=Wp(l),c=[tn,An].indexOf(l)>=0,f=c?"height":"width";if(!(!o||!s)){var h=$3(i.padding,n),m=Hp(o),y=u==="y"?en:tn,x=u==="y"?Rn:An,_=n.rects.reference[f]+n.rects.reference[u]-s[u]-n.rects.popper[f],C=s[u]-n.rects.reference[u],v=Da(o),g=v?u==="y"?v.clientHeight||0:v.clientWidth||0:0,b=_/2-C/2,T=h[y],N=g-m[f]-h[x],k=g/2-m[f]/2+b,O=Xs(T,k,N),A=u;n.modifiersData[r]=(t={},t[A]=O,t.centerOffset=O-k,t)}}function I3(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||pw(t.elements.popper,i)&&(t.elements.arrow=i))}const z3={name:"arrow",enabled:!0,phase:"main",fn:M3,effect:I3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yo(e){return e.split("-")[1]}var F3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function B3(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Ko(n*i)/i||0,y:Ko(r*i)/i||0}}function _v(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,h=e.isFixed,m=s.x,y=m===void 0?0:m,x=s.y,_=x===void 0?0:x,C=typeof f=="function"?f({x:y,y:_}):{x:y,y:_};y=C.x,_=C.y;var v=s.hasOwnProperty("x"),g=s.hasOwnProperty("y"),b=tn,T=en,N=window;if(c){var k=Da(n),O="clientHeight",A="clientWidth";if(k===pn(n)&&(k=ui(n),kr(k).position!=="static"&&l==="absolute"&&(O="scrollHeight",A="scrollWidth")),k=k,i===en||(i===tn||i===An)&&o===_a){T=Rn;var F=h&&k===N&&N.visualViewport?N.visualViewport.height:k[O];_-=F-r.height,_*=u?1:-1}if(i===tn||(i===en||i===Rn)&&o===_a){b=An;var H=h&&k===N&&N.visualViewport?N.visualViewport.width:k[A];y-=H-r.width,y*=u?1:-1}}var z=Object.assign({position:l},c&&F3),I=f===!0?B3({x:y,y:_},pn(n)):{x:y,y:_};if(y=I.x,_=I.y,u){var K;return Object.assign({},z,(K={},K[T]=g?"0":"",K[b]=v?"0":"",K.transform=(N.devicePixelRatio||1)<=1?"translate("+y+"px, "+_+"px)":"translate3d("+y+"px, "+_+"px, 0)",K))}return Object.assign({},z,(t={},t[T]=g?_+"px":"",t[b]=v?y+"px":"",t.transform="",t))}function U3(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,l=n.roundOffsets,u=l===void 0?!0:l,c={placement:sr(t.placement),variation:Yo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,_v(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,_v(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const H3={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:U3,data:{}};var Sl={passive:!0};function W3(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,l=s===void 0?!0:s,u=pn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(f){f.addEventListener("scroll",n.update,Sl)}),l&&u.addEventListener("resize",n.update,Sl),function(){o&&c.forEach(function(f){f.removeEventListener("scroll",n.update,Sl)}),l&&u.removeEventListener("resize",n.update,Sl)}}const V3={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:W3,data:{}};var G3={left:"right",right:"left",bottom:"top",top:"bottom"};function Hl(e){return e.replace(/left|right|bottom|top/g,function(t){return G3[t]})}var K3={start:"end",end:"start"};function Ev(e){return e.replace(/start|end/g,function(t){return K3[t]})}function Vp(e){var t=pn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Gp(e){return Qo(ui(e)).left+Vp(e).scrollLeft}function Q3(e,t){var n=pn(e),r=ui(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,l=0,u=0;if(i){o=i.width,s=i.height;var c=fw();(c||!c&&t==="fixed")&&(l=i.offsetLeft,u=i.offsetTop)}return{width:o,height:s,x:l+Gp(e),y:u}}function Y3(e){var t,n=ui(e),r=Vp(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=zi(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=zi(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Gp(e),u=-r.scrollTop;return kr(i||n).direction==="rtl"&&(l+=zi(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:l,y:u}}function Kp(e){var t=kr(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function vw(e){return["html","body","#document"].indexOf(ii(e))>=0?e.ownerDocument.body:ar(e)&&Kp(e)?e:vw(Xu(e))}function Zs(e,t){var n;t===void 0&&(t=[]);var r=vw(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=pn(r),s=i?[o].concat(o.visualViewport||[],Kp(r)?r:[]):r,l=t.concat(s);return i?l:l.concat(Zs(Xu(s)))}function jf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function q3(e,t){var n=Qo(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function bv(e,t,n){return t===cw?jf(Q3(e,n)):Ki(t)?q3(t,n):jf(Y3(ui(e)))}function X3(e){var t=Zs(Xu(e)),n=["absolute","fixed"].indexOf(kr(e).position)>=0,r=n&&ar(e)?Da(e):e;return Ki(r)?t.filter(function(i){return Ki(i)&&pw(i,r)&&ii(i)!=="body"}):[]}function Z3(e,t,n,r){var i=t==="clippingParents"?X3(e):[].concat(t),o=[].concat(i,[n]),s=o[0],l=o.reduce(function(u,c){var f=bv(e,c,r);return u.top=zi(f.top,u.top),u.right=_u(f.right,u.right),u.bottom=_u(f.bottom,u.bottom),u.left=zi(f.left,u.left),u},bv(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function yw(e){var t=e.reference,n=e.element,r=e.placement,i=r?sr(r):null,o=r?Yo(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(i){case en:u={x:s,y:t.y-n.height};break;case Rn:u={x:s,y:t.y+t.height};break;case An:u={x:t.x+t.width,y:l};break;case tn:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var c=i?Wp(i):null;if(c!=null){var f=c==="y"?"height":"width";switch(o){case Go:u[c]=u[c]-(t[f]/2-n[f]/2);break;case _a:u[c]=u[c]+(t[f]/2-n[f]/2);break}}return u}function Ea(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,l=n.boundary,u=l===void 0?_3:l,c=n.rootBoundary,f=c===void 0?cw:c,h=n.elementContext,m=h===void 0?Ps:h,y=n.altBoundary,x=y===void 0?!1:y,_=n.padding,C=_===void 0?0:_,v=mw(typeof C!="number"?C:gw(C,Aa)),g=m===Ps?E3:Ps,b=e.rects.popper,T=e.elements[x?g:m],N=Z3(Ki(T)?T:T.contextElement||ui(e.elements.popper),u,f,s),k=Qo(e.elements.reference),O=yw({reference:k,element:b,strategy:"absolute",placement:i}),A=jf(Object.assign({},b,O)),F=m===Ps?A:k,H={top:N.top-F.top+v.top,bottom:F.bottom-N.bottom+v.bottom,left:N.left-F.left+v.left,right:F.right-N.right+v.right},z=e.modifiersData.offset;if(m===Ps&&z){var I=z[i];Object.keys(H).forEach(function(K){var V=[An,Rn].indexOf(K)>=0?1:-1,re=[en,Rn].indexOf(K)>=0?"y":"x";H[K]+=I[re]*V})}return H}function J3(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?dw:u,f=Yo(r),h=f?l?wv:wv.filter(function(x){return Yo(x)===f}):Aa,m=h.filter(function(x){return c.indexOf(x)>=0});m.length===0&&(m=h);var y=m.reduce(function(x,_){return x[_]=Ea(e,{placement:_,boundary:i,rootBoundary:o,padding:s})[sr(_)],x},{});return Object.keys(y).sort(function(x,_){return y[x]-y[_]})}function e4(e){if(sr(e)===Bp)return[];var t=Hl(e);return[Ev(e),t,Ev(t)]}function t4(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,l=s===void 0?!0:s,u=n.fallbackPlacements,c=n.padding,f=n.boundary,h=n.rootBoundary,m=n.altBoundary,y=n.flipVariations,x=y===void 0?!0:y,_=n.allowedAutoPlacements,C=t.options.placement,v=sr(C),g=v===C,b=u||(g||!x?[Hl(C)]:e4(C)),T=[C].concat(b).reduce(function(ae,ye){return ae.concat(sr(ye)===Bp?J3(t,{placement:ye,boundary:f,rootBoundary:h,padding:c,flipVariations:x,allowedAutoPlacements:_}):ye)},[]),N=t.rects.reference,k=t.rects.popper,O=new Map,A=!0,F=T[0],H=0;H=0,re=V?"width":"height",oe=Ea(t,{placement:z,boundary:f,rootBoundary:h,altBoundary:m,padding:c}),ne=V?K?An:tn:K?Rn:en;N[re]>k[re]&&(ne=Hl(ne));var U=Hl(ne),q=[];if(o&&q.push(oe[I]<=0),l&&q.push(oe[ne]<=0,oe[U]<=0),q.every(function(ae){return ae})){F=z,A=!1;break}O.set(z,q)}if(A)for(var R=x?3:1,se=function(ye){var ue=T.find(function(xe){var G=O.get(xe);if(G)return G.slice(0,ye).every(function(We){return We})});if(ue)return F=ue,"break"},ve=R;ve>0;ve--){var Re=se(ve);if(Re==="break")break}t.placement!==F&&(t.modifiersData[r]._skip=!0,t.placement=F,t.reset=!0)}}const n4={name:"flip",enabled:!0,phase:"main",fn:t4,requiresIfExists:["offset"],data:{_skip:!1}};function Sv(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function kv(e){return[en,An,Rn,tn].some(function(t){return e[t]>=0})}function r4(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Ea(t,{elementContext:"reference"}),l=Ea(t,{altBoundary:!0}),u=Sv(s,r),c=Sv(l,i,o),f=kv(u),h=kv(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const i4={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:r4};function o4(e,t,n){var r=sr(e),i=[tn,en].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],l=o[1];return s=s||0,l=(l||0)*i,[tn,An].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function s4(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=dw.reduce(function(f,h){return f[h]=o4(h,t.rects,o),f},{}),l=s[t.placement],u=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const a4={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:s4};function l4(e){var t=e.state,n=e.name;t.modifiersData[n]=yw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const u4={name:"popperOffsets",enabled:!0,phase:"read",fn:l4,data:{}};function c4(e){return e==="x"?"y":"x"}function d4(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,l=s===void 0?!1:s,u=n.boundary,c=n.rootBoundary,f=n.altBoundary,h=n.padding,m=n.tether,y=m===void 0?!0:m,x=n.tetherOffset,_=x===void 0?0:x,C=Ea(t,{boundary:u,rootBoundary:c,padding:h,altBoundary:f}),v=sr(t.placement),g=Yo(t.placement),b=!g,T=Wp(v),N=c4(T),k=t.modifiersData.popperOffsets,O=t.rects.reference,A=t.rects.popper,F=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,H=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(k){if(o){var K,V=T==="y"?en:tn,re=T==="y"?Rn:An,oe=T==="y"?"height":"width",ne=k[T],U=ne+C[V],q=ne-C[re],R=y?-A[oe]/2:0,se=g===Go?O[oe]:A[oe],ve=g===Go?-A[oe]:-O[oe],Re=t.elements.arrow,ae=y&&Re?Hp(Re):{width:0,height:0},ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:hw(),ue=ye[V],xe=ye[re],G=Xs(0,O[oe],ae[oe]),We=b?O[oe]/2-R-G-ue-H.mainAxis:se-G-ue-H.mainAxis,mt=b?-O[oe]/2+R+G+xe+H.mainAxis:ve+G+xe+H.mainAxis,Te=t.elements.arrow&&Da(t.elements.arrow),xt=Te?T==="y"?Te.clientTop||0:Te.clientLeft||0:0,je=(K=z==null?void 0:z[T])!=null?K:0,Ne=ne+We-je-xt,ze=ne+mt-je,gt=Xs(y?_u(U,Ne):U,ne,y?zi(q,ze):q);k[T]=gt,I[T]=gt-ne}if(l){var cr,is=T==="x"?en:tn,os=T==="x"?Rn:An,Dn=k[N],vn=N==="y"?"height":"width",ci=Dn+C[is],Pr=Dn-C[os],Ot=[en,tn].indexOf(v)!==-1,Pt=(cr=z==null?void 0:z[N])!=null?cr:0,jr=Ot?ci:Dn-O[vn]-A[vn]-Pt+H.altAxis,rn=Ot?Dn+O[vn]+A[vn]-Pt-H.altAxis:Pr,$n=y&&Ot?D3(jr,Dn,rn):Xs(y?jr:ci,Dn,y?rn:Pr);k[N]=$n,I[N]=$n-Dn}t.modifiersData[r]=I}}const f4={name:"preventOverflow",enabled:!0,phase:"main",fn:d4,requiresIfExists:["offset"]};function p4(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function h4(e){return e===pn(e)||!ar(e)?Vp(e):p4(e)}function m4(e){var t=e.getBoundingClientRect(),n=Ko(t.width)/e.offsetWidth||1,r=Ko(t.height)/e.offsetHeight||1;return n!==1||r!==1}function g4(e,t,n){n===void 0&&(n=!1);var r=ar(t),i=ar(t)&&m4(t),o=ui(t),s=Qo(e,i,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((ii(t)!=="body"||Kp(o))&&(l=h4(t)),ar(t)?(u=Qo(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=Gp(o))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function v4(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&i(u)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function y4(e){var t=v4(e);return L3.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function w4(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function x4(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Cv={placement:"bottom",modifiers:[],strategy:"absolute"};function Tv(){for(var e=arguments.length,t=new Array(e),n=0;n=0)&&(n[i]=e[i]);return n}const k4={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},C4={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(i=>i.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,i=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&i==="tooltip"&&"setAttribute"in r){const o=r.getAttribute("aria-describedby");if(o&&o.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",o?`${o},${n.id}`:n.id)}}},T4=[];function O4(e,t,n={}){let{enabled:r=!0,placement:i="bottom",strategy:o="absolute",modifiers:s=T4}=n,l=S4(n,b4);const u=S.useRef(s),c=S.useRef(),f=S.useCallback(()=>{var C;(C=c.current)==null||C.update()},[]),h=S.useCallback(()=>{var C;(C=c.current)==null||C.forceUpdate()},[]),[m,y]=x3(S.useState({placement:i,update:f,forceUpdate:h,attributes:{},styles:{popper:{},arrow:{}}})),x=S.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:C})=>{const v={},g={};Object.keys(C.elements).forEach(b=>{v[b]=C.styles[b],g[b]=C.attributes[b]}),y({state:C,styles:v,attributes:g,update:f,forceUpdate:h,placement:C.placement})}}),[f,h,y]),_=S.useMemo(()=>(qs(u.current,s)||(u.current=s),u.current),[s]);return S.useEffect(()=>{!c.current||!r||c.current.setOptions({placement:i,strategy:o,modifiers:[..._,x,k4]})},[o,i,x,r,_]),S.useEffect(()=>{if(!(!r||e==null||t==null))return c.current=E4(e,t,Object.assign({},l,{placement:i,strategy:o,modifiers:[..._,C4,x]})),()=>{c.current!=null&&(c.current.destroy(),c.current=void 0,y(C=>Object.assign({},C,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),m}function Nf(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var P4=function(){},j4=P4;const N4=qo(j4),Ov=()=>{};function L4(e){return e.button===0}function R4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Wl=e=>e&&("current"in e?e.current:e),Pv={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function A4(e,t=Ov,{disabled:n,clickTrigger:r="click"}={}){const i=S.useRef(!1),o=S.useRef(!1),s=S.useCallback(c=>{const f=Wl(e);N4(!!f,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!f||R4(c)||!L4(c)||!!Nf(f,c.target)||o.current,o.current=!1},[e]),l=Vo(c=>{const f=Wl(e);f&&Nf(f,c.target)&&(o.current=!0)}),u=Vo(c=>{i.current||t(c)});S.useEffect(()=>{var c,f;if(n||e==null)return;const h=qu(Wl(e)),m=h.defaultView||window;let y=(c=m.event)!=null?c:(f=m.parent)==null?void 0:f.event,x=null;Pv[r]&&(x=Ai(h,Pv[r],l,!0));const _=Ai(h,r,s,!0),C=Ai(h,r,g=>{if(g===y){y=void 0;return}u(g)});let v=[];return"ontouchstart"in h.documentElement&&(v=[].slice.call(h.body.children).map(g=>Ai(g,"mousemove",Ov))),()=>{x==null||x(),_(),C(),v.forEach(g=>g())}},[e,n,r,s,l,u])}function D4(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function $4(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function M4({enabled:e,enableEvents:t,placement:n,flip:r,offset:i,fixed:o,containerPadding:s,arrowElement:l,popperConfig:u={}}){var c,f,h,m,y;const x=D4(u.modifiers);return Object.assign({},u,{placement:n,enabled:e,strategy:o?"fixed":u.strategy,modifiers:$4(Object.assign({},x,{eventListeners:{enabled:t,options:(c=x.eventListeners)==null?void 0:c.options},preventOverflow:Object.assign({},x.preventOverflow,{options:s?Object.assign({padding:s},(f=x.preventOverflow)==null?void 0:f.options):(h=x.preventOverflow)==null?void 0:h.options}),offset:{options:Object.assign({offset:i},(m=x.offset)==null?void 0:m.options)},arrow:Object.assign({},x.arrow,{enabled:!!l,options:Object.assign({},(y=x.arrow)==null?void 0:y.options,{element:l})}),flip:Object.assign({enabled:!!r},x.flip)}))})}const ww=S.createContext(Fp?window:void 0);ww.Provider;function I4(){return S.useContext(ww)}const hd=(e,t)=>Fp?e==null?(t||qu()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function jv(e,t){const n=I4(),[r,i]=S.useState(()=>hd(e,n==null?void 0:n.document));if(!r){const o=hd(e);o&&i(o)}return S.useEffect(()=>{t&&r&&t(r)},[t,r]),S.useEffect(()=>{const o=hd(e);o!==r&&i(o)},[e,r]),r}function z4({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const o=S.useRef(null),s=S.useRef(t),l=Vo(n);S.useEffect(()=>{t?s.current=!0:l(o.current)},[t,l]);const u=rs(o,e.ref),c=S.cloneElement(e,{ref:u});return t?c:i||!s.current&&r?null:c}function F4({in:e,onTransition:t}){const n=S.useRef(null),r=S.useRef(!0),i=Vo(t);return Tf(()=>{if(!n.current)return;let o=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>o}),()=>{o=!0}},[e,i]),Tf(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function B4({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[o,s]=S.useState(!t);t&&o&&s(!1);const l=F4({in:!!t,onTransition:c=>{const f=()=>{c.isStale()||(c.in?r==null||r(c.element,c.initial):(s(!0),n==null||n(c.element)))};Promise.resolve(i(c)).then(f,h=>{throw c.in||s(!0),h})}}),u=rs(l,e.ref);return o&&!t?null:S.cloneElement(e,{ref:u})}function U4(e,t,n){return e?E.jsx(e,Object.assign({},n)):t?E.jsx(B4,Object.assign({},n,{transition:t})):E.jsx(z4,Object.assign({},n))}function H4(e){return e.code==="Escape"||e.keyCode===27}function Nv(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}const W4=()=>{};function V4(e,t,{disabled:n,clickTrigger:r}={}){const i=t||W4;A4(e,i,{disabled:n,clickTrigger:r});const o=Vo(s=>{H4(s)&&i(s)});S.useEffect(()=>{if(n||e==null)return;const s=qu(Wl(e));let l=(s.defaultView||window).event;const u=Ai(s,"keyup",c=>{if(c===l){l=void 0;return}o(c)});return()=>{u()}},[e,n,o])}const xw=S.forwardRef((e,t)=>{const{flip:n,offset:r,placement:i,containerPadding:o,popperConfig:s={},transition:l,runTransition:u}=e,[c,f]=pv(),[h,m]=pv(),y=rs(f,t),x=jv(e.container),_=jv(e.target),[C,v]=S.useState(!e.show),g=O4(_,c,M4({placement:i,enableEvents:!!e.show,containerPadding:o||5,flip:n,offset:r,arrowElement:h,popperConfig:s}));e.show&&C&&v(!1);const b=(...z)=>{v(!0),e.onExited&&e.onExited(...z)},T=e.show||!C;if(V4(c,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!T)return null;const{onExit:N,onExiting:k,onEnter:O,onEntering:A,onEntered:F}=e;let H=e.children(Object.assign({},g.attributes.popper,{style:g.styles.popper,ref:y}),{popper:g,placement:i,show:!!e.show,arrowProps:Object.assign({},g.attributes.arrow,{style:g.styles.arrow,ref:m})});return H=U4(l,u,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:H,onExit:N,onExiting:k,onExited:b,onEnter:O,onEntering:A,onEntered:F}),x?ji.createPortal(H,x):null});xw.displayName="Overlay";const G4=xw,_w=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=lr(t,"popover-header"),E.jsx(n,{ref:i,className:Yn(e,t),...r})));_w.displayName="PopoverHeader";const K4=_w,Ew=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=lr(t,"popover-body"),E.jsx(n,{ref:i,className:Yn(e,t),...r})));Ew.displayName="PopoverBody";const bw=Ew;function Sw(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function kw(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const Q4=S.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,body:o,arrowProps:s,hasDoneInitialMeasure:l,popper:u,show:c,...f},h)=>{const m=lr(e,"popover"),y=Z1(),[x]=(t==null?void 0:t.split("-"))||[],_=Sw(x,y);let C=r;return c&&!l&&(C={...r,...kw(u==null?void 0:u.strategy)}),E.jsxs("div",{ref:h,role:"tooltip",style:C,"x-placement":x,className:Yn(n,m,x&&`bs-popover-${_}`),...f,children:[E.jsx("div",{className:"popover-arrow",...s}),o?E.jsx(bw,{children:i}):i]})}),Y4=Object.assign(Q4,{Header:K4,Body:bw,POPPER_OFFSET:[0,8]}),Cw=S.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,arrowProps:o,hasDoneInitialMeasure:s,popper:l,show:u,...c},f)=>{e=lr(e,"tooltip");const h=Z1(),[m]=(t==null?void 0:t.split("-"))||[],y=Sw(m,h);let x=r;return u&&!s&&(x={...r,...kw(l==null?void 0:l.strategy)}),E.jsxs("div",{ref:f,style:x,role:"tooltip","x-placement":m,className:Yn(n,e,`bs-tooltip-${y}`),...c,children:[E.jsx("div",{className:"tooltip-arrow",...o}),E.jsx("div",{className:`${e}-inner`,children:i})]})});Cw.displayName="Tooltip";const Lf=Object.assign(Cw,{TOOLTIP_OFFSET:[0,6]});function q4(e){const t=S.useRef(null),n=lr(void 0,"popover"),r=lr(void 0,"tooltip"),i=S.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(Nv(t.current,n))return Y4.POPPER_OFFSET;if(Nv(t.current,r))return Lf.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[i]]}function X4(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=i=>n(xu(i))),t.ref=r.__wrapped||(r.__wrapped=i=>r(xu(i)))}const Tw=S.forwardRef(({children:e,transition:t=hv,popperConfig:n={},rootClose:r=!1,placement:i="top",show:o=!1,...s},l)=>{const u=S.useRef({}),[c,f]=S.useState(null),[h,m]=q4(s.offset),y=rs(l,h),x=t===!0?hv:t||void 0,_=Vo(C=>{f(C),n==null||n.onFirstUpdate==null||n.onFirstUpdate(C)});return Tf(()=>{c&&s.target&&(u.current.scheduleUpdate==null||u.current.scheduleUpdate())},[c,s.target]),S.useEffect(()=>{o||f(null)},[o]),E.jsx(G4,{...s,ref:y,popperConfig:{...n,modifiers:m.concat(n.modifiers||[]),onFirstUpdate:_},transition:x,rootClose:r,placement:i,show:o,children:(C,{arrowProps:v,popper:g,show:b})=>{var T,N;X4(C,v);const k=g==null?void 0:g.placement,O=Object.assign(u.current,{state:g==null?void 0:g.state,scheduleUpdate:g==null?void 0:g.update,placement:k,outOfBoundaries:(g==null||(T=g.state)==null||(N=T.modifiersData.hide)==null?void 0:N.isReferenceHidden)||!1,strategy:n.strategy}),A=!!c;return typeof e=="function"?e({...C,placement:k,show:b,...!t&&b&&{className:"show"},popper:O,arrowProps:v,hasDoneInitialMeasure:A}):S.cloneElement(e,{...C,placement:k,arrowProps:v,popper:O,hasDoneInitialMeasure:A,className:Yn(e.props.className,!t&&b&&"show"),style:{...e.props.style,...C.style}})}})});Tw.displayName="Overlay";const Z4=Tw;function J4(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function Lv(e,t,n){const[r]=t,i=r.currentTarget,o=r.relatedTarget||r.nativeEvent[n];(!o||o!==i)&&!Nf(i,o)&&e(...t)}QC.oneOf(["click","hover","focus"]);const eT=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:i,defaultShow:o=!1,onToggle:s,delay:l,placement:u,flip:c=u&&u.indexOf("auto")!==-1,...f})=>{const h=S.useRef(null),m=rs(h,n.ref),y=y3(),x=S.useRef(""),[_,C]=LC(i,o,s),v=J4(l),{onFocus:g,onBlur:b,onClick:T}=typeof n!="function"?S.Children.only(n).props:{},N=re=>{m(xu(re))},k=S.useCallback(()=>{if(y.clear(),x.current="show",!v.show){C(!0);return}y.set(()=>{x.current==="show"&&C(!0)},v.show)},[v.show,C,y]),O=S.useCallback(()=>{if(y.clear(),x.current="hide",!v.hide){C(!1);return}y.set(()=>{x.current==="hide"&&C(!1)},v.hide)},[v.hide,C,y]),A=S.useCallback((...re)=>{k(),g==null||g(...re)},[k,g]),F=S.useCallback((...re)=>{O(),b==null||b(...re)},[O,b]),H=S.useCallback((...re)=>{C(!_),T==null||T(...re)},[T,C,_]),z=S.useCallback((...re)=>{Lv(k,re,"fromElement")},[k]),I=S.useCallback((...re)=>{Lv(O,re,"toElement")},[O]),K=e==null?[]:[].concat(e),V={ref:N};return K.indexOf("click")!==-1&&(V.onClick=H),K.indexOf("focus")!==-1&&(V.onFocus=A,V.onBlur=F),K.indexOf("hover")!==-1&&(V.onMouseOver=z,V.onMouseOut=I),E.jsxs(E.Fragment,{children:[typeof n=="function"?n(V):S.cloneElement(n,V),E.jsx(Z4,{...f,show:_,onHide:O,flip:c,placement:u,popperConfig:r,target:h.current,children:t})]})},Rv=eT,Ow=S.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},i)=>{const o=lr(e,"row"),s=q1(),l=X1(),u=`${o}-cols`,c=[];return s.forEach(f=>{const h=r[f];delete r[f];let m;h!=null&&typeof h=="object"?{cols:m}=h:m=h;const y=f!==l?`-${f}`:"";m!=null&&c.push(`${u}${y}-${m}`)}),E.jsx(n,{ref:i,...r,className:Yn(t,o,...c)})});Ow.displayName="Row";const tT=Ow,Pw=S.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:i="div",className:o,...s},l)=>{e=lr(e,"spinner");const u=`${e}-${n}`;return E.jsx(i,{ref:l,...s,className:Yn(o,u,r&&`${u}-${r}`,t&&`text-${t}`)})});Pw.displayName="Spinner";const Zu=Pw,nT=we.div` background: url('assets/img/dots.png'); background-size: cover; `,rT=we.div` background: rgba(6,6,6,0.79); padding-top: 140px; -`;function iT(){const{setAuth:e}=S.useContext(gn),[t,n]=S.useState(""),[r,i]=S.useState(!1),o=Tr(),s=u=>/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(u),l=async()=>{if(i(!0),!s(t)){$e.error("UUID non valide!",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!1}),i(!1);return}try{await rC(t,e),setTimeout(()=>{document.querySelectorAll(".modal-backdrop").forEach(c=>{c.remove()}),o("/waitlist/"+t)},500),i(!1)}catch(u){$e.error(u.message,{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!1}),i(!1)}};return E.jsx(rT,{className:"modal fade",role:"dialog",id:"join_room",children:E.jsx("div",{className:"modal-dialog",role:"document",children:E.jsx("div",{className:"modal-content",children:E.jsxs(nT,{className:"modal-body",children:[E.jsx("label",{className:"form-label",children:"ID de la room"}),E.jsxs("div",{className:"input-group",children:[E.jsx("input",{className:"form-control",type:"text",value:t,onChange:u=>n(u.target.value),placeholder:"8ad3e88e-cffb-4219-af7b-07c8cb47c12a",required:!0}),E.jsx("button",{className:`btn ${!s(t)||r?"btn-secondary disabled":"btn-primary"}`,type:"button",onClick:l,disabled:!s(t)||r,children:r?E.jsx(Xu,{animation:"grow",variant:"dark",size:"sm"}):"Rejoindre"})]})]})})})})}function oT(){return E.jsxs("div",{children:[E.jsx(iT,{}),E.jsx(PC,{}),E.jsx(CC,{})]})}const sT="https://steam-wgp-production.up.railway.app";function aT(){const[e,t]=S.useState([]),[n,r]=S.useState(!0),[i,o]=S.useState(!1),{setLoadingComplete:s,loadingComplete:l}=S.useContext(Na);return S.useEffect(()=>{if(localStorage.getItem("animationPlayed")==="true"){r(!1),s(!0);return}const c=new EventSource(`${sT}/players/library-checker`,{withCredentials:!0});return c.onmessage=f=>{const h=JSON.parse(f.data);h.complete&&(c.close(),setTimeout(()=>{o(!0)},1e3),setTimeout(()=>{r(!1),s(!0),localStorage.setItem("animationPlayed","true")},2e3)),t(m=>[...m,h])},c.onerror=f=>{console.error("SSE error:",f),c.close()},()=>{c.close()}},[s]),E.jsx("section",{className:"py-4 py-xl-5",children:E.jsxs("div",{className:"container",children:[n&&E.jsx(tC,{messages:e,animateFirstDiv:i}),l&&E.jsx(oT,{})]})})}function jw(){return E.jsx("footer",{className:"text-center py-4","data-aos":"fade-up","data-aos-offset":"5","data-aos-once":"true",children:E.jsx("div",{className:"container-fluid",children:E.jsx("div",{className:"row",children:E.jsx("div",{className:"col-12 text-primary-emphasis align-self-center",children:E.jsxs("p",{className:"d-inline",children:["Ce site ",E.jsx("strong",{children:"n'est pas associé"})," à Valve Corp."]})})})})})}const Nw=(e,t,n=!1,r,i)=>{t(null),e.close(),!n&&r?r("/"):i&&n&&i(o=>o&&{...o,user:{...o.user,waitlist:null}}),e.close(),$e.info("L'administrateur a fermé le salon",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0})},Zu=e=>{if(e.players.length===0)return null;let t=e.players[0].games;return e.players.forEach(n=>{t=t.filter(r=>n.games.includes(r))}),t},Lw=(e,t)=>{e(n=>{if(!n)return n;const r=Zu({...n,players:n.players.filter(i=>i.player_id!==t.player_id)})||[];return{...n,players:n.players.filter(i=>i.player_id!==t.player_id),commonGames:r}})},Rw=(e,t,n)=>{$e.success("La partie a commencé",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0}),e(r=>r&&{...r,started:!0}),t&&n&&n(`/waitlist/${t}`)},Aw=(e,t,n,r,i,o,s)=>{t===n?($e.warn("Vous avez été expulsé de la room",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0}),i(null),s&&s(l=>l&&{...l,user:{...l.user,waitlist:null}}),e.close(),o&&o("/")):(r!==n&&$e.warn("Un joueur a été expulsé de la room",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0}),i(l=>{if(!l)return l;const u=Zu({...l,players:l.players.filter(c=>c.player_id!==t)})||[];return{...l,players:l.players.filter(c=>c.player_id!==t),commonGames:u}}))},lT=(e,t,n)=>{e(r=>r&&{...r,ended:!0,winner:n}),t(r=>r&&{...r,user:{...r.user,waitlist:null}})},uT=(e,t)=>{e(n=>{if(!n||n.players.some(o=>o.player_id===t.player_id))return n;const i=Zu({...n,players:[...n.players,t]})||[];return{...n,players:[...n.players,t],commonGames:i}})},Dw=(e,t)=>{const n=t.map(r=>parseInt(r));e(r=>r&&{...r,commonGames:r.commonGames.filter(i=>!n.includes(i)),swipedGames:n})};function cT(){var y;const{auth:e,setAuth:t}=S.useContext(gn),{loadingComplete:n}=S.useContext(Na),{socket:r}=S.useContext(ns),{room:i,setRoom:o}=S.useContext(nn),[s,l]=S.useState(!1),[u,c]=S.useState(!0),f=Tr(),h=i==null?void 0:i.id,m=i==null?void 0:i.admin_id;return e.isAuthenticated||f("/login"),h&&i.winner&&(o(null),t(x=>({...x,user:{...x.user,waitlist:null}}))),S.useEffect(()=>{c(!0),(async()=>{try{const _=await H1();t({isAuthenticated:!0,user:_}),l(!0)}catch{console.error("Utilisateur non authentifié"),localStorage.removeItem("animationPlayed"),t({isAuthenticated:!1,user:{id:"",username:"",waitlist:null}}),l(!1)}c(!1)})()},[t]),S.useEffect(()=>{r&&h&&(r.onmessage=x=>{var C;const _=JSON.parse(x.data);_.action==="leave"?Lw(o,_.player):_.action==="end"?Nw(r,o,!0,f,t):_.action==="kicked"?Aw(r,_.playerId,(C=e.user)==null?void 0:C.id,m??"",o,void 0,t):_.action==="start"?Rw(o,h,f):_.action==="retrieve"&&Dw(o,_.swipedGames)})},[r,h,m,o,(y=e.user)==null?void 0:y.id,f,t]),E.jsxs("div",{children:[E.jsx("section",{className:"py-4 py-xl-5",children:u?E.jsx(Mp,{}):s?E.jsx(aT,{}):E.jsx(V1,{})}),!u&&n?E.jsx(jw,{}):""]})}function dT(){const e=Tr(),{setAuth:t}=S.useContext(gn);return S.useEffect(()=>{(async()=>{try{await Ck(),t({user:{id:"",username:"",waitlist:null},isAuthenticated:!1})}catch(r){console.error("Impossible de déconnecter l'utilisateur: "+r)}})().then(()=>{e("/login")}).catch(r=>{console.error("Impossible de déconnecter l'utilisateur: "+r)})},[e,t]),E.jsx("div",{className:"container"})}const fT=we.p` +`;function iT(){const{setAuth:e}=S.useContext(gn),[t,n]=S.useState(""),[r,i]=S.useState(!1),o=Tr(),s=u=>/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(u),l=async()=>{if(i(!0),!s(t)){$e.error("UUID non valide!",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!1}),i(!1);return}try{await rC(t,e),setTimeout(()=>{document.querySelectorAll(".modal-backdrop").forEach(c=>{c.remove()}),o("/waitlist/"+t)},500),i(!1)}catch(u){$e.error(u.message,{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!1}),i(!1)}};return E.jsx(rT,{className:"modal fade",role:"dialog",id:"join_room",children:E.jsx("div",{className:"modal-dialog",role:"document",children:E.jsx("div",{className:"modal-content",children:E.jsxs(nT,{className:"modal-body",children:[E.jsx("label",{className:"form-label",children:"ID de la room"}),E.jsxs("div",{className:"input-group",children:[E.jsx("input",{className:"form-control",type:"text",value:t,onChange:u=>n(u.target.value),placeholder:"8ad3e88e-cffb-4219-af7b-07c8cb47c12a",required:!0}),E.jsx("button",{className:`btn ${!s(t)||r?"btn-secondary disabled":"btn-primary"}`,type:"button",onClick:l,disabled:!s(t)||r,children:r?E.jsx(Zu,{animation:"grow",variant:"dark",size:"sm"}):"Rejoindre"})]})]})})})})}function oT(){return E.jsxs("div",{children:[E.jsx(iT,{}),E.jsx(PC,{}),E.jsx(CC,{})]})}const sT="https://steam-wgp-production.up.railway.app";function aT(){const[e,t]=S.useState([]),[n,r]=S.useState(!0),[i,o]=S.useState(!1),{setLoadingComplete:s,loadingComplete:l}=S.useContext(Na);return S.useEffect(()=>{if(localStorage.getItem("animationPlayed")==="true"){r(!1),s(!0);return}const c=new EventSource(`${sT}/players/library-checker?token=${Gu("token")}`,{withCredentials:!0});return c.onmessage=f=>{const h=JSON.parse(f.data);h.complete&&(c.close(),setTimeout(()=>{o(!0)},1e3),setTimeout(()=>{r(!1),s(!0),localStorage.setItem("animationPlayed","true")},2e3)),t(m=>[...m,h])},c.onerror=f=>{console.error("SSE error:",f),c.close()},()=>{c.close()}},[s]),E.jsx("section",{className:"py-4 py-xl-5",children:E.jsxs("div",{className:"container",children:[n&&E.jsx(tC,{messages:e,animateFirstDiv:i}),l&&E.jsx(oT,{})]})})}function jw(){return E.jsx("footer",{className:"text-center py-4","data-aos":"fade-up","data-aos-offset":"5","data-aos-once":"true",children:E.jsx("div",{className:"container-fluid",children:E.jsx("div",{className:"row",children:E.jsx("div",{className:"col-12 text-primary-emphasis align-self-center",children:E.jsxs("p",{className:"d-inline",children:["Ce site ",E.jsx("strong",{children:"n'est pas associé"})," à Valve Corp."]})})})})})}const Nw=(e,t,n=!1,r,i)=>{t(null),e.close(),!n&&r?r("/"):i&&n&&i(o=>o&&{...o,user:{...o.user,waitlist:null}}),e.close(),$e.info("L'administrateur a fermé le salon",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0})},Ju=e=>{if(e.players.length===0)return null;let t=e.players[0].games;return e.players.forEach(n=>{t=t.filter(r=>n.games.includes(r))}),t},Lw=(e,t)=>{e(n=>{if(!n)return n;const r=Ju({...n,players:n.players.filter(i=>i.player_id!==t.player_id)})||[];return{...n,players:n.players.filter(i=>i.player_id!==t.player_id),commonGames:r}})},Rw=(e,t,n)=>{$e.success("La partie a commencé",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0}),e(r=>r&&{...r,started:!0}),t&&n&&n(`/waitlist/${t}`)},Aw=(e,t,n,r,i,o,s)=>{t===n?($e.warn("Vous avez été expulsé de la room",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0}),i(null),s&&s(l=>l&&{...l,user:{...l.user,waitlist:null}}),e.close(),o&&o("/")):(r!==n&&$e.warn("Un joueur a été expulsé de la room",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0}),i(l=>{if(!l)return l;const u=Ju({...l,players:l.players.filter(c=>c.player_id!==t)})||[];return{...l,players:l.players.filter(c=>c.player_id!==t),commonGames:u}}))},lT=(e,t,n)=>{e(r=>r&&{...r,ended:!0,winner:n}),t(r=>r&&{...r,user:{...r.user,waitlist:null}})},uT=(e,t)=>{e(n=>{if(!n||n.players.some(o=>o.player_id===t.player_id))return n;const i=Ju({...n,players:[...n.players,t]})||[];return{...n,players:[...n.players,t],commonGames:i}})},Dw=(e,t)=>{const n=t.map(r=>parseInt(r));e(r=>r&&{...r,commonGames:r.commonGames.filter(i=>!n.includes(i)),swipedGames:n})};function cT(){var y;const{auth:e,setAuth:t}=S.useContext(gn),{loadingComplete:n}=S.useContext(Na),{socket:r}=S.useContext(ns),{room:i,setRoom:o}=S.useContext(nn),[s,l]=S.useState(!1),[u,c]=S.useState(!0),f=Tr(),h=i==null?void 0:i.id,m=i==null?void 0:i.admin_id;return e.isAuthenticated||f("/login"),h&&i.winner&&(o(null),t(x=>({...x,user:{...x.user,waitlist:null}}))),S.useEffect(()=>{c(!0),(async()=>{try{const _=await H1();t({isAuthenticated:!0,user:_}),l(!0)}catch{console.error("Utilisateur non authentifié"),localStorage.removeItem("animationPlayed"),t({isAuthenticated:!1,user:{id:"",username:"",waitlist:null}}),l(!1)}c(!1)})()},[t]),S.useEffect(()=>{r&&h&&(r.onmessage=x=>{var C;const _=JSON.parse(x.data);_.action==="leave"?Lw(o,_.player):_.action==="end"?Nw(r,o,!0,f,t):_.action==="kicked"?Aw(r,_.playerId,(C=e.user)==null?void 0:C.id,m??"",o,void 0,t):_.action==="start"?Rw(o,h,f):_.action==="retrieve"&&Dw(o,_.swipedGames)})},[r,h,m,o,(y=e.user)==null?void 0:y.id,f,t]),E.jsxs("div",{children:[E.jsx("section",{className:"py-4 py-xl-5",children:u?E.jsx(Ip,{}):s?E.jsx(aT,{}):E.jsx(V1,{})}),!u&&n?E.jsx(jw,{}):""]})}function dT(){const e=Tr(),{setAuth:t}=S.useContext(gn);return S.useEffect(()=>{(async()=>{try{await Ck(),t({user:{id:"",username:"",waitlist:null},isAuthenticated:!1}),localStorage.removeItem("animationPlayed")}catch(r){console.error("Impossible de déconnecter l'utilisateur: "+r)}})().then(()=>{e("/login")}).catch(r=>{console.error("Impossible de déconnecter l'utilisateur: "+r)})},[e,t]),E.jsx("div",{className:"container"})}const fT=we.p` margin-bottom: 0px; -`,pT=()=>{const{room:e}=S.useContext(nn),t=e==null?void 0:e.players.find(n=>n.player_id===e.admin_id);return E.jsxs(fT,{className:"text-primary-emphasis",children:[E.jsx(Xu,{size:"sm",animation:"border",variant:"primary",role:"status"}),"   En attente de ",E.jsx("b",{children:t==null?void 0:t.username})," pour démarrer la room ..."]})},hT=we.p` +`,pT=()=>{const{room:e}=S.useContext(nn),t=e==null?void 0:e.players.find(n=>n.player_id===e.admin_id);return E.jsxs(fT,{className:"text-primary-emphasis",children:[E.jsx(Zu,{size:"sm",animation:"border",variant:"primary",role:"status"}),"   En attente de ",E.jsx("b",{children:t==null?void 0:t.username})," pour démarrer la room ..."]})},hT=we.p` margin-bottom: 0px; `,mT=()=>{const{room:e}=S.useContext(nn);return e?E.jsxs(hT,{className:`${e.commonGames.length>0?"text-primary":"text-danger"}`,children:[E.jsxs("b",{children:[e.commonGames.length," jeu",e.commonGames.length>1?"x":""]})," dans la liste"]}):E.jsx(E.Fragment,{})},gT=we.div` cursor: default; @@ -199,16 +199,16 @@ Error generating stack: `+o.message+` margin-top: 13px; `,OT=()=>E.jsx(TT,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:"bi bi-exclamation-octagon-fill text-danger",children:E.jsx("path",{d:"M11.46.146A.5.5 0 0 0 11.107 0H4.893a.5.5 0 0 0-.353.146L.146 4.54A.5.5 0 0 0 0 4.893v6.214a.5.5 0 0 0 .146.353l4.394 4.394a.5.5 0 0 0 .353.146h6.214a.5.5 0 0 0 .353-.146l4.394-4.394a.5.5 0 0 0 .146-.353V4.893a.5.5 0 0 0-.146-.353L11.46.146zM8 4c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995A.905.905 0 0 1 8 4zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})}),PT=we.svg` font-size: 29px; -`,jT=()=>E.jsxs(PT,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:"bi bi-person-fill-x text-white",children:[E.jsx("path",{d:"M11 5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm-9 8c0 1 1 1 1 1h5.256A4.493 4.493 0 0 1 8 12.5a4.49 4.49 0 0 1 1.544-3.393C9.077 9.038 8.564 9 8 9c-5 0-6 3-6 4Z"}),E.jsx("path",{d:"M12.5 16a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm-.646-4.854.646.647.646-.647a.5.5 0 0 1 .708.708l-.647.646.647.646a.5.5 0 0 1-.708.708l-.646-.647-.646.647a.5.5 0 0 1-.708-.708l.647-.646-.647-.646a.5.5 0 0 1 .708-.708Z"})]});function NT({playerId:e}){const[t,n]=S.useState(!1),{room:r}=S.useContext(nn),{socket:i}=S.useContext(ns);if(!r||!i)return E.jsx(E.Fragment,{});const o=async()=>{t||(n(!0),oC(r.id,e).then(()=>{i.send(JSON.stringify({action:"kick",payload:{playerId:e}})),$e.success("Joueur expulsé",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0})}).catch(s=>{console.error("Erreur lors du kick du joueur:",s),$e.error(s.message,{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0})}).finally(()=>{n(!1)}))};return E.jsx("button",{className:`btn ${t?"btn-light":"btn-danger"} btn-sm kick_player_btn`,type:"button",onClick:o,disabled:t,children:t?E.jsx(Xu,{animation:"border",size:"sm"}):E.jsx(jT,{})})}const LT=we.p` +`,jT=()=>E.jsxs(PT,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:"bi bi-person-fill-x text-white",children:[E.jsx("path",{d:"M11 5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm-9 8c0 1 1 1 1 1h5.256A4.493 4.493 0 0 1 8 12.5a4.49 4.49 0 0 1 1.544-3.393C9.077 9.038 8.564 9 8 9c-5 0-6 3-6 4Z"}),E.jsx("path",{d:"M12.5 16a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm-.646-4.854.646.647.646-.647a.5.5 0 0 1 .708.708l-.647.646.647.646a.5.5 0 0 1-.708.708l-.646-.647-.646.647a.5.5 0 0 1-.708-.708l.647-.646-.647-.646a.5.5 0 0 1 .708-.708Z"})]});function NT({playerId:e}){const[t,n]=S.useState(!1),{room:r}=S.useContext(nn),{socket:i}=S.useContext(ns);if(!r||!i)return E.jsx(E.Fragment,{});const o=async()=>{t||(n(!0),oC(r.id,e).then(()=>{i.send(JSON.stringify({action:"kick",payload:{playerId:e}})),$e.success("Joueur expulsé",{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0})}).catch(s=>{console.error("Erreur lors du kick du joueur:",s),$e.error(s.message,{position:"bottom-right",autoClose:2500,closeOnClick:!0,theme:"colored",hideProgressBar:!0})}).finally(()=>{n(!1)}))};return E.jsx("button",{className:`btn ${t?"btn-light":"btn-danger"} btn-sm kick_player_btn`,type:"button",onClick:o,disabled:t,children:t?E.jsx(Zu,{animation:"border",size:"sm"}):E.jsx(jT,{})})}const LT=we.p` margin-top: 7px; -`,RT=e=>e>0?`${e} jeu${e>1?"x":""} en commun`:"Aucun jeu en commun ... :(";function AT({player:e}){var u,c;const{room:t}=S.useContext(nn),{auth:n}=S.useContext(gn),r=((u=n.user)==null?void 0:u.id)===(t==null?void 0:t.admin_id),i=((c=n.user)==null?void 0:c.id)===e.player_id,o=t==null?void 0:t.players.find(f=>{var h;return f.player_id===((h=n.user)==null?void 0:h.id)}),s=(o==null?void 0:o.games.filter(f=>e.games.includes(f)))??[],l=()=>t?t.players.some(f=>f.player_id===e.player_id?!1:!e.games.some(h=>f.games.includes(h))):!1;return E.jsxs("div",{className:"col-auto align-self-center",children:[e.player_id===(t==null?void 0:t.admin_id)?E.jsx(ST,{isLoggedUser:i}):E.jsx(E.Fragment,{}),r&&e.player_id!==(t==null?void 0:t.admin_id)?E.jsx(NT,{playerId:e.player_id}):E.jsx(E.Fragment,{}),!i&&s.length!==0&&l()&&E.jsx(OT,{}),E.jsx(Rv,{placement:"top",overlay:E.jsx(Nf,{id:`Tooltip for Player #${e.player_id}`,children:e.username}),children:E.jsx("img",{className:`img-fluid profil_picture_room ${i?"":"other_player_wroom"} ${s.length===0?"no_games_in_commun":""}`,src:`https://avatars.akamai.steamstatic.com/${e==null?void 0:e.avatar_hash}_full.jpg`,loading:"lazy"})}),i?E.jsx(E.Fragment,{}):E.jsx(Rv,{placement:"bottom",overlay:E.jsx(Nf,{id:`Tooltip for Games in Commun with #${e.player_id}`,children:RT(s.length)}),children:E.jsxs(LT,{className:`lead text-center text-bold ${s.length>0?"text-primary":"text-danger"}`,children:[s.length,E.jsx(CT,{})]})})]})}const DT=we.span` +`,RT=e=>e>0?`${e} jeu${e>1?"x":""} en commun`:"Aucun jeu en commun ... :(";function AT({player:e}){var u,c;const{room:t}=S.useContext(nn),{auth:n}=S.useContext(gn),r=((u=n.user)==null?void 0:u.id)===(t==null?void 0:t.admin_id),i=((c=n.user)==null?void 0:c.id)===e.player_id,o=t==null?void 0:t.players.find(f=>{var h;return f.player_id===((h=n.user)==null?void 0:h.id)}),s=(o==null?void 0:o.games.filter(f=>e.games.includes(f)))??[],l=()=>t?t.players.some(f=>f.player_id===e.player_id?!1:!e.games.some(h=>f.games.includes(h))):!1;return E.jsxs("div",{className:"col-auto align-self-center",children:[e.player_id===(t==null?void 0:t.admin_id)?E.jsx(ST,{isLoggedUser:i}):E.jsx(E.Fragment,{}),r&&e.player_id!==(t==null?void 0:t.admin_id)?E.jsx(NT,{playerId:e.player_id}):E.jsx(E.Fragment,{}),!i&&s.length!==0&&l()&&E.jsx(OT,{}),E.jsx(Rv,{placement:"top",overlay:E.jsx(Lf,{id:`Tooltip for Player #${e.player_id}`,children:e.username}),children:E.jsx("img",{className:`img-fluid profil_picture_room ${i?"":"other_player_wroom"} ${s.length===0?"no_games_in_commun":""}`,src:`https://avatars.akamai.steamstatic.com/${e==null?void 0:e.avatar_hash}_full.jpg`,loading:"lazy"})}),i?E.jsx(E.Fragment,{}):E.jsx(Rv,{placement:"bottom",overlay:E.jsx(Lf,{id:`Tooltip for Games in Commun with #${e.player_id}`,children:RT(s.length)}),children:E.jsxs(LT,{className:`lead text-center text-bold ${s.length>0?"text-primary":"text-danger"}`,children:[s.length,E.jsx(CT,{})]})})]})}const DT=we.span` font-weight: normal !important; `,$T=we.div` font-size: 13px; font-style: italic; margin-top: 9px; text-align: center; -`;function MT(){const{room:e}=S.useContext(nn),t=Tr();return e?E.jsxs("div",{className:"container",children:[E.jsx("div",{className:"text-center p-4 p-lg-5",children:E.jsx("div",{children:E.jsxs("p",{className:"fw-bold text-primary mb-2",children:["Room ID: ",E.jsx(DT,{children:e.id})]})})}),E.jsxs("div",{className:"row gy-1 justify-content-center",children:[e.players.map((n,r)=>E.jsx(AT,{player:n},r)),E.jsx(vT,{}),E.jsx(yT,{}),E.jsxs($T,{children:[E.jsx(_T,{}),E.jsx(bT,{})]})]})]}):(t("/"),E.jsx(E.Fragment,{}))}const IT=()=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:"bi bi-heart-fill",children:E.jsx("path",{fillRule:"evenodd",d:"M8 1.314C12.438-3.248 23.534 4.735 8 15-7.534 4.736 3.562-3.248 8 1.314z"})});function zT(){var f,h;const{room:e,setRoom:t}=S.useContext(nn),[n,r]=S.useState(0),[i,o]=S.useState(!1),s=S.useContext(ns);if(S.useEffect(()=>{e!=null&&e.winner&&setTimeout(()=>{o(!0)},1e3)},[e==null?void 0:e.winner]),!e||!s)return E.jsx(E.Fragment,{});const l=(m,y)=>{!s.socket||!e||!y||(m?(t(x=>x?{...x,commonGames:x.commonGames.filter(_=>_!==y),swipedGames:x.swipedGames?[...x.swipedGames,y]:[y]}:null),Kk(s.socket,y),n===e.commonGames.length-1&&r(0)):r(x=>(x+1)%e.commonGames.length))},u=m=>{!s.socket||!e||!m||(t(y=>{var x;return y?{...y,commonGames:[...y.commonGames.slice(0,n),m,...y.commonGames.slice(n)],swipedGames:(x=y.swipedGames)==null?void 0:x.filter(_=>_!==m)}:null}),Qk(s.socket,m))},c=m=>e.commonGames.indexOf(m);return E.jsx("div",{className:"container",children:e.ended?E.jsx("div",{className:"victory align-self-center d-flex justify-content-center",children:E.jsx("img",{src:`https://steamcdn-a.akamaihd.net/steam/apps/${e.winner}/library_600x900.jpg`,className:i?"animate":""})}):E.jsxs("div",{className:"game-page-container",children:[E.jsx("div",{className:"card-stack",style:{transform:`translateY(${n*-700}px)`},children:e.commonGames.map(m=>E.jsx("div",{children:E.jsx("div",{className:`card ${n===c(m)?"active":""}`,style:{backgroundImage:`url(https://steamcdn-a.akamaihd.net/steam/apps/${m}/library_600x900.jpg)`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",width:"100%",height:"100%"}})},m))}),E.jsxs("div",{className:"action-buttons",children:[E.jsxs("button",{className:`btn btn-${e.commonGames.length===0?"disabled":"danger"} btn-lg`,onClick:()=>l(!0,e.commonGames[n]),disabled:e.commonGames.length===0,children:[E.jsx(IT,{})," J'aime !"]}),E.jsx("button",{className:`btn btn-outline-${e.commonGames.length===0?"disabled":"warning"} btn-lg`,onClick:()=>l(!1,e.commonGames[n]),disabled:e.commonGames.length===0,children:"Pas intéressé"}),E.jsx("p",{className:"text-light",children:"Aimez ou ignorez les jeux affichés. Le premier jeu qui aura été aimé par tout les joueurs de la room sera affiché, et vous saurez comment gaspiller les prochaines heures de votre précieuse vie."}),E.jsxs("p",{className:"text-info-emphasis",children:[E.jsx(Xu,{color:"info",size:"sm"})," La room sélectionnera un jeu aléatoire 10 minutes après sa création si aucun choix n'a pas été fait ..."]})]}),E.jsxs("div",{className:"game-page-background-container",children:[((f=e.swipedGames)==null?void 0:f.length)>0?E.jsx("h5",{className:"text-warning-emphasis",children:"Cliquez sur un jeu pour le retirer de vos J'aimes"}):E.jsx(E.Fragment,{children:" "}),(h=e.swipedGames)==null?void 0:h.map(m=>E.jsx("img",{src:`https://steamcdn-a.akamaihd.net/steam/apps/${m}/header.jpg?t=1628007606`,alt:"Swipped game",className:"game-page-background",onClick:()=>u(m)},m))]})]})})}function FT(){var y;const{id:e}=US(),{setAuth:t,auth:n}=S.useContext(gn),{setLoadingComplete:r,loadingComplete:i}=S.useContext(Na),{room:o,setRoom:s}=S.useContext(nn),{socket:l}=S.useContext(ns),[u,c]=S.useState(!0),f=Tr(),h=o==null?void 0:o.id,m=o==null?void 0:o.admin_id;return S.useEffect(()=>{n.isAuthenticated||(async()=>{try{const _=await H1();t({isAuthenticated:!0,user:_}),r(!0)}catch{console.error("Utilisateur non authentifié"),f("/")}})()},[n.isAuthenticated,r,t,f]),S.useEffect(()=>{if(!e)return;(async()=>{try{const _=await nC(e);s(C=>{const v=Zu(_.data);return{...C,..._.data,commonGames:v}})}catch(_){console.error("Erreur lors du chargement des informations de la room:",_),f("/")}finally{c(!1)}})()},[e,f,s,o==null?void 0:o.started]),S.useEffect(()=>{l&&h&&(l.onmessage=x=>{var C;const _=JSON.parse(x.data);_.action==="join"?uT(s,_.player):_.action==="leave"?Lw(s,_.player):_.action==="end"?Nw(l,s,!1,f):_.action==="kicked"?Aw(l,_.playerId,(C=n.user)==null?void 0:C.id,m??"",s,f,t):_.action==="start"?Rw(s):_.action==="gameEnd"?lT(s,t,_.winner):_.action==="retrieve"&&Dw(s,_.swipedGames)})},[t,s,h,l,f,(y=n.user)==null?void 0:y.id,m]),E.jsxs("div",{children:[E.jsx("section",{className:"py-4 py-xl-5",children:u?E.jsx(Mp,{}):o!=null&&o.started?E.jsx(zT,{}):E.jsx(MT,{})}),!u&&i?E.jsx(jw,{}):""]})}const BT=we.div` +`;function MT(){const{room:e}=S.useContext(nn),t=Tr();return e?E.jsxs("div",{className:"container",children:[E.jsx("div",{className:"text-center p-4 p-lg-5",children:E.jsx("div",{children:E.jsxs("p",{className:"fw-bold text-primary mb-2",children:["Room ID: ",E.jsx(DT,{children:e.id})]})})}),E.jsxs("div",{className:"row gy-1 justify-content-center",children:[e.players.map((n,r)=>E.jsx(AT,{player:n},r)),E.jsx(vT,{}),E.jsx(yT,{}),E.jsxs($T,{children:[E.jsx(_T,{}),E.jsx(bT,{})]})]})]}):(t("/"),E.jsx(E.Fragment,{}))}const IT=()=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:"bi bi-heart-fill",children:E.jsx("path",{fillRule:"evenodd",d:"M8 1.314C12.438-3.248 23.534 4.735 8 15-7.534 4.736 3.562-3.248 8 1.314z"})});function zT(){var f,h;const{room:e,setRoom:t}=S.useContext(nn),[n,r]=S.useState(0),[i,o]=S.useState(!1),s=S.useContext(ns);if(S.useEffect(()=>{e!=null&&e.winner&&setTimeout(()=>{o(!0)},1e3)},[e==null?void 0:e.winner]),!e||!s)return E.jsx(E.Fragment,{});const l=(m,y)=>{!s.socket||!e||!y||(m?(t(x=>x?{...x,commonGames:x.commonGames.filter(_=>_!==y),swipedGames:x.swipedGames?[...x.swipedGames,y]:[y]}:null),Kk(s.socket,y),n===e.commonGames.length-1&&r(0)):r(x=>(x+1)%e.commonGames.length))},u=m=>{!s.socket||!e||!m||(t(y=>{var x;return y?{...y,commonGames:[...y.commonGames.slice(0,n),m,...y.commonGames.slice(n)],swipedGames:(x=y.swipedGames)==null?void 0:x.filter(_=>_!==m)}:null}),Qk(s.socket,m))},c=m=>e.commonGames.indexOf(m);return E.jsx("div",{className:"container",children:e.ended?E.jsx("div",{className:"victory align-self-center d-flex justify-content-center",children:E.jsx("img",{src:`https://steamcdn-a.akamaihd.net/steam/apps/${e.winner}/library_600x900.jpg`,className:i?"animate":""})}):E.jsxs("div",{className:"game-page-container",children:[E.jsx("div",{className:"card-stack",style:{transform:`translateY(${n*-700}px)`},children:e.commonGames.map(m=>E.jsx("div",{children:E.jsx("div",{className:`card ${n===c(m)?"active":""}`,style:{backgroundImage:`url(https://steamcdn-a.akamaihd.net/steam/apps/${m}/library_600x900.jpg)`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",width:"100%",height:"100%"}})},m))}),E.jsxs("div",{className:"action-buttons",children:[E.jsxs("button",{className:`btn btn-${e.commonGames.length===0?"disabled":"danger"} btn-lg`,onClick:()=>l(!0,e.commonGames[n]),disabled:e.commonGames.length===0,children:[E.jsx(IT,{})," J'aime !"]}),E.jsx("button",{className:`btn btn-outline-${e.commonGames.length===0?"disabled":"warning"} btn-lg`,onClick:()=>l(!1,e.commonGames[n]),disabled:e.commonGames.length===0,children:"Pas intéressé"}),E.jsx("p",{className:"text-light",children:"Aimez ou ignorez les jeux affichés. Le premier jeu qui aura été aimé par tout les joueurs de la room sera affiché, et vous saurez comment gaspiller les prochaines heures de votre précieuse vie."}),E.jsxs("p",{className:"text-info-emphasis",children:[E.jsx(Zu,{color:"info",size:"sm"})," La room sélectionnera un jeu aléatoire 10 minutes après sa création si aucun choix n'a pas été fait ..."]})]}),E.jsxs("div",{className:"game-page-background-container",children:[((f=e.swipedGames)==null?void 0:f.length)>0?E.jsx("h5",{className:"text-warning-emphasis",children:"Cliquez sur un jeu pour le retirer de vos J'aimes"}):E.jsx(E.Fragment,{children:" "}),(h=e.swipedGames)==null?void 0:h.map(m=>E.jsx("img",{src:`https://steamcdn-a.akamaihd.net/steam/apps/${m}/header.jpg?t=1628007606`,alt:"Swipped game",className:"game-page-background",onClick:()=>u(m)},m))]})]})})}function FT(){var y;const{id:e}=US(),{setAuth:t,auth:n}=S.useContext(gn),{setLoadingComplete:r,loadingComplete:i}=S.useContext(Na),{room:o,setRoom:s}=S.useContext(nn),{socket:l}=S.useContext(ns),[u,c]=S.useState(!0),f=Tr(),h=o==null?void 0:o.id,m=o==null?void 0:o.admin_id;return S.useEffect(()=>{n.isAuthenticated||(async()=>{try{const _=await H1();t({isAuthenticated:!0,user:_}),r(!0)}catch{console.error("Utilisateur non authentifié"),f("/")}})()},[n.isAuthenticated,r,t,f]),S.useEffect(()=>{if(!e)return;(async()=>{try{const _=await nC(e);s(C=>{const v=Ju(_.data);return{...C,..._.data,commonGames:v}})}catch(_){console.error("Erreur lors du chargement des informations de la room:",_),f("/")}finally{c(!1)}})()},[e,f,s,o==null?void 0:o.started]),S.useEffect(()=>{l&&h&&(l.onmessage=x=>{var C;const _=JSON.parse(x.data);_.action==="join"?uT(s,_.player):_.action==="leave"?Lw(s,_.player):_.action==="end"?Nw(l,s,!1,f):_.action==="kicked"?Aw(l,_.playerId,(C=n.user)==null?void 0:C.id,m??"",s,f,t):_.action==="start"?Rw(s):_.action==="gameEnd"?lT(s,t,_.winner):_.action==="retrieve"&&Dw(s,_.swipedGames)})},[t,s,h,l,f,(y=n.user)==null?void 0:y.id,m]),E.jsxs("div",{children:[E.jsx("section",{className:"py-4 py-xl-5",children:u?E.jsx(Ip,{}):o!=null&&o.started?E.jsx(zT,{}):E.jsx(MT,{})}),!u&&i?E.jsx(jw,{}):""]})}const BT=we.div` cursor: default; user-select: none; `,Av=we.span` @@ -225,4 +225,4 @@ Error generating stack: `+o.message+` border-color: #e56a6a; `,n=we.svg` color: white; - `;return E.jsxs(gu,{to:"/",className:"navbar-brand d-flex align-items-center",children:[E.jsx(t,{className:"bs-icon-sm bs-icon-rounded d-flex justify-content-center align-items-center me-2 bs-icon",children:E.jsxs(n,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:"bi bi-steam",children:[E.jsx("path",{d:"M.329 10.333A8.01 8.01 0 0 0 7.99 16C12.414 16 16 12.418 16 8s-3.586-8-8.009-8A8.006 8.006 0 0 0 0 7.468l.003.006 4.304 1.769A2.198 2.198 0 0 1 5.62 8.88l1.96-2.844-.001-.04a3.046 3.046 0 0 1 3.042-3.043 3.046 3.046 0 0 1 3.042 3.043 3.047 3.047 0 0 1-3.111 3.044l-2.804 2a2.223 2.223 0 0 1-3.075 2.11 2.217 2.217 0 0 1-1.312-1.568L.33 10.333Z"}),E.jsx("path",{d:"M4.868 12.683a1.715 1.715 0 0 0 1.318-3.165 1.705 1.705 0 0 0-1.263-.02l1.023.424a1.261 1.261 0 1 1-.97 2.33l-.99-.41a1.7 1.7 0 0 0 .882.84Zm3.726-6.687a2.03 2.03 0 0 0 2.027 2.029 2.03 2.03 0 0 0 2.027-2.029 2.03 2.03 0 0 0-2.027-2.027 2.03 2.03 0 0 0-2.027 2.027Zm2.03-1.527a1.524 1.524 0 1 1-.002 3.048 1.524 1.524 0 0 1 .002-3.048Z"})]})}),E.jsx("span",{className:"text-primary",children:e})]})}function KT(){return E.jsxs("button",{"data-bs-toggle":"collapse",className:"navbar-toggler","data-bs-target":"#navcol-1",children:[E.jsx("span",{className:"visually-hidden",children:"Toggle navigation"}),E.jsx("span",{className:"navbar-toggler-icon"})]})}function QT(){const{auth:e}=S.useContext(gn),n=Pa().pathname;return E.jsxs("div",{className:"collapse navbar-collapse",id:"navcol-1",children:[E.jsxs("ul",{className:"navbar-nav me-auto",children:[E.jsx("li",{className:"nav-item",children:E.jsx("a",{className:"nav-link",href:"https://ko-fi.com/dilaouid",target:"_blank",children:"Faire un don"})}),e.user.waitlist?E.jsx("li",{className:"nav-item",children:E.jsx(gu,{to:"/waitlist/"+e.user.waitlist,className:`nav-link ${n.includes("/waitlist")?"active":""}`,children:"Room actuelle"})}):""]}),E.jsx(gu,{to:"/logout",className:"btn btn-outline-primary",role:"button",children:"Déconnexion"})]})}function YT(){const{auth:e}=S.useContext(gn),{loadingComplete:t}=S.useContext(Na);return E.jsx("div",{children:e.isAuthenticated&&t?E.jsx("nav",{className:"navbar navbar-expand-md bg-body bg-opacity-50 py-3","data-aos":"fade-down","data-bs-theme":"dark",children:E.jsxs("div",{className:"container",children:[E.jsx(GT,{title:"SteamWGP"}),E.jsx(KT,{}),E.jsx(QT,{})]})}):E.jsx(E.Fragment,{})})}function qT(){return S.useEffect(()=>{Gg.init(),Gg.refresh()},[]),E.jsx(Uk,{children:E.jsx(Hk,{children:E.jsx(Wk,{children:E.jsxs(Yk,{children:[E.jsx(_f,{position:"bottom-right",autoClose:5e3,newestOnTop:!1,closeOnClick:!0,pauseOnFocusLoss:!0,closeButton:!1,theme:"colored"}),E.jsx(YT,{}),E.jsxs(n2,{children:[E.jsx(co,{path:"/",element:E.jsx(cT,{})}),E.jsx(co,{path:"/login",element:E.jsx(V1,{})}),E.jsx(co,{path:"/logout",element:E.jsx(dT,{})}),E.jsx(co,{path:"/waitlist/:id",element:E.jsx(FT,{})}),E.jsx(co,{path:"*",element:E.jsx(VT,{})})]})]})})})})}const XT=l2([{path:"/*",element:E.jsx(qT,{})}]);hd.createRoot(document.getElementById("root")).render(E.jsx(ke.StrictMode,{children:E.jsx(v2,{router:XT})})); + `;return E.jsxs(gu,{to:"/",className:"navbar-brand d-flex align-items-center",children:[E.jsx(t,{className:"bs-icon-sm bs-icon-rounded d-flex justify-content-center align-items-center me-2 bs-icon",children:E.jsxs(n,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 16 16",className:"bi bi-steam",children:[E.jsx("path",{d:"M.329 10.333A8.01 8.01 0 0 0 7.99 16C12.414 16 16 12.418 16 8s-3.586-8-8.009-8A8.006 8.006 0 0 0 0 7.468l.003.006 4.304 1.769A2.198 2.198 0 0 1 5.62 8.88l1.96-2.844-.001-.04a3.046 3.046 0 0 1 3.042-3.043 3.046 3.046 0 0 1 3.042 3.043 3.047 3.047 0 0 1-3.111 3.044l-2.804 2a2.223 2.223 0 0 1-3.075 2.11 2.217 2.217 0 0 1-1.312-1.568L.33 10.333Z"}),E.jsx("path",{d:"M4.868 12.683a1.715 1.715 0 0 0 1.318-3.165 1.705 1.705 0 0 0-1.263-.02l1.023.424a1.261 1.261 0 1 1-.97 2.33l-.99-.41a1.7 1.7 0 0 0 .882.84Zm3.726-6.687a2.03 2.03 0 0 0 2.027 2.029 2.03 2.03 0 0 0 2.027-2.029 2.03 2.03 0 0 0-2.027-2.027 2.03 2.03 0 0 0-2.027 2.027Zm2.03-1.527a1.524 1.524 0 1 1-.002 3.048 1.524 1.524 0 0 1 .002-3.048Z"})]})}),E.jsx("span",{className:"text-primary",children:e})]})}function KT(){return E.jsxs("button",{"data-bs-toggle":"collapse",className:"navbar-toggler","data-bs-target":"#navcol-1",children:[E.jsx("span",{className:"visually-hidden",children:"Toggle navigation"}),E.jsx("span",{className:"navbar-toggler-icon"})]})}function QT(){const{auth:e}=S.useContext(gn),n=Pa().pathname;return E.jsxs("div",{className:"collapse navbar-collapse",id:"navcol-1",children:[E.jsxs("ul",{className:"navbar-nav me-auto",children:[E.jsx("li",{className:"nav-item",children:E.jsx("a",{className:"nav-link",href:"https://ko-fi.com/dilaouid",target:"_blank",children:"Faire un don"})}),e.user.waitlist?E.jsx("li",{className:"nav-item",children:E.jsx(gu,{to:"/waitlist/"+e.user.waitlist,className:`nav-link ${n.includes("/waitlist")?"active":""}`,children:"Room actuelle"})}):""]}),E.jsx(gu,{to:"/logout",className:"btn btn-outline-primary",role:"button",children:"Déconnexion"})]})}function YT(){const{auth:e}=S.useContext(gn),{loadingComplete:t}=S.useContext(Na);return E.jsx("div",{children:e.isAuthenticated&&t?E.jsx("nav",{className:"navbar navbar-expand-md bg-body bg-opacity-50 py-3","data-aos":"fade-down","data-bs-theme":"dark",children:E.jsxs("div",{className:"container",children:[E.jsx(GT,{title:"SteamWGP"}),E.jsx(KT,{}),E.jsx(QT,{})]})}):E.jsx(E.Fragment,{})})}function qT(){return S.useEffect(()=>{Gg.init(),Gg.refresh()},[]),E.jsx(Uk,{children:E.jsx(Hk,{children:E.jsx(Wk,{children:E.jsxs(Yk,{children:[E.jsx(Ef,{position:"bottom-right",autoClose:5e3,newestOnTop:!1,closeOnClick:!0,pauseOnFocusLoss:!0,closeButton:!1,theme:"colored"}),E.jsx(YT,{}),E.jsxs(n2,{children:[E.jsx(co,{path:"/",element:E.jsx(cT,{})}),E.jsx(co,{path:"/login",element:E.jsx(V1,{})}),E.jsx(co,{path:"/logout",element:E.jsx(dT,{})}),E.jsx(co,{path:"/waitlist/:id",element:E.jsx(FT,{})}),E.jsx(co,{path:"*",element:E.jsx(VT,{})})]})]})})})})}const XT=l2([{path:"/*",element:E.jsx(qT,{})}]);md.createRoot(document.getElementById("root")).render(E.jsx(ke.StrictMode,{children:E.jsx(v2,{router:XT})})); diff --git a/index.html b/index.html index 2459f7b..176f1fd 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ SteamWGP - +