diff --git "a/dist/assets/index-DXmXVJI_.js" "b/dist/assets/index-DXmXVJI_.js" new file mode 100644--- /dev/null +++ "b/dist/assets/index-DXmXVJI_.js" @@ -0,0 +1,95 @@ +var ud=e=>{throw TypeError(e)};var lu=(e,t,n)=>t.has(e)||ud("Cannot "+n);var k=(e,t,n)=>(lu(e,t,"read from private field"),n?n.call(e):t.get(e)),$=(e,t,n)=>t.has(e)?ud("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),M=(e,t,n,r)=>(lu(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),G=(e,t,n)=>(lu(e,t,"access private method"),n);var to=(e,t,n,r)=>({set _(i){M(e,t,i,n)},get _(){return k(e,t,r)}});function Rw(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();var $o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var om={exports:{}},Ps={},sm={exports:{}},J={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Vl=Symbol.for("react.element"),Ow=Symbol.for("react.portal"),bw=Symbol.for("react.fragment"),Iw=Symbol.for("react.strict_mode"),Nw=Symbol.for("react.profiler"),Aw=Symbol.for("react.provider"),Lw=Symbol.for("react.context"),Dw=Symbol.for("react.forward_ref"),Fw=Symbol.for("react.suspense"),zw=Symbol.for("react.memo"),Mw=Symbol.for("react.lazy"),ad=Symbol.iterator;function jw(e){return e===null||typeof e!="object"?null:(e=ad&&e[ad]||e["@@iterator"],typeof e=="function"?e:null)}var um={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},am=Object.assign,cm={};function Oi(e,t,n){this.props=e,this.context=t,this.refs=cm,this.updater=n||um}Oi.prototype.isReactComponent={};Oi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Oi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function fm(){}fm.prototype=Oi.prototype;function Ac(e,t,n){this.props=e,this.context=t,this.refs=cm,this.updater=n||um}var Lc=Ac.prototype=new fm;Lc.constructor=Ac;am(Lc,Oi.prototype);Lc.isPureReactComponent=!0;var cd=Array.isArray,dm=Object.prototype.hasOwnProperty,Dc={current:null},hm={key:!0,ref:!0,__self:!0,__source:!0};function pm(e,t,n){var r,i={},l=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(l=""+t.key),t)dm.call(t,r)&&!hm.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,ie=L[X];if(0>>1;Xi(ze,w))nei(Je,ze)?(L[X]=Je,L[ne]=w,X=ne):(L[X]=ze,L[pe]=w,X=pe);else if(nei(Je,w))L[X]=Je,L[ne]=w,X=ne;else break e}}return H}function i(L,H){var w=L.sortIndex-H.sortIndex;return w!==0?w:L.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var u=[],a=[],c=1,f=null,d=3,h=!1,g=!1,v=!1,S=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(L){for(var H=n(a);H!==null;){if(H.callback===null)r(a);else if(H.startTime<=L)r(a),H.sortIndex=H.expirationTime,t(u,H);else break;H=n(a)}}function C(L){if(v=!1,y(L),!g)if(n(u)!==null)g=!0,he(P);else{var H=n(a);H!==null&&ae(C,H.startTime-L)}}function P(L,H){g=!1,v&&(v=!1,p(R),R=-1),h=!0;var w=d;try{for(y(H),f=n(u);f!==null&&(!(f.expirationTime>H)||L&&!z());){var X=f.callback;if(typeof X=="function"){f.callback=null,d=f.priorityLevel;var ie=X(f.expirationTime<=H);H=e.unstable_now(),typeof ie=="function"?f.callback=ie:f===n(u)&&r(u),y(H)}else r(u);f=n(u)}if(f!==null)var x=!0;else{var pe=n(a);pe!==null&&ae(C,pe.startTime-H),x=!1}return x}finally{f=null,d=w,h=!1}}var E=!1,T=null,R=-1,A=5,F=-1;function z(){return!(e.unstable_now()-FL||125X?(L.sortIndex=w,t(a,L),n(u)===null&&L===n(a)&&(v?(p(R),R=-1):v=!0,ae(C,w-X))):(L.sortIndex=ie,t(u,L),g||h||(g=!0,he(P))),L},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(L){var H=d;return function(){var w=d;d=H;try{return L.apply(this,arguments)}finally{d=w}}}})(Sm);wm.exports=Sm;var Jw=wm.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Yw=b,yt=Jw;function I(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ta=Object.prototype.hasOwnProperty,Zw=/^[: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]*$/,dd={},hd={};function e0(e){return ta.call(hd,e)?!0:ta.call(dd,e)?!1:Zw.test(e)?hd[e]=!0:(dd[e]=!0,!1)}function t0(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 n0(e,t,n,r){if(t===null||typeof t>"u"||t0(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 Xe(e,t,n,r,i,l,o){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=l,this.removeEmptyString=o}var Fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Fe[e]=new Xe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Fe[t]=new Xe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Fe[e]=new Xe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Fe[e]=new Xe(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){Fe[e]=new Xe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Fe[e]=new Xe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Fe[e]=new Xe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Fe[e]=new Xe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Fe[e]=new Xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var zc=/[\-:]([a-z])/g;function Mc(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(zc,Mc);Fe[t]=new Xe(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(zc,Mc);Fe[t]=new Xe(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(zc,Mc);Fe[t]=new Xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Fe[e]=new Xe(e,1,!1,e.toLowerCase(),null,!1,!1)});Fe.xlinkHref=new Xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Fe[e]=new Xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function jc(e,t,n,r){var i=Fe.hasOwnProperty(t)?Fe[t]:null;(i!==null?i.type!==0:r||!(2s||i[o]!==l[s]){var u=` +`+i[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=s);break}}}finally{uu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Yi(e):""}function r0(e){switch(e.tag){case 5:return Yi(e.type);case 16:return Yi("Lazy");case 13:return Yi("Suspense");case 19:return Yi("SuspenseList");case 0:case 2:case 15:return e=au(e.type,!1),e;case 11:return e=au(e.type.render,!1),e;case 1:return e=au(e.type,!0),e;default:return""}}function la(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 Hr:return"Fragment";case Br:return"Portal";case na:return"Profiler";case Uc:return"StrictMode";case ra:return"Suspense";case ia:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Em:return(e.displayName||"Context")+".Consumer";case km:return(e._context.displayName||"Context")+".Provider";case Bc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hc:return t=e.displayName||null,t!==null?t:la(e.type)||"Memo";case Pn:t=e._payload,e=e._init;try{return la(e(t))}catch{}}return null}function i0(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 la(t);case 8:return t===Uc?"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 Gn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Pm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function l0(e){var t=Pm(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,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function io(e){e._valueTracker||(e._valueTracker=l0(e))}function _m(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Pm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Vo(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 oa(e,t){var n=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function md(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Gn(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 Tm(e,t){t=t.checked,t!=null&&jc(e,"checked",t,!1)}function sa(e,t){Tm(e,t);var n=Gn(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")?ua(e,t.type,n):t.hasOwnProperty("defaultValue")&&ua(e,t.type,Gn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function yd(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 ua(e,t,n){(t!=="number"||Vo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Zi=Array.isArray;function Zr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=lo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function gl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var il={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},o0=["Webkit","ms","Moz","O"];Object.keys(il).forEach(function(e){o0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),il[t]=il[e]})});function Im(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||il.hasOwnProperty(e)&&il[e]?(""+t).trim():t+"px"}function Nm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Im(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var s0=Se({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 fa(e,t){if(t){if(s0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(I(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(I(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(I(61))}if(t.style!=null&&typeof t.style!="object")throw Error(I(62))}}function da(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 ha=null;function $c(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pa=null,ei=null,ti=null;function wd(e){if(e=Wl(e)){if(typeof pa!="function")throw Error(I(280));var t=e.stateNode;t&&(t=bs(t),pa(e.stateNode,e.type,t))}}function Am(e){ei?ti?ti.push(e):ti=[e]:ei=e}function Lm(){if(ei){var e=ei,t=ti;if(ti=ei=null,wd(e),t)for(e=0;e>>=0,e===0?32:31-(v0(e)/w0|0)|0}var oo=64,so=4194304;function el(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 Ko(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=el(s):(l&=o,l!==0&&(r=el(l)))}else o=n&~i,o!==0?r=el(o):l!==0&&(r=el(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&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 Ql(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jt(t),e[t]=n}function E0(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=ol),Rd=" ",Od=!1;function ey(e,t){switch(e){case"keyup":return J0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ty(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $r=!1;function Z0(e,t){switch(e){case"compositionend":return ty(t);case"keypress":return t.which!==32?null:(Od=!0,Rd);case"textInput":return e=t.data,e===Rd&&Od?null:e;default:return null}}function e1(e,t){if($r)return e==="compositionend"||!Jc&&ey(e,t)?(e=Ym(),Ro=Kc=Mn=null,$r=!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=Ad(n)}}function ly(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ly(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function oy(){for(var e=window,t=Vo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vo(e.document)}return t}function Yc(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 a1(e){var t=oy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ly(n.ownerDocument.documentElement,n)){if(r!==null&&Yc(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,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=Ld(n,l);var o=Ld(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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,Vr=null,Sa=null,ul=null,xa=!1;function Dd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xa||Vr==null||Vr!==Vo(r)||(r=Vr,"selectionStart"in r&&Yc(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}),ul&&El(ul,r)||(ul=r,r=Jo(Sa,"onSelect"),0Wr||(e.current=Ta[Wr],Ta[Wr]=null,Wr--)}function fe(e,t){Wr++,Ta[Wr]=e.current,e.current=t}var Xn={},$e=Zn(Xn),rt=Zn(!1),Er=Xn;function ki(e,t){var n=e.type.contextTypes;if(!n)return Xn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function it(e){return e=e.childContextTypes,e!=null}function Zo(){ye(rt),ye($e)}function Hd(e,t,n){if($e.current!==Xn)throw Error(I(168));fe($e,t),fe(rt,n)}function my(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(I(108,i0(e)||"Unknown",i));return Se({},n,r)}function es(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xn,Er=$e.current,fe($e,e),fe(rt,rt.current),!0}function $d(e,t,n){var r=e.stateNode;if(!r)throw Error(I(169));n?(e=my(e,t,Er),r.__reactInternalMemoizedMergedChildContext=e,ye(rt),ye($e),fe($e,e)):ye(rt),fe(rt,n)}var sn=null,Is=!1,Eu=!1;function yy(e){sn===null?sn=[e]:sn.push(e)}function x1(e){Is=!0,yy(e)}function er(){if(!Eu&&sn!==null){Eu=!0;var e=0,t=oe;try{var n=sn;for(oe=1;e>=o,i-=o,cn=1<<32-jt(t)+i|n<R?(A=T,T=null):A=T.sibling;var F=d(p,T,y[R],C);if(F===null){T===null&&(T=A);break}e&&T&&F.alternate===null&&t(p,T),m=l(F,m,R),E===null?P=F:E.sibling=F,E=F,T=A}if(R===y.length)return n(p,T),ge&&rr(p,R),P;if(T===null){for(;RR?(A=T,T=null):A=T.sibling;var z=d(p,T,F.value,C);if(z===null){T===null&&(T=A);break}e&&T&&z.alternate===null&&t(p,T),m=l(z,m,R),E===null?P=z:E.sibling=z,E=z,T=A}if(F.done)return n(p,T),ge&&rr(p,R),P;if(T===null){for(;!F.done;R++,F=y.next())F=f(p,F.value,C),F!==null&&(m=l(F,m,R),E===null?P=F:E.sibling=F,E=F);return ge&&rr(p,R),P}for(T=r(p,T);!F.done;R++,F=y.next())F=h(T,p,R,F.value,C),F!==null&&(e&&F.alternate!==null&&T.delete(F.key===null?R:F.key),m=l(F,m,R),E===null?P=F:E.sibling=F,E=F);return e&&T.forEach(function(U){return t(p,U)}),ge&&rr(p,R),P}function S(p,m,y,C){if(typeof y=="object"&&y!==null&&y.type===Hr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ro:e:{for(var P=y.key,E=m;E!==null;){if(E.key===P){if(P=y.type,P===Hr){if(E.tag===7){n(p,E.sibling),m=i(E,y.props.children),m.return=p,p=m;break e}}else if(E.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Pn&&qd(P)===E.type){n(p,E.sibling),m=i(E,y.props),m.ref=qi(p,E,y),m.return=p,p=m;break e}n(p,E);break}else t(p,E);E=E.sibling}y.type===Hr?(m=Sr(y.props.children,p.mode,C,y.key),m.return=p,p=m):(C=Fo(y.type,y.key,y.props,null,p.mode,C),C.ref=qi(p,m,y),C.return=p,p=C)}return o(p);case Br:e:{for(E=y.key;m!==null;){if(m.key===E)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(p,m.sibling),m=i(m,y.children||[]),m.return=p,p=m;break e}else{n(p,m);break}else t(p,m);m=m.sibling}m=Iu(y,p.mode,C),m.return=p,p=m}return o(p);case Pn:return E=y._init,S(p,m,E(y._payload),C)}if(Zi(y))return g(p,m,y,C);if(Bi(y))return v(p,m,y,C);mo(p,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(p,m.sibling),m=i(m,y),m.return=p,p=m):(n(p,m),m=bu(y,p.mode,C),m.return=p,p=m),o(p)):n(p,m)}return S}var Ci=Sy(!0),xy=Sy(!1),rs=Zn(null),is=null,Xr=null,nf=null;function rf(){nf=Xr=is=null}function lf(e){var t=rs.current;ye(rs),e._currentValue=t}function ba(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ri(e,t){is=e,nf=Xr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(nt=!0),e.firstContext=null)}function Rt(e){var t=e._currentValue;if(nf!==e)if(e={context:e,memoizedValue:t,next:null},Xr===null){if(is===null)throw Error(I(308));Xr=e,is.dependencies={lanes:0,firstContext:e}}else Xr=Xr.next=e;return t}var ur=null;function of(e){ur===null?ur=[e]:ur.push(e)}function ky(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,of(t)):(n.next=i.next,i.next=n),t.interleaved=n,gn(e,r)}function gn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var _n=!1;function sf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ey(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function dn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Qn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,te&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,gn(e,n)}return i=r.interleaved,i===null?(t.next=t,of(r)):(t.next=i.next,i.next=t),r.interleaved=t,gn(e,n)}function bo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qc(e,n)}}function Wd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=o:l=l.next=o,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ls(e,t,n,r){var i=e.updateQueue;_n=!1;var l=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var u=s,a=u.next;u.next=null,o===null?l=a:o.next=a,o=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==o&&(s===null?c.firstBaseUpdate=a:s.next=a,c.lastBaseUpdate=u))}if(l!==null){var f=i.baseState;o=0,c=a=u=null,s=l;do{var d=s.lane,h=s.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,v=s;switch(d=t,h=n,v.tag){case 1:if(g=v.payload,typeof g=="function"){f=g.call(h,f,d);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,d=typeof g=="function"?g.call(h,f,d):g,d==null)break e;f=Se({},f,d);break e;case 2:_n=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(a=c=h,u=f):c=c.next=h,o|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(u=f),i.baseState=u,i.firstBaseUpdate=a,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);_r|=o,e.lanes=o,e.memoizedState=f}}function Kd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Pu.transition;Pu.transition={};try{e(!1),t()}finally{oe=n,Pu.transition=r}}function Uy(){return Ot().memoizedState}function P1(e,t,n){var r=Wn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},By(e))Hy(t,n);else if(n=ky(e,t,n,r),n!==null){var i=Ke();Ut(n,e,r,i),$y(n,t,r)}}function _1(e,t,n){var r=Wn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(By(e))Hy(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var o=t.lastRenderedState,s=l(o,n);if(i.hasEagerState=!0,i.eagerState=s,Bt(s,o)){var u=t.interleaved;u===null?(i.next=i,of(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=ky(e,t,i,r),n!==null&&(i=Ke(),Ut(n,e,r,i),$y(n,t,r))}}function By(e){var t=e.alternate;return e===we||t!==null&&t===we}function Hy(e,t){al=ss=!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,Qc(e,n)}}var us={readContext:Rt,useCallback:Me,useContext:Me,useEffect:Me,useImperativeHandle:Me,useInsertionEffect:Me,useLayoutEffect:Me,useMemo:Me,useReducer:Me,useRef:Me,useState:Me,useDebugValue:Me,useDeferredValue:Me,useTransition:Me,useMutableSource:Me,useSyncExternalStore:Me,useId:Me,unstable_isNewReconciler:!1},T1={readContext:Rt,useCallback:function(e,t){return Qt().memoizedState=[e,t===void 0?null:t],e},useContext:Rt,useEffect:Xd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,No(4194308,4,Dy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return No(4194308,4,e,t)},useInsertionEffect:function(e,t){return No(4,2,e,t)},useMemo:function(e,t){var n=Qt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qt();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=P1.bind(null,we,e),[r.memoizedState,e]},useRef:function(e){var t=Qt();return e={current:e},t.memoizedState=e},useState:Gd,useDebugValue:mf,useDeferredValue:function(e){return Qt().memoizedState=e},useTransition:function(){var e=Gd(!1),t=e[0];return e=C1.bind(null,e[1]),Qt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=we,i=Qt();if(ge){if(n===void 0)throw Error(I(407));n=n()}else{if(n=t(),Ne===null)throw Error(I(349));Pr&30||Ty(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,Xd(Oy.bind(null,r,l,e),[e]),r.flags|=2048,Il(9,Ry.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=Qt(),t=Ne.identifierPrefix;if(ge){var n=fn,r=cn;n=(r&~(1<<32-jt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ol++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Jt]=t,e[_l]=r,Zy(e,t,!1,!1),t.stateNode=e;e:{switch(o=da(n,r),n){case"dialog":me("cancel",e),me("close",e),i=r;break;case"iframe":case"object":case"embed":me("load",e),i=r;break;case"video":case"audio":for(i=0;iTi&&(t.flags|=128,r=!0,Wi(l,!1),t.lanes=4194304)}else{if(!r)if(e=os(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Wi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!ge)return je(t),null}else 2*Ce()-l.renderingStartTime>Ti&&n!==1073741824&&(t.flags|=128,r=!0,Wi(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(n=l.last,n!==null?n.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Ce(),t.sibling=null,n=ve.current,fe(ve,r?n&1|2:n&1),t):(je(t),null);case 22:case 23:return xf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ft&1073741824&&(je(t),t.subtreeFlags&6&&(t.flags|=8192)):je(t),null;case 24:return null;case 25:return null}throw Error(I(156,t.tag))}function D1(e,t){switch(ef(t),t.tag){case 1:return it(t.type)&&Zo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pi(),ye(rt),ye($e),cf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return af(t),null;case 13:if(ye(ve),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));Ei()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ye(ve),null;case 4:return Pi(),null;case 10:return lf(t.type._context),null;case 22:case 23:return xf(),null;case 24:return null;default:return null}}var go=!1,Be=!1,F1=typeof WeakSet=="function"?WeakSet:Set,j=null;function Jr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ee(e,t,r)}else n.current=null}function ja(e,t,n){try{n()}catch(r){Ee(e,t,r)}}var sh=!1;function z1(e,t){if(ka=Go,e=oy(),Yc(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,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var o=0,s=-1,u=-1,a=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(s=o+i),f!==l||r!==0&&f.nodeType!==3||(u=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++a===i&&(s=o),d===l&&++c===r&&(u=o),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ea={focusedElem:e,selectionRange:n},Go=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,S=g.memoizedState,p=t.stateNode,m=p.getSnapshotBeforeUpdate(t.elementType===t.type?v:Nt(t.type,v),S);p.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(I(163))}}catch(C){Ee(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return g=sh,sh=!1,g}function cl(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 l=i.destroy;i.destroy=void 0,l!==void 0&&ja(t,n,l)}i=i.next}while(i!==r)}}function Ls(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 Ua(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 ng(e){var t=e.alternate;t!==null&&(e.alternate=null,ng(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Jt],delete t[_l],delete t[_a],delete t[w1],delete t[S1])),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 rg(e){return e.tag===5||e.tag===3||e.tag===4}function uh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rg(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 Ba(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=Yo));else if(r!==4&&(e=e.child,e!==null))for(Ba(e,t,n),e=e.sibling;e!==null;)Ba(e,t,n),e=e.sibling}function Ha(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(Ha(e,t,n),e=e.sibling;e!==null;)Ha(e,t,n),e=e.sibling}var Le=null,Dt=!1;function kn(e,t,n){for(n=n.child;n!==null;)ig(e,t,n),n=n.sibling}function ig(e,t,n){if(Zt&&typeof Zt.onCommitFiberUnmount=="function")try{Zt.onCommitFiberUnmount(_s,n)}catch{}switch(n.tag){case 5:Be||Jr(n,t);case 6:var r=Le,i=Dt;Le=null,kn(e,t,n),Le=r,Dt=i,Le!==null&&(Dt?(e=Le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Le.removeChild(n.stateNode));break;case 18:Le!==null&&(Dt?(e=Le,n=n.stateNode,e.nodeType===8?ku(e.parentNode,n):e.nodeType===1&&ku(e,n),xl(e)):ku(Le,n.stateNode));break;case 4:r=Le,i=Dt,Le=n.stateNode.containerInfo,Dt=!0,kn(e,t,n),Le=r,Dt=i;break;case 0:case 11:case 14:case 15:if(!Be&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&ja(n,t,o),i=i.next}while(i!==r)}kn(e,t,n);break;case 1:if(!Be&&(Jr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Ee(n,t,s)}kn(e,t,n);break;case 21:kn(e,t,n);break;case 22:n.mode&1?(Be=(r=Be)||n.memoizedState!==null,kn(e,t,n),Be=r):kn(e,t,n);break;default:kn(e,t,n)}}function ah(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new F1),t.forEach(function(r){var i=q1.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function It(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~l}if(r=i,r=Ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*j1(r/1960))-r,10e?16:e,jn===null)var r=!1;else{if(e=jn,jn=null,fs=0,te&6)throw Error(I(331));var i=te;for(te|=4,j=e.current;j!==null;){var l=j,o=l.child;if(j.flags&16){var s=l.deletions;if(s!==null){for(var u=0;uCe()-wf?wr(e,0):vf|=n),lt(e,t)}function dg(e,t){t===0&&(e.mode&1?(t=so,so<<=1,!(so&130023424)&&(so=4194304)):t=1);var n=Ke();e=gn(e,t),e!==null&&(Ql(e,t,n),lt(e,n))}function Q1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),dg(e,n)}function q1(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(I(314))}r!==null&&r.delete(t),dg(e,n)}var hg;hg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||rt.current)nt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return nt=!1,A1(e,t,n);nt=!!(e.flags&131072)}else nt=!1,ge&&t.flags&1048576&&gy(t,ns,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ao(e,t),e=t.pendingProps;var i=ki(t,$e.current);ri(t,n),i=df(null,t,r,e,i,n);var l=hf();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,it(r)?(l=!0,es(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,sf(t),i.updater=As,t.stateNode=i,i._reactInternals=t,Na(t,r,e,n),t=Da(null,t,r,!0,l,n)):(t.tag=0,ge&&l&&Zc(t),We(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ao(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=K1(r),e=Nt(r,e),i){case 0:t=La(null,t,r,e,n);break e;case 1:t=ih(null,t,r,e,n);break e;case 11:t=nh(null,t,r,e,n);break e;case 14:t=rh(null,t,r,Nt(r.type,e),n);break e}throw Error(I(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Nt(r,i),La(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Nt(r,i),ih(e,t,r,i,n);case 3:e:{if(Xy(t),e===null)throw Error(I(387));r=t.pendingProps,l=t.memoizedState,i=l.element,Ey(e,t),ls(t,r,null,n);var o=t.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=_i(Error(I(423)),t),t=lh(e,t,r,n,i);break e}else if(r!==i){i=_i(Error(I(424)),t),t=lh(e,t,r,n,i);break e}else for(dt=Vn(t.stateNode.containerInfo.firstChild),pt=t,ge=!0,Ft=null,n=xy(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ei(),r===i){t=vn(e,t,n);break e}We(e,t,r,n)}t=t.child}return t;case 5:return Cy(t),e===null&&Oa(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,Ca(r,i)?o=null:l!==null&&Ca(r,l)&&(t.flags|=32),Gy(e,t),We(e,t,o,n),t.child;case 6:return e===null&&Oa(t),null;case 13:return Jy(e,t,n);case 4:return uf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ci(t,null,r,n):We(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Nt(r,i),nh(e,t,r,i,n);case 7:return We(e,t,t.pendingProps,n),t.child;case 8:return We(e,t,t.pendingProps.children,n),t.child;case 12:return We(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,o=i.value,fe(rs,r._currentValue),r._currentValue=o,l!==null)if(Bt(l.value,o)){if(l.children===i.children&&!rt.current){t=vn(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){o=l.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(l.tag===1){u=dn(-1,n&-n),u.tag=2;var a=l.updateQueue;if(a!==null){a=a.shared;var c=a.pending;c===null?u.next=u:(u.next=c.next,c.next=u),a.pending=u}}l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),ba(l.return,n,t),s.lanes|=n;break}u=u.next}}else if(l.tag===10)o=l.type===t.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(I(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),ba(o,n,t),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}We(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ri(t,n),i=Rt(i),r=r(i),t.flags|=1,We(e,t,r,n),t.child;case 14:return r=t.type,i=Nt(r,t.pendingProps),i=Nt(r.type,i),rh(e,t,r,i,n);case 15:return Wy(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Nt(r,i),Ao(e,t),t.tag=1,it(r)?(e=!0,es(t)):e=!1,ri(t,n),Vy(t,r,i),Na(t,r,i,n),Da(null,t,r,!0,e,n);case 19:return Yy(e,t,n);case 22:return Ky(e,t,n)}throw Error(I(156,t.tag))};function pg(e,t){return Bm(e,t)}function W1(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 _t(e,t,n,r){return new W1(e,t,n,r)}function Ef(e){return e=e.prototype,!(!e||!e.isReactComponent)}function K1(e){if(typeof e=="function")return Ef(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bc)return 11;if(e===Hc)return 14}return 2}function Kn(e,t){var n=e.alternate;return n===null?(n=_t(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 Fo(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")Ef(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Hr:return Sr(n.children,i,l,t);case Uc:o=8,i|=8;break;case na:return e=_t(12,n,t,i|2),e.elementType=na,e.lanes=l,e;case ra:return e=_t(13,n,t,i),e.elementType=ra,e.lanes=l,e;case ia:return e=_t(19,n,t,i),e.elementType=ia,e.lanes=l,e;case Cm:return Fs(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case km:o=10;break e;case Em:o=9;break e;case Bc:o=11;break e;case Hc:o=14;break e;case Pn:o=16,r=null;break e}throw Error(I(130,e==null?e:typeof e,""))}return t=_t(o,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function Sr(e,t,n,r){return e=_t(7,e,r,t),e.lanes=n,e}function Fs(e,t,n,r){return e=_t(22,e,r,t),e.elementType=Cm,e.lanes=n,e.stateNode={isHidden:!1},e}function bu(e,t,n){return e=_t(6,e,null,t),e.lanes=n,e}function Iu(e,t,n){return t=_t(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function G1(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=fu(0),this.expirationTimes=fu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fu(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Cf(e,t,n,r,i,l,o,s,u){return e=new G1(e,t,n,s,u),t===1?(t=1,l===!0&&(t|=8)):t=0,l=_t(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},sf(l),e}function X1(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vg)}catch(e){console.error(e)}}vg(),vm.exports=wt;var tS=vm.exports,gh=tS;ea.createRoot=gh.createRoot,ea.hydrateRoot=gh.hydrateRoot;/** + * @remix-run/router v1.23.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Al(){return Al=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function wg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function rS(){return Math.random().toString(36).substr(2,8)}function wh(e,t){return{usr:e.state,key:e.key,idx:t}}function Wa(e,t,n,r){return n===void 0&&(n=null),Al({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ni(t):t,{state:n,key:t&&t.key||r||rS()})}function Sg(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 Ni(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 iS(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:l=!1}=r,o=i.history,s=Un.Pop,u=null,a=c();a==null&&(a=0,o.replaceState(Al({},o.state,{idx:a}),""));function c(){return(o.state||{idx:null}).idx}function f(){s=Un.Pop;let S=c(),p=S==null?null:S-a;a=S,u&&u({action:s,location:v.location,delta:p})}function d(S,p){s=Un.Push;let m=Wa(v.location,S,p);a=c()+1;let y=wh(m,a),C=v.createHref(m);try{o.pushState(y,"",C)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(C)}l&&u&&u({action:s,location:v.location,delta:1})}function h(S,p){s=Un.Replace;let m=Wa(v.location,S,p);a=c();let y=wh(m,a),C=v.createHref(m);o.replaceState(y,"",C),l&&u&&u({action:s,location:v.location,delta:0})}function g(S){let p=i.location.origin!=="null"?i.location.origin:i.location.href,m=typeof S=="string"?S:Sg(S);return m=m.replace(/ $/,"%20"),be(p,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,p)}let v={get action(){return s},get location(){return e(i,o)},listen(S){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(vh,f),u=S,()=>{i.removeEventListener(vh,f),u=null}},createHref(S){return t(i,S)},createURL:g,encodeLocation(S){let p=g(S);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:d,replace:h,go(S){return o.go(S)}};return v}var Sh;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Sh||(Sh={}));function lS(e,t,n){return n===void 0&&(n="/"),oS(e,t,n)}function oS(e,t,n,r){let i=typeof t=="string"?Ni(t):t,l=Eg(i.pathname||"/",n);if(l==null)return null;let o=xg(e);sS(o);let s=null;for(let u=0;s==null&&u{let u={relativePath:s===void 0?l.path||"":s,caseSensitive:l.caseSensitive===!0,childrenIndex:o,route:l};u.relativePath.startsWith("/")&&(be(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 a=xr([r,u.relativePath]),c=n.concat(u);l.children&&l.children.length>0&&(be(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),xg(l.children,t,c,a)),!(l.path==null&&!l.index)&&t.push({path:a,score:pS(a,l.index),routesMeta:c})};return e.forEach((l,o)=>{var s;if(l.path===""||!((s=l.path)!=null&&s.includes("?")))i(l,o);else for(let u of kg(l.path))i(l,o,u)}),t}function kg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return i?[l,""]:[l];let o=kg(r.join("/")),s=[];return s.push(...o.map(u=>u===""?l:[l,u].join("/"))),i&&s.push(...o),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function sS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:mS(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const uS=/^:[\w-]+$/,aS=3,cS=2,fS=1,dS=10,hS=-2,xh=e=>e==="*";function pS(e,t){let n=e.split("/"),r=n.length;return n.some(xh)&&(r+=hS),t&&(r+=cS),n.filter(i=>!xh(i)).reduce((i,l)=>i+(uS.test(l)?aS:l===""?fS:dS),r)}function mS(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 yS(e,t,n){let{routesMeta:r}=e,i={},l="/",o=[];for(let s=0;s{let{paramName:d,isOptional:h}=c;if(d==="*"){let v=s[f]||"";o=l.slice(0,l.length-v.length).replace(/(.)\/+$/,"$1")}const g=s[f];return h&&!g?a[d]=void 0:a[d]=(g||"").replace(/%2F/g,"/"),a},{}),pathname:l,pathnameBase:o,pattern:e}}function vS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),wg(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,(o,s,u)=>(r.push({paramName:s,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 wS(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return wg(!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 Eg(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 SS(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ni(e):e;return{pathname:n?n.startsWith("/")?n:xS(n,t):t,search:_S(r),hash:TS(i)}}function xS(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 Nu(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 kS(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ES(e,t){let n=kS(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function CS(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ni(e):(i=Al({},e),be(!i.pathname||!i.pathname.includes("?"),Nu("?","pathname","search",i)),be(!i.pathname||!i.pathname.includes("#"),Nu("#","pathname","hash",i)),be(!i.search||!i.search.includes("#"),Nu("#","search","hash",i)));let l=e===""||i.pathname==="",o=l?"/":i.pathname,s;if(o==null)s=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}s=f>=0?t[f]:"/"}let u=SS(i,s),a=o&&o!=="/"&&o.endsWith("/"),c=(l||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(a||c)&&(u.pathname+="/"),u}const xr=e=>e.join("/").replace(/\/\/+/g,"/"),PS=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_S=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,TS=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function RS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Cg=["post","put","patch","delete"];new Set(Cg);const OS=["get",...Cg];new Set(OS);/** + * React Router v6.30.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Ll(){return Ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),b.useCallback(function(a,c){if(c===void 0&&(c={}),!s.current)return;if(typeof a=="number"){r.go(a);return}let f=CS(a,JSON.parse(o),l,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:xr([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,o,l,e])}function NS(e,t){return AS(e,t)}function AS(e,t,n,r){$s()||be(!1);let{navigator:i,static:l}=b.useContext(Bs),{matches:o}=b.useContext(Ai),s=o[o.length-1],u=s?s.params:{};s&&s.pathname;let a=s?s.pathnameBase:"/";s&&s.route;let c=_g(),f;if(t){var d;let p=typeof t=="string"?Ni(t):t;a==="/"||(d=p.pathname)!=null&&d.startsWith(a)||be(!1),f=p}else f=c;let h=f.pathname||"/",g=h;if(a!=="/"){let p=a.replace(/^\//,"").split("/");g="/"+h.replace(/^\//,"").split("/").slice(p.length).join("/")}let v=lS(e,{pathname:g}),S=MS(v&&v.map(p=>Object.assign({},p,{params:Object.assign({},u,p.params),pathname:xr([a,i.encodeLocation?i.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?a:xr([a,i.encodeLocation?i.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),o,n,r);return t&&S?b.createElement(Hs.Provider,{value:{location:Ll({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Un.Pop}},S):S}function LS(){let e=HS(),t=RS(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)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:i},n):null,null)}const DS=b.createElement(LS,null);class FS extends b.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?b.createElement(Ai.Provider,{value:this.props.routeContext},b.createElement(Pg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function zS(e){let{routeContext:t,match:n,children:r}=e,i=b.useContext(Rf);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(Ai.Provider,{value:t},r)}function MS(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var l;if(!n)return null;if(n.errors)e=n.matches;else if((l=r)!=null&&l.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let c=o.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);c>=0||be(!1),o=o.slice(0,Math.min(o.length,c+1))}let u=!1,a=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?o=o.slice(0,a+1):o=[o[0]];break}}}return o.reduceRight((c,f,d)=>{let h,g=!1,v=null,S=null;n&&(h=s&&f.route.id?s[f.route.id]:void 0,v=f.route.errorElement||DS,u&&(a<0&&d===0?(VS("route-fallback"),g=!0,S=null):a===d&&(g=!0,S=f.route.hydrateFallbackElement||null)));let p=t.concat(o.slice(0,d+1)),m=()=>{let y;return h?y=v:g?y=S:f.route.Component?y=b.createElement(f.route.Component,null):f.route.element?y=f.route.element:y=c,b.createElement(zS,{match:f,routeContext:{outlet:c,matches:p,isDataRoute:n!=null},children:y})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?b.createElement(FS,{location:n.location,revalidation:n.revalidation,component:v,error:h,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()},null)}var Rg=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Rg||{}),Og=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}(Og||{});function jS(e){let t=b.useContext(Rf);return t||be(!1),t}function US(e){let t=b.useContext(bS);return t||be(!1),t}function BS(e){let t=b.useContext(Ai);return t||be(!1),t}function bg(e){let t=BS(),n=t.matches[t.matches.length-1];return n.route.id||be(!1),n.route.id}function HS(){var e;let t=b.useContext(Pg),n=US(),r=bg();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function $S(){let{router:e}=jS(Rg.UseNavigateStable),t=bg(Og.UseNavigateStable),n=b.useRef(!1);return Tg(()=>{n.current=!0}),b.useCallback(function(i,l){l===void 0&&(l={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ll({fromRouteId:t},l)))},[e,t])}const kh={};function VS(e,t,n){kh[e]||(kh[e]=!0)}function QS(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Ka(e){be(!1)}function qS(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Un.Pop,navigator:l,static:o=!1,future:s}=e;$s()&&be(!1);let u=t.replace(/^\/*/,"/"),a=b.useMemo(()=>({basename:u,navigator:l,static:o,future:Ll({v7_relativeSplatPath:!1},s)}),[u,s,l,o]);typeof r=="string"&&(r=Ni(r));let{pathname:c="/",search:f="",hash:d="",state:h=null,key:g="default"}=r,v=b.useMemo(()=>{let S=Eg(c,u);return S==null?null:{location:{pathname:S,search:f,hash:d,state:h,key:g},navigationType:i}},[u,c,f,d,h,g,i]);return v==null?null:b.createElement(Bs.Provider,{value:a},b.createElement(Hs.Provider,{children:n,value:v}))}function WS(e){let{children:t,location:n}=e;return NS(Ga(t),n)}new Promise(()=>{});function Ga(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,i)=>{if(!b.isValidElement(r))return;let l=[...t,i];if(r.type===b.Fragment){n.push.apply(n,Ga(r.props.children,l));return}r.type!==Ka&&be(!1),!r.props.index||!r.props.children||be(!1);let o={id:r.props.id||l.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&&(o.children=Ga(r.props.children,l)),n.push(o)}),n}/** + * React Router DOM v6.30.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */const KS="6";try{window.__reactRouterVersion=KS}catch{}const GS="startTransition",Eh=Vw[GS];function XS(e){let{basename:t,children:n,future:r,window:i}=e,l=b.useRef();l.current==null&&(l.current=nS({window:i,v5Compat:!0}));let o=l.current,[s,u]=b.useState({action:o.action,location:o.location}),{v7_startTransition:a}=r||{},c=b.useCallback(f=>{a&&Eh?Eh(()=>u(f)):u(f)},[u,a]);return b.useLayoutEffect(()=>o.listen(c),[o,c]),b.useEffect(()=>QS(r),[r]),b.createElement(qS,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o,future:r})}var Ch;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ch||(Ch={}));var Ph;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ph||(Ph={}));var Ig={exports:{}},Ng={};/** + * @license React + * use-sync-external-store-with-selector.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Gl=b;function JS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var YS=typeof Object.is=="function"?Object.is:JS,ZS=Gl.useSyncExternalStore,ex=Gl.useRef,tx=Gl.useEffect,nx=Gl.useMemo,rx=Gl.useDebugValue;Ng.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var l=ex(null);if(l.current===null){var o={hasValue:!1,value:null};l.current=o}else o=l.current;l=nx(function(){function u(h){if(!a){if(a=!0,c=h,h=r(h),i!==void 0&&o.hasValue){var g=o.value;if(i(g,h))return f=g}return f=h}if(g=f,YS(c,h))return g;var v=r(h);return i!==void 0&&i(g,v)?(c=h,g):(c=h,f=v)}var a=!1,c,f,d=n===void 0?null:n;return[function(){return u(t())},d===null?void 0:function(){return u(d())}]},[t,n,r,i]);var s=ZS(e,l[0],l[1]);return tx(function(){o.hasValue=!0,o.value=s},[s]),rx(s),s};Ig.exports=Ng;var ix=Ig.exports;function lx(e){e()}function ox(){let e=null,t=null;return{clear(){e=null,t=null},notify(){lx(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var _h={notify(){},get:()=>[]};function sx(e,t){let n,r=_h,i=0,l=!1;function o(v){c();const S=r.subscribe(v);let p=!1;return()=>{p||(p=!0,S(),f())}}function s(){r.notify()}function u(){g.onStateChange&&g.onStateChange()}function a(){return l}function c(){i++,n||(n=e.subscribe(u),r=ox())}function f(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=_h)}function d(){l||(l=!0,c())}function h(){l&&(l=!1,f())}const g={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:a,trySubscribe:d,tryUnsubscribe:h,getListeners:()=>r};return g}var ux=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ax=ux(),cx=()=>typeof navigator<"u"&&navigator.product==="ReactNative",fx=cx(),dx=()=>ax||fx?b.useLayoutEffect:b.useEffect,hx=dx(),Au=Symbol.for("react-redux-context"),Lu=typeof globalThis<"u"?globalThis:{};function px(){if(!b.createContext)return{};const e=Lu[Au]??(Lu[Au]=new Map);let t=e.get(b.createContext);return t||(t=b.createContext(null),e.set(b.createContext,t)),t}var Jn=px();function mx(e){const{children:t,context:n,serverState:r,store:i}=e,l=b.useMemo(()=>{const u=sx(i);return{store:i,subscription:u,getServerState:r?()=>r:void 0}},[i,r]),o=b.useMemo(()=>i.getState(),[i]);hx(()=>{const{subscription:u}=l;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),o!==i.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[l,o]);const s=n||Jn;return b.createElement(s.Provider,{value:l},t)}var yx=mx;function bf(e=Jn){return function(){return b.useContext(e)}}var Ag=bf();function Lg(e=Jn){const t=e===Jn?Ag:bf(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var gx=Lg();function vx(e=Jn){const t=e===Jn?gx:Lg(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var wx=vx(),Sx=(e,t)=>e===t;function xx(e=Jn){const t=e===Jn?Ag:bf(e),n=(r,i={})=>{const{equalityFn:l=Sx}=typeof i=="function"?{equalityFn:i}:i,o=t(),{store:s,subscription:u,getServerState:a}=o;b.useRef(!0);const c=b.useCallback({[r.name](d){return r(d)}}[r.name],[r]),f=ix.useSyncExternalStoreWithSelector(u.addNestedSub,s.getState,a||s.getState,c,l);return b.useDebugValue(f),f};return Object.assign(n,{withTypes:()=>n}),n}var kx=xx();function Ex(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Cx=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Px=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_x={};function Th(e,t){return(_x.jsx?Px:Cx).test(e)}const Tx=/[ \t\n\f\r]/g;function Rx(e){return typeof e=="object"?e.type==="text"?Rh(e.value):!1:Rh(e)}function Rh(e){return e.replace(Tx,"")===""}class Xl{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Xl.prototype.normal={};Xl.prototype.property={};Xl.prototype.space=void 0;function Dg(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Xl(n,r,t)}function Xa(e){return e.toLowerCase()}class ut{constructor(t,n){this.attribute=n,this.property=t}}ut.prototype.attribute="";ut.prototype.booleanish=!1;ut.prototype.boolean=!1;ut.prototype.commaOrSpaceSeparated=!1;ut.prototype.commaSeparated=!1;ut.prototype.defined=!1;ut.prototype.mustUseProperty=!1;ut.prototype.number=!1;ut.prototype.overloadedBoolean=!1;ut.prototype.property="";ut.prototype.spaceSeparated=!1;ut.prototype.space=void 0;let Ox=0;const W=Dr(),Pe=Dr(),Fg=Dr(),N=Dr(),ce=Dr(),li=Dr(),ct=Dr();function Dr(){return 2**++Ox}const Ja=Object.freeze(Object.defineProperty({__proto__:null,boolean:W,booleanish:Pe,commaOrSpaceSeparated:ct,commaSeparated:li,number:N,overloadedBoolean:Fg,spaceSeparated:ce},Symbol.toStringTag,{value:"Module"})),Du=Object.keys(Ja);class If extends ut{constructor(t,n,r,i){let l=-1;if(super(t,n),Oh(this,"space",i),typeof r=="number")for(;++l4&&n.slice(0,4)==="data"&&Lx.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(bh,zx);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!bh.test(l)){let o=l.replace(Ax,Fx);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=If}return new i(r,t)}function Fx(e){return"-"+e.toLowerCase()}function zx(e){return e.charAt(1).toUpperCase()}const Mx=Dg([zg,bx,Ug,Bg,Hg],"html"),Nf=Dg([zg,Ix,Ug,Bg,Hg],"svg");function jx(e){return e.join(" ").trim()}var Af={},Ih=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ux=/\n/g,Bx=/^\s*/,Hx=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,$x=/^:\s*/,Vx=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Qx=/^[;\s]*/,qx=/^\s+|\s+$/g,Wx=` +`,Nh="/",Ah="*",or="",Kx="comment",Gx="declaration",Xx=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(g){var v=g.match(Ux);v&&(n+=v.length);var S=g.lastIndexOf(Wx);r=~S?g.length-S:r+g.length}function l(){var g={line:n,column:r};return function(v){return v.position=new o(g),a(),v}}function o(g){this.start=g,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(g){var v=new Error(t.source+":"+n+":"+r+": "+g);if(v.reason=g,v.filename=t.source,v.line=n,v.column=r,v.source=e,!t.silent)throw v}function u(g){var v=g.exec(e);if(v){var S=v[0];return i(S),e=e.slice(S.length),v}}function a(){u(Bx)}function c(g){var v;for(g=g||[];v=f();)v!==!1&&g.push(v);return g}function f(){var g=l();if(!(Nh!=e.charAt(0)||Ah!=e.charAt(1))){for(var v=2;or!=e.charAt(v)&&(Ah!=e.charAt(v)||Nh!=e.charAt(v+1));)++v;if(v+=2,or===e.charAt(v-1))return s("End of comment missing");var S=e.slice(2,v-2);return r+=2,i(S),e=e.slice(v),r+=2,g({type:Kx,comment:S})}}function d(){var g=l(),v=u(Hx);if(v){if(f(),!u($x))return s("property missing ':'");var S=u(Vx),p=g({type:Gx,property:Lh(v[0].replace(Ih,or)),value:S?Lh(S[0].replace(Ih,or)):or});return u(Qx),p}}function h(){var g=[];c(g);for(var v;v=d();)v!==!1&&(g.push(v),c(g));return g}return a(),h()};function Lh(e){return e?e.replace(qx,or):or}var Jx=$o&&$o.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Af,"__esModule",{value:!0});Af.default=Zx;var Yx=Jx(Xx);function Zx(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,Yx.default)(e),i=typeof t=="function";return r.forEach(function(l){if(l.type==="declaration"){var o=l.property,s=l.value;i?t(o,s,l):s&&(n=n||{},n[o]=s)}}),n}var Vs={};Object.defineProperty(Vs,"__esModule",{value:!0});Vs.camelCase=void 0;var ek=/^--[a-zA-Z0-9_-]+$/,tk=/-([a-z])/g,nk=/^[^-]+$/,rk=/^-(webkit|moz|ms|o|khtml)-/,ik=/^-(ms)-/,lk=function(e){return!e||nk.test(e)||ek.test(e)},ok=function(e,t){return t.toUpperCase()},Dh=function(e,t){return"".concat(t,"-")},sk=function(e,t){return t===void 0&&(t={}),lk(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(ik,Dh):e=e.replace(rk,Dh),e.replace(tk,ok))};Vs.camelCase=sk;var uk=$o&&$o.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},ak=uk(Af),ck=Vs;function Ya(e,t){var n={};return!e||typeof e!="string"||(0,ak.default)(e,function(r,i){r&&i&&(n[(0,ck.camelCase)(r,t)]=i)}),n}Ya.default=Ya;var fk=Ya;const dk=Nc(fk),$g=Vg("end"),Lf=Vg("start");function Vg(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function hk(e){const t=Lf(e),n=$g(e);if(t&&n)return{start:t,end:n}}function hl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Fh(e.position):"start"in e||"end"in e?Fh(e):"line"in e||"column"in e?Za(e):""}function Za(e){return zh(e&&e.line)+":"+zh(e&&e.column)}function Fh(e){return Za(e&&e.start)+"-"+Za(e&&e.end)}function zh(e){return e&&typeof e=="number"?e:1}class Ve extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",l={},o=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?i=t:!l.cause&&t&&(o=!0,i=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?l.ruleId=r:(l.source=r.slice(0,u),l.ruleId=r.slice(u+1))}if(!l.place&&l.ancestors&&l.ancestors){const u=l.ancestors[l.ancestors.length-1];u&&(l.place=u.position)}const s=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=hl(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual,this.expected,this.note,this.url}}Ve.prototype.file="";Ve.prototype.name="";Ve.prototype.reason="";Ve.prototype.message="";Ve.prototype.stack="";Ve.prototype.column=void 0;Ve.prototype.line=void 0;Ve.prototype.ancestors=void 0;Ve.prototype.cause=void 0;Ve.prototype.fatal=void 0;Ve.prototype.place=void 0;Ve.prototype.ruleId=void 0;Ve.prototype.source=void 0;const Df={}.hasOwnProperty,pk=new Map,mk=/[A-Z]/g,yk=new Set(["table","tbody","thead","tfoot","tr"]),gk=new Set(["td","th"]),Qg="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function vk(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=_k(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Pk(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Nf:Mx,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=qg(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function qg(e,t,n){if(t.type==="element")return wk(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Sk(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return kk(e,t,n);if(t.type==="mdxjsEsm")return xk(e,t);if(t.type==="root")return Ek(e,t,n);if(t.type==="text")return Ck(e,t)}function wk(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Nf,e.schema=i),e.ancestors.push(t);const l=Kg(e,t.tagName,!1),o=Tk(e,t);let s=zf(e,t);return yk.has(t.tagName)&&(s=s.filter(function(u){return typeof u=="string"?!Rx(u):!0})),Wg(e,o,l,t),Ff(o,s),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function Sk(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Dl(e,t.position)}function xk(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Dl(e,t.position)}function kk(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Nf,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:Kg(e,t.name,!0),o=Rk(e,t),s=zf(e,t);return Wg(e,o,l,t),Ff(o,s),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function Ek(e,t,n){const r={};return Ff(r,zf(e,t)),e.create(t,e.Fragment,r,n)}function Ck(e,t){return t.value}function Wg(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Ff(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Pk(e,t,n){return r;function r(i,l,o,s){const a=Array.isArray(o.children)?n:t;return s?a(l,o,s):a(l,o)}}function _k(e,t){return n;function n(r,i,l,o){const s=Array.isArray(l.children),u=Lf(r);return t(i,l,o,s,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function Tk(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Df.call(t.properties,i)){const l=Ok(e,i,t.properties[i]);if(l){const[o,s]=l;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&gk.has(t.tagName)?r=s:n[o]=s}}if(r){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Rk(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else Dl(e,t.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,l=e.evaluater.evaluateExpression(s.expression)}else Dl(e,t.position);else l=r.value===null?!0:r.value;n[i]=l}return n}function zf(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:pk;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);l0?(tn(e,e.length,0,t),e):t}const Uh={}.hasOwnProperty;function zk(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function oi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Yt=tr(/[A-Za-z]/),ht=tr(/[\dA-Za-z]/),Uk=tr(/[#-'*+\--9=?A-Z^-~]/);function ec(e){return e!==null&&(e<32||e===127)}const tc=tr(/\d/),Bk=tr(/[\dA-Fa-f]/),Hk=tr(/[!-/:-@[-`{-~]/);function Q(e){return e!==null&&e<-2}function ot(e){return e!==null&&(e<0||e===32)}function re(e){return e===-2||e===-1||e===32}const $k=tr(new RegExp("\\p{P}|\\p{S}","u")),Vk=tr(/\s/);function tr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Di(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&l<57344){const s=e.charCodeAt(n+1);l<56320&&s>56319&&s<57344?(o=String.fromCharCode(l,s),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function de(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(u){return re(u)?(e.enter(n),s(u)):t(u)}function s(u){return re(u)&&l++o))return;const T=t.events.length;let R=T,A,F;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(A){F=t.events[R][1].end;break}A=!0}for(p(r),E=T;Ey;){const P=n[C];t.containerState=P[1],P[0].exit.call(t,e)}n.length=y}function m(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Gk(e,t,n){return de(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Hh(e){if(e===null||ot(e)||Vk(e))return 1;if($k(e))return 2}function jf(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},d={...e[n][1].start};$h(f,-u),$h(d,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},s={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},l={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},a=[],e[r][1].end.offset-e[r][1].start.offset&&(a=Pt(a,[["enter",e[r][1],t],["exit",e[r][1],t]])),a=Pt(a,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",l,t]]),a=Pt(a,jf(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),a=Pt(a,[["exit",l,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,a=Pt(a,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,tn(e,r-1,n-r+3,a),n=r+a.length-c-2;break}}for(n=-1;++n0&&re(E)?de(e,m,"linePrefix",l+1)(E):m(E)}function m(E){return E===null||Q(E)?e.check(Vh,v,C)(E):(e.enter("codeFlowValue"),y(E))}function y(E){return E===null||Q(E)?(e.exit("codeFlowValue"),m(E)):(e.consume(E),y)}function C(E){return e.exit("codeFenced"),t(E)}function P(E,T,R){let A=0;return F;function F(V){return E.enter("lineEnding"),E.consume(V),E.exit("lineEnding"),z}function z(V){return E.enter("codeFencedFence"),re(V)?de(E,U,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):U(V)}function U(V){return V===s?(E.enter("codeFencedFenceSequence"),ee(V)):R(V)}function ee(V){return V===s?(A++,E.consume(V),ee):A>=o?(E.exit("codeFencedFenceSequence"),re(V)?de(E,se,"whitespace")(V):se(V)):R(V)}function se(V){return V===null||Q(V)?(E.exit("codeFencedFence"),T(V)):R(V)}}}function sE(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const zu={name:"codeIndented",tokenize:aE},uE={partial:!0,tokenize:cE};function aE(e,t,n){const r=this;return i;function i(a){return e.enter("codeIndented"),de(e,l,"linePrefix",5)(a)}function l(a){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(a):n(a)}function o(a){return a===null?u(a):Q(a)?e.attempt(uE,o,u)(a):(e.enter("codeFlowValue"),s(a))}function s(a){return a===null||Q(a)?(e.exit("codeFlowValue"),o(a)):(e.consume(a),s)}function u(a){return e.exit("codeIndented"),t(a)}}function cE(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Q(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):de(e,l,"linePrefix",5)(o)}function l(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Q(o)?i(o):n(o)}}const fE={name:"codeText",previous:hE,resolve:dE,tokenize:pE};function dE(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Gi(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Gi(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Gi(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function tv(e,t,n,r,i,l,o,s,u){const a=u||Number.POSITIVE_INFINITY;let c=0;return f;function f(p){return p===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(p),e.exit(l),d):p===null||p===32||p===41||ec(p)?n(p):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(p))}function d(p){return p===62?(e.enter(l),e.consume(p),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===62?(e.exit("chunkString"),e.exit(s),d(p)):p===null||p===60||Q(p)?n(p):(e.consume(p),p===92?g:h)}function g(p){return p===60||p===62||p===92?(e.consume(p),h):h(p)}function v(p){return!c&&(p===null||p===41||ot(p))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(p)):c999||h===null||h===91||h===93&&!u||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(l),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):Q(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||Q(h)||s++>999?(e.exit("chunkString"),c(h)):(e.consume(h),u||(u=!re(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(e.consume(h),s++,f):f(h)}}function rv(e,t,n,r,i,l){let o;return s;function s(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,u):n(d)}function u(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(e.enter(l),a(d))}function a(d){return d===o?(e.exit(l),u(o)):d===null?n(d):Q(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),de(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||Q(d)?(e.exit("chunkString"),a(d)):(e.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(e.consume(d),c):c(d)}}function pl(e,t){let n;return r;function r(i){return Q(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):re(i)?de(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const kE={name:"definition",tokenize:CE},EE={partial:!0,tokenize:PE};function CE(e,t,n){const r=this;let i;return l;function l(h){return e.enter("definition"),o(h)}function o(h){return nv.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=oi(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),u):n(h)}function u(h){return ot(h)?pl(e,a)(h):a(h)}function a(h){return tv(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(EE,f,f)(h)}function f(h){return re(h)?de(e,d,"whitespace")(h):d(h)}function d(h){return h===null||Q(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function PE(e,t,n){return r;function r(s){return ot(s)?pl(e,i)(s):n(s)}function i(s){return rv(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function l(s){return re(s)?de(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Q(s)?t(s):n(s)}}const _E={name:"hardBreakEscape",tokenize:TE};function TE(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return Q(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const RE={name:"headingAtx",resolve:OE,tokenize:bE};function OE(e,t){let n=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},l={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},tn(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function bE(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),l(c)}function l(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||ot(c)?(e.exit("atxHeadingSequence"),s(c)):n(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||Q(c)?(e.exit("atxHeading"),t(c)):re(c)?de(e,s,"whitespace")(c):(e.enter("atxHeadingText"),a(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),s(c))}function a(c){return c===null||c===35||ot(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),a)}}const IE=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],qh=["pre","script","style","textarea"],NE={concrete:!0,name:"htmlFlow",resolveTo:DE,tokenize:FE},AE={partial:!0,tokenize:ME},LE={partial:!0,tokenize:zE};function DE(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function FE(e,t,n){const r=this;let i,l,o,s,u;return a;function a(x){return c(x)}function c(x){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(x),f}function f(x){return x===33?(e.consume(x),d):x===47?(e.consume(x),l=!0,v):x===63?(e.consume(x),i=3,r.interrupt?t:w):Yt(x)?(e.consume(x),o=String.fromCharCode(x),S):n(x)}function d(x){return x===45?(e.consume(x),i=2,h):x===91?(e.consume(x),i=5,s=0,g):Yt(x)?(e.consume(x),i=4,r.interrupt?t:w):n(x)}function h(x){return x===45?(e.consume(x),r.interrupt?t:w):n(x)}function g(x){const pe="CDATA[";return x===pe.charCodeAt(s++)?(e.consume(x),s===pe.length?r.interrupt?t:U:g):n(x)}function v(x){return Yt(x)?(e.consume(x),o=String.fromCharCode(x),S):n(x)}function S(x){if(x===null||x===47||x===62||ot(x)){const pe=x===47,ze=o.toLowerCase();return!pe&&!l&&qh.includes(ze)?(i=1,r.interrupt?t(x):U(x)):IE.includes(o.toLowerCase())?(i=6,pe?(e.consume(x),p):r.interrupt?t(x):U(x)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(x):l?m(x):y(x))}return x===45||ht(x)?(e.consume(x),o+=String.fromCharCode(x),S):n(x)}function p(x){return x===62?(e.consume(x),r.interrupt?t:U):n(x)}function m(x){return re(x)?(e.consume(x),m):F(x)}function y(x){return x===47?(e.consume(x),F):x===58||x===95||Yt(x)?(e.consume(x),C):re(x)?(e.consume(x),y):F(x)}function C(x){return x===45||x===46||x===58||x===95||ht(x)?(e.consume(x),C):P(x)}function P(x){return x===61?(e.consume(x),E):re(x)?(e.consume(x),P):y(x)}function E(x){return x===null||x===60||x===61||x===62||x===96?n(x):x===34||x===39?(e.consume(x),u=x,T):re(x)?(e.consume(x),E):R(x)}function T(x){return x===u?(e.consume(x),u=null,A):x===null||Q(x)?n(x):(e.consume(x),T)}function R(x){return x===null||x===34||x===39||x===47||x===60||x===61||x===62||x===96||ot(x)?P(x):(e.consume(x),R)}function A(x){return x===47||x===62||re(x)?y(x):n(x)}function F(x){return x===62?(e.consume(x),z):n(x)}function z(x){return x===null||Q(x)?U(x):re(x)?(e.consume(x),z):n(x)}function U(x){return x===45&&i===2?(e.consume(x),he):x===60&&i===1?(e.consume(x),ae):x===62&&i===4?(e.consume(x),X):x===63&&i===3?(e.consume(x),w):x===93&&i===5?(e.consume(x),H):Q(x)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(AE,ie,ee)(x)):x===null||Q(x)?(e.exit("htmlFlowData"),ee(x)):(e.consume(x),U)}function ee(x){return e.check(LE,se,ie)(x)}function se(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),V}function V(x){return x===null||Q(x)?ee(x):(e.enter("htmlFlowData"),U(x))}function he(x){return x===45?(e.consume(x),w):U(x)}function ae(x){return x===47?(e.consume(x),o="",L):U(x)}function L(x){if(x===62){const pe=o.toLowerCase();return qh.includes(pe)?(e.consume(x),X):U(x)}return Yt(x)&&o.length<8?(e.consume(x),o+=String.fromCharCode(x),L):U(x)}function H(x){return x===93?(e.consume(x),w):U(x)}function w(x){return x===62?(e.consume(x),X):x===45&&i===2?(e.consume(x),w):U(x)}function X(x){return x===null||Q(x)?(e.exit("htmlFlowData"),ie(x)):(e.consume(x),X)}function ie(x){return e.exit("htmlFlow"),t(x)}}function zE(e,t,n){const r=this;return i;function i(o){return Q(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):n(o)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function ME(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Qs,t,n)}}const jE={name:"htmlText",tokenize:UE};function UE(e,t,n){const r=this;let i,l,o;return s;function s(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),u}function u(w){return w===33?(e.consume(w),a):w===47?(e.consume(w),P):w===63?(e.consume(w),y):Yt(w)?(e.consume(w),R):n(w)}function a(w){return w===45?(e.consume(w),c):w===91?(e.consume(w),l=0,g):Yt(w)?(e.consume(w),m):n(w)}function c(w){return w===45?(e.consume(w),h):n(w)}function f(w){return w===null?n(w):w===45?(e.consume(w),d):Q(w)?(o=f,ae(w)):(e.consume(w),f)}function d(w){return w===45?(e.consume(w),h):f(w)}function h(w){return w===62?he(w):w===45?d(w):f(w)}function g(w){const X="CDATA[";return w===X.charCodeAt(l++)?(e.consume(w),l===X.length?v:g):n(w)}function v(w){return w===null?n(w):w===93?(e.consume(w),S):Q(w)?(o=v,ae(w)):(e.consume(w),v)}function S(w){return w===93?(e.consume(w),p):v(w)}function p(w){return w===62?he(w):w===93?(e.consume(w),p):v(w)}function m(w){return w===null||w===62?he(w):Q(w)?(o=m,ae(w)):(e.consume(w),m)}function y(w){return w===null?n(w):w===63?(e.consume(w),C):Q(w)?(o=y,ae(w)):(e.consume(w),y)}function C(w){return w===62?he(w):y(w)}function P(w){return Yt(w)?(e.consume(w),E):n(w)}function E(w){return w===45||ht(w)?(e.consume(w),E):T(w)}function T(w){return Q(w)?(o=T,ae(w)):re(w)?(e.consume(w),T):he(w)}function R(w){return w===45||ht(w)?(e.consume(w),R):w===47||w===62||ot(w)?A(w):n(w)}function A(w){return w===47?(e.consume(w),he):w===58||w===95||Yt(w)?(e.consume(w),F):Q(w)?(o=A,ae(w)):re(w)?(e.consume(w),A):he(w)}function F(w){return w===45||w===46||w===58||w===95||ht(w)?(e.consume(w),F):z(w)}function z(w){return w===61?(e.consume(w),U):Q(w)?(o=z,ae(w)):re(w)?(e.consume(w),z):A(w)}function U(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),i=w,ee):Q(w)?(o=U,ae(w)):re(w)?(e.consume(w),U):(e.consume(w),se)}function ee(w){return w===i?(e.consume(w),i=void 0,V):w===null?n(w):Q(w)?(o=ee,ae(w)):(e.consume(w),ee)}function se(w){return w===null||w===34||w===39||w===60||w===61||w===96?n(w):w===47||w===62||ot(w)?A(w):(e.consume(w),se)}function V(w){return w===47||w===62||ot(w)?A(w):n(w)}function he(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):n(w)}function ae(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),L}function L(w){return re(w)?de(e,H,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):H(w)}function H(w){return e.enter("htmlTextData"),o(w)}}const Uf={name:"labelEnd",resolveAll:VE,resolveTo:QE,tokenize:qE},BE={tokenize:WE},HE={tokenize:KE},$E={tokenize:GE};function VE(e){let t=-1;const n=[];for(;++t=3&&(a===null||Q(a))?(e.exit("thematicBreak"),t(a)):n(a)}function u(a){return a===i?(e.consume(a),r++,u):(e.exit("thematicBreakSequence"),re(a)?de(e,s,"whitespace")(a):s(a))}}const Ye={continuation:{tokenize:lC},exit:sC,name:"list",tokenize:iC},nC={partial:!0,tokenize:uC},rC={partial:!0,tokenize:oC};function iC(e,t,n){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(h){const g=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:tc(h)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(zo,n,a)(h):a(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(h)}return n(h)}function u(h){return tc(h)&&++o<10?(e.consume(h),u):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),a(h)):n(h)}function a(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Qs,r.interrupt?n:c,e.attempt(nC,d,f))}function c(h){return r.containerState.initialBlankLine=!0,l++,d(h)}function f(h){return re(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):n(h)}function d(h){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function lC(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Qs,i,l);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,de(e,t,"listItemIndent",r.containerState.size+1)(s)}function l(s){return r.containerState.furtherBlankLines||!re(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(rC,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,de(e,e.attempt(Ye,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function oC(e,t,n){const r=this;return de(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(l):n(l)}}function sC(e){e.exit(this.containerState.type)}function uC(e,t,n){const r=this;return de(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!re(l)&&o&&o[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const Wh={name:"setextUnderline",resolveTo:aC,tokenize:cC};function aC(e,t){let n=e.length,r,i,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,t]),e.splice(l+1,0,["exit",e[r][1],t]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function cC(e,t,n){const r=this;let i;return l;function l(a){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=a,o(a)):n(a)}function o(a){return e.enter("setextHeadingLineSequence"),s(a)}function s(a){return a===i?(e.consume(a),s):(e.exit("setextHeadingLineSequence"),re(a)?de(e,u,"lineSuffix")(a):u(a))}function u(a){return a===null||Q(a)?(e.exit("setextHeadingLine"),t(a)):n(a)}}const fC={tokenize:dC};function dC(e){const t=this,n=e.attempt(Qs,r,e.attempt(this.parser.constructs.flowInitial,i,de(e,e.attempt(this.parser.constructs.flow,i,e.attempt(gE,i)),"linePrefix")));return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const hC={resolveAll:lv()},pC=iv("string"),mC=iv("text");function iv(e){return{resolveAll:lv(e==="text"?yC:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],l=n.attempt(i,o,s);return o;function o(c){return a(c)?l(c):s(c)}function s(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),u}function u(c){return a(c)?(n.exit("data"),l(c)):(n.consume(c),u)}function a(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function OC(e,t){let n=-1;const r=[];let i;for(;++n0){const bt=q.tokenStack[q.tokenStack.length-1];(bt[1]||Gh).call(q,void 0,bt[0])}for(D.position={start:En(O.length>0?O[0][1].start:{line:1,column:1,offset:0}),end:En(O.length>0?O[O.length-2][1].end:{line:1,column:1,offset:0})},ue=-1;++ue1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,u);const a={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,a),e.applyData(t,a)}function qC(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function WC(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function uv(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function KC(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return uv(e,t);const i={src:Di(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)}function GC(e,t){const n={src:Di(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function XC(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function JC(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return uv(e,t);const i={href:Di(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function YC(e,t){const n={href:Di(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ZC(e,t,n){const r=e.all(t),i=n?eP(n):av(t),l={},o=[];if(typeof t.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let s=-1;for(;++s1}function tP(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Lf(t.children[1]),u=$g(t.children[t.children.length-1]);s&&u&&(o.position={start:s,end:u}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function oP(e,t,n){const r=n?n.children:void 0,l=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let u=-1;const a=[];for(;++u0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(Yh(t.slice(i),i>0,!1)),l.join("")}function Yh(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===Xh||l===Jh;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===Xh||l===Jh;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function aP(e,t){const n={type:"text",value:uP(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function cP(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const fP={blockquote:UC,break:BC,code:HC,delete:$C,emphasis:VC,footnoteReference:QC,heading:qC,html:WC,imageReference:KC,image:GC,inlineCode:XC,linkReference:JC,link:YC,listItem:ZC,list:tP,paragraph:nP,root:rP,strong:iP,table:lP,tableCell:sP,tableRow:oP,text:aP,thematicBreak:cP,toml:So,yaml:So,definition:So,footnoteDefinition:So};function So(){}const cv=-1,qs=0,ml=1,ps=2,Bf=3,Hf=4,$f=5,Vf=6,fv=7,dv=8,Zh=typeof self=="object"?self:globalThis,dP=(e,t)=>{const n=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=t[i];switch(l){case qs:case cv:return n(o,i);case ml:{const s=n([],i);for(const u of o)s.push(r(u));return s}case ps:{const s=n({},i);for(const[u,a]of o)s[r(u)]=r(a);return s}case Bf:return n(new Date(o),i);case Hf:{const{source:s,flags:u}=o;return n(new RegExp(s,u),i)}case $f:{const s=n(new Map,i);for(const[u,a]of o)s.set(r(u),r(a));return s}case Vf:{const s=n(new Set,i);for(const u of o)s.add(r(u));return s}case fv:{const{name:s,message:u}=o;return n(new Zh[s](u),i)}case dv:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:s}=new Uint8Array(o);return n(new DataView(s),o)}}return n(new Zh[l](o),i)};return r},ep=e=>dP(new Map,e)(0),Ur="",{toString:hP}={},{keys:pP}=Object,Xi=e=>{const t=typeof e;if(t!=="object"||!e)return[qs,t];const n=hP.call(e).slice(8,-1);switch(n){case"Array":return[ml,Ur];case"Object":return[ps,Ur];case"Date":return[Bf,Ur];case"RegExp":return[Hf,Ur];case"Map":return[$f,Ur];case"Set":return[Vf,Ur];case"DataView":return[ml,n]}return n.includes("Array")?[ml,n]:n.includes("Error")?[fv,n]:[ps,n]},xo=([e,t])=>e===qs&&(t==="function"||t==="symbol"),mP=(e,t,n,r)=>{const i=(o,s)=>{const u=r.push(o)-1;return n.set(s,u),u},l=o=>{if(n.has(o))return n.get(o);let[s,u]=Xi(o);switch(s){case qs:{let c=o;switch(u){case"bigint":s=dv,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);c=null;break;case"undefined":return i([cv],o)}return i([s,c],o)}case ml:{if(u){let d=o;return u==="DataView"?d=new Uint8Array(o.buffer):u==="ArrayBuffer"&&(d=new Uint8Array(o)),i([u,[...d]],o)}const c=[],f=i([s,c],o);for(const d of o)c.push(l(d));return f}case ps:{if(u)switch(u){case"BigInt":return i([u,o.toString()],o);case"Boolean":case"Number":case"String":return i([u,o.valueOf()],o)}if(t&&"toJSON"in o)return l(o.toJSON());const c=[],f=i([s,c],o);for(const d of pP(o))(e||!xo(Xi(o[d])))&&c.push([l(d),l(o[d])]);return f}case Bf:return i([s,o.toISOString()],o);case Hf:{const{source:c,flags:f}=o;return i([s,{source:c,flags:f}],o)}case $f:{const c=[],f=i([s,c],o);for(const[d,h]of o)(e||!(xo(Xi(d))||xo(Xi(h))))&&c.push([l(d),l(h)]);return f}case Vf:{const c=[],f=i([s,c],o);for(const d of o)(e||!xo(Xi(d)))&&c.push(l(d));return f}}const{message:a}=o;return i([s,{name:u,message:a}],o)};return l},tp=(e,{json:t,lossy:n}={})=>{const r=[];return mP(!(t||n),!!t,new Map,r)(e),r},ms=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ep(tp(e,t)):structuredClone(e):(e,t)=>ep(tp(e,t));function yP(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function gP(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function vP(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||yP,r=e.options.footnoteBackLabel||gP,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let u=-1;for(;++u0&&g.push({type:"text",value:" "});let m=typeof n=="string"?n:n(u,h);typeof m=="string"&&(m={type:"text",value:m}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,h),className:["data-footnote-backref"]},children:Array.isArray(m)?m:[m]})}const S=c[c.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const m=S.children[S.children.length-1];m&&m.type==="text"?m.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(...g)}else c.push(...g);const p={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(a,p),s.push(p)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...ms(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` +`}]}}const hv=function(e){if(e==null)return kP;if(typeof e=="function")return Ws(e);if(typeof e=="object")return Array.isArray(e)?wP(e):SP(e);if(typeof e=="string")return xP(e);throw new Error("Expected function, string, or object as test")};function wP(e){const t=[];let n=-1;for(;++n":""))+")"})}return d;function d(){let h=pv,g,v,S;if((!t||l(u,a,c[c.length-1]||void 0))&&(h=TP(n(u,c)),h[0]===np))return h;if("children"in u&&u.children){const p=u;if(p.children&&h[0]!==PP)for(v=(r?p.children.length:-1)+o,S=c.concat(p);v>-1&&v0&&n.push({type:"text",value:` +`}),n}function rp(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function ip(e,t){const n=OP(e,t),r=n.one(e,void 0),i=vP(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:` +`},i),l}function LP(e,t){return e&&"run"in e?async function(n,r){const i=ip(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ip(n,{file:r,...e||t})}}function lp(e){if(e)throw e}var Mo=Object.prototype.hasOwnProperty,yv=Object.prototype.toString,op=Object.defineProperty,sp=Object.getOwnPropertyDescriptor,up=function(t){return typeof Array.isArray=="function"?Array.isArray(t):yv.call(t)==="[object Array]"},ap=function(t){if(!t||yv.call(t)!=="[object Object]")return!1;var n=Mo.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Mo.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Mo.call(t,i)},cp=function(t,n){op&&n.name==="__proto__"?op(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},fp=function(t,n){if(n==="__proto__")if(Mo.call(t,n)){if(sp)return sp(t,n).value}else return;return t[n]},DP=function e(){var t,n,r,i,l,o,s=arguments[0],u=1,a=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},u=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});uo.length;let u;s&&o.push(i);try{u=e.apply(this,o)}catch(a){const c=a;if(s&&n)throw c;return i(c)}s||(u&&u.then&&typeof u.then=="function"?u.then(l,i):u instanceof Error?i(u):l(u))}function i(o,...s){n||(n=!0,t(o,...s))}function l(o){i(null,o)}}const qt={basename:MP,dirname:jP,extname:UP,join:BP,sep:"/"};function MP(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Jl(e);let n=0,r=-1,i=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else o<0&&(l=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function jP(e){if(Jl(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function UP(e){Jl(e);let t=e.length,n=-1,r=0,i=-1,l=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||n<0||l===0||l===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function BP(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function $P(e,t){let n="",r=0,i=-1,l=0,o=-1,s,u;for(;++o<=e.length;){if(o2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,l=0;continue}}else if(n.length>0){n="",r=0,i=o,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,l=0}else s===46&&l>-1?l++:l=-1}return n}function Jl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const VP={cwd:QP};function QP(){return"/"}function lc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function qP(e){if(typeof e=="string")e=new URL(e);else if(!lc(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return WP(e)}function WP(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[h,...g]=c;const v=r[d][1];ic(v)&&ic(h)&&(h=ju(!0,v,h)),r[d]=[a,h,...g]}}}}const JP=new Qf().freeze();function $u(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Vu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Qu(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function hp(e){if(!ic(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function pp(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ko(e){return YP(e)?e:new gv(e)}function YP(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function ZP(e){return typeof e=="string"||e_(e)}function e_(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const t_="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",mp=[],yp={allowDangerousHtml:!0},n_=/^(https?|ircs?|mailto|xmpp)$/i,r_=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function vv(e){const t=i_(e),n=l_(e);return o_(t.runSync(t.parse(n),n),e)}function i_(e){const t=e.rehypePlugins||mp,n=e.remarkPlugins||mp,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...yp}:yp;return JP().use(jC).use(n).use(LP,r).use(t)}function l_(e){const t=e.children||"",n=new gv;return typeof t=="string"&&(n.value=t),n}function o_(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,u=t.urlTransform||s_;for(const c of r_)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+t_+c.id,void 0);return mv(e,a),vk(e,{Fragment:B.Fragment,components:i,ignoreInvalidStyle:!0,jsx:B.jsx,jsxs:B.jsxs,passKeys:!0,passNode:!0});function a(c,f,d){if(c.type==="raw"&&d&&typeof f=="number")return o?d.children.splice(f,1):d.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let h;for(h in Fu)if(Object.hasOwn(Fu,h)&&Object.hasOwn(c.properties,h)){const g=c.properties[h],v=Fu[h];(v===null||v.includes(c.tagName))&&(c.properties[h]=u(String(g||""),h,c))}}if(c.type==="element"){let h=n?!n.includes(c.tagName):l?l.includes(c.tagName):!1;if(!h&&r&&typeof f=="number"&&(h=!r(c,f,d)),h&&d&&typeof f=="number")return s&&c.children?d.children.splice(f,1,...c.children):d.children.splice(f,1),f}}}function s_(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||n_.test(e.slice(0,t))?e:""}const u_=({content:e})=>{const[t,n]=b.useState(!1);return B.jsxs("div",{className:"spoiler",children:[B.jsx("button",{className:"spoiler-toggle",onClick:()=>n(!t),children:t?"Скрыть результаты поиска":"Показать результаты поиска"}),t&&B.jsx("div",{className:"spoiler-content",children:B.jsx(vv,{children:e})})]})},gp=({role:e,content:t,searchResults:n="",isLoading:r})=>B.jsx("div",{className:`message ${e} ${r?"loading":""}`,children:r?B.jsxs("div",{className:"loading-dots",children:[B.jsx("span",{className:"loading-dot"}),B.jsx("span",{className:"loading-dot"}),B.jsx("span",{className:"loading-dot"})]}):B.jsxs("div",{className:"message-content",children:[B.jsx(vv,{children:t}),n&&B.jsx(u_,{content:n})]})}),a_=({onSend:e,text:t,setText:n})=>{const r=i=>{i.key==="Enter"&&i.ctrlKey&&(i.preventDefault(),t.trim()&&e(t))};return B.jsx("div",{className:"input-wrapper",children:B.jsx("textarea",{value:t,onChange:i=>n(i.target.value),onKeyDown:r,placeholder:"Введите сообщение... (Ctrl+Enter для отправки)"})})};function Ae(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var c_=typeof Symbol=="function"&&Symbol.observable||"@@observable",vp=c_,qu=()=>Math.random().toString(36).substring(7).split("").join("."),f_={INIT:`@@redux/INIT${qu()}`,REPLACE:`@@redux/REPLACE${qu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${qu()}`},ys=f_;function qf(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function wv(e,t,n){if(typeof e!="function")throw new Error(Ae(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Ae(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ae(1));return n(wv)(e,t)}let r=e,i=t,l=new Map,o=l,s=0,u=!1;function a(){o===l&&(o=new Map,l.forEach((S,p)=>{o.set(p,S)}))}function c(){if(u)throw new Error(Ae(3));return i}function f(S){if(typeof S!="function")throw new Error(Ae(4));if(u)throw new Error(Ae(5));let p=!0;a();const m=s++;return o.set(m,S),function(){if(p){if(u)throw new Error(Ae(6));p=!1,a(),o.delete(m),l=null}}}function d(S){if(!qf(S))throw new Error(Ae(7));if(typeof S.type>"u")throw new Error(Ae(8));if(typeof S.type!="string")throw new Error(Ae(17));if(u)throw new Error(Ae(9));try{u=!0,i=r(i,S)}finally{u=!1}return(l=o).forEach(m=>{m()}),S}function h(S){if(typeof S!="function")throw new Error(Ae(10));r=S,d({type:ys.REPLACE})}function g(){const S=f;return{subscribe(p){if(typeof p!="object"||p===null)throw new Error(Ae(11));function m(){const C=p;C.next&&C.next(c())}return m(),{unsubscribe:S(m)}},[vp](){return this}}}return d({type:ys.INIT}),{dispatch:d,subscribe:f,getState:c,replaceReducer:h,[vp]:g}}function d_(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:ys.INIT})>"u")throw new Error(Ae(12));if(typeof n(void 0,{type:ys.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ae(13))})}function h_(e){const t=Object.keys(e),n={};for(let l=0;l"u")throw s&&s.type,new Error(Ae(14));a[f]=g,u=u||g!==h}return u=u||r.length!==Object.keys(o).length,u?a:o}}function gs(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function p_(...e){return t=>(n,r)=>{const i=t(n,r);let l=()=>{throw new Error(Ae(15))};const o={getState:i.getState,dispatch:(u,...a)=>l(u,...a)},s=e.map(u=>u(o));return l=gs(...s)(i.dispatch),{...i,dispatch:l}}}function m_(e){return qf(e)&&"type"in e&&typeof e.type=="string"}var Sv=Symbol.for("immer-nothing"),wp=Symbol.for("immer-draftable"),gt=Symbol.for("immer-state");function Mt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ri=Object.getPrototypeOf;function Rr(e){return!!e&&!!e[gt]}function wn(e){var t;return e?xv(e)||Array.isArray(e)||!!e[wp]||!!((t=e.constructor)!=null&&t[wp])||Gs(e)||Xs(e):!1}var y_=Object.prototype.constructor.toString();function xv(e){if(!e||typeof e!="object")return!1;const t=Ri(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===y_}function vs(e,t){Ks(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Ks(e){const t=e[gt];return t?t.type_:Array.isArray(e)?1:Gs(e)?2:Xs(e)?3:0}function oc(e,t){return Ks(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function kv(e,t,n){const r=Ks(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function g_(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Gs(e){return e instanceof Map}function Xs(e){return e instanceof Set}function lr(e){return e.copy_||e.base_}function sc(e,t){if(Gs(e))return new Map(e);if(Xs(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=xv(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[gt];let i=Reflect.ownKeys(r);for(let l=0;l1&&(e.set=e.add=e.clear=e.delete=v_),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Wf(r,!0))),e}function v_(){Mt(2)}function Js(e){return Object.isFrozen(e)}var w_={};function Or(e){const t=w_[e];return t||Mt(0,e),t}var Fl;function Ev(){return Fl}function S_(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Sp(e,t){t&&(Or("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function uc(e){ac(e),e.drafts_.forEach(x_),e.drafts_=null}function ac(e){e===Fl&&(Fl=e.parent_)}function xp(e){return Fl=S_(Fl,e)}function x_(e){const t=e[gt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function kp(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[gt].modified_&&(uc(t),Mt(4)),wn(e)&&(e=ws(t,e),t.parent_||Ss(t,e)),t.patches_&&Or("Patches").generateReplacementPatches_(n[gt].base_,e,t.patches_,t.inversePatches_)):e=ws(t,n,[]),uc(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Sv?e:void 0}function ws(e,t,n){if(Js(t))return t;const r=t[gt];if(!r)return vs(t,(i,l)=>Ep(e,r,t,i,l,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Ss(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let l=i,o=!1;r.type_===3&&(l=new Set(i),i.clear(),o=!0),vs(l,(s,u)=>Ep(e,r,i,s,u,n,o)),Ss(e,i,!1),n&&e.patches_&&Or("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Ep(e,t,n,r,i,l,o){if(Rr(i)){const s=l&&t&&t.type_!==3&&!oc(t.assigned_,r)?l.concat(r):void 0,u=ws(e,i,s);if(kv(n,r,u),Rr(u))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(wn(i)&&!Js(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ws(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Ss(e,i)}}function Ss(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Wf(t,n)}function k_(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Ev(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,l=Kf;n&&(i=[r],l=zl);const{revoke:o,proxy:s}=Proxy.revocable(i,l);return r.draft_=s,r.revoke_=o,s}var Kf={get(e,t){if(t===gt)return e;const n=lr(e);if(!oc(n,t))return E_(e,n,t);const r=n[t];return e.finalized_||!wn(r)?r:r===Wu(e.base_,t)?(Ku(e),e.copy_[t]=fc(r,e)):r},has(e,t){return t in lr(e)},ownKeys(e){return Reflect.ownKeys(lr(e))},set(e,t,n){const r=Cv(lr(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Wu(lr(e),t),l=i==null?void 0:i[gt];if(l&&l.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(g_(n,i)&&(n!==void 0||oc(e.base_,t)))return!0;Ku(e),cc(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Wu(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ku(e),cc(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=lr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Mt(11)},getPrototypeOf(e){return Ri(e.base_)},setPrototypeOf(){Mt(12)}},zl={};vs(Kf,(e,t)=>{zl[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});zl.deleteProperty=function(e,t){return zl.set.call(this,e,t,void 0)};zl.set=function(e,t,n){return Kf.set.call(this,e[0],t,n,e[0])};function Wu(e,t){const n=e[gt];return(n?lr(n):e)[t]}function E_(e,t,n){var i;const r=Cv(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function Cv(e,t){if(!(t in e))return;let n=Ri(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Ri(n)}}function cc(e){e.modified_||(e.modified_=!0,e.parent_&&cc(e.parent_))}function Ku(e){e.copy_||(e.copy_=sc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var C_=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const l=n;n=t;const o=this;return function(u=l,...a){return o.produce(u,c=>n.call(this,c,...a))}}typeof n!="function"&&Mt(6),r!==void 0&&typeof r!="function"&&Mt(7);let i;if(wn(t)){const l=xp(this),o=fc(t,void 0);let s=!0;try{i=n(o),s=!1}finally{s?uc(l):ac(l)}return Sp(l,r),kp(i,l)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Sv&&(i=void 0),this.autoFreeze_&&Wf(i,!0),r){const l=[],o=[];Or("Patches").generateReplacementPatches_(t,i,l,o),r(l,o)}return i}else Mt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(o,...s)=>this.produceWithPatches(o,u=>t(u,...s));let r,i;return[this.produce(t,n,(o,s)=>{r=o,i=s}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){wn(e)||Mt(8),Rr(e)&&(e=P_(e));const t=xp(this),n=fc(e,void 0);return n[gt].isManual_=!0,ac(t),n}finishDraft(e,t){const n=e&&e[gt];(!n||!n.isManual_)&&Mt(9);const{scope_:r}=n;return Sp(r,t),kp(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Or("Patches").applyPatches_;return Rr(e)?r(e,t):this.produce(e,i=>r(i,t))}};function fc(e,t){const n=Gs(e)?Or("MapSet").proxyMap_(e,t):Xs(e)?Or("MapSet").proxySet_(e,t):k_(e,t);return(t?t.scope_:Ev()).drafts_.push(n),n}function P_(e){return Rr(e)||Mt(10,e),Pv(e)}function Pv(e){if(!wn(e)||Js(e))return e;const t=e[gt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=sc(e,t.scope_.immer_.useStrictShallowCopy_)}else n=sc(e,!0);return vs(n,(r,i)=>{kv(n,r,Pv(i))}),t&&(t.finalized_=!1),n}var vt=new C_,_v=vt.produce;vt.produceWithPatches.bind(vt);vt.setAutoFreeze.bind(vt);vt.setUseStrictShallowCopy.bind(vt);vt.applyPatches.bind(vt);vt.createDraft.bind(vt);vt.finishDraft.bind(vt);function Tv(e){return({dispatch:n,getState:r})=>i=>l=>typeof l=="function"?l(n,r,e):i(l)}var __=Tv(),T_=Tv,R_=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?gs:gs.apply(null,arguments)};function Cp(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(hn(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>m_(r)&&r.type===e,n}var Rv=class nl extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,nl.prototype)}static get[Symbol.species](){return nl}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new nl(...t[0].concat(this)):new nl(...t.concat(this))}};function Pp(e){return wn(e)?_v(e,()=>{}):e}function _p(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function O_(e){return typeof e=="boolean"}var b_=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:l=!0}=t??{};let o=new Rv;return n&&(O_(n)?o.push(__):o.push(T_(n.extraArgument))),o},I_="RTK_autoBatch",Tp=e=>t=>{setTimeout(t,e)},N_=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,l=!1,o=!1;const s=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Tp(10):e.type==="callback"?e.queueNotification:Tp(e.timeout),a=()=>{o=!1,l&&(l=!1,s.forEach(c=>c()))};return Object.assign({},r,{subscribe(c){const f=()=>i&&c(),d=r.subscribe(f);return s.add(c),()=>{d(),s.delete(c)}},dispatch(c){var f;try{return i=!((f=c==null?void 0:c.meta)!=null&&f[I_]),l=!i,l&&(o||(o=!0,u(a))),r.dispatch(c)}finally{i=!0}}})},A_=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Rv(e);return r&&i.push(N_(typeof r=="object"?r:void 0)),i};function L_(e){const t=b_(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:l=void 0,enhancers:o=void 0}=e||{};let s;if(typeof n=="function")s=n;else if(qf(n))s=h_(n);else throw new Error(hn(1));let u;typeof r=="function"?u=r(t):u=t();let a=gs;i&&(a=R_({trace:!1,...typeof i=="object"&&i}));const c=p_(...u),f=A_(c);let d=typeof o=="function"?o(f):f();const h=a(...d);return wv(s,l,h)}function Ov(e){const t={},n=[];let r;const i={addCase(l,o){const s=typeof l=="string"?l:l.type;if(!s)throw new Error(hn(28));if(s in t)throw new Error(hn(29));return t[s]=o,i},addMatcher(l,o){return n.push({matcher:l,reducer:o}),i},addDefaultCase(l){return r=l,i}};return e(i),[t,n,r]}function D_(e){return typeof e=="function"}function F_(e,t){let[n,r,i]=Ov(t),l;if(D_(e))l=()=>Pp(e());else{const s=Pp(e);l=()=>s}function o(s=l(),u){let a=[n[u.type],...r.filter(({matcher:c})=>c(u)).map(({reducer:c})=>c)];return a.filter(c=>!!c).length===0&&(a=[i]),a.reduce((c,f)=>{if(f)if(Rr(c)){const h=f(c,u);return h===void 0?c:h}else{if(wn(c))return _v(c,d=>f(d,u));{const d=f(c,u);if(d===void 0){if(c===null)return c;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return c},s)}return o.getInitialState=l,o}var z_=Symbol.for("rtk-slice-createasyncthunk");function M_(e,t){return`${e}/${t}`}function j_({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[z_];return function(i){const{name:l,reducerPath:o=l}=i;if(!l)throw new Error(hn(11));const s=(typeof i.reducers=="function"?i.reducers(H_()):i.reducers)||{},u=Object.keys(s),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(y,C){const P=typeof y=="string"?y:y.type;if(!P)throw new Error(hn(12));if(P in a.sliceCaseReducersByType)throw new Error(hn(13));return a.sliceCaseReducersByType[P]=C,c},addMatcher(y,C){return a.sliceMatchers.push({matcher:y,reducer:C}),c},exposeAction(y,C){return a.actionCreators[y]=C,c},exposeCaseReducer(y,C){return a.sliceCaseReducersByName[y]=C,c}};u.forEach(y=>{const C=s[y],P={reducerName:y,type:M_(l,y),createNotation:typeof i.reducers=="function"};V_(C)?q_(P,C,c,t):$_(P,C,c)});function f(){const[y={},C=[],P=void 0]=typeof i.extraReducers=="function"?Ov(i.extraReducers):[i.extraReducers],E={...y,...a.sliceCaseReducersByType};return F_(i.initialState,T=>{for(let R in E)T.addCase(R,E[R]);for(let R of a.sliceMatchers)T.addMatcher(R.matcher,R.reducer);for(let R of C)T.addMatcher(R.matcher,R.reducer);P&&T.addDefaultCase(P)})}const d=y=>y,h=new Map;let g;function v(y,C){return g||(g=f()),g(y,C)}function S(){return g||(g=f()),g.getInitialState()}function p(y,C=!1){function P(T){let R=T[y];return typeof R>"u"&&C&&(R=S()),R}function E(T=d){const R=_p(h,C,()=>new WeakMap);return _p(R,T,()=>{const A={};for(const[F,z]of Object.entries(i.selectors??{}))A[F]=U_(z,T,S,C);return A})}return{reducerPath:y,getSelectors:E,get selectors(){return E(P)},selectSlice:P}}const m={name:l,reducer:v,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:S,...p(o),injectInto(y,{reducerPath:C,...P}={}){const E=C??o;return y.inject({reducerPath:E,reducer:v},P),{...m,...p(E,!0)}}};return m}}function U_(e,t,n,r){function i(l,...o){let s=t(l);return typeof s>"u"&&r&&(s=n()),e(s,...o)}return i.unwrapped=e,i}var B_=j_();function H_(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function $_({type:e,reducerName:t,createNotation:n},r,i){let l,o;if("reducer"in r){if(n&&!Q_(r))throw new Error(hn(17));l=r.reducer,o=r.prepare}else l=r;i.addCase(e,l).exposeCaseReducer(t,l).exposeAction(t,o?Cp(e,o):Cp(e))}function V_(e){return e._reducerDefinitionType==="asyncThunk"}function Q_(e){return e._reducerDefinitionType==="reducerWithPrepare"}function q_({type:e,reducerName:t},n,r,i){if(!i)throw new Error(hn(18));const{payloadCreator:l,fulfilled:o,pending:s,rejected:u,settled:a,options:c}=n,f=i(e,l,c);r.exposeAction(t,f),o&&r.addCase(f.fulfilled,o),s&&r.addCase(f.pending,s),u&&r.addCase(f.rejected,u),a&&r.addMatcher(f.settled,a),r.exposeCaseReducer(t,{fulfilled:o||Eo,pending:s||Eo,rejected:u||Eo,settled:a||Eo})}function Eo(){}function hn(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const W_=()=>{const e=localStorage.getItem("chatHistory");if(e)try{return JSON.parse(e)}catch(t){return console.error("Failed to parse chat history from localStorage:",t),[]}return[]},K_={history:W_()},bv=B_({name:"chat",initialState:K_,reducers:{addMessage:(e,t)=>{e.history.push(t.payload),localStorage.setItem("chatHistory",JSON.stringify(e.history))},removeLastMessage:e=>{e.history.pop(),localStorage.setItem("chatHistory",JSON.stringify(e.history))},clearHistory:e=>{e.history=[],localStorage.setItem("chatHistory",JSON.stringify([]))},setHistory:(e,t)=>{e.history=t.payload,localStorage.setItem("chatHistory",JSON.stringify(e.history))}}}),{addMessage:G_,clearHistory:X_,setHistory:Gu,removeLastMessage:J_}=bv.actions,Y_=bv.reducer;var Fi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},br=typeof window>"u"||"Deno"in globalThis;function kt(){}function Z_(e,t){return typeof e=="function"?e(t):e}function dc(e){return typeof e=="number"&&e>=0&&e!==1/0}function Iv(e,t){return Math.max(e+(t||0)-Date.now(),0)}function si(e,t){return typeof e=="function"?e(t):e}function zt(e,t){return typeof e=="function"?e(t):e}function Rp(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:l,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Gf(o,t.options))return!1}else if(!Ml(t.queryKey,o))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||l&&!l(t))}function Op(e,t){const{exact:n,status:r,predicate:i,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(Ir(t.options.mutationKey)!==Ir(l))return!1}else if(!Ml(t.options.mutationKey,l))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Gf(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ir)(e)}function Ir(e){return JSON.stringify(e,(t,n)=>hc(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Ml(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Ml(e[n],t[n])):!1}function Nv(e,t){if(e===t)return e;const n=bp(e)&&bp(t);if(n||hc(e)&&hc(t)){const r=n?e:Object.keys(e),i=r.length,l=n?t:Object.keys(t),o=l.length,s=n?[]:{};let u=0;for(let a=0;a{setTimeout(t,e)})}function pc(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Nv(e,t):t}function tT(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function nT(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Xf=Symbol();function Av(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Xf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var fr,On,ui,Xp,rT=(Xp=class extends Fi{constructor(){super();$(this,fr);$(this,On);$(this,ui);M(this,ui,t=>{if(!br&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){k(this,On)||this.setEventListener(k(this,ui))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,On))==null||t.call(this),M(this,On,void 0))}setEventListener(t){var n;M(this,ui,t),(n=k(this,On))==null||n.call(this),M(this,On,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){k(this,fr)!==t&&(M(this,fr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof k(this,fr)=="boolean"?k(this,fr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},fr=new WeakMap,On=new WeakMap,ui=new WeakMap,Xp),Jf=new rT,ai,bn,ci,Jp,iT=(Jp=class extends Fi{constructor(){super();$(this,ai,!0);$(this,bn);$(this,ci);M(this,ci,t=>{if(!br&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){k(this,bn)||this.setEventListener(k(this,ci))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,bn))==null||t.call(this),M(this,bn,void 0))}setEventListener(t){var n;M(this,ci,t),(n=k(this,bn))==null||n.call(this),M(this,bn,t(this.setOnline.bind(this)))}setOnline(t){k(this,ai)!==t&&(M(this,ai,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return k(this,ai)}},ai=new WeakMap,bn=new WeakMap,ci=new WeakMap,Jp),ks=new iT;function mc(){let e,t;const n=new Promise((i,l)=>{e=i,t=l});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function lT(e){return Math.min(1e3*2**e,3e4)}function Lv(e){return(e??"online")==="online"?ks.isOnline():!0}var Dv=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Xu(e){return e instanceof Dv}function Fv(e){let t=!1,n=0,r=!1,i;const l=mc(),o=v=>{var S;r||(d(new Dv(v)),(S=e.abort)==null||S.call(e))},s=()=>{t=!0},u=()=>{t=!1},a=()=>Jf.isFocused()&&(e.networkMode==="always"||ks.isOnline())&&e.canRun(),c=()=>Lv(e.networkMode)&&e.canRun(),f=v=>{var S;r||(r=!0,(S=e.onSuccess)==null||S.call(e,v),i==null||i(),l.resolve(v))},d=v=>{var S;r||(r=!0,(S=e.onError)==null||S.call(e,v),i==null||i(),l.reject(v))},h=()=>new Promise(v=>{var S;i=p=>{(r||a())&&v(p)},(S=e.onPause)==null||S.call(e)}).then(()=>{var v;i=void 0,r||(v=e.onContinue)==null||v.call(e)}),g=()=>{if(r)return;let v;const S=n===0?e.initialPromise:void 0;try{v=S??e.fn()}catch(p){v=Promise.reject(p)}Promise.resolve(v).then(f).catch(p=>{var E;if(r)return;const m=e.retry??(br?0:3),y=e.retryDelay??lT,C=typeof y=="function"?y(n,p):y,P=m===!0||typeof m=="number"&&na()?void 0:h()).then(()=>{t?d(p):g()})})};return{promise:l,cancel:o,continue:()=>(i==null||i(),l),cancelRetry:s,continueRetry:u,canStart:c,start:()=>(c()?g():h().then(g),l)}}function oT(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=s=>setTimeout(s,0);const l=s=>{t?e.push(s):i(()=>{n(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{r(()=>{s.forEach(u=>{n(u)})})})};return{batch:s=>{let u;t++;try{u=s()}finally{t--,t||o()}return u},batchCalls:s=>(...u)=>{l(()=>{s(...u)})},schedule:l,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var Re=oT(),dr,Yp,zv=(Yp=class{constructor(){$(this,dr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),dc(this.gcTime)&&M(this,dr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(br?1/0:5*60*1e3))}clearGcTimeout(){k(this,dr)&&(clearTimeout(k(this,dr)),M(this,dr,void 0))}},dr=new WeakMap,Yp),fi,di,xt,hr,Ue,Ul,pr,At,ln,Zp,sT=(Zp=class extends zv{constructor(t){super();$(this,At);$(this,fi);$(this,di);$(this,xt);$(this,hr);$(this,Ue);$(this,Ul);$(this,pr);M(this,pr,!1),M(this,Ul,t.defaultOptions),this.setOptions(t.options),this.observers=[],M(this,hr,t.client),M(this,xt,k(this,hr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,M(this,fi,uT(this.options)),this.state=t.state??k(this,fi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=k(this,Ue))==null?void 0:t.promise}setOptions(t){this.options={...k(this,Ul),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,xt).remove(this)}setData(t,n){const r=pc(this.state.data,t,this.options);return G(this,At,ln).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){G(this,At,ln).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=k(this,Ue))==null?void 0:r.promise;return(i=k(this,Ue))==null||i.cancel(t),n?n.then(kt).catch(kt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,fi))}isActive(){return this.observers.some(t=>zt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Xf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Iv(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,Ue))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,Ue))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),k(this,xt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(k(this,Ue)&&(k(this,pr)?k(this,Ue).cancel({revert:!0}):k(this,Ue).cancelRetry()),this.scheduleGc()),k(this,xt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||G(this,At,ln).call(this,{type:"invalidate"})}fetch(t,n){var u,a,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(k(this,Ue))return k(this,Ue).continueRetry(),k(this,Ue).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(d=>d.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(M(this,pr,!0),r.signal)})},l=()=>{const f=Av(this.options,n),d={client:k(this,hr),queryKey:this.queryKey,meta:this.meta};return i(d),M(this,pr,!1),this.options.persister?this.options.persister(f,d,this):f(d)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:k(this,hr),state:this.state,fetchFn:l};i(o),(u=this.options.behavior)==null||u.onFetch(o,this),M(this,di,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((a=o.fetchOptions)==null?void 0:a.meta))&&G(this,At,ln).call(this,{type:"fetch",meta:(c=o.fetchOptions)==null?void 0:c.meta});const s=f=>{var d,h,g,v;Xu(f)&&f.silent||G(this,At,ln).call(this,{type:"error",error:f}),Xu(f)||((h=(d=k(this,xt).config).onError)==null||h.call(d,f,this),(v=(g=k(this,xt).config).onSettled)==null||v.call(g,this.state.data,f,this)),this.scheduleGc()};return M(this,Ue,Fv({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var d,h,g,v;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(S){s(S);return}(h=(d=k(this,xt).config).onSuccess)==null||h.call(d,f,this),(v=(g=k(this,xt).config).onSettled)==null||v.call(g,f,this.state.error,this),this.scheduleGc()},onError:s,onFail:(f,d)=>{G(this,At,ln).call(this,{type:"failed",failureCount:f,error:d})},onPause:()=>{G(this,At,ln).call(this,{type:"pause"})},onContinue:()=>{G(this,At,ln).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),k(this,Ue).start()}},fi=new WeakMap,di=new WeakMap,xt=new WeakMap,hr=new WeakMap,Ue=new WeakMap,Ul=new WeakMap,pr=new WeakMap,At=new WeakSet,ln=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Mv(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Xu(i)&&i.revert&&k(this,di)?{...k(this,di),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Re.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),k(this,xt).notify({query:this,type:"updated",action:t})})},Zp);function Mv(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Lv(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function uT(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Wt,em,aT=(em=class extends Fi{constructor(t={}){super();$(this,Wt);this.config=t,M(this,Wt,new Map)}build(t,n,r){const i=n.queryKey,l=n.queryHash??Gf(i,n);let o=this.get(l);return o||(o=new sT({client:t,queryKey:i,queryHash:l,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){k(this,Wt).has(t.queryHash)||(k(this,Wt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=k(this,Wt).get(t.queryHash);n&&(t.destroy(),n===t&&k(this,Wt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Re.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,Wt).get(t)}getAll(){return[...k(this,Wt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Rp(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Rp(t,r)):n}notify(t){Re.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Re.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Re.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Wt=new WeakMap,em),Kt,Qe,mr,Gt,Cn,tm,cT=(tm=class extends zv{constructor(t){super();$(this,Gt);$(this,Kt);$(this,Qe);$(this,mr);this.mutationId=t.mutationId,M(this,Qe,t.mutationCache),M(this,Kt,[]),this.state=t.state||jv(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){k(this,Kt).includes(t)||(k(this,Kt).push(t),this.clearGcTimeout(),k(this,Qe).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){M(this,Kt,k(this,Kt).filter(n=>n!==t)),this.scheduleGc(),k(this,Qe).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,Kt).length||(this.state.status==="pending"?this.scheduleGc():k(this,Qe).remove(this))}continue(){var t;return((t=k(this,mr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,l,o,s,u,a,c,f,d,h,g,v,S,p,m,y,C,P,E,T;M(this,mr,Fv({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,A)=>{G(this,Gt,Cn).call(this,{type:"failed",failureCount:R,error:A})},onPause:()=>{G(this,Gt,Cn).call(this,{type:"pause"})},onContinue:()=>{G(this,Gt,Cn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,Qe).canRun(this)}));const n=this.state.status==="pending",r=!k(this,mr).canStart();try{if(!n){G(this,Gt,Cn).call(this,{type:"pending",variables:t,isPaused:r}),await((l=(i=k(this,Qe).config).onMutate)==null?void 0:l.call(i,t,this));const A=await((s=(o=this.options).onMutate)==null?void 0:s.call(o,t));A!==this.state.context&&G(this,Gt,Cn).call(this,{type:"pending",context:A,variables:t,isPaused:r})}const R=await k(this,mr).start();return await((a=(u=k(this,Qe).config).onSuccess)==null?void 0:a.call(u,R,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,R,t,this.state.context)),await((h=(d=k(this,Qe).config).onSettled)==null?void 0:h.call(d,R,null,this.state.variables,this.state.context,this)),await((v=(g=this.options).onSettled)==null?void 0:v.call(g,R,null,t,this.state.context)),G(this,Gt,Cn).call(this,{type:"success",data:R}),R}catch(R){try{throw await((p=(S=k(this,Qe).config).onError)==null?void 0:p.call(S,R,t,this.state.context,this)),await((y=(m=this.options).onError)==null?void 0:y.call(m,R,t,this.state.context)),await((P=(C=k(this,Qe).config).onSettled)==null?void 0:P.call(C,void 0,R,this.state.variables,this.state.context,this)),await((T=(E=this.options).onSettled)==null?void 0:T.call(E,void 0,R,t,this.state.context)),R}finally{G(this,Gt,Cn).call(this,{type:"error",error:R})}}finally{k(this,Qe).runNext(this)}}},Kt=new WeakMap,Qe=new WeakMap,mr=new WeakMap,Gt=new WeakSet,Cn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Re.batch(()=>{k(this,Kt).forEach(r=>{r.onMutationUpdate(t)}),k(this,Qe).notify({mutation:this,type:"updated",action:t})})},tm);function jv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var un,Lt,Bl,nm,fT=(nm=class extends Fi{constructor(t={}){super();$(this,un);$(this,Lt);$(this,Bl);this.config=t,M(this,un,new Set),M(this,Lt,new Map),M(this,Bl,0)}build(t,n,r){const i=new cT({mutationCache:this,mutationId:++to(this,Bl)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){k(this,un).add(t);const n=Co(t);if(typeof n=="string"){const r=k(this,Lt).get(n);r?r.push(t):k(this,Lt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(k(this,un).delete(t)){const n=Co(t);if(typeof n=="string"){const r=k(this,Lt).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&k(this,Lt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Co(t);if(typeof n=="string"){const r=k(this,Lt).get(n),i=r==null?void 0:r.find(l=>l.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=Co(t);if(typeof n=="string"){const i=(r=k(this,Lt).get(n))==null?void 0:r.find(l=>l!==t&&l.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Re.batch(()=>{k(this,un).forEach(t=>{this.notify({type:"removed",mutation:t})}),k(this,un).clear(),k(this,Lt).clear()})}getAll(){return Array.from(k(this,un))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Op(n,r))}findAll(t={}){return this.getAll().filter(n=>Op(t,n))}notify(t){Re.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Re.batch(()=>Promise.all(t.map(n=>n.continue().catch(kt))))}},un=new WeakMap,Lt=new WeakMap,Bl=new WeakMap,nm);function Co(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Np(e){return{onFetch:(t,n)=>{var c,f,d,h,g;const r=t.options,i=(d=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:d.direction,l=((h=t.state.data)==null?void 0:h.pages)||[],o=((g=t.state.data)==null?void 0:g.pageParams)||[];let s={pages:[],pageParams:[]},u=0;const a=async()=>{let v=!1;const S=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},p=Av(t.options,t.fetchOptions),m=async(y,C,P)=>{if(v)return Promise.reject();if(C==null&&y.pages.length)return Promise.resolve(y);const E={client:t.client,queryKey:t.queryKey,pageParam:C,direction:P?"backward":"forward",meta:t.options.meta};S(E);const T=await p(E),{maxPages:R}=t.options,A=P?nT:tT;return{pages:A(y.pages,T,R),pageParams:A(y.pageParams,C,R)}};if(i&&l.length){const y=i==="backward",C=y?dT:Ap,P={pages:l,pageParams:o},E=C(r,P);s=await m(P,E,y)}else{const y=e??l.length;do{const C=u===0?o[0]??r.initialPageParam:Ap(r,s);if(u>0&&C==null)break;s=await m(s,C),u++}while(u{var v,S;return(S=(v=t.options).persister)==null?void 0:S.call(v,a,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=a}}}function Ap(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function dT(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var ke,In,Nn,hi,pi,An,mi,yi,rm,hT=(rm=class{constructor(e={}){$(this,ke);$(this,In);$(this,Nn);$(this,hi);$(this,pi);$(this,An);$(this,mi);$(this,yi);M(this,ke,e.queryCache||new aT),M(this,In,e.mutationCache||new fT),M(this,Nn,e.defaultOptions||{}),M(this,hi,new Map),M(this,pi,new Map),M(this,An,0)}mount(){to(this,An)._++,k(this,An)===1&&(M(this,mi,Jf.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,ke).onFocus())})),M(this,yi,ks.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,ke).onOnline())})))}unmount(){var e,t;to(this,An)._--,k(this,An)===0&&((e=k(this,mi))==null||e.call(this),M(this,mi,void 0),(t=k(this,yi))==null||t.call(this),M(this,yi,void 0))}isFetching(e){return k(this,ke).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return k(this,In).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,ke).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=k(this,ke).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(si(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return k(this,ke).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=k(this,ke).get(r.queryHash),l=i==null?void 0:i.state.data,o=Z_(t,l);if(o!==void 0)return k(this,ke).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Re.batch(()=>k(this,ke).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,ke).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=k(this,ke);Re.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=k(this,ke);return Re.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Re.batch(()=>k(this,ke).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(kt).catch(kt)}invalidateQueries(e,t={}){return Re.batch(()=>(k(this,ke).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Re.batch(()=>k(this,ke).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let l=i.fetch(void 0,n);return n.throwOnError||(l=l.catch(kt)),i.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(r).then(kt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=k(this,ke).build(this,t);return n.isStaleByTime(si(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(kt).catch(kt)}fetchInfiniteQuery(e){return e.behavior=Np(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(kt).catch(kt)}ensureInfiniteQueryData(e){return e.behavior=Np(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ks.isOnline()?k(this,In).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,ke)}getMutationCache(){return k(this,In)}getDefaultOptions(){return k(this,Nn)}setDefaultOptions(e){M(this,Nn,e)}setQueryDefaults(e,t){k(this,hi).set(Ir(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...k(this,hi).values()],n={};return t.forEach(r=>{Ml(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){k(this,pi).set(Ir(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...k(this,pi).values()],n={};return t.forEach(r=>{Ml(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...k(this,Nn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Gf(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Xf&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...k(this,Nn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){k(this,ke).clear(),k(this,In).clear()}},ke=new WeakMap,In=new WeakMap,Nn=new WeakMap,hi=new WeakMap,pi=new WeakMap,An=new WeakMap,mi=new WeakMap,yi=new WeakMap,rm),Ze,Z,Hl,qe,yr,gi,Ln,Xt,$l,vi,wi,gr,vr,Dn,Si,le,rl,yc,gc,vc,wc,Sc,xc,kc,Uv,im,pT=(im=class extends Fi{constructor(t,n){super();$(this,le);$(this,Ze);$(this,Z);$(this,Hl);$(this,qe);$(this,yr);$(this,gi);$(this,Ln);$(this,Xt);$(this,$l);$(this,vi);$(this,wi);$(this,gr);$(this,vr);$(this,Dn);$(this,Si,new Set);this.options=n,M(this,Ze,t),M(this,Xt,null),M(this,Ln,mc()),this.options.experimental_prefetchInRender||k(this,Ln).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(k(this,Z).addObserver(this),Lp(k(this,Z),this.options)?G(this,le,rl).call(this):this.updateResult(),G(this,le,wc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ec(k(this,Z),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ec(k(this,Z),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,G(this,le,Sc).call(this),G(this,le,xc).call(this),k(this,Z).removeObserver(this)}setOptions(t,n){const r=this.options,i=k(this,Z);if(this.options=k(this,Ze).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof zt(this.options.enabled,k(this,Z))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");G(this,le,kc).call(this),k(this,Z).setOptions(this.options),r._defaulted&&!xs(this.options,r)&&k(this,Ze).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,Z),observer:this});const l=this.hasListeners();l&&Dp(k(this,Z),i,this.options,r)&&G(this,le,rl).call(this),this.updateResult(n),l&&(k(this,Z)!==i||zt(this.options.enabled,k(this,Z))!==zt(r.enabled,k(this,Z))||si(this.options.staleTime,k(this,Z))!==si(r.staleTime,k(this,Z)))&&G(this,le,yc).call(this);const o=G(this,le,gc).call(this);l&&(k(this,Z)!==i||zt(this.options.enabled,k(this,Z))!==zt(r.enabled,k(this,Z))||o!==k(this,Dn))&&G(this,le,vc).call(this,o)}getOptimisticResult(t){const n=k(this,Ze).getQueryCache().build(k(this,Ze),t),r=this.createResult(n,t);return yT(this,r)&&(M(this,qe,r),M(this,gi,this.options),M(this,yr,k(this,Z).state)),r}getCurrentResult(){return k(this,qe)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){k(this,Si).add(t)}getCurrentQuery(){return k(this,Z)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=k(this,Ze).defaultQueryOptions(t),r=k(this,Ze).getQueryCache().build(k(this,Ze),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return G(this,le,rl).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,qe)))}createResult(t,n){var R;const r=k(this,Z),i=this.options,l=k(this,qe),o=k(this,yr),s=k(this,gi),a=t!==r?t.state:k(this,Hl),{state:c}=t;let f={...c},d=!1,h;if(n._optimisticResults){const A=this.hasListeners(),F=!A&&Lp(t,n),z=A&&Dp(t,r,n,i);(F||z)&&(f={...f,...Mv(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:g,errorUpdatedAt:v,status:S}=f;if(n.select&&f.data!==void 0)if(l&&f.data===(o==null?void 0:o.data)&&n.select===k(this,$l))h=k(this,vi);else try{M(this,$l,n.select),h=n.select(f.data),h=pc(l==null?void 0:l.data,h,n),M(this,vi,h),M(this,Xt,null)}catch(A){M(this,Xt,A)}else h=f.data;if(n.placeholderData!==void 0&&h===void 0&&S==="pending"){let A;if(l!=null&&l.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))A=l.data;else if(A=typeof n.placeholderData=="function"?n.placeholderData((R=k(this,wi))==null?void 0:R.state.data,k(this,wi)):n.placeholderData,n.select&&A!==void 0)try{A=n.select(A),M(this,Xt,null)}catch(F){M(this,Xt,F)}A!==void 0&&(S="success",h=pc(l==null?void 0:l.data,A,n),d=!0)}k(this,Xt)&&(g=k(this,Xt),h=k(this,vi),v=Date.now(),S="error");const p=f.fetchStatus==="fetching",m=S==="pending",y=S==="error",C=m&&p,P=h!==void 0,T={status:S,fetchStatus:f.fetchStatus,isPending:m,isSuccess:S==="success",isError:y,isInitialLoading:C,isLoading:C,data:h,dataUpdatedAt:f.dataUpdatedAt,error:g,errorUpdatedAt:v,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>a.dataUpdateCount||f.errorUpdateCount>a.errorUpdateCount,isFetching:p,isRefetching:p&&!m,isLoadingError:y&&!P,isPaused:f.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:y&&P,isStale:Yf(t,n),refetch:this.refetch,promise:k(this,Ln)};if(this.options.experimental_prefetchInRender){const A=U=>{T.status==="error"?U.reject(T.error):T.data!==void 0&&U.resolve(T.data)},F=()=>{const U=M(this,Ln,T.promise=mc());A(U)},z=k(this,Ln);switch(z.status){case"pending":t.queryHash===r.queryHash&&A(z);break;case"fulfilled":(T.status==="error"||T.data!==z.value)&&F();break;case"rejected":(T.status!=="error"||T.error!==z.reason)&&F();break}}return T}updateResult(t){const n=k(this,qe),r=this.createResult(k(this,Z),this.options);if(M(this,yr,k(this,Z).state),M(this,gi,this.options),k(this,yr).data!==void 0&&M(this,wi,k(this,Z)),xs(r,n))return;M(this,qe,r);const i={},l=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!k(this,Si).size)return!0;const u=new Set(s??k(this,Si));return this.options.throwOnError&&u.add("error"),Object.keys(k(this,qe)).some(a=>{const c=a;return k(this,qe)[c]!==n[c]&&u.has(c)})};(t==null?void 0:t.listeners)!==!1&&l()&&(i.listeners=!0),G(this,le,Uv).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&G(this,le,wc).call(this)}},Ze=new WeakMap,Z=new WeakMap,Hl=new WeakMap,qe=new WeakMap,yr=new WeakMap,gi=new WeakMap,Ln=new WeakMap,Xt=new WeakMap,$l=new WeakMap,vi=new WeakMap,wi=new WeakMap,gr=new WeakMap,vr=new WeakMap,Dn=new WeakMap,Si=new WeakMap,le=new WeakSet,rl=function(t){G(this,le,kc).call(this);let n=k(this,Z).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(kt)),n},yc=function(){G(this,le,Sc).call(this);const t=si(this.options.staleTime,k(this,Z));if(br||k(this,qe).isStale||!dc(t))return;const r=Iv(k(this,qe).dataUpdatedAt,t)+1;M(this,gr,setTimeout(()=>{k(this,qe).isStale||this.updateResult()},r))},gc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,Z)):this.options.refetchInterval)??!1},vc=function(t){G(this,le,xc).call(this),M(this,Dn,t),!(br||zt(this.options.enabled,k(this,Z))===!1||!dc(k(this,Dn))||k(this,Dn)===0)&&M(this,vr,setInterval(()=>{(this.options.refetchIntervalInBackground||Jf.isFocused())&&G(this,le,rl).call(this)},k(this,Dn)))},wc=function(){G(this,le,yc).call(this),G(this,le,vc).call(this,G(this,le,gc).call(this))},Sc=function(){k(this,gr)&&(clearTimeout(k(this,gr)),M(this,gr,void 0))},xc=function(){k(this,vr)&&(clearInterval(k(this,vr)),M(this,vr,void 0))},kc=function(){const t=k(this,Ze).getQueryCache().build(k(this,Ze),this.options);if(t===k(this,Z))return;const n=k(this,Z);M(this,Z,t),M(this,Hl,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Uv=function(t){Re.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(k(this,qe))}),k(this,Ze).getQueryCache().notify({query:k(this,Z),type:"observerResultsUpdated"})})},im);function mT(e,t){return zt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Lp(e,t){return mT(e,t)||e.state.data!==void 0&&Ec(e,t,t.refetchOnMount)}function Ec(e,t,n){if(zt(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Yf(e,t)}return!1}function Dp(e,t,n,r){return(e!==t||zt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Yf(e,n)}function Yf(e,t){return zt(t.enabled,e)!==!1&&e.isStaleByTime(si(t.staleTime,e))}function yT(e,t){return!xs(e.getCurrentResult(),t)}var Fn,zn,et,an,pn,jo,Cc,lm,gT=(lm=class extends Fi{constructor(n,r){super();$(this,pn);$(this,Fn);$(this,zn);$(this,et);$(this,an);M(this,Fn,n),this.setOptions(r),this.bindMethods(),G(this,pn,jo).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=k(this,Fn).defaultMutationOptions(n),xs(this.options,r)||k(this,Fn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,et),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Ir(r.mutationKey)!==Ir(this.options.mutationKey)?this.reset():((i=k(this,et))==null?void 0:i.state.status)==="pending"&&k(this,et).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=k(this,et))==null||n.removeObserver(this)}onMutationUpdate(n){G(this,pn,jo).call(this),G(this,pn,Cc).call(this,n)}getCurrentResult(){return k(this,zn)}reset(){var n;(n=k(this,et))==null||n.removeObserver(this),M(this,et,void 0),G(this,pn,jo).call(this),G(this,pn,Cc).call(this)}mutate(n,r){var i;return M(this,an,r),(i=k(this,et))==null||i.removeObserver(this),M(this,et,k(this,Fn).getMutationCache().build(k(this,Fn),this.options)),k(this,et).addObserver(this),k(this,et).execute(n)}},Fn=new WeakMap,zn=new WeakMap,et=new WeakMap,an=new WeakMap,pn=new WeakSet,jo=function(){var r;const n=((r=k(this,et))==null?void 0:r.state)??jv();M(this,zn,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Cc=function(n){Re.batch(()=>{var r,i,l,o,s,u,a,c;if(k(this,an)&&this.hasListeners()){const f=k(this,zn).variables,d=k(this,zn).context;(n==null?void 0:n.type)==="success"?((i=(r=k(this,an)).onSuccess)==null||i.call(r,n.data,f,d),(o=(l=k(this,an)).onSettled)==null||o.call(l,n.data,null,f,d)):(n==null?void 0:n.type)==="error"&&((u=(s=k(this,an)).onError)==null||u.call(s,n.error,f,d),(c=(a=k(this,an)).onSettled)==null||c.call(a,void 0,n.error,f,d))}this.listeners.forEach(f=>{f(k(this,zn))})})},lm),Bv=b.createContext(void 0),Hv=e=>{const t=b.useContext(Bv);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},vT=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),B.jsx(Bv.Provider,{value:e,children:t})),$v=b.createContext(!1),wT=()=>b.useContext($v);$v.Provider;function ST(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var xT=b.createContext(ST()),kT=()=>b.useContext(xT);function Vv(e,t){return typeof e=="function"?e(...t):!!e}function Pc(){}var ET=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},CT=e=>{b.useEffect(()=>{e.clearReset()},[e])},PT=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||Vv(n,[e.error,r])),_T=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...n)=>Math.max(t(...n),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},TT=(e,t)=>e.isLoading&&e.isFetching&&!t,RT=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Fp=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function OT(e,t,n){var f,d,h,g,v;const r=Hv(),i=wT(),l=kT(),o=r.defaultQueryOptions(e);(d=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||d.call(f,o),o._optimisticResults=i?"isRestoring":"optimistic",_T(o),ET(o,l),CT(l);const s=!r.getQueryCache().get(o.queryHash),[u]=b.useState(()=>new t(r,o)),a=u.getOptimisticResult(o),c=!i&&e.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(S=>{const p=c?u.subscribe(Re.batchCalls(S)):Pc;return u.updateResult(),p},[u,c]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),b.useEffect(()=>{u.setOptions(o,{listeners:!1})},[o,u]),RT(o,a))throw Fp(o,u,l);if(PT({result:a,errorResetBoundary:l,throwOnError:o.throwOnError,query:r.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw a.error;if((g=(h=r.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||g.call(h,o,a),o.experimental_prefetchInRender&&!br&&TT(a,i)){const S=s?Fp(o,u,l):(v=r.getQueryCache().get(o.queryHash))==null?void 0:v.promise;S==null||S.catch(Pc).finally(()=>{u.updateResult()})}return o.notifyOnChangeProps?a:u.trackResult(a)}function bT(e,t){return OT(e,pT)}function IT(e,t){const n=Hv(),[r]=b.useState(()=>new gT(n,e));b.useEffect(()=>{r.setOptions(e)},[r,e]);const i=b.useSyncExternalStore(b.useCallback(o=>r.subscribe(Re.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),l=b.useCallback((o,s)=>{r.mutate(o,s).catch(Pc)},[r]);if(i.error&&Vv(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:l,mutateAsync:i.mutate}}function Qv(e,t){return function(){return e.apply(t,arguments)}}const{toString:NT}=Object.prototype,{getPrototypeOf:Zf}=Object,Ys=(e=>t=>{const n=NT.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ht=e=>(e=e.toLowerCase(),t=>Ys(t)===e),Zs=e=>t=>typeof t===e,{isArray:zi}=Array,jl=Zs("undefined");function AT(e){return e!==null&&!jl(e)&&e.constructor!==null&&!jl(e.constructor)&&mt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const qv=Ht("ArrayBuffer");function LT(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&qv(e.buffer),t}const DT=Zs("string"),mt=Zs("function"),Wv=Zs("number"),eu=e=>e!==null&&typeof e=="object",FT=e=>e===!0||e===!1,Uo=e=>{if(Ys(e)!=="object")return!1;const t=Zf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},zT=Ht("Date"),MT=Ht("File"),jT=Ht("Blob"),UT=Ht("FileList"),BT=e=>eu(e)&&mt(e.pipe),HT=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||mt(e.append)&&((t=Ys(e))==="formdata"||t==="object"&&mt(e.toString)&&e.toString()==="[object FormData]"))},$T=Ht("URLSearchParams"),[VT,QT,qT,WT]=["ReadableStream","Request","Response","Headers"].map(Ht),KT=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Yl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),zi(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const cr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Gv=e=>!jl(e)&&e!==cr;function _c(){const{caseless:e}=Gv(this)&&this||{},t={},n=(r,i)=>{const l=e&&Kv(t,i)||i;Uo(t[l])&&Uo(r)?t[l]=_c(t[l],r):Uo(r)?t[l]=_c({},r):zi(r)?t[l]=r.slice():t[l]=r};for(let r=0,i=arguments.length;r(Yl(t,(i,l)=>{n&&mt(i)?e[l]=Qv(i,n):e[l]=i},{allOwnKeys:r}),e),XT=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),JT=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},YT=(e,t,n,r)=>{let i,l,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),l=i.length;l-- >0;)o=i[l],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&Zf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ZT=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},eR=e=>{if(!e)return null;if(zi(e))return e;let t=e.length;if(!Wv(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},tR=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Zf(Uint8Array)),nR=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const l=i.value;t.call(e,l[0],l[1])}},rR=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},iR=Ht("HTMLFormElement"),lR=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),zp=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),oR=Ht("RegExp"),Xv=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Yl(n,(i,l)=>{let o;(o=t(i,l,e))!==!1&&(r[l]=o||i)}),Object.defineProperties(e,r)},sR=e=>{Xv(e,(t,n)=>{if(mt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(mt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},uR=(e,t)=>{const n={},r=i=>{i.forEach(l=>{n[l]=!0})};return zi(e)?r(e):r(String(e).split(t)),n},aR=()=>{},cR=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function fR(e){return!!(e&&mt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const dR=e=>{const t=new Array(10),n=(r,i)=>{if(eu(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const l=zi(r)?[]:{};return Yl(r,(o,s)=>{const u=n(o,i+1);!jl(u)&&(l[s]=u)}),t[i]=void 0,l}}return r};return n(e,0)},hR=Ht("AsyncFunction"),pR=e=>e&&(eu(e)||mt(e))&&mt(e.then)&&mt(e.catch),Jv=((e,t)=>e?setImmediate:t?((n,r)=>(cr.addEventListener("message",({source:i,data:l})=>{i===cr&&l===n&&r.length&&r.shift()()},!1),i=>{r.push(i),cr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",mt(cr.postMessage)),mR=typeof queueMicrotask<"u"?queueMicrotask.bind(cr):typeof process<"u"&&process.nextTick||Jv,_={isArray:zi,isArrayBuffer:qv,isBuffer:AT,isFormData:HT,isArrayBufferView:LT,isString:DT,isNumber:Wv,isBoolean:FT,isObject:eu,isPlainObject:Uo,isReadableStream:VT,isRequest:QT,isResponse:qT,isHeaders:WT,isUndefined:jl,isDate:zT,isFile:MT,isBlob:jT,isRegExp:oR,isFunction:mt,isStream:BT,isURLSearchParams:$T,isTypedArray:tR,isFileList:UT,forEach:Yl,merge:_c,extend:GT,trim:KT,stripBOM:XT,inherits:JT,toFlatObject:YT,kindOf:Ys,kindOfTest:Ht,endsWith:ZT,toArray:eR,forEachEntry:nR,matchAll:rR,isHTMLForm:iR,hasOwnProperty:zp,hasOwnProp:zp,reduceDescriptors:Xv,freezeMethods:sR,toObjectSet:uR,toCamelCase:lR,noop:aR,toFiniteNumber:cR,findKey:Kv,global:cr,isContextDefined:Gv,isSpecCompliantForm:fR,toJSONObject:dR,isAsyncFn:hR,isThenable:pR,setImmediate:Jv,asap:mR};function K(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}_.inherits(K,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.status}}});const Yv=K.prototype,Zv={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Zv[e]={value:e}});Object.defineProperties(K,Zv);Object.defineProperty(Yv,"isAxiosError",{value:!0});K.from=(e,t,n,r,i,l)=>{const o=Object.create(Yv);return _.toFlatObject(e,o,function(u){return u!==Error.prototype},s=>s!=="isAxiosError"),K.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,l&&Object.assign(o,l),o};const yR=null;function Tc(e){return _.isPlainObject(e)||_.isArray(e)}function ew(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function Mp(e,t,n){return e?e.concat(t).map(function(i,l){return i=ew(i),!n&&l?"["+i+"]":i}).join(n?".":""):t}function gR(e){return _.isArray(e)&&!e.some(Tc)}const vR=_.toFlatObject(_,{},null,function(t){return/^is[A-Z]/.test(t)});function tu(e,t,n){if(!_.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=_.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,S){return!_.isUndefined(S[v])});const r=n.metaTokens,i=n.visitor||c,l=n.dots,o=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&_.isSpecCompliantForm(t);if(!_.isFunction(i))throw new TypeError("visitor must be a function");function a(g){if(g===null)return"";if(_.isDate(g))return g.toISOString();if(!u&&_.isBlob(g))throw new K("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(g)||_.isTypedArray(g)?u&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,v,S){let p=g;if(g&&!S&&typeof g=="object"){if(_.endsWith(v,"{}"))v=r?v:v.slice(0,-2),g=JSON.stringify(g);else if(_.isArray(g)&&gR(g)||(_.isFileList(g)||_.endsWith(v,"[]"))&&(p=_.toArray(g)))return v=ew(v),p.forEach(function(y,C){!(_.isUndefined(y)||y===null)&&t.append(o===!0?Mp([v],C,l):o===null?v:v+"[]",a(y))}),!1}return Tc(g)?!0:(t.append(Mp(S,v,l),a(g)),!1)}const f=[],d=Object.assign(vR,{defaultVisitor:c,convertValue:a,isVisitable:Tc});function h(g,v){if(!_.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(g),_.forEach(g,function(p,m){(!(_.isUndefined(p)||p===null)&&i.call(t,p,_.isString(m)?m.trim():m,v,d))===!0&&h(p,v?v.concat(m):[m])}),f.pop()}}if(!_.isObject(e))throw new TypeError("data must be an object");return h(e),t}function jp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ed(e,t){this._pairs=[],e&&tu(e,this,t)}const tw=ed.prototype;tw.append=function(t,n){this._pairs.push([t,n])};tw.toString=function(t){const n=t?function(r){return t.call(this,r,jp)}:jp;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function wR(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function nw(e,t,n){if(!t)return e;const r=n&&n.encode||wR;_.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let l;if(i?l=i(t,n):l=_.isURLSearchParams(t)?t.toString():new ed(t,n).toString(r),l){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class Up{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){_.forEach(this.handlers,function(r){r!==null&&t(r)})}}const rw={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},SR=typeof URLSearchParams<"u"?URLSearchParams:ed,xR=typeof FormData<"u"?FormData:null,kR=typeof Blob<"u"?Blob:null,ER={isBrowser:!0,classes:{URLSearchParams:SR,FormData:xR,Blob:kR},protocols:["http","https","file","blob","url","data"]},td=typeof window<"u"&&typeof document<"u",Rc=typeof navigator=="object"&&navigator||void 0,CR=td&&(!Rc||["ReactNative","NativeScript","NS"].indexOf(Rc.product)<0),PR=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_R=td&&window.location.href||"http://localhost",TR=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:td,hasStandardBrowserEnv:CR,hasStandardBrowserWebWorkerEnv:PR,navigator:Rc,origin:_R},Symbol.toStringTag,{value:"Module"})),He={...TR,...ER};function RR(e,t){return tu(e,new He.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,l){return He.isNode&&_.isBuffer(n)?(this.append(r,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function OR(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function bR(e){const t={},n=Object.keys(e);let r;const i=n.length;let l;for(r=0;r=n.length;return o=!o&&_.isArray(i)?i.length:o,u?(_.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!_.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],l)&&_.isArray(i[o])&&(i[o]=bR(i[o])),!s)}if(_.isFormData(e)&&_.isFunction(e.entries)){const n={};return _.forEachEntry(e,(r,i)=>{t(OR(r),i,n,0)}),n}return null}function IR(e,t,n){if(_.isString(e))try{return(t||JSON.parse)(e),_.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Zl={transitional:rw,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,l=_.isObject(t);if(l&&_.isHTMLForm(t)&&(t=new FormData(t)),_.isFormData(t))return i?JSON.stringify(iw(t)):t;if(_.isArrayBuffer(t)||_.isBuffer(t)||_.isStream(t)||_.isFile(t)||_.isBlob(t)||_.isReadableStream(t))return t;if(_.isArrayBufferView(t))return t.buffer;if(_.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(l){if(r.indexOf("application/x-www-form-urlencoded")>-1)return RR(t,this.formSerializer).toString();if((s=_.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return tu(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return l||i?(n.setContentType("application/json",!1),IR(t)):t}],transformResponse:[function(t){const n=this.transitional||Zl.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(_.isResponse(t)||_.isReadableStream(t))return t;if(t&&_.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?K.from(s,K.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:He.classes.FormData,Blob:He.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],e=>{Zl.headers[e]={}});const NR=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),AR=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&NR[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Bp=Symbol("internals");function Ji(e){return e&&String(e).trim().toLowerCase()}function Bo(e){return e===!1||e==null?e:_.isArray(e)?e.map(Bo):String(e)}function LR(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const DR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ju(e,t,n,r,i){if(_.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!_.isString(t)){if(_.isString(r))return t.indexOf(r)!==-1;if(_.isRegExp(r))return r.test(t)}}function FR(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function zR(e,t){const n=_.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,l,o){return this[r].call(this,t,i,l,o)},configurable:!0})})}let st=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function l(s,u,a){const c=Ji(u);if(!c)throw new Error("header name must be a non-empty string");const f=_.findKey(i,c);(!f||i[f]===void 0||a===!0||a===void 0&&i[f]!==!1)&&(i[f||u]=Bo(s))}const o=(s,u)=>_.forEach(s,(a,c)=>l(a,c,u));if(_.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(_.isString(t)&&(t=t.trim())&&!DR(t))o(AR(t),n);else if(_.isHeaders(t))for(const[s,u]of t.entries())l(u,s,r);else t!=null&&l(n,t,r);return this}get(t,n){if(t=Ji(t),t){const r=_.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return LR(i);if(_.isFunction(n))return n.call(this,i,r);if(_.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ji(t),t){const r=_.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ju(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function l(o){if(o=Ji(o),o){const s=_.findKey(r,o);s&&(!n||Ju(r,r[s],s,n))&&(delete r[s],i=!0)}}return _.isArray(t)?t.forEach(l):l(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const l=n[r];(!t||Ju(this,this[l],l,t,!0))&&(delete this[l],i=!0)}return i}normalize(t){const n=this,r={};return _.forEach(this,(i,l)=>{const o=_.findKey(r,l);if(o){n[o]=Bo(i),delete n[l];return}const s=t?FR(l):String(l).trim();s!==l&&delete n[l],n[s]=Bo(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return _.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&_.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Bp]=this[Bp]={accessors:{}}).accessors,i=this.prototype;function l(o){const s=Ji(o);r[s]||(zR(i,o),r[s]=!0)}return _.isArray(t)?t.forEach(l):l(t),this}};st.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_.reduceDescriptors(st.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});_.freezeMethods(st);function Yu(e,t){const n=this||Zl,r=t||n,i=st.from(r.headers);let l=r.data;return _.forEach(e,function(s){l=s.call(n,l,i.normalize(),t?t.status:void 0)}),i.normalize(),l}function lw(e){return!!(e&&e.__CANCEL__)}function Mi(e,t,n){K.call(this,e??"canceled",K.ERR_CANCELED,t,n),this.name="CanceledError"}_.inherits(Mi,K,{__CANCEL__:!0});function ow(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new K("Request failed with status code "+n.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function MR(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function jR(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,l=0,o;return t=t!==void 0?t:1e3,function(u){const a=Date.now(),c=r[l];o||(o=a),n[i]=u,r[i]=a;let f=l,d=0;for(;f!==i;)d+=n[f++],f=f%e;if(i=(i+1)%e,i===l&&(l=(l+1)%e),a-o{n=c,i=null,l&&(clearTimeout(l),l=null),e.apply(null,a)};return[(...a)=>{const c=Date.now(),f=c-n;f>=r?o(a,c):(i=a,l||(l=setTimeout(()=>{l=null,o(i)},r-f)))},()=>i&&o(i)]}const Es=(e,t,n=3)=>{let r=0;const i=jR(50,250);return UR(l=>{const o=l.loaded,s=l.lengthComputable?l.total:void 0,u=o-r,a=i(u),c=o<=s;r=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:u,rate:a||void 0,estimated:a&&s&&c?(s-o)/a:void 0,event:l,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},Hp=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},$p=e=>(...t)=>_.asap(()=>e(...t)),BR=He.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,He.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(He.origin),He.navigator&&/(msie|trident)/i.test(He.navigator.userAgent)):()=>!0,HR=He.hasStandardBrowserEnv?{write(e,t,n,r,i,l){const o=[e+"="+encodeURIComponent(t)];_.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),_.isString(r)&&o.push("path="+r),_.isString(i)&&o.push("domain="+i),l===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function $R(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function VR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function sw(e,t,n){let r=!$R(t);return e&&(r||n==!1)?VR(e,t):t}const Vp=e=>e instanceof st?{...e}:e;function Nr(e,t){t=t||{};const n={};function r(a,c,f,d){return _.isPlainObject(a)&&_.isPlainObject(c)?_.merge.call({caseless:d},a,c):_.isPlainObject(c)?_.merge({},c):_.isArray(c)?c.slice():c}function i(a,c,f,d){if(_.isUndefined(c)){if(!_.isUndefined(a))return r(void 0,a,f,d)}else return r(a,c,f,d)}function l(a,c){if(!_.isUndefined(c))return r(void 0,c)}function o(a,c){if(_.isUndefined(c)){if(!_.isUndefined(a))return r(void 0,a)}else return r(void 0,c)}function s(a,c,f){if(f in t)return r(a,c);if(f in e)return r(void 0,a)}const u={url:l,method:l,data:l,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(a,c,f)=>i(Vp(a),Vp(c),f,!0)};return _.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=u[c]||i,d=f(e[c],t[c],c);_.isUndefined(d)&&f!==s||(n[c]=d)}),n}const uw=e=>{const t=Nr({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:l,headers:o,auth:s}=t;t.headers=o=st.from(o),t.url=nw(sw(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let u;if(_.isFormData(n)){if(He.hasStandardBrowserEnv||He.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((u=o.getContentType())!==!1){const[a,...c]=u?u.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([a||"multipart/form-data",...c].join("; "))}}if(He.hasStandardBrowserEnv&&(r&&_.isFunction(r)&&(r=r(t)),r||r!==!1&&BR(t.url))){const a=i&&l&&HR.read(l);a&&o.set(i,a)}return t},QR=typeof XMLHttpRequest<"u",qR=QR&&function(e){return new Promise(function(n,r){const i=uw(e);let l=i.data;const o=st.from(i.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:a}=i,c,f,d,h,g;function v(){h&&h(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let S=new XMLHttpRequest;S.open(i.method.toUpperCase(),i.url,!0),S.timeout=i.timeout;function p(){if(!S)return;const y=st.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),P={data:!s||s==="text"||s==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:y,config:e,request:S};ow(function(T){n(T),v()},function(T){r(T),v()},P),S=null}"onloadend"in S?S.onloadend=p:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(p)},S.onabort=function(){S&&(r(new K("Request aborted",K.ECONNABORTED,e,S)),S=null)},S.onerror=function(){r(new K("Network Error",K.ERR_NETWORK,e,S)),S=null},S.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const P=i.transitional||rw;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),r(new K(C,P.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,S)),S=null},l===void 0&&o.setContentType(null),"setRequestHeader"in S&&_.forEach(o.toJSON(),function(C,P){S.setRequestHeader(P,C)}),_.isUndefined(i.withCredentials)||(S.withCredentials=!!i.withCredentials),s&&s!=="json"&&(S.responseType=i.responseType),a&&([d,g]=Es(a,!0),S.addEventListener("progress",d)),u&&S.upload&&([f,h]=Es(u),S.upload.addEventListener("progress",f),S.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(c=y=>{S&&(r(!y||y.type?new Mi(null,e,S):y),S.abort(),S=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const m=MR(i.url);if(m&&He.protocols.indexOf(m)===-1){r(new K("Unsupported protocol "+m+":",K.ERR_BAD_REQUEST,e));return}S.send(l||null)})},WR=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const l=function(a){if(!i){i=!0,s();const c=a instanceof Error?a:this.reason;r.abort(c instanceof K?c:new Mi(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,l(new K(`timeout ${t} of ms exceeded`,K.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(l):a.removeEventListener("abort",l)}),e=null)};e.forEach(a=>a.addEventListener("abort",l));const{signal:u}=r;return u.unsubscribe=()=>_.asap(s),u}},KR=function*(e,t){let n=e.byteLength;if(n{const i=GR(e,t);let l=0,o,s=u=>{o||(o=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:a,value:c}=await i.next();if(a){s(),u.close();return}let f=c.byteLength;if(n){let d=l+=f;n(d)}u.enqueue(new Uint8Array(c))}catch(a){throw s(a),a}},cancel(u){return s(u),i.return()}},{highWaterMark:2})},nu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",aw=nu&&typeof ReadableStream=="function",JR=nu&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),cw=(e,...t)=>{try{return!!e(...t)}catch{return!1}},YR=aw&&cw(()=>{let e=!1;const t=new Request(He.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),qp=64*1024,Oc=aw&&cw(()=>_.isReadableStream(new Response("").body)),Cs={stream:Oc&&(e=>e.body)};nu&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Cs[t]&&(Cs[t]=_.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new K(`Response type '${t}' is not supported`,K.ERR_NOT_SUPPORT,r)})})})(new Response);const ZR=async e=>{if(e==null)return 0;if(_.isBlob(e))return e.size;if(_.isSpecCompliantForm(e))return(await new Request(He.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(_.isArrayBufferView(e)||_.isArrayBuffer(e))return e.byteLength;if(_.isURLSearchParams(e)&&(e=e+""),_.isString(e))return(await JR(e)).byteLength},eO=async(e,t)=>{const n=_.toFiniteNumber(e.getContentLength());return n??ZR(t)},tO=nu&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:l,timeout:o,onDownloadProgress:s,onUploadProgress:u,responseType:a,headers:c,withCredentials:f="same-origin",fetchOptions:d}=uw(e);a=a?(a+"").toLowerCase():"text";let h=WR([i,l&&l.toAbortSignal()],o),g;const v=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let S;try{if(u&&YR&&n!=="get"&&n!=="head"&&(S=await eO(c,r))!==0){let P=new Request(t,{method:"POST",body:r,duplex:"half"}),E;if(_.isFormData(r)&&(E=P.headers.get("content-type"))&&c.setContentType(E),P.body){const[T,R]=Hp(S,Es($p(u)));r=Qp(P.body,qp,T,R)}}_.isString(f)||(f=f?"include":"omit");const p="credentials"in Request.prototype;g=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:p?f:void 0});let m=await fetch(g);const y=Oc&&(a==="stream"||a==="response");if(Oc&&(s||y&&v)){const P={};["status","statusText","headers"].forEach(A=>{P[A]=m[A]});const E=_.toFiniteNumber(m.headers.get("content-length")),[T,R]=s&&Hp(E,Es($p(s),!0))||[];m=new Response(Qp(m.body,qp,T,()=>{R&&R(),v&&v()}),P)}a=a||"text";let C=await Cs[_.findKey(Cs,a)||"text"](m,e);return!y&&v&&v(),await new Promise((P,E)=>{ow(P,E,{data:C,headers:st.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:g})})}catch(p){throw v&&v(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new K("Network Error",K.ERR_NETWORK,e,g),{cause:p.cause||p}):K.from(p,p&&p.code,e,g)}}),bc={http:yR,xhr:qR,fetch:tO};_.forEach(bc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Wp=e=>`- ${e}`,nO=e=>_.isFunction(e)||e===null||e===!1,fw={getAdapter:e=>{e=_.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let l=0;l`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=t?l.length>1?`since : +`+l.map(Wp).join(` +`):" "+Wp(l[0]):"as no adapter specified";throw new K("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:bc};function Zu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Mi(null,e)}function Kp(e){return Zu(e),e.headers=st.from(e.headers),e.data=Yu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),fw.getAdapter(e.adapter||Zl.adapter)(e).then(function(r){return Zu(e),r.data=Yu.call(e,e.transformResponse,r),r.headers=st.from(r.headers),r},function(r){return lw(r)||(Zu(e),r&&r.response&&(r.response.data=Yu.call(e,e.transformResponse,r.response),r.response.headers=st.from(r.response.headers))),Promise.reject(r)})}const dw="1.8.4",ru={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ru[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Gp={};ru.transitional=function(t,n,r){function i(l,o){return"[Axios v"+dw+"] Transitional option '"+l+"'"+o+(r?". "+r:"")}return(l,o,s)=>{if(t===!1)throw new K(i(o," has been removed"+(n?" in "+n:"")),K.ERR_DEPRECATED);return n&&!Gp[o]&&(Gp[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,o,s):!0}};ru.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function rO(e,t,n){if(typeof e!="object")throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const l=r[i],o=t[l];if(o){const s=e[l],u=s===void 0||o(s,l,e);if(u!==!0)throw new K("option "+l+" must be "+u,K.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new K("Unknown option "+l,K.ERR_BAD_OPTION)}}const Ho={assertOptions:rO,validators:ru},Vt=Ho.validators;let kr=class{constructor(t){this.defaults=t,this.interceptors={request:new Up,response:new Up}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const l=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+l):r.stack=l}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Nr(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:l}=n;r!==void 0&&Ho.assertOptions(r,{silentJSONParsing:Vt.transitional(Vt.boolean),forcedJSONParsing:Vt.transitional(Vt.boolean),clarifyTimeoutError:Vt.transitional(Vt.boolean)},!1),i!=null&&(_.isFunction(i)?n.paramsSerializer={serialize:i}:Ho.assertOptions(i,{encode:Vt.function,serialize:Vt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ho.assertOptions(n,{baseUrl:Vt.spelling("baseURL"),withXsrfToken:Vt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=l&&_.merge(l.common,l[n.method]);l&&_.forEach(["delete","get","head","post","put","patch","common"],g=>{delete l[g]}),n.headers=st.concat(o,l);const s=[];let u=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(u=u&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const a=[];this.interceptors.response.forEach(function(v){a.push(v.fulfilled,v.rejected)});let c,f=0,d;if(!u){const g=[Kp.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,a),d=g.length,c=Promise.resolve(n);f{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](i);r._listeners=null}),this.promise.then=i=>{let l;const o=new Promise(s=>{r.subscribe(s),l=s}).then(i);return o.cancel=function(){r.unsubscribe(l)},o},t(function(l,o,s){r.reason||(r.reason=new Mi(l,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new hw(function(i){t=i}),cancel:t}}};function lO(e){return function(n){return e.apply(null,n)}}function oO(e){return _.isObject(e)&&e.isAxiosError===!0}const Ic={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ic).forEach(([e,t])=>{Ic[t]=e});function pw(e){const t=new kr(e),n=Qv(kr.prototype.request,t);return _.extend(n,kr.prototype,t,{allOwnKeys:!0}),_.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return pw(Nr(e,i))},n}const xe=pw(Zl);xe.Axios=kr;xe.CanceledError=Mi;xe.CancelToken=iO;xe.isCancel=lw;xe.VERSION=dw;xe.toFormData=tu;xe.AxiosError=K;xe.Cancel=xe.CanceledError;xe.all=function(t){return Promise.all(t)};xe.spread=lO;xe.isAxiosError=oO;xe.mergeConfig=Nr;xe.AxiosHeaders=st;xe.formToJSON=e=>iw(_.isHTMLForm(e)?new FormData(e):e);xe.getAdapter=fw.getAdapter;xe.HttpStatusCode=Ic;xe.default=xe;const{Axios:CO,AxiosError:PO,CanceledError:_O,isCancel:TO,CancelToken:RO,VERSION:OO,all:bO,Cancel:IO,isAxiosError:NO,spread:AO,toFormData:LO,AxiosHeaders:DO,HttpStatusCode:FO,formToJSON:zO,getAdapter:MO,mergeConfig:jO}=xe,mw="https://muryshev-generic-chatbot-backend.hf.space",nd=xe.create({baseURL:`${mw}`,timeout:6e5}),sO=e=>{const t=localStorage.getItem("authToken");return t&&(e.headers.Authorization=`Bearer ${t}`),e},uO=e=>e,aO=async e=>{var n;const t=e.message;return t.includes("409")&&(console.log("409"),vw.invalidateQueries({queryKey:["processing"]})),((n=e.response)==null?void 0:n.status)===401?(localStorage.removeItem("authToken"),window.location.href="/login"):!xe.isCancel(e)&&!t.includes("409")&&alert(`${t} Произошла ошибка`),Promise.reject(e)};nd.interceptors.request.use(sO);nd.interceptors.response.use(uO,aO);const yw=async({url:e,signal:t,...n},r=mw)=>{var o,s,u;const i=new AbortController,l=t||i.signal;try{console.log("Попытка отправки запроса");const a=await nd({url:`${r}${e}`,signal:l,...n});return console.log("Запрос отправлен, результат:",a),{data:a.data,headers:a.headers}}catch(a){if(xe.isCancel(a))return console.log("Запрос отменен"),{error:{status:"Cancelled",data:"Request was cancelled",notCauseError:!0}};const c=a;return console.log("Ошибка при отправке запроса"),{error:{status:(o=c.response)==null?void 0:o.status,data:(s=c.response)==null?void 0:s.data,headers:(u=c.response)==null?void 0:u.headers}}}finally{t||i.abort()}},cO=async e=>{const t=await yw({url:"/auth/login",method:"post",data:e});if("error"in t)throw new Error(`Ошибка авторизации: ${t.error.status}`);return t.data},fO=async()=>{const e=localStorage.getItem("authToken");return"current_user"in(await yw({url:"/auth/checktoken",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},method:"post"})).data},gw=b.createContext(void 0),dO=({children:e})=>{const[t,n]=b.useState(()=>!!localStorage.getItem("authToken")),r=IT({mutationFn:o=>cO(o),onSuccess:o=>{localStorage.setItem("authToken",o.access_token),n(!0)},onError:o=>{console.error("Login Error:",o)}}),i=async o=>{await r.mutateAsync(o)},l=()=>{localStorage.removeItem("authToken"),n(!1)};return B.jsx(gw.Provider,{value:{isAuthenticated:t,login:i,logout:l,isLoading:r.isPending,error:r.error},children:e})},iu=()=>{const e=b.useContext(gw);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e},hO=()=>{const{logout:e}=iu();return B.jsx("div",{className:"toolbar",children:B.jsx("div",{className:"wrapper",children:B.jsx("button",{className:"logout-button",onClick:e,children:"Выйти"})})})},pO=()=>{const[e,t]=b.useState(""),[n,r]=b.useState(null),[i,l]=b.useState(!1),[o,s]=b.useState(!1),u=kx(p=>p.chat.history),a=wx(),c=b.useRef(null),{logout:f,isAuthenticated:d}=iu(),h=Of(),g=()=>{const p=document.querySelector(".messages");if(p){const m=p.getBoundingClientRect(),y=window.innerHeight;return m.bottom<=y+10}return!0},v=()=>{c.current&&(c.current.abort(),l(!1),s(!1),console.log("Generation stopped by user"))},S=async p=>{var E;if(!p.trim()||i||!d)return;t(""),l(!0),s(!1),console.log("Start request - isLoading:",i,"isGeneratingTokens:",o);const m="https://muryshev-generic-chatbot-backend.hf.space/llm/chat/stream",y=localStorage.getItem("authToken"),C={role:"user",content:p,searchResults:"",searchEntities:[]},P=[...u,C];a(G_(C));try{const T=new AbortController;c.current=T;const R=setTimeout(()=>{T.abort(),r("Сервер временно недоступен")},6e4),A=await fetch(m,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${y}`},body:JSON.stringify({history:P}),signal:T.signal});if(clearTimeout(R),!A.ok){if(A.status===401){console.log("Saving pending message"+p),localStorage.setItem("pendingMessage",p),a(J_()),r("Сессия истекла. Пожалуйста, войдите заново."),f(),h("/login"),l(!1);return}throw new Error(`HTTP error! status: ${A.status}`)}const F=document.querySelector(".messages");if(F){const he=F.querySelectorAll("div"),ae=he[he.length-1];ae&&g()&&setTimeout(()=>{ae.scrollIntoView({behavior:"smooth",block:"start"})},0)}const z=(E=A.body)==null?void 0:E.getReader();if(!z)throw new Error("Response body is not readable");const U=new TextDecoder;let ee="",se="",V=[...u,C];for(;;){const{done:he,value:ae}=await z.read();if(he)break;ee+=U.decode(ae,{stream:!0});const L=ee.split(` + +`);for(let w=0;wze===V.length-1&&pe.role==="user"?{...pe,searchResults:x.data.text,searchEntities:x.data.ids}:pe),a(Gu(V)),console.log("After search_results - isLoading:",i,"isGeneratingTokens:",o);else if(x.event==="token"){o||(s(!0),console.log("Before first token - isLoading:",i,"isGeneratingTokens:",o)),se+=x.data;const pe=V.findLastIndex(ne=>ne.role==="user"),ze=V.findIndex((ne,Je)=>ne.role==="assistant"&&Je>pe);ze>=0?V=V.map((ne,Je)=>Je===ze?{...ne,content:se}:ne):V=[...V,{role:"assistant",content:se,searchResults:"",searchEntities:[]}],a(Gu(V))}}catch(x){console.error("Failed to parse SSE data:",x),r("Ошибка обработки данных от сервера")}}}ee=L[L.length-1];const H=document.querySelector(".messages");if(H){const w=H.querySelectorAll("div"),X=w[w.length-1];X&&g()&&setTimeout(()=>{X.scrollIntoView({behavior:"smooth",block:"start"})},0)}}}catch(T){console.error("Stream error:",T),l(!1),s(!1),console.log("Catch - isLoading:",i,"isGeneratingTokens:",o),T instanceof DOMException&&T.name==="AbortError"&&!c.current?r("Сервер временно недоступен"):T instanceof DOMException&&T.name==="AbortError"||r("Произошла ошибка при запросе")}finally{c.current=null}};return b.useEffect(()=>{const p=localStorage.getItem("pendingMessage");d&&p&&(console.log("Attempting to resend pending message:",p),S(p),localStorage.removeItem("pendingMessage"))},[d]),b.useEffect(()=>{if(console.log("State update - isLoading:",i,"isGeneratingTokens:",o),n){const p=setTimeout(()=>r(null),5e3);return()=>clearTimeout(p)}},[i,o,n]),B.jsxs("div",{className:"chat",children:[B.jsx(hO,{}),n&&B.jsx("div",{className:"error-toast",children:n}),B.jsxs("div",{className:"messages",children:[u.map((p,m)=>B.jsx(gp,{role:p.role,content:p.content,searchResults:p.searchResults},m)),i&&!o&&B.jsx(gp,{role:"assistant",content:"",isLoading:!0,searchResults:""},"loading")]}),B.jsxs("div",{className:"input-area",children:[B.jsx(a_,{onSend:S,text:e,setText:t}),B.jsxs("div",{className:"buttons",children:[i?B.jsx("button",{className:"stop-button",onClick:v,children:"Остановить"}):B.jsx("button",{className:"send-button",onClick:()=>S(e),children:"Отправить"}),B.jsx("a",{href:"#",className:"clear-link",onClick:p=>{p.preventDefault(),a(X_())},children:"Очистить"})]})]}),B.jsx("button",{className:"logout-button",onClick:f,children:"Выйти"})]})},mO=L_({reducer:{chat:Y_}}),yO=()=>B.jsx(yx,{store:mO,children:B.jsx(pO,{})}),gO=()=>{const[e,t]=b.useState(""),[n,r]=b.useState(""),{login:i,isLoading:l,error:o}=iu(),s=Of(),u=async a=>{a.preventDefault();try{await i({username:e,password:n}),s("/",{replace:!0})}catch{}};return B.jsx("div",{className:"login-page",children:B.jsxs("form",{onSubmit:u,children:[B.jsxs("div",{children:[B.jsx("label",{children:"Логин:"}),B.jsx("input",{type:"text",value:e,onChange:a=>t(a.target.value)})]}),B.jsxs("div",{children:[B.jsx("label",{children:"Пароль:"}),B.jsx("input",{type:"password",value:n,onChange:a=>r(a.target.value)})]}),o&&B.jsx("p",{className:"error",children:"Неверный логин или пароль"}),B.jsx("button",{type:"submit",disabled:l,children:l?"Вход...":"Войти"})]})})},vO=!1,wO=({children:e,checkInterval:t=vO})=>{const{isAuthenticated:n,logout:r}=iu(),i=Of(),{isLoading:l,data:o,error:s}=bT({queryKey:["tokenValid"],queryFn:fO,enabled:n,refetchInterval:t,refetchOnWindowFocus:!1});return b.useEffect(()=>{(s||!n||o===!1)&&(console.error("Token validation error:",s),r(),i("/login",{replace:!0}))},[n,o,s,r,i]),l?B.jsx("div",{children:"Loading..."}):s||!n||o===!1?null:B.jsx(B.Fragment,{children:e})},vw=new hT;ea.createRoot(document.getElementById("root")).render(B.jsx(ym.StrictMode,{children:B.jsx(vT,{client:vw,children:B.jsx(dO,{children:B.jsx(XS,{children:B.jsxs(WS,{children:[B.jsx(Ka,{path:"/login",element:B.jsx(gO,{})}),B.jsx(Ka,{path:"/",element:B.jsx(wO,{children:B.jsx(yO,{})})})]})})})})}));