diff --git "a/frontend/index-XwM82MgW.js" "b/frontend/index-XwM82MgW.js" new file mode 100644--- /dev/null +++ "b/frontend/index-XwM82MgW.js" @@ -0,0 +1,381 @@ +(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 a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function Ec(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jc={exports:{}},ma={},Cc={exports:{}},F={};/** + * @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 Br=Symbol.for("react.element"),$f=Symbol.for("react.portal"),Bf=Symbol.for("react.fragment"),Hf=Symbol.for("react.strict_mode"),Vf=Symbol.for("react.profiler"),Wf=Symbol.for("react.provider"),qf=Symbol.for("react.context"),Qf=Symbol.for("react.forward_ref"),Kf=Symbol.for("react.suspense"),Gf=Symbol.for("react.memo"),Yf=Symbol.for("react.lazy"),Fs=Symbol.iterator;function Xf(e){return e===null||typeof e!="object"?null:(e=Fs&&e[Fs]||e["@@iterator"],typeof e=="function"?e:null)}var Nc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_c=Object.assign,bc={};function Xn(e,t,n){this.props=e,this.context=t,this.refs=bc,this.updater=n||Nc}Xn.prototype.isReactComponent={};Xn.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")};Xn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Tc(){}Tc.prototype=Xn.prototype;function Dl(e,t,n){this.props=e,this.context=t,this.refs=bc,this.updater=n||Nc}var Rl=Dl.prototype=new Tc;Rl.constructor=Dl;_c(Rl,Xn.prototype);Rl.isPureReactComponent=!0;var Ms=Array.isArray,Dc=Object.prototype.hasOwnProperty,Ol={current:null},Rc={key:!0,ref:!0,__self:!0,__source:!0};function Oc(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)Dc.call(t,r)&&!Rc.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1>>1,$=_[M];if(0>>1;Mi(De,L))ot<$&&0>i(Ve,De)?(_[M]=Ve,_[ot]=L,M=ot):(_[M]=De,_[oe]=L,M=oe);else if(ot<$&&0>i(Ve,L))_[M]=Ve,_[ot]=L,M=ot;else break e}}return R}function i(_,R){var L=_.sortIndex-R.sortIndex;return L!==0?L:_.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var s=[],u=[],c=1,d=null,v=3,w=!1,g=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(_){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=_)r(u),R.sortIndex=R.expirationTime,t(s,R);else break;R=n(u)}}function k(_){if(x=!1,m(_),!g)if(n(s)!==null)g=!0,xe(C);else{var R=n(u);R!==null&&vt(k,R.startTime-_)}}function C(_,R){g=!1,x&&(x=!1,h(O),O=-1),w=!0;var L=v;try{for(m(R),d=n(s);d!==null&&(!(d.expirationTime>R)||_&&!de());){var M=d.callback;if(typeof M=="function"){d.callback=null,v=d.priorityLevel;var $=M(d.expirationTime<=R);R=e.unstable_now(),typeof $=="function"?d.callback=$:d===n(s)&&r(s),m(R)}else r(s);d=n(s)}if(d!==null)var Xe=!0;else{var oe=n(u);oe!==null&&vt(k,oe.startTime-R),Xe=!1}return Xe}finally{d=null,v=L,w=!1}}var T=!1,N=null,O=-1,U=5,A=-1;function de(){return!(e.unstable_now()-A_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(_){switch(v){case 1:case 2:case 3:var R=3;break;default:R=v}var L=v;v=R;try{return _()}finally{v=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,R){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var L=v;v=_;try{return R()}finally{v=L}},e.unstable_scheduleCallback=function(_,R,L){var M=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0M?(_.sortIndex=L,t(u,_),n(s)===null&&_===n(u)&&(x?(h(O),O=-1):x=!0,vt(k,L-M))):(_.sortIndex=$,t(s,_),g||w||(g=!0,xe(C))),_},e.unstable_shouldYield=de,e.unstable_wrapCallback=function(_){var R=v;return function(){var L=v;v=R;try{return _.apply(this,arguments)}finally{v=L}}}})(Mc);Fc.exports=Mc;var sm=Fc.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 um=j,$e=sm;function S(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"),No=Object.prototype.hasOwnProperty,cm=/^[: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]*$/,Us={},$s={};function pm(e){return No.call($s,e)?!0:No.call(Us,e)?!1:cm.test(e)?$s[e]=!0:(Us[e]=!0,!1)}function dm(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 fm(e,t,n,r){if(t===null||typeof t>"u"||dm(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 be(e,t,n,r,i,a,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=a,this.removeEmptyString=o}var ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ge[e]=new be(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ge[t]=new be(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ge[e]=new be(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ge[e]=new be(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){ge[e]=new be(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ge[e]=new be(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ge[e]=new be(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ge[e]=new be(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ge[e]=new be(e,5,!1,e.toLowerCase(),null,!1,!1)});var zl=/[\-:]([a-z])/g;function Al(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(zl,Al);ge[t]=new be(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(zl,Al);ge[t]=new be(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(zl,Al);ge[t]=new be(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ge[e]=new be(e,1,!1,e.toLowerCase(),null,!1,!1)});ge.xlinkHref=new be("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ge[e]=new be(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ll(e,t,n,r){var i=ge.hasOwnProperty(t)?ge[t]:null;(i!==null?i.type!==0:r||!(2l||i[o]!==a[l]){var s=` +`+i[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=l);break}}}finally{Ga=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?pr(e):""}function mm(e){switch(e.tag){case 5:return pr(e.type);case 16:return pr("Lazy");case 13:return pr("Suspense");case 19:return pr("SuspenseList");case 0:case 2:case 15:return e=Ya(e.type,!1),e;case 11:return e=Ya(e.type.render,!1),e;case 1:return e=Ya(e.type,!0),e;default:return""}}function Do(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 Cn:return"Fragment";case jn:return"Portal";case _o:return"Profiler";case Fl:return"StrictMode";case bo:return"Suspense";case To:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $c:return(e.displayName||"Context")+".Consumer";case Uc:return(e._context.displayName||"Context")+".Provider";case Ml:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Il:return t=e.displayName||null,t!==null?t:Do(e.type)||"Memo";case Ot:t=e._payload,e=e._init;try{return Do(e(t))}catch{}}return null}function hm(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 Do(t);case 8:return t===Fl?"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 Qt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Hc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vm(e){var t=Hc(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,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.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 oi(e){e._valueTracker||(e._valueTracker=vm(e))}function Vc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Hc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ii(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 Ro(e,t){var n=t.checked;return ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Hs(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Qt(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 Wc(e,t){t=t.checked,t!=null&&Ll(e,"checked",t,!1)}function Oo(e,t){Wc(e,t);var n=Qt(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")?Po(e,t.type,n):t.hasOwnProperty("defaultValue")&&Po(e,t.type,Qt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Vs(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 Po(e,t,n){(t!=="number"||Ii(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var dr=Array.isArray;function Ln(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=li.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Cr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hr={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},gm=["Webkit","ms","Moz","O"];Object.keys(hr).forEach(function(e){gm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hr[t]=hr[e]})});function Gc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||hr.hasOwnProperty(e)&&hr[e]?(""+t).trim():t+"px"}function Yc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Gc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var ym=ee({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 Lo(e,t){if(t){if(ym[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(S(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(S(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(S(61))}if(t.style!=null&&typeof t.style!="object")throw Error(S(62))}}function Fo(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 Mo=null;function Ul(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Io=null,Fn=null,Mn=null;function Qs(e){if(e=Wr(e)){if(typeof Io!="function")throw Error(S(280));var t=e.stateNode;t&&(t=xa(t),Io(e.stateNode,e.type,t))}}function Xc(e){Fn?Mn?Mn.push(e):Mn=[e]:Fn=e}function Jc(){if(Fn){var e=Fn,t=Mn;if(Mn=Fn=null,Qs(e),t)for(e=0;e>>=0,e===0?32:31-(Tm(e)/Dm|0)|0}var si=64,ui=4194304;function fr(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 Hi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=fr(l):(a&=o,a!==0&&(r=fr(a)))}else o=n&~i,o!==0?r=fr(o):a!==0&&(r=fr(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&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 Hr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-nt(t),e[t]=n}function zm(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=gr),nu=" ",ru=!1;function yp(e,t){switch(e){case"keyup":return sh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nn=!1;function ch(e,t){switch(e){case"compositionend":return xp(t);case"keypress":return t.which!==32?null:(ru=!0,nu);case"textInput":return e=t.data,e===nu&&ru?null:e;default:return null}}function ph(e,t){if(Nn)return e==="compositionend"||!Kl&&yp(e,t)?(e=vp(),Ni=Wl=Ft=null,Nn=!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=lu(n)}}function Ep(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ep(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jp(){for(var e=window,t=Ii();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ii(e.document)}return t}function Gl(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 wh(e){var t=jp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ep(n.ownerDocument.documentElement,n)){if(r!==null&&Gl(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,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=su(n,a);var o=su(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(),a>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,_n=null,Wo=null,xr=null,qo=!1;function uu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qo||_n==null||_n!==Ii(r)||(r=_n,"selectionStart"in r&&Gl(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}),xr&&Rr(xr,r)||(xr=r,r=qi(Wo,"onSelect"),0Dn||(e.current=Jo[Dn],Jo[Dn]=null,Dn--)}function q(e,t){Dn++,Jo[Dn]=e.current,e.current=t}var Kt={},je=Yt(Kt),Pe=Yt(!1),pn=Kt;function Hn(e,t){var n=e.type.contextTypes;if(!n)return Kt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ze(e){return e=e.childContextTypes,e!=null}function Ki(){G(Pe),G(je)}function vu(e,t,n){if(je.current!==Kt)throw Error(S(168));q(je,t),q(Pe,n)}function Pp(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(S(108,hm(e)||"Unknown",i));return ee({},n,r)}function Gi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Kt,pn=je.current,q(je,e),q(Pe,Pe.current),!0}function gu(e,t,n){var r=e.stateNode;if(!r)throw Error(S(169));n?(e=Pp(e,t,pn),r.__reactInternalMemoizedMergedChildContext=e,G(Pe),G(je),q(je,e)):G(Pe),q(Pe,n)}var wt=null,wa=!1,co=!1;function zp(e){wt===null?wt=[e]:wt.push(e)}function Oh(e){wa=!0,zp(e)}function Xt(){if(!co&&wt!==null){co=!0;var e=0,t=B;try{var n=wt;for(B=1;e>=o,i-=o,kt=1<<32-nt(t)+i|n<O?(U=N,N=null):U=N.sibling;var A=v(h,N,m[O],k);if(A===null){N===null&&(N=U);break}e&&N&&A.alternate===null&&t(h,N),f=a(A,f,O),T===null?C=A:T.sibling=A,T=A,N=U}if(O===m.length)return n(h,N),Y&&en(h,O),C;if(N===null){for(;OO?(U=N,N=null):U=N.sibling;var de=v(h,N,A.value,k);if(de===null){N===null&&(N=U);break}e&&N&&de.alternate===null&&t(h,N),f=a(de,f,O),T===null?C=de:T.sibling=de,T=de,N=U}if(A.done)return n(h,N),Y&&en(h,O),C;if(N===null){for(;!A.done;O++,A=m.next())A=d(h,A.value,k),A!==null&&(f=a(A,f,O),T===null?C=A:T.sibling=A,T=A);return Y&&en(h,O),C}for(N=r(h,N);!A.done;O++,A=m.next())A=w(N,h,O,A.value,k),A!==null&&(e&&A.alternate!==null&&N.delete(A.key===null?O:A.key),f=a(A,f,O),T===null?C=A:T.sibling=A,T=A);return e&&N.forEach(function(Te){return t(h,Te)}),Y&&en(h,O),C}function E(h,f,m,k){if(typeof m=="object"&&m!==null&&m.type===Cn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case ai:e:{for(var C=m.key,T=f;T!==null;){if(T.key===C){if(C=m.type,C===Cn){if(T.tag===7){n(h,T.sibling),f=i(T,m.props.children),f.return=h,h=f;break e}}else if(T.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Ot&&wu(C)===T.type){n(h,T.sibling),f=i(T,m.props),f.ref=or(h,T,m),f.return=h,h=f;break e}n(h,T);break}else t(h,T);T=T.sibling}m.type===Cn?(f=un(m.props.children,h.mode,k,m.key),f.return=h,h=f):(k=zi(m.type,m.key,m.props,null,h.mode,k),k.ref=or(h,f,m),k.return=h,h=k)}return o(h);case jn:e:{for(T=m.key;f!==null;){if(f.key===T)if(f.tag===4&&f.stateNode.containerInfo===m.containerInfo&&f.stateNode.implementation===m.implementation){n(h,f.sibling),f=i(f,m.children||[]),f.return=h,h=f;break e}else{n(h,f);break}else t(h,f);f=f.sibling}f=xo(m,h.mode,k),f.return=h,h=f}return o(h);case Ot:return T=m._init,E(h,f,T(m._payload),k)}if(dr(m))return g(h,f,m,k);if(tr(m))return x(h,f,m,k);vi(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,f!==null&&f.tag===6?(n(h,f.sibling),f=i(f,m),f.return=h,h=f):(n(h,f),f=yo(m,h.mode,k),f.return=h,h=f),o(h)):n(h,f)}return E}var Wn=Mp(!0),Ip=Mp(!1),Ji=Yt(null),Zi=null,Pn=null,Zl=null;function es(){Zl=Pn=Zi=null}function ts(e){var t=Ji.current;G(Ji),e._currentValue=t}function tl(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 Un(e,t){Zi=e,Zl=Pn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Oe=!0),e.firstContext=null)}function Ge(e){var t=e._currentValue;if(Zl!==e)if(e={context:e,memoizedValue:t,next:null},Pn===null){if(Zi===null)throw Error(S(308));Pn=e,Zi.dependencies={lanes:0,firstContext:e}}else Pn=Pn.next=e;return t}var an=null;function ns(e){an===null?an=[e]:an.push(e)}function Up(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,ns(t)):(n.next=i.next,i.next=n),t.interleaved=n,Nt(e,r)}function Nt(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 Pt=!1;function rs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $p(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 Et(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ht(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,I&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Nt(e,n)}return i=r.interleaved,i===null?(t.next=t,ns(r)):(t.next=i.next,i.next=t),r.interleaved=t,Nt(e,n)}function bi(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,Bl(e,n)}}function ku(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=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};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,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 ea(e,t,n,r){var i=e.updateQueue;Pt=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var s=l,u=s.next;s.next=null,o===null?a=u:o.next=u,o=s;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==o&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(a!==null){var d=i.baseState;o=0,c=u=s=null,l=a;do{var v=l.lane,w=l.eventTime;if((r&v)===v){c!==null&&(c=c.next={eventTime:w,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,x=l;switch(v=t,w=n,x.tag){case 1:if(g=x.payload,typeof g=="function"){d=g.call(w,d,v);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=x.payload,v=typeof g=="function"?g.call(w,d,v):g,v==null)break e;d=ee({},d,v);break e;case 2:Pt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,v=i.effects,v===null?i.effects=[l]:v.push(l))}else w={eventTime:w,lane:v,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=w,s=d):c=c.next=w,o|=v;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;v=l,l=v.next,v.next=null,i.lastBaseUpdate=v,i.shared.pending=null}}while(!0);if(c===null&&(s=d),i.baseState=s,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);mn|=o,e.lanes=o,e.memoizedState=d}}function Su(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=fo.transition;fo.transition={};try{e(!1),t()}finally{B=n,fo.transition=r}}function id(){return Ye().memoizedState}function Lh(e,t,n){var r=Wt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ad(e))od(t,n);else if(n=Up(e,t,n,r),n!==null){var i=Ne();rt(n,e,r,i),ld(n,t,r)}}function Fh(e,t,n){var r=Wt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ad(e))od(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,l=a(o,n);if(i.hasEagerState=!0,i.eagerState=l,it(l,o)){var s=t.interleaved;s===null?(i.next=i,ns(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=Up(e,t,i,r),n!==null&&(i=Ne(),rt(n,e,r,i),ld(n,t,r))}}function ad(e){var t=e.alternate;return e===Z||t!==null&&t===Z}function od(e,t){wr=na=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ld(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Bl(e,n)}}var ra={readContext:Ge,useCallback:we,useContext:we,useEffect:we,useImperativeHandle:we,useInsertionEffect:we,useLayoutEffect:we,useMemo:we,useReducer:we,useRef:we,useState:we,useDebugValue:we,useDeferredValue:we,useTransition:we,useMutableSource:we,useSyncExternalStore:we,useId:we,unstable_isNewReconciler:!1},Mh={readContext:Ge,useCallback:function(e,t){return pt().memoizedState=[e,t===void 0?null:t],e},useContext:Ge,useEffect:ju,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Di(4194308,4,Zp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Di(4194308,4,e,t)},useInsertionEffect:function(e,t){return Di(4,2,e,t)},useMemo:function(e,t){var n=pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pt();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=Lh.bind(null,Z,e),[r.memoizedState,e]},useRef:function(e){var t=pt();return e={current:e},t.memoizedState=e},useState:Eu,useDebugValue:ps,useDeferredValue:function(e){return pt().memoizedState=e},useTransition:function(){var e=Eu(!1),t=e[0];return e=Ah.bind(null,e[1]),pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Z,i=pt();if(Y){if(n===void 0)throw Error(S(407));n=n()}else{if(n=t(),pe===null)throw Error(S(349));fn&30||Wp(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,ju(Qp.bind(null,r,a,e),[e]),r.flags|=2048,Ir(9,qp.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=pt(),t=pe.identifierPrefix;if(Y){var n=St,r=kt;n=(r&~(1<<32-nt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Fr++,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[dt]=t,e[zr]=r,gd(e,t,!1,!1),t.stateNode=e;e:{switch(o=Fo(n,r),n){case"dialog":Q("cancel",e),Q("close",e),i=r;break;case"iframe":case"object":case"embed":Q("load",e),i=r;break;case"video":case"audio":for(i=0;iKn&&(t.flags|=128,r=!0,lr(a,!1),t.lanes=4194304)}else{if(!r)if(e=ta(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),lr(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Y)return ke(t),null}else 2*re()-a.renderingStartTime>Kn&&n!==1073741824&&(t.flags|=128,r=!0,lr(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=re(),t.sibling=null,n=J.current,q(J,r?n&1|2:n&1),t):(ke(t),null);case 22:case 23:return gs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Me&1073741824&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}function qh(e,t){switch(Xl(t),t.tag){case 1:return ze(t.type)&&Ki(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qn(),G(Pe),G(je),os(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return as(t),null;case 13:if(G(J),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));Vn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(J),null;case 4:return qn(),null;case 10:return ts(t.type._context),null;case 22:case 23:return gs(),null;case 24:return null;default:return null}}var yi=!1,Se=!1,Qh=typeof WeakSet=="function"?WeakSet:Set,D=null;function zn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){te(e,t,r)}else n.current=null}function cl(e,t,n){try{n()}catch(r){te(e,t,r)}}var Au=!1;function Kh(e,t){if(Qo=Vi,e=jp(),Gl(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,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,l=-1,s=-1,u=0,c=0,d=e,v=null;t:for(;;){for(var w;d!==n||i!==0&&d.nodeType!==3||(l=o+i),d!==a||r!==0&&d.nodeType!==3||(s=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(w=d.firstChild)!==null;)v=d,d=w;for(;;){if(d===e)break t;if(v===n&&++u===i&&(l=o),v===a&&++c===r&&(s=o),(w=d.nextSibling)!==null)break;d=v,v=d.parentNode}d=w}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ko={focusedElem:e,selectionRange:n},Vi=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var x=g.memoizedProps,E=g.memoizedState,h=t.stateNode,f=h.getSnapshotBeforeUpdate(t.elementType===t.type?x:Ze(t.type,x),E);h.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(k){te(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return g=Au,Au=!1,g}function kr(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 a=i.destroy;i.destroy=void 0,a!==void 0&&cl(t,n,a)}i=i.next}while(i!==r)}}function Ea(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 pl(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 wd(e){var t=e.alternate;t!==null&&(e.alternate=null,wd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dt],delete t[zr],delete t[Xo],delete t[Dh],delete t[Rh])),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 kd(e){return e.tag===5||e.tag===3||e.tag===4}function Lu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kd(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 dl(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=Qi));else if(r!==4&&(e=e.child,e!==null))for(dl(e,t,n),e=e.sibling;e!==null;)dl(e,t,n),e=e.sibling}function fl(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(fl(e,t,n),e=e.sibling;e!==null;)fl(e,t,n),e=e.sibling}var he=null,et=!1;function Rt(e,t,n){for(n=n.child;n!==null;)Sd(e,t,n),n=n.sibling}function Sd(e,t,n){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(ha,n)}catch{}switch(n.tag){case 5:Se||zn(n,t);case 6:var r=he,i=et;he=null,Rt(e,t,n),he=r,et=i,he!==null&&(et?(e=he,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):he.removeChild(n.stateNode));break;case 18:he!==null&&(et?(e=he,n=n.stateNode,e.nodeType===8?uo(e.parentNode,n):e.nodeType===1&&uo(e,n),Tr(e)):uo(he,n.stateNode));break;case 4:r=he,i=et,he=n.stateNode.containerInfo,et=!0,Rt(e,t,n),he=r,et=i;break;case 0:case 11:case 14:case 15:if(!Se&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&cl(n,t,o),i=i.next}while(i!==r)}Rt(e,t,n);break;case 1:if(!Se&&(zn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){te(n,t,l)}Rt(e,t,n);break;case 21:Rt(e,t,n);break;case 22:n.mode&1?(Se=(r=Se)||n.memoizedState!==null,Rt(e,t,n),Se=r):Rt(e,t,n);break;default:Rt(e,t,n)}}function Fu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Qh),t.forEach(function(r){var i=rv.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Je(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Yh(r/1960))-r,10e?16:e,Mt===null)var r=!1;else{if(e=Mt,Mt=null,oa=0,I&6)throw Error(S(331));var i=I;for(I|=4,D=e.current;D!==null;){var a=D,o=a.child;if(D.flags&16){var l=a.deletions;if(l!==null){for(var s=0;sre()-hs?sn(e,0):ms|=n),Ae(e,t)}function Dd(e,t){t===0&&(e.mode&1?(t=ui,ui<<=1,!(ui&130023424)&&(ui=4194304)):t=1);var n=Ne();e=Nt(e,t),e!==null&&(Hr(e,t,n),Ae(e,n))}function nv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Dd(e,n)}function rv(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(S(314))}r!==null&&r.delete(t),Dd(e,n)}var Rd;Rd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Pe.current)Oe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Oe=!1,Vh(e,t,n);Oe=!!(e.flags&131072)}else Oe=!1,Y&&t.flags&1048576&&Ap(t,Xi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ri(e,t),e=t.pendingProps;var i=Hn(t,je.current);Un(t,n),i=ss(null,t,r,e,i,n);var a=us();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,ze(r)?(a=!0,Gi(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,rs(t),i.updater=Sa,t.stateNode=i,i._reactInternals=t,rl(t,r,e,n),t=ol(null,t,r,!0,a,n)):(t.tag=0,Y&&a&&Yl(t),Ce(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ri(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=av(r),e=Ze(r,e),i){case 0:t=al(null,t,r,e,n);break e;case 1:t=Ou(null,t,r,e,n);break e;case 11:t=Du(null,t,r,e,n);break e;case 14:t=Ru(null,t,r,Ze(r.type,e),n);break e}throw Error(S(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ze(r,i),al(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ze(r,i),Ou(e,t,r,i,n);case 3:e:{if(md(t),e===null)throw Error(S(387));r=t.pendingProps,a=t.memoizedState,i=a.element,$p(e,t),ea(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Qn(Error(S(423)),t),t=Pu(e,t,r,n,i);break e}else if(r!==i){i=Qn(Error(S(424)),t),t=Pu(e,t,r,n,i);break e}else for(Ie=Bt(t.stateNode.containerInfo.firstChild),Ue=t,Y=!0,tt=null,n=Ip(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vn(),r===i){t=_t(e,t,n);break e}Ce(e,t,r,n)}t=t.child}return t;case 5:return Bp(t),e===null&&el(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Go(r,i)?o=null:a!==null&&Go(r,a)&&(t.flags|=32),fd(e,t),Ce(e,t,o,n),t.child;case 6:return e===null&&el(t),null;case 13:return hd(e,t,n);case 4:return is(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wn(t,null,r,n):Ce(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ze(r,i),Du(e,t,r,i,n);case 7:return Ce(e,t,t.pendingProps,n),t.child;case 8:return Ce(e,t,t.pendingProps.children,n),t.child;case 12:return Ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,q(Ji,r._currentValue),r._currentValue=o,a!==null)if(it(a.value,o)){if(a.children===i.children&&!Pe.current){t=_t(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){o=a.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(a.tag===1){s=Et(-1,n&-n),s.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),tl(a.return,n,t),l.lanes|=n;break}s=s.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(S(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),tl(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Ce(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Un(t,n),i=Ge(i),r=r(i),t.flags|=1,Ce(e,t,r,n),t.child;case 14:return r=t.type,i=Ze(r,t.pendingProps),i=Ze(r.type,i),Ru(e,t,r,i,n);case 15:return pd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ze(r,i),Ri(e,t),t.tag=1,ze(r)?(e=!0,Gi(t)):e=!1,Un(t,n),sd(t,r,i),rl(t,r,i,n),ol(null,t,r,!0,e,n);case 19:return vd(e,t,n);case 22:return dd(e,t,n)}throw Error(S(156,t.tag))};function Od(e,t){return ap(e,t)}function iv(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 Qe(e,t,n,r){return new iv(e,t,n,r)}function xs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function av(e){if(typeof e=="function")return xs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ml)return 11;if(e===Il)return 14}return 2}function qt(e,t){var n=e.alternate;return n===null?(n=Qe(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 zi(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")xs(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Cn:return un(n.children,i,a,t);case Fl:o=8,i|=8;break;case _o:return e=Qe(12,n,t,i|2),e.elementType=_o,e.lanes=a,e;case bo:return e=Qe(13,n,t,i),e.elementType=bo,e.lanes=a,e;case To:return e=Qe(19,n,t,i),e.elementType=To,e.lanes=a,e;case Bc:return Ca(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Uc:o=10;break e;case $c:o=9;break e;case Ml:o=11;break e;case Il:o=14;break e;case Ot:o=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return t=Qe(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function un(e,t,n,r){return e=Qe(7,e,r,t),e.lanes=n,e}function Ca(e,t,n,r){return e=Qe(22,e,r,t),e.elementType=Bc,e.lanes=n,e.stateNode={isHidden:!1},e}function yo(e,t,n){return e=Qe(6,e,null,t),e.lanes=n,e}function xo(e,t,n){return t=Qe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ov(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=Ja(0),this.expirationTimes=Ja(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ja(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ws(e,t,n,r,i,a,o,l,s){return e=new ov(e,t,n,l,s),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Qe(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},rs(a),e}function lv(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ld)}catch(e){console.error(e)}}Ld(),Lc.exports=Be;var dv=Lc.exports,Wu=dv;Co.createRoot=Wu.createRoot,Co.hydrateRoot=Wu.hydrateRoot;function Fd(e,t){return function(){return e.apply(t,arguments)}}const{toString:fv}=Object.prototype,{getPrototypeOf:js}=Object,{iterator:Da,toStringTag:Md}=Symbol,Ra=(e=>t=>{const n=fv.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),at=e=>(e=e.toLowerCase(),t=>Ra(t)===e),Oa=e=>t=>typeof t===e,{isArray:er}=Array,Gn=Oa("undefined");function Qr(e){return e!==null&&!Gn(e)&&e.constructor!==null&&!Gn(e.constructor)&&Le(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Id=at("ArrayBuffer");function mv(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Id(e.buffer),t}const hv=Oa("string"),Le=Oa("function"),Ud=Oa("number"),Kr=e=>e!==null&&typeof e=="object",vv=e=>e===!0||e===!1,Ai=e=>{if(Ra(e)!=="object")return!1;const t=js(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Md in e)&&!(Da in e)},gv=e=>{if(!Kr(e)||Qr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},yv=at("Date"),xv=at("File"),wv=at("Blob"),kv=at("FileList"),Sv=e=>Kr(e)&&Le(e.pipe),Ev=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Le(e.append)&&((t=Ra(e))==="formdata"||t==="object"&&Le(e.toString)&&e.toString()==="[object FormData]"))},jv=at("URLSearchParams"),[Cv,Nv,_v,bv]=["ReadableStream","Request","Response","Headers"].map(at),Tv=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Gr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),er(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const ln=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Bd=e=>!Gn(e)&&e!==ln;function yl(){const{caseless:e,skipUndefined:t}=Bd(this)&&this||{},n={},r=(i,a)=>{const o=e&&$d(n,a)||a;Ai(n[o])&&Ai(i)?n[o]=yl(n[o],i):Ai(i)?n[o]=yl({},i):er(i)?n[o]=i.slice():(!t||!Gn(i))&&(n[o]=i)};for(let i=0,a=arguments.length;i(Gr(t,(i,a)=>{n&&Le(i)?Object.defineProperty(e,a,{value:Fd(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,a,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Rv=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ov=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Pv=(e,t,n,r)=>{let i,a,o;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=n!==!1&&js(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},zv=(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},Av=e=>{if(!e)return null;if(er(e))return e;let t=e.length;if(!Ud(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Lv=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&js(Uint8Array)),Fv=(e,t)=>{const r=(e&&e[Da]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},Mv=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Iv=at("HTMLFormElement"),Uv=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),qu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),$v=at("RegExp"),Hd=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Gr(n,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(r[a]=o||i)}),Object.defineProperties(e,r)},Bv=e=>{Hd(e,(t,n)=>{if(Le(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Le(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+"'")})}})},Hv=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return er(e)?r(e):r(String(e).split(t)),n},Vv=()=>{},Wv=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function qv(e){return!!(e&&Le(e.append)&&e[Md]==="FormData"&&e[Da])}const Qv=e=>{const t=new Array(10),n=(r,i)=>{if(Kr(r)){if(t.indexOf(r)>=0)return;if(Qr(r))return r;if(!("toJSON"in r)){t[i]=r;const a=er(r)?[]:{};return Gr(r,(o,l)=>{const s=n(o,i+1);!Gn(s)&&(a[l]=s)}),t[i]=void 0,a}}return r};return n(e,0)},Kv=at("AsyncFunction"),Gv=e=>e&&(Kr(e)||Le(e))&&Le(e.then)&&Le(e.catch),Vd=((e,t)=>e?setImmediate:t?((n,r)=>(ln.addEventListener("message",({source:i,data:a})=>{i===ln&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),ln.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Le(ln.postMessage)),Yv=typeof queueMicrotask<"u"?queueMicrotask.bind(ln):typeof process<"u"&&process.nextTick||Vd,Xv=e=>e!=null&&Le(e[Da]),y={isArray:er,isArrayBuffer:Id,isBuffer:Qr,isFormData:Ev,isArrayBufferView:mv,isString:hv,isNumber:Ud,isBoolean:vv,isObject:Kr,isPlainObject:Ai,isEmptyObject:gv,isReadableStream:Cv,isRequest:Nv,isResponse:_v,isHeaders:bv,isUndefined:Gn,isDate:yv,isFile:xv,isBlob:wv,isRegExp:$v,isFunction:Le,isStream:Sv,isURLSearchParams:jv,isTypedArray:Lv,isFileList:kv,forEach:Gr,merge:yl,extend:Dv,trim:Tv,stripBOM:Rv,inherits:Ov,toFlatObject:Pv,kindOf:Ra,kindOfTest:at,endsWith:zv,toArray:Av,forEachEntry:Fv,matchAll:Mv,isHTMLForm:Iv,hasOwnProperty:qu,hasOwnProp:qu,reduceDescriptors:Hd,freezeMethods:Bv,toObjectSet:Hv,toCamelCase:Uv,noop:Vv,toFiniteNumber:Wv,findKey:$d,global:ln,isContextDefined:Bd,isSpecCompliantForm:qv,toJSONObject:Qv,isAsyncFn:Kv,isThenable:Gv,setImmediate:Vd,asap:Yv,isIterable:Xv};let z=class Wd extends Error{static from(t,n,r,i,a,o){const l=new Wd(t.message,n||t.code,r,i,a);return l.cause=t,l.name=t.name,o&&Object.assign(l,o),l}constructor(t,n,r,i,a){super(t),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),a&&(this.response=a,this.status=a.status)}toJSON(){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:y.toJSONObject(this.config),code:this.code,status:this.status}}};z.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";z.ERR_BAD_OPTION="ERR_BAD_OPTION";z.ECONNABORTED="ECONNABORTED";z.ETIMEDOUT="ETIMEDOUT";z.ERR_NETWORK="ERR_NETWORK";z.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";z.ERR_DEPRECATED="ERR_DEPRECATED";z.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";z.ERR_BAD_REQUEST="ERR_BAD_REQUEST";z.ERR_CANCELED="ERR_CANCELED";z.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";z.ERR_INVALID_URL="ERR_INVALID_URL";const Jv=null;function xl(e){return y.isPlainObject(e)||y.isArray(e)}function qd(e){return y.endsWith(e,"[]")?e.slice(0,-2):e}function Qu(e,t,n){return e?e.concat(t).map(function(i,a){return i=qd(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function Zv(e){return y.isArray(e)&&!e.some(xl)}const eg=y.toFlatObject(y,{},null,function(t){return/^is[A-Z]/.test(t)});function Pa(e,t,n){if(!y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,E){return!y.isUndefined(E[x])});const r=n.metaTokens,i=n.visitor||c,a=n.dots,o=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&y.isSpecCompliantForm(t);if(!y.isFunction(i))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(y.isDate(g))return g.toISOString();if(y.isBoolean(g))return g.toString();if(!s&&y.isBlob(g))throw new z("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(g)||y.isTypedArray(g)?s&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,x,E){let h=g;if(g&&!E&&typeof g=="object"){if(y.endsWith(x,"{}"))x=r?x:x.slice(0,-2),g=JSON.stringify(g);else if(y.isArray(g)&&Zv(g)||(y.isFileList(g)||y.endsWith(x,"[]"))&&(h=y.toArray(g)))return x=qd(x),h.forEach(function(m,k){!(y.isUndefined(m)||m===null)&&t.append(o===!0?Qu([x],k,a):o===null?x:x+"[]",u(m))}),!1}return xl(g)?!0:(t.append(Qu(E,x,a),u(g)),!1)}const d=[],v=Object.assign(eg,{defaultVisitor:c,convertValue:u,isVisitable:xl});function w(g,x){if(!y.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+x.join("."));d.push(g),y.forEach(g,function(h,f){(!(y.isUndefined(h)||h===null)&&i.call(t,h,y.isString(f)?f.trim():f,x,v))===!0&&w(h,x?x.concat(f):[f])}),d.pop()}}if(!y.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Ku(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Cs(e,t){this._pairs=[],e&&Pa(e,this,t)}const Qd=Cs.prototype;Qd.append=function(t,n){this._pairs.push([t,n])};Qd.toString=function(t){const n=t?function(r){return t.call(this,r,Ku)}:Ku;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function tg(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Kd(e,t,n){if(!t)return e;const r=n&&n.encode||tg,i=y.isFunction(n)?{serialize:n}:n,a=i&&i.serialize;let o;if(a?o=a(t,i):o=y.isURLSearchParams(t)?t.toString():new Cs(t,i).toString(r),o){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Gu{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){y.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Gd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ng=typeof URLSearchParams<"u"?URLSearchParams:Cs,rg=typeof FormData<"u"?FormData:null,ig=typeof Blob<"u"?Blob:null,ag={isBrowser:!0,classes:{URLSearchParams:ng,FormData:rg,Blob:ig},protocols:["http","https","file","blob","url","data"]},Ns=typeof window<"u"&&typeof document<"u",wl=typeof navigator=="object"&&navigator||void 0,og=Ns&&(!wl||["ReactNative","NativeScript","NS"].indexOf(wl.product)<0),lg=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",sg=Ns&&window.location.href||"http://localhost",ug=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ns,hasStandardBrowserEnv:og,hasStandardBrowserWebWorkerEnv:lg,navigator:wl,origin:sg},Symbol.toStringTag,{value:"Module"})),Ee={...ug,...ag};function cg(e,t){return Pa(e,new Ee.classes.URLSearchParams,{visitor:function(n,r,i,a){return Ee.isNode&&y.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function pg(e){return y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function dg(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r=n.length;return o=!o&&y.isArray(i)?i.length:o,s?(y.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!l):((!i[o]||!y.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],a)&&y.isArray(i[o])&&(i[o]=dg(i[o])),!l)}if(y.isFormData(e)&&y.isFunction(e.entries)){const n={};return y.forEachEntry(e,(r,i)=>{t(pg(r),i,n,0)}),n}return null}function fg(e,t,n){if(y.isString(e))try{return(t||JSON.parse)(e),y.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Yr={transitional:Gd,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=y.isObject(t);if(a&&y.isHTMLForm(t)&&(t=new FormData(t)),y.isFormData(t))return i?JSON.stringify(Yd(t)):t;if(y.isArrayBuffer(t)||y.isBuffer(t)||y.isStream(t)||y.isFile(t)||y.isBlob(t)||y.isReadableStream(t))return t;if(y.isArrayBufferView(t))return t.buffer;if(y.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return cg(t,this.formSerializer).toString();if((l=y.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Pa(l?{"files[]":t}:t,s&&new s,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),fg(t)):t}],transformResponse:[function(t){const n=this.transitional||Yr.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(y.isResponse(t)||y.isReadableStream(t))return t;if(t&&y.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(l){if(o)throw l.name==="SyntaxError"?z.from(l,z.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ee.classes.FormData,Blob:Ee.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};y.forEach(["delete","get","head","post","put","patch"],e=>{Yr.headers[e]={}});const mg=y.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"]),hg=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]&&mg[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Yu=Symbol("internals");function ur(e){return e&&String(e).trim().toLowerCase()}function Li(e){return e===!1||e==null?e:y.isArray(e)?e.map(Li):String(e)}function vg(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 gg=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function wo(e,t,n,r,i){if(y.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!y.isString(t)){if(y.isString(r))return t.indexOf(r)!==-1;if(y.isRegExp(r))return r.test(t)}}function yg(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function xg(e,t){const n=y.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,o){return this[r].call(this,t,i,a,o)},configurable:!0})})}let Fe=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(l,s,u){const c=ur(s);if(!c)throw new Error("header name must be a non-empty string");const d=y.findKey(i,c);(!d||i[d]===void 0||u===!0||u===void 0&&i[d]!==!1)&&(i[d||s]=Li(l))}const o=(l,s)=>y.forEach(l,(u,c)=>a(u,c,s));if(y.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(y.isString(t)&&(t=t.trim())&&!gg(t))o(hg(t),n);else if(y.isObject(t)&&y.isIterable(t)){let l={},s,u;for(const c of t){if(!y.isArray(c))throw TypeError("Object iterator must return a key-value pair");l[u=c[0]]=(s=l[u])?y.isArray(s)?[...s,c[1]]:[s,c[1]]:c[1]}o(l,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=ur(t),t){const r=y.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return vg(i);if(y.isFunction(n))return n.call(this,i,r);if(y.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ur(t),t){const r=y.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||wo(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(o){if(o=ur(o),o){const l=y.findKey(r,o);l&&(!n||wo(r,r[l],l,n))&&(delete r[l],i=!0)}}return y.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||wo(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return y.forEach(this,(i,a)=>{const o=y.findKey(r,a);if(o){n[o]=Li(i),delete n[a];return}const l=t?yg(a):String(a).trim();l!==a&&delete n[a],n[l]=Li(i),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return y.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&y.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(` +`)}getSetCookie(){return this.get("set-cookie")||[]}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[Yu]=this[Yu]={accessors:{}}).accessors,i=this.prototype;function a(o){const l=ur(o);r[l]||(xg(i,o),r[l]=!0)}return y.isArray(t)?t.forEach(a):a(t),this}};Fe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);y.reduceDescriptors(Fe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});y.freezeMethods(Fe);function ko(e,t){const n=this||Yr,r=t||n,i=Fe.from(r.headers);let a=r.data;return y.forEach(e,function(l){a=l.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Xd(e){return!!(e&&e.__CANCEL__)}let Xr=class extends z{constructor(t,n,r){super(t??"canceled",z.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Jd(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new z("Request failed with status code "+n.status,[z.ERR_BAD_REQUEST,z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function wg(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function kg(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(s){const u=Date.now(),c=r[a];o||(o=u),n[i]=s,r[i]=u;let d=a,v=0;for(;d!==i;)v+=n[d++],d=d%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-o{n=c,i=null,a&&(clearTimeout(a),a=null),e(...u)};return[(...u)=>{const c=Date.now(),d=c-n;d>=r?o(u,c):(i=u,a||(a=setTimeout(()=>{a=null,o(i)},r-d)))},()=>i&&o(i)]}const ua=(e,t,n=3)=>{let r=0;const i=kg(50,250);return Sg(a=>{const o=a.loaded,l=a.lengthComputable?a.total:void 0,s=o-r,u=i(s),c=o<=l;r=o;const d={loaded:o,total:l,progress:l?o/l:void 0,bytes:s,rate:u||void 0,estimated:u&&l&&c?(l-o)/u:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(d)},n)},Xu=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ju=e=>(...t)=>y.asap(()=>e(...t)),Eg=Ee.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ee.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ee.origin),Ee.navigator&&/(msie|trident)/i.test(Ee.navigator.userAgent)):()=>!0,jg=Ee.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];y.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),y.isString(r)&&l.push(`path=${r}`),y.isString(i)&&l.push(`domain=${i}`),a===!0&&l.push("secure"),y.isString(o)&&l.push(`SameSite=${o}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Cg(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ng(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Zd(e,t,n){let r=!Cg(t);return e&&(r||n==!1)?Ng(e,t):t}const Zu=e=>e instanceof Fe?{...e}:e;function vn(e,t){t=t||{};const n={};function r(u,c,d,v){return y.isPlainObject(u)&&y.isPlainObject(c)?y.merge.call({caseless:v},u,c):y.isPlainObject(c)?y.merge({},c):y.isArray(c)?c.slice():c}function i(u,c,d,v){if(y.isUndefined(c)){if(!y.isUndefined(u))return r(void 0,u,d,v)}else return r(u,c,d,v)}function a(u,c){if(!y.isUndefined(c))return r(void 0,c)}function o(u,c){if(y.isUndefined(c)){if(!y.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function l(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const s={url:a,method:a,data:a,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:l,headers:(u,c,d)=>i(Zu(u),Zu(c),d,!0)};return y.forEach(Object.keys({...e,...t}),function(c){const d=s[c]||i,v=d(e[c],t[c],c);y.isUndefined(v)&&d!==l||(n[c]=v)}),n}const ef=e=>{const t=vn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:l}=t;if(t.headers=o=Fe.from(o),t.url=Kd(Zd(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),y.isFormData(n)){if(Ee.hasStandardBrowserEnv||Ee.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(y.isFunction(n.getHeaders)){const s=n.getHeaders(),u=["content-type","content-length"];Object.entries(s).forEach(([c,d])=>{u.includes(c.toLowerCase())&&o.set(c,d)})}}if(Ee.hasStandardBrowserEnv&&(r&&y.isFunction(r)&&(r=r(t)),r||r!==!1&&Eg(t.url))){const s=i&&a&&jg.read(a);s&&o.set(i,s)}return t},_g=typeof XMLHttpRequest<"u",bg=_g&&function(e){return new Promise(function(n,r){const i=ef(e);let a=i.data;const o=Fe.from(i.headers).normalize();let{responseType:l,onUploadProgress:s,onDownloadProgress:u}=i,c,d,v,w,g;function x(){w&&w(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let E=new XMLHttpRequest;E.open(i.method.toUpperCase(),i.url,!0),E.timeout=i.timeout;function h(){if(!E)return;const m=Fe.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),C={data:!l||l==="text"||l==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:m,config:e,request:E};Jd(function(N){n(N),x()},function(N){r(N),x()},C),E=null}"onloadend"in E?E.onloadend=h:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(h)},E.onabort=function(){E&&(r(new z("Request aborted",z.ECONNABORTED,e,E)),E=null)},E.onerror=function(k){const C=k&&k.message?k.message:"Network Error",T=new z(C,z.ERR_NETWORK,e,E);T.event=k||null,r(T),E=null},E.ontimeout=function(){let k=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const C=i.transitional||Gd;i.timeoutErrorMessage&&(k=i.timeoutErrorMessage),r(new z(k,C.clarifyTimeoutError?z.ETIMEDOUT:z.ECONNABORTED,e,E)),E=null},a===void 0&&o.setContentType(null),"setRequestHeader"in E&&y.forEach(o.toJSON(),function(k,C){E.setRequestHeader(C,k)}),y.isUndefined(i.withCredentials)||(E.withCredentials=!!i.withCredentials),l&&l!=="json"&&(E.responseType=i.responseType),u&&([v,g]=ua(u,!0),E.addEventListener("progress",v)),s&&E.upload&&([d,w]=ua(s),E.upload.addEventListener("progress",d),E.upload.addEventListener("loadend",w)),(i.cancelToken||i.signal)&&(c=m=>{E&&(r(!m||m.type?new Xr(null,e,E):m),E.abort(),E=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const f=wg(i.url);if(f&&Ee.protocols.indexOf(f)===-1){r(new z("Unsupported protocol "+f+":",z.ERR_BAD_REQUEST,e));return}E.send(a||null)})},Tg=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const a=function(u){if(!i){i=!0,l();const c=u instanceof Error?u:this.reason;r.abort(c instanceof z?c:new Xr(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,a(new z(`timeout of ${t}ms exceeded`,z.ETIMEDOUT))},t);const l=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:s}=r;return s.unsubscribe=()=>y.asap(l),s}},Dg=function*(e,t){let n=e.byteLength;if(n{const i=Rg(e,t);let a=0,o,l=s=>{o||(o=!0,r&&r(s))};return new ReadableStream({async pull(s){try{const{done:u,value:c}=await i.next();if(u){l(),s.close();return}let d=c.byteLength;if(n){let v=a+=d;n(v)}s.enqueue(new Uint8Array(c))}catch(u){throw l(u),u}},cancel(s){return l(s),i.return()}},{highWaterMark:2})},tc=64*1024,{isFunction:ki}=y,Pg=(({Request:e,Response:t})=>({Request:e,Response:t}))(y.global),{ReadableStream:nc,TextEncoder:rc}=y.global,ic=(e,...t)=>{try{return!!e(...t)}catch{return!1}},zg=e=>{e=y.merge.call({skipUndefined:!0},Pg,e);const{fetch:t,Request:n,Response:r}=e,i=t?ki(t):typeof fetch=="function",a=ki(n),o=ki(r);if(!i)return!1;const l=i&&ki(nc),s=i&&(typeof rc=="function"?(g=>x=>g.encode(x))(new rc):async g=>new Uint8Array(await new n(g).arrayBuffer())),u=a&&l&&ic(()=>{let g=!1;const x=new n(Ee.origin,{body:new nc,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!x}),c=o&&l&&ic(()=>y.isReadableStream(new r("").body)),d={stream:c&&(g=>g.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!d[g]&&(d[g]=(x,E)=>{let h=x&&x[g];if(h)return h.call(x);throw new z(`Response type '${g}' is not supported`,z.ERR_NOT_SUPPORT,E)})});const v=async g=>{if(g==null)return 0;if(y.isBlob(g))return g.size;if(y.isSpecCompliantForm(g))return(await new n(Ee.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(y.isArrayBufferView(g)||y.isArrayBuffer(g))return g.byteLength;if(y.isURLSearchParams(g)&&(g=g+""),y.isString(g))return(await s(g)).byteLength},w=async(g,x)=>{const E=y.toFiniteNumber(g.getContentLength());return E??v(x)};return async g=>{let{url:x,method:E,data:h,signal:f,cancelToken:m,timeout:k,onDownloadProgress:C,onUploadProgress:T,responseType:N,headers:O,withCredentials:U="same-origin",fetchOptions:A}=ef(g),de=t||fetch;N=N?(N+"").toLowerCase():"text";let Te=Tg([f,m&&m.toAbortSignal()],k),ye=null;const H=Te&&Te.unsubscribe&&(()=>{Te.unsubscribe()});let fe;try{if(T&&u&&E!=="get"&&E!=="head"&&(fe=await w(O,h))!==0){let M=new n(x,{method:"POST",body:h,duplex:"half"}),$;if(y.isFormData(h)&&($=M.headers.get("content-type"))&&O.setContentType($),M.body){const[Xe,oe]=Xu(fe,ua(Ju(T)));h=ec(M.body,tc,Xe,oe)}}y.isString(U)||(U=U?"include":"omit");const xe=a&&"credentials"in n.prototype,vt={...A,signal:Te,method:E.toUpperCase(),headers:O.normalize().toJSON(),body:h,duplex:"half",credentials:xe?U:void 0};ye=a&&new n(x,vt);let _=await(a?de(ye,A):de(x,vt));const R=c&&(N==="stream"||N==="response");if(c&&(C||R&&H)){const M={};["status","statusText","headers"].forEach(De=>{M[De]=_[De]});const $=y.toFiniteNumber(_.headers.get("content-length")),[Xe,oe]=C&&Xu($,ua(Ju(C),!0))||[];_=new r(ec(_.body,tc,Xe,()=>{oe&&oe(),H&&H()}),M)}N=N||"text";let L=await d[y.findKey(d,N)||"text"](_,g);return!R&&H&&H(),await new Promise((M,$)=>{Jd(M,$,{data:L,headers:Fe.from(_.headers),status:_.status,statusText:_.statusText,config:g,request:ye})})}catch(xe){throw H&&H(),xe&&xe.name==="TypeError"&&/Load failed|fetch/i.test(xe.message)?Object.assign(new z("Network Error",z.ERR_NETWORK,g,ye),{cause:xe.cause||xe}):z.from(xe,xe&&xe.code,g,ye)}}},Ag=new Map,tf=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,a=[r,i,n];let o=a.length,l=o,s,u,c=Ag;for(;l--;)s=a[l],u=c.get(s),u===void 0&&c.set(s,u=l?new Map:zg(t)),c=u;return u};tf();const _s={http:Jv,xhr:bg,fetch:{get:tf}};y.forEach(_s,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ac=e=>`- ${e}`,Lg=e=>y.isFunction(e)||e===null||e===!1;function Fg(e,t){e=y.isArray(e)?e:[e];const{length:n}=e;let r,i;const a={};for(let o=0;o`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=n?o.length>1?`since : +`+o.map(ac).join(` +`):" "+ac(o[0]):"as no adapter specified";throw new z("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return i}const nf={getAdapter:Fg,adapters:_s};function So(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Xr(null,e)}function oc(e){return So(e),e.headers=Fe.from(e.headers),e.data=ko.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),nf.getAdapter(e.adapter||Yr.adapter,e)(e).then(function(r){return So(e),r.data=ko.call(e,e.transformResponse,r),r.headers=Fe.from(r.headers),r},function(r){return Xd(r)||(So(e),r&&r.response&&(r.response.data=ko.call(e,e.transformResponse,r.response),r.response.headers=Fe.from(r.response.headers))),Promise.reject(r)})}const rf="1.13.4",za={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{za[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const lc={};za.transitional=function(t,n,r){function i(a,o){return"[Axios v"+rf+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,l)=>{if(t===!1)throw new z(i(o," has been removed"+(n?" in "+n:"")),z.ERR_DEPRECATED);return n&&!lc[o]&&(lc[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,l):!0}};za.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Mg(e,t,n){if(typeof e!="object")throw new z("options must be an object",z.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=t[a];if(o){const l=e[a],s=l===void 0||o(l,a,e);if(s!==!0)throw new z("option "+a+" must be "+s,z.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new z("Unknown option "+a,z.ERR_BAD_OPTION)}}const Fi={assertOptions:Mg,validators:za},ut=Fi.validators;let cn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Gu,response:new Gu}}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 a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=vn(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&Fi.assertOptions(r,{silentJSONParsing:ut.transitional(ut.boolean),forcedJSONParsing:ut.transitional(ut.boolean),clarifyTimeoutError:ut.transitional(ut.boolean)},!1),i!=null&&(y.isFunction(i)?n.paramsSerializer={serialize:i}:Fi.assertOptions(i,{encode:ut.function,serialize:ut.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Fi.assertOptions(n,{baseUrl:ut.spelling("baseURL"),withXsrfToken:ut.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&y.merge(a.common,a[n.method]);a&&y.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),n.headers=Fe.concat(o,a);const l=[];let s=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(s=s&&x.synchronous,l.unshift(x.fulfilled,x.rejected))});const u=[];this.interceptors.response.forEach(function(x){u.push(x.fulfilled,x.rejected)});let c,d=0,v;if(!s){const g=[oc.bind(this),void 0];for(g.unshift(...l),g.push(...u),v=g.length,c=Promise.resolve(n);d{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(l=>{r.subscribe(l),a=l}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,l){r.reason||(r.reason=new Xr(a,o,l),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 af(function(i){t=i}),cancel:t}}};function Ug(e){return function(n){return e.apply(null,n)}}function $g(e){return y.isObject(e)&&e.isAxiosError===!0}const kl={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(kl).forEach(([e,t])=>{kl[t]=e});function of(e){const t=new cn(e),n=Fd(cn.prototype.request,t);return y.extend(n,cn.prototype,t,{allOwnKeys:!0}),y.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return of(vn(e,i))},n}const ie=of(Yr);ie.Axios=cn;ie.CanceledError=Xr;ie.CancelToken=Ig;ie.isCancel=Xd;ie.VERSION=rf;ie.toFormData=Pa;ie.AxiosError=z;ie.Cancel=ie.CanceledError;ie.all=function(t){return Promise.all(t)};ie.spread=Ug;ie.isAxiosError=$g;ie.mergeConfig=vn;ie.AxiosHeaders=Fe;ie.formToJSON=e=>Yd(y.isHTMLForm(e)?new FormData(e):e);ie.getAdapter=nf.getAdapter;ie.HttpStatusCode=kl;ie.default=ie;const{Axios:k0,AxiosError:S0,CanceledError:E0,isCancel:j0,CancelToken:C0,VERSION:N0,all:_0,Cancel:b0,isAxiosError:T0,spread:D0,toFormData:R0,AxiosHeaders:O0,HttpStatusCode:P0,formToJSON:z0,getAdapter:A0,mergeConfig:L0}=ie,Bg="https://yuvis-web-based-rag.hf.space/api/v1",Aa=ie.create({baseURL:Bg,headers:{"Content-Type":"application/json"},maxRedirects:5}),Hg=async e=>{const t=new FormData;return t.append("file",e),(await Aa.post("/upload/",t,{headers:{"Content-Type":"multipart/form-data"}})).data},Vg=async(e,t,n)=>(await Aa.post("/query/",{query:e,mode:t,document_ids:n})).data,Wg=async()=>(await Aa.get("/documents/")).data,qg=async e=>{await Aa.delete(`/documents/${e}/`)};let Qg={data:""},Kg=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||Qg},Gg=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Yg=/\/\*[^]*?\*\/| +/g,sc=/\n+/g,Lt=(e,t)=>{let n="",r="",i="";for(let a in e){let o=e[a];a[0]=="@"?a[1]=="i"?n=a+" "+o+";":r+=a[1]=="f"?Lt(o,a):a+"{"+Lt(o,a[1]=="k"?"":t)+"}":typeof o=="object"?r+=Lt(o,t?t.replace(/([^,])+/g,l=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,s=>/&/.test(s)?s.replace(/&/g,l):l?l+" "+s:s)):a):o!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Lt.p?Lt.p(a,o):a+":"+o+";")}return n+(t&&i?t+"{"+i+"}":i)+r},yt={},lf=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+lf(e[n]);return t}return e},Xg=(e,t,n,r,i)=>{let a=lf(e),o=yt[a]||(yt[a]=(s=>{let u=0,c=11;for(;u>>0;return"go"+c})(a));if(!yt[o]){let s=a!==e?e:(u=>{let c,d,v=[{}];for(;c=Gg.exec(u.replace(Yg,""));)c[4]?v.shift():c[3]?(d=c[3].replace(sc," ").trim(),v.unshift(v[0][d]=v[0][d]||{})):v[0][c[1]]=c[2].replace(sc," ").trim();return v[0]})(e);yt[o]=Lt(i?{["@keyframes "+o]:s}:s,n?"":"."+o)}let l=n&&yt.g?yt.g:null;return n&&(yt.g=yt[o]),((s,u,c,d)=>{d?u.data=u.data.replace(d,s):u.data.indexOf(s)===-1&&(u.data=c?s+u.data:u.data+s)})(yt[o],t,r,l),o},Jg=(e,t,n)=>e.reduce((r,i,a)=>{let o=t[a];if(o&&o.call){let l=o(n),s=l&&l.props&&l.props.className||/^go/.test(l)&&l;o=s?"."+s:l&&typeof l=="object"?l.props?"":Lt(l,""):l===!1?"":l}return r+i+(o??"")},"");function La(e){let t=this||{},n=e.call?e(t.p):e;return Xg(n.unshift?n.raw?Jg(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,Kg(t.target),t.g,t.o,t.k)}let sf,Sl,El;La.bind({g:1});let bt=La.bind({k:1});function Zg(e,t,n,r){Lt.p=t,sf=e,Sl=n,El=r}function Jt(e,t){let n=this||{};return function(){let r=arguments;function i(a,o){let l=Object.assign({},a),s=l.className||i.className;n.p=Object.assign({theme:Sl&&Sl()},l),n.o=/ *go\d+/.test(s),l.className=La.apply(n,r)+(s?" "+s:"");let u=e;return e[0]&&(u=l.as||e,delete l.as),El&&u[0]&&El(l),sf(u,l)}return i}}var ey=e=>typeof e=="function",ca=(e,t)=>ey(e)?e(t):e,ty=(()=>{let e=0;return()=>(++e).toString()})(),uf=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),ny=20,bs="default",cf=(e,t)=>{let{toastLimit:n}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,n)};case 1:return{...e,toasts:e.toasts.map(o=>o.id===t.toast.id?{...o,...t.toast}:o)};case 2:let{toast:r}=t;return cf(e,{type:e.toasts.find(o=>o.id===r.id)?1:0,toast:r});case 3:let{toastId:i}=t;return{...e,toasts:e.toasts.map(o=>o.id===i||i===void 0?{...o,dismissed:!0,visible:!1}:o)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let a=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(o=>({...o,pauseDuration:o.pauseDuration+a}))}}},Mi=[],pf={toasts:[],pausedAt:void 0,settings:{toastLimit:ny}},ft={},df=(e,t=bs)=>{ft[t]=cf(ft[t]||pf,e),Mi.forEach(([n,r])=>{n===t&&r(ft[t])})},ff=e=>Object.keys(ft).forEach(t=>df(e,t)),ry=e=>Object.keys(ft).find(t=>ft[t].toasts.some(n=>n.id===e)),Fa=(e=bs)=>t=>{df(t,e)},iy={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},ay=(e={},t=bs)=>{let[n,r]=j.useState(ft[t]||pf),i=j.useRef(ft[t]);j.useEffect(()=>(i.current!==ft[t]&&r(ft[t]),Mi.push([t,r]),()=>{let o=Mi.findIndex(([l])=>l===t);o>-1&&Mi.splice(o,1)}),[t]);let a=n.toasts.map(o=>{var l,s,u;return{...e,...e[o.type],...o,removeDelay:o.removeDelay||((l=e[o.type])==null?void 0:l.removeDelay)||(e==null?void 0:e.removeDelay),duration:o.duration||((s=e[o.type])==null?void 0:s.duration)||(e==null?void 0:e.duration)||iy[o.type],style:{...e.style,...(u=e[o.type])==null?void 0:u.style,...o.style}}});return{...n,toasts:a}},oy=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||ty()}),Jr=e=>(t,n)=>{let r=oy(t,e,n);return Fa(r.toasterId||ry(r.id))({type:2,toast:r}),r.id},se=(e,t)=>Jr("blank")(e,t);se.error=Jr("error");se.success=Jr("success");se.loading=Jr("loading");se.custom=Jr("custom");se.dismiss=(e,t)=>{let n={type:3,toastId:e};t?Fa(t)(n):ff(n)};se.dismissAll=e=>se.dismiss(void 0,e);se.remove=(e,t)=>{let n={type:4,toastId:e};t?Fa(t)(n):ff(n)};se.removeAll=e=>se.remove(void 0,e);se.promise=(e,t,n)=>{let r=se.loading(t.loading,{...n,...n==null?void 0:n.loading});return typeof e=="function"&&(e=e()),e.then(i=>{let a=t.success?ca(t.success,i):void 0;return a?se.success(a,{id:r,...n,...n==null?void 0:n.success}):se.dismiss(r),i}).catch(i=>{let a=t.error?ca(t.error,i):void 0;a?se.error(a,{id:r,...n,...n==null?void 0:n.error}):se.dismiss(r)}),e};var ly=1e3,sy=(e,t="default")=>{let{toasts:n,pausedAt:r}=ay(e,t),i=j.useRef(new Map).current,a=j.useCallback((d,v=ly)=>{if(i.has(d))return;let w=setTimeout(()=>{i.delete(d),o({type:4,toastId:d})},v);i.set(d,w)},[]);j.useEffect(()=>{if(r)return;let d=Date.now(),v=n.map(w=>{if(w.duration===1/0)return;let g=(w.duration||0)+w.pauseDuration-(d-w.createdAt);if(g<0){w.visible&&se.dismiss(w.id);return}return setTimeout(()=>se.dismiss(w.id,t),g)});return()=>{v.forEach(w=>w&&clearTimeout(w))}},[n,r,t]);let o=j.useCallback(Fa(t),[t]),l=j.useCallback(()=>{o({type:5,time:Date.now()})},[o]),s=j.useCallback((d,v)=>{o({type:1,toast:{id:d,height:v}})},[o]),u=j.useCallback(()=>{r&&o({type:6,time:Date.now()})},[r,o]),c=j.useCallback((d,v)=>{let{reverseOrder:w=!1,gutter:g=8,defaultPosition:x}=v||{},E=n.filter(m=>(m.position||x)===(d.position||x)&&m.height),h=E.findIndex(m=>m.id===d.id),f=E.filter((m,k)=>km.visible).slice(...w?[f+1]:[0,f]).reduce((m,k)=>m+(k.height||0)+g,0)},[n]);return j.useEffect(()=>{n.forEach(d=>{if(d.dismissed)a(d.id,d.removeDelay);else{let v=i.get(d.id);v&&(clearTimeout(v),i.delete(d.id))}})},[n,a]),{toasts:n,handlers:{updateHeight:s,startPause:l,endPause:u,calculateOffset:c}}},uy=bt` +from { + transform: scale(0) rotate(45deg); + opacity: 0; +} +to { + transform: scale(1) rotate(45deg); + opacity: 1; +}`,cy=bt` +from { + transform: scale(0); + opacity: 0; +} +to { + transform: scale(1); + opacity: 1; +}`,py=bt` +from { + transform: scale(0) rotate(90deg); + opacity: 0; +} +to { + transform: scale(1) rotate(90deg); + opacity: 1; +}`,dy=Jt("div")` + width: 20px; + opacity: 0; + height: 20px; + border-radius: 10px; + background: ${e=>e.primary||"#ff4b4b"}; + position: relative; + transform: rotate(45deg); + + animation: ${uy} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; + animation-delay: 100ms; + + &:after, + &:before { + content: ''; + animation: ${cy} 0.15s ease-out forwards; + animation-delay: 150ms; + position: absolute; + border-radius: 3px; + opacity: 0; + background: ${e=>e.secondary||"#fff"}; + bottom: 9px; + left: 4px; + height: 2px; + width: 12px; + } + + &:before { + animation: ${py} 0.15s ease-out forwards; + animation-delay: 180ms; + transform: rotate(90deg); + } +`,fy=bt` + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +`,my=Jt("div")` + width: 12px; + height: 12px; + box-sizing: border-box; + border: 2px solid; + border-radius: 100%; + border-color: ${e=>e.secondary||"#e0e0e0"}; + border-right-color: ${e=>e.primary||"#616161"}; + animation: ${fy} 1s linear infinite; +`,hy=bt` +from { + transform: scale(0) rotate(45deg); + opacity: 0; +} +to { + transform: scale(1) rotate(45deg); + opacity: 1; +}`,vy=bt` +0% { + height: 0; + width: 0; + opacity: 0; +} +40% { + height: 0; + width: 6px; + opacity: 1; +} +100% { + opacity: 1; + height: 10px; +}`,gy=Jt("div")` + width: 20px; + opacity: 0; + height: 20px; + border-radius: 10px; + background: ${e=>e.primary||"#61d345"}; + position: relative; + transform: rotate(45deg); + + animation: ${hy} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; + animation-delay: 100ms; + &:after { + content: ''; + box-sizing: border-box; + animation: ${vy} 0.2s ease-out forwards; + opacity: 0; + animation-delay: 200ms; + position: absolute; + border-right: 2px solid; + border-bottom: 2px solid; + border-color: ${e=>e.secondary||"#fff"}; + bottom: 6px; + left: 6px; + height: 10px; + width: 6px; + } +`,yy=Jt("div")` + position: absolute; +`,xy=Jt("div")` + position: relative; + display: flex; + justify-content: center; + align-items: center; + min-width: 20px; + min-height: 20px; +`,wy=bt` +from { + transform: scale(0.6); + opacity: 0.4; +} +to { + transform: scale(1); + opacity: 1; +}`,ky=Jt("div")` + position: relative; + transform: scale(0.6); + opacity: 0.4; + min-width: 20px; + animation: ${wy} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; +`,Sy=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?j.createElement(ky,null,t):t:n==="blank"?null:j.createElement(xy,null,j.createElement(my,{...r}),n!=="loading"&&j.createElement(yy,null,n==="error"?j.createElement(dy,{...r}):j.createElement(gy,{...r})))},Ey=e=>` +0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;} +100% {transform: translate3d(0,0,0) scale(1); opacity:1;} +`,jy=e=>` +0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} +100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;} +`,Cy="0%{opacity:0;} 100%{opacity:1;}",Ny="0%{opacity:1;} 100%{opacity:0;}",_y=Jt("div")` + display: flex; + align-items: center; + background: #fff; + color: #363636; + line-height: 1.3; + will-change: transform; + box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); + max-width: 350px; + pointer-events: auto; + padding: 8px 10px; + border-radius: 8px; +`,by=Jt("div")` + display: flex; + justify-content: center; + margin: 4px 10px; + color: inherit; + flex: 1 1 auto; + white-space: pre-line; +`,Ty=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=uf()?[Cy,Ny]:[Ey(n),jy(n)];return{animation:t?`${bt(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${bt(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Dy=j.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?Ty(e.position||t||"top-center",e.visible):{opacity:0},a=j.createElement(Sy,{toast:e}),o=j.createElement(by,{...e.ariaProps},ca(e.message,e));return j.createElement(_y,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:a,message:o}):j.createElement(j.Fragment,null,a,o))});Zg(j.createElement);var Ry=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let a=j.useCallback(o=>{if(o){let l=()=>{let s=o.getBoundingClientRect().height;r(e,s)};l(),new MutationObserver(l).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return j.createElement("div",{ref:a,className:t,style:n},i)},Oy=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:uf()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},Py=La` + z-index: 9999; + > * { + pointer-events: auto; + } +`,Si=16,zy=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,toasterId:a,containerStyle:o,containerClassName:l})=>{let{toasts:s,handlers:u}=sy(n,a);return j.createElement("div",{"data-rht-toaster":a||"",style:{position:"fixed",zIndex:9999,top:Si,left:Si,right:Si,bottom:Si,pointerEvents:"none",...o},className:l,onMouseEnter:u.startPause,onMouseLeave:u.endPause},s.map(c=>{let d=c.position||t,v=u.calculateOffset(c,{reverseOrder:e,gutter:r,defaultPosition:t}),w=Oy(d,v);return j.createElement(Ry,{id:c.id,key:c.id,onHeightUpdate:u.updateHeight,className:c.visible?Py:"",style:w},c.type==="custom"?ca(c.message,c):i?i(c):j.createElement(Dy,{toast:c,position:d}))}))},En=se;const Ay={documents:[],selectedDocuments:[],currentQuery:"",queryMode:"hybrid",isLoading:!1,isUploading:!1,uploadProgress:0,currentAnswer:null,sidebarOpen:!0,theme:"light",settingsOpen:!1};function Ly(e,t){switch(t.type){case"SET_DOCUMENTS":return{...e,documents:t.payload};case"ADD_DOCUMENT":return{...e,documents:[t.payload,...e.documents]};case"REMOVE_DOCUMENT":return{...e,documents:e.documents.filter(n=>n.id!==t.payload),selectedDocuments:e.selectedDocuments.filter(n=>n!==t.payload)};case"SET_SELECTED_DOCUMENTS":return{...e,selectedDocuments:t.payload};case"TOGGLE_DOCUMENT_SELECTION":return{...e,selectedDocuments:e.selectedDocuments.includes(t.payload)?e.selectedDocuments.filter(n=>n!==t.payload):[...e.selectedDocuments,t.payload]};case"SET_CURRENT_QUERY":return{...e,currentQuery:t.payload};case"SET_QUERY_MODE":return{...e,queryMode:t.payload};case"SET_LOADING":return{...e,isLoading:t.payload};case"SET_UPLOADING":return{...e,isUploading:t.payload};case"SET_UPLOAD_PROGRESS":return{...e,uploadProgress:t.payload};case"SET_CURRENT_ANSWER":return{...e,currentAnswer:t.payload};case"TOGGLE_SIDEBAR":return{...e,sidebarOpen:!e.sidebarOpen};case"SET_THEME":return{...e,theme:t.payload};case"TOGGLE_SETTINGS":return{...e,settingsOpen:!e.settingsOpen};case"CLEAR_RESULTS":return{...e,currentAnswer:null};default:return e}}const mf=j.createContext(void 0);function Fy({children:e}){const[t,n]=j.useReducer(Ly,Ay);j.useEffect(()=>{const u=localStorage.getItem("theme");u&&(n({type:"SET_THEME",payload:u}),document.documentElement.classList.toggle("dark",u==="dark")),r()},[]),j.useEffect(()=>{document.documentElement.classList.toggle("dark",t.theme==="dark"),localStorage.setItem("theme",t.theme)},[t.theme]);const r=j.useCallback(async()=>{try{const u=await Wg();n({type:"SET_DOCUMENTS",payload:u.documents})}catch(u){console.error("Failed to load documents:",u)}},[]),i=j.useCallback(async u=>{n({type:"SET_UPLOADING",payload:!0}),n({type:"SET_UPLOAD_PROGRESS",payload:0});try{const c=await Hg(u);n({type:"SET_UPLOAD_PROGRESS",payload:100});const d={id:c.document_id,filename:c.filename||u.name,uploadDate:new Date().toISOString(),chunkCount:c.chunks_created,status:"ready"};n({type:"ADD_DOCUMENT",payload:d}),En.success(`Uploaded: ${u.name}`)}catch(c){En.error("Failed to upload file"),console.error("Upload error:",c)}finally{n({type:"SET_UPLOADING",payload:!1}),n({type:"SET_UPLOAD_PROGRESS",payload:0})}},[]),a=j.useCallback(async u=>{try{await qg(u),n({type:"REMOVE_DOCUMENT",payload:u}),En.success("Document deleted")}catch(c){En.error("Failed to delete document"),console.error("Delete error:",c)}},[]),o=j.useCallback(async()=>{if(!t.currentQuery.trim()){En.error("Please enter a query");return}n({type:"SET_LOADING",payload:!0}),n({type:"CLEAR_RESULTS"});try{const u=await Vg(t.currentQuery,t.queryMode,t.selectedDocuments.length>0?t.selectedDocuments:void 0),c={text:u.answer,sources:u.sources,confidence:u.confidence,mode:u.mode_used,timestamp:new Date().toISOString(),query:t.currentQuery};n({type:"SET_CURRENT_ANSWER",payload:c})}catch(u){En.error("Failed to get answer"),console.error("Query error:",u)}finally{n({type:"SET_LOADING",payload:!1})}},[t.currentQuery,t.queryMode,t.selectedDocuments]),l=j.useCallback(()=>{n({type:"CLEAR_RESULTS"}),n({type:"SET_CURRENT_QUERY",payload:""})},[]),s=j.useCallback(()=>{n({type:"SET_THEME",payload:t.theme==="light"?"dark":"light"})},[t.theme]);return p.jsx(mf.Provider,{value:{state:t,dispatch:n,handleUpload:i,handleDeleteDocument:a,handleQuery:o,clearResults:l,toggleTheme:s},children:e})}function Dt(){const e=j.useContext(mf);if(!e)throw new Error("useApp must be used within AppProvider");return e}/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var My={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Iy=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),W=(e,t)=>{const n=j.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:l="",children:s,...u},c)=>j.createElement("svg",{ref:c,...My,width:i,height:i,stroke:r,strokeWidth:o?Number(a)*24/Number(i):a,className:["lucide",`lucide-${Iy(e)}`,l].join(" "),...u},[...t.map(([d,v])=>j.createElement(d,v)),...Array.isArray(s)?s:[s]]));return n.displayName=`${e}`,n};/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const uc=W("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Uy=W("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const jl=W("Brain",[["path",{d:"M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 0 1-4.96.44 2.5 2.5 0 0 1-2.96-3.08 3 3 0 0 1-.34-5.58 2.5 2.5 0 0 1 1.32-4.24 2.5 2.5 0 0 1 1.98-3A2.5 2.5 0 0 1 9.5 2Z",key:"1mhkh5"}],["path",{d:"M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 0 0 4.96.44 2.5 2.5 0 0 0 2.96-3.08 3 3 0 0 0 .34-5.58 2.5 2.5 0 0 0-1.32-4.24 2.5 2.5 0 0 0-1.98-3A2.5 2.5 0 0 0 14.5 2Z",key:"1d6s00"}]]);/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $y=W("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const By=W("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Hy=W("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Vy=W("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wy=W("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qy=W("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const hf=W("ExternalLink",[["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}],["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["line",{x1:"10",x2:"21",y1:"14",y2:"3",key:"18c3s4"}]]);/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Zt=W("FileText",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["line",{x1:"16",x2:"8",y1:"13",y2:"13",key:"14keom"}],["line",{x1:"16",x2:"8",y1:"17",y2:"17",key:"17nazh"}],["line",{x1:"10",x2:"8",y1:"9",y2:"9",key:"1a5vjj"}]]);/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const vf=W("GitMerge",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]]);/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ma=W("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Qy=W("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const gf=W("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ky=W("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Gy=W("MessageCircle",[["path",{d:"m3 21 1.9-5.7a8.5 8.5 0 1 1 3.8 3.8z",key:"v2veuj"}]]);/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const yf=W("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const xf=W("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Yy=W("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Xy=W("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jy=W("Sliders",[["line",{x1:"4",x2:"4",y1:"21",y2:"14",key:"1p332r"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3",key:"gb41h5"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12",key:"hf2csr"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3",key:"1kfi7u"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16",key:"1lhrwl"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3",key:"16vvfq"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14",key:"1uebub"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8",key:"1yglbp"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16",key:"1jxqpz"}]]);/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Zy=W("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const wf=W("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const kf=W("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ex=W("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/** + * @license lucide-react v0.294.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Sf=W("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),tx=[{id:"web",label:"Web Search",icon:p.jsx(Ma,{className:"w-4 h-4"}),description:"Search the web for information"},{id:"pdf",label:"PDF Only",icon:p.jsx(Zt,{className:"w-4 h-4"}),description:"Query only uploaded documents"},{id:"hybrid",label:"Hybrid",icon:p.jsx(vf,{className:"w-4 h-4"}),description:"Combine web and document search"},{id:"restricted",label:"Restricted",icon:p.jsx(gf,{className:"w-4 h-4"}),description:"Safe mode with content filtering"}],nx=()=>{const{state:e,dispatch:t}=Dt();return p.jsx("div",{className:"flex items-center gap-1 bg-gray-100 dark:bg-gray-800 p-1 rounded-lg",children:tx.map(n=>p.jsxs("button",{onClick:()=>t({type:"SET_QUERY_MODE",payload:n.id}),className:` + mode-tab ${e.queryMode===n.id?"mode-tab-active":"mode-tab-inactive"} + `,title:n.description,children:[n.icon,p.jsx("span",{className:"hidden sm:inline text-sm",children:n.label})]},n.id))})},rx=()=>{const{state:e,dispatch:t,toggleTheme:n}=Dt();return p.jsxs("header",{className:"fixed top-0 left-0 right-0 h-16 bg-white dark:bg-gray-800 border-b border-gray-200 dark:border-gray-700 z-50 flex items-center justify-between px-4",children:[p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsx("button",{onClick:()=>t({type:"TOGGLE_SIDEBAR"}),className:"p-2 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg lg:hidden",children:p.jsx(Ky,{className:"w-5 h-5 text-gray-600 dark:text-gray-300"})}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(jl,{className:"w-8 h-8 text-primary-600"}),p.jsx("span",{className:"text-xl font-bold text-gray-900 dark:text-white",children:"RAG System"})]})]}),p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsx(nx,{}),p.jsx("button",{onClick:n,className:"p-2 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors",children:e.theme==="light"?p.jsx(yf,{className:"w-5 h-5 text-gray-600"}):p.jsx(wf,{className:"w-5 h-5 text-yellow-500"})}),p.jsx("button",{onClick:()=>t({type:"TOGGLE_SETTINGS"}),className:"p-2 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors",children:p.jsx(Xy,{className:"w-5 h-5 text-gray-600 dark:text-gray-300"})})]})]})};var Ef={exports:{}},ix="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ax=ix,ox=ax;function jf(){}function Cf(){}Cf.resetWarningCache=jf;var lx=function(){function e(r,i,a,o,l,s){if(s!==ox){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Cf,resetWarningCache:jf};return n.PropTypes=n,n};Ef.exports=lx();var sx=Ef.exports;const V=Ec(sx);function xn(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function l(c){try{u(r.next(c))}catch(d){o(d)}}function s(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?a(c.value):i(c.value).then(l,s)}u((r=r.apply(e,t||[])).next())})}const ux=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function Yn(e,t,n){const r=cx(e),{webkitRelativePath:i}=e,a=typeof t=="string"?t:typeof i=="string"&&i.length>0?i:`./${e.name}`;return typeof r.path!="string"&&cc(r,"path",a),cc(r,"relativePath",a),r}function cx(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const r=t.split(".").pop().toLowerCase(),i=ux.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}function cc(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const px=[".DS_Store","Thumbs.db"];function dx(e){return xn(this,void 0,void 0,function*(){return pa(e)&&fx(e.dataTransfer)?gx(e.dataTransfer,e.type):mx(e)?hx(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?vx(e):[]})}function fx(e){return pa(e)}function mx(e){return pa(e)&&pa(e.target)}function pa(e){return typeof e=="object"&&e!==null}function hx(e){return Cl(e.target.files).map(t=>Yn(t))}function vx(e){return xn(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>Yn(n))})}function gx(e,t){return xn(this,void 0,void 0,function*(){if(e.items){const n=Cl(e.items).filter(i=>i.kind==="file");if(t!=="drop")return n;const r=yield Promise.all(n.map(yx));return pc(Nf(r))}return pc(Cl(e.files).map(n=>Yn(n)))})}function pc(e){return e.filter(t=>px.indexOf(t.name)===-1)}function Cl(e){if(e===null)return[];const t=[];for(let n=0;n[...t,...Array.isArray(n)?Nf(n):[n]],[])}function dc(e,t){return xn(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const a=yield e.getAsFileSystemHandle();if(a===null)throw new Error(`${e} is not a File`);if(a!==void 0){const o=yield a.getFile();return o.handle=a,Yn(o)}}const r=e.getAsFile();if(!r)throw new Error(`${e} is not a File`);return Yn(r,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0)})}function xx(e){return xn(this,void 0,void 0,function*(){return e.isDirectory?_f(e):wx(e)})}function _f(e){const t=e.createReader();return new Promise((n,r)=>{const i=[];function a(){t.readEntries(o=>xn(this,void 0,void 0,function*(){if(o.length){const l=Promise.all(o.map(xx));i.push(l),a()}else try{const l=yield Promise.all(i);n(l)}catch(l){r(l)}}),o=>{r(o)})}a()})}function wx(e){return xn(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(r=>{const i=Yn(r,e.fullPath);t(i)},r=>{n(r)})})})}var Eo=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",i=(e.type||"").toLowerCase(),a=i.replace(/\/.*$/,"");return n.some(function(o){var l=o.trim().toLowerCase();return l.charAt(0)==="."?r.toLowerCase().endsWith(l):l.endsWith("/*")?a===l.replace(/\/.*$/,""):i===l})}return!0};function fc(e){return Ex(e)||Sx(e)||Tf(e)||kx()}function kx(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sx(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ex(e){if(Array.isArray(e))return Nl(e)}function mc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hc(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),r=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:bx,message:"File type must be ".concat(r)}},vc=function(t){return{code:Tx,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},gc=function(t){return{code:Dx,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Px={code:Rx,message:"Too many files"};function zx(e){return e.type===""&&typeof e.getAsFile=="function"}function Df(e,t){var n=e.type==="application/x-moz-file"||_x(e,t)||zx(e);return[n,n?null:Ox(t)]}function Rf(e,t,n){if(nn(e.size))if(nn(t)&&nn(n)){if(e.size>n)return[!1,vc(n)];if(e.sizen)return[!1,vc(n)]}return[!0,null]}function nn(e){return e!=null}function Ax(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,a=e.multiple,o=e.maxFiles,l=e.validator;return!a&&t.length>1||a&&o>=1&&t.length>o?!1:t.every(function(s){var u=Df(s,n),c=$r(u,1),d=c[0],v=Rf(s,r,i),w=$r(v,1),g=w[0],x=l?l(s):null;return d&&g&&!x})}function da(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function cr(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function yc(e){e.preventDefault()}function Lx(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Fx(e){return e.indexOf("Edge/")!==-1}function Mx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Lx(e)||Fx(e)}function ct(){for(var e=arguments.length,t=new Array(e),n=0;n1?i-1:0),o=1;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function e0(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Ts=j.forwardRef(function(e,t){var n=e.children,r=fa(e,Vx),i=Lf(r),a=i.open,o=fa(i,Wx);return j.useImperativeHandle(t,function(){return{open:a}},[a]),zc.createElement(j.Fragment,null,n(K(K({},o),{},{open:a})))});Ts.displayName="Dropzone";var Af={disabled:!1,getFilesFromEvent:dx,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};Ts.defaultProps=Af;Ts.propTypes={children:V.func,accept:V.objectOf(V.arrayOf(V.string)),multiple:V.bool,preventDropOnDocument:V.bool,noClick:V.bool,noKeyboard:V.bool,noDrag:V.bool,noDragEventsBubbling:V.bool,minSize:V.number,maxSize:V.number,maxFiles:V.number,disabled:V.bool,getFilesFromEvent:V.func,onFileDialogCancel:V.func,onFileDialogOpen:V.func,useFsAccessApi:V.bool,autoFocus:V.bool,onDragEnter:V.func,onDragLeave:V.func,onDragOver:V.func,onDrop:V.func,onDropAccepted:V.func,onDropRejected:V.func,onError:V.func,validator:V.func};var Tl={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,isDragGlobal:!1,acceptedFiles:[],fileRejections:[]};function Lf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=K(K({},Af),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,o=t.minSize,l=t.multiple,s=t.maxFiles,u=t.onDragEnter,c=t.onDragLeave,d=t.onDragOver,v=t.onDrop,w=t.onDropAccepted,g=t.onDropRejected,x=t.onFileDialogCancel,E=t.onFileDialogOpen,h=t.useFsAccessApi,f=t.autoFocus,m=t.preventDropOnDocument,k=t.noClick,C=t.noKeyboard,T=t.noDrag,N=t.noDragEventsBubbling,O=t.onError,U=t.validator,A=j.useMemo(function(){return $x(n)},[n]),de=j.useMemo(function(){return Ux(n)},[n]),Te=j.useMemo(function(){return typeof E=="function"?E:kc},[E]),ye=j.useMemo(function(){return typeof x=="function"?x:kc},[x]),H=j.useRef(null),fe=j.useRef(null),xe=j.useReducer(t0,Tl),vt=jo(xe,2),_=vt[0],R=vt[1],L=_.isFocused,M=_.isFileDialogActive,$=j.useRef(typeof window<"u"&&window.isSecureContext&&h&&Ix()),Xe=function(){!$.current&&M&&setTimeout(function(){if(fe.current){var P=fe.current.files;P.length||(R({type:"closeDialog"}),ye())}},300)};j.useEffect(function(){return window.addEventListener("focus",Xe,!1),function(){window.removeEventListener("focus",Xe,!1)}},[fe,M,ye,$]);var oe=j.useRef([]),De=j.useRef([]),ot=function(P){H.current&&H.current.contains(P.target)||(P.preventDefault(),oe.current=[])};j.useEffect(function(){return m&&(document.addEventListener("dragover",yc,!1),document.addEventListener("drop",ot,!1)),function(){m&&(document.removeEventListener("dragover",yc),document.removeEventListener("drop",ot))}},[H,m]),j.useEffect(function(){var b=function(lt){De.current=[].concat(xc(De.current),[lt.target]),cr(lt)&&R({isDragGlobal:!0,type:"setDragGlobal"})},P=function(lt){De.current=De.current.filter(function(gt){return gt!==lt.target&>!==null}),!(De.current.length>0)&&R({isDragGlobal:!1,type:"setDragGlobal"})},X=function(){De.current=[],R({isDragGlobal:!1,type:"setDragGlobal"})},ne=function(){De.current=[],R({isDragGlobal:!1,type:"setDragGlobal"})};return document.addEventListener("dragenter",b,!1),document.addEventListener("dragleave",P,!1),document.addEventListener("dragend",X,!1),document.addEventListener("drop",ne,!1),function(){document.removeEventListener("dragenter",b),document.removeEventListener("dragleave",P),document.removeEventListener("dragend",X),document.removeEventListener("drop",ne)}},[H]),j.useEffect(function(){return!r&&f&&H.current&&H.current.focus(),function(){}},[H,f,r]);var Ve=j.useCallback(function(b){O?O(b):console.error(b)},[O]),Ds=j.useCallback(function(b){b.preventDefault(),b.persist(),ni(b),oe.current=[].concat(xc(oe.current),[b.target]),cr(b)&&Promise.resolve(i(b)).then(function(P){if(!(da(b)&&!N)){var X=P.length,ne=X>0&&Ax({files:P,accept:A,minSize:o,maxSize:a,multiple:l,maxFiles:s,validator:U}),me=X>0&&!ne;R({isDragAccept:ne,isDragReject:me,isDragActive:!0,type:"setDraggedFiles"}),u&&u(b)}}).catch(function(P){return Ve(P)})},[i,u,Ve,N,A,o,a,l,s,U]),Rs=j.useCallback(function(b){b.preventDefault(),b.persist(),ni(b);var P=cr(b);if(P&&b.dataTransfer)try{b.dataTransfer.dropEffect="copy"}catch{}return P&&d&&d(b),!1},[d,N]),Os=j.useCallback(function(b){b.preventDefault(),b.persist(),ni(b);var P=oe.current.filter(function(ne){return H.current&&H.current.contains(ne)}),X=P.indexOf(b.target);X!==-1&&P.splice(X,1),oe.current=P,!(P.length>0)&&(R({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),cr(b)&&c&&c(b))},[H,c,N]),Zr=j.useCallback(function(b,P){var X=[],ne=[];b.forEach(function(me){var lt=Df(me,A),gt=jo(lt,2),Ua=gt[0],$a=gt[1],Ba=Rf(me,o,a),ri=jo(Ba,2),Ha=ri[0],Va=ri[1],Wa=U?U(me):null;if(Ua&&Ha&&!Wa)X.push(me);else{var qa=[$a,Va];Wa&&(qa=qa.concat(Wa)),ne.push({file:me,errors:qa.filter(function(Uf){return Uf})})}}),(!l&&X.length>1||l&&s>=1&&X.length>s)&&(X.forEach(function(me){ne.push({file:me,errors:[Px]})}),X.splice(0)),R({acceptedFiles:X,fileRejections:ne,isDragReject:ne.length>0,type:"setFiles"}),v&&v(X,ne,P),ne.length>0&&g&&g(ne,P),X.length>0&&w&&w(X,P)},[R,l,A,o,a,s,v,w,g,U]),ei=j.useCallback(function(b){b.preventDefault(),b.persist(),ni(b),oe.current=[],cr(b)&&Promise.resolve(i(b)).then(function(P){da(b)&&!N||Zr(P,b)}).catch(function(P){return Ve(P)}),R({type:"reset"})},[i,Zr,Ve,N]),wn=j.useCallback(function(){if($.current){R({type:"openDialog"}),Te();var b={multiple:l,types:de};window.showOpenFilePicker(b).then(function(P){return i(P)}).then(function(P){Zr(P,null),R({type:"closeDialog"})}).catch(function(P){Bx(P)?(ye(P),R({type:"closeDialog"})):Hx(P)?($.current=!1,fe.current?(fe.current.value=null,fe.current.click()):Ve(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):Ve(P)});return}fe.current&&(R({type:"openDialog"}),Te(),fe.current.value=null,fe.current.click())},[R,Te,ye,h,Zr,Ve,de,l]),Ps=j.useCallback(function(b){!H.current||!H.current.isEqualNode(b.target)||(b.key===" "||b.key==="Enter"||b.keyCode===32||b.keyCode===13)&&(b.preventDefault(),wn())},[H,wn]),zs=j.useCallback(function(){R({type:"focus"})},[]),As=j.useCallback(function(){R({type:"blur"})},[]),Ls=j.useCallback(function(){k||(Mx()?setTimeout(wn,0):wn())},[k,wn]),kn=function(P){return r?null:P},Ia=function(P){return C?null:kn(P)},ti=function(P){return T?null:kn(P)},ni=function(P){N&&P.stopPropagation()},Ff=j.useMemo(function(){return function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=b.refKey,X=P===void 0?"ref":P,ne=b.role,me=b.onKeyDown,lt=b.onFocus,gt=b.onBlur,Ua=b.onClick,$a=b.onDragEnter,Ba=b.onDragOver,ri=b.onDragLeave,Ha=b.onDrop,Va=fa(b,qx);return K(K(bl({onKeyDown:Ia(ct(me,Ps)),onFocus:Ia(ct(lt,zs)),onBlur:Ia(ct(gt,As)),onClick:kn(ct(Ua,Ls)),onDragEnter:ti(ct($a,Ds)),onDragOver:ti(ct(Ba,Rs)),onDragLeave:ti(ct(ri,Os)),onDrop:ti(ct(Ha,ei)),role:typeof ne=="string"&&ne!==""?ne:"presentation"},X,H),!r&&!C?{tabIndex:0}:{}),Va)}},[H,Ps,zs,As,Ls,Ds,Rs,Os,ei,C,T,r]),Mf=j.useCallback(function(b){b.stopPropagation()},[]),If=j.useMemo(function(){return function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=b.refKey,X=P===void 0?"ref":P,ne=b.onChange,me=b.onClick,lt=fa(b,Qx),gt=bl({accept:A,multiple:l,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:kn(ct(ne,ei)),onClick:kn(ct(me,Mf)),tabIndex:-1},X,fe);return K(K({},gt),lt)}},[fe,n,l,ei,r]);return K(K({},_),{},{isFocused:L&&!r,getRootProps:Ff,getInputProps:If,rootRef:H,inputRef:fe,open:kn(wn)})}function t0(e,t){switch(t.type){case"focus":return K(K({},e),{},{isFocused:!0});case"blur":return K(K({},e),{},{isFocused:!1});case"openDialog":return K(K({},Tl),{},{isFileDialogActive:!0});case"closeDialog":return K(K({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return K(K({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return K(K({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"setDragGlobal":return K(K({},e),{},{isDragGlobal:t.isDragGlobal});case"reset":return K({},Tl);default:return e}}function kc(){}const n0=()=>{const{state:e,handleUpload:t}=Dt(),n=j.useCallback(o=>{const l=o.find(s=>s.type==="application/pdf");l&&t(l)},[t]),{getRootProps:r,getInputProps:i,isDragActive:a}=Lf({onDrop:n,accept:{"application/pdf":[".pdf"]},maxFiles:1});return p.jsxs("div",{className:"space-y-4",children:[p.jsx("h3",{className:"text-sm font-semibold text-gray-900 dark:text-white uppercase tracking-wide",children:"Upload Documents"}),p.jsxs("div",{...r(),className:` + border-2 border-dashed rounded-xl p-6 text-center cursor-pointer transition-all duration-200 + ${a?"border-primary-500 bg-primary-50 dark:bg-primary-900/20":"border-gray-300 dark:border-gray-600 hover:border-primary-400 hover:bg-gray-50 dark:hover:bg-gray-700/50"} + `,children:[p.jsx("input",{...i()}),e.isUploading?p.jsxs("div",{className:"flex flex-col items-center gap-2",children:[p.jsx(Qy,{className:"w-10 h-10 text-primary-500 animate-spin"}),p.jsxs("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:["Processing... ",e.uploadProgress,"%"]}),p.jsx("div",{className:"w-full max-w-xs bg-gray-200 dark:bg-gray-700 rounded-full h-2",children:p.jsx("div",{className:"bg-primary-500 h-2 rounded-full transition-all duration-300",style:{width:`${e.uploadProgress}%`}})})]}):a?p.jsxs("div",{className:"flex flex-col items-center gap-2",children:[p.jsx(Zt,{className:"w-10 h-10 text-primary-500"}),p.jsx("p",{className:"text-sm font-medium text-primary-600 dark:text-primary-400",children:"Drop your PDF here"})]}):p.jsxs("div",{className:"flex flex-col items-center gap-2",children:[p.jsx(ex,{className:"w-10 h-10 text-gray-400"}),p.jsx("p",{className:"text-sm font-medium text-gray-600 dark:text-gray-400",children:"Drag & drop a PDF"}),p.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-500",children:"or click to browse"})]})]}),p.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-500 text-center",children:"Supports PDF files up to 10MB"})]})},r0=({document:e})=>{const{state:t,dispatch:n,handleDeleteDocument:r}=Dt(),i=t.selectedDocuments.includes(e.id),a=()=>{n({type:"TOGGLE_DOCUMENT_SELECTION",payload:e.id})},o=async s=>{s.stopPropagation(),await r(e.id)},l=s=>new Date(s).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"});return p.jsxs("div",{onClick:a,className:` + p-3 rounded-lg border cursor-pointer transition-all duration-200 + ${i?"border-primary-500 bg-primary-50 dark:bg-primary-900/20":"border-gray-200 dark:border-gray-700 hover:border-gray-300 dark:hover:border-gray-600"} + `,children:[p.jsxs("div",{className:"flex items-start gap-3",children:[p.jsx("div",{className:` + w-8 h-8 rounded-lg flex items-center justify-center flex-shrink-0 + ${i?"bg-primary-100 dark:bg-primary-900/40":"bg-gray-100 dark:bg-gray-700"} + `,children:i?p.jsx($y,{className:"w-5 h-5 text-primary-600 dark:text-primary-400"}):p.jsx(Zt,{className:"w-5 h-5 text-gray-500 dark:text-gray-400"})}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-white truncate",children:e.filename}),p.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[p.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-500",children:l(e.uploadDate)}),p.jsxs("span",{className:"text-xs px-1.5 py-0.5 bg-gray-100 dark:bg-gray-700 text-gray-600 dark:text-gray-400 rounded",children:[e.chunkCount," chunks"]})]})]}),p.jsx("button",{onClick:o,className:"p-1 hover:bg-red-100 dark:hover:bg-red-900/20 rounded transition-colors",children:p.jsx(kf,{className:"w-4 h-4 text-gray-400 hover:text-red-500"})})]}),e.status!=="ready"&&p.jsx("div",{className:"flex items-center gap-1 mt-2 text-xs text-amber-600 dark:text-amber-400",children:e.status==="processing"?p.jsxs(p.Fragment,{children:[p.jsx(uc,{className:"w-3 h-3"}),p.jsx("span",{children:"Processing..."})]}):p.jsxs(p.Fragment,{children:[p.jsx(uc,{className:"w-3 h-3"}),p.jsx("span",{children:"Error processing"})]})})]})},i0=()=>{const{state:e}=Dt();return p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("h3",{className:"text-sm font-semibold text-gray-900 dark:text-white uppercase tracking-wide",children:"Documents"}),p.jsxs("span",{className:"text-xs text-gray-500 dark:text-gray-500",children:[e.documents.length," file",e.documents.length!==1?"s":""]})]}),p.jsxs("div",{className:"relative",children:[p.jsx(xf,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),p.jsx("input",{type:"text",placeholder:"Search documents...",className:"w-full pl-10 pr-4 py-2 text-sm border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-700 text-gray-900 dark:text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-primary-500"})]}),p.jsx("div",{className:"space-y-2 max-h-96 overflow-y-auto scrollbar-thin",children:e.documents.length===0?p.jsxs("div",{className:"text-center py-8",children:[p.jsx(Zt,{className:"w-12 h-12 mx-auto text-gray-300 dark:text-gray-600 mb-3"}),p.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-500",children:"No documents uploaded"}),p.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-600 mt-1",children:"Upload PDFs to get started"})]}):e.documents.map(t=>p.jsx(r0,{document:t},t.id))})]})},a0=()=>{const{state:e}=Dt();return e.sidebarOpen?p.jsx("aside",{className:"fixed left-0 top-16 bottom-0 w-80 bg-white dark:bg-gray-800 border-r border-gray-200 dark:border-gray-700 flex flex-col z-40",children:p.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-6 scrollbar-thin",children:[p.jsx(n0,{}),p.jsx(i0,{})]})}):null},o0=["What is the main topic of my documents?","Summarize the key findings","Extract important dates and events"],l0=()=>{const{state:e,handleQuery:t,dispatch:n,clearResults:r}=Dt(),[i,a]=j.useState(!0),o=j.useRef(null),l=j.useCallback(d=>{d.key==="Enter"&&!d.shiftKey&&(d.preventDefault(),t())},[t]),s=j.useCallback(()=>{t()},[t]),u=j.useCallback(()=>{const d=o.current;d&&(d.style.height="auto",d.style.height=`${Math.min(d.scrollHeight,200)}px`)},[]);j.useEffect(()=>{u()},[e.currentQuery,u]);const c=()=>{r(),a(!0)};return p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"card p-1",children:[p.jsxs("div",{className:"flex items-start gap-2",children:[p.jsx("textarea",{ref:o,value:e.currentQuery,onChange:d=>{n({type:"SET_CURRENT_QUERY",payload:d.target.value}),d.target.value&&i&&a(!1)},onKeyDown:l,placeholder:"Ask a question about your documents...",className:"flex-1 min-h-[120px] max-h-[200px] p-4 bg-transparent text-gray-900 dark:text-white placeholder-gray-500 resize-none focus:outline-none",disabled:e.isLoading}),e.currentQuery&&p.jsx("button",{onClick:c,className:"p-2 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors mt-1",children:p.jsx(Sf,{className:"w-4 h-4 text-gray-400"})})]}),p.jsxs("div",{className:"flex items-center justify-between px-4 pb-4",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(Zy,{className:"w-4 h-4 text-gray-400"}),p.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-500",children:"Press Enter to submit, Shift+Enter for new line"})]}),p.jsx("button",{onClick:s,disabled:!e.currentQuery.trim()||e.isLoading,className:"btn-primary flex items-center gap-2",children:e.isLoading?p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"w-4 h-4 border-2 border-white/30 border-t-white rounded-full animate-spin"}),p.jsx("span",{children:"Processing..."})]}):p.jsxs(p.Fragment,{children:[p.jsx(Yy,{className:"w-4 h-4"}),p.jsx("span",{children:"Submit"})]})})]})]}),i&&!e.currentQuery&&p.jsxs("div",{className:"flex flex-wrap gap-2",children:[p.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-500 py-1",children:"Try:"}),o0.map((d,v)=>p.jsx("button",{onClick:()=>{n({type:"SET_CURRENT_QUERY",payload:d}),a(!1)},className:"text-xs px-3 py-1 bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-400 rounded-full hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors",children:d},v))]})]})},s0=({confidence:e})=>{const t=()=>e>=80?"text-green-500":e>=60?"text-yellow-500":"text-red-500",n=()=>e>=80?"bg-green-500":e>=60?"bg-yellow-500":"bg-red-500",r=()=>e>=80?"High":e>=60?"Medium":"Low";return p.jsxs("div",{className:"flex items-center gap-2",title:`Confidence: ${e}%`,children:[p.jsx("div",{className:"w-16 h-2 bg-gray-200 dark:bg-gray-700 rounded-full overflow-hidden",children:p.jsx("div",{className:`h-full ${n()} transition-all duration-500`,style:{width:`${e}%`}})}),p.jsxs("span",{className:`text-xs font-medium ${t()}`,children:[e,"%"]}),p.jsx("span",{className:`text-xs font-medium ${t()}`,children:r()})]})},u0={web:p.jsx(Ma,{className:"w-3 h-3"}),pdf:p.jsx(Zt,{className:"w-3 h-3"}),hybrid:p.jsx(vf,{className:"w-3 h-3"}),restricted:p.jsx(gf,{className:"w-3 h-3"})},c0={web:"Web Search",pdf:"PDF Only",hybrid:"Hybrid",restricted:"Restricted"},p0=({answer:e})=>{const t=n=>new Date(n).toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"});return p.jsxs("div",{className:"card overflow-hidden",children:[p.jsxs("div",{className:"border-b border-gray-200 dark:border-gray-700 p-4 bg-gray-50 dark:bg-gray-900/50",children:[p.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-2",children:"Question:"}),p.jsx("p",{className:"text-lg font-medium text-gray-900 dark:text-white",children:e.query})]}),p.jsxs("div",{className:"p-6 space-y-4",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[u0[e.mode],p.jsx("span",{className:"text-xs font-medium text-gray-600 dark:text-gray-400 uppercase",children:c0[e.mode]})]}),p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsx(s0,{confidence:e.confidence}),p.jsxs("div",{className:"flex items-center gap-1 text-xs text-gray-500",children:[p.jsx(Wy,{className:"w-3 h-3"}),p.jsx("span",{children:t(e.timestamp)})]})]})]}),p.jsx("div",{className:"prose prose-gray dark:prose-invert max-w-none",children:p.jsx("p",{className:"text-gray-800 dark:text-gray-200 leading-relaxed whitespace-pre-wrap",children:e.text})})]})]})},Sc=({source:e})=>{const[t,n]=j.useState(!1),[r,i]=j.useState(!1),a=async()=>{await navigator.clipboard.writeText(e.content),n(!0),setTimeout(()=>n(!1),2e3)},o=()=>e.type==="web"?p.jsx(Ma,{className:"w-4 h-4 text-blue-500"}):p.jsx(Zt,{className:"w-4 h-4 text-amber-500"}),l=()=>e.type==="web"?"Web":"Document",s=u=>{if(u.startsWith("http"))try{const c=new URL(u);return c.hostname+c.pathname}catch{return u}return u};return p.jsxs("div",{className:"border border-gray-200 dark:border-gray-700 rounded-lg overflow-hidden",children:[p.jsx("div",{onClick:()=>i(!r),className:"p-3 cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800/50 transition-colors",children:p.jsxs("div",{className:"flex items-start gap-2",children:[o(),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("span",{className:"text-xs font-medium text-gray-700 dark:text-gray-300 truncate",children:e.title}),p.jsx("span",{className:"text-xs px-1.5 py-0.5 bg-gray-100 dark:bg-gray-700 text-gray-600 dark:text-gray-400 rounded",children:l()})]}),p.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-500 mt-1 truncate",children:s(e.reference)})]}),p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsx("button",{onClick:a,className:"p-1 hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition-colors",title:"Copy content",children:t?p.jsx(By,{className:"w-3 h-3 text-green-500"}):p.jsx(qy,{className:"w-3 h-3 text-gray-400"})}),e.reference.startsWith("http")&&p.jsx("a",{href:e.reference,target:"_blank",rel:"noopener noreferrer",onClick:u=>u.stopPropagation(),className:"p-1 hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition-colors",title:"Open source",children:p.jsx(hf,{className:"w-3 h-3 text-gray-400"})})]})]})}),r&&p.jsx("div",{className:"px-3 pb-3",children:p.jsx("div",{className:"pl-6 border-l-2 border-gray-200 dark:border-gray-700",children:p.jsx("p",{className:"text-xs text-gray-600 dark:text-gray-400 leading-relaxed",children:e.content})})})]})},d0=({sources:e})=>{const[t,n]=j.useState(!0);if(e.length===0)return null;const r=e.filter(a=>a.type==="pdf"),i=e.filter(a=>a.type==="web");return p.jsxs("div",{className:"card overflow-hidden",children:[p.jsxs("button",{onClick:()=>n(!t),className:"w-full px-4 py-3 flex items-center justify-between bg-gray-50 dark:bg-gray-900/50 hover:bg-gray-100 dark:hover:bg-gray-900/70 transition-colors",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("span",{className:"text-sm font-medium text-gray-900 dark:text-white",children:"Sources"}),p.jsxs("span",{className:"text-xs text-gray-500 dark:text-gray-500",children:["(",e.length," ",e.length===1?"source":"sources",")"]})]}),t?p.jsx(Vy,{className:"w-4 h-4 text-gray-500"}):p.jsx(Hy,{className:"w-4 h-4 text-gray-500"})]}),t&&p.jsxs("div",{className:"divide-y divide-gray-200 dark:divide-gray-700",children:[r.length>0&&p.jsxs("div",{className:"p-4 space-y-2",children:[p.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-gray-600 dark:text-gray-400 uppercase",children:[p.jsx(Zt,{className:"w-3 h-3"}),p.jsxs("span",{children:["Documents (",r.length,")"]})]}),r.map((a,o)=>p.jsx(Sc,{source:a},`pdf-${o}`))]}),i.length>0&&p.jsxs("div",{className:"p-4 space-y-2",children:[p.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-gray-600 dark:text-gray-400 uppercase",children:[p.jsx(Ma,{className:"w-3 h-3"}),p.jsxs("span",{children:["Web (",i.length,")"]})]}),i.map((a,o)=>p.jsx(Sc,{source:a},`web-${o}`))]})]})]})},f0=({answer:e})=>e?p.jsxs("div",{className:"space-y-6 animate-fade-in",children:[p.jsx(p0,{answer:e}),p.jsx(d0,{sources:e.sources})]}):null,m0=()=>{const e=[{icon:p.jsx(Zt,{className:"w-5 h-5"}),title:"Upload Documents",description:"Drag and drop PDF files to add them to your knowledge base"},{icon:p.jsx(xf,{className:"w-5 h-5"}),title:"Smart Search",description:"Ask questions and get answers from your documents and the web"},{icon:p.jsx(jl,{className:"w-5 h-5"}),title:"AI Powered",description:"Powered by Groq LLM for fast, accurate responses"},{icon:p.jsx(Gy,{className:"w-5 h-5"}),title:"Source Citations",description:"Every answer includes sources so you can verify the information"}];return p.jsxs("div",{className:"text-center py-16",children:[p.jsx("div",{className:"inline-flex items-center justify-center w-20 h-20 rounded-full bg-primary-100 dark:bg-primary-900/30 mb-6",children:p.jsx(jl,{className:"w-10 h-10 text-primary-600 dark:text-primary-400"})}),p.jsx("h2",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-2",children:"Welcome to RAG System"}),p.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-8 max-w-md mx-auto",children:"Upload documents and ask questions to get AI-powered answers with source citations."}),p.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 max-w-2xl mx-auto",children:e.map((t,n)=>p.jsxs("div",{className:"flex items-start gap-3 p-4 bg-white dark:bg-gray-800 rounded-xl border border-gray-200 dark:border-gray-700 text-left",children:[p.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-lg bg-primary-100 dark:bg-primary-900/30 flex items-center justify-center",children:p.jsx("div",{className:"text-primary-600 dark:text-primary-400",children:t.icon})}),p.jsxs("div",{children:[p.jsx("h3",{className:"font-medium text-gray-900 dark:text-white",children:t.title}),p.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-500 mt-1",children:t.description})]})]},n))}),p.jsxs("div",{className:"mt-8 flex items-center justify-center gap-2 text-sm text-gray-500",children:[p.jsx("span",{children:"Start by uploading a document"}),p.jsx(Uy,{className:"w-4 h-4"})]})]})},h0=()=>{const{state:e}=Dt();return p.jsx("main",{className:"pt-16 min-h-screen",children:p.jsx("div",{className:`flex-1 p-6 ${e.sidebarOpen?"ml-80":"ml-0"}`,children:p.jsxs("div",{className:"max-w-4xl mx-auto space-y-6",children:[p.jsx(l0,{}),e.currentAnswer?p.jsx(f0,{answer:e.currentAnswer}):p.jsx(m0,{})]})})})},v0=()=>{const{state:e,dispatch:t,toggleTheme:n}=Dt();if(!e.settingsOpen)return null;const r=()=>{t({type:"TOGGLE_SETTINGS"})};return p.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[p.jsx("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm",onClick:r}),p.jsxs("div",{className:"relative bg-white dark:bg-gray-800 rounded-2xl shadow-2xl w-full max-w-md mx-4 animate-slide-up",children:[p.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-gray-200 dark:border-gray-700",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(Jy,{className:"w-5 h-5 text-gray-600 dark:text-gray-400"}),p.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Settings"})]}),p.jsx("button",{onClick:r,className:"p-2 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors",children:p.jsx(Sf,{className:"w-5 h-5 text-gray-500"})})]}),p.jsxs("div",{className:"p-4 space-y-6",children:[p.jsxs("div",{className:"space-y-4",children:[p.jsx("h3",{className:"text-sm font-medium text-gray-900 dark:text-white uppercase tracking-wide",children:"Appearance"}),p.jsxs("button",{onClick:n,className:"w-full flex items-center justify-between p-3 bg-gray-50 dark:bg-gray-700/50 rounded-lg",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[e.theme==="light"?p.jsx(wf,{className:"w-5 h-5 text-amber-500"}):p.jsx(yf,{className:"w-5 h-5 text-blue-500"}),p.jsx("span",{className:"text-sm font-medium text-gray-900 dark:text-white",children:e.theme==="light"?"Light Mode":"Dark Mode"})]}),p.jsx("span",{className:"text-xs text-gray-500",children:"Toggle theme"})]})]}),p.jsxs("div",{className:"space-y-4",children:[p.jsx("h3",{className:"text-sm font-medium text-gray-900 dark:text-white uppercase tracking-wide",children:"API Configuration"}),p.jsx("div",{className:"p-3 bg-blue-50 dark:bg-blue-900/20 rounded-lg",children:p.jsx("p",{className:"text-xs text-blue-700 dark:text-blue-400",children:"API endpoints are configured via environment variables. See the backend .env file for configuration."})})]}),p.jsxs("div",{className:"space-y-4",children:[p.jsx("h3",{className:"text-sm font-medium text-gray-900 dark:text-white uppercase tracking-wide",children:"Data Management"}),p.jsx("button",{className:"w-full flex items-center justify-between p-3 bg-red-50 dark:bg-red-900/20 rounded-lg hover:bg-red-100 dark:hover:bg-red-900/30 transition-colors",onClick:()=>{confirm("Are you sure you want to clear all documents?")},children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(kf,{className:"w-5 h-5 text-red-500"}),p.jsx("span",{className:"text-sm font-medium text-red-700 dark:text-red-400",children:"Clear All Documents"})]})})]})]}),p.jsx("div",{className:"p-4 border-t border-gray-200 dark:border-gray-700",children:p.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-500",children:[p.jsx("span",{children:"RAG System v1.0.0"}),p.jsxs("a",{href:"https://github.com/your-repo/rag-system",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 hover:text-primary-600 transition-colors",children:[p.jsx(hf,{className:"w-3 h-3"}),p.jsx("span",{children:"View on GitHub"})]})]})})]})]})};function g0(){return p.jsx(Fy,{children:p.jsxs("div",{className:"min-h-screen bg-gray-50 dark:bg-gray-900",children:[p.jsx(rx,{}),p.jsx(a0,{}),p.jsx(h0,{}),p.jsx(v0,{})]})})}Co.createRoot(document.getElementById("root")).render(p.jsxs(zc.StrictMode,{children:[p.jsx(g0,{}),p.jsx(zy,{position:"top-right",toastOptions:{duration:4e3,style:{background:"#1e293b",color:"#f1f5f9"}}})]}));