@luminix/mui-cms 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/mui-cms.bundle.iife.js +12 -12
- package/dist/mui-cms.js +380 -380
- package/package.json +1 -1
- package/types/dist.d.ts +1 -1
|
@@ -2,24 +2,24 @@ var kte=Object.defineProperty;var Pte=($i,No,$r)=>No in $i?kte($i,No,{enumerable
|
|
|
2
2
|
`+L+i}var Oe=!1;function ve(i,a){if(!i||Oe)return"";Oe=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(a)if(a=function(){throw Error()},Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(ue){var h=ue}Reflect.construct(i,[],a)}else{try{a.call()}catch(ue){h=ue}i.call(a.prototype)}else{try{throw Error()}catch(ue){h=ue}i()}}catch(ue){if(ue&&h&&typeof ue.stack=="string"){for(var v=ue.stack.split(`
|
|
3
3
|
`),C=h.stack.split(`
|
|
4
4
|
`),j=v.length-1,I=C.length-1;1<=j&&0<=I&&v[j]!==C[I];)I--;for(;1<=j&&0<=I;j--,I--)if(v[j]!==C[I]){if(j!==1||I!==1)do if(j--,I--,0>I||v[j]!==C[I]){var U=`
|
|
5
|
-
`+v[j].replace(" at new "," at ");return i.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",i.displayName)),U}while(1<=j&&0<=I);break}}}finally{Oe=!1,Error.prepareStackTrace=d}return(i=i?i.displayName||i.name:"")?se(i):""}function xe(i){switch(i.tag){case 5:return se(i.type);case 16:return se("Lazy");case 13:return se("Suspense");case 19:return se("SuspenseList");case 0:case 2:case 15:return i=ve(i.type,!1),i;case 11:return i=ve(i.type.render,!1),i;case 1:return i=ve(i.type,!0),i;default:return""}}function he(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case _:return"Fragment";case T:return"Portal";case F:return"Profiler";case M:return"StrictMode";case H:return"Suspense";case z:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case G:return(i.displayName||"Context")+".Consumer";case B:return(i._context.displayName||"Context")+".Provider";case W:var a=i.render;return i=i.displayName,i||(i=a.displayName||a.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case te:return a=i.displayName||null,a!==null?a:he(i.type)||"Memo";case Z:a=i._payload,i=i._init;try{return he(i(a))}catch{}}return null}function Me(i){var a=i.type;switch(i.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=a.render,i=i.displayName||i.name||"",a.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return he(a);case 8:return a===M?"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 a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function de(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function ke(i){var a=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Qe(i){var a=ke(i)?"checked":"value",d=Object.getOwnPropertyDescriptor(i.constructor.prototype,a),h=""+i[a];if(!i.hasOwnProperty(a)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var v=d.get,C=d.set;return Object.defineProperty(i,a,{configurable:!0,get:function(){return v.call(this)},set:function(j){h=""+j,C.call(this,j)}}),Object.defineProperty(i,a,{enumerable:d.enumerable}),{getValue:function(){return h},setValue:function(j){h=""+j},stopTracking:function(){i._valueTracker=null,delete i[a]}}}}function He(i){i._valueTracker||(i._valueTracker=Qe(i))}function Be(i){if(!i)return!1;var a=i._valueTracker;if(!a)return!0;var d=a.getValue(),h="";return i&&(h=ke(i)?i.checked?"true":"false":i.value),i=h,i!==d?(a.setValue(i),!0):!1}function Je(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function ct(i,a){var d=a.checked;return ce({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:d??i._wrapperState.initialChecked})}function ot(i,a){var d=a.defaultValue==null?"":a.defaultValue,h=a.checked!=null?a.checked:a.defaultChecked;d=de(a.value!=null?a.value:d),i._wrapperState={initialChecked:h,initialValue:d,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function ze(i,a){a=a.checked,a!=null&&O(i,"checked",a,!1)}function Ot(i,a){ze(i,a);var d=de(a.value),h=a.type;if(d!=null)h==="number"?(d===0&&i.value===""||i.value!=d)&&(i.value=""+d):i.value!==""+d&&(i.value=""+d);else if(h==="submit"||h==="reset"){i.removeAttribute("value");return}a.hasOwnProperty("value")?$t(i,a.type,d):a.hasOwnProperty("defaultValue")&&$t(i,a.type,de(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(i.defaultChecked=!!a.defaultChecked)}function Ze(i,a,d){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var h=a.type;if(!(h!=="submit"&&h!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+i._wrapperState.initialValue,d||a===i.value||(i.value=a),i.defaultValue=a}d=i.name,d!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,d!==""&&(i.name=d)}function $t(i,a,d){(a!=="number"||Je(i.ownerDocument)!==i)&&(d==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+d&&(i.defaultValue=""+d))}var gt=Array.isArray;function dt(i,a,d,h){if(i=i.options,a){a={};for(var v=0;v<d.length;v++)a["$"+d[v]]=!0;for(d=0;d<i.length;d++)v=a.hasOwnProperty("$"+i[d].value),i[d].selected!==v&&(i[d].selected=v),v&&h&&(i[d].defaultSelected=!0)}else{for(d=""+de(d),a=null,v=0;v<i.length;v++){if(i[v].value===d){i[v].selected=!0,h&&(i[v].defaultSelected=!0);return}a!==null||i[v].disabled||(a=i[v])}a!==null&&(a.selected=!0)}}function _t(i,a){if(a.dangerouslySetInnerHTML!=null)throw Error(n(91));return ce({},a,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function Pt(i,a){var d=a.value;if(d==null){if(d=a.children,a=a.defaultValue,d!=null){if(a!=null)throw Error(n(92));if(gt(d)){if(1<d.length)throw Error(n(93));d=d[0]}a=d}a==null&&(a=""),d=a}i._wrapperState={initialValue:de(d)}}function pt(i,a){var d=de(a.value),h=de(a.defaultValue);d!=null&&(d=""+d,d!==i.value&&(i.value=d),a.defaultValue==null&&i.defaultValue!==d&&(i.defaultValue=d)),h!=null&&(i.defaultValue=""+h)}function Ft(i){var a=i.textContent;a===i._wrapperState.initialValue&&a!==""&&a!==null&&(i.value=a)}function Yt(i){switch(i){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function qt(i,a){return i==null||i==="http://www.w3.org/1999/xhtml"?Yt(a):i==="http://www.w3.org/2000/svg"&&a==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var et,Pe=function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,d,h,v){MSApp.execUnsafeLocalFunction(function(){return i(a,d,h,v)})}:i}(function(i,a){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=a;else{for(et=et||document.createElement("div"),et.innerHTML="<svg>"+a.valueOf().toString()+"</svg>",a=et.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;a.firstChild;)i.appendChild(a.firstChild)}});function xt(i,a){if(a){var d=i.firstChild;if(d&&d===i.lastChild&&d.nodeType===3){d.nodeValue=a;return}}i.textContent=a}var Ht={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},fn=["Webkit","ms","Moz","O"];Object.keys(Ht).forEach(function(i){fn.forEach(function(a){a=a+i.charAt(0).toUpperCase()+i.substring(1),Ht[a]=Ht[i]})});function Ue(i,a,d){return a==null||typeof a=="boolean"||a===""?"":d||typeof a!="number"||a===0||Ht.hasOwnProperty(i)&&Ht[i]?(""+a).trim():a+"px"}function ut(i,a){i=i.style;for(var d in a)if(a.hasOwnProperty(d)){var h=d.indexOf("--")===0,v=Ue(d,a[d],h);d==="float"&&(d="cssFloat"),h?i.setProperty(d,v):i[d]=v}}var Re=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function We(i,a){if(a){if(Re[i]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(n(137,i));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(n(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(n(61))}if(a.style!=null&&typeof a.style!="object")throw Error(n(62))}}function ft(i,a){if(i.indexOf("-")===-1)return typeof a.is=="string";switch(i){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 yt=null;function bt(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var It=null,Mt=null,Zt=null;function rn(i){if(i=Eu(i)){if(typeof It!="function")throw Error(n(280));var a=i.stateNode;a&&(a=bp(a),It(i.stateNode,i.type,a))}}function Qn(i){Mt?Zt?Zt.push(i):Zt=[i]:Mt=i}function Hr(){if(Mt){var i=Mt,a=Zt;if(Zt=Mt=null,rn(i),a)for(i=0;i<a.length;i++)rn(a[i])}}function Po(i,a){return i(a)}function To(){}var co=!1;function Ln(i,a,d){if(co)return i(a,d);co=!0;try{return Po(i,a,d)}finally{co=!1,(Mt!==null||Zt!==null)&&(To(),Hr())}}function on(i,a){var d=i.stateNode;if(d===null)return null;var h=bp(d);if(h===null)return null;d=h[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(d&&typeof d!="function")throw Error(n(231,a,typeof d));return d}var Qt=!1;if(u)try{var D={};Object.defineProperty(D,"passive",{get:function(){Qt=!0}}),window.addEventListener("test",D,D),window.removeEventListener("test",D,D)}catch{Qt=!1}function V(i,a,d,h,v,C,j,I,U){var ue=Array.prototype.slice.call(arguments,3);try{a.apply(d,ue)}catch(Ce){this.onError(Ce)}}var oe=!1,me=null,je=!1,Ke=null,it={onError:function(i){oe=!0,me=i}};function $e(i,a,d,h,v,C,j,I,U){oe=!1,me=null,V.apply(it,arguments)}function st(i,a,d,h,v,C,j,I,U){if($e.apply(this,arguments),oe){if(oe){var ue=me;oe=!1,me=null}else throw Error(n(198));je||(je=!0,Ke=ue)}}function Q(i){var a=i,d=i;if(i.alternate)for(;a.return;)a=a.return;else{i=a;do a=i,a.flags&4098&&(d=a.return),i=a.return;while(i)}return a.tag===3?d:null}function q(i){if(i.tag===13){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function we(i){if(Q(i)!==i)throw Error(n(188))}function be(i){var a=i.alternate;if(!a){if(a=Q(i),a===null)throw Error(n(188));return a!==i?null:i}for(var d=i,h=a;;){var v=d.return;if(v===null)break;var C=v.alternate;if(C===null){if(h=v.return,h!==null){d=h;continue}break}if(v.child===C.child){for(C=v.child;C;){if(C===d)return we(v),i;if(C===h)return we(v),a;C=C.sibling}throw Error(n(188))}if(d.return!==h.return)d=v,h=C;else{for(var j=!1,I=v.child;I;){if(I===d){j=!0,d=v,h=C;break}if(I===h){j=!0,h=v,d=C;break}I=I.sibling}if(!j){for(I=C.child;I;){if(I===d){j=!0,d=C,h=v;break}if(I===h){j=!0,h=C,d=v;break}I=I.sibling}if(!j)throw Error(n(189))}}if(d.alternate!==h)throw Error(n(190))}if(d.tag!==3)throw Error(n(188));return d.stateNode.current===d?i:a}function De(i){return i=be(i),i!==null?Ee(i):null}function Ee(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var a=Ee(i);if(a!==null)return a;i=i.sibling}return null}var nt=t.unstable_scheduleCallback,At=t.unstable_cancelCallback,uo=t.unstable_shouldYield,Xo=t.unstable_requestPaint,Jt=t.unstable_now,Ji=t.unstable_getCurrentPriorityLevel,Jo=t.unstable_ImmediatePriority,Vr=t.unstable_UserBlockingPriority,wi=t.unstable_NormalPriority,cl=t.unstable_LowPriority,Ys=t.unstable_IdlePriority,vt=null,Nt=null;function cr(i){if(Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(vt,i,void 0,(i.current.flags&128)===128)}catch{}}var jt=Math.clz32?Math.clz32:ev,Oo=Math.log,ep=Math.LN2;function ev(i){return i>>>=0,i===0?32:31-(Oo(i)/ep|0)|0}var tp=64,np=4194304;function su(i){switch(i&-i){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 i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function rp(i,a){var d=i.pendingLanes;if(d===0)return 0;var h=0,v=i.suspendedLanes,C=i.pingedLanes,j=d&268435455;if(j!==0){var I=j&~v;I!==0?h=su(I):(C&=j,C!==0&&(h=su(C)))}else j=d&~v,j!==0?h=su(j):C!==0&&(h=su(C));if(h===0)return 0;if(a!==0&&a!==h&&!(a&v)&&(v=h&-h,C=a&-a,v>=C||v===16&&(C&4194240)!==0))return a;if(h&4&&(h|=d&16),a=i.entangledLanes,a!==0)for(i=i.entanglements,a&=h;0<a;)d=31-jt(a),v=1<<d,h|=i[d],a&=~v;return h}function VZ(i,a){switch(i){case 1:case 2:case 4:return a+250;case 8:case 16:case 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 a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function KZ(i,a){for(var d=i.suspendedLanes,h=i.pingedLanes,v=i.expirationTimes,C=i.pendingLanes;0<C;){var j=31-jt(C),I=1<<j,U=v[j];U===-1?(!(I&d)||I&h)&&(v[j]=VZ(I,a)):U<=a&&(i.expiredLanes|=I),C&=~I}}function tv(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function cP(){var i=tp;return tp<<=1,!(tp&4194240)&&(tp=64),i}function nv(i){for(var a=[],d=0;31>d;d++)a.push(i);return a}function au(i,a,d){i.pendingLanes|=a,a!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,a=31-jt(a),i[a]=d}function GZ(i,a){var d=i.pendingLanes&~a;i.pendingLanes=a,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=a,i.mutableReadLanes&=a,i.entangledLanes&=a,a=i.entanglements;var h=i.eventTimes;for(i=i.expirationTimes;0<d;){var v=31-jt(d),C=1<<v;a[v]=0,h[v]=-1,i[v]=-1,d&=~C}}function rv(i,a){var d=i.entangledLanes|=a;for(i=i.entanglements;d;){var h=31-jt(d),v=1<<h;v&a|i[h]&a&&(i[h]|=a),d&=~v}}var Xt=0;function uP(i){return i&=-i,1<i?4<i?i&268435455?16:536870912:4:1}var dP,ov,fP,pP,hP,iv=!1,op=[],Zi=null,es=null,ts=null,lu=new Map,cu=new Map,ns=[],qZ="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function mP(i,a){switch(i){case"focusin":case"focusout":Zi=null;break;case"dragenter":case"dragleave":es=null;break;case"mouseover":case"mouseout":ts=null;break;case"pointerover":case"pointerout":lu.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":cu.delete(a.pointerId)}}function uu(i,a,d,h,v,C){return i===null||i.nativeEvent!==C?(i={blockedOn:a,domEventName:d,eventSystemFlags:h,nativeEvent:C,targetContainers:[v]},a!==null&&(a=Eu(a),a!==null&&ov(a)),i):(i.eventSystemFlags|=h,a=i.targetContainers,v!==null&&a.indexOf(v)===-1&&a.push(v),i)}function QZ(i,a,d,h,v){switch(a){case"focusin":return Zi=uu(Zi,i,a,d,h,v),!0;case"dragenter":return es=uu(es,i,a,d,h,v),!0;case"mouseover":return ts=uu(ts,i,a,d,h,v),!0;case"pointerover":var C=v.pointerId;return lu.set(C,uu(lu.get(C)||null,i,a,d,h,v)),!0;case"gotpointercapture":return C=v.pointerId,cu.set(C,uu(cu.get(C)||null,i,a,d,h,v)),!0}return!1}function gP(i){var a=Xs(i.target);if(a!==null){var d=Q(a);if(d!==null){if(a=d.tag,a===13){if(a=q(d),a!==null){i.blockedOn=a,hP(i.priority,function(){fP(d)});return}}else if(a===3&&d.stateNode.current.memoizedState.isDehydrated){i.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}i.blockedOn=null}function ip(i){if(i.blockedOn!==null)return!1;for(var a=i.targetContainers;0<a.length;){var d=av(i.domEventName,i.eventSystemFlags,a[0],i.nativeEvent);if(d===null){d=i.nativeEvent;var h=new d.constructor(d.type,d);yt=h,d.target.dispatchEvent(h),yt=null}else return a=Eu(d),a!==null&&ov(a),i.blockedOn=d,!1;a.shift()}return!0}function yP(i,a,d){ip(i)&&d.delete(a)}function YZ(){iv=!1,Zi!==null&&ip(Zi)&&(Zi=null),es!==null&&ip(es)&&(es=null),ts!==null&&ip(ts)&&(ts=null),lu.forEach(yP),cu.forEach(yP)}function du(i,a){i.blockedOn===a&&(i.blockedOn=null,iv||(iv=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,YZ)))}function fu(i){function a(v){return du(v,i)}if(0<op.length){du(op[0],i);for(var d=1;d<op.length;d++){var h=op[d];h.blockedOn===i&&(h.blockedOn=null)}}for(Zi!==null&&du(Zi,i),es!==null&&du(es,i),ts!==null&&du(ts,i),lu.forEach(a),cu.forEach(a),d=0;d<ns.length;d++)h=ns[d],h.blockedOn===i&&(h.blockedOn=null);for(;0<ns.length&&(d=ns[0],d.blockedOn===null);)gP(d),d.blockedOn===null&&ns.shift()}var ul=A.ReactCurrentBatchConfig,sp=!0;function XZ(i,a,d,h){var v=Xt,C=ul.transition;ul.transition=null;try{Xt=1,sv(i,a,d,h)}finally{Xt=v,ul.transition=C}}function JZ(i,a,d,h){var v=Xt,C=ul.transition;ul.transition=null;try{Xt=4,sv(i,a,d,h)}finally{Xt=v,ul.transition=C}}function sv(i,a,d,h){if(sp){var v=av(i,a,d,h);if(v===null)Ev(i,a,h,ap,d),mP(i,h);else if(QZ(v,i,a,d,h))h.stopPropagation();else if(mP(i,h),a&4&&-1<qZ.indexOf(i)){for(;v!==null;){var C=Eu(v);if(C!==null&&dP(C),C=av(i,a,d,h),C===null&&Ev(i,a,h,ap,d),C===v)break;v=C}v!==null&&h.stopPropagation()}else Ev(i,a,h,null,d)}}var ap=null;function av(i,a,d,h){if(ap=null,i=bt(h),i=Xs(i),i!==null)if(a=Q(i),a===null)i=null;else if(d=a.tag,d===13){if(i=q(a),i!==null)return i;i=null}else if(d===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null);return ap=i,null}function vP(i){switch(i){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ji()){case Jo:return 1;case Vr:return 4;case wi:case cl:return 16;case Ys:return 536870912;default:return 16}default:return 16}}var rs=null,lv=null,lp=null;function bP(){if(lp)return lp;var i,a=lv,d=a.length,h,v="value"in rs?rs.value:rs.textContent,C=v.length;for(i=0;i<d&&a[i]===v[i];i++);var j=d-i;for(h=1;h<=j&&a[d-h]===v[C-h];h++);return lp=v.slice(i,1<h?1-h:void 0)}function cp(i){var a=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&a===13&&(i=13)):i=a,i===10&&(i=13),32<=i||i===13?i:0}function up(){return!0}function xP(){return!1}function Kr(i){function a(d,h,v,C,j){this._reactName=d,this._targetInst=v,this.type=h,this.nativeEvent=C,this.target=j,this.currentTarget=null;for(var I in i)i.hasOwnProperty(I)&&(d=i[I],this[I]=d?d(C):C[I]);return this.isDefaultPrevented=(C.defaultPrevented!=null?C.defaultPrevented:C.returnValue===!1)?up:xP,this.isPropagationStopped=xP,this}return ce(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=up)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=up)},persist:function(){},isPersistent:up}),a}var dl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cv=Kr(dl),pu=ce({},dl,{view:0,detail:0}),ZZ=Kr(pu),uv,dv,hu,dp=ce({},pu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pv,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==hu&&(hu&&i.type==="mousemove"?(uv=i.screenX-hu.screenX,dv=i.screenY-hu.screenY):dv=uv=0,hu=i),uv)},movementY:function(i){return"movementY"in i?i.movementY:dv}}),wP=Kr(dp),eee=ce({},dp,{dataTransfer:0}),tee=Kr(eee),nee=ce({},pu,{relatedTarget:0}),fv=Kr(nee),ree=ce({},dl,{animationName:0,elapsedTime:0,pseudoElement:0}),oee=Kr(ree),iee=ce({},dl,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),see=Kr(iee),aee=ce({},dl,{data:0}),SP=Kr(aee),lee={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cee={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},uee={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dee(i){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(i):(i=uee[i])?!!a[i]:!1}function pv(){return dee}var fee=ce({},pu,{key:function(i){if(i.key){var a=lee[i.key]||i.key;if(a!=="Unidentified")return a}return i.type==="keypress"?(i=cp(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?cee[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pv,charCode:function(i){return i.type==="keypress"?cp(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?cp(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),pee=Kr(fee),hee=ce({},dp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),CP=Kr(hee),mee=ce({},pu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pv}),gee=Kr(mee),yee=ce({},dl,{propertyName:0,elapsedTime:0,pseudoElement:0}),vee=Kr(yee),bee=ce({},dp,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),xee=Kr(bee),wee=[9,13,27,32],hv=u&&"CompositionEvent"in window,mu=null;u&&"documentMode"in document&&(mu=document.documentMode);var See=u&&"TextEvent"in window&&!mu,EP=u&&(!hv||mu&&8<mu&&11>=mu),RP=" ",kP=!1;function PP(i,a){switch(i){case"keyup":return wee.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function TP(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var fl=!1;function Cee(i,a){switch(i){case"compositionend":return TP(a);case"keypress":return a.which!==32?null:(kP=!0,RP);case"textInput":return i=a.data,i===RP&&kP?null:i;default:return null}}function Eee(i,a){if(fl)return i==="compositionend"||!hv&&PP(i,a)?(i=bP(),lp=lv=rs=null,fl=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return EP&&a.locale!=="ko"?null:a.data;default:return null}}var Ree={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function OP(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a==="input"?!!Ree[i.type]:a==="textarea"}function $P(i,a,d,h){Qn(h),a=gp(a,"onChange"),0<a.length&&(d=new cv("onChange","change",null,d,h),i.push({event:d,listeners:a}))}var gu=null,yu=null;function kee(i){qP(i,0)}function fp(i){var a=yl(i);if(Be(a))return i}function Pee(i,a){if(i==="change")return a}var AP=!1;if(u){var mv;if(u){var gv="oninput"in document;if(!gv){var jP=document.createElement("div");jP.setAttribute("oninput","return;"),gv=typeof jP.oninput=="function"}mv=gv}else mv=!1;AP=mv&&(!document.documentMode||9<document.documentMode)}function _P(){gu&&(gu.detachEvent("onpropertychange",IP),yu=gu=null)}function IP(i){if(i.propertyName==="value"&&fp(yu)){var a=[];$P(a,yu,i,bt(i)),Ln(kee,a)}}function Tee(i,a,d){i==="focusin"?(_P(),gu=a,yu=d,gu.attachEvent("onpropertychange",IP)):i==="focusout"&&_P()}function Oee(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return fp(yu)}function $ee(i,a){if(i==="click")return fp(a)}function Aee(i,a){if(i==="input"||i==="change")return fp(a)}function jee(i,a){return i===a&&(i!==0||1/i===1/a)||i!==i&&a!==a}var $o=typeof Object.is=="function"?Object.is:jee;function vu(i,a){if($o(i,a))return!0;if(typeof i!="object"||i===null||typeof a!="object"||a===null)return!1;var d=Object.keys(i),h=Object.keys(a);if(d.length!==h.length)return!1;for(h=0;h<d.length;h++){var v=d[h];if(!c.call(a,v)||!$o(i[v],a[v]))return!1}return!0}function MP(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function NP(i,a){var d=MP(i);i=0;for(var h;d;){if(d.nodeType===3){if(h=i+d.textContent.length,i<=a&&h>=a)return{node:d,offset:a-i};i=h}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=MP(d)}}function LP(i,a){return i&&a?i===a?!0:i&&i.nodeType===3?!1:a&&a.nodeType===3?LP(i,a.parentNode):"contains"in i?i.contains(a):i.compareDocumentPosition?!!(i.compareDocumentPosition(a)&16):!1:!1}function DP(){for(var i=window,a=Je();a instanceof i.HTMLIFrameElement;){try{var d=typeof a.contentWindow.location.href=="string"}catch{d=!1}if(d)i=a.contentWindow;else break;a=Je(i.document)}return a}function yv(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a&&(a==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||a==="textarea"||i.contentEditable==="true")}function _ee(i){var a=DP(),d=i.focusedElem,h=i.selectionRange;if(a!==d&&d&&d.ownerDocument&&LP(d.ownerDocument.documentElement,d)){if(h!==null&&yv(d)){if(a=h.start,i=h.end,i===void 0&&(i=a),"selectionStart"in d)d.selectionStart=a,d.selectionEnd=Math.min(i,d.value.length);else if(i=(a=d.ownerDocument||document)&&a.defaultView||window,i.getSelection){i=i.getSelection();var v=d.textContent.length,C=Math.min(h.start,v);h=h.end===void 0?C:Math.min(h.end,v),!i.extend&&C>h&&(v=h,h=C,C=v),v=NP(d,C);var j=NP(d,h);v&&j&&(i.rangeCount!==1||i.anchorNode!==v.node||i.anchorOffset!==v.offset||i.focusNode!==j.node||i.focusOffset!==j.offset)&&(a=a.createRange(),a.setStart(v.node,v.offset),i.removeAllRanges(),C>h?(i.addRange(a),i.extend(j.node,j.offset)):(a.setEnd(j.node,j.offset),i.addRange(a)))}}for(a=[],i=d;i=i.parentNode;)i.nodeType===1&&a.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<a.length;d++)i=a[d],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var Iee=u&&"documentMode"in document&&11>=document.documentMode,pl=null,vv=null,bu=null,bv=!1;function FP(i,a,d){var h=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;bv||pl==null||pl!==Je(h)||(h=pl,"selectionStart"in h&&yv(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),bu&&vu(bu,h)||(bu=h,h=gp(vv,"onSelect"),0<h.length&&(a=new cv("onSelect","select",null,a,d),i.push({event:a,listeners:h}),a.target=pl)))}function pp(i,a){var d={};return d[i.toLowerCase()]=a.toLowerCase(),d["Webkit"+i]="webkit"+a,d["Moz"+i]="moz"+a,d}var hl={animationend:pp("Animation","AnimationEnd"),animationiteration:pp("Animation","AnimationIteration"),animationstart:pp("Animation","AnimationStart"),transitionend:pp("Transition","TransitionEnd")},xv={},BP={};u&&(BP=document.createElement("div").style,"AnimationEvent"in window||(delete hl.animationend.animation,delete hl.animationiteration.animation,delete hl.animationstart.animation),"TransitionEvent"in window||delete hl.transitionend.transition);function hp(i){if(xv[i])return xv[i];if(!hl[i])return i;var a=hl[i],d;for(d in a)if(a.hasOwnProperty(d)&&d in BP)return xv[i]=a[d];return i}var zP=hp("animationend"),UP=hp("animationiteration"),WP=hp("animationstart"),HP=hp("transitionend"),VP=new Map,KP="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function os(i,a){VP.set(i,a),s(a,[i])}for(var wv=0;wv<KP.length;wv++){var Sv=KP[wv],Mee=Sv.toLowerCase(),Nee=Sv[0].toUpperCase()+Sv.slice(1);os(Mee,"on"+Nee)}os(zP,"onAnimationEnd"),os(UP,"onAnimationIteration"),os(WP,"onAnimationStart"),os("dblclick","onDoubleClick"),os("focusin","onFocus"),os("focusout","onBlur"),os(HP,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lee=new Set("cancel close invalid load scroll toggle".split(" ").concat(xu));function GP(i,a,d){var h=i.type||"unknown-event";i.currentTarget=d,st(h,a,void 0,i),i.currentTarget=null}function qP(i,a){a=(a&4)!==0;for(var d=0;d<i.length;d++){var h=i[d],v=h.event;h=h.listeners;e:{var C=void 0;if(a)for(var j=h.length-1;0<=j;j--){var I=h[j],U=I.instance,ue=I.currentTarget;if(I=I.listener,U!==C&&v.isPropagationStopped())break e;GP(v,I,ue),C=U}else for(j=0;j<h.length;j++){if(I=h[j],U=I.instance,ue=I.currentTarget,I=I.listener,U!==C&&v.isPropagationStopped())break e;GP(v,I,ue),C=U}}}if(je)throw i=Ke,je=!1,Ke=null,i}function cn(i,a){var d=a[$v];d===void 0&&(d=a[$v]=new Set);var h=i+"__bubble";d.has(h)||(QP(a,i,2,!1),d.add(h))}function Cv(i,a,d){var h=0;a&&(h|=4),QP(d,i,h,a)}var mp="_reactListening"+Math.random().toString(36).slice(2);function wu(i){if(!i[mp]){i[mp]=!0,r.forEach(function(d){d!=="selectionchange"&&(Lee.has(d)||Cv(d,!1,i),Cv(d,!0,i))});var a=i.nodeType===9?i:i.ownerDocument;a===null||a[mp]||(a[mp]=!0,Cv("selectionchange",!1,a))}}function QP(i,a,d,h){switch(vP(a)){case 1:var v=XZ;break;case 4:v=JZ;break;default:v=sv}d=v.bind(null,a,d,i),v=void 0,!Qt||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(v=!0),h?v!==void 0?i.addEventListener(a,d,{capture:!0,passive:v}):i.addEventListener(a,d,!0):v!==void 0?i.addEventListener(a,d,{passive:v}):i.addEventListener(a,d,!1)}function Ev(i,a,d,h,v){var C=h;if(!(a&1)&&!(a&2)&&h!==null)e:for(;;){if(h===null)return;var j=h.tag;if(j===3||j===4){var I=h.stateNode.containerInfo;if(I===v||I.nodeType===8&&I.parentNode===v)break;if(j===4)for(j=h.return;j!==null;){var U=j.tag;if((U===3||U===4)&&(U=j.stateNode.containerInfo,U===v||U.nodeType===8&&U.parentNode===v))return;j=j.return}for(;I!==null;){if(j=Xs(I),j===null)return;if(U=j.tag,U===5||U===6){h=C=j;continue e}I=I.parentNode}}h=h.return}Ln(function(){var ue=C,Ce=bt(d),Te=[];e:{var Se=VP.get(i);if(Se!==void 0){var Ge=cv,Xe=i;switch(i){case"keypress":if(cp(d)===0)break e;case"keydown":case"keyup":Ge=pee;break;case"focusin":Xe="focus",Ge=fv;break;case"focusout":Xe="blur",Ge=fv;break;case"beforeblur":case"afterblur":Ge=fv;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ge=wP;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ge=tee;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ge=gee;break;case zP:case UP:case WP:Ge=oee;break;case HP:Ge=vee;break;case"scroll":Ge=ZZ;break;case"wheel":Ge=xee;break;case"copy":case"cut":case"paste":Ge=see;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ge=CP}var tt=(a&4)!==0,Rn=!tt&&i==="scroll",ee=tt?Se!==null?Se+"Capture":null:Se;tt=[];for(var K=ue,le;K!==null;){le=K;var Ae=le.stateNode;if(le.tag===5&&Ae!==null&&(le=Ae,ee!==null&&(Ae=on(K,ee),Ae!=null&&tt.push(Su(K,Ae,le)))),Rn)break;K=K.return}0<tt.length&&(Se=new Ge(Se,Xe,null,d,Ce),Te.push({event:Se,listeners:tt}))}}if(!(a&7)){e:{if(Se=i==="mouseover"||i==="pointerover",Ge=i==="mouseout"||i==="pointerout",Se&&d!==yt&&(Xe=d.relatedTarget||d.fromElement)&&(Xs(Xe)||Xe[Si]))break e;if((Ge||Se)&&(Se=Ce.window===Ce?Ce:(Se=Ce.ownerDocument)?Se.defaultView||Se.parentWindow:window,Ge?(Xe=d.relatedTarget||d.toElement,Ge=ue,Xe=Xe?Xs(Xe):null,Xe!==null&&(Rn=Q(Xe),Xe!==Rn||Xe.tag!==5&&Xe.tag!==6)&&(Xe=null)):(Ge=null,Xe=ue),Ge!==Xe)){if(tt=wP,Ae="onMouseLeave",ee="onMouseEnter",K="mouse",(i==="pointerout"||i==="pointerover")&&(tt=CP,Ae="onPointerLeave",ee="onPointerEnter",K="pointer"),Rn=Ge==null?Se:yl(Ge),le=Xe==null?Se:yl(Xe),Se=new tt(Ae,K+"leave",Ge,d,Ce),Se.target=Rn,Se.relatedTarget=le,Ae=null,Xs(Ce)===ue&&(tt=new tt(ee,K+"enter",Xe,d,Ce),tt.target=le,tt.relatedTarget=Rn,Ae=tt),Rn=Ae,Ge&&Xe)t:{for(tt=Ge,ee=Xe,K=0,le=tt;le;le=ml(le))K++;for(le=0,Ae=ee;Ae;Ae=ml(Ae))le++;for(;0<K-le;)tt=ml(tt),K--;for(;0<le-K;)ee=ml(ee),le--;for(;K--;){if(tt===ee||ee!==null&&tt===ee.alternate)break t;tt=ml(tt),ee=ml(ee)}tt=null}else tt=null;Ge!==null&&YP(Te,Se,Ge,tt,!1),Xe!==null&&Rn!==null&&YP(Te,Rn,Xe,tt,!0)}}e:{if(Se=ue?yl(ue):window,Ge=Se.nodeName&&Se.nodeName.toLowerCase(),Ge==="select"||Ge==="input"&&Se.type==="file")var rt=Pee;else if(OP(Se))if(AP)rt=Aee;else{rt=Oee;var at=Tee}else(Ge=Se.nodeName)&&Ge.toLowerCase()==="input"&&(Se.type==="checkbox"||Se.type==="radio")&&(rt=$ee);if(rt&&(rt=rt(i,ue))){$P(Te,rt,d,Ce);break e}at&&at(i,Se,ue),i==="focusout"&&(at=Se._wrapperState)&&at.controlled&&Se.type==="number"&&$t(Se,"number",Se.value)}switch(at=ue?yl(ue):window,i){case"focusin":(OP(at)||at.contentEditable==="true")&&(pl=at,vv=ue,bu=null);break;case"focusout":bu=vv=pl=null;break;case"mousedown":bv=!0;break;case"contextmenu":case"mouseup":case"dragend":bv=!1,FP(Te,d,Ce);break;case"selectionchange":if(Iee)break;case"keydown":case"keyup":FP(Te,d,Ce)}var lt;if(hv)e:{switch(i){case"compositionstart":var ht="onCompositionStart";break e;case"compositionend":ht="onCompositionEnd";break e;case"compositionupdate":ht="onCompositionUpdate";break e}ht=void 0}else fl?PP(i,d)&&(ht="onCompositionEnd"):i==="keydown"&&d.keyCode===229&&(ht="onCompositionStart");ht&&(EP&&d.locale!=="ko"&&(fl||ht!=="onCompositionStart"?ht==="onCompositionEnd"&&fl&&(lt=bP()):(rs=Ce,lv="value"in rs?rs.value:rs.textContent,fl=!0)),at=gp(ue,ht),0<at.length&&(ht=new SP(ht,i,null,d,Ce),Te.push({event:ht,listeners:at}),lt?ht.data=lt:(lt=TP(d),lt!==null&&(ht.data=lt)))),(lt=See?Cee(i,d):Eee(i,d))&&(ue=gp(ue,"onBeforeInput"),0<ue.length&&(Ce=new SP("onBeforeInput","beforeinput",null,d,Ce),Te.push({event:Ce,listeners:ue}),Ce.data=lt))}qP(Te,a)})}function Su(i,a,d){return{instance:i,listener:a,currentTarget:d}}function gp(i,a){for(var d=a+"Capture",h=[];i!==null;){var v=i,C=v.stateNode;v.tag===5&&C!==null&&(v=C,C=on(i,d),C!=null&&h.unshift(Su(i,C,v)),C=on(i,a),C!=null&&h.push(Su(i,C,v))),i=i.return}return h}function ml(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function YP(i,a,d,h,v){for(var C=a._reactName,j=[];d!==null&&d!==h;){var I=d,U=I.alternate,ue=I.stateNode;if(U!==null&&U===h)break;I.tag===5&&ue!==null&&(I=ue,v?(U=on(d,C),U!=null&&j.unshift(Su(d,U,I))):v||(U=on(d,C),U!=null&&j.push(Su(d,U,I)))),d=d.return}j.length!==0&&i.push({event:a,listeners:j})}var Dee=/\r\n?/g,Fee=/\u0000|\uFFFD/g;function XP(i){return(typeof i=="string"?i:""+i).replace(Dee,`
|
|
6
|
-
`).replace(Fee,"")}function yp(i,a,d){if(a=XP(a),XP(i)!==a&&d)throw Error(n(425))}function vp(){}var Rv=null,kv=null;function Pv(i,a){return i==="textarea"||i==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Tv=typeof setTimeout=="function"?setTimeout:void 0,Bee=typeof clearTimeout=="function"?clearTimeout:void 0,JP=typeof Promise=="function"?Promise:void 0,zee=typeof queueMicrotask=="function"?queueMicrotask:typeof JP<"u"?function(i){return JP.resolve(null).then(i).catch(Uee)}:Tv;function Uee(i){setTimeout(function(){throw i})}function Ov(i,a){var d=a,h=0;do{var v=d.nextSibling;if(i.removeChild(d),v&&v.nodeType===8)if(d=v.data,d==="/$"){if(h===0){i.removeChild(v),fu(a);return}h--}else d!=="$"&&d!=="$?"&&d!=="$!"||h++;d=v}while(d);fu(a)}function is(i){for(;i!=null;i=i.nextSibling){var a=i.nodeType;if(a===1||a===3)break;if(a===8){if(a=i.data,a==="$"||a==="$!"||a==="$?")break;if(a==="/$")return null}}return i}function ZP(i){i=i.previousSibling;for(var a=0;i;){if(i.nodeType===8){var d=i.data;if(d==="$"||d==="$!"||d==="$?"){if(a===0)return i;a--}else d==="/$"&&a++}i=i.previousSibling}return null}var gl=Math.random().toString(36).slice(2),Zo="__reactFiber$"+gl,Cu="__reactProps$"+gl,Si="__reactContainer$"+gl,$v="__reactEvents$"+gl,Wee="__reactListeners$"+gl,Hee="__reactHandles$"+gl;function Xs(i){var a=i[Zo];if(a)return a;for(var d=i.parentNode;d;){if(a=d[Si]||d[Zo]){if(d=a.alternate,a.child!==null||d!==null&&d.child!==null)for(i=ZP(i);i!==null;){if(d=i[Zo])return d;i=ZP(i)}return a}i=d,d=i.parentNode}return null}function Eu(i){return i=i[Zo]||i[Si],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function yl(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(n(33))}function bp(i){return i[Cu]||null}var Av=[],vl=-1;function ss(i){return{current:i}}function un(i){0>vl||(i.current=Av[vl],Av[vl]=null,vl--)}function sn(i,a){vl++,Av[vl]=i.current,i.current=a}var as={},Yn=ss(as),Rr=ss(!1),Js=as;function bl(i,a){var d=i.type.contextTypes;if(!d)return as;var h=i.stateNode;if(h&&h.__reactInternalMemoizedUnmaskedChildContext===a)return h.__reactInternalMemoizedMaskedChildContext;var v={},C;for(C in d)v[C]=a[C];return h&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=a,i.__reactInternalMemoizedMaskedChildContext=v),v}function kr(i){return i=i.childContextTypes,i!=null}function xp(){un(Rr),un(Yn)}function eT(i,a,d){if(Yn.current!==as)throw Error(n(168));sn(Yn,a),sn(Rr,d)}function tT(i,a,d){var h=i.stateNode;if(a=a.childContextTypes,typeof h.getChildContext!="function")return d;h=h.getChildContext();for(var v in h)if(!(v in a))throw Error(n(108,Me(i)||"Unknown",v));return ce({},d,h)}function wp(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||as,Js=Yn.current,sn(Yn,i),sn(Rr,Rr.current),!0}function nT(i,a,d){var h=i.stateNode;if(!h)throw Error(n(169));d?(i=tT(i,a,Js),h.__reactInternalMemoizedMergedChildContext=i,un(Rr),un(Yn),sn(Yn,i)):un(Rr),sn(Rr,d)}var Ci=null,Sp=!1,jv=!1;function rT(i){Ci===null?Ci=[i]:Ci.push(i)}function Vee(i){Sp=!0,rT(i)}function ls(){if(!jv&&Ci!==null){jv=!0;var i=0,a=Xt;try{var d=Ci;for(Xt=1;i<d.length;i++){var h=d[i];do h=h(!0);while(h!==null)}Ci=null,Sp=!1}catch(v){throw Ci!==null&&(Ci=Ci.slice(i+1)),nt(Jo,ls),v}finally{Xt=a,jv=!1}}return null}var xl=[],wl=0,Cp=null,Ep=0,fo=[],po=0,Zs=null,Ei=1,Ri="";function ea(i,a){xl[wl++]=Ep,xl[wl++]=Cp,Cp=i,Ep=a}function oT(i,a,d){fo[po++]=Ei,fo[po++]=Ri,fo[po++]=Zs,Zs=i;var h=Ei;i=Ri;var v=32-jt(h)-1;h&=~(1<<v),d+=1;var C=32-jt(a)+v;if(30<C){var j=v-v%5;C=(h&(1<<j)-1).toString(32),h>>=j,v-=j,Ei=1<<32-jt(a)+v|d<<v|h,Ri=C+i}else Ei=1<<C|d<<v|h,Ri=i}function _v(i){i.return!==null&&(ea(i,1),oT(i,1,0))}function Iv(i){for(;i===Cp;)Cp=xl[--wl],xl[wl]=null,Ep=xl[--wl],xl[wl]=null;for(;i===Zs;)Zs=fo[--po],fo[po]=null,Ri=fo[--po],fo[po]=null,Ei=fo[--po],fo[po]=null}var Gr=null,qr=null,pn=!1,Ao=null;function iT(i,a){var d=yo(5,null,null,0);d.elementType="DELETED",d.stateNode=a,d.return=i,a=i.deletions,a===null?(i.deletions=[d],i.flags|=16):a.push(d)}function sT(i,a){switch(i.tag){case 5:var d=i.type;return a=a.nodeType!==1||d.toLowerCase()!==a.nodeName.toLowerCase()?null:a,a!==null?(i.stateNode=a,Gr=i,qr=is(a.firstChild),!0):!1;case 6:return a=i.pendingProps===""||a.nodeType!==3?null:a,a!==null?(i.stateNode=a,Gr=i,qr=null,!0):!1;case 13:return a=a.nodeType!==8?null:a,a!==null?(d=Zs!==null?{id:Ei,overflow:Ri}:null,i.memoizedState={dehydrated:a,treeContext:d,retryLane:1073741824},d=yo(18,null,null,0),d.stateNode=a,d.return=i,i.child=d,Gr=i,qr=null,!0):!1;default:return!1}}function Mv(i){return(i.mode&1)!==0&&(i.flags&128)===0}function Nv(i){if(pn){var a=qr;if(a){var d=a;if(!sT(i,a)){if(Mv(i))throw Error(n(418));a=is(d.nextSibling);var h=Gr;a&&sT(i,a)?iT(h,d):(i.flags=i.flags&-4097|2,pn=!1,Gr=i)}}else{if(Mv(i))throw Error(n(418));i.flags=i.flags&-4097|2,pn=!1,Gr=i}}}function aT(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;Gr=i}function Rp(i){if(i!==Gr)return!1;if(!pn)return aT(i),pn=!0,!1;var a;if((a=i.tag!==3)&&!(a=i.tag!==5)&&(a=i.type,a=a!=="head"&&a!=="body"&&!Pv(i.type,i.memoizedProps)),a&&(a=qr)){if(Mv(i))throw lT(),Error(n(418));for(;a;)iT(i,a),a=is(a.nextSibling)}if(aT(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));e:{for(i=i.nextSibling,a=0;i;){if(i.nodeType===8){var d=i.data;if(d==="/$"){if(a===0){qr=is(i.nextSibling);break e}a--}else d!=="$"&&d!=="$!"&&d!=="$?"||a++}i=i.nextSibling}qr=null}}else qr=Gr?is(i.stateNode.nextSibling):null;return!0}function lT(){for(var i=qr;i;)i=is(i.nextSibling)}function Sl(){qr=Gr=null,pn=!1}function Lv(i){Ao===null?Ao=[i]:Ao.push(i)}var Kee=A.ReactCurrentBatchConfig;function Ru(i,a,d){if(i=d.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(d._owner){if(d=d._owner,d){if(d.tag!==1)throw Error(n(309));var h=d.stateNode}if(!h)throw Error(n(147,i));var v=h,C=""+i;return a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===C?a.ref:(a=function(j){var I=v.refs;j===null?delete I[C]:I[C]=j},a._stringRef=C,a)}if(typeof i!="string")throw Error(n(284));if(!d._owner)throw Error(n(290,i))}return i}function kp(i,a){throw i=Object.prototype.toString.call(a),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":i))}function cT(i){var a=i._init;return a(i._payload)}function uT(i){function a(ee,K){if(i){var le=ee.deletions;le===null?(ee.deletions=[K],ee.flags|=16):le.push(K)}}function d(ee,K){if(!i)return null;for(;K!==null;)a(ee,K),K=K.sibling;return null}function h(ee,K){for(ee=new Map;K!==null;)K.key!==null?ee.set(K.key,K):ee.set(K.index,K),K=K.sibling;return ee}function v(ee,K){return ee=gs(ee,K),ee.index=0,ee.sibling=null,ee}function C(ee,K,le){return ee.index=le,i?(le=ee.alternate,le!==null?(le=le.index,le<K?(ee.flags|=2,K):le):(ee.flags|=2,K)):(ee.flags|=1048576,K)}function j(ee){return i&&ee.alternate===null&&(ee.flags|=2),ee}function I(ee,K,le,Ae){return K===null||K.tag!==6?(K=T0(le,ee.mode,Ae),K.return=ee,K):(K=v(K,le),K.return=ee,K)}function U(ee,K,le,Ae){var rt=le.type;return rt===_?Ce(ee,K,le.props.children,Ae,le.key):K!==null&&(K.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===Z&&cT(rt)===K.type)?(Ae=v(K,le.props),Ae.ref=Ru(ee,K,le),Ae.return=ee,Ae):(Ae=Yp(le.type,le.key,le.props,null,ee.mode,Ae),Ae.ref=Ru(ee,K,le),Ae.return=ee,Ae)}function ue(ee,K,le,Ae){return K===null||K.tag!==4||K.stateNode.containerInfo!==le.containerInfo||K.stateNode.implementation!==le.implementation?(K=O0(le,ee.mode,Ae),K.return=ee,K):(K=v(K,le.children||[]),K.return=ee,K)}function Ce(ee,K,le,Ae,rt){return K===null||K.tag!==7?(K=la(le,ee.mode,Ae,rt),K.return=ee,K):(K=v(K,le),K.return=ee,K)}function Te(ee,K,le){if(typeof K=="string"&&K!==""||typeof K=="number")return K=T0(""+K,ee.mode,le),K.return=ee,K;if(typeof K=="object"&&K!==null){switch(K.$$typeof){case $:return le=Yp(K.type,K.key,K.props,null,ee.mode,le),le.ref=Ru(ee,null,K),le.return=ee,le;case T:return K=O0(K,ee.mode,le),K.return=ee,K;case Z:var Ae=K._init;return Te(ee,Ae(K._payload),le)}if(gt(K)||Y(K))return K=la(K,ee.mode,le,null),K.return=ee,K;kp(ee,K)}return null}function Se(ee,K,le,Ae){var rt=K!==null?K.key:null;if(typeof le=="string"&&le!==""||typeof le=="number")return rt!==null?null:I(ee,K,""+le,Ae);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case $:return le.key===rt?U(ee,K,le,Ae):null;case T:return le.key===rt?ue(ee,K,le,Ae):null;case Z:return rt=le._init,Se(ee,K,rt(le._payload),Ae)}if(gt(le)||Y(le))return rt!==null?null:Ce(ee,K,le,Ae,null);kp(ee,le)}return null}function Ge(ee,K,le,Ae,rt){if(typeof Ae=="string"&&Ae!==""||typeof Ae=="number")return ee=ee.get(le)||null,I(K,ee,""+Ae,rt);if(typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case $:return ee=ee.get(Ae.key===null?le:Ae.key)||null,U(K,ee,Ae,rt);case T:return ee=ee.get(Ae.key===null?le:Ae.key)||null,ue(K,ee,Ae,rt);case Z:var at=Ae._init;return Ge(ee,K,le,at(Ae._payload),rt)}if(gt(Ae)||Y(Ae))return ee=ee.get(le)||null,Ce(K,ee,Ae,rt,null);kp(K,Ae)}return null}function Xe(ee,K,le,Ae){for(var rt=null,at=null,lt=K,ht=K=0,Bn=null;lt!==null&&ht<le.length;ht++){lt.index>ht?(Bn=lt,lt=null):Bn=lt.sibling;var Bt=Se(ee,lt,le[ht],Ae);if(Bt===null){lt===null&&(lt=Bn);break}i&<&&Bt.alternate===null&&a(ee,lt),K=C(Bt,K,ht),at===null?rt=Bt:at.sibling=Bt,at=Bt,lt=Bn}if(ht===le.length)return d(ee,lt),pn&&ea(ee,ht),rt;if(lt===null){for(;ht<le.length;ht++)lt=Te(ee,le[ht],Ae),lt!==null&&(K=C(lt,K,ht),at===null?rt=lt:at.sibling=lt,at=lt);return pn&&ea(ee,ht),rt}for(lt=h(ee,lt);ht<le.length;ht++)Bn=Ge(lt,ee,ht,le[ht],Ae),Bn!==null&&(i&&Bn.alternate!==null&<.delete(Bn.key===null?ht:Bn.key),K=C(Bn,K,ht),at===null?rt=Bn:at.sibling=Bn,at=Bn);return i&<.forEach(function(ys){return a(ee,ys)}),pn&&ea(ee,ht),rt}function tt(ee,K,le,Ae){var rt=Y(le);if(typeof rt!="function")throw Error(n(150));if(le=rt.call(le),le==null)throw Error(n(151));for(var at=rt=null,lt=K,ht=K=0,Bn=null,Bt=le.next();lt!==null&&!Bt.done;ht++,Bt=le.next()){lt.index>ht?(Bn=lt,lt=null):Bn=lt.sibling;var ys=Se(ee,lt,Bt.value,Ae);if(ys===null){lt===null&&(lt=Bn);break}i&<&&ys.alternate===null&&a(ee,lt),K=C(ys,K,ht),at===null?rt=ys:at.sibling=ys,at=ys,lt=Bn}if(Bt.done)return d(ee,lt),pn&&ea(ee,ht),rt;if(lt===null){for(;!Bt.done;ht++,Bt=le.next())Bt=Te(ee,Bt.value,Ae),Bt!==null&&(K=C(Bt,K,ht),at===null?rt=Bt:at.sibling=Bt,at=Bt);return pn&&ea(ee,ht),rt}for(lt=h(ee,lt);!Bt.done;ht++,Bt=le.next())Bt=Ge(lt,ee,ht,Bt.value,Ae),Bt!==null&&(i&&Bt.alternate!==null&<.delete(Bt.key===null?ht:Bt.key),K=C(Bt,K,ht),at===null?rt=Bt:at.sibling=Bt,at=Bt);return i&<.forEach(function(Rte){return a(ee,Rte)}),pn&&ea(ee,ht),rt}function Rn(ee,K,le,Ae){if(typeof le=="object"&&le!==null&&le.type===_&&le.key===null&&(le=le.props.children),typeof le=="object"&&le!==null){switch(le.$$typeof){case $:e:{for(var rt=le.key,at=K;at!==null;){if(at.key===rt){if(rt=le.type,rt===_){if(at.tag===7){d(ee,at.sibling),K=v(at,le.props.children),K.return=ee,ee=K;break e}}else if(at.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===Z&&cT(rt)===at.type){d(ee,at.sibling),K=v(at,le.props),K.ref=Ru(ee,at,le),K.return=ee,ee=K;break e}d(ee,at);break}else a(ee,at);at=at.sibling}le.type===_?(K=la(le.props.children,ee.mode,Ae,le.key),K.return=ee,ee=K):(Ae=Yp(le.type,le.key,le.props,null,ee.mode,Ae),Ae.ref=Ru(ee,K,le),Ae.return=ee,ee=Ae)}return j(ee);case T:e:{for(at=le.key;K!==null;){if(K.key===at)if(K.tag===4&&K.stateNode.containerInfo===le.containerInfo&&K.stateNode.implementation===le.implementation){d(ee,K.sibling),K=v(K,le.children||[]),K.return=ee,ee=K;break e}else{d(ee,K);break}else a(ee,K);K=K.sibling}K=O0(le,ee.mode,Ae),K.return=ee,ee=K}return j(ee);case Z:return at=le._init,Rn(ee,K,at(le._payload),Ae)}if(gt(le))return Xe(ee,K,le,Ae);if(Y(le))return tt(ee,K,le,Ae);kp(ee,le)}return typeof le=="string"&&le!==""||typeof le=="number"?(le=""+le,K!==null&&K.tag===6?(d(ee,K.sibling),K=v(K,le),K.return=ee,ee=K):(d(ee,K),K=T0(le,ee.mode,Ae),K.return=ee,ee=K),j(ee)):d(ee,K)}return Rn}var Cl=uT(!0),dT=uT(!1),Pp=ss(null),Tp=null,El=null,Dv=null;function Fv(){Dv=El=Tp=null}function Bv(i){var a=Pp.current;un(Pp),i._currentValue=a}function zv(i,a,d){for(;i!==null;){var h=i.alternate;if((i.childLanes&a)!==a?(i.childLanes|=a,h!==null&&(h.childLanes|=a)):h!==null&&(h.childLanes&a)!==a&&(h.childLanes|=a),i===d)break;i=i.return}}function Rl(i,a){Tp=i,Dv=El=null,i=i.dependencies,i!==null&&i.firstContext!==null&&(i.lanes&a&&(Pr=!0),i.firstContext=null)}function ho(i){var a=i._currentValue;if(Dv!==i)if(i={context:i,memoizedValue:a,next:null},El===null){if(Tp===null)throw Error(n(308));El=i,Tp.dependencies={lanes:0,firstContext:i}}else El=El.next=i;return a}var ta=null;function Uv(i){ta===null?ta=[i]:ta.push(i)}function fT(i,a,d,h){var v=a.interleaved;return v===null?(d.next=d,Uv(a)):(d.next=v.next,v.next=d),a.interleaved=d,ki(i,h)}function ki(i,a){i.lanes|=a;var d=i.alternate;for(d!==null&&(d.lanes|=a),d=i,i=i.return;i!==null;)i.childLanes|=a,d=i.alternate,d!==null&&(d.childLanes|=a),d=i,i=i.return;return d.tag===3?d.stateNode:null}var cs=!1;function Wv(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function pT(i,a){i=i.updateQueue,a.updateQueue===i&&(a.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Pi(i,a){return{eventTime:i,lane:a,tag:0,payload:null,callback:null,next:null}}function us(i,a,d){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,Lt&2){var v=h.pending;return v===null?a.next=a:(a.next=v.next,v.next=a),h.pending=a,ki(i,d)}return v=h.interleaved,v===null?(a.next=a,Uv(h)):(a.next=v.next,v.next=a),h.interleaved=a,ki(i,d)}function Op(i,a,d){if(a=a.updateQueue,a!==null&&(a=a.shared,(d&4194240)!==0)){var h=a.lanes;h&=i.pendingLanes,d|=h,a.lanes=d,rv(i,d)}}function hT(i,a){var d=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,d===h)){var v=null,C=null;if(d=d.firstBaseUpdate,d!==null){do{var j={eventTime:d.eventTime,lane:d.lane,tag:d.tag,payload:d.payload,callback:d.callback,next:null};C===null?v=C=j:C=C.next=j,d=d.next}while(d!==null);C===null?v=C=a:C=C.next=a}else v=C=a;d={baseState:h.baseState,firstBaseUpdate:v,lastBaseUpdate:C,shared:h.shared,effects:h.effects},i.updateQueue=d;return}i=d.lastBaseUpdate,i===null?d.firstBaseUpdate=a:i.next=a,d.lastBaseUpdate=a}function $p(i,a,d,h){var v=i.updateQueue;cs=!1;var C=v.firstBaseUpdate,j=v.lastBaseUpdate,I=v.shared.pending;if(I!==null){v.shared.pending=null;var U=I,ue=U.next;U.next=null,j===null?C=ue:j.next=ue,j=U;var Ce=i.alternate;Ce!==null&&(Ce=Ce.updateQueue,I=Ce.lastBaseUpdate,I!==j&&(I===null?Ce.firstBaseUpdate=ue:I.next=ue,Ce.lastBaseUpdate=U))}if(C!==null){var Te=v.baseState;j=0,Ce=ue=U=null,I=C;do{var Se=I.lane,Ge=I.eventTime;if((h&Se)===Se){Ce!==null&&(Ce=Ce.next={eventTime:Ge,lane:0,tag:I.tag,payload:I.payload,callback:I.callback,next:null});e:{var Xe=i,tt=I;switch(Se=a,Ge=d,tt.tag){case 1:if(Xe=tt.payload,typeof Xe=="function"){Te=Xe.call(Ge,Te,Se);break e}Te=Xe;break e;case 3:Xe.flags=Xe.flags&-65537|128;case 0:if(Xe=tt.payload,Se=typeof Xe=="function"?Xe.call(Ge,Te,Se):Xe,Se==null)break e;Te=ce({},Te,Se);break e;case 2:cs=!0}}I.callback!==null&&I.lane!==0&&(i.flags|=64,Se=v.effects,Se===null?v.effects=[I]:Se.push(I))}else Ge={eventTime:Ge,lane:Se,tag:I.tag,payload:I.payload,callback:I.callback,next:null},Ce===null?(ue=Ce=Ge,U=Te):Ce=Ce.next=Ge,j|=Se;if(I=I.next,I===null){if(I=v.shared.pending,I===null)break;Se=I,I=Se.next,Se.next=null,v.lastBaseUpdate=Se,v.shared.pending=null}}while(!0);if(Ce===null&&(U=Te),v.baseState=U,v.firstBaseUpdate=ue,v.lastBaseUpdate=Ce,a=v.shared.interleaved,a!==null){v=a;do j|=v.lane,v=v.next;while(v!==a)}else C===null&&(v.shared.lanes=0);oa|=j,i.lanes=j,i.memoizedState=Te}}function mT(i,a,d){if(i=a.effects,a.effects=null,i!==null)for(a=0;a<i.length;a++){var h=i[a],v=h.callback;if(v!==null){if(h.callback=null,h=d,typeof v!="function")throw Error(n(191,v));v.call(h)}}}var ku={},ei=ss(ku),Pu=ss(ku),Tu=ss(ku);function na(i){if(i===ku)throw Error(n(174));return i}function Hv(i,a){switch(sn(Tu,a),sn(Pu,i),sn(ei,ku),i=a.nodeType,i){case 9:case 11:a=(a=a.documentElement)?a.namespaceURI:qt(null,"");break;default:i=i===8?a.parentNode:a,a=i.namespaceURI||null,i=i.tagName,a=qt(a,i)}un(ei),sn(ei,a)}function kl(){un(ei),un(Pu),un(Tu)}function gT(i){na(Tu.current);var a=na(ei.current),d=qt(a,i.type);a!==d&&(sn(Pu,i),sn(ei,d))}function Vv(i){Pu.current===i&&(un(ei),un(Pu))}var mn=ss(0);function Ap(i){for(var a=i;a!==null;){if(a.tag===13){var d=a.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||d.data==="$?"||d.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if(a.flags&128)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Kv=[];function Gv(){for(var i=0;i<Kv.length;i++)Kv[i]._workInProgressVersionPrimary=null;Kv.length=0}var jp=A.ReactCurrentDispatcher,qv=A.ReactCurrentBatchConfig,ra=0,gn=null,jn=null,Dn=null,_p=!1,Ou=!1,$u=0,Gee=0;function Xn(){throw Error(n(321))}function Qv(i,a){if(a===null)return!1;for(var d=0;d<a.length&&d<i.length;d++)if(!$o(i[d],a[d]))return!1;return!0}function Yv(i,a,d,h,v,C){if(ra=C,gn=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,jp.current=i===null||i.memoizedState===null?Xee:Jee,i=d(h,v),Ou){C=0;do{if(Ou=!1,$u=0,25<=C)throw Error(n(301));C+=1,Dn=jn=null,a.updateQueue=null,jp.current=Zee,i=d(h,v)}while(Ou)}if(jp.current=Np,a=jn!==null&&jn.next!==null,ra=0,Dn=jn=gn=null,_p=!1,a)throw Error(n(300));return i}function Xv(){var i=$u!==0;return $u=0,i}function ti(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dn===null?gn.memoizedState=Dn=i:Dn=Dn.next=i,Dn}function mo(){if(jn===null){var i=gn.alternate;i=i!==null?i.memoizedState:null}else i=jn.next;var a=Dn===null?gn.memoizedState:Dn.next;if(a!==null)Dn=a,jn=i;else{if(i===null)throw Error(n(310));jn=i,i={memoizedState:jn.memoizedState,baseState:jn.baseState,baseQueue:jn.baseQueue,queue:jn.queue,next:null},Dn===null?gn.memoizedState=Dn=i:Dn=Dn.next=i}return Dn}function Au(i,a){return typeof a=="function"?a(i):a}function Jv(i){var a=mo(),d=a.queue;if(d===null)throw Error(n(311));d.lastRenderedReducer=i;var h=jn,v=h.baseQueue,C=d.pending;if(C!==null){if(v!==null){var j=v.next;v.next=C.next,C.next=j}h.baseQueue=v=C,d.pending=null}if(v!==null){C=v.next,h=h.baseState;var I=j=null,U=null,ue=C;do{var Ce=ue.lane;if((ra&Ce)===Ce)U!==null&&(U=U.next={lane:0,action:ue.action,hasEagerState:ue.hasEagerState,eagerState:ue.eagerState,next:null}),h=ue.hasEagerState?ue.eagerState:i(h,ue.action);else{var Te={lane:Ce,action:ue.action,hasEagerState:ue.hasEagerState,eagerState:ue.eagerState,next:null};U===null?(I=U=Te,j=h):U=U.next=Te,gn.lanes|=Ce,oa|=Ce}ue=ue.next}while(ue!==null&&ue!==C);U===null?j=h:U.next=I,$o(h,a.memoizedState)||(Pr=!0),a.memoizedState=h,a.baseState=j,a.baseQueue=U,d.lastRenderedState=h}if(i=d.interleaved,i!==null){v=i;do C=v.lane,gn.lanes|=C,oa|=C,v=v.next;while(v!==i)}else v===null&&(d.lanes=0);return[a.memoizedState,d.dispatch]}function Zv(i){var a=mo(),d=a.queue;if(d===null)throw Error(n(311));d.lastRenderedReducer=i;var h=d.dispatch,v=d.pending,C=a.memoizedState;if(v!==null){d.pending=null;var j=v=v.next;do C=i(C,j.action),j=j.next;while(j!==v);$o(C,a.memoizedState)||(Pr=!0),a.memoizedState=C,a.baseQueue===null&&(a.baseState=C),d.lastRenderedState=C}return[C,h]}function yT(){}function vT(i,a){var d=gn,h=mo(),v=a(),C=!$o(h.memoizedState,v);if(C&&(h.memoizedState=v,Pr=!0),h=h.queue,e0(wT.bind(null,d,h,i),[i]),h.getSnapshot!==a||C||Dn!==null&&Dn.memoizedState.tag&1){if(d.flags|=2048,ju(9,xT.bind(null,d,h,v,a),void 0,null),Fn===null)throw Error(n(349));ra&30||bT(d,a,v)}return v}function bT(i,a,d){i.flags|=16384,i={getSnapshot:a,value:d},a=gn.updateQueue,a===null?(a={lastEffect:null,stores:null},gn.updateQueue=a,a.stores=[i]):(d=a.stores,d===null?a.stores=[i]:d.push(i))}function xT(i,a,d,h){a.value=d,a.getSnapshot=h,ST(a)&&CT(i)}function wT(i,a,d){return d(function(){ST(a)&&CT(i)})}function ST(i){var a=i.getSnapshot;i=i.value;try{var d=a();return!$o(i,d)}catch{return!0}}function CT(i){var a=ki(i,1);a!==null&&Mo(a,i,1,-1)}function ET(i){var a=ti();return typeof i=="function"&&(i=i()),a.memoizedState=a.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Au,lastRenderedState:i},a.queue=i,i=i.dispatch=Yee.bind(null,gn,i),[a.memoizedState,i]}function ju(i,a,d,h){return i={tag:i,create:a,destroy:d,deps:h,next:null},a=gn.updateQueue,a===null?(a={lastEffect:null,stores:null},gn.updateQueue=a,a.lastEffect=i.next=i):(d=a.lastEffect,d===null?a.lastEffect=i.next=i:(h=d.next,d.next=i,i.next=h,a.lastEffect=i)),i}function RT(){return mo().memoizedState}function Ip(i,a,d,h){var v=ti();gn.flags|=i,v.memoizedState=ju(1|a,d,void 0,h===void 0?null:h)}function Mp(i,a,d,h){var v=mo();h=h===void 0?null:h;var C=void 0;if(jn!==null){var j=jn.memoizedState;if(C=j.destroy,h!==null&&Qv(h,j.deps)){v.memoizedState=ju(a,d,C,h);return}}gn.flags|=i,v.memoizedState=ju(1|a,d,C,h)}function kT(i,a){return Ip(8390656,8,i,a)}function e0(i,a){return Mp(2048,8,i,a)}function PT(i,a){return Mp(4,2,i,a)}function TT(i,a){return Mp(4,4,i,a)}function OT(i,a){if(typeof a=="function")return i=i(),a(i),function(){a(null)};if(a!=null)return i=i(),a.current=i,function(){a.current=null}}function $T(i,a,d){return d=d!=null?d.concat([i]):null,Mp(4,4,OT.bind(null,a,i),d)}function t0(){}function AT(i,a){var d=mo();a=a===void 0?null:a;var h=d.memoizedState;return h!==null&&a!==null&&Qv(a,h[1])?h[0]:(d.memoizedState=[i,a],i)}function jT(i,a){var d=mo();a=a===void 0?null:a;var h=d.memoizedState;return h!==null&&a!==null&&Qv(a,h[1])?h[0]:(i=i(),d.memoizedState=[i,a],i)}function _T(i,a,d){return ra&21?($o(d,a)||(d=cP(),gn.lanes|=d,oa|=d,i.baseState=!0),a):(i.baseState&&(i.baseState=!1,Pr=!0),i.memoizedState=d)}function qee(i,a){var d=Xt;Xt=d!==0&&4>d?d:4,i(!0);var h=qv.transition;qv.transition={};try{i(!1),a()}finally{Xt=d,qv.transition=h}}function IT(){return mo().memoizedState}function Qee(i,a,d){var h=hs(i);if(d={lane:h,action:d,hasEagerState:!1,eagerState:null,next:null},MT(i))NT(a,d);else if(d=fT(i,a,d,h),d!==null){var v=dr();Mo(d,i,h,v),LT(d,a,h)}}function Yee(i,a,d){var h=hs(i),v={lane:h,action:d,hasEagerState:!1,eagerState:null,next:null};if(MT(i))NT(a,v);else{var C=i.alternate;if(i.lanes===0&&(C===null||C.lanes===0)&&(C=a.lastRenderedReducer,C!==null))try{var j=a.lastRenderedState,I=C(j,d);if(v.hasEagerState=!0,v.eagerState=I,$o(I,j)){var U=a.interleaved;U===null?(v.next=v,Uv(a)):(v.next=U.next,U.next=v),a.interleaved=v;return}}catch{}finally{}d=fT(i,a,v,h),d!==null&&(v=dr(),Mo(d,i,h,v),LT(d,a,h))}}function MT(i){var a=i.alternate;return i===gn||a!==null&&a===gn}function NT(i,a){Ou=_p=!0;var d=i.pending;d===null?a.next=a:(a.next=d.next,d.next=a),i.pending=a}function LT(i,a,d){if(d&4194240){var h=a.lanes;h&=i.pendingLanes,d|=h,a.lanes=d,rv(i,d)}}var Np={readContext:ho,useCallback:Xn,useContext:Xn,useEffect:Xn,useImperativeHandle:Xn,useInsertionEffect:Xn,useLayoutEffect:Xn,useMemo:Xn,useReducer:Xn,useRef:Xn,useState:Xn,useDebugValue:Xn,useDeferredValue:Xn,useTransition:Xn,useMutableSource:Xn,useSyncExternalStore:Xn,useId:Xn,unstable_isNewReconciler:!1},Xee={readContext:ho,useCallback:function(i,a){return ti().memoizedState=[i,a===void 0?null:a],i},useContext:ho,useEffect:kT,useImperativeHandle:function(i,a,d){return d=d!=null?d.concat([i]):null,Ip(4194308,4,OT.bind(null,a,i),d)},useLayoutEffect:function(i,a){return Ip(4194308,4,i,a)},useInsertionEffect:function(i,a){return Ip(4,2,i,a)},useMemo:function(i,a){var d=ti();return a=a===void 0?null:a,i=i(),d.memoizedState=[i,a],i},useReducer:function(i,a,d){var h=ti();return a=d!==void 0?d(a):a,h.memoizedState=h.baseState=a,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:a},h.queue=i,i=i.dispatch=Qee.bind(null,gn,i),[h.memoizedState,i]},useRef:function(i){var a=ti();return i={current:i},a.memoizedState=i},useState:ET,useDebugValue:t0,useDeferredValue:function(i){return ti().memoizedState=i},useTransition:function(){var i=ET(!1),a=i[0];return i=qee.bind(null,i[1]),ti().memoizedState=i,[a,i]},useMutableSource:function(){},useSyncExternalStore:function(i,a,d){var h=gn,v=ti();if(pn){if(d===void 0)throw Error(n(407));d=d()}else{if(d=a(),Fn===null)throw Error(n(349));ra&30||bT(h,a,d)}v.memoizedState=d;var C={value:d,getSnapshot:a};return v.queue=C,kT(wT.bind(null,h,C,i),[i]),h.flags|=2048,ju(9,xT.bind(null,h,C,d,a),void 0,null),d},useId:function(){var i=ti(),a=Fn.identifierPrefix;if(pn){var d=Ri,h=Ei;d=(h&~(1<<32-jt(h)-1)).toString(32)+d,a=":"+a+"R"+d,d=$u++,0<d&&(a+="H"+d.toString(32)),a+=":"}else d=Gee++,a=":"+a+"r"+d.toString(32)+":";return i.memoizedState=a},unstable_isNewReconciler:!1},Jee={readContext:ho,useCallback:AT,useContext:ho,useEffect:e0,useImperativeHandle:$T,useInsertionEffect:PT,useLayoutEffect:TT,useMemo:jT,useReducer:Jv,useRef:RT,useState:function(){return Jv(Au)},useDebugValue:t0,useDeferredValue:function(i){var a=mo();return _T(a,jn.memoizedState,i)},useTransition:function(){var i=Jv(Au)[0],a=mo().memoizedState;return[i,a]},useMutableSource:yT,useSyncExternalStore:vT,useId:IT,unstable_isNewReconciler:!1},Zee={readContext:ho,useCallback:AT,useContext:ho,useEffect:e0,useImperativeHandle:$T,useInsertionEffect:PT,useLayoutEffect:TT,useMemo:jT,useReducer:Zv,useRef:RT,useState:function(){return Zv(Au)},useDebugValue:t0,useDeferredValue:function(i){var a=mo();return jn===null?a.memoizedState=i:_T(a,jn.memoizedState,i)},useTransition:function(){var i=Zv(Au)[0],a=mo().memoizedState;return[i,a]},useMutableSource:yT,useSyncExternalStore:vT,useId:IT,unstable_isNewReconciler:!1};function jo(i,a){if(i&&i.defaultProps){a=ce({},a),i=i.defaultProps;for(var d in i)a[d]===void 0&&(a[d]=i[d]);return a}return a}function n0(i,a,d,h){a=i.memoizedState,d=d(h,a),d=d==null?a:ce({},a,d),i.memoizedState=d,i.lanes===0&&(i.updateQueue.baseState=d)}var Lp={isMounted:function(i){return(i=i._reactInternals)?Q(i)===i:!1},enqueueSetState:function(i,a,d){i=i._reactInternals;var h=dr(),v=hs(i),C=Pi(h,v);C.payload=a,d!=null&&(C.callback=d),a=us(i,C,v),a!==null&&(Mo(a,i,v,h),Op(a,i,v))},enqueueReplaceState:function(i,a,d){i=i._reactInternals;var h=dr(),v=hs(i),C=Pi(h,v);C.tag=1,C.payload=a,d!=null&&(C.callback=d),a=us(i,C,v),a!==null&&(Mo(a,i,v,h),Op(a,i,v))},enqueueForceUpdate:function(i,a){i=i._reactInternals;var d=dr(),h=hs(i),v=Pi(d,h);v.tag=2,a!=null&&(v.callback=a),a=us(i,v,h),a!==null&&(Mo(a,i,h,d),Op(a,i,h))}};function DT(i,a,d,h,v,C,j){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,C,j):a.prototype&&a.prototype.isPureReactComponent?!vu(d,h)||!vu(v,C):!0}function FT(i,a,d){var h=!1,v=as,C=a.contextType;return typeof C=="object"&&C!==null?C=ho(C):(v=kr(a)?Js:Yn.current,h=a.contextTypes,C=(h=h!=null)?bl(i,v):as),a=new a(d,C),i.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Lp,i.stateNode=a,a._reactInternals=i,h&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=v,i.__reactInternalMemoizedMaskedChildContext=C),a}function BT(i,a,d,h){i=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(d,h),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(d,h),a.state!==i&&Lp.enqueueReplaceState(a,a.state,null)}function r0(i,a,d,h){var v=i.stateNode;v.props=d,v.state=i.memoizedState,v.refs={},Wv(i);var C=a.contextType;typeof C=="object"&&C!==null?v.context=ho(C):(C=kr(a)?Js:Yn.current,v.context=bl(i,C)),v.state=i.memoizedState,C=a.getDerivedStateFromProps,typeof C=="function"&&(n0(i,a,C,d),v.state=i.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(a=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),a!==v.state&&Lp.enqueueReplaceState(v,v.state,null),$p(i,d,v,h),v.state=i.memoizedState),typeof v.componentDidMount=="function"&&(i.flags|=4194308)}function Pl(i,a){try{var d="",h=a;do d+=xe(h),h=h.return;while(h);var v=d}catch(C){v=`
|
|
5
|
+
`+v[j].replace(" at new "," at ");return i.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",i.displayName)),U}while(1<=j&&0<=I);break}}}finally{Oe=!1,Error.prepareStackTrace=d}return(i=i?i.displayName||i.name:"")?se(i):""}function xe(i){switch(i.tag){case 5:return se(i.type);case 16:return se("Lazy");case 13:return se("Suspense");case 19:return se("SuspenseList");case 0:case 2:case 15:return i=ve(i.type,!1),i;case 11:return i=ve(i.type.render,!1),i;case 1:return i=ve(i.type,!0),i;default:return""}}function he(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case _:return"Fragment";case T:return"Portal";case F:return"Profiler";case M:return"StrictMode";case H:return"Suspense";case z:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case G:return(i.displayName||"Context")+".Consumer";case B:return(i._context.displayName||"Context")+".Provider";case W:var a=i.render;return i=i.displayName,i||(i=a.displayName||a.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case te:return a=i.displayName||null,a!==null?a:he(i.type)||"Memo";case Z:a=i._payload,i=i._init;try{return he(i(a))}catch{}}return null}function Me(i){var a=i.type;switch(i.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=a.render,i=i.displayName||i.name||"",a.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return he(a);case 8:return a===M?"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 a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function de(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function ke(i){var a=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Qe(i){var a=ke(i)?"checked":"value",d=Object.getOwnPropertyDescriptor(i.constructor.prototype,a),h=""+i[a];if(!i.hasOwnProperty(a)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var v=d.get,C=d.set;return Object.defineProperty(i,a,{configurable:!0,get:function(){return v.call(this)},set:function(j){h=""+j,C.call(this,j)}}),Object.defineProperty(i,a,{enumerable:d.enumerable}),{getValue:function(){return h},setValue:function(j){h=""+j},stopTracking:function(){i._valueTracker=null,delete i[a]}}}}function He(i){i._valueTracker||(i._valueTracker=Qe(i))}function Be(i){if(!i)return!1;var a=i._valueTracker;if(!a)return!0;var d=a.getValue(),h="";return i&&(h=ke(i)?i.checked?"true":"false":i.value),i=h,i!==d?(a.setValue(i),!0):!1}function Je(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function ct(i,a){var d=a.checked;return ce({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:d??i._wrapperState.initialChecked})}function ot(i,a){var d=a.defaultValue==null?"":a.defaultValue,h=a.checked!=null?a.checked:a.defaultChecked;d=de(a.value!=null?a.value:d),i._wrapperState={initialChecked:h,initialValue:d,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function ze(i,a){a=a.checked,a!=null&&O(i,"checked",a,!1)}function Ot(i,a){ze(i,a);var d=de(a.value),h=a.type;if(d!=null)h==="number"?(d===0&&i.value===""||i.value!=d)&&(i.value=""+d):i.value!==""+d&&(i.value=""+d);else if(h==="submit"||h==="reset"){i.removeAttribute("value");return}a.hasOwnProperty("value")?$t(i,a.type,d):a.hasOwnProperty("defaultValue")&&$t(i,a.type,de(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(i.defaultChecked=!!a.defaultChecked)}function Ze(i,a,d){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var h=a.type;if(!(h!=="submit"&&h!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+i._wrapperState.initialValue,d||a===i.value||(i.value=a),i.defaultValue=a}d=i.name,d!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,d!==""&&(i.name=d)}function $t(i,a,d){(a!=="number"||Je(i.ownerDocument)!==i)&&(d==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+d&&(i.defaultValue=""+d))}var gt=Array.isArray;function dt(i,a,d,h){if(i=i.options,a){a={};for(var v=0;v<d.length;v++)a["$"+d[v]]=!0;for(d=0;d<i.length;d++)v=a.hasOwnProperty("$"+i[d].value),i[d].selected!==v&&(i[d].selected=v),v&&h&&(i[d].defaultSelected=!0)}else{for(d=""+de(d),a=null,v=0;v<i.length;v++){if(i[v].value===d){i[v].selected=!0,h&&(i[v].defaultSelected=!0);return}a!==null||i[v].disabled||(a=i[v])}a!==null&&(a.selected=!0)}}function _t(i,a){if(a.dangerouslySetInnerHTML!=null)throw Error(n(91));return ce({},a,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function Pt(i,a){var d=a.value;if(d==null){if(d=a.children,a=a.defaultValue,d!=null){if(a!=null)throw Error(n(92));if(gt(d)){if(1<d.length)throw Error(n(93));d=d[0]}a=d}a==null&&(a=""),d=a}i._wrapperState={initialValue:de(d)}}function pt(i,a){var d=de(a.value),h=de(a.defaultValue);d!=null&&(d=""+d,d!==i.value&&(i.value=d),a.defaultValue==null&&i.defaultValue!==d&&(i.defaultValue=d)),h!=null&&(i.defaultValue=""+h)}function Ft(i){var a=i.textContent;a===i._wrapperState.initialValue&&a!==""&&a!==null&&(i.value=a)}function Yt(i){switch(i){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function qt(i,a){return i==null||i==="http://www.w3.org/1999/xhtml"?Yt(a):i==="http://www.w3.org/2000/svg"&&a==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var et,Pe=function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,d,h,v){MSApp.execUnsafeLocalFunction(function(){return i(a,d,h,v)})}:i}(function(i,a){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=a;else{for(et=et||document.createElement("div"),et.innerHTML="<svg>"+a.valueOf().toString()+"</svg>",a=et.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;a.firstChild;)i.appendChild(a.firstChild)}});function xt(i,a){if(a){var d=i.firstChild;if(d&&d===i.lastChild&&d.nodeType===3){d.nodeValue=a;return}}i.textContent=a}var Ht={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},fn=["Webkit","ms","Moz","O"];Object.keys(Ht).forEach(function(i){fn.forEach(function(a){a=a+i.charAt(0).toUpperCase()+i.substring(1),Ht[a]=Ht[i]})});function Ue(i,a,d){return a==null||typeof a=="boolean"||a===""?"":d||typeof a!="number"||a===0||Ht.hasOwnProperty(i)&&Ht[i]?(""+a).trim():a+"px"}function ut(i,a){i=i.style;for(var d in a)if(a.hasOwnProperty(d)){var h=d.indexOf("--")===0,v=Ue(d,a[d],h);d==="float"&&(d="cssFloat"),h?i.setProperty(d,v):i[d]=v}}var Re=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function We(i,a){if(a){if(Re[i]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(n(137,i));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(n(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(n(61))}if(a.style!=null&&typeof a.style!="object")throw Error(n(62))}}function ft(i,a){if(i.indexOf("-")===-1)return typeof a.is=="string";switch(i){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 yt=null;function bt(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var It=null,Mt=null,Zt=null;function rn(i){if(i=Eu(i)){if(typeof It!="function")throw Error(n(280));var a=i.stateNode;a&&(a=bp(a),It(i.stateNode,i.type,a))}}function Qn(i){Mt?Zt?Zt.push(i):Zt=[i]:Mt=i}function Hr(){if(Mt){var i=Mt,a=Zt;if(Zt=Mt=null,rn(i),a)for(i=0;i<a.length;i++)rn(a[i])}}function Po(i,a){return i(a)}function To(){}var uo=!1;function Ln(i,a,d){if(uo)return i(a,d);uo=!0;try{return Po(i,a,d)}finally{uo=!1,(Mt!==null||Zt!==null)&&(To(),Hr())}}function on(i,a){var d=i.stateNode;if(d===null)return null;var h=bp(d);if(h===null)return null;d=h[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(d&&typeof d!="function")throw Error(n(231,a,typeof d));return d}var Qt=!1;if(u)try{var D={};Object.defineProperty(D,"passive",{get:function(){Qt=!0}}),window.addEventListener("test",D,D),window.removeEventListener("test",D,D)}catch{Qt=!1}function V(i,a,d,h,v,C,j,I,U){var ue=Array.prototype.slice.call(arguments,3);try{a.apply(d,ue)}catch(Ce){this.onError(Ce)}}var oe=!1,me=null,je=!1,Ke=null,it={onError:function(i){oe=!0,me=i}};function $e(i,a,d,h,v,C,j,I,U){oe=!1,me=null,V.apply(it,arguments)}function st(i,a,d,h,v,C,j,I,U){if($e.apply(this,arguments),oe){if(oe){var ue=me;oe=!1,me=null}else throw Error(n(198));je||(je=!0,Ke=ue)}}function Q(i){var a=i,d=i;if(i.alternate)for(;a.return;)a=a.return;else{i=a;do a=i,a.flags&4098&&(d=a.return),i=a.return;while(i)}return a.tag===3?d:null}function q(i){if(i.tag===13){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function we(i){if(Q(i)!==i)throw Error(n(188))}function be(i){var a=i.alternate;if(!a){if(a=Q(i),a===null)throw Error(n(188));return a!==i?null:i}for(var d=i,h=a;;){var v=d.return;if(v===null)break;var C=v.alternate;if(C===null){if(h=v.return,h!==null){d=h;continue}break}if(v.child===C.child){for(C=v.child;C;){if(C===d)return we(v),i;if(C===h)return we(v),a;C=C.sibling}throw Error(n(188))}if(d.return!==h.return)d=v,h=C;else{for(var j=!1,I=v.child;I;){if(I===d){j=!0,d=v,h=C;break}if(I===h){j=!0,h=v,d=C;break}I=I.sibling}if(!j){for(I=C.child;I;){if(I===d){j=!0,d=C,h=v;break}if(I===h){j=!0,h=C,d=v;break}I=I.sibling}if(!j)throw Error(n(189))}}if(d.alternate!==h)throw Error(n(190))}if(d.tag!==3)throw Error(n(188));return d.stateNode.current===d?i:a}function De(i){return i=be(i),i!==null?Ee(i):null}function Ee(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var a=Ee(i);if(a!==null)return a;i=i.sibling}return null}var nt=t.unstable_scheduleCallback,At=t.unstable_cancelCallback,fo=t.unstable_shouldYield,Xo=t.unstable_requestPaint,Jt=t.unstable_now,Ji=t.unstable_getCurrentPriorityLevel,Jo=t.unstable_ImmediatePriority,Vr=t.unstable_UserBlockingPriority,wi=t.unstable_NormalPriority,cl=t.unstable_LowPriority,Ys=t.unstable_IdlePriority,vt=null,Nt=null;function cr(i){if(Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(vt,i,void 0,(i.current.flags&128)===128)}catch{}}var jt=Math.clz32?Math.clz32:ev,Oo=Math.log,ep=Math.LN2;function ev(i){return i>>>=0,i===0?32:31-(Oo(i)/ep|0)|0}var tp=64,np=4194304;function su(i){switch(i&-i){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 i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function rp(i,a){var d=i.pendingLanes;if(d===0)return 0;var h=0,v=i.suspendedLanes,C=i.pingedLanes,j=d&268435455;if(j!==0){var I=j&~v;I!==0?h=su(I):(C&=j,C!==0&&(h=su(C)))}else j=d&~v,j!==0?h=su(j):C!==0&&(h=su(C));if(h===0)return 0;if(a!==0&&a!==h&&!(a&v)&&(v=h&-h,C=a&-a,v>=C||v===16&&(C&4194240)!==0))return a;if(h&4&&(h|=d&16),a=i.entangledLanes,a!==0)for(i=i.entanglements,a&=h;0<a;)d=31-jt(a),v=1<<d,h|=i[d],a&=~v;return h}function VZ(i,a){switch(i){case 1:case 2:case 4:return a+250;case 8:case 16:case 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 a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function KZ(i,a){for(var d=i.suspendedLanes,h=i.pingedLanes,v=i.expirationTimes,C=i.pendingLanes;0<C;){var j=31-jt(C),I=1<<j,U=v[j];U===-1?(!(I&d)||I&h)&&(v[j]=VZ(I,a)):U<=a&&(i.expiredLanes|=I),C&=~I}}function tv(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function cP(){var i=tp;return tp<<=1,!(tp&4194240)&&(tp=64),i}function nv(i){for(var a=[],d=0;31>d;d++)a.push(i);return a}function au(i,a,d){i.pendingLanes|=a,a!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,a=31-jt(a),i[a]=d}function GZ(i,a){var d=i.pendingLanes&~a;i.pendingLanes=a,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=a,i.mutableReadLanes&=a,i.entangledLanes&=a,a=i.entanglements;var h=i.eventTimes;for(i=i.expirationTimes;0<d;){var v=31-jt(d),C=1<<v;a[v]=0,h[v]=-1,i[v]=-1,d&=~C}}function rv(i,a){var d=i.entangledLanes|=a;for(i=i.entanglements;d;){var h=31-jt(d),v=1<<h;v&a|i[h]&a&&(i[h]|=a),d&=~v}}var Xt=0;function uP(i){return i&=-i,1<i?4<i?i&268435455?16:536870912:4:1}var dP,ov,fP,pP,hP,iv=!1,op=[],Zi=null,es=null,ts=null,lu=new Map,cu=new Map,ns=[],qZ="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function mP(i,a){switch(i){case"focusin":case"focusout":Zi=null;break;case"dragenter":case"dragleave":es=null;break;case"mouseover":case"mouseout":ts=null;break;case"pointerover":case"pointerout":lu.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":cu.delete(a.pointerId)}}function uu(i,a,d,h,v,C){return i===null||i.nativeEvent!==C?(i={blockedOn:a,domEventName:d,eventSystemFlags:h,nativeEvent:C,targetContainers:[v]},a!==null&&(a=Eu(a),a!==null&&ov(a)),i):(i.eventSystemFlags|=h,a=i.targetContainers,v!==null&&a.indexOf(v)===-1&&a.push(v),i)}function QZ(i,a,d,h,v){switch(a){case"focusin":return Zi=uu(Zi,i,a,d,h,v),!0;case"dragenter":return es=uu(es,i,a,d,h,v),!0;case"mouseover":return ts=uu(ts,i,a,d,h,v),!0;case"pointerover":var C=v.pointerId;return lu.set(C,uu(lu.get(C)||null,i,a,d,h,v)),!0;case"gotpointercapture":return C=v.pointerId,cu.set(C,uu(cu.get(C)||null,i,a,d,h,v)),!0}return!1}function gP(i){var a=Xs(i.target);if(a!==null){var d=Q(a);if(d!==null){if(a=d.tag,a===13){if(a=q(d),a!==null){i.blockedOn=a,hP(i.priority,function(){fP(d)});return}}else if(a===3&&d.stateNode.current.memoizedState.isDehydrated){i.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}i.blockedOn=null}function ip(i){if(i.blockedOn!==null)return!1;for(var a=i.targetContainers;0<a.length;){var d=av(i.domEventName,i.eventSystemFlags,a[0],i.nativeEvent);if(d===null){d=i.nativeEvent;var h=new d.constructor(d.type,d);yt=h,d.target.dispatchEvent(h),yt=null}else return a=Eu(d),a!==null&&ov(a),i.blockedOn=d,!1;a.shift()}return!0}function yP(i,a,d){ip(i)&&d.delete(a)}function YZ(){iv=!1,Zi!==null&&ip(Zi)&&(Zi=null),es!==null&&ip(es)&&(es=null),ts!==null&&ip(ts)&&(ts=null),lu.forEach(yP),cu.forEach(yP)}function du(i,a){i.blockedOn===a&&(i.blockedOn=null,iv||(iv=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,YZ)))}function fu(i){function a(v){return du(v,i)}if(0<op.length){du(op[0],i);for(var d=1;d<op.length;d++){var h=op[d];h.blockedOn===i&&(h.blockedOn=null)}}for(Zi!==null&&du(Zi,i),es!==null&&du(es,i),ts!==null&&du(ts,i),lu.forEach(a),cu.forEach(a),d=0;d<ns.length;d++)h=ns[d],h.blockedOn===i&&(h.blockedOn=null);for(;0<ns.length&&(d=ns[0],d.blockedOn===null);)gP(d),d.blockedOn===null&&ns.shift()}var ul=A.ReactCurrentBatchConfig,sp=!0;function XZ(i,a,d,h){var v=Xt,C=ul.transition;ul.transition=null;try{Xt=1,sv(i,a,d,h)}finally{Xt=v,ul.transition=C}}function JZ(i,a,d,h){var v=Xt,C=ul.transition;ul.transition=null;try{Xt=4,sv(i,a,d,h)}finally{Xt=v,ul.transition=C}}function sv(i,a,d,h){if(sp){var v=av(i,a,d,h);if(v===null)Ev(i,a,h,ap,d),mP(i,h);else if(QZ(v,i,a,d,h))h.stopPropagation();else if(mP(i,h),a&4&&-1<qZ.indexOf(i)){for(;v!==null;){var C=Eu(v);if(C!==null&&dP(C),C=av(i,a,d,h),C===null&&Ev(i,a,h,ap,d),C===v)break;v=C}v!==null&&h.stopPropagation()}else Ev(i,a,h,null,d)}}var ap=null;function av(i,a,d,h){if(ap=null,i=bt(h),i=Xs(i),i!==null)if(a=Q(i),a===null)i=null;else if(d=a.tag,d===13){if(i=q(a),i!==null)return i;i=null}else if(d===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null);return ap=i,null}function vP(i){switch(i){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ji()){case Jo:return 1;case Vr:return 4;case wi:case cl:return 16;case Ys:return 536870912;default:return 16}default:return 16}}var rs=null,lv=null,lp=null;function bP(){if(lp)return lp;var i,a=lv,d=a.length,h,v="value"in rs?rs.value:rs.textContent,C=v.length;for(i=0;i<d&&a[i]===v[i];i++);var j=d-i;for(h=1;h<=j&&a[d-h]===v[C-h];h++);return lp=v.slice(i,1<h?1-h:void 0)}function cp(i){var a=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&a===13&&(i=13)):i=a,i===10&&(i=13),32<=i||i===13?i:0}function up(){return!0}function xP(){return!1}function Kr(i){function a(d,h,v,C,j){this._reactName=d,this._targetInst=v,this.type=h,this.nativeEvent=C,this.target=j,this.currentTarget=null;for(var I in i)i.hasOwnProperty(I)&&(d=i[I],this[I]=d?d(C):C[I]);return this.isDefaultPrevented=(C.defaultPrevented!=null?C.defaultPrevented:C.returnValue===!1)?up:xP,this.isPropagationStopped=xP,this}return ce(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=up)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=up)},persist:function(){},isPersistent:up}),a}var dl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cv=Kr(dl),pu=ce({},dl,{view:0,detail:0}),ZZ=Kr(pu),uv,dv,hu,dp=ce({},pu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pv,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==hu&&(hu&&i.type==="mousemove"?(uv=i.screenX-hu.screenX,dv=i.screenY-hu.screenY):dv=uv=0,hu=i),uv)},movementY:function(i){return"movementY"in i?i.movementY:dv}}),wP=Kr(dp),eee=ce({},dp,{dataTransfer:0}),tee=Kr(eee),nee=ce({},pu,{relatedTarget:0}),fv=Kr(nee),ree=ce({},dl,{animationName:0,elapsedTime:0,pseudoElement:0}),oee=Kr(ree),iee=ce({},dl,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),see=Kr(iee),aee=ce({},dl,{data:0}),SP=Kr(aee),lee={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cee={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},uee={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dee(i){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(i):(i=uee[i])?!!a[i]:!1}function pv(){return dee}var fee=ce({},pu,{key:function(i){if(i.key){var a=lee[i.key]||i.key;if(a!=="Unidentified")return a}return i.type==="keypress"?(i=cp(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?cee[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pv,charCode:function(i){return i.type==="keypress"?cp(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?cp(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),pee=Kr(fee),hee=ce({},dp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),CP=Kr(hee),mee=ce({},pu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pv}),gee=Kr(mee),yee=ce({},dl,{propertyName:0,elapsedTime:0,pseudoElement:0}),vee=Kr(yee),bee=ce({},dp,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),xee=Kr(bee),wee=[9,13,27,32],hv=u&&"CompositionEvent"in window,mu=null;u&&"documentMode"in document&&(mu=document.documentMode);var See=u&&"TextEvent"in window&&!mu,EP=u&&(!hv||mu&&8<mu&&11>=mu),RP=" ",kP=!1;function PP(i,a){switch(i){case"keyup":return wee.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function TP(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var fl=!1;function Cee(i,a){switch(i){case"compositionend":return TP(a);case"keypress":return a.which!==32?null:(kP=!0,RP);case"textInput":return i=a.data,i===RP&&kP?null:i;default:return null}}function Eee(i,a){if(fl)return i==="compositionend"||!hv&&PP(i,a)?(i=bP(),lp=lv=rs=null,fl=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return EP&&a.locale!=="ko"?null:a.data;default:return null}}var Ree={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function OP(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a==="input"?!!Ree[i.type]:a==="textarea"}function $P(i,a,d,h){Qn(h),a=gp(a,"onChange"),0<a.length&&(d=new cv("onChange","change",null,d,h),i.push({event:d,listeners:a}))}var gu=null,yu=null;function kee(i){qP(i,0)}function fp(i){var a=yl(i);if(Be(a))return i}function Pee(i,a){if(i==="change")return a}var AP=!1;if(u){var mv;if(u){var gv="oninput"in document;if(!gv){var jP=document.createElement("div");jP.setAttribute("oninput","return;"),gv=typeof jP.oninput=="function"}mv=gv}else mv=!1;AP=mv&&(!document.documentMode||9<document.documentMode)}function _P(){gu&&(gu.detachEvent("onpropertychange",IP),yu=gu=null)}function IP(i){if(i.propertyName==="value"&&fp(yu)){var a=[];$P(a,yu,i,bt(i)),Ln(kee,a)}}function Tee(i,a,d){i==="focusin"?(_P(),gu=a,yu=d,gu.attachEvent("onpropertychange",IP)):i==="focusout"&&_P()}function Oee(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return fp(yu)}function $ee(i,a){if(i==="click")return fp(a)}function Aee(i,a){if(i==="input"||i==="change")return fp(a)}function jee(i,a){return i===a&&(i!==0||1/i===1/a)||i!==i&&a!==a}var $o=typeof Object.is=="function"?Object.is:jee;function vu(i,a){if($o(i,a))return!0;if(typeof i!="object"||i===null||typeof a!="object"||a===null)return!1;var d=Object.keys(i),h=Object.keys(a);if(d.length!==h.length)return!1;for(h=0;h<d.length;h++){var v=d[h];if(!c.call(a,v)||!$o(i[v],a[v]))return!1}return!0}function MP(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function NP(i,a){var d=MP(i);i=0;for(var h;d;){if(d.nodeType===3){if(h=i+d.textContent.length,i<=a&&h>=a)return{node:d,offset:a-i};i=h}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=MP(d)}}function LP(i,a){return i&&a?i===a?!0:i&&i.nodeType===3?!1:a&&a.nodeType===3?LP(i,a.parentNode):"contains"in i?i.contains(a):i.compareDocumentPosition?!!(i.compareDocumentPosition(a)&16):!1:!1}function DP(){for(var i=window,a=Je();a instanceof i.HTMLIFrameElement;){try{var d=typeof a.contentWindow.location.href=="string"}catch{d=!1}if(d)i=a.contentWindow;else break;a=Je(i.document)}return a}function yv(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a&&(a==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||a==="textarea"||i.contentEditable==="true")}function _ee(i){var a=DP(),d=i.focusedElem,h=i.selectionRange;if(a!==d&&d&&d.ownerDocument&&LP(d.ownerDocument.documentElement,d)){if(h!==null&&yv(d)){if(a=h.start,i=h.end,i===void 0&&(i=a),"selectionStart"in d)d.selectionStart=a,d.selectionEnd=Math.min(i,d.value.length);else if(i=(a=d.ownerDocument||document)&&a.defaultView||window,i.getSelection){i=i.getSelection();var v=d.textContent.length,C=Math.min(h.start,v);h=h.end===void 0?C:Math.min(h.end,v),!i.extend&&C>h&&(v=h,h=C,C=v),v=NP(d,C);var j=NP(d,h);v&&j&&(i.rangeCount!==1||i.anchorNode!==v.node||i.anchorOffset!==v.offset||i.focusNode!==j.node||i.focusOffset!==j.offset)&&(a=a.createRange(),a.setStart(v.node,v.offset),i.removeAllRanges(),C>h?(i.addRange(a),i.extend(j.node,j.offset)):(a.setEnd(j.node,j.offset),i.addRange(a)))}}for(a=[],i=d;i=i.parentNode;)i.nodeType===1&&a.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<a.length;d++)i=a[d],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var Iee=u&&"documentMode"in document&&11>=document.documentMode,pl=null,vv=null,bu=null,bv=!1;function FP(i,a,d){var h=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;bv||pl==null||pl!==Je(h)||(h=pl,"selectionStart"in h&&yv(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),bu&&vu(bu,h)||(bu=h,h=gp(vv,"onSelect"),0<h.length&&(a=new cv("onSelect","select",null,a,d),i.push({event:a,listeners:h}),a.target=pl)))}function pp(i,a){var d={};return d[i.toLowerCase()]=a.toLowerCase(),d["Webkit"+i]="webkit"+a,d["Moz"+i]="moz"+a,d}var hl={animationend:pp("Animation","AnimationEnd"),animationiteration:pp("Animation","AnimationIteration"),animationstart:pp("Animation","AnimationStart"),transitionend:pp("Transition","TransitionEnd")},xv={},BP={};u&&(BP=document.createElement("div").style,"AnimationEvent"in window||(delete hl.animationend.animation,delete hl.animationiteration.animation,delete hl.animationstart.animation),"TransitionEvent"in window||delete hl.transitionend.transition);function hp(i){if(xv[i])return xv[i];if(!hl[i])return i;var a=hl[i],d;for(d in a)if(a.hasOwnProperty(d)&&d in BP)return xv[i]=a[d];return i}var zP=hp("animationend"),UP=hp("animationiteration"),WP=hp("animationstart"),HP=hp("transitionend"),VP=new Map,KP="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function os(i,a){VP.set(i,a),s(a,[i])}for(var wv=0;wv<KP.length;wv++){var Sv=KP[wv],Mee=Sv.toLowerCase(),Nee=Sv[0].toUpperCase()+Sv.slice(1);os(Mee,"on"+Nee)}os(zP,"onAnimationEnd"),os(UP,"onAnimationIteration"),os(WP,"onAnimationStart"),os("dblclick","onDoubleClick"),os("focusin","onFocus"),os("focusout","onBlur"),os(HP,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lee=new Set("cancel close invalid load scroll toggle".split(" ").concat(xu));function GP(i,a,d){var h=i.type||"unknown-event";i.currentTarget=d,st(h,a,void 0,i),i.currentTarget=null}function qP(i,a){a=(a&4)!==0;for(var d=0;d<i.length;d++){var h=i[d],v=h.event;h=h.listeners;e:{var C=void 0;if(a)for(var j=h.length-1;0<=j;j--){var I=h[j],U=I.instance,ue=I.currentTarget;if(I=I.listener,U!==C&&v.isPropagationStopped())break e;GP(v,I,ue),C=U}else for(j=0;j<h.length;j++){if(I=h[j],U=I.instance,ue=I.currentTarget,I=I.listener,U!==C&&v.isPropagationStopped())break e;GP(v,I,ue),C=U}}}if(je)throw i=Ke,je=!1,Ke=null,i}function cn(i,a){var d=a[$v];d===void 0&&(d=a[$v]=new Set);var h=i+"__bubble";d.has(h)||(QP(a,i,2,!1),d.add(h))}function Cv(i,a,d){var h=0;a&&(h|=4),QP(d,i,h,a)}var mp="_reactListening"+Math.random().toString(36).slice(2);function wu(i){if(!i[mp]){i[mp]=!0,r.forEach(function(d){d!=="selectionchange"&&(Lee.has(d)||Cv(d,!1,i),Cv(d,!0,i))});var a=i.nodeType===9?i:i.ownerDocument;a===null||a[mp]||(a[mp]=!0,Cv("selectionchange",!1,a))}}function QP(i,a,d,h){switch(vP(a)){case 1:var v=XZ;break;case 4:v=JZ;break;default:v=sv}d=v.bind(null,a,d,i),v=void 0,!Qt||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(v=!0),h?v!==void 0?i.addEventListener(a,d,{capture:!0,passive:v}):i.addEventListener(a,d,!0):v!==void 0?i.addEventListener(a,d,{passive:v}):i.addEventListener(a,d,!1)}function Ev(i,a,d,h,v){var C=h;if(!(a&1)&&!(a&2)&&h!==null)e:for(;;){if(h===null)return;var j=h.tag;if(j===3||j===4){var I=h.stateNode.containerInfo;if(I===v||I.nodeType===8&&I.parentNode===v)break;if(j===4)for(j=h.return;j!==null;){var U=j.tag;if((U===3||U===4)&&(U=j.stateNode.containerInfo,U===v||U.nodeType===8&&U.parentNode===v))return;j=j.return}for(;I!==null;){if(j=Xs(I),j===null)return;if(U=j.tag,U===5||U===6){h=C=j;continue e}I=I.parentNode}}h=h.return}Ln(function(){var ue=C,Ce=bt(d),Te=[];e:{var Se=VP.get(i);if(Se!==void 0){var Ge=cv,Xe=i;switch(i){case"keypress":if(cp(d)===0)break e;case"keydown":case"keyup":Ge=pee;break;case"focusin":Xe="focus",Ge=fv;break;case"focusout":Xe="blur",Ge=fv;break;case"beforeblur":case"afterblur":Ge=fv;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ge=wP;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ge=tee;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ge=gee;break;case zP:case UP:case WP:Ge=oee;break;case HP:Ge=vee;break;case"scroll":Ge=ZZ;break;case"wheel":Ge=xee;break;case"copy":case"cut":case"paste":Ge=see;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ge=CP}var tt=(a&4)!==0,Rn=!tt&&i==="scroll",ee=tt?Se!==null?Se+"Capture":null:Se;tt=[];for(var K=ue,le;K!==null;){le=K;var Ae=le.stateNode;if(le.tag===5&&Ae!==null&&(le=Ae,ee!==null&&(Ae=on(K,ee),Ae!=null&&tt.push(Su(K,Ae,le)))),Rn)break;K=K.return}0<tt.length&&(Se=new Ge(Se,Xe,null,d,Ce),Te.push({event:Se,listeners:tt}))}}if(!(a&7)){e:{if(Se=i==="mouseover"||i==="pointerover",Ge=i==="mouseout"||i==="pointerout",Se&&d!==yt&&(Xe=d.relatedTarget||d.fromElement)&&(Xs(Xe)||Xe[Si]))break e;if((Ge||Se)&&(Se=Ce.window===Ce?Ce:(Se=Ce.ownerDocument)?Se.defaultView||Se.parentWindow:window,Ge?(Xe=d.relatedTarget||d.toElement,Ge=ue,Xe=Xe?Xs(Xe):null,Xe!==null&&(Rn=Q(Xe),Xe!==Rn||Xe.tag!==5&&Xe.tag!==6)&&(Xe=null)):(Ge=null,Xe=ue),Ge!==Xe)){if(tt=wP,Ae="onMouseLeave",ee="onMouseEnter",K="mouse",(i==="pointerout"||i==="pointerover")&&(tt=CP,Ae="onPointerLeave",ee="onPointerEnter",K="pointer"),Rn=Ge==null?Se:yl(Ge),le=Xe==null?Se:yl(Xe),Se=new tt(Ae,K+"leave",Ge,d,Ce),Se.target=Rn,Se.relatedTarget=le,Ae=null,Xs(Ce)===ue&&(tt=new tt(ee,K+"enter",Xe,d,Ce),tt.target=le,tt.relatedTarget=Rn,Ae=tt),Rn=Ae,Ge&&Xe)t:{for(tt=Ge,ee=Xe,K=0,le=tt;le;le=ml(le))K++;for(le=0,Ae=ee;Ae;Ae=ml(Ae))le++;for(;0<K-le;)tt=ml(tt),K--;for(;0<le-K;)ee=ml(ee),le--;for(;K--;){if(tt===ee||ee!==null&&tt===ee.alternate)break t;tt=ml(tt),ee=ml(ee)}tt=null}else tt=null;Ge!==null&&YP(Te,Se,Ge,tt,!1),Xe!==null&&Rn!==null&&YP(Te,Rn,Xe,tt,!0)}}e:{if(Se=ue?yl(ue):window,Ge=Se.nodeName&&Se.nodeName.toLowerCase(),Ge==="select"||Ge==="input"&&Se.type==="file")var rt=Pee;else if(OP(Se))if(AP)rt=Aee;else{rt=Oee;var at=Tee}else(Ge=Se.nodeName)&&Ge.toLowerCase()==="input"&&(Se.type==="checkbox"||Se.type==="radio")&&(rt=$ee);if(rt&&(rt=rt(i,ue))){$P(Te,rt,d,Ce);break e}at&&at(i,Se,ue),i==="focusout"&&(at=Se._wrapperState)&&at.controlled&&Se.type==="number"&&$t(Se,"number",Se.value)}switch(at=ue?yl(ue):window,i){case"focusin":(OP(at)||at.contentEditable==="true")&&(pl=at,vv=ue,bu=null);break;case"focusout":bu=vv=pl=null;break;case"mousedown":bv=!0;break;case"contextmenu":case"mouseup":case"dragend":bv=!1,FP(Te,d,Ce);break;case"selectionchange":if(Iee)break;case"keydown":case"keyup":FP(Te,d,Ce)}var lt;if(hv)e:{switch(i){case"compositionstart":var ht="onCompositionStart";break e;case"compositionend":ht="onCompositionEnd";break e;case"compositionupdate":ht="onCompositionUpdate";break e}ht=void 0}else fl?PP(i,d)&&(ht="onCompositionEnd"):i==="keydown"&&d.keyCode===229&&(ht="onCompositionStart");ht&&(EP&&d.locale!=="ko"&&(fl||ht!=="onCompositionStart"?ht==="onCompositionEnd"&&fl&&(lt=bP()):(rs=Ce,lv="value"in rs?rs.value:rs.textContent,fl=!0)),at=gp(ue,ht),0<at.length&&(ht=new SP(ht,i,null,d,Ce),Te.push({event:ht,listeners:at}),lt?ht.data=lt:(lt=TP(d),lt!==null&&(ht.data=lt)))),(lt=See?Cee(i,d):Eee(i,d))&&(ue=gp(ue,"onBeforeInput"),0<ue.length&&(Ce=new SP("onBeforeInput","beforeinput",null,d,Ce),Te.push({event:Ce,listeners:ue}),Ce.data=lt))}qP(Te,a)})}function Su(i,a,d){return{instance:i,listener:a,currentTarget:d}}function gp(i,a){for(var d=a+"Capture",h=[];i!==null;){var v=i,C=v.stateNode;v.tag===5&&C!==null&&(v=C,C=on(i,d),C!=null&&h.unshift(Su(i,C,v)),C=on(i,a),C!=null&&h.push(Su(i,C,v))),i=i.return}return h}function ml(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function YP(i,a,d,h,v){for(var C=a._reactName,j=[];d!==null&&d!==h;){var I=d,U=I.alternate,ue=I.stateNode;if(U!==null&&U===h)break;I.tag===5&&ue!==null&&(I=ue,v?(U=on(d,C),U!=null&&j.unshift(Su(d,U,I))):v||(U=on(d,C),U!=null&&j.push(Su(d,U,I)))),d=d.return}j.length!==0&&i.push({event:a,listeners:j})}var Dee=/\r\n?/g,Fee=/\u0000|\uFFFD/g;function XP(i){return(typeof i=="string"?i:""+i).replace(Dee,`
|
|
6
|
+
`).replace(Fee,"")}function yp(i,a,d){if(a=XP(a),XP(i)!==a&&d)throw Error(n(425))}function vp(){}var Rv=null,kv=null;function Pv(i,a){return i==="textarea"||i==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Tv=typeof setTimeout=="function"?setTimeout:void 0,Bee=typeof clearTimeout=="function"?clearTimeout:void 0,JP=typeof Promise=="function"?Promise:void 0,zee=typeof queueMicrotask=="function"?queueMicrotask:typeof JP<"u"?function(i){return JP.resolve(null).then(i).catch(Uee)}:Tv;function Uee(i){setTimeout(function(){throw i})}function Ov(i,a){var d=a,h=0;do{var v=d.nextSibling;if(i.removeChild(d),v&&v.nodeType===8)if(d=v.data,d==="/$"){if(h===0){i.removeChild(v),fu(a);return}h--}else d!=="$"&&d!=="$?"&&d!=="$!"||h++;d=v}while(d);fu(a)}function is(i){for(;i!=null;i=i.nextSibling){var a=i.nodeType;if(a===1||a===3)break;if(a===8){if(a=i.data,a==="$"||a==="$!"||a==="$?")break;if(a==="/$")return null}}return i}function ZP(i){i=i.previousSibling;for(var a=0;i;){if(i.nodeType===8){var d=i.data;if(d==="$"||d==="$!"||d==="$?"){if(a===0)return i;a--}else d==="/$"&&a++}i=i.previousSibling}return null}var gl=Math.random().toString(36).slice(2),Zo="__reactFiber$"+gl,Cu="__reactProps$"+gl,Si="__reactContainer$"+gl,$v="__reactEvents$"+gl,Wee="__reactListeners$"+gl,Hee="__reactHandles$"+gl;function Xs(i){var a=i[Zo];if(a)return a;for(var d=i.parentNode;d;){if(a=d[Si]||d[Zo]){if(d=a.alternate,a.child!==null||d!==null&&d.child!==null)for(i=ZP(i);i!==null;){if(d=i[Zo])return d;i=ZP(i)}return a}i=d,d=i.parentNode}return null}function Eu(i){return i=i[Zo]||i[Si],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function yl(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(n(33))}function bp(i){return i[Cu]||null}var Av=[],vl=-1;function ss(i){return{current:i}}function un(i){0>vl||(i.current=Av[vl],Av[vl]=null,vl--)}function sn(i,a){vl++,Av[vl]=i.current,i.current=a}var as={},Yn=ss(as),Rr=ss(!1),Js=as;function bl(i,a){var d=i.type.contextTypes;if(!d)return as;var h=i.stateNode;if(h&&h.__reactInternalMemoizedUnmaskedChildContext===a)return h.__reactInternalMemoizedMaskedChildContext;var v={},C;for(C in d)v[C]=a[C];return h&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=a,i.__reactInternalMemoizedMaskedChildContext=v),v}function kr(i){return i=i.childContextTypes,i!=null}function xp(){un(Rr),un(Yn)}function eT(i,a,d){if(Yn.current!==as)throw Error(n(168));sn(Yn,a),sn(Rr,d)}function tT(i,a,d){var h=i.stateNode;if(a=a.childContextTypes,typeof h.getChildContext!="function")return d;h=h.getChildContext();for(var v in h)if(!(v in a))throw Error(n(108,Me(i)||"Unknown",v));return ce({},d,h)}function wp(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||as,Js=Yn.current,sn(Yn,i),sn(Rr,Rr.current),!0}function nT(i,a,d){var h=i.stateNode;if(!h)throw Error(n(169));d?(i=tT(i,a,Js),h.__reactInternalMemoizedMergedChildContext=i,un(Rr),un(Yn),sn(Yn,i)):un(Rr),sn(Rr,d)}var Ci=null,Sp=!1,jv=!1;function rT(i){Ci===null?Ci=[i]:Ci.push(i)}function Vee(i){Sp=!0,rT(i)}function ls(){if(!jv&&Ci!==null){jv=!0;var i=0,a=Xt;try{var d=Ci;for(Xt=1;i<d.length;i++){var h=d[i];do h=h(!0);while(h!==null)}Ci=null,Sp=!1}catch(v){throw Ci!==null&&(Ci=Ci.slice(i+1)),nt(Jo,ls),v}finally{Xt=a,jv=!1}}return null}var xl=[],wl=0,Cp=null,Ep=0,po=[],ho=0,Zs=null,Ei=1,Ri="";function ea(i,a){xl[wl++]=Ep,xl[wl++]=Cp,Cp=i,Ep=a}function oT(i,a,d){po[ho++]=Ei,po[ho++]=Ri,po[ho++]=Zs,Zs=i;var h=Ei;i=Ri;var v=32-jt(h)-1;h&=~(1<<v),d+=1;var C=32-jt(a)+v;if(30<C){var j=v-v%5;C=(h&(1<<j)-1).toString(32),h>>=j,v-=j,Ei=1<<32-jt(a)+v|d<<v|h,Ri=C+i}else Ei=1<<C|d<<v|h,Ri=i}function _v(i){i.return!==null&&(ea(i,1),oT(i,1,0))}function Iv(i){for(;i===Cp;)Cp=xl[--wl],xl[wl]=null,Ep=xl[--wl],xl[wl]=null;for(;i===Zs;)Zs=po[--ho],po[ho]=null,Ri=po[--ho],po[ho]=null,Ei=po[--ho],po[ho]=null}var Gr=null,qr=null,pn=!1,Ao=null;function iT(i,a){var d=vo(5,null,null,0);d.elementType="DELETED",d.stateNode=a,d.return=i,a=i.deletions,a===null?(i.deletions=[d],i.flags|=16):a.push(d)}function sT(i,a){switch(i.tag){case 5:var d=i.type;return a=a.nodeType!==1||d.toLowerCase()!==a.nodeName.toLowerCase()?null:a,a!==null?(i.stateNode=a,Gr=i,qr=is(a.firstChild),!0):!1;case 6:return a=i.pendingProps===""||a.nodeType!==3?null:a,a!==null?(i.stateNode=a,Gr=i,qr=null,!0):!1;case 13:return a=a.nodeType!==8?null:a,a!==null?(d=Zs!==null?{id:Ei,overflow:Ri}:null,i.memoizedState={dehydrated:a,treeContext:d,retryLane:1073741824},d=vo(18,null,null,0),d.stateNode=a,d.return=i,i.child=d,Gr=i,qr=null,!0):!1;default:return!1}}function Mv(i){return(i.mode&1)!==0&&(i.flags&128)===0}function Nv(i){if(pn){var a=qr;if(a){var d=a;if(!sT(i,a)){if(Mv(i))throw Error(n(418));a=is(d.nextSibling);var h=Gr;a&&sT(i,a)?iT(h,d):(i.flags=i.flags&-4097|2,pn=!1,Gr=i)}}else{if(Mv(i))throw Error(n(418));i.flags=i.flags&-4097|2,pn=!1,Gr=i}}}function aT(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;Gr=i}function Rp(i){if(i!==Gr)return!1;if(!pn)return aT(i),pn=!0,!1;var a;if((a=i.tag!==3)&&!(a=i.tag!==5)&&(a=i.type,a=a!=="head"&&a!=="body"&&!Pv(i.type,i.memoizedProps)),a&&(a=qr)){if(Mv(i))throw lT(),Error(n(418));for(;a;)iT(i,a),a=is(a.nextSibling)}if(aT(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));e:{for(i=i.nextSibling,a=0;i;){if(i.nodeType===8){var d=i.data;if(d==="/$"){if(a===0){qr=is(i.nextSibling);break e}a--}else d!=="$"&&d!=="$!"&&d!=="$?"||a++}i=i.nextSibling}qr=null}}else qr=Gr?is(i.stateNode.nextSibling):null;return!0}function lT(){for(var i=qr;i;)i=is(i.nextSibling)}function Sl(){qr=Gr=null,pn=!1}function Lv(i){Ao===null?Ao=[i]:Ao.push(i)}var Kee=A.ReactCurrentBatchConfig;function Ru(i,a,d){if(i=d.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(d._owner){if(d=d._owner,d){if(d.tag!==1)throw Error(n(309));var h=d.stateNode}if(!h)throw Error(n(147,i));var v=h,C=""+i;return a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===C?a.ref:(a=function(j){var I=v.refs;j===null?delete I[C]:I[C]=j},a._stringRef=C,a)}if(typeof i!="string")throw Error(n(284));if(!d._owner)throw Error(n(290,i))}return i}function kp(i,a){throw i=Object.prototype.toString.call(a),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":i))}function cT(i){var a=i._init;return a(i._payload)}function uT(i){function a(ee,K){if(i){var le=ee.deletions;le===null?(ee.deletions=[K],ee.flags|=16):le.push(K)}}function d(ee,K){if(!i)return null;for(;K!==null;)a(ee,K),K=K.sibling;return null}function h(ee,K){for(ee=new Map;K!==null;)K.key!==null?ee.set(K.key,K):ee.set(K.index,K),K=K.sibling;return ee}function v(ee,K){return ee=gs(ee,K),ee.index=0,ee.sibling=null,ee}function C(ee,K,le){return ee.index=le,i?(le=ee.alternate,le!==null?(le=le.index,le<K?(ee.flags|=2,K):le):(ee.flags|=2,K)):(ee.flags|=1048576,K)}function j(ee){return i&&ee.alternate===null&&(ee.flags|=2),ee}function I(ee,K,le,Ae){return K===null||K.tag!==6?(K=T0(le,ee.mode,Ae),K.return=ee,K):(K=v(K,le),K.return=ee,K)}function U(ee,K,le,Ae){var rt=le.type;return rt===_?Ce(ee,K,le.props.children,Ae,le.key):K!==null&&(K.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===Z&&cT(rt)===K.type)?(Ae=v(K,le.props),Ae.ref=Ru(ee,K,le),Ae.return=ee,Ae):(Ae=Yp(le.type,le.key,le.props,null,ee.mode,Ae),Ae.ref=Ru(ee,K,le),Ae.return=ee,Ae)}function ue(ee,K,le,Ae){return K===null||K.tag!==4||K.stateNode.containerInfo!==le.containerInfo||K.stateNode.implementation!==le.implementation?(K=O0(le,ee.mode,Ae),K.return=ee,K):(K=v(K,le.children||[]),K.return=ee,K)}function Ce(ee,K,le,Ae,rt){return K===null||K.tag!==7?(K=la(le,ee.mode,Ae,rt),K.return=ee,K):(K=v(K,le),K.return=ee,K)}function Te(ee,K,le){if(typeof K=="string"&&K!==""||typeof K=="number")return K=T0(""+K,ee.mode,le),K.return=ee,K;if(typeof K=="object"&&K!==null){switch(K.$$typeof){case $:return le=Yp(K.type,K.key,K.props,null,ee.mode,le),le.ref=Ru(ee,null,K),le.return=ee,le;case T:return K=O0(K,ee.mode,le),K.return=ee,K;case Z:var Ae=K._init;return Te(ee,Ae(K._payload),le)}if(gt(K)||Y(K))return K=la(K,ee.mode,le,null),K.return=ee,K;kp(ee,K)}return null}function Se(ee,K,le,Ae){var rt=K!==null?K.key:null;if(typeof le=="string"&&le!==""||typeof le=="number")return rt!==null?null:I(ee,K,""+le,Ae);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case $:return le.key===rt?U(ee,K,le,Ae):null;case T:return le.key===rt?ue(ee,K,le,Ae):null;case Z:return rt=le._init,Se(ee,K,rt(le._payload),Ae)}if(gt(le)||Y(le))return rt!==null?null:Ce(ee,K,le,Ae,null);kp(ee,le)}return null}function Ge(ee,K,le,Ae,rt){if(typeof Ae=="string"&&Ae!==""||typeof Ae=="number")return ee=ee.get(le)||null,I(K,ee,""+Ae,rt);if(typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case $:return ee=ee.get(Ae.key===null?le:Ae.key)||null,U(K,ee,Ae,rt);case T:return ee=ee.get(Ae.key===null?le:Ae.key)||null,ue(K,ee,Ae,rt);case Z:var at=Ae._init;return Ge(ee,K,le,at(Ae._payload),rt)}if(gt(Ae)||Y(Ae))return ee=ee.get(le)||null,Ce(K,ee,Ae,rt,null);kp(K,Ae)}return null}function Xe(ee,K,le,Ae){for(var rt=null,at=null,lt=K,ht=K=0,Bn=null;lt!==null&&ht<le.length;ht++){lt.index>ht?(Bn=lt,lt=null):Bn=lt.sibling;var Bt=Se(ee,lt,le[ht],Ae);if(Bt===null){lt===null&&(lt=Bn);break}i&<&&Bt.alternate===null&&a(ee,lt),K=C(Bt,K,ht),at===null?rt=Bt:at.sibling=Bt,at=Bt,lt=Bn}if(ht===le.length)return d(ee,lt),pn&&ea(ee,ht),rt;if(lt===null){for(;ht<le.length;ht++)lt=Te(ee,le[ht],Ae),lt!==null&&(K=C(lt,K,ht),at===null?rt=lt:at.sibling=lt,at=lt);return pn&&ea(ee,ht),rt}for(lt=h(ee,lt);ht<le.length;ht++)Bn=Ge(lt,ee,ht,le[ht],Ae),Bn!==null&&(i&&Bn.alternate!==null&<.delete(Bn.key===null?ht:Bn.key),K=C(Bn,K,ht),at===null?rt=Bn:at.sibling=Bn,at=Bn);return i&<.forEach(function(ys){return a(ee,ys)}),pn&&ea(ee,ht),rt}function tt(ee,K,le,Ae){var rt=Y(le);if(typeof rt!="function")throw Error(n(150));if(le=rt.call(le),le==null)throw Error(n(151));for(var at=rt=null,lt=K,ht=K=0,Bn=null,Bt=le.next();lt!==null&&!Bt.done;ht++,Bt=le.next()){lt.index>ht?(Bn=lt,lt=null):Bn=lt.sibling;var ys=Se(ee,lt,Bt.value,Ae);if(ys===null){lt===null&&(lt=Bn);break}i&<&&ys.alternate===null&&a(ee,lt),K=C(ys,K,ht),at===null?rt=ys:at.sibling=ys,at=ys,lt=Bn}if(Bt.done)return d(ee,lt),pn&&ea(ee,ht),rt;if(lt===null){for(;!Bt.done;ht++,Bt=le.next())Bt=Te(ee,Bt.value,Ae),Bt!==null&&(K=C(Bt,K,ht),at===null?rt=Bt:at.sibling=Bt,at=Bt);return pn&&ea(ee,ht),rt}for(lt=h(ee,lt);!Bt.done;ht++,Bt=le.next())Bt=Ge(lt,ee,ht,Bt.value,Ae),Bt!==null&&(i&&Bt.alternate!==null&<.delete(Bt.key===null?ht:Bt.key),K=C(Bt,K,ht),at===null?rt=Bt:at.sibling=Bt,at=Bt);return i&<.forEach(function(Rte){return a(ee,Rte)}),pn&&ea(ee,ht),rt}function Rn(ee,K,le,Ae){if(typeof le=="object"&&le!==null&&le.type===_&&le.key===null&&(le=le.props.children),typeof le=="object"&&le!==null){switch(le.$$typeof){case $:e:{for(var rt=le.key,at=K;at!==null;){if(at.key===rt){if(rt=le.type,rt===_){if(at.tag===7){d(ee,at.sibling),K=v(at,le.props.children),K.return=ee,ee=K;break e}}else if(at.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===Z&&cT(rt)===at.type){d(ee,at.sibling),K=v(at,le.props),K.ref=Ru(ee,at,le),K.return=ee,ee=K;break e}d(ee,at);break}else a(ee,at);at=at.sibling}le.type===_?(K=la(le.props.children,ee.mode,Ae,le.key),K.return=ee,ee=K):(Ae=Yp(le.type,le.key,le.props,null,ee.mode,Ae),Ae.ref=Ru(ee,K,le),Ae.return=ee,ee=Ae)}return j(ee);case T:e:{for(at=le.key;K!==null;){if(K.key===at)if(K.tag===4&&K.stateNode.containerInfo===le.containerInfo&&K.stateNode.implementation===le.implementation){d(ee,K.sibling),K=v(K,le.children||[]),K.return=ee,ee=K;break e}else{d(ee,K);break}else a(ee,K);K=K.sibling}K=O0(le,ee.mode,Ae),K.return=ee,ee=K}return j(ee);case Z:return at=le._init,Rn(ee,K,at(le._payload),Ae)}if(gt(le))return Xe(ee,K,le,Ae);if(Y(le))return tt(ee,K,le,Ae);kp(ee,le)}return typeof le=="string"&&le!==""||typeof le=="number"?(le=""+le,K!==null&&K.tag===6?(d(ee,K.sibling),K=v(K,le),K.return=ee,ee=K):(d(ee,K),K=T0(le,ee.mode,Ae),K.return=ee,ee=K),j(ee)):d(ee,K)}return Rn}var Cl=uT(!0),dT=uT(!1),Pp=ss(null),Tp=null,El=null,Dv=null;function Fv(){Dv=El=Tp=null}function Bv(i){var a=Pp.current;un(Pp),i._currentValue=a}function zv(i,a,d){for(;i!==null;){var h=i.alternate;if((i.childLanes&a)!==a?(i.childLanes|=a,h!==null&&(h.childLanes|=a)):h!==null&&(h.childLanes&a)!==a&&(h.childLanes|=a),i===d)break;i=i.return}}function Rl(i,a){Tp=i,Dv=El=null,i=i.dependencies,i!==null&&i.firstContext!==null&&(i.lanes&a&&(Pr=!0),i.firstContext=null)}function mo(i){var a=i._currentValue;if(Dv!==i)if(i={context:i,memoizedValue:a,next:null},El===null){if(Tp===null)throw Error(n(308));El=i,Tp.dependencies={lanes:0,firstContext:i}}else El=El.next=i;return a}var ta=null;function Uv(i){ta===null?ta=[i]:ta.push(i)}function fT(i,a,d,h){var v=a.interleaved;return v===null?(d.next=d,Uv(a)):(d.next=v.next,v.next=d),a.interleaved=d,ki(i,h)}function ki(i,a){i.lanes|=a;var d=i.alternate;for(d!==null&&(d.lanes|=a),d=i,i=i.return;i!==null;)i.childLanes|=a,d=i.alternate,d!==null&&(d.childLanes|=a),d=i,i=i.return;return d.tag===3?d.stateNode:null}var cs=!1;function Wv(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function pT(i,a){i=i.updateQueue,a.updateQueue===i&&(a.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Pi(i,a){return{eventTime:i,lane:a,tag:0,payload:null,callback:null,next:null}}function us(i,a,d){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,Lt&2){var v=h.pending;return v===null?a.next=a:(a.next=v.next,v.next=a),h.pending=a,ki(i,d)}return v=h.interleaved,v===null?(a.next=a,Uv(h)):(a.next=v.next,v.next=a),h.interleaved=a,ki(i,d)}function Op(i,a,d){if(a=a.updateQueue,a!==null&&(a=a.shared,(d&4194240)!==0)){var h=a.lanes;h&=i.pendingLanes,d|=h,a.lanes=d,rv(i,d)}}function hT(i,a){var d=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,d===h)){var v=null,C=null;if(d=d.firstBaseUpdate,d!==null){do{var j={eventTime:d.eventTime,lane:d.lane,tag:d.tag,payload:d.payload,callback:d.callback,next:null};C===null?v=C=j:C=C.next=j,d=d.next}while(d!==null);C===null?v=C=a:C=C.next=a}else v=C=a;d={baseState:h.baseState,firstBaseUpdate:v,lastBaseUpdate:C,shared:h.shared,effects:h.effects},i.updateQueue=d;return}i=d.lastBaseUpdate,i===null?d.firstBaseUpdate=a:i.next=a,d.lastBaseUpdate=a}function $p(i,a,d,h){var v=i.updateQueue;cs=!1;var C=v.firstBaseUpdate,j=v.lastBaseUpdate,I=v.shared.pending;if(I!==null){v.shared.pending=null;var U=I,ue=U.next;U.next=null,j===null?C=ue:j.next=ue,j=U;var Ce=i.alternate;Ce!==null&&(Ce=Ce.updateQueue,I=Ce.lastBaseUpdate,I!==j&&(I===null?Ce.firstBaseUpdate=ue:I.next=ue,Ce.lastBaseUpdate=U))}if(C!==null){var Te=v.baseState;j=0,Ce=ue=U=null,I=C;do{var Se=I.lane,Ge=I.eventTime;if((h&Se)===Se){Ce!==null&&(Ce=Ce.next={eventTime:Ge,lane:0,tag:I.tag,payload:I.payload,callback:I.callback,next:null});e:{var Xe=i,tt=I;switch(Se=a,Ge=d,tt.tag){case 1:if(Xe=tt.payload,typeof Xe=="function"){Te=Xe.call(Ge,Te,Se);break e}Te=Xe;break e;case 3:Xe.flags=Xe.flags&-65537|128;case 0:if(Xe=tt.payload,Se=typeof Xe=="function"?Xe.call(Ge,Te,Se):Xe,Se==null)break e;Te=ce({},Te,Se);break e;case 2:cs=!0}}I.callback!==null&&I.lane!==0&&(i.flags|=64,Se=v.effects,Se===null?v.effects=[I]:Se.push(I))}else Ge={eventTime:Ge,lane:Se,tag:I.tag,payload:I.payload,callback:I.callback,next:null},Ce===null?(ue=Ce=Ge,U=Te):Ce=Ce.next=Ge,j|=Se;if(I=I.next,I===null){if(I=v.shared.pending,I===null)break;Se=I,I=Se.next,Se.next=null,v.lastBaseUpdate=Se,v.shared.pending=null}}while(!0);if(Ce===null&&(U=Te),v.baseState=U,v.firstBaseUpdate=ue,v.lastBaseUpdate=Ce,a=v.shared.interleaved,a!==null){v=a;do j|=v.lane,v=v.next;while(v!==a)}else C===null&&(v.shared.lanes=0);oa|=j,i.lanes=j,i.memoizedState=Te}}function mT(i,a,d){if(i=a.effects,a.effects=null,i!==null)for(a=0;a<i.length;a++){var h=i[a],v=h.callback;if(v!==null){if(h.callback=null,h=d,typeof v!="function")throw Error(n(191,v));v.call(h)}}}var ku={},ei=ss(ku),Pu=ss(ku),Tu=ss(ku);function na(i){if(i===ku)throw Error(n(174));return i}function Hv(i,a){switch(sn(Tu,a),sn(Pu,i),sn(ei,ku),i=a.nodeType,i){case 9:case 11:a=(a=a.documentElement)?a.namespaceURI:qt(null,"");break;default:i=i===8?a.parentNode:a,a=i.namespaceURI||null,i=i.tagName,a=qt(a,i)}un(ei),sn(ei,a)}function kl(){un(ei),un(Pu),un(Tu)}function gT(i){na(Tu.current);var a=na(ei.current),d=qt(a,i.type);a!==d&&(sn(Pu,i),sn(ei,d))}function Vv(i){Pu.current===i&&(un(ei),un(Pu))}var mn=ss(0);function Ap(i){for(var a=i;a!==null;){if(a.tag===13){var d=a.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||d.data==="$?"||d.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if(a.flags&128)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Kv=[];function Gv(){for(var i=0;i<Kv.length;i++)Kv[i]._workInProgressVersionPrimary=null;Kv.length=0}var jp=A.ReactCurrentDispatcher,qv=A.ReactCurrentBatchConfig,ra=0,gn=null,jn=null,Dn=null,_p=!1,Ou=!1,$u=0,Gee=0;function Xn(){throw Error(n(321))}function Qv(i,a){if(a===null)return!1;for(var d=0;d<a.length&&d<i.length;d++)if(!$o(i[d],a[d]))return!1;return!0}function Yv(i,a,d,h,v,C){if(ra=C,gn=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,jp.current=i===null||i.memoizedState===null?Xee:Jee,i=d(h,v),Ou){C=0;do{if(Ou=!1,$u=0,25<=C)throw Error(n(301));C+=1,Dn=jn=null,a.updateQueue=null,jp.current=Zee,i=d(h,v)}while(Ou)}if(jp.current=Np,a=jn!==null&&jn.next!==null,ra=0,Dn=jn=gn=null,_p=!1,a)throw Error(n(300));return i}function Xv(){var i=$u!==0;return $u=0,i}function ti(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dn===null?gn.memoizedState=Dn=i:Dn=Dn.next=i,Dn}function go(){if(jn===null){var i=gn.alternate;i=i!==null?i.memoizedState:null}else i=jn.next;var a=Dn===null?gn.memoizedState:Dn.next;if(a!==null)Dn=a,jn=i;else{if(i===null)throw Error(n(310));jn=i,i={memoizedState:jn.memoizedState,baseState:jn.baseState,baseQueue:jn.baseQueue,queue:jn.queue,next:null},Dn===null?gn.memoizedState=Dn=i:Dn=Dn.next=i}return Dn}function Au(i,a){return typeof a=="function"?a(i):a}function Jv(i){var a=go(),d=a.queue;if(d===null)throw Error(n(311));d.lastRenderedReducer=i;var h=jn,v=h.baseQueue,C=d.pending;if(C!==null){if(v!==null){var j=v.next;v.next=C.next,C.next=j}h.baseQueue=v=C,d.pending=null}if(v!==null){C=v.next,h=h.baseState;var I=j=null,U=null,ue=C;do{var Ce=ue.lane;if((ra&Ce)===Ce)U!==null&&(U=U.next={lane:0,action:ue.action,hasEagerState:ue.hasEagerState,eagerState:ue.eagerState,next:null}),h=ue.hasEagerState?ue.eagerState:i(h,ue.action);else{var Te={lane:Ce,action:ue.action,hasEagerState:ue.hasEagerState,eagerState:ue.eagerState,next:null};U===null?(I=U=Te,j=h):U=U.next=Te,gn.lanes|=Ce,oa|=Ce}ue=ue.next}while(ue!==null&&ue!==C);U===null?j=h:U.next=I,$o(h,a.memoizedState)||(Pr=!0),a.memoizedState=h,a.baseState=j,a.baseQueue=U,d.lastRenderedState=h}if(i=d.interleaved,i!==null){v=i;do C=v.lane,gn.lanes|=C,oa|=C,v=v.next;while(v!==i)}else v===null&&(d.lanes=0);return[a.memoizedState,d.dispatch]}function Zv(i){var a=go(),d=a.queue;if(d===null)throw Error(n(311));d.lastRenderedReducer=i;var h=d.dispatch,v=d.pending,C=a.memoizedState;if(v!==null){d.pending=null;var j=v=v.next;do C=i(C,j.action),j=j.next;while(j!==v);$o(C,a.memoizedState)||(Pr=!0),a.memoizedState=C,a.baseQueue===null&&(a.baseState=C),d.lastRenderedState=C}return[C,h]}function yT(){}function vT(i,a){var d=gn,h=go(),v=a(),C=!$o(h.memoizedState,v);if(C&&(h.memoizedState=v,Pr=!0),h=h.queue,e0(wT.bind(null,d,h,i),[i]),h.getSnapshot!==a||C||Dn!==null&&Dn.memoizedState.tag&1){if(d.flags|=2048,ju(9,xT.bind(null,d,h,v,a),void 0,null),Fn===null)throw Error(n(349));ra&30||bT(d,a,v)}return v}function bT(i,a,d){i.flags|=16384,i={getSnapshot:a,value:d},a=gn.updateQueue,a===null?(a={lastEffect:null,stores:null},gn.updateQueue=a,a.stores=[i]):(d=a.stores,d===null?a.stores=[i]:d.push(i))}function xT(i,a,d,h){a.value=d,a.getSnapshot=h,ST(a)&&CT(i)}function wT(i,a,d){return d(function(){ST(a)&&CT(i)})}function ST(i){var a=i.getSnapshot;i=i.value;try{var d=a();return!$o(i,d)}catch{return!0}}function CT(i){var a=ki(i,1);a!==null&&Mo(a,i,1,-1)}function ET(i){var a=ti();return typeof i=="function"&&(i=i()),a.memoizedState=a.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Au,lastRenderedState:i},a.queue=i,i=i.dispatch=Yee.bind(null,gn,i),[a.memoizedState,i]}function ju(i,a,d,h){return i={tag:i,create:a,destroy:d,deps:h,next:null},a=gn.updateQueue,a===null?(a={lastEffect:null,stores:null},gn.updateQueue=a,a.lastEffect=i.next=i):(d=a.lastEffect,d===null?a.lastEffect=i.next=i:(h=d.next,d.next=i,i.next=h,a.lastEffect=i)),i}function RT(){return go().memoizedState}function Ip(i,a,d,h){var v=ti();gn.flags|=i,v.memoizedState=ju(1|a,d,void 0,h===void 0?null:h)}function Mp(i,a,d,h){var v=go();h=h===void 0?null:h;var C=void 0;if(jn!==null){var j=jn.memoizedState;if(C=j.destroy,h!==null&&Qv(h,j.deps)){v.memoizedState=ju(a,d,C,h);return}}gn.flags|=i,v.memoizedState=ju(1|a,d,C,h)}function kT(i,a){return Ip(8390656,8,i,a)}function e0(i,a){return Mp(2048,8,i,a)}function PT(i,a){return Mp(4,2,i,a)}function TT(i,a){return Mp(4,4,i,a)}function OT(i,a){if(typeof a=="function")return i=i(),a(i),function(){a(null)};if(a!=null)return i=i(),a.current=i,function(){a.current=null}}function $T(i,a,d){return d=d!=null?d.concat([i]):null,Mp(4,4,OT.bind(null,a,i),d)}function t0(){}function AT(i,a){var d=go();a=a===void 0?null:a;var h=d.memoizedState;return h!==null&&a!==null&&Qv(a,h[1])?h[0]:(d.memoizedState=[i,a],i)}function jT(i,a){var d=go();a=a===void 0?null:a;var h=d.memoizedState;return h!==null&&a!==null&&Qv(a,h[1])?h[0]:(i=i(),d.memoizedState=[i,a],i)}function _T(i,a,d){return ra&21?($o(d,a)||(d=cP(),gn.lanes|=d,oa|=d,i.baseState=!0),a):(i.baseState&&(i.baseState=!1,Pr=!0),i.memoizedState=d)}function qee(i,a){var d=Xt;Xt=d!==0&&4>d?d:4,i(!0);var h=qv.transition;qv.transition={};try{i(!1),a()}finally{Xt=d,qv.transition=h}}function IT(){return go().memoizedState}function Qee(i,a,d){var h=hs(i);if(d={lane:h,action:d,hasEagerState:!1,eagerState:null,next:null},MT(i))NT(a,d);else if(d=fT(i,a,d,h),d!==null){var v=dr();Mo(d,i,h,v),LT(d,a,h)}}function Yee(i,a,d){var h=hs(i),v={lane:h,action:d,hasEagerState:!1,eagerState:null,next:null};if(MT(i))NT(a,v);else{var C=i.alternate;if(i.lanes===0&&(C===null||C.lanes===0)&&(C=a.lastRenderedReducer,C!==null))try{var j=a.lastRenderedState,I=C(j,d);if(v.hasEagerState=!0,v.eagerState=I,$o(I,j)){var U=a.interleaved;U===null?(v.next=v,Uv(a)):(v.next=U.next,U.next=v),a.interleaved=v;return}}catch{}finally{}d=fT(i,a,v,h),d!==null&&(v=dr(),Mo(d,i,h,v),LT(d,a,h))}}function MT(i){var a=i.alternate;return i===gn||a!==null&&a===gn}function NT(i,a){Ou=_p=!0;var d=i.pending;d===null?a.next=a:(a.next=d.next,d.next=a),i.pending=a}function LT(i,a,d){if(d&4194240){var h=a.lanes;h&=i.pendingLanes,d|=h,a.lanes=d,rv(i,d)}}var Np={readContext:mo,useCallback:Xn,useContext:Xn,useEffect:Xn,useImperativeHandle:Xn,useInsertionEffect:Xn,useLayoutEffect:Xn,useMemo:Xn,useReducer:Xn,useRef:Xn,useState:Xn,useDebugValue:Xn,useDeferredValue:Xn,useTransition:Xn,useMutableSource:Xn,useSyncExternalStore:Xn,useId:Xn,unstable_isNewReconciler:!1},Xee={readContext:mo,useCallback:function(i,a){return ti().memoizedState=[i,a===void 0?null:a],i},useContext:mo,useEffect:kT,useImperativeHandle:function(i,a,d){return d=d!=null?d.concat([i]):null,Ip(4194308,4,OT.bind(null,a,i),d)},useLayoutEffect:function(i,a){return Ip(4194308,4,i,a)},useInsertionEffect:function(i,a){return Ip(4,2,i,a)},useMemo:function(i,a){var d=ti();return a=a===void 0?null:a,i=i(),d.memoizedState=[i,a],i},useReducer:function(i,a,d){var h=ti();return a=d!==void 0?d(a):a,h.memoizedState=h.baseState=a,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:a},h.queue=i,i=i.dispatch=Qee.bind(null,gn,i),[h.memoizedState,i]},useRef:function(i){var a=ti();return i={current:i},a.memoizedState=i},useState:ET,useDebugValue:t0,useDeferredValue:function(i){return ti().memoizedState=i},useTransition:function(){var i=ET(!1),a=i[0];return i=qee.bind(null,i[1]),ti().memoizedState=i,[a,i]},useMutableSource:function(){},useSyncExternalStore:function(i,a,d){var h=gn,v=ti();if(pn){if(d===void 0)throw Error(n(407));d=d()}else{if(d=a(),Fn===null)throw Error(n(349));ra&30||bT(h,a,d)}v.memoizedState=d;var C={value:d,getSnapshot:a};return v.queue=C,kT(wT.bind(null,h,C,i),[i]),h.flags|=2048,ju(9,xT.bind(null,h,C,d,a),void 0,null),d},useId:function(){var i=ti(),a=Fn.identifierPrefix;if(pn){var d=Ri,h=Ei;d=(h&~(1<<32-jt(h)-1)).toString(32)+d,a=":"+a+"R"+d,d=$u++,0<d&&(a+="H"+d.toString(32)),a+=":"}else d=Gee++,a=":"+a+"r"+d.toString(32)+":";return i.memoizedState=a},unstable_isNewReconciler:!1},Jee={readContext:mo,useCallback:AT,useContext:mo,useEffect:e0,useImperativeHandle:$T,useInsertionEffect:PT,useLayoutEffect:TT,useMemo:jT,useReducer:Jv,useRef:RT,useState:function(){return Jv(Au)},useDebugValue:t0,useDeferredValue:function(i){var a=go();return _T(a,jn.memoizedState,i)},useTransition:function(){var i=Jv(Au)[0],a=go().memoizedState;return[i,a]},useMutableSource:yT,useSyncExternalStore:vT,useId:IT,unstable_isNewReconciler:!1},Zee={readContext:mo,useCallback:AT,useContext:mo,useEffect:e0,useImperativeHandle:$T,useInsertionEffect:PT,useLayoutEffect:TT,useMemo:jT,useReducer:Zv,useRef:RT,useState:function(){return Zv(Au)},useDebugValue:t0,useDeferredValue:function(i){var a=go();return jn===null?a.memoizedState=i:_T(a,jn.memoizedState,i)},useTransition:function(){var i=Zv(Au)[0],a=go().memoizedState;return[i,a]},useMutableSource:yT,useSyncExternalStore:vT,useId:IT,unstable_isNewReconciler:!1};function jo(i,a){if(i&&i.defaultProps){a=ce({},a),i=i.defaultProps;for(var d in i)a[d]===void 0&&(a[d]=i[d]);return a}return a}function n0(i,a,d,h){a=i.memoizedState,d=d(h,a),d=d==null?a:ce({},a,d),i.memoizedState=d,i.lanes===0&&(i.updateQueue.baseState=d)}var Lp={isMounted:function(i){return(i=i._reactInternals)?Q(i)===i:!1},enqueueSetState:function(i,a,d){i=i._reactInternals;var h=dr(),v=hs(i),C=Pi(h,v);C.payload=a,d!=null&&(C.callback=d),a=us(i,C,v),a!==null&&(Mo(a,i,v,h),Op(a,i,v))},enqueueReplaceState:function(i,a,d){i=i._reactInternals;var h=dr(),v=hs(i),C=Pi(h,v);C.tag=1,C.payload=a,d!=null&&(C.callback=d),a=us(i,C,v),a!==null&&(Mo(a,i,v,h),Op(a,i,v))},enqueueForceUpdate:function(i,a){i=i._reactInternals;var d=dr(),h=hs(i),v=Pi(d,h);v.tag=2,a!=null&&(v.callback=a),a=us(i,v,h),a!==null&&(Mo(a,i,h,d),Op(a,i,h))}};function DT(i,a,d,h,v,C,j){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,C,j):a.prototype&&a.prototype.isPureReactComponent?!vu(d,h)||!vu(v,C):!0}function FT(i,a,d){var h=!1,v=as,C=a.contextType;return typeof C=="object"&&C!==null?C=mo(C):(v=kr(a)?Js:Yn.current,h=a.contextTypes,C=(h=h!=null)?bl(i,v):as),a=new a(d,C),i.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Lp,i.stateNode=a,a._reactInternals=i,h&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=v,i.__reactInternalMemoizedMaskedChildContext=C),a}function BT(i,a,d,h){i=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(d,h),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(d,h),a.state!==i&&Lp.enqueueReplaceState(a,a.state,null)}function r0(i,a,d,h){var v=i.stateNode;v.props=d,v.state=i.memoizedState,v.refs={},Wv(i);var C=a.contextType;typeof C=="object"&&C!==null?v.context=mo(C):(C=kr(a)?Js:Yn.current,v.context=bl(i,C)),v.state=i.memoizedState,C=a.getDerivedStateFromProps,typeof C=="function"&&(n0(i,a,C,d),v.state=i.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(a=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),a!==v.state&&Lp.enqueueReplaceState(v,v.state,null),$p(i,d,v,h),v.state=i.memoizedState),typeof v.componentDidMount=="function"&&(i.flags|=4194308)}function Pl(i,a){try{var d="",h=a;do d+=xe(h),h=h.return;while(h);var v=d}catch(C){v=`
|
|
7
7
|
Error generating stack: `+C.message+`
|
|
8
|
-
`+C.stack}return{value:i,source:a,stack:v,digest:null}}function o0(i,a,d){return{value:i,source:null,stack:d??null,digest:a??null}}function i0(i,a){try{console.error(a.value)}catch(d){setTimeout(function(){throw d})}}var ete=typeof WeakMap=="function"?WeakMap:Map;function zT(i,a,d){d=Pi(-1,d),d.tag=3,d.payload={element:null};var h=a.value;return d.callback=function(){Hp||(Hp=!0,x0=h),i0(i,a)},d}function UT(i,a,d){d=Pi(-1,d),d.tag=3;var h=i.type.getDerivedStateFromError;if(typeof h=="function"){var v=a.value;d.payload=function(){return h(v)},d.callback=function(){i0(i,a)}}var C=i.stateNode;return C!==null&&typeof C.componentDidCatch=="function"&&(d.callback=function(){i0(i,a),typeof h!="function"&&(fs===null?fs=new Set([this]):fs.add(this));var j=a.stack;this.componentDidCatch(a.value,{componentStack:j!==null?j:""})}),d}function WT(i,a,d){var h=i.pingCache;if(h===null){h=i.pingCache=new ete;var v=new Set;h.set(a,v)}else v=h.get(a),v===void 0&&(v=new Set,h.set(a,v));v.has(d)||(v.add(d),i=hte.bind(null,i,a,d),a.then(i,i))}function HT(i){do{var a;if((a=i.tag===13)&&(a=i.memoizedState,a=a!==null?a.dehydrated!==null:!0),a)return i;i=i.return}while(i!==null);return null}function VT(i,a,d,h,v){return i.mode&1?(i.flags|=65536,i.lanes=v,i):(i===a?i.flags|=65536:(i.flags|=128,d.flags|=131072,d.flags&=-52805,d.tag===1&&(d.alternate===null?d.tag=17:(a=Pi(-1,1),a.tag=2,us(d,a,1))),d.lanes|=1),i)}var tte=A.ReactCurrentOwner,Pr=!1;function ur(i,a,d,h){a.child=i===null?dT(a,null,d,h):Cl(a,i.child,d,h)}function KT(i,a,d,h,v){d=d.render;var C=a.ref;return Rl(a,v),h=Yv(i,a,d,h,C,v),d=Xv(),i!==null&&!Pr?(a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~v,Ti(i,a,v)):(pn&&d&&_v(a),a.flags|=1,ur(i,a,h,v),a.child)}function GT(i,a,d,h,v){if(i===null){var C=d.type;return typeof C=="function"&&!P0(C)&&C.defaultProps===void 0&&d.compare===null&&d.defaultProps===void 0?(a.tag=15,a.type=C,qT(i,a,C,h,v)):(i=Yp(d.type,null,h,a,a.mode,v),i.ref=a.ref,i.return=a,a.child=i)}if(C=i.child,!(i.lanes&v)){var j=C.memoizedProps;if(d=d.compare,d=d!==null?d:vu,d(j,h)&&i.ref===a.ref)return Ti(i,a,v)}return a.flags|=1,i=gs(C,h),i.ref=a.ref,i.return=a,a.child=i}function qT(i,a,d,h,v){if(i!==null){var C=i.memoizedProps;if(vu(C,h)&&i.ref===a.ref)if(Pr=!1,a.pendingProps=h=C,(i.lanes&v)!==0)i.flags&131072&&(Pr=!0);else return a.lanes=i.lanes,Ti(i,a,v)}return s0(i,a,d,h,v)}function QT(i,a,d){var h=a.pendingProps,v=h.children,C=i!==null?i.memoizedState:null;if(h.mode==="hidden")if(!(a.mode&1))a.memoizedState={baseLanes:0,cachePool:null,transitions:null},sn(Ol,Qr),Qr|=d;else{if(!(d&1073741824))return i=C!==null?C.baseLanes|d:d,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:i,cachePool:null,transitions:null},a.updateQueue=null,sn(Ol,Qr),Qr|=i,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},h=C!==null?C.baseLanes:d,sn(Ol,Qr),Qr|=h}else C!==null?(h=C.baseLanes|d,a.memoizedState=null):h=d,sn(Ol,Qr),Qr|=h;return ur(i,a,v,d),a.child}function YT(i,a){var d=a.ref;(i===null&&d!==null||i!==null&&i.ref!==d)&&(a.flags|=512,a.flags|=2097152)}function s0(i,a,d,h,v){var C=kr(d)?Js:Yn.current;return C=bl(a,C),Rl(a,v),d=Yv(i,a,d,h,C,v),h=Xv(),i!==null&&!Pr?(a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~v,Ti(i,a,v)):(pn&&h&&_v(a),a.flags|=1,ur(i,a,d,v),a.child)}function XT(i,a,d,h,v){if(kr(d)){var C=!0;wp(a)}else C=!1;if(Rl(a,v),a.stateNode===null)Fp(i,a),FT(a,d,h),r0(a,d,h,v),h=!0;else if(i===null){var j=a.stateNode,I=a.memoizedProps;j.props=I;var U=j.context,ue=d.contextType;typeof ue=="object"&&ue!==null?ue=ho(ue):(ue=kr(d)?Js:Yn.current,ue=bl(a,ue));var Ce=d.getDerivedStateFromProps,Te=typeof Ce=="function"||typeof j.getSnapshotBeforeUpdate=="function";Te||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(I!==h||U!==ue)&&BT(a,j,h,ue),cs=!1;var Se=a.memoizedState;j.state=Se,$p(a,h,j,v),U=a.memoizedState,I!==h||Se!==U||Rr.current||cs?(typeof Ce=="function"&&(n0(a,d,Ce,h),U=a.memoizedState),(I=cs||DT(a,d,I,h,Se,U,ue))?(Te||typeof j.UNSAFE_componentWillMount!="function"&&typeof j.componentWillMount!="function"||(typeof j.componentWillMount=="function"&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount=="function"&&j.UNSAFE_componentWillMount()),typeof j.componentDidMount=="function"&&(a.flags|=4194308)):(typeof j.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=h,a.memoizedState=U),j.props=h,j.state=U,j.context=ue,h=I):(typeof j.componentDidMount=="function"&&(a.flags|=4194308),h=!1)}else{j=a.stateNode,pT(i,a),I=a.memoizedProps,ue=a.type===a.elementType?I:jo(a.type,I),j.props=ue,Te=a.pendingProps,Se=j.context,U=d.contextType,typeof U=="object"&&U!==null?U=ho(U):(U=kr(d)?Js:Yn.current,U=bl(a,U));var Ge=d.getDerivedStateFromProps;(Ce=typeof Ge=="function"||typeof j.getSnapshotBeforeUpdate=="function")||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(I!==Te||Se!==U)&&BT(a,j,h,U),cs=!1,Se=a.memoizedState,j.state=Se,$p(a,h,j,v);var Xe=a.memoizedState;I!==Te||Se!==Xe||Rr.current||cs?(typeof Ge=="function"&&(n0(a,d,Ge,h),Xe=a.memoizedState),(ue=cs||DT(a,d,ue,h,Se,Xe,U)||!1)?(Ce||typeof j.UNSAFE_componentWillUpdate!="function"&&typeof j.componentWillUpdate!="function"||(typeof j.componentWillUpdate=="function"&&j.componentWillUpdate(h,Xe,U),typeof j.UNSAFE_componentWillUpdate=="function"&&j.UNSAFE_componentWillUpdate(h,Xe,U)),typeof j.componentDidUpdate=="function"&&(a.flags|=4),typeof j.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof j.componentDidUpdate!="function"||I===i.memoizedProps&&Se===i.memoizedState||(a.flags|=4),typeof j.getSnapshotBeforeUpdate!="function"||I===i.memoizedProps&&Se===i.memoizedState||(a.flags|=1024),a.memoizedProps=h,a.memoizedState=Xe),j.props=h,j.state=Xe,j.context=U,h=ue):(typeof j.componentDidUpdate!="function"||I===i.memoizedProps&&Se===i.memoizedState||(a.flags|=4),typeof j.getSnapshotBeforeUpdate!="function"||I===i.memoizedProps&&Se===i.memoizedState||(a.flags|=1024),h=!1)}return a0(i,a,d,h,C,v)}function a0(i,a,d,h,v,C){YT(i,a);var j=(a.flags&128)!==0;if(!h&&!j)return v&&nT(a,d,!1),Ti(i,a,C);h=a.stateNode,tte.current=a;var I=j&&typeof d.getDerivedStateFromError!="function"?null:h.render();return a.flags|=1,i!==null&&j?(a.child=Cl(a,i.child,null,C),a.child=Cl(a,null,I,C)):ur(i,a,I,C),a.memoizedState=h.state,v&&nT(a,d,!0),a.child}function JT(i){var a=i.stateNode;a.pendingContext?eT(i,a.pendingContext,a.pendingContext!==a.context):a.context&&eT(i,a.context,!1),Hv(i,a.containerInfo)}function ZT(i,a,d,h,v){return Sl(),Lv(v),a.flags|=256,ur(i,a,d,h),a.child}var l0={dehydrated:null,treeContext:null,retryLane:0};function c0(i){return{baseLanes:i,cachePool:null,transitions:null}}function eO(i,a,d){var h=a.pendingProps,v=mn.current,C=!1,j=(a.flags&128)!==0,I;if((I=j)||(I=i!==null&&i.memoizedState===null?!1:(v&2)!==0),I?(C=!0,a.flags&=-129):(i===null||i.memoizedState!==null)&&(v|=1),sn(mn,v&1),i===null)return Nv(a),i=a.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?(a.mode&1?i.data==="$!"?a.lanes=8:a.lanes=1073741824:a.lanes=1,null):(j=h.children,i=h.fallback,C?(h=a.mode,C=a.child,j={mode:"hidden",children:j},!(h&1)&&C!==null?(C.childLanes=0,C.pendingProps=j):C=Xp(j,h,0,null),i=la(i,h,d,null),C.return=a,i.return=a,C.sibling=i,a.child=C,a.child.memoizedState=c0(d),a.memoizedState=l0,i):u0(a,j));if(v=i.memoizedState,v!==null&&(I=v.dehydrated,I!==null))return nte(i,a,j,h,I,v,d);if(C){C=h.fallback,j=a.mode,v=i.child,I=v.sibling;var U={mode:"hidden",children:h.children};return!(j&1)&&a.child!==v?(h=a.child,h.childLanes=0,h.pendingProps=U,a.deletions=null):(h=gs(v,U),h.subtreeFlags=v.subtreeFlags&14680064),I!==null?C=gs(I,C):(C=la(C,j,d,null),C.flags|=2),C.return=a,h.return=a,h.sibling=C,a.child=h,h=C,C=a.child,j=i.child.memoizedState,j=j===null?c0(d):{baseLanes:j.baseLanes|d,cachePool:null,transitions:j.transitions},C.memoizedState=j,C.childLanes=i.childLanes&~d,a.memoizedState=l0,h}return C=i.child,i=C.sibling,h=gs(C,{mode:"visible",children:h.children}),!(a.mode&1)&&(h.lanes=d),h.return=a,h.sibling=null,i!==null&&(d=a.deletions,d===null?(a.deletions=[i],a.flags|=16):d.push(i)),a.child=h,a.memoizedState=null,h}function u0(i,a){return a=Xp({mode:"visible",children:a},i.mode,0,null),a.return=i,i.child=a}function Dp(i,a,d,h){return h!==null&&Lv(h),Cl(a,i.child,null,d),i=u0(a,a.pendingProps.children),i.flags|=2,a.memoizedState=null,i}function nte(i,a,d,h,v,C,j){if(d)return a.flags&256?(a.flags&=-257,h=o0(Error(n(422))),Dp(i,a,j,h)):a.memoizedState!==null?(a.child=i.child,a.flags|=128,null):(C=h.fallback,v=a.mode,h=Xp({mode:"visible",children:h.children},v,0,null),C=la(C,v,j,null),C.flags|=2,h.return=a,C.return=a,h.sibling=C,a.child=h,a.mode&1&&Cl(a,i.child,null,j),a.child.memoizedState=c0(j),a.memoizedState=l0,C);if(!(a.mode&1))return Dp(i,a,j,null);if(v.data==="$!"){if(h=v.nextSibling&&v.nextSibling.dataset,h)var I=h.dgst;return h=I,C=Error(n(419)),h=o0(C,h,void 0),Dp(i,a,j,h)}if(I=(j&i.childLanes)!==0,Pr||I){if(h=Fn,h!==null){switch(j&-j){case 4:v=2;break;case 16:v=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:v=32;break;case 536870912:v=268435456;break;default:v=0}v=v&(h.suspendedLanes|j)?0:v,v!==0&&v!==C.retryLane&&(C.retryLane=v,ki(i,v),Mo(h,i,v,-1))}return k0(),h=o0(Error(n(421))),Dp(i,a,j,h)}return v.data==="$?"?(a.flags|=128,a.child=i.child,a=mte.bind(null,i),v._reactRetry=a,null):(i=C.treeContext,qr=is(v.nextSibling),Gr=a,pn=!0,Ao=null,i!==null&&(fo[po++]=Ei,fo[po++]=Ri,fo[po++]=Zs,Ei=i.id,Ri=i.overflow,Zs=a),a=u0(a,h.children),a.flags|=4096,a)}function tO(i,a,d){i.lanes|=a;var h=i.alternate;h!==null&&(h.lanes|=a),zv(i.return,a,d)}function d0(i,a,d,h,v){var C=i.memoizedState;C===null?i.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:h,tail:d,tailMode:v}:(C.isBackwards=a,C.rendering=null,C.renderingStartTime=0,C.last=h,C.tail=d,C.tailMode=v)}function nO(i,a,d){var h=a.pendingProps,v=h.revealOrder,C=h.tail;if(ur(i,a,h.children,d),h=mn.current,h&2)h=h&1|2,a.flags|=128;else{if(i!==null&&i.flags&128)e:for(i=a.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&tO(i,d,a);else if(i.tag===19)tO(i,d,a);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}h&=1}if(sn(mn,h),!(a.mode&1))a.memoizedState=null;else switch(v){case"forwards":for(d=a.child,v=null;d!==null;)i=d.alternate,i!==null&&Ap(i)===null&&(v=d),d=d.sibling;d=v,d===null?(v=a.child,a.child=null):(v=d.sibling,d.sibling=null),d0(a,!1,v,d,C);break;case"backwards":for(d=null,v=a.child,a.child=null;v!==null;){if(i=v.alternate,i!==null&&Ap(i)===null){a.child=v;break}i=v.sibling,v.sibling=d,d=v,v=i}d0(a,!0,d,null,C);break;case"together":d0(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Fp(i,a){!(a.mode&1)&&i!==null&&(i.alternate=null,a.alternate=null,a.flags|=2)}function Ti(i,a,d){if(i!==null&&(a.dependencies=i.dependencies),oa|=a.lanes,!(d&a.childLanes))return null;if(i!==null&&a.child!==i.child)throw Error(n(153));if(a.child!==null){for(i=a.child,d=gs(i,i.pendingProps),a.child=d,d.return=a;i.sibling!==null;)i=i.sibling,d=d.sibling=gs(i,i.pendingProps),d.return=a;d.sibling=null}return a.child}function rte(i,a,d){switch(a.tag){case 3:JT(a),Sl();break;case 5:gT(a);break;case 1:kr(a.type)&&wp(a);break;case 4:Hv(a,a.stateNode.containerInfo);break;case 10:var h=a.type._context,v=a.memoizedProps.value;sn(Pp,h._currentValue),h._currentValue=v;break;case 13:if(h=a.memoizedState,h!==null)return h.dehydrated!==null?(sn(mn,mn.current&1),a.flags|=128,null):d&a.child.childLanes?eO(i,a,d):(sn(mn,mn.current&1),i=Ti(i,a,d),i!==null?i.sibling:null);sn(mn,mn.current&1);break;case 19:if(h=(d&a.childLanes)!==0,i.flags&128){if(h)return nO(i,a,d);a.flags|=128}if(v=a.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),sn(mn,mn.current),h)break;return null;case 22:case 23:return a.lanes=0,QT(i,a,d)}return Ti(i,a,d)}var rO,f0,oO,iO;rO=function(i,a){for(var d=a.child;d!==null;){if(d.tag===5||d.tag===6)i.appendChild(d.stateNode);else if(d.tag!==4&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===a)break;for(;d.sibling===null;){if(d.return===null||d.return===a)return;d=d.return}d.sibling.return=d.return,d=d.sibling}},f0=function(){},oO=function(i,a,d,h){var v=i.memoizedProps;if(v!==h){i=a.stateNode,na(ei.current);var C=null;switch(d){case"input":v=ct(i,v),h=ct(i,h),C=[];break;case"select":v=ce({},v,{value:void 0}),h=ce({},h,{value:void 0}),C=[];break;case"textarea":v=_t(i,v),h=_t(i,h),C=[];break;default:typeof v.onClick!="function"&&typeof h.onClick=="function"&&(i.onclick=vp)}We(d,h);var j;d=null;for(ue in v)if(!h.hasOwnProperty(ue)&&v.hasOwnProperty(ue)&&v[ue]!=null)if(ue==="style"){var I=v[ue];for(j in I)I.hasOwnProperty(j)&&(d||(d={}),d[j]="")}else ue!=="dangerouslySetInnerHTML"&&ue!=="children"&&ue!=="suppressContentEditableWarning"&&ue!=="suppressHydrationWarning"&&ue!=="autoFocus"&&(o.hasOwnProperty(ue)?C||(C=[]):(C=C||[]).push(ue,null));for(ue in h){var U=h[ue];if(I=v!=null?v[ue]:void 0,h.hasOwnProperty(ue)&&U!==I&&(U!=null||I!=null))if(ue==="style")if(I){for(j in I)!I.hasOwnProperty(j)||U&&U.hasOwnProperty(j)||(d||(d={}),d[j]="");for(j in U)U.hasOwnProperty(j)&&I[j]!==U[j]&&(d||(d={}),d[j]=U[j])}else d||(C||(C=[]),C.push(ue,d)),d=U;else ue==="dangerouslySetInnerHTML"?(U=U?U.__html:void 0,I=I?I.__html:void 0,U!=null&&I!==U&&(C=C||[]).push(ue,U)):ue==="children"?typeof U!="string"&&typeof U!="number"||(C=C||[]).push(ue,""+U):ue!=="suppressContentEditableWarning"&&ue!=="suppressHydrationWarning"&&(o.hasOwnProperty(ue)?(U!=null&&ue==="onScroll"&&cn("scroll",i),C||I===U||(C=[])):(C=C||[]).push(ue,U))}d&&(C=C||[]).push("style",d);var ue=C;(a.updateQueue=ue)&&(a.flags|=4)}},iO=function(i,a,d,h){d!==h&&(a.flags|=4)};function _u(i,a){if(!pn)switch(i.tailMode){case"hidden":a=i.tail;for(var d=null;a!==null;)a.alternate!==null&&(d=a),a=a.sibling;d===null?i.tail=null:d.sibling=null;break;case"collapsed":d=i.tail;for(var h=null;d!==null;)d.alternate!==null&&(h=d),d=d.sibling;h===null?a||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function Jn(i){var a=i.alternate!==null&&i.alternate.child===i.child,d=0,h=0;if(a)for(var v=i.child;v!==null;)d|=v.lanes|v.childLanes,h|=v.subtreeFlags&14680064,h|=v.flags&14680064,v.return=i,v=v.sibling;else for(v=i.child;v!==null;)d|=v.lanes|v.childLanes,h|=v.subtreeFlags,h|=v.flags,v.return=i,v=v.sibling;return i.subtreeFlags|=h,i.childLanes=d,a}function ote(i,a,d){var h=a.pendingProps;switch(Iv(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Jn(a),null;case 1:return kr(a.type)&&xp(),Jn(a),null;case 3:return h=a.stateNode,kl(),un(Rr),un(Yn),Gv(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(i===null||i.child===null)&&(Rp(a)?a.flags|=4:i===null||i.memoizedState.isDehydrated&&!(a.flags&256)||(a.flags|=1024,Ao!==null&&(C0(Ao),Ao=null))),f0(i,a),Jn(a),null;case 5:Vv(a);var v=na(Tu.current);if(d=a.type,i!==null&&a.stateNode!=null)oO(i,a,d,h,v),i.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!h){if(a.stateNode===null)throw Error(n(166));return Jn(a),null}if(i=na(ei.current),Rp(a)){h=a.stateNode,d=a.type;var C=a.memoizedProps;switch(h[Zo]=a,h[Cu]=C,i=(a.mode&1)!==0,d){case"dialog":cn("cancel",h),cn("close",h);break;case"iframe":case"object":case"embed":cn("load",h);break;case"video":case"audio":for(v=0;v<xu.length;v++)cn(xu[v],h);break;case"source":cn("error",h);break;case"img":case"image":case"link":cn("error",h),cn("load",h);break;case"details":cn("toggle",h);break;case"input":ot(h,C),cn("invalid",h);break;case"select":h._wrapperState={wasMultiple:!!C.multiple},cn("invalid",h);break;case"textarea":Pt(h,C),cn("invalid",h)}We(d,C),v=null;for(var j in C)if(C.hasOwnProperty(j)){var I=C[j];j==="children"?typeof I=="string"?h.textContent!==I&&(C.suppressHydrationWarning!==!0&&yp(h.textContent,I,i),v=["children",I]):typeof I=="number"&&h.textContent!==""+I&&(C.suppressHydrationWarning!==!0&&yp(h.textContent,I,i),v=["children",""+I]):o.hasOwnProperty(j)&&I!=null&&j==="onScroll"&&cn("scroll",h)}switch(d){case"input":He(h),Ze(h,C,!0);break;case"textarea":He(h),Ft(h);break;case"select":case"option":break;default:typeof C.onClick=="function"&&(h.onclick=vp)}h=v,a.updateQueue=h,h!==null&&(a.flags|=4)}else{j=v.nodeType===9?v:v.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=Yt(d)),i==="http://www.w3.org/1999/xhtml"?d==="script"?(i=j.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof h.is=="string"?i=j.createElement(d,{is:h.is}):(i=j.createElement(d),d==="select"&&(j=i,h.multiple?j.multiple=!0:h.size&&(j.size=h.size))):i=j.createElementNS(i,d),i[Zo]=a,i[Cu]=h,rO(i,a,!1,!1),a.stateNode=i;e:{switch(j=ft(d,h),d){case"dialog":cn("cancel",i),cn("close",i),v=h;break;case"iframe":case"object":case"embed":cn("load",i),v=h;break;case"video":case"audio":for(v=0;v<xu.length;v++)cn(xu[v],i);v=h;break;case"source":cn("error",i),v=h;break;case"img":case"image":case"link":cn("error",i),cn("load",i),v=h;break;case"details":cn("toggle",i),v=h;break;case"input":ot(i,h),v=ct(i,h),cn("invalid",i);break;case"option":v=h;break;case"select":i._wrapperState={wasMultiple:!!h.multiple},v=ce({},h,{value:void 0}),cn("invalid",i);break;case"textarea":Pt(i,h),v=_t(i,h),cn("invalid",i);break;default:v=h}We(d,v),I=v;for(C in I)if(I.hasOwnProperty(C)){var U=I[C];C==="style"?ut(i,U):C==="dangerouslySetInnerHTML"?(U=U?U.__html:void 0,U!=null&&Pe(i,U)):C==="children"?typeof U=="string"?(d!=="textarea"||U!=="")&&xt(i,U):typeof U=="number"&&xt(i,""+U):C!=="suppressContentEditableWarning"&&C!=="suppressHydrationWarning"&&C!=="autoFocus"&&(o.hasOwnProperty(C)?U!=null&&C==="onScroll"&&cn("scroll",i):U!=null&&O(i,C,U,j))}switch(d){case"input":He(i),Ze(i,h,!1);break;case"textarea":He(i),Ft(i);break;case"option":h.value!=null&&i.setAttribute("value",""+de(h.value));break;case"select":i.multiple=!!h.multiple,C=h.value,C!=null?dt(i,!!h.multiple,C,!1):h.defaultValue!=null&&dt(i,!!h.multiple,h.defaultValue,!0);break;default:typeof v.onClick=="function"&&(i.onclick=vp)}switch(d){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}}h&&(a.flags|=4)}a.ref!==null&&(a.flags|=512,a.flags|=2097152)}return Jn(a),null;case 6:if(i&&a.stateNode!=null)iO(i,a,i.memoizedProps,h);else{if(typeof h!="string"&&a.stateNode===null)throw Error(n(166));if(d=na(Tu.current),na(ei.current),Rp(a)){if(h=a.stateNode,d=a.memoizedProps,h[Zo]=a,(C=h.nodeValue!==d)&&(i=Gr,i!==null))switch(i.tag){case 3:yp(h.nodeValue,d,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&yp(h.nodeValue,d,(i.mode&1)!==0)}C&&(a.flags|=4)}else h=(d.nodeType===9?d:d.ownerDocument).createTextNode(h),h[Zo]=a,a.stateNode=h}return Jn(a),null;case 13:if(un(mn),h=a.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(pn&&qr!==null&&a.mode&1&&!(a.flags&128))lT(),Sl(),a.flags|=98560,C=!1;else if(C=Rp(a),h!==null&&h.dehydrated!==null){if(i===null){if(!C)throw Error(n(318));if(C=a.memoizedState,C=C!==null?C.dehydrated:null,!C)throw Error(n(317));C[Zo]=a}else Sl(),!(a.flags&128)&&(a.memoizedState=null),a.flags|=4;Jn(a),C=!1}else Ao!==null&&(C0(Ao),Ao=null),C=!0;if(!C)return a.flags&65536?a:null}return a.flags&128?(a.lanes=d,a):(h=h!==null,h!==(i!==null&&i.memoizedState!==null)&&h&&(a.child.flags|=8192,a.mode&1&&(i===null||mn.current&1?_n===0&&(_n=3):k0())),a.updateQueue!==null&&(a.flags|=4),Jn(a),null);case 4:return kl(),f0(i,a),i===null&&wu(a.stateNode.containerInfo),Jn(a),null;case 10:return Bv(a.type._context),Jn(a),null;case 17:return kr(a.type)&&xp(),Jn(a),null;case 19:if(un(mn),C=a.memoizedState,C===null)return Jn(a),null;if(h=(a.flags&128)!==0,j=C.rendering,j===null)if(h)_u(C,!1);else{if(_n!==0||i!==null&&i.flags&128)for(i=a.child;i!==null;){if(j=Ap(i),j!==null){for(a.flags|=128,_u(C,!1),h=j.updateQueue,h!==null&&(a.updateQueue=h,a.flags|=4),a.subtreeFlags=0,h=d,d=a.child;d!==null;)C=d,i=h,C.flags&=14680066,j=C.alternate,j===null?(C.childLanes=0,C.lanes=i,C.child=null,C.subtreeFlags=0,C.memoizedProps=null,C.memoizedState=null,C.updateQueue=null,C.dependencies=null,C.stateNode=null):(C.childLanes=j.childLanes,C.lanes=j.lanes,C.child=j.child,C.subtreeFlags=0,C.deletions=null,C.memoizedProps=j.memoizedProps,C.memoizedState=j.memoizedState,C.updateQueue=j.updateQueue,C.type=j.type,i=j.dependencies,C.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),d=d.sibling;return sn(mn,mn.current&1|2),a.child}i=i.sibling}C.tail!==null&&Jt()>$l&&(a.flags|=128,h=!0,_u(C,!1),a.lanes=4194304)}else{if(!h)if(i=Ap(j),i!==null){if(a.flags|=128,h=!0,d=i.updateQueue,d!==null&&(a.updateQueue=d,a.flags|=4),_u(C,!0),C.tail===null&&C.tailMode==="hidden"&&!j.alternate&&!pn)return Jn(a),null}else 2*Jt()-C.renderingStartTime>$l&&d!==1073741824&&(a.flags|=128,h=!0,_u(C,!1),a.lanes=4194304);C.isBackwards?(j.sibling=a.child,a.child=j):(d=C.last,d!==null?d.sibling=j:a.child=j,C.last=j)}return C.tail!==null?(a=C.tail,C.rendering=a,C.tail=a.sibling,C.renderingStartTime=Jt(),a.sibling=null,d=mn.current,sn(mn,h?d&1|2:d&1),a):(Jn(a),null);case 22:case 23:return R0(),h=a.memoizedState!==null,i!==null&&i.memoizedState!==null!==h&&(a.flags|=8192),h&&a.mode&1?Qr&1073741824&&(Jn(a),a.subtreeFlags&6&&(a.flags|=8192)):Jn(a),null;case 24:return null;case 25:return null}throw Error(n(156,a.tag))}function ite(i,a){switch(Iv(a),a.tag){case 1:return kr(a.type)&&xp(),i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 3:return kl(),un(Rr),un(Yn),Gv(),i=a.flags,i&65536&&!(i&128)?(a.flags=i&-65537|128,a):null;case 5:return Vv(a),null;case 13:if(un(mn),i=a.memoizedState,i!==null&&i.dehydrated!==null){if(a.alternate===null)throw Error(n(340));Sl()}return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 19:return un(mn),null;case 4:return kl(),null;case 10:return Bv(a.type._context),null;case 22:case 23:return R0(),null;case 24:return null;default:return null}}var Bp=!1,Zn=!1,ste=typeof WeakSet=="function"?WeakSet:Set,Ye=null;function Tl(i,a){var d=i.ref;if(d!==null)if(typeof d=="function")try{d(null)}catch(h){xn(i,a,h)}else d.current=null}function p0(i,a,d){try{d()}catch(h){xn(i,a,h)}}var sO=!1;function ate(i,a){if(Rv=sp,i=DP(),yv(i)){if("selectionStart"in i)var d={start:i.selectionStart,end:i.selectionEnd};else e:{d=(d=i.ownerDocument)&&d.defaultView||window;var h=d.getSelection&&d.getSelection();if(h&&h.rangeCount!==0){d=h.anchorNode;var v=h.anchorOffset,C=h.focusNode;h=h.focusOffset;try{d.nodeType,C.nodeType}catch{d=null;break e}var j=0,I=-1,U=-1,ue=0,Ce=0,Te=i,Se=null;t:for(;;){for(var Ge;Te!==d||v!==0&&Te.nodeType!==3||(I=j+v),Te!==C||h!==0&&Te.nodeType!==3||(U=j+h),Te.nodeType===3&&(j+=Te.nodeValue.length),(Ge=Te.firstChild)!==null;)Se=Te,Te=Ge;for(;;){if(Te===i)break t;if(Se===d&&++ue===v&&(I=j),Se===C&&++Ce===h&&(U=j),(Ge=Te.nextSibling)!==null)break;Te=Se,Se=Te.parentNode}Te=Ge}d=I===-1||U===-1?null:{start:I,end:U}}else d=null}d=d||{start:0,end:0}}else d=null;for(kv={focusedElem:i,selectionRange:d},sp=!1,Ye=a;Ye!==null;)if(a=Ye,i=a.child,(a.subtreeFlags&1028)!==0&&i!==null)i.return=a,Ye=i;else for(;Ye!==null;){a=Ye;try{var Xe=a.alternate;if(a.flags&1024)switch(a.tag){case 0:case 11:case 15:break;case 1:if(Xe!==null){var tt=Xe.memoizedProps,Rn=Xe.memoizedState,ee=a.stateNode,K=ee.getSnapshotBeforeUpdate(a.elementType===a.type?tt:jo(a.type,tt),Rn);ee.__reactInternalSnapshotBeforeUpdate=K}break;case 3:var le=a.stateNode.containerInfo;le.nodeType===1?le.textContent="":le.nodeType===9&&le.documentElement&&le.removeChild(le.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Ae){xn(a,a.return,Ae)}if(i=a.sibling,i!==null){i.return=a.return,Ye=i;break}Ye=a.return}return Xe=sO,sO=!1,Xe}function Iu(i,a,d){var h=a.updateQueue;if(h=h!==null?h.lastEffect:null,h!==null){var v=h=h.next;do{if((v.tag&i)===i){var C=v.destroy;v.destroy=void 0,C!==void 0&&p0(a,d,C)}v=v.next}while(v!==h)}}function zp(i,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var d=a=a.next;do{if((d.tag&i)===i){var h=d.create;d.destroy=h()}d=d.next}while(d!==a)}}function h0(i){var a=i.ref;if(a!==null){var d=i.stateNode;switch(i.tag){case 5:i=d;break;default:i=d}typeof a=="function"?a(i):a.current=i}}function aO(i){var a=i.alternate;a!==null&&(i.alternate=null,aO(a)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(a=i.stateNode,a!==null&&(delete a[Zo],delete a[Cu],delete a[$v],delete a[Wee],delete a[Hee])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function lO(i){return i.tag===5||i.tag===3||i.tag===4}function cO(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||lO(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function m0(i,a,d){var h=i.tag;if(h===5||h===6)i=i.stateNode,a?d.nodeType===8?d.parentNode.insertBefore(i,a):d.insertBefore(i,a):(d.nodeType===8?(a=d.parentNode,a.insertBefore(i,d)):(a=d,a.appendChild(i)),d=d._reactRootContainer,d!=null||a.onclick!==null||(a.onclick=vp));else if(h!==4&&(i=i.child,i!==null))for(m0(i,a,d),i=i.sibling;i!==null;)m0(i,a,d),i=i.sibling}function g0(i,a,d){var h=i.tag;if(h===5||h===6)i=i.stateNode,a?d.insertBefore(i,a):d.appendChild(i);else if(h!==4&&(i=i.child,i!==null))for(g0(i,a,d),i=i.sibling;i!==null;)g0(i,a,d),i=i.sibling}var Kn=null,_o=!1;function ds(i,a,d){for(d=d.child;d!==null;)uO(i,a,d),d=d.sibling}function uO(i,a,d){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(vt,d)}catch{}switch(d.tag){case 5:Zn||Tl(d,a);case 6:var h=Kn,v=_o;Kn=null,ds(i,a,d),Kn=h,_o=v,Kn!==null&&(_o?(i=Kn,d=d.stateNode,i.nodeType===8?i.parentNode.removeChild(d):i.removeChild(d)):Kn.removeChild(d.stateNode));break;case 18:Kn!==null&&(_o?(i=Kn,d=d.stateNode,i.nodeType===8?Ov(i.parentNode,d):i.nodeType===1&&Ov(i,d),fu(i)):Ov(Kn,d.stateNode));break;case 4:h=Kn,v=_o,Kn=d.stateNode.containerInfo,_o=!0,ds(i,a,d),Kn=h,_o=v;break;case 0:case 11:case 14:case 15:if(!Zn&&(h=d.updateQueue,h!==null&&(h=h.lastEffect,h!==null))){v=h=h.next;do{var C=v,j=C.destroy;C=C.tag,j!==void 0&&(C&2||C&4)&&p0(d,a,j),v=v.next}while(v!==h)}ds(i,a,d);break;case 1:if(!Zn&&(Tl(d,a),h=d.stateNode,typeof h.componentWillUnmount=="function"))try{h.props=d.memoizedProps,h.state=d.memoizedState,h.componentWillUnmount()}catch(I){xn(d,a,I)}ds(i,a,d);break;case 21:ds(i,a,d);break;case 22:d.mode&1?(Zn=(h=Zn)||d.memoizedState!==null,ds(i,a,d),Zn=h):ds(i,a,d);break;default:ds(i,a,d)}}function dO(i){var a=i.updateQueue;if(a!==null){i.updateQueue=null;var d=i.stateNode;d===null&&(d=i.stateNode=new ste),a.forEach(function(h){var v=gte.bind(null,i,h);d.has(h)||(d.add(h),h.then(v,v))})}}function Io(i,a){var d=a.deletions;if(d!==null)for(var h=0;h<d.length;h++){var v=d[h];try{var C=i,j=a,I=j;e:for(;I!==null;){switch(I.tag){case 5:Kn=I.stateNode,_o=!1;break e;case 3:Kn=I.stateNode.containerInfo,_o=!0;break e;case 4:Kn=I.stateNode.containerInfo,_o=!0;break e}I=I.return}if(Kn===null)throw Error(n(160));uO(C,j,v),Kn=null,_o=!1;var U=v.alternate;U!==null&&(U.return=null),v.return=null}catch(ue){xn(v,a,ue)}}if(a.subtreeFlags&12854)for(a=a.child;a!==null;)fO(a,i),a=a.sibling}function fO(i,a){var d=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(Io(a,i),ni(i),h&4){try{Iu(3,i,i.return),zp(3,i)}catch(tt){xn(i,i.return,tt)}try{Iu(5,i,i.return)}catch(tt){xn(i,i.return,tt)}}break;case 1:Io(a,i),ni(i),h&512&&d!==null&&Tl(d,d.return);break;case 5:if(Io(a,i),ni(i),h&512&&d!==null&&Tl(d,d.return),i.flags&32){var v=i.stateNode;try{xt(v,"")}catch(tt){xn(i,i.return,tt)}}if(h&4&&(v=i.stateNode,v!=null)){var C=i.memoizedProps,j=d!==null?d.memoizedProps:C,I=i.type,U=i.updateQueue;if(i.updateQueue=null,U!==null)try{I==="input"&&C.type==="radio"&&C.name!=null&&ze(v,C),ft(I,j);var ue=ft(I,C);for(j=0;j<U.length;j+=2){var Ce=U[j],Te=U[j+1];Ce==="style"?ut(v,Te):Ce==="dangerouslySetInnerHTML"?Pe(v,Te):Ce==="children"?xt(v,Te):O(v,Ce,Te,ue)}switch(I){case"input":Ot(v,C);break;case"textarea":pt(v,C);break;case"select":var Se=v._wrapperState.wasMultiple;v._wrapperState.wasMultiple=!!C.multiple;var Ge=C.value;Ge!=null?dt(v,!!C.multiple,Ge,!1):Se!==!!C.multiple&&(C.defaultValue!=null?dt(v,!!C.multiple,C.defaultValue,!0):dt(v,!!C.multiple,C.multiple?[]:"",!1))}v[Cu]=C}catch(tt){xn(i,i.return,tt)}}break;case 6:if(Io(a,i),ni(i),h&4){if(i.stateNode===null)throw Error(n(162));v=i.stateNode,C=i.memoizedProps;try{v.nodeValue=C}catch(tt){xn(i,i.return,tt)}}break;case 3:if(Io(a,i),ni(i),h&4&&d!==null&&d.memoizedState.isDehydrated)try{fu(a.containerInfo)}catch(tt){xn(i,i.return,tt)}break;case 4:Io(a,i),ni(i);break;case 13:Io(a,i),ni(i),v=i.child,v.flags&8192&&(C=v.memoizedState!==null,v.stateNode.isHidden=C,!C||v.alternate!==null&&v.alternate.memoizedState!==null||(b0=Jt())),h&4&&dO(i);break;case 22:if(Ce=d!==null&&d.memoizedState!==null,i.mode&1?(Zn=(ue=Zn)||Ce,Io(a,i),Zn=ue):Io(a,i),ni(i),h&8192){if(ue=i.memoizedState!==null,(i.stateNode.isHidden=ue)&&!Ce&&i.mode&1)for(Ye=i,Ce=i.child;Ce!==null;){for(Te=Ye=Ce;Ye!==null;){switch(Se=Ye,Ge=Se.child,Se.tag){case 0:case 11:case 14:case 15:Iu(4,Se,Se.return);break;case 1:Tl(Se,Se.return);var Xe=Se.stateNode;if(typeof Xe.componentWillUnmount=="function"){h=Se,d=Se.return;try{a=h,Xe.props=a.memoizedProps,Xe.state=a.memoizedState,Xe.componentWillUnmount()}catch(tt){xn(h,d,tt)}}break;case 5:Tl(Se,Se.return);break;case 22:if(Se.memoizedState!==null){mO(Te);continue}}Ge!==null?(Ge.return=Se,Ye=Ge):mO(Te)}Ce=Ce.sibling}e:for(Ce=null,Te=i;;){if(Te.tag===5){if(Ce===null){Ce=Te;try{v=Te.stateNode,ue?(C=v.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none"):(I=Te.stateNode,U=Te.memoizedProps.style,j=U!=null&&U.hasOwnProperty("display")?U.display:null,I.style.display=Ue("display",j))}catch(tt){xn(i,i.return,tt)}}}else if(Te.tag===6){if(Ce===null)try{Te.stateNode.nodeValue=ue?"":Te.memoizedProps}catch(tt){xn(i,i.return,tt)}}else if((Te.tag!==22&&Te.tag!==23||Te.memoizedState===null||Te===i)&&Te.child!==null){Te.child.return=Te,Te=Te.child;continue}if(Te===i)break e;for(;Te.sibling===null;){if(Te.return===null||Te.return===i)break e;Ce===Te&&(Ce=null),Te=Te.return}Ce===Te&&(Ce=null),Te.sibling.return=Te.return,Te=Te.sibling}}break;case 19:Io(a,i),ni(i),h&4&&dO(i);break;case 21:break;default:Io(a,i),ni(i)}}function ni(i){var a=i.flags;if(a&2){try{e:{for(var d=i.return;d!==null;){if(lO(d)){var h=d;break e}d=d.return}throw Error(n(160))}switch(h.tag){case 5:var v=h.stateNode;h.flags&32&&(xt(v,""),h.flags&=-33);var C=cO(i);g0(i,C,v);break;case 3:case 4:var j=h.stateNode.containerInfo,I=cO(i);m0(i,I,j);break;default:throw Error(n(161))}}catch(U){xn(i,i.return,U)}i.flags&=-3}a&4096&&(i.flags&=-4097)}function lte(i,a,d){Ye=i,pO(i)}function pO(i,a,d){for(var h=(i.mode&1)!==0;Ye!==null;){var v=Ye,C=v.child;if(v.tag===22&&h){var j=v.memoizedState!==null||Bp;if(!j){var I=v.alternate,U=I!==null&&I.memoizedState!==null||Zn;I=Bp;var ue=Zn;if(Bp=j,(Zn=U)&&!ue)for(Ye=v;Ye!==null;)j=Ye,U=j.child,j.tag===22&&j.memoizedState!==null?gO(v):U!==null?(U.return=j,Ye=U):gO(v);for(;C!==null;)Ye=C,pO(C),C=C.sibling;Ye=v,Bp=I,Zn=ue}hO(i)}else v.subtreeFlags&8772&&C!==null?(C.return=v,Ye=C):hO(i)}}function hO(i){for(;Ye!==null;){var a=Ye;if(a.flags&8772){var d=a.alternate;try{if(a.flags&8772)switch(a.tag){case 0:case 11:case 15:Zn||zp(5,a);break;case 1:var h=a.stateNode;if(a.flags&4&&!Zn)if(d===null)h.componentDidMount();else{var v=a.elementType===a.type?d.memoizedProps:jo(a.type,d.memoizedProps);h.componentDidUpdate(v,d.memoizedState,h.__reactInternalSnapshotBeforeUpdate)}var C=a.updateQueue;C!==null&&mT(a,C,h);break;case 3:var j=a.updateQueue;if(j!==null){if(d=null,a.child!==null)switch(a.child.tag){case 5:d=a.child.stateNode;break;case 1:d=a.child.stateNode}mT(a,j,d)}break;case 5:var I=a.stateNode;if(d===null&&a.flags&4){d=I;var U=a.memoizedProps;switch(a.type){case"button":case"input":case"select":case"textarea":U.autoFocus&&d.focus();break;case"img":U.src&&(d.src=U.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(a.memoizedState===null){var ue=a.alternate;if(ue!==null){var Ce=ue.memoizedState;if(Ce!==null){var Te=Ce.dehydrated;Te!==null&&fu(Te)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Zn||a.flags&512&&h0(a)}catch(Se){xn(a,a.return,Se)}}if(a===i){Ye=null;break}if(d=a.sibling,d!==null){d.return=a.return,Ye=d;break}Ye=a.return}}function mO(i){for(;Ye!==null;){var a=Ye;if(a===i){Ye=null;break}var d=a.sibling;if(d!==null){d.return=a.return,Ye=d;break}Ye=a.return}}function gO(i){for(;Ye!==null;){var a=Ye;try{switch(a.tag){case 0:case 11:case 15:var d=a.return;try{zp(4,a)}catch(U){xn(a,d,U)}break;case 1:var h=a.stateNode;if(typeof h.componentDidMount=="function"){var v=a.return;try{h.componentDidMount()}catch(U){xn(a,v,U)}}var C=a.return;try{h0(a)}catch(U){xn(a,C,U)}break;case 5:var j=a.return;try{h0(a)}catch(U){xn(a,j,U)}}}catch(U){xn(a,a.return,U)}if(a===i){Ye=null;break}var I=a.sibling;if(I!==null){I.return=a.return,Ye=I;break}Ye=a.return}}var cte=Math.ceil,Up=A.ReactCurrentDispatcher,y0=A.ReactCurrentOwner,go=A.ReactCurrentBatchConfig,Lt=0,Fn=null,$n=null,Gn=0,Qr=0,Ol=ss(0),_n=0,Mu=null,oa=0,Wp=0,v0=0,Nu=null,Tr=null,b0=0,$l=1/0,Oi=null,Hp=!1,x0=null,fs=null,Vp=!1,ps=null,Kp=0,Lu=0,w0=null,Gp=-1,qp=0;function dr(){return Lt&6?Jt():Gp!==-1?Gp:Gp=Jt()}function hs(i){return i.mode&1?Lt&2&&Gn!==0?Gn&-Gn:Kee.transition!==null?(qp===0&&(qp=cP()),qp):(i=Xt,i!==0||(i=window.event,i=i===void 0?16:vP(i.type)),i):1}function Mo(i,a,d,h){if(50<Lu)throw Lu=0,w0=null,Error(n(185));au(i,d,h),(!(Lt&2)||i!==Fn)&&(i===Fn&&(!(Lt&2)&&(Wp|=d),_n===4&&ms(i,Gn)),Or(i,h),d===1&&Lt===0&&!(a.mode&1)&&($l=Jt()+500,Sp&&ls()))}function Or(i,a){var d=i.callbackNode;KZ(i,a);var h=rp(i,i===Fn?Gn:0);if(h===0)d!==null&&At(d),i.callbackNode=null,i.callbackPriority=0;else if(a=h&-h,i.callbackPriority!==a){if(d!=null&&At(d),a===1)i.tag===0?Vee(vO.bind(null,i)):rT(vO.bind(null,i)),zee(function(){!(Lt&6)&&ls()}),d=null;else{switch(uP(h)){case 1:d=Jo;break;case 4:d=Vr;break;case 16:d=wi;break;case 536870912:d=Ys;break;default:d=wi}d=kO(d,yO.bind(null,i))}i.callbackPriority=a,i.callbackNode=d}}function yO(i,a){if(Gp=-1,qp=0,Lt&6)throw Error(n(327));var d=i.callbackNode;if(Al()&&i.callbackNode!==d)return null;var h=rp(i,i===Fn?Gn:0);if(h===0)return null;if(h&30||h&i.expiredLanes||a)a=Qp(i,h);else{a=h;var v=Lt;Lt|=2;var C=xO();(Fn!==i||Gn!==a)&&(Oi=null,$l=Jt()+500,sa(i,a));do try{fte();break}catch(I){bO(i,I)}while(!0);Fv(),Up.current=C,Lt=v,$n!==null?a=0:(Fn=null,Gn=0,a=_n)}if(a!==0){if(a===2&&(v=tv(i),v!==0&&(h=v,a=S0(i,v))),a===1)throw d=Mu,sa(i,0),ms(i,h),Or(i,Jt()),d;if(a===6)ms(i,h);else{if(v=i.current.alternate,!(h&30)&&!ute(v)&&(a=Qp(i,h),a===2&&(C=tv(i),C!==0&&(h=C,a=S0(i,C))),a===1))throw d=Mu,sa(i,0),ms(i,h),Or(i,Jt()),d;switch(i.finishedWork=v,i.finishedLanes=h,a){case 0:case 1:throw Error(n(345));case 2:aa(i,Tr,Oi);break;case 3:if(ms(i,h),(h&130023424)===h&&(a=b0+500-Jt(),10<a)){if(rp(i,0)!==0)break;if(v=i.suspendedLanes,(v&h)!==h){dr(),i.pingedLanes|=i.suspendedLanes&v;break}i.timeoutHandle=Tv(aa.bind(null,i,Tr,Oi),a);break}aa(i,Tr,Oi);break;case 4:if(ms(i,h),(h&4194240)===h)break;for(a=i.eventTimes,v=-1;0<h;){var j=31-jt(h);C=1<<j,j=a[j],j>v&&(v=j),h&=~C}if(h=v,h=Jt()-h,h=(120>h?120:480>h?480:1080>h?1080:1920>h?1920:3e3>h?3e3:4320>h?4320:1960*cte(h/1960))-h,10<h){i.timeoutHandle=Tv(aa.bind(null,i,Tr,Oi),h);break}aa(i,Tr,Oi);break;case 5:aa(i,Tr,Oi);break;default:throw Error(n(329))}}}return Or(i,Jt()),i.callbackNode===d?yO.bind(null,i):null}function S0(i,a){var d=Nu;return i.current.memoizedState.isDehydrated&&(sa(i,a).flags|=256),i=Qp(i,a),i!==2&&(a=Tr,Tr=d,a!==null&&C0(a)),i}function C0(i){Tr===null?Tr=i:Tr.push.apply(Tr,i)}function ute(i){for(var a=i;;){if(a.flags&16384){var d=a.updateQueue;if(d!==null&&(d=d.stores,d!==null))for(var h=0;h<d.length;h++){var v=d[h],C=v.getSnapshot;v=v.value;try{if(!$o(C(),v))return!1}catch{return!1}}}if(d=a.child,a.subtreeFlags&16384&&d!==null)d.return=a,a=d;else{if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ms(i,a){for(a&=~v0,a&=~Wp,i.suspendedLanes|=a,i.pingedLanes&=~a,i=i.expirationTimes;0<a;){var d=31-jt(a),h=1<<d;i[d]=-1,a&=~h}}function vO(i){if(Lt&6)throw Error(n(327));Al();var a=rp(i,0);if(!(a&1))return Or(i,Jt()),null;var d=Qp(i,a);if(i.tag!==0&&d===2){var h=tv(i);h!==0&&(a=h,d=S0(i,h))}if(d===1)throw d=Mu,sa(i,0),ms(i,a),Or(i,Jt()),d;if(d===6)throw Error(n(345));return i.finishedWork=i.current.alternate,i.finishedLanes=a,aa(i,Tr,Oi),Or(i,Jt()),null}function E0(i,a){var d=Lt;Lt|=1;try{return i(a)}finally{Lt=d,Lt===0&&($l=Jt()+500,Sp&&ls())}}function ia(i){ps!==null&&ps.tag===0&&!(Lt&6)&&Al();var a=Lt;Lt|=1;var d=go.transition,h=Xt;try{if(go.transition=null,Xt=1,i)return i()}finally{Xt=h,go.transition=d,Lt=a,!(Lt&6)&&ls()}}function R0(){Qr=Ol.current,un(Ol)}function sa(i,a){i.finishedWork=null,i.finishedLanes=0;var d=i.timeoutHandle;if(d!==-1&&(i.timeoutHandle=-1,Bee(d)),$n!==null)for(d=$n.return;d!==null;){var h=d;switch(Iv(h),h.tag){case 1:h=h.type.childContextTypes,h!=null&&xp();break;case 3:kl(),un(Rr),un(Yn),Gv();break;case 5:Vv(h);break;case 4:kl();break;case 13:un(mn);break;case 19:un(mn);break;case 10:Bv(h.type._context);break;case 22:case 23:R0()}d=d.return}if(Fn=i,$n=i=gs(i.current,null),Gn=Qr=a,_n=0,Mu=null,v0=Wp=oa=0,Tr=Nu=null,ta!==null){for(a=0;a<ta.length;a++)if(d=ta[a],h=d.interleaved,h!==null){d.interleaved=null;var v=h.next,C=d.pending;if(C!==null){var j=C.next;C.next=v,h.next=j}d.pending=h}ta=null}return i}function bO(i,a){do{var d=$n;try{if(Fv(),jp.current=Np,_p){for(var h=gn.memoizedState;h!==null;){var v=h.queue;v!==null&&(v.pending=null),h=h.next}_p=!1}if(ra=0,Dn=jn=gn=null,Ou=!1,$u=0,y0.current=null,d===null||d.return===null){_n=1,Mu=a,$n=null;break}e:{var C=i,j=d.return,I=d,U=a;if(a=Gn,I.flags|=32768,U!==null&&typeof U=="object"&&typeof U.then=="function"){var ue=U,Ce=I,Te=Ce.tag;if(!(Ce.mode&1)&&(Te===0||Te===11||Te===15)){var Se=Ce.alternate;Se?(Ce.updateQueue=Se.updateQueue,Ce.memoizedState=Se.memoizedState,Ce.lanes=Se.lanes):(Ce.updateQueue=null,Ce.memoizedState=null)}var Ge=HT(j);if(Ge!==null){Ge.flags&=-257,VT(Ge,j,I,C,a),Ge.mode&1&&WT(C,ue,a),a=Ge,U=ue;var Xe=a.updateQueue;if(Xe===null){var tt=new Set;tt.add(U),a.updateQueue=tt}else Xe.add(U);break e}else{if(!(a&1)){WT(C,ue,a),k0();break e}U=Error(n(426))}}else if(pn&&I.mode&1){var Rn=HT(j);if(Rn!==null){!(Rn.flags&65536)&&(Rn.flags|=256),VT(Rn,j,I,C,a),Lv(Pl(U,I));break e}}C=U=Pl(U,I),_n!==4&&(_n=2),Nu===null?Nu=[C]:Nu.push(C),C=j;do{switch(C.tag){case 3:C.flags|=65536,a&=-a,C.lanes|=a;var ee=zT(C,U,a);hT(C,ee);break e;case 1:I=U;var K=C.type,le=C.stateNode;if(!(C.flags&128)&&(typeof K.getDerivedStateFromError=="function"||le!==null&&typeof le.componentDidCatch=="function"&&(fs===null||!fs.has(le)))){C.flags|=65536,a&=-a,C.lanes|=a;var Ae=UT(C,I,a);hT(C,Ae);break e}}C=C.return}while(C!==null)}SO(d)}catch(rt){a=rt,$n===d&&d!==null&&($n=d=d.return);continue}break}while(!0)}function xO(){var i=Up.current;return Up.current=Np,i===null?Np:i}function k0(){(_n===0||_n===3||_n===2)&&(_n=4),Fn===null||!(oa&268435455)&&!(Wp&268435455)||ms(Fn,Gn)}function Qp(i,a){var d=Lt;Lt|=2;var h=xO();(Fn!==i||Gn!==a)&&(Oi=null,sa(i,a));do try{dte();break}catch(v){bO(i,v)}while(!0);if(Fv(),Lt=d,Up.current=h,$n!==null)throw Error(n(261));return Fn=null,Gn=0,_n}function dte(){for(;$n!==null;)wO($n)}function fte(){for(;$n!==null&&!uo();)wO($n)}function wO(i){var a=RO(i.alternate,i,Qr);i.memoizedProps=i.pendingProps,a===null?SO(i):$n=a,y0.current=null}function SO(i){var a=i;do{var d=a.alternate;if(i=a.return,a.flags&32768){if(d=ite(d,a),d!==null){d.flags&=32767,$n=d;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{_n=6,$n=null;return}}else if(d=ote(d,a,Qr),d!==null){$n=d;return}if(a=a.sibling,a!==null){$n=a;return}$n=a=i}while(a!==null);_n===0&&(_n=5)}function aa(i,a,d){var h=Xt,v=go.transition;try{go.transition=null,Xt=1,pte(i,a,d,h)}finally{go.transition=v,Xt=h}return null}function pte(i,a,d,h){do Al();while(ps!==null);if(Lt&6)throw Error(n(327));d=i.finishedWork;var v=i.finishedLanes;if(d===null)return null;if(i.finishedWork=null,i.finishedLanes=0,d===i.current)throw Error(n(177));i.callbackNode=null,i.callbackPriority=0;var C=d.lanes|d.childLanes;if(GZ(i,C),i===Fn&&($n=Fn=null,Gn=0),!(d.subtreeFlags&2064)&&!(d.flags&2064)||Vp||(Vp=!0,kO(wi,function(){return Al(),null})),C=(d.flags&15990)!==0,d.subtreeFlags&15990||C){C=go.transition,go.transition=null;var j=Xt;Xt=1;var I=Lt;Lt|=4,y0.current=null,ate(i,d),fO(d,i),_ee(kv),sp=!!Rv,kv=Rv=null,i.current=d,lte(d),Xo(),Lt=I,Xt=j,go.transition=C}else i.current=d;if(Vp&&(Vp=!1,ps=i,Kp=v),C=i.pendingLanes,C===0&&(fs=null),cr(d.stateNode),Or(i,Jt()),a!==null)for(h=i.onRecoverableError,d=0;d<a.length;d++)v=a[d],h(v.value,{componentStack:v.stack,digest:v.digest});if(Hp)throw Hp=!1,i=x0,x0=null,i;return Kp&1&&i.tag!==0&&Al(),C=i.pendingLanes,C&1?i===w0?Lu++:(Lu=0,w0=i):Lu=0,ls(),null}function Al(){if(ps!==null){var i=uP(Kp),a=go.transition,d=Xt;try{if(go.transition=null,Xt=16>i?16:i,ps===null)var h=!1;else{if(i=ps,ps=null,Kp=0,Lt&6)throw Error(n(331));var v=Lt;for(Lt|=4,Ye=i.current;Ye!==null;){var C=Ye,j=C.child;if(Ye.flags&16){var I=C.deletions;if(I!==null){for(var U=0;U<I.length;U++){var ue=I[U];for(Ye=ue;Ye!==null;){var Ce=Ye;switch(Ce.tag){case 0:case 11:case 15:Iu(8,Ce,C)}var Te=Ce.child;if(Te!==null)Te.return=Ce,Ye=Te;else for(;Ye!==null;){Ce=Ye;var Se=Ce.sibling,Ge=Ce.return;if(aO(Ce),Ce===ue){Ye=null;break}if(Se!==null){Se.return=Ge,Ye=Se;break}Ye=Ge}}}var Xe=C.alternate;if(Xe!==null){var tt=Xe.child;if(tt!==null){Xe.child=null;do{var Rn=tt.sibling;tt.sibling=null,tt=Rn}while(tt!==null)}}Ye=C}}if(C.subtreeFlags&2064&&j!==null)j.return=C,Ye=j;else e:for(;Ye!==null;){if(C=Ye,C.flags&2048)switch(C.tag){case 0:case 11:case 15:Iu(9,C,C.return)}var ee=C.sibling;if(ee!==null){ee.return=C.return,Ye=ee;break e}Ye=C.return}}var K=i.current;for(Ye=K;Ye!==null;){j=Ye;var le=j.child;if(j.subtreeFlags&2064&&le!==null)le.return=j,Ye=le;else e:for(j=K;Ye!==null;){if(I=Ye,I.flags&2048)try{switch(I.tag){case 0:case 11:case 15:zp(9,I)}}catch(rt){xn(I,I.return,rt)}if(I===j){Ye=null;break e}var Ae=I.sibling;if(Ae!==null){Ae.return=I.return,Ye=Ae;break e}Ye=I.return}}if(Lt=v,ls(),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(vt,i)}catch{}h=!0}return h}finally{Xt=d,go.transition=a}}return!1}function CO(i,a,d){a=Pl(d,a),a=zT(i,a,1),i=us(i,a,1),a=dr(),i!==null&&(au(i,1,a),Or(i,a))}function xn(i,a,d){if(i.tag===3)CO(i,i,d);else for(;a!==null;){if(a.tag===3){CO(a,i,d);break}else if(a.tag===1){var h=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(fs===null||!fs.has(h))){i=Pl(d,i),i=UT(a,i,1),a=us(a,i,1),i=dr(),a!==null&&(au(a,1,i),Or(a,i));break}}a=a.return}}function hte(i,a,d){var h=i.pingCache;h!==null&&h.delete(a),a=dr(),i.pingedLanes|=i.suspendedLanes&d,Fn===i&&(Gn&d)===d&&(_n===4||_n===3&&(Gn&130023424)===Gn&&500>Jt()-b0?sa(i,0):v0|=d),Or(i,a)}function EO(i,a){a===0&&(i.mode&1?(a=np,np<<=1,!(np&130023424)&&(np=4194304)):a=1);var d=dr();i=ki(i,a),i!==null&&(au(i,a,d),Or(i,d))}function mte(i){var a=i.memoizedState,d=0;a!==null&&(d=a.retryLane),EO(i,d)}function gte(i,a){var d=0;switch(i.tag){case 13:var h=i.stateNode,v=i.memoizedState;v!==null&&(d=v.retryLane);break;case 19:h=i.stateNode;break;default:throw Error(n(314))}h!==null&&h.delete(a),EO(i,d)}var RO;RO=function(i,a,d){if(i!==null)if(i.memoizedProps!==a.pendingProps||Rr.current)Pr=!0;else{if(!(i.lanes&d)&&!(a.flags&128))return Pr=!1,rte(i,a,d);Pr=!!(i.flags&131072)}else Pr=!1,pn&&a.flags&1048576&&oT(a,Ep,a.index);switch(a.lanes=0,a.tag){case 2:var h=a.type;Fp(i,a),i=a.pendingProps;var v=bl(a,Yn.current);Rl(a,d),v=Yv(null,a,h,i,v,d);var C=Xv();return a.flags|=1,typeof v=="object"&&v!==null&&typeof v.render=="function"&&v.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,kr(h)?(C=!0,wp(a)):C=!1,a.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,Wv(a),v.updater=Lp,a.stateNode=v,v._reactInternals=a,r0(a,h,i,d),a=a0(null,a,h,!0,C,d)):(a.tag=0,pn&&C&&_v(a),ur(null,a,v,d),a=a.child),a;case 16:h=a.elementType;e:{switch(Fp(i,a),i=a.pendingProps,v=h._init,h=v(h._payload),a.type=h,v=a.tag=vte(h),i=jo(h,i),v){case 0:a=s0(null,a,h,i,d);break e;case 1:a=XT(null,a,h,i,d);break e;case 11:a=KT(null,a,h,i,d);break e;case 14:a=GT(null,a,h,jo(h.type,i),d);break e}throw Error(n(306,h,""))}return a;case 0:return h=a.type,v=a.pendingProps,v=a.elementType===h?v:jo(h,v),s0(i,a,h,v,d);case 1:return h=a.type,v=a.pendingProps,v=a.elementType===h?v:jo(h,v),XT(i,a,h,v,d);case 3:e:{if(JT(a),i===null)throw Error(n(387));h=a.pendingProps,C=a.memoizedState,v=C.element,pT(i,a),$p(a,h,null,d);var j=a.memoizedState;if(h=j.element,C.isDehydrated)if(C={element:h,isDehydrated:!1,cache:j.cache,pendingSuspenseBoundaries:j.pendingSuspenseBoundaries,transitions:j.transitions},a.updateQueue.baseState=C,a.memoizedState=C,a.flags&256){v=Pl(Error(n(423)),a),a=ZT(i,a,h,d,v);break e}else if(h!==v){v=Pl(Error(n(424)),a),a=ZT(i,a,h,d,v);break e}else for(qr=is(a.stateNode.containerInfo.firstChild),Gr=a,pn=!0,Ao=null,d=dT(a,null,h,d),a.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling;else{if(Sl(),h===v){a=Ti(i,a,d);break e}ur(i,a,h,d)}a=a.child}return a;case 5:return gT(a),i===null&&Nv(a),h=a.type,v=a.pendingProps,C=i!==null?i.memoizedProps:null,j=v.children,Pv(h,v)?j=null:C!==null&&Pv(h,C)&&(a.flags|=32),YT(i,a),ur(i,a,j,d),a.child;case 6:return i===null&&Nv(a),null;case 13:return eO(i,a,d);case 4:return Hv(a,a.stateNode.containerInfo),h=a.pendingProps,i===null?a.child=Cl(a,null,h,d):ur(i,a,h,d),a.child;case 11:return h=a.type,v=a.pendingProps,v=a.elementType===h?v:jo(h,v),KT(i,a,h,v,d);case 7:return ur(i,a,a.pendingProps,d),a.child;case 8:return ur(i,a,a.pendingProps.children,d),a.child;case 12:return ur(i,a,a.pendingProps.children,d),a.child;case 10:e:{if(h=a.type._context,v=a.pendingProps,C=a.memoizedProps,j=v.value,sn(Pp,h._currentValue),h._currentValue=j,C!==null)if($o(C.value,j)){if(C.children===v.children&&!Rr.current){a=Ti(i,a,d);break e}}else for(C=a.child,C!==null&&(C.return=a);C!==null;){var I=C.dependencies;if(I!==null){j=C.child;for(var U=I.firstContext;U!==null;){if(U.context===h){if(C.tag===1){U=Pi(-1,d&-d),U.tag=2;var ue=C.updateQueue;if(ue!==null){ue=ue.shared;var Ce=ue.pending;Ce===null?U.next=U:(U.next=Ce.next,Ce.next=U),ue.pending=U}}C.lanes|=d,U=C.alternate,U!==null&&(U.lanes|=d),zv(C.return,d,a),I.lanes|=d;break}U=U.next}}else if(C.tag===10)j=C.type===a.type?null:C.child;else if(C.tag===18){if(j=C.return,j===null)throw Error(n(341));j.lanes|=d,I=j.alternate,I!==null&&(I.lanes|=d),zv(j,d,a),j=C.sibling}else j=C.child;if(j!==null)j.return=C;else for(j=C;j!==null;){if(j===a){j=null;break}if(C=j.sibling,C!==null){C.return=j.return,j=C;break}j=j.return}C=j}ur(i,a,v.children,d),a=a.child}return a;case 9:return v=a.type,h=a.pendingProps.children,Rl(a,d),v=ho(v),h=h(v),a.flags|=1,ur(i,a,h,d),a.child;case 14:return h=a.type,v=jo(h,a.pendingProps),v=jo(h.type,v),GT(i,a,h,v,d);case 15:return qT(i,a,a.type,a.pendingProps,d);case 17:return h=a.type,v=a.pendingProps,v=a.elementType===h?v:jo(h,v),Fp(i,a),a.tag=1,kr(h)?(i=!0,wp(a)):i=!1,Rl(a,d),FT(a,h,v),r0(a,h,v,d),a0(null,a,h,!0,i,d);case 19:return nO(i,a,d);case 22:return QT(i,a,d)}throw Error(n(156,a.tag))};function kO(i,a){return nt(i,a)}function yte(i,a,d,h){this.tag=i,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yo(i,a,d,h){return new yte(i,a,d,h)}function P0(i){return i=i.prototype,!(!i||!i.isReactComponent)}function vte(i){if(typeof i=="function")return P0(i)?1:0;if(i!=null){if(i=i.$$typeof,i===W)return 11;if(i===te)return 14}return 2}function gs(i,a){var d=i.alternate;return d===null?(d=yo(i.tag,a,i.key,i.mode),d.elementType=i.elementType,d.type=i.type,d.stateNode=i.stateNode,d.alternate=i,i.alternate=d):(d.pendingProps=a,d.type=i.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=i.flags&14680064,d.childLanes=i.childLanes,d.lanes=i.lanes,d.child=i.child,d.memoizedProps=i.memoizedProps,d.memoizedState=i.memoizedState,d.updateQueue=i.updateQueue,a=i.dependencies,d.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},d.sibling=i.sibling,d.index=i.index,d.ref=i.ref,d}function Yp(i,a,d,h,v,C){var j=2;if(h=i,typeof i=="function")P0(i)&&(j=1);else if(typeof i=="string")j=5;else e:switch(i){case _:return la(d.children,v,C,a);case M:j=8,v|=8;break;case F:return i=yo(12,d,a,v|2),i.elementType=F,i.lanes=C,i;case H:return i=yo(13,d,a,v),i.elementType=H,i.lanes=C,i;case z:return i=yo(19,d,a,v),i.elementType=z,i.lanes=C,i;case X:return Xp(d,v,C,a);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case B:j=10;break e;case G:j=9;break e;case W:j=11;break e;case te:j=14;break e;case Z:j=16,h=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return a=yo(j,d,a,v),a.elementType=i,a.type=h,a.lanes=C,a}function la(i,a,d,h){return i=yo(7,i,h,a),i.lanes=d,i}function Xp(i,a,d,h){return i=yo(22,i,h,a),i.elementType=X,i.lanes=d,i.stateNode={isHidden:!1},i}function T0(i,a,d){return i=yo(6,i,null,a),i.lanes=d,i}function O0(i,a,d){return a=yo(4,i.children!==null?i.children:[],i.key,a),a.lanes=d,a.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},a}function bte(i,a,d,h,v){this.tag=a,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=nv(0),this.expirationTimes=nv(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nv(0),this.identifierPrefix=h,this.onRecoverableError=v,this.mutableSourceEagerHydrationData=null}function $0(i,a,d,h,v,C,j,I,U){return i=new bte(i,a,d,I,U),a===1?(a=1,C===!0&&(a|=8)):a=0,C=yo(3,null,null,a),i.current=C,C.stateNode=i,C.memoizedState={element:h,isDehydrated:d,cache:null,transitions:null,pendingSuspenseBoundaries:null},Wv(C),i}function xte(i,a,d){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:h==null?null:""+h,children:i,containerInfo:a,implementation:d}}function PO(i){if(!i)return as;i=i._reactInternals;e:{if(Q(i)!==i||i.tag!==1)throw Error(n(170));var a=i;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if(kr(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(a!==null);throw Error(n(171))}if(i.tag===1){var d=i.type;if(kr(d))return tT(i,d,a)}return a}function TO(i,a,d,h,v,C,j,I,U){return i=$0(d,h,!0,i,v,C,j,I,U),i.context=PO(null),d=i.current,h=dr(),v=hs(d),C=Pi(h,v),C.callback=a??null,us(d,C,v),i.current.lanes=v,au(i,v,h),Or(i,h),i}function Jp(i,a,d,h){var v=a.current,C=dr(),j=hs(v);return d=PO(d),a.context===null?a.context=d:a.pendingContext=d,a=Pi(C,j),a.payload={element:i},h=h===void 0?null:h,h!==null&&(a.callback=h),i=us(v,a,j),i!==null&&(Mo(i,v,j,C),Op(i,v,j)),j}function Zp(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function OO(i,a){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var d=i.retryLane;i.retryLane=d!==0&&d<a?d:a}}function A0(i,a){OO(i,a),(i=i.alternate)&&OO(i,a)}function wte(){return null}var $O=typeof reportError=="function"?reportError:function(i){console.error(i)};function j0(i){this._internalRoot=i}eh.prototype.render=j0.prototype.render=function(i){var a=this._internalRoot;if(a===null)throw Error(n(409));Jp(i,a,null,null)},eh.prototype.unmount=j0.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var a=i.containerInfo;ia(function(){Jp(null,i,null,null)}),a[Si]=null}};function eh(i){this._internalRoot=i}eh.prototype.unstable_scheduleHydration=function(i){if(i){var a=pP();i={blockedOn:null,target:i,priority:a};for(var d=0;d<ns.length&&a!==0&&a<ns[d].priority;d++);ns.splice(d,0,i),d===0&&gP(i)}};function _0(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function th(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function AO(){}function Ste(i,a,d,h,v){if(v){if(typeof h=="function"){var C=h;h=function(){var ue=Zp(j);C.call(ue)}}var j=TO(a,h,i,0,null,!1,!1,"",AO);return i._reactRootContainer=j,i[Si]=j.current,wu(i.nodeType===8?i.parentNode:i),ia(),j}for(;v=i.lastChild;)i.removeChild(v);if(typeof h=="function"){var I=h;h=function(){var ue=Zp(U);I.call(ue)}}var U=$0(i,0,!1,null,null,!1,!1,"",AO);return i._reactRootContainer=U,i[Si]=U.current,wu(i.nodeType===8?i.parentNode:i),ia(function(){Jp(a,U,d,h)}),U}function nh(i,a,d,h,v){var C=d._reactRootContainer;if(C){var j=C;if(typeof v=="function"){var I=v;v=function(){var U=Zp(j);I.call(U)}}Jp(a,j,i,v)}else j=Ste(d,a,i,v,h);return Zp(j)}dP=function(i){switch(i.tag){case 3:var a=i.stateNode;if(a.current.memoizedState.isDehydrated){var d=su(a.pendingLanes);d!==0&&(rv(a,d|1),Or(a,Jt()),!(Lt&6)&&($l=Jt()+500,ls()))}break;case 13:ia(function(){var h=ki(i,1);if(h!==null){var v=dr();Mo(h,i,1,v)}}),A0(i,1)}},ov=function(i){if(i.tag===13){var a=ki(i,134217728);if(a!==null){var d=dr();Mo(a,i,134217728,d)}A0(i,134217728)}},fP=function(i){if(i.tag===13){var a=hs(i),d=ki(i,a);if(d!==null){var h=dr();Mo(d,i,a,h)}A0(i,a)}},pP=function(){return Xt},hP=function(i,a){var d=Xt;try{return Xt=i,a()}finally{Xt=d}},It=function(i,a,d){switch(a){case"input":if(Ot(i,d),a=d.name,d.type==="radio"&&a!=null){for(d=i;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),a=0;a<d.length;a++){var h=d[a];if(h!==i&&h.form===i.form){var v=bp(h);if(!v)throw Error(n(90));Be(h),Ot(h,v)}}}break;case"textarea":pt(i,d);break;case"select":a=d.value,a!=null&&dt(i,!!d.multiple,a,!1)}},Po=E0,To=ia;var Cte={usingClientEntryPoint:!1,Events:[Eu,yl,bp,Qn,Hr,E0]},Du={findFiberByHostInstance:Xs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ete={bundleType:Du.bundleType,version:Du.version,rendererPackageName:Du.rendererPackageName,rendererConfig:Du.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:A.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=De(i),i===null?null:i.stateNode},findFiberByHostInstance:Du.findFiberByHostInstance||wte,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rh.isDisabled&&rh.supportsFiber)try{vt=rh.inject(Ete),Nt=rh}catch{}}return fr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Cte,fr.createPortal=function(i,a){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_0(a))throw Error(n(200));return xte(i,a,null,d)},fr.createRoot=function(i,a){if(!_0(i))throw Error(n(299));var d=!1,h="",v=$O;return a!=null&&(a.unstable_strictMode===!0&&(d=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onRecoverableError!==void 0&&(v=a.onRecoverableError)),a=$0(i,1,!1,null,null,d,!1,h,v),i[Si]=a.current,wu(i.nodeType===8?i.parentNode:i),new j0(a)},fr.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var a=i._reactInternals;if(a===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=De(a),i=i===null?null:i.stateNode,i},fr.flushSync=function(i){return ia(i)},fr.hydrate=function(i,a,d){if(!th(a))throw Error(n(200));return nh(null,i,a,!0,d)},fr.hydrateRoot=function(i,a,d){if(!_0(i))throw Error(n(405));var h=d!=null&&d.hydratedSources||null,v=!1,C="",j=$O;if(d!=null&&(d.unstable_strictMode===!0&&(v=!0),d.identifierPrefix!==void 0&&(C=d.identifierPrefix),d.onRecoverableError!==void 0&&(j=d.onRecoverableError)),a=TO(a,null,i,1,d??null,v,!1,C,j),i[Si]=a.current,wu(i),h)for(i=0;i<h.length;i++)d=h[i],v=d._getVersion,v=v(d._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[d,v]:a.mutableSourceEagerHydrationData.push(d,v);return new eh(a)},fr.render=function(i,a,d){if(!th(a))throw Error(n(200));return nh(null,i,a,!1,d)},fr.unmountComponentAtNode=function(i){if(!th(i))throw Error(n(40));return i._reactRootContainer?(ia(function(){nh(null,null,i,!1,function(){i._reactRootContainer=null,i[Si]=null})}),!0):!1},fr.unstable_batchedUpdates=E0,fr.unstable_renderSubtreeIntoContainer=function(i,a,d,h){if(!th(d))throw Error(n(200));if(i==null||i._reactInternals===void 0)throw Error(n(38));return nh(i,a,d,!1,h)},fr.version="18.3.1-next-f1338f8080-20240426",fr}function U0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(U0)}catch(e){console.error(e)}}U0(),D0.exports=FO();var Bu=D0.exports;const vs=No(Bu),BO=$i({__proto__:null,default:vs},[Bu]);var W0=Bu;oh.createRoot=W0.createRoot,oh.hydrateRoot=W0.hydrateRoot;var zO=Object.defineProperty,H0=e=>{throw TypeError(e)},UO=(e,t,n)=>t in e?zO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ar=(e,t,n)=>UO(e,typeof t!="symbol"?t+"":t,n),V0=(e,t,n)=>t.has(e)||H0("Cannot "+n),ne=(e,t,n)=>(V0(e,t,"read from private field"),n?n.call(e):t.get(e)),WO=(e,t,n)=>t.has(e)?H0("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),HO=(e,t,n,r)=>(V0(e,t,"write to private field"),t.set(e,n),n);function K0(e,t){return function(){return e.apply(t,arguments)}}const{toString:VO}=Object.prototype,{getPrototypeOf:ah}=Object,zu=(e=>t=>{const n=VO.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),vo=e=>(e=e.toLowerCase(),t=>zu(t)===e),Uu=e=>t=>typeof t===e,{isArray:ca}=Array,_l=Uu("undefined");function KO(e){return e!==null&&!_l(e)&&e.constructor!==null&&!_l(e.constructor)&&jr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const G0=vo("ArrayBuffer");function GO(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&G0(e.buffer),t}const qO=Uu("string"),jr=Uu("function"),q0=Uu("number"),Wu=e=>e!==null&&typeof e=="object",QO=e=>e===!0||e===!1,Hu=e=>{if(zu(e)!=="object")return!1;const t=ah(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},YO=vo("Date"),XO=vo("File"),JO=vo("Blob"),ZO=vo("FileList"),e2=e=>Wu(e)&&jr(e.pipe),t2=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||jr(e.append)&&((t=zu(e))==="formdata"||t==="object"&&jr(e.toString)&&e.toString()==="[object FormData]"))},n2=vo("URLSearchParams"),[r2,o2,i2,s2]=["ReadableStream","Request","Response","Headers"].map(vo),a2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Il(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),ca(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;let u;for(r=0;r<l;r++)u=s[r],t.call(null,e[u],u,e)}}function Q0(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const bs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Y0=e=>!_l(e)&&e!==bs;function lh(){const{caseless:e}=Y0(this)&&this||{},t={},n=(r,o)=>{const s=e&&Q0(t,o)||o;Hu(t[s])&&Hu(r)?t[s]=lh(t[s],r):Hu(r)?t[s]=lh({},r):ca(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Il(arguments[r],n);return t}const l2=(e,t,n,{allOwnKeys:r}={})=>(Il(t,(o,s)=>{n&&jr(o)?e[s]=K0(o,n):e[s]=o},{allOwnKeys:r}),e),c2=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),u2=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},d2=(e,t,n,r)=>{let o,s,l;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)l=o[s],(!r||r(l,e,t))&&!u[l]&&(t[l]=e[l],u[l]=!0);e=n!==!1&&ah(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},f2=(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},p2=e=>{if(!e)return null;if(ca(e))return e;let t=e.length;if(!q0(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},h2=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ah(Uint8Array)),m2=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},g2=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},y2=vo("HTMLFormElement"),v2=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,r){return n.toUpperCase()+r}),X0=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),b2=vo("RegExp"),J0=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Il(n,(o,s)=>{let l;(l=t(o,s,e))!==!1&&(r[s]=l||o)}),Object.defineProperties(e,r)},x2=e=>{J0(e,(t,n)=>{if(jr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(jr(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+"'")})}})},w2=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return ca(e)?r(e):r(String(e).split(t)),n},S2=()=>{},C2=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ch="abcdefghijklmnopqrstuvwxyz",Z0="0123456789",eb={DIGIT:Z0,ALPHA:ch,ALPHA_DIGIT:ch+ch.toUpperCase()+Z0},E2=(e=16,t=eb.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function R2(e){return!!(e&&jr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const k2=e=>{const t=new Array(10),n=(r,o)=>{if(Wu(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=ca(r)?[]:{};return Il(r,(l,u)=>{const c=n(l,o+1);!_l(c)&&(s[u]=c)}),t[o]=void 0,s}}return r};return n(e,0)},P2=vo("AsyncFunction"),T2=e=>e&&(Wu(e)||jr(e))&&jr(e.then)&&jr(e.catch),tb=((e,t)=>e?setImmediate:t?((n,r)=>(bs.addEventListener("message",({source:o,data:s})=>{o===bs&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),bs.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",jr(bs.postMessage)),O2=typeof queueMicrotask<"u"?queueMicrotask.bind(bs):typeof process<"u"&&process.nextTick||tb,fe={isArray:ca,isArrayBuffer:G0,isBuffer:KO,isFormData:t2,isArrayBufferView:GO,isString:qO,isNumber:q0,isBoolean:QO,isObject:Wu,isPlainObject:Hu,isReadableStream:r2,isRequest:o2,isResponse:i2,isHeaders:s2,isUndefined:_l,isDate:YO,isFile:XO,isBlob:JO,isRegExp:b2,isFunction:jr,isStream:e2,isURLSearchParams:n2,isTypedArray:h2,isFileList:ZO,forEach:Il,merge:lh,extend:l2,trim:a2,stripBOM:c2,inherits:u2,toFlatObject:d2,kindOf:zu,kindOfTest:vo,endsWith:f2,toArray:p2,forEachEntry:m2,matchAll:g2,isHTMLForm:y2,hasOwnProperty:X0,hasOwnProp:X0,reduceDescriptors:J0,freezeMethods:x2,toObjectSet:w2,toCamelCase:v2,noop:S2,toFiniteNumber:C2,findKey:Q0,global:bs,isContextDefined:Y0,ALPHABET:eb,generateString:E2,isSpecCompliantForm:R2,toJSONObject:k2,isAsyncFn:P2,isThenable:T2,setImmediate:tb,asap:O2};function wt(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}fe.inherits(wt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:fe.toJSONObject(this.config),code:this.code,status:this.status}}});const nb=wt.prototype,rb={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{rb[e]={value:e}}),Object.defineProperties(wt,rb),Object.defineProperty(nb,"isAxiosError",{value:!0}),wt.from=(e,t,n,r,o,s)=>{const l=Object.create(nb);return fe.toFlatObject(e,l,function(u){return u!==Error.prototype},u=>u!=="isAxiosError"),wt.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,s&&Object.assign(l,s),l};const $2=null;function uh(e){return fe.isPlainObject(e)||fe.isArray(e)}function ob(e){return fe.endsWith(e,"[]")?e.slice(0,-2):e}function ib(e,t,n){return e?e.concat(t).map(function(r,o){return r=ob(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function A2(e){return fe.isArray(e)&&!e.some(uh)}const j2=fe.toFlatObject(fe,{},null,function(e){return/^is[A-Z]/.test(e)});function Vu(e,t,n){if(!fe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=fe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,x){return!fe.isUndefined(x[S])});const r=n.metaTokens,o=n.visitor||f,s=n.dots,l=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&fe.isSpecCompliantForm(t);if(!fe.isFunction(o))throw new TypeError("visitor must be a function");function c(S){if(S===null)return"";if(fe.isDate(S))return S.toISOString();if(!u&&fe.isBlob(S))throw new wt("Blob is not supported. Use a Buffer instead.");return fe.isArrayBuffer(S)||fe.isTypedArray(S)?u&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function f(S,x,b){let w=S;if(S&&!b&&typeof S=="object"){if(fe.endsWith(x,"{}"))x=r?x:x.slice(0,-2),S=JSON.stringify(S);else if(fe.isArray(S)&&A2(S)||(fe.isFileList(S)||fe.endsWith(x,"[]"))&&(w=fe.toArray(S)))return x=ob(x),w.forEach(function(P,R){!(fe.isUndefined(P)||P===null)&&t.append(l===!0?ib([x],R,s):l===null?x:x+"[]",c(P))}),!1}return uh(S)?!0:(t.append(ib(b,x,s),c(S)),!1)}const p=[],m=Object.assign(j2,{defaultVisitor:f,convertValue:c,isVisitable:uh});function g(S,x){if(!fe.isUndefined(S)){if(p.indexOf(S)!==-1)throw Error("Circular reference detected in "+x.join("."));p.push(S),fe.forEach(S,function(b,w){(!(fe.isUndefined(b)||b===null)&&o.call(t,b,fe.isString(w)?w.trim():w,x,m))===!0&&g(b,x?x.concat(w):[w])}),p.pop()}}if(!fe.isObject(e))throw new TypeError("data must be an object");return g(e),t}function sb(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function dh(e,t){this._pairs=[],e&&Vu(e,this,t)}const ab=dh.prototype;ab.append=function(e,t){this._pairs.push([e,t])},ab.toString=function(e){const t=e?function(n){return e.call(this,n,sb)}:sb;return this._pairs.map(function(n){return t(n[0])+"="+t(n[1])},"").join("&")};function _2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function lb(e,t,n){if(!t)return e;const r=n&&n.encode||_2,o=n&&n.serialize;let s;if(o?s=o(t,n):s=fe.isURLSearchParams(t)?t.toString():new dh(t,n).toString(r),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class cb{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){fe.forEach(this.handlers,function(n){n!==null&&t(n)})}}const ub={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},I2=typeof URLSearchParams<"u"?URLSearchParams:dh,M2=typeof FormData<"u"?FormData:null,N2=typeof Blob<"u"?Blob:null,L2={isBrowser:!0,classes:{URLSearchParams:I2,FormData:M2,Blob:N2},protocols:["http","https","file","blob","url","data"]},fh=typeof window<"u"&&typeof document<"u",ph=typeof navigator=="object"&&navigator||void 0,D2=fh&&(!ph||["ReactNative","NativeScript","NS"].indexOf(ph.product)<0),F2=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",B2=fh&&window.location.href||"http://localhost",z2=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fh,hasStandardBrowserEnv:D2,hasStandardBrowserWebWorkerEnv:F2,navigator:ph,origin:B2},Symbol.toStringTag,{value:"Module"})),pr={...z2,...L2};function U2(e,t){return Vu(e,new pr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return pr.isNode&&fe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function W2(e){return fe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function H2(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function db(e){function t(n,r,o,s){let l=n[s++];if(l==="__proto__")return!0;const u=Number.isFinite(+l),c=s>=n.length;return l=!l&&fe.isArray(o)?o.length:l,c?(fe.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!u):((!o[l]||!fe.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],s)&&fe.isArray(o[l])&&(o[l]=H2(o[l])),!u)}if(fe.isFormData(e)&&fe.isFunction(e.entries)){const n={};return fe.forEachEntry(e,(r,o)=>{t(W2(r),o,n,0)}),n}return null}function V2(e,t,n){if(fe.isString(e))try{return(t||JSON.parse)(e),fe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const Ml={transitional:ub,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=fe.isObject(e);if(o&&fe.isHTMLForm(e)&&(e=new FormData(e)),fe.isFormData(e))return r?JSON.stringify(db(e)):e;if(fe.isArrayBuffer(e)||fe.isBuffer(e)||fe.isStream(e)||fe.isFile(e)||fe.isBlob(e)||fe.isReadableStream(e))return e;if(fe.isArrayBufferView(e))return e.buffer;if(fe.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return U2(e,this.formSerializer).toString();if((s=fe.isFileList(e))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Vu(s?{"files[]":e}:e,l&&new l,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),V2(e)):e}],transformResponse:[function(e){const t=this.transitional||Ml.transitional,n=t&&t.forcedJSONParsing,r=this.responseType==="json";if(fe.isResponse(e)||fe.isReadableStream(e))return e;if(e&&fe.isString(e)&&(n&&!this.responseType||r)){const o=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(s){if(o)throw s.name==="SyntaxError"?wt.from(s,wt.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pr.classes.FormData,Blob:pr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};fe.forEach(["delete","get","head","post","put","patch"],e=>{Ml.headers[e]={}});const K2=fe.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"]),G2=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
8
|
+
`+C.stack}return{value:i,source:a,stack:v,digest:null}}function o0(i,a,d){return{value:i,source:null,stack:d??null,digest:a??null}}function i0(i,a){try{console.error(a.value)}catch(d){setTimeout(function(){throw d})}}var ete=typeof WeakMap=="function"?WeakMap:Map;function zT(i,a,d){d=Pi(-1,d),d.tag=3,d.payload={element:null};var h=a.value;return d.callback=function(){Hp||(Hp=!0,x0=h),i0(i,a)},d}function UT(i,a,d){d=Pi(-1,d),d.tag=3;var h=i.type.getDerivedStateFromError;if(typeof h=="function"){var v=a.value;d.payload=function(){return h(v)},d.callback=function(){i0(i,a)}}var C=i.stateNode;return C!==null&&typeof C.componentDidCatch=="function"&&(d.callback=function(){i0(i,a),typeof h!="function"&&(fs===null?fs=new Set([this]):fs.add(this));var j=a.stack;this.componentDidCatch(a.value,{componentStack:j!==null?j:""})}),d}function WT(i,a,d){var h=i.pingCache;if(h===null){h=i.pingCache=new ete;var v=new Set;h.set(a,v)}else v=h.get(a),v===void 0&&(v=new Set,h.set(a,v));v.has(d)||(v.add(d),i=hte.bind(null,i,a,d),a.then(i,i))}function HT(i){do{var a;if((a=i.tag===13)&&(a=i.memoizedState,a=a!==null?a.dehydrated!==null:!0),a)return i;i=i.return}while(i!==null);return null}function VT(i,a,d,h,v){return i.mode&1?(i.flags|=65536,i.lanes=v,i):(i===a?i.flags|=65536:(i.flags|=128,d.flags|=131072,d.flags&=-52805,d.tag===1&&(d.alternate===null?d.tag=17:(a=Pi(-1,1),a.tag=2,us(d,a,1))),d.lanes|=1),i)}var tte=A.ReactCurrentOwner,Pr=!1;function ur(i,a,d,h){a.child=i===null?dT(a,null,d,h):Cl(a,i.child,d,h)}function KT(i,a,d,h,v){d=d.render;var C=a.ref;return Rl(a,v),h=Yv(i,a,d,h,C,v),d=Xv(),i!==null&&!Pr?(a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~v,Ti(i,a,v)):(pn&&d&&_v(a),a.flags|=1,ur(i,a,h,v),a.child)}function GT(i,a,d,h,v){if(i===null){var C=d.type;return typeof C=="function"&&!P0(C)&&C.defaultProps===void 0&&d.compare===null&&d.defaultProps===void 0?(a.tag=15,a.type=C,qT(i,a,C,h,v)):(i=Yp(d.type,null,h,a,a.mode,v),i.ref=a.ref,i.return=a,a.child=i)}if(C=i.child,!(i.lanes&v)){var j=C.memoizedProps;if(d=d.compare,d=d!==null?d:vu,d(j,h)&&i.ref===a.ref)return Ti(i,a,v)}return a.flags|=1,i=gs(C,h),i.ref=a.ref,i.return=a,a.child=i}function qT(i,a,d,h,v){if(i!==null){var C=i.memoizedProps;if(vu(C,h)&&i.ref===a.ref)if(Pr=!1,a.pendingProps=h=C,(i.lanes&v)!==0)i.flags&131072&&(Pr=!0);else return a.lanes=i.lanes,Ti(i,a,v)}return s0(i,a,d,h,v)}function QT(i,a,d){var h=a.pendingProps,v=h.children,C=i!==null?i.memoizedState:null;if(h.mode==="hidden")if(!(a.mode&1))a.memoizedState={baseLanes:0,cachePool:null,transitions:null},sn(Ol,Qr),Qr|=d;else{if(!(d&1073741824))return i=C!==null?C.baseLanes|d:d,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:i,cachePool:null,transitions:null},a.updateQueue=null,sn(Ol,Qr),Qr|=i,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},h=C!==null?C.baseLanes:d,sn(Ol,Qr),Qr|=h}else C!==null?(h=C.baseLanes|d,a.memoizedState=null):h=d,sn(Ol,Qr),Qr|=h;return ur(i,a,v,d),a.child}function YT(i,a){var d=a.ref;(i===null&&d!==null||i!==null&&i.ref!==d)&&(a.flags|=512,a.flags|=2097152)}function s0(i,a,d,h,v){var C=kr(d)?Js:Yn.current;return C=bl(a,C),Rl(a,v),d=Yv(i,a,d,h,C,v),h=Xv(),i!==null&&!Pr?(a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~v,Ti(i,a,v)):(pn&&h&&_v(a),a.flags|=1,ur(i,a,d,v),a.child)}function XT(i,a,d,h,v){if(kr(d)){var C=!0;wp(a)}else C=!1;if(Rl(a,v),a.stateNode===null)Fp(i,a),FT(a,d,h),r0(a,d,h,v),h=!0;else if(i===null){var j=a.stateNode,I=a.memoizedProps;j.props=I;var U=j.context,ue=d.contextType;typeof ue=="object"&&ue!==null?ue=mo(ue):(ue=kr(d)?Js:Yn.current,ue=bl(a,ue));var Ce=d.getDerivedStateFromProps,Te=typeof Ce=="function"||typeof j.getSnapshotBeforeUpdate=="function";Te||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(I!==h||U!==ue)&&BT(a,j,h,ue),cs=!1;var Se=a.memoizedState;j.state=Se,$p(a,h,j,v),U=a.memoizedState,I!==h||Se!==U||Rr.current||cs?(typeof Ce=="function"&&(n0(a,d,Ce,h),U=a.memoizedState),(I=cs||DT(a,d,I,h,Se,U,ue))?(Te||typeof j.UNSAFE_componentWillMount!="function"&&typeof j.componentWillMount!="function"||(typeof j.componentWillMount=="function"&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount=="function"&&j.UNSAFE_componentWillMount()),typeof j.componentDidMount=="function"&&(a.flags|=4194308)):(typeof j.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=h,a.memoizedState=U),j.props=h,j.state=U,j.context=ue,h=I):(typeof j.componentDidMount=="function"&&(a.flags|=4194308),h=!1)}else{j=a.stateNode,pT(i,a),I=a.memoizedProps,ue=a.type===a.elementType?I:jo(a.type,I),j.props=ue,Te=a.pendingProps,Se=j.context,U=d.contextType,typeof U=="object"&&U!==null?U=mo(U):(U=kr(d)?Js:Yn.current,U=bl(a,U));var Ge=d.getDerivedStateFromProps;(Ce=typeof Ge=="function"||typeof j.getSnapshotBeforeUpdate=="function")||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(I!==Te||Se!==U)&&BT(a,j,h,U),cs=!1,Se=a.memoizedState,j.state=Se,$p(a,h,j,v);var Xe=a.memoizedState;I!==Te||Se!==Xe||Rr.current||cs?(typeof Ge=="function"&&(n0(a,d,Ge,h),Xe=a.memoizedState),(ue=cs||DT(a,d,ue,h,Se,Xe,U)||!1)?(Ce||typeof j.UNSAFE_componentWillUpdate!="function"&&typeof j.componentWillUpdate!="function"||(typeof j.componentWillUpdate=="function"&&j.componentWillUpdate(h,Xe,U),typeof j.UNSAFE_componentWillUpdate=="function"&&j.UNSAFE_componentWillUpdate(h,Xe,U)),typeof j.componentDidUpdate=="function"&&(a.flags|=4),typeof j.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof j.componentDidUpdate!="function"||I===i.memoizedProps&&Se===i.memoizedState||(a.flags|=4),typeof j.getSnapshotBeforeUpdate!="function"||I===i.memoizedProps&&Se===i.memoizedState||(a.flags|=1024),a.memoizedProps=h,a.memoizedState=Xe),j.props=h,j.state=Xe,j.context=U,h=ue):(typeof j.componentDidUpdate!="function"||I===i.memoizedProps&&Se===i.memoizedState||(a.flags|=4),typeof j.getSnapshotBeforeUpdate!="function"||I===i.memoizedProps&&Se===i.memoizedState||(a.flags|=1024),h=!1)}return a0(i,a,d,h,C,v)}function a0(i,a,d,h,v,C){YT(i,a);var j=(a.flags&128)!==0;if(!h&&!j)return v&&nT(a,d,!1),Ti(i,a,C);h=a.stateNode,tte.current=a;var I=j&&typeof d.getDerivedStateFromError!="function"?null:h.render();return a.flags|=1,i!==null&&j?(a.child=Cl(a,i.child,null,C),a.child=Cl(a,null,I,C)):ur(i,a,I,C),a.memoizedState=h.state,v&&nT(a,d,!0),a.child}function JT(i){var a=i.stateNode;a.pendingContext?eT(i,a.pendingContext,a.pendingContext!==a.context):a.context&&eT(i,a.context,!1),Hv(i,a.containerInfo)}function ZT(i,a,d,h,v){return Sl(),Lv(v),a.flags|=256,ur(i,a,d,h),a.child}var l0={dehydrated:null,treeContext:null,retryLane:0};function c0(i){return{baseLanes:i,cachePool:null,transitions:null}}function eO(i,a,d){var h=a.pendingProps,v=mn.current,C=!1,j=(a.flags&128)!==0,I;if((I=j)||(I=i!==null&&i.memoizedState===null?!1:(v&2)!==0),I?(C=!0,a.flags&=-129):(i===null||i.memoizedState!==null)&&(v|=1),sn(mn,v&1),i===null)return Nv(a),i=a.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?(a.mode&1?i.data==="$!"?a.lanes=8:a.lanes=1073741824:a.lanes=1,null):(j=h.children,i=h.fallback,C?(h=a.mode,C=a.child,j={mode:"hidden",children:j},!(h&1)&&C!==null?(C.childLanes=0,C.pendingProps=j):C=Xp(j,h,0,null),i=la(i,h,d,null),C.return=a,i.return=a,C.sibling=i,a.child=C,a.child.memoizedState=c0(d),a.memoizedState=l0,i):u0(a,j));if(v=i.memoizedState,v!==null&&(I=v.dehydrated,I!==null))return nte(i,a,j,h,I,v,d);if(C){C=h.fallback,j=a.mode,v=i.child,I=v.sibling;var U={mode:"hidden",children:h.children};return!(j&1)&&a.child!==v?(h=a.child,h.childLanes=0,h.pendingProps=U,a.deletions=null):(h=gs(v,U),h.subtreeFlags=v.subtreeFlags&14680064),I!==null?C=gs(I,C):(C=la(C,j,d,null),C.flags|=2),C.return=a,h.return=a,h.sibling=C,a.child=h,h=C,C=a.child,j=i.child.memoizedState,j=j===null?c0(d):{baseLanes:j.baseLanes|d,cachePool:null,transitions:j.transitions},C.memoizedState=j,C.childLanes=i.childLanes&~d,a.memoizedState=l0,h}return C=i.child,i=C.sibling,h=gs(C,{mode:"visible",children:h.children}),!(a.mode&1)&&(h.lanes=d),h.return=a,h.sibling=null,i!==null&&(d=a.deletions,d===null?(a.deletions=[i],a.flags|=16):d.push(i)),a.child=h,a.memoizedState=null,h}function u0(i,a){return a=Xp({mode:"visible",children:a},i.mode,0,null),a.return=i,i.child=a}function Dp(i,a,d,h){return h!==null&&Lv(h),Cl(a,i.child,null,d),i=u0(a,a.pendingProps.children),i.flags|=2,a.memoizedState=null,i}function nte(i,a,d,h,v,C,j){if(d)return a.flags&256?(a.flags&=-257,h=o0(Error(n(422))),Dp(i,a,j,h)):a.memoizedState!==null?(a.child=i.child,a.flags|=128,null):(C=h.fallback,v=a.mode,h=Xp({mode:"visible",children:h.children},v,0,null),C=la(C,v,j,null),C.flags|=2,h.return=a,C.return=a,h.sibling=C,a.child=h,a.mode&1&&Cl(a,i.child,null,j),a.child.memoizedState=c0(j),a.memoizedState=l0,C);if(!(a.mode&1))return Dp(i,a,j,null);if(v.data==="$!"){if(h=v.nextSibling&&v.nextSibling.dataset,h)var I=h.dgst;return h=I,C=Error(n(419)),h=o0(C,h,void 0),Dp(i,a,j,h)}if(I=(j&i.childLanes)!==0,Pr||I){if(h=Fn,h!==null){switch(j&-j){case 4:v=2;break;case 16:v=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:v=32;break;case 536870912:v=268435456;break;default:v=0}v=v&(h.suspendedLanes|j)?0:v,v!==0&&v!==C.retryLane&&(C.retryLane=v,ki(i,v),Mo(h,i,v,-1))}return k0(),h=o0(Error(n(421))),Dp(i,a,j,h)}return v.data==="$?"?(a.flags|=128,a.child=i.child,a=mte.bind(null,i),v._reactRetry=a,null):(i=C.treeContext,qr=is(v.nextSibling),Gr=a,pn=!0,Ao=null,i!==null&&(po[ho++]=Ei,po[ho++]=Ri,po[ho++]=Zs,Ei=i.id,Ri=i.overflow,Zs=a),a=u0(a,h.children),a.flags|=4096,a)}function tO(i,a,d){i.lanes|=a;var h=i.alternate;h!==null&&(h.lanes|=a),zv(i.return,a,d)}function d0(i,a,d,h,v){var C=i.memoizedState;C===null?i.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:h,tail:d,tailMode:v}:(C.isBackwards=a,C.rendering=null,C.renderingStartTime=0,C.last=h,C.tail=d,C.tailMode=v)}function nO(i,a,d){var h=a.pendingProps,v=h.revealOrder,C=h.tail;if(ur(i,a,h.children,d),h=mn.current,h&2)h=h&1|2,a.flags|=128;else{if(i!==null&&i.flags&128)e:for(i=a.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&tO(i,d,a);else if(i.tag===19)tO(i,d,a);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}h&=1}if(sn(mn,h),!(a.mode&1))a.memoizedState=null;else switch(v){case"forwards":for(d=a.child,v=null;d!==null;)i=d.alternate,i!==null&&Ap(i)===null&&(v=d),d=d.sibling;d=v,d===null?(v=a.child,a.child=null):(v=d.sibling,d.sibling=null),d0(a,!1,v,d,C);break;case"backwards":for(d=null,v=a.child,a.child=null;v!==null;){if(i=v.alternate,i!==null&&Ap(i)===null){a.child=v;break}i=v.sibling,v.sibling=d,d=v,v=i}d0(a,!0,d,null,C);break;case"together":d0(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Fp(i,a){!(a.mode&1)&&i!==null&&(i.alternate=null,a.alternate=null,a.flags|=2)}function Ti(i,a,d){if(i!==null&&(a.dependencies=i.dependencies),oa|=a.lanes,!(d&a.childLanes))return null;if(i!==null&&a.child!==i.child)throw Error(n(153));if(a.child!==null){for(i=a.child,d=gs(i,i.pendingProps),a.child=d,d.return=a;i.sibling!==null;)i=i.sibling,d=d.sibling=gs(i,i.pendingProps),d.return=a;d.sibling=null}return a.child}function rte(i,a,d){switch(a.tag){case 3:JT(a),Sl();break;case 5:gT(a);break;case 1:kr(a.type)&&wp(a);break;case 4:Hv(a,a.stateNode.containerInfo);break;case 10:var h=a.type._context,v=a.memoizedProps.value;sn(Pp,h._currentValue),h._currentValue=v;break;case 13:if(h=a.memoizedState,h!==null)return h.dehydrated!==null?(sn(mn,mn.current&1),a.flags|=128,null):d&a.child.childLanes?eO(i,a,d):(sn(mn,mn.current&1),i=Ti(i,a,d),i!==null?i.sibling:null);sn(mn,mn.current&1);break;case 19:if(h=(d&a.childLanes)!==0,i.flags&128){if(h)return nO(i,a,d);a.flags|=128}if(v=a.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),sn(mn,mn.current),h)break;return null;case 22:case 23:return a.lanes=0,QT(i,a,d)}return Ti(i,a,d)}var rO,f0,oO,iO;rO=function(i,a){for(var d=a.child;d!==null;){if(d.tag===5||d.tag===6)i.appendChild(d.stateNode);else if(d.tag!==4&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===a)break;for(;d.sibling===null;){if(d.return===null||d.return===a)return;d=d.return}d.sibling.return=d.return,d=d.sibling}},f0=function(){},oO=function(i,a,d,h){var v=i.memoizedProps;if(v!==h){i=a.stateNode,na(ei.current);var C=null;switch(d){case"input":v=ct(i,v),h=ct(i,h),C=[];break;case"select":v=ce({},v,{value:void 0}),h=ce({},h,{value:void 0}),C=[];break;case"textarea":v=_t(i,v),h=_t(i,h),C=[];break;default:typeof v.onClick!="function"&&typeof h.onClick=="function"&&(i.onclick=vp)}We(d,h);var j;d=null;for(ue in v)if(!h.hasOwnProperty(ue)&&v.hasOwnProperty(ue)&&v[ue]!=null)if(ue==="style"){var I=v[ue];for(j in I)I.hasOwnProperty(j)&&(d||(d={}),d[j]="")}else ue!=="dangerouslySetInnerHTML"&&ue!=="children"&&ue!=="suppressContentEditableWarning"&&ue!=="suppressHydrationWarning"&&ue!=="autoFocus"&&(o.hasOwnProperty(ue)?C||(C=[]):(C=C||[]).push(ue,null));for(ue in h){var U=h[ue];if(I=v!=null?v[ue]:void 0,h.hasOwnProperty(ue)&&U!==I&&(U!=null||I!=null))if(ue==="style")if(I){for(j in I)!I.hasOwnProperty(j)||U&&U.hasOwnProperty(j)||(d||(d={}),d[j]="");for(j in U)U.hasOwnProperty(j)&&I[j]!==U[j]&&(d||(d={}),d[j]=U[j])}else d||(C||(C=[]),C.push(ue,d)),d=U;else ue==="dangerouslySetInnerHTML"?(U=U?U.__html:void 0,I=I?I.__html:void 0,U!=null&&I!==U&&(C=C||[]).push(ue,U)):ue==="children"?typeof U!="string"&&typeof U!="number"||(C=C||[]).push(ue,""+U):ue!=="suppressContentEditableWarning"&&ue!=="suppressHydrationWarning"&&(o.hasOwnProperty(ue)?(U!=null&&ue==="onScroll"&&cn("scroll",i),C||I===U||(C=[])):(C=C||[]).push(ue,U))}d&&(C=C||[]).push("style",d);var ue=C;(a.updateQueue=ue)&&(a.flags|=4)}},iO=function(i,a,d,h){d!==h&&(a.flags|=4)};function _u(i,a){if(!pn)switch(i.tailMode){case"hidden":a=i.tail;for(var d=null;a!==null;)a.alternate!==null&&(d=a),a=a.sibling;d===null?i.tail=null:d.sibling=null;break;case"collapsed":d=i.tail;for(var h=null;d!==null;)d.alternate!==null&&(h=d),d=d.sibling;h===null?a||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function Jn(i){var a=i.alternate!==null&&i.alternate.child===i.child,d=0,h=0;if(a)for(var v=i.child;v!==null;)d|=v.lanes|v.childLanes,h|=v.subtreeFlags&14680064,h|=v.flags&14680064,v.return=i,v=v.sibling;else for(v=i.child;v!==null;)d|=v.lanes|v.childLanes,h|=v.subtreeFlags,h|=v.flags,v.return=i,v=v.sibling;return i.subtreeFlags|=h,i.childLanes=d,a}function ote(i,a,d){var h=a.pendingProps;switch(Iv(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Jn(a),null;case 1:return kr(a.type)&&xp(),Jn(a),null;case 3:return h=a.stateNode,kl(),un(Rr),un(Yn),Gv(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(i===null||i.child===null)&&(Rp(a)?a.flags|=4:i===null||i.memoizedState.isDehydrated&&!(a.flags&256)||(a.flags|=1024,Ao!==null&&(C0(Ao),Ao=null))),f0(i,a),Jn(a),null;case 5:Vv(a);var v=na(Tu.current);if(d=a.type,i!==null&&a.stateNode!=null)oO(i,a,d,h,v),i.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!h){if(a.stateNode===null)throw Error(n(166));return Jn(a),null}if(i=na(ei.current),Rp(a)){h=a.stateNode,d=a.type;var C=a.memoizedProps;switch(h[Zo]=a,h[Cu]=C,i=(a.mode&1)!==0,d){case"dialog":cn("cancel",h),cn("close",h);break;case"iframe":case"object":case"embed":cn("load",h);break;case"video":case"audio":for(v=0;v<xu.length;v++)cn(xu[v],h);break;case"source":cn("error",h);break;case"img":case"image":case"link":cn("error",h),cn("load",h);break;case"details":cn("toggle",h);break;case"input":ot(h,C),cn("invalid",h);break;case"select":h._wrapperState={wasMultiple:!!C.multiple},cn("invalid",h);break;case"textarea":Pt(h,C),cn("invalid",h)}We(d,C),v=null;for(var j in C)if(C.hasOwnProperty(j)){var I=C[j];j==="children"?typeof I=="string"?h.textContent!==I&&(C.suppressHydrationWarning!==!0&&yp(h.textContent,I,i),v=["children",I]):typeof I=="number"&&h.textContent!==""+I&&(C.suppressHydrationWarning!==!0&&yp(h.textContent,I,i),v=["children",""+I]):o.hasOwnProperty(j)&&I!=null&&j==="onScroll"&&cn("scroll",h)}switch(d){case"input":He(h),Ze(h,C,!0);break;case"textarea":He(h),Ft(h);break;case"select":case"option":break;default:typeof C.onClick=="function"&&(h.onclick=vp)}h=v,a.updateQueue=h,h!==null&&(a.flags|=4)}else{j=v.nodeType===9?v:v.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=Yt(d)),i==="http://www.w3.org/1999/xhtml"?d==="script"?(i=j.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof h.is=="string"?i=j.createElement(d,{is:h.is}):(i=j.createElement(d),d==="select"&&(j=i,h.multiple?j.multiple=!0:h.size&&(j.size=h.size))):i=j.createElementNS(i,d),i[Zo]=a,i[Cu]=h,rO(i,a,!1,!1),a.stateNode=i;e:{switch(j=ft(d,h),d){case"dialog":cn("cancel",i),cn("close",i),v=h;break;case"iframe":case"object":case"embed":cn("load",i),v=h;break;case"video":case"audio":for(v=0;v<xu.length;v++)cn(xu[v],i);v=h;break;case"source":cn("error",i),v=h;break;case"img":case"image":case"link":cn("error",i),cn("load",i),v=h;break;case"details":cn("toggle",i),v=h;break;case"input":ot(i,h),v=ct(i,h),cn("invalid",i);break;case"option":v=h;break;case"select":i._wrapperState={wasMultiple:!!h.multiple},v=ce({},h,{value:void 0}),cn("invalid",i);break;case"textarea":Pt(i,h),v=_t(i,h),cn("invalid",i);break;default:v=h}We(d,v),I=v;for(C in I)if(I.hasOwnProperty(C)){var U=I[C];C==="style"?ut(i,U):C==="dangerouslySetInnerHTML"?(U=U?U.__html:void 0,U!=null&&Pe(i,U)):C==="children"?typeof U=="string"?(d!=="textarea"||U!=="")&&xt(i,U):typeof U=="number"&&xt(i,""+U):C!=="suppressContentEditableWarning"&&C!=="suppressHydrationWarning"&&C!=="autoFocus"&&(o.hasOwnProperty(C)?U!=null&&C==="onScroll"&&cn("scroll",i):U!=null&&O(i,C,U,j))}switch(d){case"input":He(i),Ze(i,h,!1);break;case"textarea":He(i),Ft(i);break;case"option":h.value!=null&&i.setAttribute("value",""+de(h.value));break;case"select":i.multiple=!!h.multiple,C=h.value,C!=null?dt(i,!!h.multiple,C,!1):h.defaultValue!=null&&dt(i,!!h.multiple,h.defaultValue,!0);break;default:typeof v.onClick=="function"&&(i.onclick=vp)}switch(d){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}}h&&(a.flags|=4)}a.ref!==null&&(a.flags|=512,a.flags|=2097152)}return Jn(a),null;case 6:if(i&&a.stateNode!=null)iO(i,a,i.memoizedProps,h);else{if(typeof h!="string"&&a.stateNode===null)throw Error(n(166));if(d=na(Tu.current),na(ei.current),Rp(a)){if(h=a.stateNode,d=a.memoizedProps,h[Zo]=a,(C=h.nodeValue!==d)&&(i=Gr,i!==null))switch(i.tag){case 3:yp(h.nodeValue,d,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&yp(h.nodeValue,d,(i.mode&1)!==0)}C&&(a.flags|=4)}else h=(d.nodeType===9?d:d.ownerDocument).createTextNode(h),h[Zo]=a,a.stateNode=h}return Jn(a),null;case 13:if(un(mn),h=a.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(pn&&qr!==null&&a.mode&1&&!(a.flags&128))lT(),Sl(),a.flags|=98560,C=!1;else if(C=Rp(a),h!==null&&h.dehydrated!==null){if(i===null){if(!C)throw Error(n(318));if(C=a.memoizedState,C=C!==null?C.dehydrated:null,!C)throw Error(n(317));C[Zo]=a}else Sl(),!(a.flags&128)&&(a.memoizedState=null),a.flags|=4;Jn(a),C=!1}else Ao!==null&&(C0(Ao),Ao=null),C=!0;if(!C)return a.flags&65536?a:null}return a.flags&128?(a.lanes=d,a):(h=h!==null,h!==(i!==null&&i.memoizedState!==null)&&h&&(a.child.flags|=8192,a.mode&1&&(i===null||mn.current&1?_n===0&&(_n=3):k0())),a.updateQueue!==null&&(a.flags|=4),Jn(a),null);case 4:return kl(),f0(i,a),i===null&&wu(a.stateNode.containerInfo),Jn(a),null;case 10:return Bv(a.type._context),Jn(a),null;case 17:return kr(a.type)&&xp(),Jn(a),null;case 19:if(un(mn),C=a.memoizedState,C===null)return Jn(a),null;if(h=(a.flags&128)!==0,j=C.rendering,j===null)if(h)_u(C,!1);else{if(_n!==0||i!==null&&i.flags&128)for(i=a.child;i!==null;){if(j=Ap(i),j!==null){for(a.flags|=128,_u(C,!1),h=j.updateQueue,h!==null&&(a.updateQueue=h,a.flags|=4),a.subtreeFlags=0,h=d,d=a.child;d!==null;)C=d,i=h,C.flags&=14680066,j=C.alternate,j===null?(C.childLanes=0,C.lanes=i,C.child=null,C.subtreeFlags=0,C.memoizedProps=null,C.memoizedState=null,C.updateQueue=null,C.dependencies=null,C.stateNode=null):(C.childLanes=j.childLanes,C.lanes=j.lanes,C.child=j.child,C.subtreeFlags=0,C.deletions=null,C.memoizedProps=j.memoizedProps,C.memoizedState=j.memoizedState,C.updateQueue=j.updateQueue,C.type=j.type,i=j.dependencies,C.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),d=d.sibling;return sn(mn,mn.current&1|2),a.child}i=i.sibling}C.tail!==null&&Jt()>$l&&(a.flags|=128,h=!0,_u(C,!1),a.lanes=4194304)}else{if(!h)if(i=Ap(j),i!==null){if(a.flags|=128,h=!0,d=i.updateQueue,d!==null&&(a.updateQueue=d,a.flags|=4),_u(C,!0),C.tail===null&&C.tailMode==="hidden"&&!j.alternate&&!pn)return Jn(a),null}else 2*Jt()-C.renderingStartTime>$l&&d!==1073741824&&(a.flags|=128,h=!0,_u(C,!1),a.lanes=4194304);C.isBackwards?(j.sibling=a.child,a.child=j):(d=C.last,d!==null?d.sibling=j:a.child=j,C.last=j)}return C.tail!==null?(a=C.tail,C.rendering=a,C.tail=a.sibling,C.renderingStartTime=Jt(),a.sibling=null,d=mn.current,sn(mn,h?d&1|2:d&1),a):(Jn(a),null);case 22:case 23:return R0(),h=a.memoizedState!==null,i!==null&&i.memoizedState!==null!==h&&(a.flags|=8192),h&&a.mode&1?Qr&1073741824&&(Jn(a),a.subtreeFlags&6&&(a.flags|=8192)):Jn(a),null;case 24:return null;case 25:return null}throw Error(n(156,a.tag))}function ite(i,a){switch(Iv(a),a.tag){case 1:return kr(a.type)&&xp(),i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 3:return kl(),un(Rr),un(Yn),Gv(),i=a.flags,i&65536&&!(i&128)?(a.flags=i&-65537|128,a):null;case 5:return Vv(a),null;case 13:if(un(mn),i=a.memoizedState,i!==null&&i.dehydrated!==null){if(a.alternate===null)throw Error(n(340));Sl()}return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 19:return un(mn),null;case 4:return kl(),null;case 10:return Bv(a.type._context),null;case 22:case 23:return R0(),null;case 24:return null;default:return null}}var Bp=!1,Zn=!1,ste=typeof WeakSet=="function"?WeakSet:Set,Ye=null;function Tl(i,a){var d=i.ref;if(d!==null)if(typeof d=="function")try{d(null)}catch(h){xn(i,a,h)}else d.current=null}function p0(i,a,d){try{d()}catch(h){xn(i,a,h)}}var sO=!1;function ate(i,a){if(Rv=sp,i=DP(),yv(i)){if("selectionStart"in i)var d={start:i.selectionStart,end:i.selectionEnd};else e:{d=(d=i.ownerDocument)&&d.defaultView||window;var h=d.getSelection&&d.getSelection();if(h&&h.rangeCount!==0){d=h.anchorNode;var v=h.anchorOffset,C=h.focusNode;h=h.focusOffset;try{d.nodeType,C.nodeType}catch{d=null;break e}var j=0,I=-1,U=-1,ue=0,Ce=0,Te=i,Se=null;t:for(;;){for(var Ge;Te!==d||v!==0&&Te.nodeType!==3||(I=j+v),Te!==C||h!==0&&Te.nodeType!==3||(U=j+h),Te.nodeType===3&&(j+=Te.nodeValue.length),(Ge=Te.firstChild)!==null;)Se=Te,Te=Ge;for(;;){if(Te===i)break t;if(Se===d&&++ue===v&&(I=j),Se===C&&++Ce===h&&(U=j),(Ge=Te.nextSibling)!==null)break;Te=Se,Se=Te.parentNode}Te=Ge}d=I===-1||U===-1?null:{start:I,end:U}}else d=null}d=d||{start:0,end:0}}else d=null;for(kv={focusedElem:i,selectionRange:d},sp=!1,Ye=a;Ye!==null;)if(a=Ye,i=a.child,(a.subtreeFlags&1028)!==0&&i!==null)i.return=a,Ye=i;else for(;Ye!==null;){a=Ye;try{var Xe=a.alternate;if(a.flags&1024)switch(a.tag){case 0:case 11:case 15:break;case 1:if(Xe!==null){var tt=Xe.memoizedProps,Rn=Xe.memoizedState,ee=a.stateNode,K=ee.getSnapshotBeforeUpdate(a.elementType===a.type?tt:jo(a.type,tt),Rn);ee.__reactInternalSnapshotBeforeUpdate=K}break;case 3:var le=a.stateNode.containerInfo;le.nodeType===1?le.textContent="":le.nodeType===9&&le.documentElement&&le.removeChild(le.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Ae){xn(a,a.return,Ae)}if(i=a.sibling,i!==null){i.return=a.return,Ye=i;break}Ye=a.return}return Xe=sO,sO=!1,Xe}function Iu(i,a,d){var h=a.updateQueue;if(h=h!==null?h.lastEffect:null,h!==null){var v=h=h.next;do{if((v.tag&i)===i){var C=v.destroy;v.destroy=void 0,C!==void 0&&p0(a,d,C)}v=v.next}while(v!==h)}}function zp(i,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var d=a=a.next;do{if((d.tag&i)===i){var h=d.create;d.destroy=h()}d=d.next}while(d!==a)}}function h0(i){var a=i.ref;if(a!==null){var d=i.stateNode;switch(i.tag){case 5:i=d;break;default:i=d}typeof a=="function"?a(i):a.current=i}}function aO(i){var a=i.alternate;a!==null&&(i.alternate=null,aO(a)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(a=i.stateNode,a!==null&&(delete a[Zo],delete a[Cu],delete a[$v],delete a[Wee],delete a[Hee])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function lO(i){return i.tag===5||i.tag===3||i.tag===4}function cO(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||lO(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function m0(i,a,d){var h=i.tag;if(h===5||h===6)i=i.stateNode,a?d.nodeType===8?d.parentNode.insertBefore(i,a):d.insertBefore(i,a):(d.nodeType===8?(a=d.parentNode,a.insertBefore(i,d)):(a=d,a.appendChild(i)),d=d._reactRootContainer,d!=null||a.onclick!==null||(a.onclick=vp));else if(h!==4&&(i=i.child,i!==null))for(m0(i,a,d),i=i.sibling;i!==null;)m0(i,a,d),i=i.sibling}function g0(i,a,d){var h=i.tag;if(h===5||h===6)i=i.stateNode,a?d.insertBefore(i,a):d.appendChild(i);else if(h!==4&&(i=i.child,i!==null))for(g0(i,a,d),i=i.sibling;i!==null;)g0(i,a,d),i=i.sibling}var Kn=null,_o=!1;function ds(i,a,d){for(d=d.child;d!==null;)uO(i,a,d),d=d.sibling}function uO(i,a,d){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(vt,d)}catch{}switch(d.tag){case 5:Zn||Tl(d,a);case 6:var h=Kn,v=_o;Kn=null,ds(i,a,d),Kn=h,_o=v,Kn!==null&&(_o?(i=Kn,d=d.stateNode,i.nodeType===8?i.parentNode.removeChild(d):i.removeChild(d)):Kn.removeChild(d.stateNode));break;case 18:Kn!==null&&(_o?(i=Kn,d=d.stateNode,i.nodeType===8?Ov(i.parentNode,d):i.nodeType===1&&Ov(i,d),fu(i)):Ov(Kn,d.stateNode));break;case 4:h=Kn,v=_o,Kn=d.stateNode.containerInfo,_o=!0,ds(i,a,d),Kn=h,_o=v;break;case 0:case 11:case 14:case 15:if(!Zn&&(h=d.updateQueue,h!==null&&(h=h.lastEffect,h!==null))){v=h=h.next;do{var C=v,j=C.destroy;C=C.tag,j!==void 0&&(C&2||C&4)&&p0(d,a,j),v=v.next}while(v!==h)}ds(i,a,d);break;case 1:if(!Zn&&(Tl(d,a),h=d.stateNode,typeof h.componentWillUnmount=="function"))try{h.props=d.memoizedProps,h.state=d.memoizedState,h.componentWillUnmount()}catch(I){xn(d,a,I)}ds(i,a,d);break;case 21:ds(i,a,d);break;case 22:d.mode&1?(Zn=(h=Zn)||d.memoizedState!==null,ds(i,a,d),Zn=h):ds(i,a,d);break;default:ds(i,a,d)}}function dO(i){var a=i.updateQueue;if(a!==null){i.updateQueue=null;var d=i.stateNode;d===null&&(d=i.stateNode=new ste),a.forEach(function(h){var v=gte.bind(null,i,h);d.has(h)||(d.add(h),h.then(v,v))})}}function Io(i,a){var d=a.deletions;if(d!==null)for(var h=0;h<d.length;h++){var v=d[h];try{var C=i,j=a,I=j;e:for(;I!==null;){switch(I.tag){case 5:Kn=I.stateNode,_o=!1;break e;case 3:Kn=I.stateNode.containerInfo,_o=!0;break e;case 4:Kn=I.stateNode.containerInfo,_o=!0;break e}I=I.return}if(Kn===null)throw Error(n(160));uO(C,j,v),Kn=null,_o=!1;var U=v.alternate;U!==null&&(U.return=null),v.return=null}catch(ue){xn(v,a,ue)}}if(a.subtreeFlags&12854)for(a=a.child;a!==null;)fO(a,i),a=a.sibling}function fO(i,a){var d=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(Io(a,i),ni(i),h&4){try{Iu(3,i,i.return),zp(3,i)}catch(tt){xn(i,i.return,tt)}try{Iu(5,i,i.return)}catch(tt){xn(i,i.return,tt)}}break;case 1:Io(a,i),ni(i),h&512&&d!==null&&Tl(d,d.return);break;case 5:if(Io(a,i),ni(i),h&512&&d!==null&&Tl(d,d.return),i.flags&32){var v=i.stateNode;try{xt(v,"")}catch(tt){xn(i,i.return,tt)}}if(h&4&&(v=i.stateNode,v!=null)){var C=i.memoizedProps,j=d!==null?d.memoizedProps:C,I=i.type,U=i.updateQueue;if(i.updateQueue=null,U!==null)try{I==="input"&&C.type==="radio"&&C.name!=null&&ze(v,C),ft(I,j);var ue=ft(I,C);for(j=0;j<U.length;j+=2){var Ce=U[j],Te=U[j+1];Ce==="style"?ut(v,Te):Ce==="dangerouslySetInnerHTML"?Pe(v,Te):Ce==="children"?xt(v,Te):O(v,Ce,Te,ue)}switch(I){case"input":Ot(v,C);break;case"textarea":pt(v,C);break;case"select":var Se=v._wrapperState.wasMultiple;v._wrapperState.wasMultiple=!!C.multiple;var Ge=C.value;Ge!=null?dt(v,!!C.multiple,Ge,!1):Se!==!!C.multiple&&(C.defaultValue!=null?dt(v,!!C.multiple,C.defaultValue,!0):dt(v,!!C.multiple,C.multiple?[]:"",!1))}v[Cu]=C}catch(tt){xn(i,i.return,tt)}}break;case 6:if(Io(a,i),ni(i),h&4){if(i.stateNode===null)throw Error(n(162));v=i.stateNode,C=i.memoizedProps;try{v.nodeValue=C}catch(tt){xn(i,i.return,tt)}}break;case 3:if(Io(a,i),ni(i),h&4&&d!==null&&d.memoizedState.isDehydrated)try{fu(a.containerInfo)}catch(tt){xn(i,i.return,tt)}break;case 4:Io(a,i),ni(i);break;case 13:Io(a,i),ni(i),v=i.child,v.flags&8192&&(C=v.memoizedState!==null,v.stateNode.isHidden=C,!C||v.alternate!==null&&v.alternate.memoizedState!==null||(b0=Jt())),h&4&&dO(i);break;case 22:if(Ce=d!==null&&d.memoizedState!==null,i.mode&1?(Zn=(ue=Zn)||Ce,Io(a,i),Zn=ue):Io(a,i),ni(i),h&8192){if(ue=i.memoizedState!==null,(i.stateNode.isHidden=ue)&&!Ce&&i.mode&1)for(Ye=i,Ce=i.child;Ce!==null;){for(Te=Ye=Ce;Ye!==null;){switch(Se=Ye,Ge=Se.child,Se.tag){case 0:case 11:case 14:case 15:Iu(4,Se,Se.return);break;case 1:Tl(Se,Se.return);var Xe=Se.stateNode;if(typeof Xe.componentWillUnmount=="function"){h=Se,d=Se.return;try{a=h,Xe.props=a.memoizedProps,Xe.state=a.memoizedState,Xe.componentWillUnmount()}catch(tt){xn(h,d,tt)}}break;case 5:Tl(Se,Se.return);break;case 22:if(Se.memoizedState!==null){mO(Te);continue}}Ge!==null?(Ge.return=Se,Ye=Ge):mO(Te)}Ce=Ce.sibling}e:for(Ce=null,Te=i;;){if(Te.tag===5){if(Ce===null){Ce=Te;try{v=Te.stateNode,ue?(C=v.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none"):(I=Te.stateNode,U=Te.memoizedProps.style,j=U!=null&&U.hasOwnProperty("display")?U.display:null,I.style.display=Ue("display",j))}catch(tt){xn(i,i.return,tt)}}}else if(Te.tag===6){if(Ce===null)try{Te.stateNode.nodeValue=ue?"":Te.memoizedProps}catch(tt){xn(i,i.return,tt)}}else if((Te.tag!==22&&Te.tag!==23||Te.memoizedState===null||Te===i)&&Te.child!==null){Te.child.return=Te,Te=Te.child;continue}if(Te===i)break e;for(;Te.sibling===null;){if(Te.return===null||Te.return===i)break e;Ce===Te&&(Ce=null),Te=Te.return}Ce===Te&&(Ce=null),Te.sibling.return=Te.return,Te=Te.sibling}}break;case 19:Io(a,i),ni(i),h&4&&dO(i);break;case 21:break;default:Io(a,i),ni(i)}}function ni(i){var a=i.flags;if(a&2){try{e:{for(var d=i.return;d!==null;){if(lO(d)){var h=d;break e}d=d.return}throw Error(n(160))}switch(h.tag){case 5:var v=h.stateNode;h.flags&32&&(xt(v,""),h.flags&=-33);var C=cO(i);g0(i,C,v);break;case 3:case 4:var j=h.stateNode.containerInfo,I=cO(i);m0(i,I,j);break;default:throw Error(n(161))}}catch(U){xn(i,i.return,U)}i.flags&=-3}a&4096&&(i.flags&=-4097)}function lte(i,a,d){Ye=i,pO(i)}function pO(i,a,d){for(var h=(i.mode&1)!==0;Ye!==null;){var v=Ye,C=v.child;if(v.tag===22&&h){var j=v.memoizedState!==null||Bp;if(!j){var I=v.alternate,U=I!==null&&I.memoizedState!==null||Zn;I=Bp;var ue=Zn;if(Bp=j,(Zn=U)&&!ue)for(Ye=v;Ye!==null;)j=Ye,U=j.child,j.tag===22&&j.memoizedState!==null?gO(v):U!==null?(U.return=j,Ye=U):gO(v);for(;C!==null;)Ye=C,pO(C),C=C.sibling;Ye=v,Bp=I,Zn=ue}hO(i)}else v.subtreeFlags&8772&&C!==null?(C.return=v,Ye=C):hO(i)}}function hO(i){for(;Ye!==null;){var a=Ye;if(a.flags&8772){var d=a.alternate;try{if(a.flags&8772)switch(a.tag){case 0:case 11:case 15:Zn||zp(5,a);break;case 1:var h=a.stateNode;if(a.flags&4&&!Zn)if(d===null)h.componentDidMount();else{var v=a.elementType===a.type?d.memoizedProps:jo(a.type,d.memoizedProps);h.componentDidUpdate(v,d.memoizedState,h.__reactInternalSnapshotBeforeUpdate)}var C=a.updateQueue;C!==null&&mT(a,C,h);break;case 3:var j=a.updateQueue;if(j!==null){if(d=null,a.child!==null)switch(a.child.tag){case 5:d=a.child.stateNode;break;case 1:d=a.child.stateNode}mT(a,j,d)}break;case 5:var I=a.stateNode;if(d===null&&a.flags&4){d=I;var U=a.memoizedProps;switch(a.type){case"button":case"input":case"select":case"textarea":U.autoFocus&&d.focus();break;case"img":U.src&&(d.src=U.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(a.memoizedState===null){var ue=a.alternate;if(ue!==null){var Ce=ue.memoizedState;if(Ce!==null){var Te=Ce.dehydrated;Te!==null&&fu(Te)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Zn||a.flags&512&&h0(a)}catch(Se){xn(a,a.return,Se)}}if(a===i){Ye=null;break}if(d=a.sibling,d!==null){d.return=a.return,Ye=d;break}Ye=a.return}}function mO(i){for(;Ye!==null;){var a=Ye;if(a===i){Ye=null;break}var d=a.sibling;if(d!==null){d.return=a.return,Ye=d;break}Ye=a.return}}function gO(i){for(;Ye!==null;){var a=Ye;try{switch(a.tag){case 0:case 11:case 15:var d=a.return;try{zp(4,a)}catch(U){xn(a,d,U)}break;case 1:var h=a.stateNode;if(typeof h.componentDidMount=="function"){var v=a.return;try{h.componentDidMount()}catch(U){xn(a,v,U)}}var C=a.return;try{h0(a)}catch(U){xn(a,C,U)}break;case 5:var j=a.return;try{h0(a)}catch(U){xn(a,j,U)}}}catch(U){xn(a,a.return,U)}if(a===i){Ye=null;break}var I=a.sibling;if(I!==null){I.return=a.return,Ye=I;break}Ye=a.return}}var cte=Math.ceil,Up=A.ReactCurrentDispatcher,y0=A.ReactCurrentOwner,yo=A.ReactCurrentBatchConfig,Lt=0,Fn=null,$n=null,Gn=0,Qr=0,Ol=ss(0),_n=0,Mu=null,oa=0,Wp=0,v0=0,Nu=null,Tr=null,b0=0,$l=1/0,Oi=null,Hp=!1,x0=null,fs=null,Vp=!1,ps=null,Kp=0,Lu=0,w0=null,Gp=-1,qp=0;function dr(){return Lt&6?Jt():Gp!==-1?Gp:Gp=Jt()}function hs(i){return i.mode&1?Lt&2&&Gn!==0?Gn&-Gn:Kee.transition!==null?(qp===0&&(qp=cP()),qp):(i=Xt,i!==0||(i=window.event,i=i===void 0?16:vP(i.type)),i):1}function Mo(i,a,d,h){if(50<Lu)throw Lu=0,w0=null,Error(n(185));au(i,d,h),(!(Lt&2)||i!==Fn)&&(i===Fn&&(!(Lt&2)&&(Wp|=d),_n===4&&ms(i,Gn)),Or(i,h),d===1&&Lt===0&&!(a.mode&1)&&($l=Jt()+500,Sp&&ls()))}function Or(i,a){var d=i.callbackNode;KZ(i,a);var h=rp(i,i===Fn?Gn:0);if(h===0)d!==null&&At(d),i.callbackNode=null,i.callbackPriority=0;else if(a=h&-h,i.callbackPriority!==a){if(d!=null&&At(d),a===1)i.tag===0?Vee(vO.bind(null,i)):rT(vO.bind(null,i)),zee(function(){!(Lt&6)&&ls()}),d=null;else{switch(uP(h)){case 1:d=Jo;break;case 4:d=Vr;break;case 16:d=wi;break;case 536870912:d=Ys;break;default:d=wi}d=kO(d,yO.bind(null,i))}i.callbackPriority=a,i.callbackNode=d}}function yO(i,a){if(Gp=-1,qp=0,Lt&6)throw Error(n(327));var d=i.callbackNode;if(Al()&&i.callbackNode!==d)return null;var h=rp(i,i===Fn?Gn:0);if(h===0)return null;if(h&30||h&i.expiredLanes||a)a=Qp(i,h);else{a=h;var v=Lt;Lt|=2;var C=xO();(Fn!==i||Gn!==a)&&(Oi=null,$l=Jt()+500,sa(i,a));do try{fte();break}catch(I){bO(i,I)}while(!0);Fv(),Up.current=C,Lt=v,$n!==null?a=0:(Fn=null,Gn=0,a=_n)}if(a!==0){if(a===2&&(v=tv(i),v!==0&&(h=v,a=S0(i,v))),a===1)throw d=Mu,sa(i,0),ms(i,h),Or(i,Jt()),d;if(a===6)ms(i,h);else{if(v=i.current.alternate,!(h&30)&&!ute(v)&&(a=Qp(i,h),a===2&&(C=tv(i),C!==0&&(h=C,a=S0(i,C))),a===1))throw d=Mu,sa(i,0),ms(i,h),Or(i,Jt()),d;switch(i.finishedWork=v,i.finishedLanes=h,a){case 0:case 1:throw Error(n(345));case 2:aa(i,Tr,Oi);break;case 3:if(ms(i,h),(h&130023424)===h&&(a=b0+500-Jt(),10<a)){if(rp(i,0)!==0)break;if(v=i.suspendedLanes,(v&h)!==h){dr(),i.pingedLanes|=i.suspendedLanes&v;break}i.timeoutHandle=Tv(aa.bind(null,i,Tr,Oi),a);break}aa(i,Tr,Oi);break;case 4:if(ms(i,h),(h&4194240)===h)break;for(a=i.eventTimes,v=-1;0<h;){var j=31-jt(h);C=1<<j,j=a[j],j>v&&(v=j),h&=~C}if(h=v,h=Jt()-h,h=(120>h?120:480>h?480:1080>h?1080:1920>h?1920:3e3>h?3e3:4320>h?4320:1960*cte(h/1960))-h,10<h){i.timeoutHandle=Tv(aa.bind(null,i,Tr,Oi),h);break}aa(i,Tr,Oi);break;case 5:aa(i,Tr,Oi);break;default:throw Error(n(329))}}}return Or(i,Jt()),i.callbackNode===d?yO.bind(null,i):null}function S0(i,a){var d=Nu;return i.current.memoizedState.isDehydrated&&(sa(i,a).flags|=256),i=Qp(i,a),i!==2&&(a=Tr,Tr=d,a!==null&&C0(a)),i}function C0(i){Tr===null?Tr=i:Tr.push.apply(Tr,i)}function ute(i){for(var a=i;;){if(a.flags&16384){var d=a.updateQueue;if(d!==null&&(d=d.stores,d!==null))for(var h=0;h<d.length;h++){var v=d[h],C=v.getSnapshot;v=v.value;try{if(!$o(C(),v))return!1}catch{return!1}}}if(d=a.child,a.subtreeFlags&16384&&d!==null)d.return=a,a=d;else{if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ms(i,a){for(a&=~v0,a&=~Wp,i.suspendedLanes|=a,i.pingedLanes&=~a,i=i.expirationTimes;0<a;){var d=31-jt(a),h=1<<d;i[d]=-1,a&=~h}}function vO(i){if(Lt&6)throw Error(n(327));Al();var a=rp(i,0);if(!(a&1))return Or(i,Jt()),null;var d=Qp(i,a);if(i.tag!==0&&d===2){var h=tv(i);h!==0&&(a=h,d=S0(i,h))}if(d===1)throw d=Mu,sa(i,0),ms(i,a),Or(i,Jt()),d;if(d===6)throw Error(n(345));return i.finishedWork=i.current.alternate,i.finishedLanes=a,aa(i,Tr,Oi),Or(i,Jt()),null}function E0(i,a){var d=Lt;Lt|=1;try{return i(a)}finally{Lt=d,Lt===0&&($l=Jt()+500,Sp&&ls())}}function ia(i){ps!==null&&ps.tag===0&&!(Lt&6)&&Al();var a=Lt;Lt|=1;var d=yo.transition,h=Xt;try{if(yo.transition=null,Xt=1,i)return i()}finally{Xt=h,yo.transition=d,Lt=a,!(Lt&6)&&ls()}}function R0(){Qr=Ol.current,un(Ol)}function sa(i,a){i.finishedWork=null,i.finishedLanes=0;var d=i.timeoutHandle;if(d!==-1&&(i.timeoutHandle=-1,Bee(d)),$n!==null)for(d=$n.return;d!==null;){var h=d;switch(Iv(h),h.tag){case 1:h=h.type.childContextTypes,h!=null&&xp();break;case 3:kl(),un(Rr),un(Yn),Gv();break;case 5:Vv(h);break;case 4:kl();break;case 13:un(mn);break;case 19:un(mn);break;case 10:Bv(h.type._context);break;case 22:case 23:R0()}d=d.return}if(Fn=i,$n=i=gs(i.current,null),Gn=Qr=a,_n=0,Mu=null,v0=Wp=oa=0,Tr=Nu=null,ta!==null){for(a=0;a<ta.length;a++)if(d=ta[a],h=d.interleaved,h!==null){d.interleaved=null;var v=h.next,C=d.pending;if(C!==null){var j=C.next;C.next=v,h.next=j}d.pending=h}ta=null}return i}function bO(i,a){do{var d=$n;try{if(Fv(),jp.current=Np,_p){for(var h=gn.memoizedState;h!==null;){var v=h.queue;v!==null&&(v.pending=null),h=h.next}_p=!1}if(ra=0,Dn=jn=gn=null,Ou=!1,$u=0,y0.current=null,d===null||d.return===null){_n=1,Mu=a,$n=null;break}e:{var C=i,j=d.return,I=d,U=a;if(a=Gn,I.flags|=32768,U!==null&&typeof U=="object"&&typeof U.then=="function"){var ue=U,Ce=I,Te=Ce.tag;if(!(Ce.mode&1)&&(Te===0||Te===11||Te===15)){var Se=Ce.alternate;Se?(Ce.updateQueue=Se.updateQueue,Ce.memoizedState=Se.memoizedState,Ce.lanes=Se.lanes):(Ce.updateQueue=null,Ce.memoizedState=null)}var Ge=HT(j);if(Ge!==null){Ge.flags&=-257,VT(Ge,j,I,C,a),Ge.mode&1&&WT(C,ue,a),a=Ge,U=ue;var Xe=a.updateQueue;if(Xe===null){var tt=new Set;tt.add(U),a.updateQueue=tt}else Xe.add(U);break e}else{if(!(a&1)){WT(C,ue,a),k0();break e}U=Error(n(426))}}else if(pn&&I.mode&1){var Rn=HT(j);if(Rn!==null){!(Rn.flags&65536)&&(Rn.flags|=256),VT(Rn,j,I,C,a),Lv(Pl(U,I));break e}}C=U=Pl(U,I),_n!==4&&(_n=2),Nu===null?Nu=[C]:Nu.push(C),C=j;do{switch(C.tag){case 3:C.flags|=65536,a&=-a,C.lanes|=a;var ee=zT(C,U,a);hT(C,ee);break e;case 1:I=U;var K=C.type,le=C.stateNode;if(!(C.flags&128)&&(typeof K.getDerivedStateFromError=="function"||le!==null&&typeof le.componentDidCatch=="function"&&(fs===null||!fs.has(le)))){C.flags|=65536,a&=-a,C.lanes|=a;var Ae=UT(C,I,a);hT(C,Ae);break e}}C=C.return}while(C!==null)}SO(d)}catch(rt){a=rt,$n===d&&d!==null&&($n=d=d.return);continue}break}while(!0)}function xO(){var i=Up.current;return Up.current=Np,i===null?Np:i}function k0(){(_n===0||_n===3||_n===2)&&(_n=4),Fn===null||!(oa&268435455)&&!(Wp&268435455)||ms(Fn,Gn)}function Qp(i,a){var d=Lt;Lt|=2;var h=xO();(Fn!==i||Gn!==a)&&(Oi=null,sa(i,a));do try{dte();break}catch(v){bO(i,v)}while(!0);if(Fv(),Lt=d,Up.current=h,$n!==null)throw Error(n(261));return Fn=null,Gn=0,_n}function dte(){for(;$n!==null;)wO($n)}function fte(){for(;$n!==null&&!fo();)wO($n)}function wO(i){var a=RO(i.alternate,i,Qr);i.memoizedProps=i.pendingProps,a===null?SO(i):$n=a,y0.current=null}function SO(i){var a=i;do{var d=a.alternate;if(i=a.return,a.flags&32768){if(d=ite(d,a),d!==null){d.flags&=32767,$n=d;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{_n=6,$n=null;return}}else if(d=ote(d,a,Qr),d!==null){$n=d;return}if(a=a.sibling,a!==null){$n=a;return}$n=a=i}while(a!==null);_n===0&&(_n=5)}function aa(i,a,d){var h=Xt,v=yo.transition;try{yo.transition=null,Xt=1,pte(i,a,d,h)}finally{yo.transition=v,Xt=h}return null}function pte(i,a,d,h){do Al();while(ps!==null);if(Lt&6)throw Error(n(327));d=i.finishedWork;var v=i.finishedLanes;if(d===null)return null;if(i.finishedWork=null,i.finishedLanes=0,d===i.current)throw Error(n(177));i.callbackNode=null,i.callbackPriority=0;var C=d.lanes|d.childLanes;if(GZ(i,C),i===Fn&&($n=Fn=null,Gn=0),!(d.subtreeFlags&2064)&&!(d.flags&2064)||Vp||(Vp=!0,kO(wi,function(){return Al(),null})),C=(d.flags&15990)!==0,d.subtreeFlags&15990||C){C=yo.transition,yo.transition=null;var j=Xt;Xt=1;var I=Lt;Lt|=4,y0.current=null,ate(i,d),fO(d,i),_ee(kv),sp=!!Rv,kv=Rv=null,i.current=d,lte(d),Xo(),Lt=I,Xt=j,yo.transition=C}else i.current=d;if(Vp&&(Vp=!1,ps=i,Kp=v),C=i.pendingLanes,C===0&&(fs=null),cr(d.stateNode),Or(i,Jt()),a!==null)for(h=i.onRecoverableError,d=0;d<a.length;d++)v=a[d],h(v.value,{componentStack:v.stack,digest:v.digest});if(Hp)throw Hp=!1,i=x0,x0=null,i;return Kp&1&&i.tag!==0&&Al(),C=i.pendingLanes,C&1?i===w0?Lu++:(Lu=0,w0=i):Lu=0,ls(),null}function Al(){if(ps!==null){var i=uP(Kp),a=yo.transition,d=Xt;try{if(yo.transition=null,Xt=16>i?16:i,ps===null)var h=!1;else{if(i=ps,ps=null,Kp=0,Lt&6)throw Error(n(331));var v=Lt;for(Lt|=4,Ye=i.current;Ye!==null;){var C=Ye,j=C.child;if(Ye.flags&16){var I=C.deletions;if(I!==null){for(var U=0;U<I.length;U++){var ue=I[U];for(Ye=ue;Ye!==null;){var Ce=Ye;switch(Ce.tag){case 0:case 11:case 15:Iu(8,Ce,C)}var Te=Ce.child;if(Te!==null)Te.return=Ce,Ye=Te;else for(;Ye!==null;){Ce=Ye;var Se=Ce.sibling,Ge=Ce.return;if(aO(Ce),Ce===ue){Ye=null;break}if(Se!==null){Se.return=Ge,Ye=Se;break}Ye=Ge}}}var Xe=C.alternate;if(Xe!==null){var tt=Xe.child;if(tt!==null){Xe.child=null;do{var Rn=tt.sibling;tt.sibling=null,tt=Rn}while(tt!==null)}}Ye=C}}if(C.subtreeFlags&2064&&j!==null)j.return=C,Ye=j;else e:for(;Ye!==null;){if(C=Ye,C.flags&2048)switch(C.tag){case 0:case 11:case 15:Iu(9,C,C.return)}var ee=C.sibling;if(ee!==null){ee.return=C.return,Ye=ee;break e}Ye=C.return}}var K=i.current;for(Ye=K;Ye!==null;){j=Ye;var le=j.child;if(j.subtreeFlags&2064&&le!==null)le.return=j,Ye=le;else e:for(j=K;Ye!==null;){if(I=Ye,I.flags&2048)try{switch(I.tag){case 0:case 11:case 15:zp(9,I)}}catch(rt){xn(I,I.return,rt)}if(I===j){Ye=null;break e}var Ae=I.sibling;if(Ae!==null){Ae.return=I.return,Ye=Ae;break e}Ye=I.return}}if(Lt=v,ls(),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(vt,i)}catch{}h=!0}return h}finally{Xt=d,yo.transition=a}}return!1}function CO(i,a,d){a=Pl(d,a),a=zT(i,a,1),i=us(i,a,1),a=dr(),i!==null&&(au(i,1,a),Or(i,a))}function xn(i,a,d){if(i.tag===3)CO(i,i,d);else for(;a!==null;){if(a.tag===3){CO(a,i,d);break}else if(a.tag===1){var h=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(fs===null||!fs.has(h))){i=Pl(d,i),i=UT(a,i,1),a=us(a,i,1),i=dr(),a!==null&&(au(a,1,i),Or(a,i));break}}a=a.return}}function hte(i,a,d){var h=i.pingCache;h!==null&&h.delete(a),a=dr(),i.pingedLanes|=i.suspendedLanes&d,Fn===i&&(Gn&d)===d&&(_n===4||_n===3&&(Gn&130023424)===Gn&&500>Jt()-b0?sa(i,0):v0|=d),Or(i,a)}function EO(i,a){a===0&&(i.mode&1?(a=np,np<<=1,!(np&130023424)&&(np=4194304)):a=1);var d=dr();i=ki(i,a),i!==null&&(au(i,a,d),Or(i,d))}function mte(i){var a=i.memoizedState,d=0;a!==null&&(d=a.retryLane),EO(i,d)}function gte(i,a){var d=0;switch(i.tag){case 13:var h=i.stateNode,v=i.memoizedState;v!==null&&(d=v.retryLane);break;case 19:h=i.stateNode;break;default:throw Error(n(314))}h!==null&&h.delete(a),EO(i,d)}var RO;RO=function(i,a,d){if(i!==null)if(i.memoizedProps!==a.pendingProps||Rr.current)Pr=!0;else{if(!(i.lanes&d)&&!(a.flags&128))return Pr=!1,rte(i,a,d);Pr=!!(i.flags&131072)}else Pr=!1,pn&&a.flags&1048576&&oT(a,Ep,a.index);switch(a.lanes=0,a.tag){case 2:var h=a.type;Fp(i,a),i=a.pendingProps;var v=bl(a,Yn.current);Rl(a,d),v=Yv(null,a,h,i,v,d);var C=Xv();return a.flags|=1,typeof v=="object"&&v!==null&&typeof v.render=="function"&&v.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,kr(h)?(C=!0,wp(a)):C=!1,a.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,Wv(a),v.updater=Lp,a.stateNode=v,v._reactInternals=a,r0(a,h,i,d),a=a0(null,a,h,!0,C,d)):(a.tag=0,pn&&C&&_v(a),ur(null,a,v,d),a=a.child),a;case 16:h=a.elementType;e:{switch(Fp(i,a),i=a.pendingProps,v=h._init,h=v(h._payload),a.type=h,v=a.tag=vte(h),i=jo(h,i),v){case 0:a=s0(null,a,h,i,d);break e;case 1:a=XT(null,a,h,i,d);break e;case 11:a=KT(null,a,h,i,d);break e;case 14:a=GT(null,a,h,jo(h.type,i),d);break e}throw Error(n(306,h,""))}return a;case 0:return h=a.type,v=a.pendingProps,v=a.elementType===h?v:jo(h,v),s0(i,a,h,v,d);case 1:return h=a.type,v=a.pendingProps,v=a.elementType===h?v:jo(h,v),XT(i,a,h,v,d);case 3:e:{if(JT(a),i===null)throw Error(n(387));h=a.pendingProps,C=a.memoizedState,v=C.element,pT(i,a),$p(a,h,null,d);var j=a.memoizedState;if(h=j.element,C.isDehydrated)if(C={element:h,isDehydrated:!1,cache:j.cache,pendingSuspenseBoundaries:j.pendingSuspenseBoundaries,transitions:j.transitions},a.updateQueue.baseState=C,a.memoizedState=C,a.flags&256){v=Pl(Error(n(423)),a),a=ZT(i,a,h,d,v);break e}else if(h!==v){v=Pl(Error(n(424)),a),a=ZT(i,a,h,d,v);break e}else for(qr=is(a.stateNode.containerInfo.firstChild),Gr=a,pn=!0,Ao=null,d=dT(a,null,h,d),a.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling;else{if(Sl(),h===v){a=Ti(i,a,d);break e}ur(i,a,h,d)}a=a.child}return a;case 5:return gT(a),i===null&&Nv(a),h=a.type,v=a.pendingProps,C=i!==null?i.memoizedProps:null,j=v.children,Pv(h,v)?j=null:C!==null&&Pv(h,C)&&(a.flags|=32),YT(i,a),ur(i,a,j,d),a.child;case 6:return i===null&&Nv(a),null;case 13:return eO(i,a,d);case 4:return Hv(a,a.stateNode.containerInfo),h=a.pendingProps,i===null?a.child=Cl(a,null,h,d):ur(i,a,h,d),a.child;case 11:return h=a.type,v=a.pendingProps,v=a.elementType===h?v:jo(h,v),KT(i,a,h,v,d);case 7:return ur(i,a,a.pendingProps,d),a.child;case 8:return ur(i,a,a.pendingProps.children,d),a.child;case 12:return ur(i,a,a.pendingProps.children,d),a.child;case 10:e:{if(h=a.type._context,v=a.pendingProps,C=a.memoizedProps,j=v.value,sn(Pp,h._currentValue),h._currentValue=j,C!==null)if($o(C.value,j)){if(C.children===v.children&&!Rr.current){a=Ti(i,a,d);break e}}else for(C=a.child,C!==null&&(C.return=a);C!==null;){var I=C.dependencies;if(I!==null){j=C.child;for(var U=I.firstContext;U!==null;){if(U.context===h){if(C.tag===1){U=Pi(-1,d&-d),U.tag=2;var ue=C.updateQueue;if(ue!==null){ue=ue.shared;var Ce=ue.pending;Ce===null?U.next=U:(U.next=Ce.next,Ce.next=U),ue.pending=U}}C.lanes|=d,U=C.alternate,U!==null&&(U.lanes|=d),zv(C.return,d,a),I.lanes|=d;break}U=U.next}}else if(C.tag===10)j=C.type===a.type?null:C.child;else if(C.tag===18){if(j=C.return,j===null)throw Error(n(341));j.lanes|=d,I=j.alternate,I!==null&&(I.lanes|=d),zv(j,d,a),j=C.sibling}else j=C.child;if(j!==null)j.return=C;else for(j=C;j!==null;){if(j===a){j=null;break}if(C=j.sibling,C!==null){C.return=j.return,j=C;break}j=j.return}C=j}ur(i,a,v.children,d),a=a.child}return a;case 9:return v=a.type,h=a.pendingProps.children,Rl(a,d),v=mo(v),h=h(v),a.flags|=1,ur(i,a,h,d),a.child;case 14:return h=a.type,v=jo(h,a.pendingProps),v=jo(h.type,v),GT(i,a,h,v,d);case 15:return qT(i,a,a.type,a.pendingProps,d);case 17:return h=a.type,v=a.pendingProps,v=a.elementType===h?v:jo(h,v),Fp(i,a),a.tag=1,kr(h)?(i=!0,wp(a)):i=!1,Rl(a,d),FT(a,h,v),r0(a,h,v,d),a0(null,a,h,!0,i,d);case 19:return nO(i,a,d);case 22:return QT(i,a,d)}throw Error(n(156,a.tag))};function kO(i,a){return nt(i,a)}function yte(i,a,d,h){this.tag=i,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vo(i,a,d,h){return new yte(i,a,d,h)}function P0(i){return i=i.prototype,!(!i||!i.isReactComponent)}function vte(i){if(typeof i=="function")return P0(i)?1:0;if(i!=null){if(i=i.$$typeof,i===W)return 11;if(i===te)return 14}return 2}function gs(i,a){var d=i.alternate;return d===null?(d=vo(i.tag,a,i.key,i.mode),d.elementType=i.elementType,d.type=i.type,d.stateNode=i.stateNode,d.alternate=i,i.alternate=d):(d.pendingProps=a,d.type=i.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=i.flags&14680064,d.childLanes=i.childLanes,d.lanes=i.lanes,d.child=i.child,d.memoizedProps=i.memoizedProps,d.memoizedState=i.memoizedState,d.updateQueue=i.updateQueue,a=i.dependencies,d.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},d.sibling=i.sibling,d.index=i.index,d.ref=i.ref,d}function Yp(i,a,d,h,v,C){var j=2;if(h=i,typeof i=="function")P0(i)&&(j=1);else if(typeof i=="string")j=5;else e:switch(i){case _:return la(d.children,v,C,a);case M:j=8,v|=8;break;case F:return i=vo(12,d,a,v|2),i.elementType=F,i.lanes=C,i;case H:return i=vo(13,d,a,v),i.elementType=H,i.lanes=C,i;case z:return i=vo(19,d,a,v),i.elementType=z,i.lanes=C,i;case X:return Xp(d,v,C,a);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case B:j=10;break e;case G:j=9;break e;case W:j=11;break e;case te:j=14;break e;case Z:j=16,h=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return a=vo(j,d,a,v),a.elementType=i,a.type=h,a.lanes=C,a}function la(i,a,d,h){return i=vo(7,i,h,a),i.lanes=d,i}function Xp(i,a,d,h){return i=vo(22,i,h,a),i.elementType=X,i.lanes=d,i.stateNode={isHidden:!1},i}function T0(i,a,d){return i=vo(6,i,null,a),i.lanes=d,i}function O0(i,a,d){return a=vo(4,i.children!==null?i.children:[],i.key,a),a.lanes=d,a.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},a}function bte(i,a,d,h,v){this.tag=a,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=nv(0),this.expirationTimes=nv(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nv(0),this.identifierPrefix=h,this.onRecoverableError=v,this.mutableSourceEagerHydrationData=null}function $0(i,a,d,h,v,C,j,I,U){return i=new bte(i,a,d,I,U),a===1?(a=1,C===!0&&(a|=8)):a=0,C=vo(3,null,null,a),i.current=C,C.stateNode=i,C.memoizedState={element:h,isDehydrated:d,cache:null,transitions:null,pendingSuspenseBoundaries:null},Wv(C),i}function xte(i,a,d){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:h==null?null:""+h,children:i,containerInfo:a,implementation:d}}function PO(i){if(!i)return as;i=i._reactInternals;e:{if(Q(i)!==i||i.tag!==1)throw Error(n(170));var a=i;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if(kr(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(a!==null);throw Error(n(171))}if(i.tag===1){var d=i.type;if(kr(d))return tT(i,d,a)}return a}function TO(i,a,d,h,v,C,j,I,U){return i=$0(d,h,!0,i,v,C,j,I,U),i.context=PO(null),d=i.current,h=dr(),v=hs(d),C=Pi(h,v),C.callback=a??null,us(d,C,v),i.current.lanes=v,au(i,v,h),Or(i,h),i}function Jp(i,a,d,h){var v=a.current,C=dr(),j=hs(v);return d=PO(d),a.context===null?a.context=d:a.pendingContext=d,a=Pi(C,j),a.payload={element:i},h=h===void 0?null:h,h!==null&&(a.callback=h),i=us(v,a,j),i!==null&&(Mo(i,v,j,C),Op(i,v,j)),j}function Zp(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function OO(i,a){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var d=i.retryLane;i.retryLane=d!==0&&d<a?d:a}}function A0(i,a){OO(i,a),(i=i.alternate)&&OO(i,a)}function wte(){return null}var $O=typeof reportError=="function"?reportError:function(i){console.error(i)};function j0(i){this._internalRoot=i}eh.prototype.render=j0.prototype.render=function(i){var a=this._internalRoot;if(a===null)throw Error(n(409));Jp(i,a,null,null)},eh.prototype.unmount=j0.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var a=i.containerInfo;ia(function(){Jp(null,i,null,null)}),a[Si]=null}};function eh(i){this._internalRoot=i}eh.prototype.unstable_scheduleHydration=function(i){if(i){var a=pP();i={blockedOn:null,target:i,priority:a};for(var d=0;d<ns.length&&a!==0&&a<ns[d].priority;d++);ns.splice(d,0,i),d===0&&gP(i)}};function _0(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function th(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function AO(){}function Ste(i,a,d,h,v){if(v){if(typeof h=="function"){var C=h;h=function(){var ue=Zp(j);C.call(ue)}}var j=TO(a,h,i,0,null,!1,!1,"",AO);return i._reactRootContainer=j,i[Si]=j.current,wu(i.nodeType===8?i.parentNode:i),ia(),j}for(;v=i.lastChild;)i.removeChild(v);if(typeof h=="function"){var I=h;h=function(){var ue=Zp(U);I.call(ue)}}var U=$0(i,0,!1,null,null,!1,!1,"",AO);return i._reactRootContainer=U,i[Si]=U.current,wu(i.nodeType===8?i.parentNode:i),ia(function(){Jp(a,U,d,h)}),U}function nh(i,a,d,h,v){var C=d._reactRootContainer;if(C){var j=C;if(typeof v=="function"){var I=v;v=function(){var U=Zp(j);I.call(U)}}Jp(a,j,i,v)}else j=Ste(d,a,i,v,h);return Zp(j)}dP=function(i){switch(i.tag){case 3:var a=i.stateNode;if(a.current.memoizedState.isDehydrated){var d=su(a.pendingLanes);d!==0&&(rv(a,d|1),Or(a,Jt()),!(Lt&6)&&($l=Jt()+500,ls()))}break;case 13:ia(function(){var h=ki(i,1);if(h!==null){var v=dr();Mo(h,i,1,v)}}),A0(i,1)}},ov=function(i){if(i.tag===13){var a=ki(i,134217728);if(a!==null){var d=dr();Mo(a,i,134217728,d)}A0(i,134217728)}},fP=function(i){if(i.tag===13){var a=hs(i),d=ki(i,a);if(d!==null){var h=dr();Mo(d,i,a,h)}A0(i,a)}},pP=function(){return Xt},hP=function(i,a){var d=Xt;try{return Xt=i,a()}finally{Xt=d}},It=function(i,a,d){switch(a){case"input":if(Ot(i,d),a=d.name,d.type==="radio"&&a!=null){for(d=i;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),a=0;a<d.length;a++){var h=d[a];if(h!==i&&h.form===i.form){var v=bp(h);if(!v)throw Error(n(90));Be(h),Ot(h,v)}}}break;case"textarea":pt(i,d);break;case"select":a=d.value,a!=null&&dt(i,!!d.multiple,a,!1)}},Po=E0,To=ia;var Cte={usingClientEntryPoint:!1,Events:[Eu,yl,bp,Qn,Hr,E0]},Du={findFiberByHostInstance:Xs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ete={bundleType:Du.bundleType,version:Du.version,rendererPackageName:Du.rendererPackageName,rendererConfig:Du.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:A.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=De(i),i===null?null:i.stateNode},findFiberByHostInstance:Du.findFiberByHostInstance||wte,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rh.isDisabled&&rh.supportsFiber)try{vt=rh.inject(Ete),Nt=rh}catch{}}return fr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Cte,fr.createPortal=function(i,a){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_0(a))throw Error(n(200));return xte(i,a,null,d)},fr.createRoot=function(i,a){if(!_0(i))throw Error(n(299));var d=!1,h="",v=$O;return a!=null&&(a.unstable_strictMode===!0&&(d=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onRecoverableError!==void 0&&(v=a.onRecoverableError)),a=$0(i,1,!1,null,null,d,!1,h,v),i[Si]=a.current,wu(i.nodeType===8?i.parentNode:i),new j0(a)},fr.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var a=i._reactInternals;if(a===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=De(a),i=i===null?null:i.stateNode,i},fr.flushSync=function(i){return ia(i)},fr.hydrate=function(i,a,d){if(!th(a))throw Error(n(200));return nh(null,i,a,!0,d)},fr.hydrateRoot=function(i,a,d){if(!_0(i))throw Error(n(405));var h=d!=null&&d.hydratedSources||null,v=!1,C="",j=$O;if(d!=null&&(d.unstable_strictMode===!0&&(v=!0),d.identifierPrefix!==void 0&&(C=d.identifierPrefix),d.onRecoverableError!==void 0&&(j=d.onRecoverableError)),a=TO(a,null,i,1,d??null,v,!1,C,j),i[Si]=a.current,wu(i),h)for(i=0;i<h.length;i++)d=h[i],v=d._getVersion,v=v(d._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[d,v]:a.mutableSourceEagerHydrationData.push(d,v);return new eh(a)},fr.render=function(i,a,d){if(!th(a))throw Error(n(200));return nh(null,i,a,!1,d)},fr.unmountComponentAtNode=function(i){if(!th(i))throw Error(n(40));return i._reactRootContainer?(ia(function(){nh(null,null,i,!1,function(){i._reactRootContainer=null,i[Si]=null})}),!0):!1},fr.unstable_batchedUpdates=E0,fr.unstable_renderSubtreeIntoContainer=function(i,a,d,h){if(!th(d))throw Error(n(200));if(i==null||i._reactInternals===void 0)throw Error(n(38));return nh(i,a,d,!1,h)},fr.version="18.3.1-next-f1338f8080-20240426",fr}function U0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(U0)}catch(e){console.error(e)}}U0(),D0.exports=FO();var Bu=D0.exports;const vs=No(Bu),BO=$i({__proto__:null,default:vs},[Bu]);var W0=Bu;oh.createRoot=W0.createRoot,oh.hydrateRoot=W0.hydrateRoot;var zO=Object.defineProperty,H0=e=>{throw TypeError(e)},UO=(e,t,n)=>t in e?zO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ar=(e,t,n)=>UO(e,typeof t!="symbol"?t+"":t,n),V0=(e,t,n)=>t.has(e)||H0("Cannot "+n),ne=(e,t,n)=>(V0(e,t,"read from private field"),n?n.call(e):t.get(e)),WO=(e,t,n)=>t.has(e)?H0("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),HO=(e,t,n,r)=>(V0(e,t,"write to private field"),t.set(e,n),n);function K0(e,t){return function(){return e.apply(t,arguments)}}const{toString:VO}=Object.prototype,{getPrototypeOf:ah}=Object,zu=(e=>t=>{const n=VO.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),bo=e=>(e=e.toLowerCase(),t=>zu(t)===e),Uu=e=>t=>typeof t===e,{isArray:ca}=Array,_l=Uu("undefined");function KO(e){return e!==null&&!_l(e)&&e.constructor!==null&&!_l(e.constructor)&&jr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const G0=bo("ArrayBuffer");function GO(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&G0(e.buffer),t}const qO=Uu("string"),jr=Uu("function"),q0=Uu("number"),Wu=e=>e!==null&&typeof e=="object",QO=e=>e===!0||e===!1,Hu=e=>{if(zu(e)!=="object")return!1;const t=ah(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},YO=bo("Date"),XO=bo("File"),JO=bo("Blob"),ZO=bo("FileList"),e2=e=>Wu(e)&&jr(e.pipe),t2=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||jr(e.append)&&((t=zu(e))==="formdata"||t==="object"&&jr(e.toString)&&e.toString()==="[object FormData]"))},n2=bo("URLSearchParams"),[r2,o2,i2,s2]=["ReadableStream","Request","Response","Headers"].map(bo),a2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Il(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),ca(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;let u;for(r=0;r<l;r++)u=s[r],t.call(null,e[u],u,e)}}function Q0(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const bs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Y0=e=>!_l(e)&&e!==bs;function lh(){const{caseless:e}=Y0(this)&&this||{},t={},n=(r,o)=>{const s=e&&Q0(t,o)||o;Hu(t[s])&&Hu(r)?t[s]=lh(t[s],r):Hu(r)?t[s]=lh({},r):ca(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Il(arguments[r],n);return t}const l2=(e,t,n,{allOwnKeys:r}={})=>(Il(t,(o,s)=>{n&&jr(o)?e[s]=K0(o,n):e[s]=o},{allOwnKeys:r}),e),c2=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),u2=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},d2=(e,t,n,r)=>{let o,s,l;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)l=o[s],(!r||r(l,e,t))&&!u[l]&&(t[l]=e[l],u[l]=!0);e=n!==!1&&ah(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},f2=(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},p2=e=>{if(!e)return null;if(ca(e))return e;let t=e.length;if(!q0(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},h2=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ah(Uint8Array)),m2=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},g2=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},y2=bo("HTMLFormElement"),v2=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,r){return n.toUpperCase()+r}),X0=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),b2=bo("RegExp"),J0=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Il(n,(o,s)=>{let l;(l=t(o,s,e))!==!1&&(r[s]=l||o)}),Object.defineProperties(e,r)},x2=e=>{J0(e,(t,n)=>{if(jr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(jr(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+"'")})}})},w2=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return ca(e)?r(e):r(String(e).split(t)),n},S2=()=>{},C2=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ch="abcdefghijklmnopqrstuvwxyz",Z0="0123456789",eb={DIGIT:Z0,ALPHA:ch,ALPHA_DIGIT:ch+ch.toUpperCase()+Z0},E2=(e=16,t=eb.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function R2(e){return!!(e&&jr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const k2=e=>{const t=new Array(10),n=(r,o)=>{if(Wu(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=ca(r)?[]:{};return Il(r,(l,u)=>{const c=n(l,o+1);!_l(c)&&(s[u]=c)}),t[o]=void 0,s}}return r};return n(e,0)},P2=bo("AsyncFunction"),T2=e=>e&&(Wu(e)||jr(e))&&jr(e.then)&&jr(e.catch),tb=((e,t)=>e?setImmediate:t?((n,r)=>(bs.addEventListener("message",({source:o,data:s})=>{o===bs&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),bs.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",jr(bs.postMessage)),O2=typeof queueMicrotask<"u"?queueMicrotask.bind(bs):typeof process<"u"&&process.nextTick||tb,fe={isArray:ca,isArrayBuffer:G0,isBuffer:KO,isFormData:t2,isArrayBufferView:GO,isString:qO,isNumber:q0,isBoolean:QO,isObject:Wu,isPlainObject:Hu,isReadableStream:r2,isRequest:o2,isResponse:i2,isHeaders:s2,isUndefined:_l,isDate:YO,isFile:XO,isBlob:JO,isRegExp:b2,isFunction:jr,isStream:e2,isURLSearchParams:n2,isTypedArray:h2,isFileList:ZO,forEach:Il,merge:lh,extend:l2,trim:a2,stripBOM:c2,inherits:u2,toFlatObject:d2,kindOf:zu,kindOfTest:bo,endsWith:f2,toArray:p2,forEachEntry:m2,matchAll:g2,isHTMLForm:y2,hasOwnProperty:X0,hasOwnProp:X0,reduceDescriptors:J0,freezeMethods:x2,toObjectSet:w2,toCamelCase:v2,noop:S2,toFiniteNumber:C2,findKey:Q0,global:bs,isContextDefined:Y0,ALPHABET:eb,generateString:E2,isSpecCompliantForm:R2,toJSONObject:k2,isAsyncFn:P2,isThenable:T2,setImmediate:tb,asap:O2};function wt(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}fe.inherits(wt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:fe.toJSONObject(this.config),code:this.code,status:this.status}}});const nb=wt.prototype,rb={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{rb[e]={value:e}}),Object.defineProperties(wt,rb),Object.defineProperty(nb,"isAxiosError",{value:!0}),wt.from=(e,t,n,r,o,s)=>{const l=Object.create(nb);return fe.toFlatObject(e,l,function(u){return u!==Error.prototype},u=>u!=="isAxiosError"),wt.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,s&&Object.assign(l,s),l};const $2=null;function uh(e){return fe.isPlainObject(e)||fe.isArray(e)}function ob(e){return fe.endsWith(e,"[]")?e.slice(0,-2):e}function ib(e,t,n){return e?e.concat(t).map(function(r,o){return r=ob(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function A2(e){return fe.isArray(e)&&!e.some(uh)}const j2=fe.toFlatObject(fe,{},null,function(e){return/^is[A-Z]/.test(e)});function Vu(e,t,n){if(!fe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=fe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,x){return!fe.isUndefined(x[S])});const r=n.metaTokens,o=n.visitor||f,s=n.dots,l=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&fe.isSpecCompliantForm(t);if(!fe.isFunction(o))throw new TypeError("visitor must be a function");function c(S){if(S===null)return"";if(fe.isDate(S))return S.toISOString();if(!u&&fe.isBlob(S))throw new wt("Blob is not supported. Use a Buffer instead.");return fe.isArrayBuffer(S)||fe.isTypedArray(S)?u&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function f(S,x,b){let w=S;if(S&&!b&&typeof S=="object"){if(fe.endsWith(x,"{}"))x=r?x:x.slice(0,-2),S=JSON.stringify(S);else if(fe.isArray(S)&&A2(S)||(fe.isFileList(S)||fe.endsWith(x,"[]"))&&(w=fe.toArray(S)))return x=ob(x),w.forEach(function(P,R){!(fe.isUndefined(P)||P===null)&&t.append(l===!0?ib([x],R,s):l===null?x:x+"[]",c(P))}),!1}return uh(S)?!0:(t.append(ib(b,x,s),c(S)),!1)}const p=[],m=Object.assign(j2,{defaultVisitor:f,convertValue:c,isVisitable:uh});function g(S,x){if(!fe.isUndefined(S)){if(p.indexOf(S)!==-1)throw Error("Circular reference detected in "+x.join("."));p.push(S),fe.forEach(S,function(b,w){(!(fe.isUndefined(b)||b===null)&&o.call(t,b,fe.isString(w)?w.trim():w,x,m))===!0&&g(b,x?x.concat(w):[w])}),p.pop()}}if(!fe.isObject(e))throw new TypeError("data must be an object");return g(e),t}function sb(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function dh(e,t){this._pairs=[],e&&Vu(e,this,t)}const ab=dh.prototype;ab.append=function(e,t){this._pairs.push([e,t])},ab.toString=function(e){const t=e?function(n){return e.call(this,n,sb)}:sb;return this._pairs.map(function(n){return t(n[0])+"="+t(n[1])},"").join("&")};function _2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function lb(e,t,n){if(!t)return e;const r=n&&n.encode||_2,o=n&&n.serialize;let s;if(o?s=o(t,n):s=fe.isURLSearchParams(t)?t.toString():new dh(t,n).toString(r),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class cb{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){fe.forEach(this.handlers,function(n){n!==null&&t(n)})}}const ub={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},I2=typeof URLSearchParams<"u"?URLSearchParams:dh,M2=typeof FormData<"u"?FormData:null,N2=typeof Blob<"u"?Blob:null,L2={isBrowser:!0,classes:{URLSearchParams:I2,FormData:M2,Blob:N2},protocols:["http","https","file","blob","url","data"]},fh=typeof window<"u"&&typeof document<"u",ph=typeof navigator=="object"&&navigator||void 0,D2=fh&&(!ph||["ReactNative","NativeScript","NS"].indexOf(ph.product)<0),F2=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",B2=fh&&window.location.href||"http://localhost",z2=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fh,hasStandardBrowserEnv:D2,hasStandardBrowserWebWorkerEnv:F2,navigator:ph,origin:B2},Symbol.toStringTag,{value:"Module"})),pr={...z2,...L2};function U2(e,t){return Vu(e,new pr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return pr.isNode&&fe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function W2(e){return fe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function H2(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function db(e){function t(n,r,o,s){let l=n[s++];if(l==="__proto__")return!0;const u=Number.isFinite(+l),c=s>=n.length;return l=!l&&fe.isArray(o)?o.length:l,c?(fe.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!u):((!o[l]||!fe.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],s)&&fe.isArray(o[l])&&(o[l]=H2(o[l])),!u)}if(fe.isFormData(e)&&fe.isFunction(e.entries)){const n={};return fe.forEachEntry(e,(r,o)=>{t(W2(r),o,n,0)}),n}return null}function V2(e,t,n){if(fe.isString(e))try{return(t||JSON.parse)(e),fe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const Ml={transitional:ub,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=fe.isObject(e);if(o&&fe.isHTMLForm(e)&&(e=new FormData(e)),fe.isFormData(e))return r?JSON.stringify(db(e)):e;if(fe.isArrayBuffer(e)||fe.isBuffer(e)||fe.isStream(e)||fe.isFile(e)||fe.isBlob(e)||fe.isReadableStream(e))return e;if(fe.isArrayBufferView(e))return e.buffer;if(fe.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return U2(e,this.formSerializer).toString();if((s=fe.isFileList(e))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Vu(s?{"files[]":e}:e,l&&new l,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),V2(e)):e}],transformResponse:[function(e){const t=this.transitional||Ml.transitional,n=t&&t.forcedJSONParsing,r=this.responseType==="json";if(fe.isResponse(e)||fe.isReadableStream(e))return e;if(e&&fe.isString(e)&&(n&&!this.responseType||r)){const o=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(s){if(o)throw s.name==="SyntaxError"?wt.from(s,wt.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pr.classes.FormData,Blob:pr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};fe.forEach(["delete","get","head","post","put","patch"],e=>{Ml.headers[e]={}});const K2=fe.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"]),G2=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
9
9
|
`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&K2[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},fb=Symbol("internals");function Nl(e){return e&&String(e).trim().toLowerCase()}function Ku(e){return e===!1||e==null?e:fe.isArray(e)?e.map(Ku):String(e)}function q2(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 Q2=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function hh(e,t,n,r,o){if(fe.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!fe.isString(t)){if(fe.isString(r))return t.indexOf(r)!==-1;if(fe.isRegExp(r))return r.test(t)}}function Y2(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function X2(e,t){const n=fe.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,l){return this[r].call(this,t,o,s,l)},configurable:!0})})}let hr=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(u,c,f){const p=Nl(c);if(!p)throw new Error("header name must be a non-empty string");const m=fe.findKey(o,p);(!m||o[m]===void 0||f===!0||f===void 0&&o[m]!==!1)&&(o[m||c]=Ku(u))}const l=(u,c)=>fe.forEach(u,(f,p)=>s(f,p,c));if(fe.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(fe.isString(t)&&(t=t.trim())&&!Q2(t))l(G2(t),n);else if(fe.isHeaders(t))for(const[u,c]of t.entries())s(c,u,r);else t!=null&&s(n,t,r);return this}get(t,n){if(t=Nl(t),t){const r=fe.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return q2(o);if(fe.isFunction(n))return n.call(this,o,r);if(fe.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Nl(t),t){const r=fe.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||hh(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(l){if(l=Nl(l),l){const u=fe.findKey(r,l);u&&(!n||hh(r,r[u],u,n))&&(delete r[u],o=!0)}}return fe.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||hh(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return fe.forEach(this,(o,s)=>{const l=fe.findKey(r,s);if(l){n[l]=Ku(o),delete n[s];return}const u=t?Y2(s):String(s).trim();u!==s&&delete n[s],n[u]=Ku(o),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return fe.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&fe.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(`
|
|
10
10
|
`)}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(o=>r.set(o)),r}static accessor(t){const n=(this[fb]=this[fb]={accessors:{}}).accessors,r=this.prototype;function o(s){const l=Nl(s);n[l]||(X2(r,s),n[l]=!0)}return fe.isArray(t)?t.forEach(o):o(t),this}};hr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),fe.reduceDescriptors(hr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),fe.freezeMethods(hr);function mh(e,t){const n=this||Ml,r=t||n,o=hr.from(r.headers);let s=r.data;return fe.forEach(e,function(l){s=l.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function pb(e){return!!(e&&e.__CANCEL__)}function ua(e,t,n){wt.call(this,e??"canceled",wt.ERR_CANCELED,t,n),this.name="CanceledError"}fe.inherits(ua,wt,{__CANCEL__:!0});function hb(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new wt("Request failed with status code "+n.status,[wt.ERR_BAD_REQUEST,wt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function J2(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Z2(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,l;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),f=r[s];l||(l=c),n[o]=u,r[o]=c;let p=s,m=0;for(;p!==o;)m+=n[p++],p=p%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-l<t)return;const g=f&&c-f;return g?Math.round(m*1e3/g):void 0}}function e$(e,t){let n=0,r=1e3/t,o,s;const l=(u,c=Date.now())=>{n=c,o=null,s&&(clearTimeout(s),s=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?l(u,c):(o=u,s||(s=setTimeout(()=>{s=null,l(o)},r-f)))},()=>o&&l(o)]}const Gu=(e,t,n=3)=>{let r=0;const o=Z2(50,250);return e$(s=>{const l=s.loaded,u=s.lengthComputable?s.total:void 0,c=l-r,f=o(c),p=l<=u;r=l;const m={loaded:l,total:u,progress:u?l/u:void 0,bytes:c,rate:f||void 0,estimated:f&&u&&p?(u-l)/f:void 0,event:s,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(m)},n)},mb=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},gb=e=>(...t)=>fe.asap(()=>e(...t)),t$=pr.hasStandardBrowserEnv?function(){const e=pr.navigator&&/(msie|trident)/i.test(pr.navigator.userAgent),t=document.createElement("a");let n;function r(o){let s=o;return e&&(t.setAttribute("href",s),s=t.href),t.setAttribute("href",s),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(o){const s=fe.isString(o)?r(o):o;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}(),n$=pr.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const l=[e+"="+encodeURIComponent(t)];fe.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),fe.isString(r)&&l.push("path="+r),fe.isString(o)&&l.push("domain="+o),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function r$(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function o$(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function yb(e,t){return e&&!r$(t)?o$(e,t):t}const vb=e=>e instanceof hr?{...e}:e;function xs(e,t){t=t||{};const n={};function r(f,p,m){return fe.isPlainObject(f)&&fe.isPlainObject(p)?fe.merge.call({caseless:m},f,p):fe.isPlainObject(p)?fe.merge({},p):fe.isArray(p)?p.slice():p}function o(f,p,m){if(fe.isUndefined(p)){if(!fe.isUndefined(f))return r(void 0,f,m)}else return r(f,p,m)}function s(f,p){if(!fe.isUndefined(p))return r(void 0,p)}function l(f,p){if(fe.isUndefined(p)){if(!fe.isUndefined(f))return r(void 0,f)}else return r(void 0,p)}function u(f,p,m){if(m in t)return r(f,p);if(m in e)return r(void 0,f)}const c={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:u,headers:(f,p)=>o(vb(f),vb(p),!0)};return fe.forEach(Object.keys(Object.assign({},e,t)),function(f){const p=c[f]||o,m=p(e[f],t[f],f);fe.isUndefined(m)&&p!==u||(n[f]=m)}),n}const bb=e=>{const t=xs({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:l,auth:u}=t;t.headers=l=hr.from(l),t.url=lb(yb(t.baseURL,t.url),e.params,e.paramsSerializer),u&&l.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let c;if(fe.isFormData(n)){if(pr.hasStandardBrowserEnv||pr.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((c=l.getContentType())!==!1){const[f,...p]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];l.setContentType([f||"multipart/form-data",...p].join("; "))}}if(pr.hasStandardBrowserEnv&&(r&&fe.isFunction(r)&&(r=r(t)),r||r!==!1&&t$(t.url))){const f=o&&s&&n$.read(s);f&&l.set(o,f)}return t},i$=typeof XMLHttpRequest<"u",s$=i$&&function(e){return new Promise(function(t,n){const r=bb(e);let o=r.data;const s=hr.from(r.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:c}=r,f,p,m,g,S;function x(){g&&g(),S&&S(),r.cancelToken&&r.cancelToken.unsubscribe(f),r.signal&&r.signal.removeEventListener("abort",f)}let b=new XMLHttpRequest;b.open(r.method.toUpperCase(),r.url,!0),b.timeout=r.timeout;function w(){if(!b)return;const R=hr.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),O={data:!l||l==="text"||l==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:R,config:e,request:b};hb(function(A){t(A),x()},function(A){n(A),x()},O),b=null}"onloadend"in b?b.onloadend=w:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(w)},b.onabort=function(){b&&(n(new wt("Request aborted",wt.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new wt("Network Error",wt.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let R=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const O=r.transitional||ub;r.timeoutErrorMessage&&(R=r.timeoutErrorMessage),n(new wt(R,O.clarifyTimeoutError?wt.ETIMEDOUT:wt.ECONNABORTED,e,b)),b=null},o===void 0&&s.setContentType(null),"setRequestHeader"in b&&fe.forEach(s.toJSON(),function(R,O){b.setRequestHeader(O,R)}),fe.isUndefined(r.withCredentials)||(b.withCredentials=!!r.withCredentials),l&&l!=="json"&&(b.responseType=r.responseType),c&&([m,S]=Gu(c,!0),b.addEventListener("progress",m)),u&&b.upload&&([p,g]=Gu(u),b.upload.addEventListener("progress",p),b.upload.addEventListener("loadend",g)),(r.cancelToken||r.signal)&&(f=R=>{b&&(n(!R||R.type?new ua(null,e,b):R),b.abort(),b=null)},r.cancelToken&&r.cancelToken.subscribe(f),r.signal&&(r.signal.aborted?f():r.signal.addEventListener("abort",f)));const P=J2(r.url);if(P&&pr.protocols.indexOf(P)===-1){n(new wt("Unsupported protocol "+P+":",wt.ERR_BAD_REQUEST,e));return}b.send(o||null)})},a$=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(f){if(!o){o=!0,u();const p=f instanceof Error?f:this.reason;r.abort(p instanceof wt?p:new ua(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{l=null,s(new wt(`timeout ${t} of ms exceeded`,wt.ETIMEDOUT))},t);const u=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(s):f.removeEventListener("abort",s)}),e=null)};e.forEach(f=>f.addEventListener("abort",s));const{signal:c}=r;return c.unsubscribe=()=>fe.asap(u),c}},l$=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},c$=async function*(e,t){for await(const n of u$(e))yield*l$(n,t)},u$=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},xb=(e,t,n,r)=>{const o=c$(e,t);let s=0,l,u=c=>{l||(l=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:f,value:p}=await o.next();if(f){u(),c.close();return}let m=p.byteLength;if(n){let g=s+=m;n(g)}c.enqueue(new Uint8Array(p))}catch(f){throw u(f),f}},cancel(c){return u(c),o.return()}},{highWaterMark:2})},qu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",wb=qu&&typeof ReadableStream=="function",d$=qu&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Sb=(e,...t)=>{try{return!!e(...t)}catch{return!1}},f$=wb&&Sb(()=>{let e=!1;const t=new Request(pr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Cb=64*1024,gh=wb&&Sb(()=>fe.isReadableStream(new Response("").body)),Qu={stream:gh&&(e=>e.body)};qu&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Qu[t]&&(Qu[t]=fe.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new wt(`Response type '${t}' is not supported`,wt.ERR_NOT_SUPPORT,r)})})})(new Response);const p$=async e=>{if(e==null)return 0;if(fe.isBlob(e))return e.size;if(fe.isSpecCompliantForm(e))return(await new Request(pr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(fe.isArrayBufferView(e)||fe.isArrayBuffer(e))return e.byteLength;if(fe.isURLSearchParams(e)&&(e=e+""),fe.isString(e))return(await d$(e)).byteLength},h$=async(e,t)=>fe.toFiniteNumber(e.getContentLength())??p$(t),m$=qu&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:l,onDownloadProgress:u,onUploadProgress:c,responseType:f,headers:p,withCredentials:m="same-origin",fetchOptions:g}=bb(e);f=f?(f+"").toLowerCase():"text";let S=a$([o,s&&s.toAbortSignal()],l),x;const b=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let w;try{if(c&&f$&&n!=="get"&&n!=="head"&&(w=await h$(p,r))!==0){let $=new Request(t,{method:"POST",body:r,duplex:"half"}),T;if(fe.isFormData(r)&&(T=$.headers.get("content-type"))&&p.setContentType(T),$.body){const[_,M]=mb(w,Gu(gb(c)));r=xb($.body,Cb,_,M)}}fe.isString(m)||(m=m?"include":"omit");const P="credentials"in Request.prototype;x=new Request(t,{...g,signal:S,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:P?m:void 0});let R=await fetch(x);const O=gh&&(f==="stream"||f==="response");if(gh&&(u||O&&b)){const $={};["status","statusText","headers"].forEach(F=>{$[F]=R[F]});const T=fe.toFiniteNumber(R.headers.get("content-length")),[_,M]=u&&mb(T,Gu(gb(u),!0))||[];R=new Response(xb(R.body,Cb,_,()=>{M&&M(),b&&b()}),$)}f=f||"text";let A=await Qu[fe.findKey(Qu,f)||"text"](R,e);return!O&&b&&b(),await new Promise(($,T)=>{hb($,T,{data:A,headers:hr.from(R.headers),status:R.status,statusText:R.statusText,config:e,request:x})})}catch(P){throw b&&b(),P&&P.name==="TypeError"&&/fetch/i.test(P.message)?Object.assign(new wt("Network Error",wt.ERR_NETWORK,e,x),{cause:P.cause||P}):wt.from(P,P&&P.code,e,x)}}),yh={http:$2,xhr:s$,fetch:m$};fe.forEach(yh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Eb=e=>`- ${e}`,g$=e=>fe.isFunction(e)||e===null||e===!1,Rb={getAdapter:e=>{e=fe.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s<t;s++){n=e[s];let l;if(r=n,!g$(n)&&(r=yh[(l=String(n)).toLowerCase()],r===void 0))throw new wt(`Unknown adapter '${l}'`);if(r)break;o[l||"#"+s]=r}if(!r){const s=Object.entries(o).map(([u,c])=>`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=t?s.length>1?`since :
|
|
11
11
|
`+s.map(Eb).join(`
|
|
12
12
|
`):" "+Eb(s[0]):"as no adapter specified";throw new wt("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:yh};function vh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ua(null,e)}function kb(e){return vh(e),e.headers=hr.from(e.headers),e.data=mh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Rb.getAdapter(e.adapter||Ml.adapter)(e).then(function(t){return vh(e),t.data=mh.call(e,e.transformResponse,t),t.headers=hr.from(t.headers),t},function(t){return pb(t)||(vh(e),t&&t.response&&(t.response.data=mh.call(e,e.transformResponse,t.response),t.response.headers=hr.from(t.response.headers))),Promise.reject(t)})}const Pb="1.7.7",bh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{bh[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Tb={};bh.transitional=function(e,t,n){function r(o,s){return"[Axios v"+Pb+"] Transitional option '"+o+"'"+s+(n?". "+n:"")}return(o,s,l)=>{if(e===!1)throw new wt(r(s," has been removed"+(t?" in "+t:"")),wt.ERR_DEPRECATED);return t&&!Tb[s]&&(Tb[s]=!0,console.warn(r(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(o,s,l):!0}};function y$(e,t,n){if(typeof e!="object")throw new wt("options must be an object",wt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],l=t[s];if(l){const u=e[s],c=u===void 0||l(u,s,e);if(c!==!0)throw new wt("option "+s+" must be "+c,wt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new wt("Unknown option "+s,wt.ERR_BAD_OPTION)}}const xh={assertOptions:y$,validators:bh},Ai=xh.validators;let ws=class{constructor(t){this.defaults=t,this.interceptors={request:new cb,response:new cb}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
13
|
-
`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=xs(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&xh.assertOptions(r,{silentJSONParsing:Ai.transitional(Ai.boolean),forcedJSONParsing:Ai.transitional(Ai.boolean),clarifyTimeoutError:Ai.transitional(Ai.boolean)},!1),o!=null&&(fe.isFunction(o)?n.paramsSerializer={serialize:o}:xh.assertOptions(o,{encode:Ai.function,serialize:Ai.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&fe.merge(s.common,s[n.method]);s&&fe.forEach(["delete","get","head","post","put","patch","common"],x=>{delete s[x]}),n.headers=hr.concat(l,s);const u=[];let c=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(c=c&&x.synchronous,u.unshift(x.fulfilled,x.rejected))});const f=[];this.interceptors.response.forEach(function(x){f.push(x.fulfilled,x.rejected)});let p,m=0,g;if(!c){const x=[kb.bind(this),void 0];for(x.unshift.apply(x,u),x.push.apply(x,f),g=x.length,p=Promise.resolve(n);m<g;)p=p.then(x[m++],x[m++]);return p}g=u.length;let S=n;for(m=0;m<g;){const x=u[m++],b=u[m++];try{S=x(S)}catch(w){b.call(this,w);break}}try{p=kb.call(this,S)}catch(x){return Promise.reject(x)}for(m=0,g=f.length;m<g;)p=p.then(f[m++],f[m++]);return p}getUri(t){t=xs(this.defaults,t);const n=yb(t.baseURL,t.url);return lb(n,t.params,t.paramsSerializer)}};fe.forEach(["delete","get","head","options"],function(e){ws.prototype[e]=function(t,n){return this.request(xs(n||{},{method:e,url:t,data:(n||{}).data}))}}),fe.forEach(["post","put","patch"],function(e){function t(n){return function(r,o,s){return this.request(xs(s||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}ws.prototype[e]=t(),ws.prototype[e+"Form"]=t(!0)});let v$=class _O{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const l=new Promise(u=>{r.subscribe(u),s=u}).then(o);return l.cancel=function(){r.unsubscribe(s)},l},t(function(o,s,l){r.reason||(r.reason=new ua(o,s,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 _O(function(n){t=n}),cancel:t}}};function b$(e){return function(t){return e.apply(null,t)}}function x$(e){return fe.isObject(e)&&e.isAxiosError===!0}const wh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(wh).forEach(([e,t])=>{wh[t]=e});function Ob(e){const t=new ws(e),n=K0(ws.prototype.request,t);return fe.extend(n,ws.prototype,t,{allOwnKeys:!0}),fe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Ob(xs(e,r))},n}const wn=Ob(Ml);wn.Axios=ws,wn.CanceledError=ua,wn.CancelToken=v$,wn.isCancel=pb,wn.VERSION=Pb,wn.toFormData=Vu,wn.AxiosError=wt,wn.Cancel=wn.CanceledError,wn.all=function(e){return Promise.all(e)},wn.spread=b$,wn.isAxiosError=x$,wn.mergeConfig=xs,wn.AxiosHeaders=hr,wn.formToJSON=e=>db(fe.isHTMLForm(e)?new FormData(e):e),wn.getAdapter=Rb.getAdapter,wn.HttpStatusCode=wh,wn.default=wn;const{Axios:Tte,AxiosError:Ote,CanceledError:$te,isCancel:Ate,CancelToken:jte,VERSION:_te,all:Ite,Cancel:Mte,isAxiosError:w$,spread:Nte,toFormData:$b,AxiosHeaders:Lte,HttpStatusCode:Dte,formToJSON:Fte,getAdapter:Bte,mergeConfig:zte}=wn;var Yu=Symbol.for("immer-nothing"),da=Symbol.for("immer-draftable"),zt=Symbol.for("immer-state");function In(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ss=Object.getPrototypeOf;function ri(e){return!!e&&!!e[zt]}function Yr(e){var t;return e?Ab(e)||Array.isArray(e)||!!e[da]||!!((t=e.constructor)!=null&&t[da])||Dl(e)||Fl(e):!1}var S$=Object.prototype.constructor.toString();function Ab(e){if(!e||typeof e!="object")return!1;const t=Ss(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===S$}function C$(e){return ri(e)||In(15,e),e[zt].base_}function fa(e,t){Cs(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Cs(e){const t=e[zt];return t?t.type_:Array.isArray(e)?1:Dl(e)?2:Fl(e)?3:0}function Ll(e,t){return Cs(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Sh(e,t){return Cs(e)===2?e.get(t):e[t]}function jb(e,t,n){const r=Cs(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function E$(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Dl(e){return e instanceof Map}function Fl(e){return e instanceof Set}function Mn(e){return e.copy_||e.base_}function Ch(e,t){if(Dl(e))return new Map(e);if(Fl(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Ab(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[zt];let o=Reflect.ownKeys(r);for(let s=0;s<o.length;s++){const l=o[s],u=r[l];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(r[l]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[l]})}return Object.create(Ss(e),r)}else{const r=Ss(e);if(r!==null&&n)return{...e};const o=Object.create(r);return Object.assign(o,e)}}function Xu(e,t=!1){return Ju(e)||ri(e)||!Yr(e)||(Cs(e)>1&&(e.set=e.add=e.clear=e.delete=R$),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Xu(r,!0))),e}function R$(){In(2)}function Ju(e){return Object.isFrozen(e)}var Eh={};function Es(e){const t=Eh[e];return t||In(0,e),t}function _b(e,t){Eh[e]||(Eh[e]=t)}var Bl;function Zu(){return Bl}function k$(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Ib(e,t){t&&(Es("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Rh(e){kh(e),e.drafts_.forEach(P$),e.drafts_=null}function kh(e){e===Bl&&(Bl=e.parent_)}function Mb(e){return Bl=k$(Bl,e)}function P$(e){const t=e[zt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Nb(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[zt].modified_&&(Rh(t),In(4)),Yr(e)&&(e=ed(t,e),t.parent_||td(t,e)),t.patches_&&Es("Patches").generateReplacementPatches_(n[zt].base_,e,t.patches_,t.inversePatches_)):e=ed(t,n,[]),Rh(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Yu?e:void 0}function ed(e,t,n){if(Ju(t))return t;const r=t[zt];if(!r)return fa(t,(o,s)=>Lb(e,r,t,o,s,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return td(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let s=o,l=!1;r.type_===3&&(s=new Set(o),o.clear(),l=!0),fa(s,(u,c)=>Lb(e,r,o,u,c,n,l)),td(e,o,!1),n&&e.patches_&&Es("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Lb(e,t,n,r,o,s,l){if(ri(o)){const u=s&&t&&t.type_!==3&&!Ll(t.assigned_,r)?s.concat(r):void 0,c=ed(e,o,u);if(jb(n,r,c),ri(c))e.canAutoFreeze_=!1;else return}else l&&n.add(o);if(Yr(o)&&!Ju(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ed(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&td(e,o)}}function td(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Xu(t,n)}function T$(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Zu(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,s=Ph;n&&(o=[r],s=zl);const{revoke:l,proxy:u}=Proxy.revocable(o,s);return r.draft_=u,r.revoke_=l,u}var Ph={get(e,t){if(t===zt)return e;const n=Mn(e);if(!Ll(n,t))return O$(e,n,t);const r=n[t];return e.finalized_||!Yr(r)?r:r===Th(e.base_,t)?(Oh(e),e.copy_[t]=Ul(r,e)):r},has(e,t){return t in Mn(e)},ownKeys(e){return Reflect.ownKeys(Mn(e))},set(e,t,n){const r=Db(Mn(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=Th(Mn(e),t),s=o==null?void 0:o[zt];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(E$(n,o)&&(n!==void 0||Ll(e.base_,t)))return!0;Oh(e),oi(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Th(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Oh(e),oi(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Mn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){In(11)},getPrototypeOf(e){return Ss(e.base_)},setPrototypeOf(){In(12)}},zl={};fa(Ph,(e,t)=>{zl[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),zl.deleteProperty=function(e,t){return zl.set.call(this,e,t,void 0)},zl.set=function(e,t,n){return Ph.set.call(this,e[0],t,n,e[0])};function Th(e,t){const n=e[zt];return(n?Mn(n):e)[t]}function O$(e,t,n){var r;const o=Db(t,n);return o?"value"in o?o.value:(r=o.get)==null?void 0:r.call(e.draft_):void 0}function Db(e,t){if(!(t in e))return;let n=Ss(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Ss(n)}}function oi(e){e.modified_||(e.modified_=!0,e.parent_&&oi(e.parent_))}function Oh(e){e.copy_||(e.copy_=Ch(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Fb=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const s=n;n=t;const l=this;return function(u=s,...c){return l.produce(u,f=>n.call(this,f,...c))}}typeof n!="function"&&In(6),r!==void 0&&typeof r!="function"&&In(7);let o;if(Yr(t)){const s=Mb(this),l=Ul(t,void 0);let u=!0;try{o=n(l),u=!1}finally{u?Rh(s):kh(s)}return Ib(s,r),Nb(o,s)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===Yu&&(o=void 0),this.autoFreeze_&&Xu(o,!0),r){const s=[],l=[];Es("Patches").generateReplacementPatches_(t,o,s,l),r(s,l)}return o}else In(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...l)=>this.produceWithPatches(s,u=>t(u,...l));let r,o;return[this.produce(t,n,(s,l)=>{r=s,o=l}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Yr(e)||In(8),ri(e)&&(e=Bb(e));const t=Mb(this),n=Ul(e,void 0);return n[zt].isManual_=!0,kh(t),n}finishDraft(e,t){const n=e&&e[zt];(!n||!n.isManual_)&&In(9);const{scope_:r}=n;return Ib(r,t),Nb(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=Es("Patches").applyPatches_;return ri(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Ul(e,t){const n=Dl(e)?Es("MapSet").proxyMap_(e,t):Fl(e)?Es("MapSet").proxySet_(e,t):T$(e,t);return(t?t.scope_:Zu()).drafts_.push(n),n}function Bb(e){return ri(e)||In(10,e),zb(e)}function zb(e){if(!Yr(e)||Ju(e))return e;const t=e[zt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Ch(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Ch(e,!0);return fa(n,(r,o)=>{jb(n,r,zb(o))}),t&&(t.finalized_=!1),n}function $$(){const e="replace",t="add",n="remove";function r(m,g,S,x){switch(m.type_){case 0:case 2:return s(m,g,S,x);case 1:return o(m,g,S,x);case 3:return l(m,g,S,x)}}function o(m,g,S,x){let{base_:b,assigned_:w}=m,P=m.copy_;P.length<b.length&&([b,P]=[P,b],[S,x]=[x,S]);for(let R=0;R<b.length;R++)if(w[R]&&P[R]!==b[R]){const O=g.concat([R]);S.push({op:e,path:O,value:p(P[R])}),x.push({op:e,path:O,value:p(b[R])})}for(let R=b.length;R<P.length;R++){const O=g.concat([R]);S.push({op:t,path:O,value:p(P[R])})}for(let R=P.length-1;b.length<=R;--R){const O=g.concat([R]);x.push({op:n,path:O})}}function s(m,g,S,x){const{base_:b,copy_:w}=m;fa(m.assigned_,(P,R)=>{const O=Sh(b,P),A=Sh(w,P),$=R?Ll(b,P)?e:t:n;if(O===A&&$===e)return;const T=g.concat(P);S.push($===n?{op:$,path:T}:{op:$,path:T,value:A}),x.push($===t?{op:n,path:T}:$===n?{op:t,path:T,value:p(O)}:{op:e,path:T,value:p(O)})})}function l(m,g,S,x){let{base_:b,copy_:w}=m,P=0;b.forEach(R=>{if(!w.has(R)){const O=g.concat([P]);S.push({op:n,path:O,value:R}),x.unshift({op:t,path:O,value:R})}P++}),P=0,w.forEach(R=>{if(!b.has(R)){const O=g.concat([P]);S.push({op:t,path:O,value:R}),x.unshift({op:n,path:O,value:R})}P++})}function u(m,g,S,x){S.push({op:e,path:[],value:g===Yu?void 0:g}),x.push({op:e,path:[],value:m})}function c(m,g){return g.forEach(S=>{const{path:x,op:b}=S;let w=m;for(let A=0;A<x.length-1;A++){const $=Cs(w);let T=x[A];typeof T!="string"&&typeof T!="number"&&(T=""+T),($===0||$===1)&&(T==="__proto__"||T==="constructor")&&In(19),typeof w=="function"&&T==="prototype"&&In(19),w=Sh(w,T),typeof w!="object"&&In(18,x.join("/"))}const P=Cs(w),R=f(S.value),O=x[x.length-1];switch(b){case e:switch(P){case 2:return w.set(O,R);case 3:In(16);default:return w[O]=R}case t:switch(P){case 1:return O==="-"?w.push(R):w.splice(O,0,R);case 2:return w.set(O,R);case 3:return w.add(R);default:return w[O]=R}case n:switch(P){case 1:return w.splice(O,1);case 2:return w.delete(O);case 3:return w.delete(S.value);default:return delete w[O]}default:In(17,b)}}),m}function f(m){if(!Yr(m))return m;if(Array.isArray(m))return m.map(f);if(Dl(m))return new Map(Array.from(m.entries()).map(([S,x])=>[S,f(x)]));if(Fl(m))return new Set(Array.from(m).map(f));const g=Object.create(Ss(m));for(const S in m)g[S]=f(m[S]);return Ll(m,da)&&(g[da]=m[da]),g}function p(m){return ri(m)?f(m):m}_b("Patches",{applyPatches_:c,generatePatches_:r,generateReplacementPatches_:u})}function A$(){class e extends Map{constructor(c,f){super(),this[zt]={type_:2,parent_:f,scope_:f?f.scope_:Zu(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:c,draft_:this,isManual_:!1,revoked_:!1}}get size(){return Mn(this[zt]).size}has(c){return Mn(this[zt]).has(c)}set(c,f){const p=this[zt];return l(p),(!Mn(p).has(c)||Mn(p).get(c)!==f)&&(n(p),oi(p),p.assigned_.set(c,!0),p.copy_.set(c,f),p.assigned_.set(c,!0)),this}delete(c){if(!this.has(c))return!1;const f=this[zt];return l(f),n(f),oi(f),f.base_.has(c)?f.assigned_.set(c,!1):f.assigned_.delete(c),f.copy_.delete(c),!0}clear(){const c=this[zt];l(c),Mn(c).size&&(n(c),oi(c),c.assigned_=new Map,fa(c.base_,f=>{c.assigned_.set(f,!1)}),c.copy_.clear())}forEach(c,f){const p=this[zt];Mn(p).forEach((m,g,S)=>{c.call(f,this.get(g),g,this)})}get(c){const f=this[zt];l(f);const p=Mn(f).get(c);if(f.finalized_||!Yr(p)||p!==f.base_.get(c))return p;const m=Ul(p,f);return n(f),f.copy_.set(c,m),m}keys(){return Mn(this[zt]).keys()}values(){const c=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const f=c.next();return f.done?f:{done:!1,value:this.get(f.value)}}}}entries(){const c=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const f=c.next();if(f.done)return f;const p=this.get(f.value);return{done:!1,value:[f.value,p]}}}}[Symbol.iterator](){return this.entries()}}function t(u,c){return new e(u,c)}function n(u){u.copy_||(u.assigned_=new Map,u.copy_=new Map(u.base_))}class r extends Set{constructor(c,f){super(),this[zt]={type_:3,parent_:f,scope_:f?f.scope_:Zu(),modified_:!1,finalized_:!1,copy_:void 0,base_:c,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return Mn(this[zt]).size}has(c){const f=this[zt];return l(f),f.copy_?!!(f.copy_.has(c)||f.drafts_.has(c)&&f.copy_.has(f.drafts_.get(c))):f.base_.has(c)}add(c){const f=this[zt];return l(f),this.has(c)||(s(f),oi(f),f.copy_.add(c)),this}delete(c){if(!this.has(c))return!1;const f=this[zt];return l(f),s(f),oi(f),f.copy_.delete(c)||(f.drafts_.has(c)?f.copy_.delete(f.drafts_.get(c)):!1)}clear(){const c=this[zt];l(c),Mn(c).size&&(s(c),oi(c),c.copy_.clear())}values(){const c=this[zt];return l(c),s(c),c.copy_.values()}entries(){const c=this[zt];return l(c),s(c),c.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(c,f){const p=this.values();let m=p.next();for(;!m.done;)c.call(f,m.value,m.value,this),m=p.next()}}function o(u,c){return new r(u,c)}function s(u){u.copy_||(u.copy_=new Set,u.base_.forEach(c=>{if(Yr(c)){const f=Ul(c,u);u.drafts_.set(c,f),u.copy_.add(f)}else u.copy_.add(c)}))}function l(u){u.revoked_&&In(3,JSON.stringify(Mn(u)))}_b("MapSet",{proxyMap_:t,proxySet_:o})}var _r=new Fb,pa=_r.produce,j$=_r.produceWithPatches.bind(_r),_$=_r.setAutoFreeze.bind(_r),I$=_r.setUseStrictShallowCopy.bind(_r),M$=_r.applyPatches.bind(_r),N$=_r.createDraft.bind(_r),L$=_r.finishDraft.bind(_r);function D$(e){return e}function F$(e){return e}const $h=Object.freeze(Object.defineProperty({__proto__:null,Immer:Fb,applyPatches:M$,castDraft:D$,castImmutable:F$,createDraft:N$,current:Bb,enableMapSet:A$,enablePatches:$$,finishDraft:L$,freeze:Xu,immerable:da,isDraft:ri,isDraftable:Yr,nothing:Yu,original:C$,produce:pa,produceWithPatches:j$,setAutoFreeze:_$,setUseStrictShallowCopy:I$},Symbol.toStringTag,{value:"Module"}));let B$=()=>({emit(e,...t){for(let n=0,r=this.events[e]||[],o=r.length;n<o;n++)r[n](...t)},events:{},on(e,t){var n;return((n=this.events)[e]||(n[e]=[])).push(t),()=>{var r;this.events[e]=(r=this.events[e])==null?void 0:r.filter(o=>t!==o)}}});class ha{constructor(){Ar(this,"emitter"),this.emitter=B$()}on(t,n){return this.emitter.on(t,n)}once(t,n){const r=this.emitter.on(t,o=>{r(),n(o)})}emit(t,...n){this.emitter.emit(t,...n)}flushEvents(){this.emitter.events={}}}var Ub,Wb;class z$ extends(Wb=Error,Ub=Symbol.toStringTag,Wb){constructor(){super("[Luminix] Embed element not found. Make sure to include the `@luminixEmbed()` directive in your Blade template."),Ar(this,Ub,"NoEmbedException")}}const Hb=(e,t="data")=>{if(!document.querySelector("#luminix-embed"))throw new z$;const n=document.getElementById(`luminix-${t}::`+e);return n?n.dataset.json&&n.dataset.value?JSON.parse(n.dataset.value):n.dataset.value:null};var Vb=typeof global=="object"&&global&&global.Object===Object&&global,U$=typeof self=="object"&&self&&self.Object===Object&&self,bo=Vb||U$||Function("return this")(),Xr=bo.Symbol,Kb=Object.prototype,W$=Kb.hasOwnProperty,H$=Kb.toString,Wl=Xr?Xr.toStringTag:void 0;function V$(e){var t=W$.call(e,Wl),n=e[Wl];try{e[Wl]=void 0;var r=!0}catch{}var o=H$.call(e);return r&&(t?e[Wl]=n:delete e[Wl]),o}var K$=Object.prototype,G$=K$.toString;function q$(e){return G$.call(e)}var Q$="[object Null]",Y$="[object Undefined]",Gb=Xr?Xr.toStringTag:void 0;function Rs(e){return e==null?e===void 0?Y$:Q$:Gb&&Gb in Object(e)?V$(e):q$(e)}function Lo(e){return e!=null&&typeof e=="object"}var X$="[object Symbol]";function nd(e){return typeof e=="symbol"||Lo(e)&&Rs(e)==X$}function Ah(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var mr=Array.isArray,J$=1/0,qb=Xr?Xr.prototype:void 0,Qb=qb?qb.toString:void 0;function rd(e){if(typeof e=="string")return e;if(mr(e))return Ah(e,rd)+"";if(nd(e))return Qb?Qb.call(e):"";var t=e+"";return t=="0"&&1/e==-J$?"-0":t}var Z$=/\s/;function eA(e){for(var t=e.length;t--&&Z$.test(e.charAt(t)););return t}var tA=/^\s+/;function Yb(e){return e&&e.slice(0,eA(e)+1).replace(tA,"")}function gr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Xb=NaN,nA=/^[-+]0x[0-9a-f]+$/i,rA=/^0b[01]+$/i,oA=/^0o[0-7]+$/i,iA=parseInt;function jh(e){if(typeof e=="number")return e;if(nd(e))return Xb;if(gr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=gr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Yb(e);var n=rA.test(e);return n||oA.test(e)?iA(e.slice(2),n?2:8):nA.test(e)?Xb:+e}var Jb=1/0,sA=17976931348623157e292;function aA(e){if(!e)return e===0?e:0;if(e=jh(e),e===Jb||e===-Jb){var t=e<0?-1:1;return t*sA}return e===e?e:0}function _h(e){var t=aA(e),n=t%1;return t===t?n?t-n:t:0}function Zb(e){return e}var lA="[object AsyncFunction]",cA="[object Function]",uA="[object GeneratorFunction]",dA="[object Proxy]";function Ih(e){if(!gr(e))return!1;var t=Rs(e);return t==cA||t==uA||t==lA||t==dA}var Mh=bo["__core-js_shared__"],ex=function(){var e=/[^.]+$/.exec(Mh&&Mh.keys&&Mh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function fA(e){return!!ex&&ex in e}var pA=Function.prototype,hA=pA.toString;function ks(e){if(e!=null){try{return hA.call(e)}catch{}try{return e+""}catch{}}return""}var mA=/[\\^$.*+?()[\]{}|]/g,gA=/^\[object .+?Constructor\]$/,yA=Function.prototype,vA=Object.prototype,bA=yA.toString,xA=vA.hasOwnProperty,wA=RegExp("^"+bA.call(xA).replace(mA,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function SA(e){if(!gr(e)||fA(e))return!1;var t=Ih(e)?wA:gA;return t.test(ks(e))}function CA(e,t){return e==null?void 0:e[t]}function Ps(e,t){var n=CA(e,t);return SA(n)?n:void 0}var Nh=Ps(bo,"WeakMap"),tx=Object.create,EA=function(){function e(){}return function(t){if(!gr(t))return{};if(tx)return tx(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function RA(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function nx(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var kA=800,PA=16,TA=Date.now;function OA(e){var t=0,n=0;return function(){var r=TA(),o=PA-(r-n);if(n=r,o>0){if(++t>=kA)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function $A(e){return function(){return e}}var od=function(){try{var e=Ps(Object,"defineProperty");return e({},"",{}),e}catch{}}(),AA=od?function(e,t){return od(e,"toString",{configurable:!0,enumerable:!1,value:$A(t),writable:!0})}:Zb,rx=OA(AA);function jA(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function _A(e,t,n,r){for(var o=e.length,s=n+-1;++s<o;)if(t(e[s],s,e))return s;return-1}function IA(e){return e!==e}function MA(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function ox(e,t,n){return t===t?MA(e,t,n):_A(e,IA,n)}var NA=9007199254740991,LA=/^(?:0|[1-9]\d*)$/;function id(e,t){var n=typeof e;return t=t??NA,!!t&&(n=="number"||n!="symbol"&&LA.test(e))&&e>-1&&e%1==0&&e<t}function Lh(e,t,n){t=="__proto__"&&od?od(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Hl(e,t){return e===t||e!==e&&t!==t}var DA=Object.prototype,FA=DA.hasOwnProperty;function Dh(e,t,n){var r=e[t];(!(FA.call(e,t)&&Hl(r,n))||n===void 0&&!(t in e))&&Lh(e,t,n)}function ix(e,t,n,r){var o=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=void 0;c===void 0&&(c=e[u]),o?Lh(n,u,c):Dh(n,u,c)}return n}var sx=Math.max;function ax(e,t,n){return t=sx(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,s=sx(r.length-t,0),l=Array(s);++o<s;)l[o]=r[t+o];o=-1;for(var u=Array(t+1);++o<t;)u[o]=r[o];return u[t]=n(l),RA(e,this,u)}}function BA(e,t){return rx(ax(e,t,Zb),e+"")}var zA=9007199254740991;function Fh(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=zA}function Vl(e){return e!=null&&Fh(e.length)&&!Ih(e)}function UA(e,t,n){if(!gr(n))return!1;var r=typeof t;return(r=="number"?Vl(n)&&id(t,n.length):r=="string"&&t in n)?Hl(n[t],e):!1}function WA(e){return BA(function(t,n){var r=-1,o=n.length,s=o>1?n[o-1]:void 0,l=o>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(o--,s):void 0,l&&UA(n[0],n[1],l)&&(s=o<3?void 0:s,o=1),t=Object(t);++r<o;){var u=n[r];u&&e(t,u,r,s)}return t})}var HA=Object.prototype;function sd(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||HA;return e===n}function VA(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var KA="[object Arguments]";function lx(e){return Lo(e)&&Rs(e)==KA}var cx=Object.prototype,GA=cx.hasOwnProperty,qA=cx.propertyIsEnumerable,ma=lx(function(){return arguments}())?lx:function(e){return Lo(e)&&GA.call(e,"callee")&&!qA.call(e,"callee")};function QA(){return!1}var ux=typeof exports=="object"&&exports&&!exports.nodeType&&exports,dx=ux&&typeof module=="object"&&module&&!module.nodeType&&module,YA=dx&&dx.exports===ux,fx=YA?bo.Buffer:void 0,XA=fx?fx.isBuffer:void 0,ga=XA||QA,JA="[object Arguments]",ZA="[object Array]",ej="[object Boolean]",tj="[object Date]",nj="[object Error]",rj="[object Function]",oj="[object Map]",ij="[object Number]",sj="[object Object]",aj="[object RegExp]",lj="[object Set]",cj="[object String]",uj="[object WeakMap]",dj="[object ArrayBuffer]",fj="[object DataView]",pj="[object Float32Array]",hj="[object Float64Array]",mj="[object Int8Array]",gj="[object Int16Array]",yj="[object Int32Array]",vj="[object Uint8Array]",bj="[object Uint8ClampedArray]",xj="[object Uint16Array]",wj="[object Uint32Array]",an={};an[pj]=an[hj]=an[mj]=an[gj]=an[yj]=an[vj]=an[bj]=an[xj]=an[wj]=!0,an[JA]=an[ZA]=an[dj]=an[ej]=an[fj]=an[tj]=an[nj]=an[rj]=an[oj]=an[ij]=an[sj]=an[aj]=an[lj]=an[cj]=an[uj]=!1;function Sj(e){return Lo(e)&&Fh(e.length)&&!!an[Rs(e)]}function Bh(e){return function(t){return e(t)}}var px=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Kl=px&&typeof module=="object"&&module&&!module.nodeType&&module,Cj=Kl&&Kl.exports===px,zh=Cj&&Vb.process,ya=function(){try{var e=Kl&&Kl.require&&Kl.require("util").types;return e||zh&&zh.binding&&zh.binding("util")}catch{}}(),hx=ya&&ya.isTypedArray,ad=hx?Bh(hx):Sj,Ej=Object.prototype,Rj=Ej.hasOwnProperty;function mx(e,t){var n=mr(e),r=!n&&ma(e),o=!n&&!r&&ga(e),s=!n&&!r&&!o&&ad(e),l=n||r||o||s,u=l?VA(e.length,String):[],c=u.length;for(var f in e)(t||Rj.call(e,f))&&!(l&&(f=="length"||o&&(f=="offset"||f=="parent")||s&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||id(f,c)))&&u.push(f);return u}function gx(e,t){return function(n){return e(t(n))}}var kj=gx(Object.keys,Object),Pj=Object.prototype,Tj=Pj.hasOwnProperty;function yx(e){if(!sd(e))return kj(e);var t=[];for(var n in Object(e))Tj.call(e,n)&&n!="constructor"&&t.push(n);return t}function vx(e){return Vl(e)?mx(e):yx(e)}function Oj(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var $j=Object.prototype,Aj=$j.hasOwnProperty;function jj(e){if(!gr(e))return Oj(e);var t=sd(e),n=[];for(var r in e)r=="constructor"&&(t||!Aj.call(e,r))||n.push(r);return n}function Uh(e){return Vl(e)?mx(e,!0):jj(e)}var _j=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ij=/^\w*$/;function Mj(e,t){if(mr(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||nd(e)?!0:Ij.test(e)||!_j.test(e)||t!=null&&e in Object(t)}var Gl=Ps(Object,"create");function Nj(){this.__data__=Gl?Gl(null):{},this.size=0}function Lj(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Dj="__lodash_hash_undefined__",Fj=Object.prototype,Bj=Fj.hasOwnProperty;function zj(e){var t=this.__data__;if(Gl){var n=t[e];return n===Dj?void 0:n}return Bj.call(t,e)?t[e]:void 0}var Uj=Object.prototype,Wj=Uj.hasOwnProperty;function Hj(e){var t=this.__data__;return Gl?t[e]!==void 0:Wj.call(t,e)}var Vj="__lodash_hash_undefined__";function Kj(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Gl&&t===void 0?Vj:t,this}function Ts(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ts.prototype.clear=Nj,Ts.prototype.delete=Lj,Ts.prototype.get=zj,Ts.prototype.has=Hj,Ts.prototype.set=Kj;function Gj(){this.__data__=[],this.size=0}function ld(e,t){for(var n=e.length;n--;)if(Hl(e[n][0],t))return n;return-1}var qj=Array.prototype,Qj=qj.splice;function Yj(e){var t=this.__data__,n=ld(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Qj.call(t,n,1),--this.size,!0}function Xj(e){var t=this.__data__,n=ld(t,e);return n<0?void 0:t[n][1]}function Jj(e){return ld(this.__data__,e)>-1}function Zj(e,t){var n=this.__data__,r=ld(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ii(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ii.prototype.clear=Gj,ii.prototype.delete=Yj,ii.prototype.get=Xj,ii.prototype.has=Jj,ii.prototype.set=Zj;var ql=Ps(bo,"Map");function e_(){this.size=0,this.__data__={hash:new Ts,map:new(ql||ii),string:new Ts}}function t_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function cd(e,t){var n=e.__data__;return t_(t)?n[typeof t=="string"?"string":"hash"]:n.map}function n_(e){var t=cd(this,e).delete(e);return this.size-=t?1:0,t}function r_(e){return cd(this,e).get(e)}function o_(e){return cd(this,e).has(e)}function i_(e,t){var n=cd(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function si(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}si.prototype.clear=e_,si.prototype.delete=n_,si.prototype.get=r_,si.prototype.has=o_,si.prototype.set=i_;var s_="Expected a function";function Wh(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(s_);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],s=n.cache;if(s.has(o))return s.get(o);var l=e.apply(this,r);return n.cache=s.set(o,l)||s,l};return n.cache=new(Wh.Cache||si),n}Wh.Cache=si;var a_=500;function l_(e){var t=Wh(e,function(r){return n.size===a_&&n.clear(),r}),n=t.cache;return t}var c_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u_=/\\(\\)?/g,d_=l_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(c_,function(n,r,o,s){t.push(o?s.replace(u_,"$1"):r||n)}),t});function ai(e){return e==null?"":rd(e)}function va(e,t){return mr(e)?e:Mj(e,t)?[e]:d_(ai(e))}var f_=1/0;function ud(e){if(typeof e=="string"||nd(e))return e;var t=e+"";return t=="0"&&1/e==-f_?"-0":t}function Hh(e,t){t=va(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[ud(t[n++])];return n&&n==r?e:void 0}function p_(e,t,n){var r=e==null?void 0:Hh(e,t);return r===void 0?n:r}function Vh(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var bx=Xr?Xr.isConcatSpreadable:void 0;function h_(e){return mr(e)||ma(e)||!!(bx&&e&&e[bx])}function m_(e,t,n,r,o){var s=-1,l=e.length;for(n||(n=h_),o||(o=[]);++s<l;){var u=e[s];n(u)?Vh(o,u):o[o.length]=u}return o}function g_(e){var t=e==null?0:e.length;return t?m_(e):[]}function xx(e){return rx(ax(e,void 0,g_),e+"")}var Kh=gx(Object.getPrototypeOf,Object),y_="[object Object]",v_=Function.prototype,b_=Object.prototype,wx=v_.toString,x_=b_.hasOwnProperty,w_=wx.call(Object);function Sx(e){if(!Lo(e)||Rs(e)!=y_)return!1;var t=Kh(e);if(t===null)return!0;var n=x_.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&wx.call(n)==w_}function Cx(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(o);++r<o;)s[r]=e[r+t];return s}function Gh(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Cx(e,t,n)}var S_="\\ud800-\\udfff",C_="\\u0300-\\u036f",E_="\\ufe20-\\ufe2f",R_="\\u20d0-\\u20ff",k_=C_+E_+R_,P_="\\ufe0e\\ufe0f",T_="\\u200d",O_=RegExp("["+T_+S_+k_+P_+"]");function dd(e){return O_.test(e)}function $_(e){return e.split("")}var Ex="\\ud800-\\udfff",A_="\\u0300-\\u036f",j_="\\ufe20-\\ufe2f",__="\\u20d0-\\u20ff",I_=A_+j_+__,M_="\\ufe0e\\ufe0f",N_="["+Ex+"]",qh="["+I_+"]",Qh="\\ud83c[\\udffb-\\udfff]",L_="(?:"+qh+"|"+Qh+")",Rx="[^"+Ex+"]",kx="(?:\\ud83c[\\udde6-\\uddff]){2}",Px="[\\ud800-\\udbff][\\udc00-\\udfff]",D_="\\u200d",Tx=L_+"?",Ox="["+M_+"]?",F_="(?:"+D_+"(?:"+[Rx,kx,Px].join("|")+")"+Ox+Tx+")*",B_=Ox+Tx+F_,z_="(?:"+[Rx+qh+"?",qh,kx,Px,N_].join("|")+")",U_=RegExp(Qh+"(?="+Qh+")|"+z_+B_,"g");function W_(e){return e.match(U_)||[]}function fd(e){return dd(e)?W_(e):$_(e)}function $x(e){return function(t){t=ai(t);var n=dd(t)?fd(t):void 0,r=n?n[0]:t.charAt(0),o=n?Gh(n,1).join(""):t.slice(1);return r[e]()+o}}var pd=$x("toUpperCase");function Ax(e){return pd(ai(e).toLowerCase())}function H_(e,t,n,r){for(var o=-1,s=e==null?0:e.length;++o<s;)n=t(n,e[o],o,e);return n}function V_(e){return function(t){return e==null?void 0:e[t]}}var K_={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},G_=V_(K_),q_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Q_="\\u0300-\\u036f",Y_="\\ufe20-\\ufe2f",X_="\\u20d0-\\u20ff",J_=Q_+Y_+X_,Z_="["+J_+"]",eI=RegExp(Z_,"g");function tI(e){return e=ai(e),e&&e.replace(q_,G_).replace(eI,"")}var nI=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function rI(e){return e.match(nI)||[]}var oI=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function iI(e){return oI.test(e)}var jx="\\ud800-\\udfff",sI="\\u0300-\\u036f",aI="\\ufe20-\\ufe2f",lI="\\u20d0-\\u20ff",cI=sI+aI+lI,_x="\\u2700-\\u27bf",Ix="a-z\\xdf-\\xf6\\xf8-\\xff",uI="\\xac\\xb1\\xd7\\xf7",dI="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",fI="\\u2000-\\u206f",pI=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Mx="A-Z\\xc0-\\xd6\\xd8-\\xde",hI="\\ufe0e\\ufe0f",Nx=uI+dI+fI+pI,Lx="['’]",Dx="["+Nx+"]",mI="["+cI+"]",Fx="\\d+",gI="["+_x+"]",Bx="["+Ix+"]",zx="[^"+jx+Nx+Fx+_x+Ix+Mx+"]",yI="\\ud83c[\\udffb-\\udfff]",vI="(?:"+mI+"|"+yI+")",bI="[^"+jx+"]",Ux="(?:\\ud83c[\\udde6-\\uddff]){2}",Wx="[\\ud800-\\udbff][\\udc00-\\udfff]",ba="["+Mx+"]",xI="\\u200d",Hx="(?:"+Bx+"|"+zx+")",wI="(?:"+ba+"|"+zx+")",Vx="(?:"+Lx+"(?:d|ll|m|re|s|t|ve))?",Kx="(?:"+Lx+"(?:D|LL|M|RE|S|T|VE))?",Gx=vI+"?",qx="["+hI+"]?",SI="(?:"+xI+"(?:"+[bI,Ux,Wx].join("|")+")"+qx+Gx+")*",CI="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",EI="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",RI=qx+Gx+SI,kI="(?:"+[gI,Ux,Wx].join("|")+")"+RI,PI=RegExp([ba+"?"+Bx+"+"+Vx+"(?="+[Dx,ba,"$"].join("|")+")",wI+"+"+Kx+"(?="+[Dx,ba+Hx,"$"].join("|")+")",ba+"?"+Hx+"+"+Vx,ba+"+"+Kx,EI,CI,Fx,kI].join("|"),"g");function TI(e){return e.match(PI)||[]}function OI(e,t,n){return e=ai(e),t=t,t===void 0?iI(e)?TI(e):rI(e):e.match(t)||[]}var $I="['’]",AI=RegExp($I,"g");function hd(e){return function(t){return H_(OI(tI(t).replace(AI,"")),e,"")}}var jI=hd(function(e,t,n){return t=t.toLowerCase(),e+(n?Ax(t):t)});function _I(){this.__data__=new ii,this.size=0}function II(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function MI(e){return this.__data__.get(e)}function NI(e){return this.__data__.has(e)}var LI=200;function DI(e,t){var n=this.__data__;if(n instanceof ii){var r=n.__data__;if(!ql||r.length<LI-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new si(r)}return n.set(e,t),this.size=n.size,this}function Do(e){var t=this.__data__=new ii(e);this.size=t.size}Do.prototype.clear=_I,Do.prototype.delete=II,Do.prototype.get=MI,Do.prototype.has=NI,Do.prototype.set=DI;var Qx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Yx=Qx&&typeof module=="object"&&module&&!module.nodeType&&module,FI=Yx&&Yx.exports===Qx,Xx=FI?bo.Buffer:void 0,Jx=Xx?Xx.allocUnsafe:void 0;function Zx(e,t){if(t)return e.slice();var n=e.length,r=Jx?Jx(n):new e.constructor(n);return e.copy(r),r}function BI(e,t){for(var n=-1,r=e==null?0:e.length,o=0,s=[];++n<r;){var l=e[n];t(l,n,e)&&(s[o++]=l)}return s}function e1(){return[]}var zI=Object.prototype,UI=zI.propertyIsEnumerable,t1=Object.getOwnPropertySymbols,n1=t1?function(e){return e==null?[]:(e=Object(e),BI(t1(e),function(t){return UI.call(e,t)}))}:e1,WI=Object.getOwnPropertySymbols,HI=WI?function(e){for(var t=[];e;)Vh(t,n1(e)),e=Kh(e);return t}:e1;function r1(e,t,n){var r=t(e);return mr(e)?r:Vh(r,n(e))}function o1(e){return r1(e,vx,n1)}function i1(e){return r1(e,Uh,HI)}var Yh=Ps(bo,"DataView"),Xh=Ps(bo,"Promise"),Jh=Ps(bo,"Set"),s1="[object Map]",VI="[object Object]",a1="[object Promise]",l1="[object Set]",c1="[object WeakMap]",u1="[object DataView]",KI=ks(Yh),GI=ks(ql),qI=ks(Xh),QI=ks(Jh),YI=ks(Nh),Jr=Rs;(Yh&&Jr(new Yh(new ArrayBuffer(1)))!=u1||ql&&Jr(new ql)!=s1||Xh&&Jr(Xh.resolve())!=a1||Jh&&Jr(new Jh)!=l1||Nh&&Jr(new Nh)!=c1)&&(Jr=function(e){var t=Rs(e),n=t==VI?e.constructor:void 0,r=n?ks(n):"";if(r)switch(r){case KI:return u1;case GI:return s1;case qI:return a1;case QI:return l1;case YI:return c1}return t});var XI=Object.prototype,JI=XI.hasOwnProperty;function ZI(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&JI.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var md=bo.Uint8Array;function Zh(e){var t=new e.constructor(e.byteLength);return new md(t).set(new md(e)),t}function eM(e,t){var n=Zh(e.buffer);return new e.constructor(n,e.byteOffset,e.byteLength)}var tM=/\w*$/;function nM(e){var t=new e.constructor(e.source,tM.exec(e));return t.lastIndex=e.lastIndex,t}var d1=Xr?Xr.prototype:void 0,f1=d1?d1.valueOf:void 0;function rM(e){return f1?Object(f1.call(e)):{}}function p1(e,t){var n=t?Zh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var oM="[object Boolean]",iM="[object Date]",sM="[object Map]",aM="[object Number]",lM="[object RegExp]",cM="[object Set]",uM="[object String]",dM="[object Symbol]",fM="[object ArrayBuffer]",pM="[object DataView]",hM="[object Float32Array]",mM="[object Float64Array]",gM="[object Int8Array]",yM="[object Int16Array]",vM="[object Int32Array]",bM="[object Uint8Array]",xM="[object Uint8ClampedArray]",wM="[object Uint16Array]",SM="[object Uint32Array]";function CM(e,t,n){var r=e.constructor;switch(t){case fM:return Zh(e);case oM:case iM:return new r(+e);case pM:return eM(e);case hM:case mM:case gM:case yM:case vM:case bM:case xM:case wM:case SM:return p1(e,n);case sM:return new r;case aM:case uM:return new r(e);case lM:return nM(e);case cM:return new r;case dM:return rM(e)}}function EM(e){return typeof e.constructor=="function"&&!sd(e)?EA(Kh(e)):{}}var RM="[object Map]";function kM(e){return Lo(e)&&Jr(e)==RM}var h1=ya&&ya.isMap,PM=h1?Bh(h1):kM,TM="[object Set]";function OM(e){return Lo(e)&&Jr(e)==TM}var m1=ya&&ya.isSet,$M=m1?Bh(m1):OM,AM=1,g1="[object Arguments]",jM="[object Array]",_M="[object Boolean]",IM="[object Date]",MM="[object Error]",y1="[object Function]",NM="[object GeneratorFunction]",LM="[object Map]",DM="[object Number]",v1="[object Object]",FM="[object RegExp]",BM="[object Set]",zM="[object String]",UM="[object Symbol]",WM="[object WeakMap]",HM="[object ArrayBuffer]",VM="[object DataView]",KM="[object Float32Array]",GM="[object Float64Array]",qM="[object Int8Array]",QM="[object Int16Array]",YM="[object Int32Array]",XM="[object Uint8Array]",JM="[object Uint8ClampedArray]",ZM="[object Uint16Array]",eN="[object Uint32Array]",en={};en[g1]=en[jM]=en[HM]=en[VM]=en[_M]=en[IM]=en[KM]=en[GM]=en[qM]=en[QM]=en[YM]=en[LM]=en[DM]=en[v1]=en[FM]=en[BM]=en[zM]=en[UM]=en[XM]=en[JM]=en[ZM]=en[eN]=!0,en[MM]=en[y1]=en[WM]=!1;function gd(e,t,n,r,o,s){var l,u=t&AM;if(n&&(l=o?n(e,r,o,s):n(e)),l!==void 0)return l;if(!gr(e))return e;var c=mr(e);if(c)l=ZI(e);else{var f=Jr(e),p=f==y1||f==NM;if(ga(e))return Zx(e,u);if(f==v1||f==g1||p&&!o)l={};else{if(!en[f])return o?e:{};l=CM(e,f,u)}}s||(s=new Do);var m=s.get(e);if(m)return m;s.set(e,l),$M(e)?e.forEach(function(x){l.add(gd(x,t,n,x,e,s))}):PM(e)&&e.forEach(function(x,b){l.set(b,gd(x,t,n,b,e,s))});var g=i1,S=c?void 0:g(e);return jA(S||e,function(x,b){S&&(b=x,x=e[b]),Dh(l,b,gd(x,t,n,b,e,s))}),l}var tN="__lodash_hash_undefined__";function nN(e){return this.__data__.set(e,tN),this}function rN(e){return this.__data__.has(e)}function yd(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new si;++t<n;)this.add(e[t])}yd.prototype.add=yd.prototype.push=nN,yd.prototype.has=rN;function oN(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function iN(e,t){return e.has(t)}var sN=1,aN=2;function b1(e,t,n,r,o,s){var l=n&sN,u=e.length,c=t.length;if(u!=c&&!(l&&c>u))return!1;var f=s.get(e),p=s.get(t);if(f&&p)return f==t&&p==e;var m=-1,g=!0,S=n&aN?new yd:void 0;for(s.set(e,t),s.set(t,e);++m<u;){var x=e[m],b=t[m];if(r)var w=l?r(b,x,m,t,e,s):r(x,b,m,e,t,s);if(w!==void 0){if(w)continue;g=!1;break}if(S){if(!oN(t,function(P,R){if(!iN(S,R)&&(x===P||o(x,P,n,r,s)))return S.push(R)})){g=!1;break}}else if(!(x===b||o(x,b,n,r,s))){g=!1;break}}return s.delete(e),s.delete(t),g}function lN(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function cN(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var uN=1,dN=2,fN="[object Boolean]",pN="[object Date]",hN="[object Error]",mN="[object Map]",gN="[object Number]",yN="[object RegExp]",vN="[object Set]",bN="[object String]",xN="[object Symbol]",wN="[object ArrayBuffer]",SN="[object DataView]",x1=Xr?Xr.prototype:void 0,em=x1?x1.valueOf:void 0;function CN(e,t,n,r,o,s,l){switch(n){case SN:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case wN:return!(e.byteLength!=t.byteLength||!s(new md(e),new md(t)));case fN:case pN:case gN:return Hl(+e,+t);case hN:return e.name==t.name&&e.message==t.message;case yN:case bN:return e==t+"";case mN:var u=lN;case vN:var c=r&uN;if(u||(u=cN),e.size!=t.size&&!c)return!1;var f=l.get(e);if(f)return f==t;r|=dN,l.set(e,t);var p=b1(u(e),u(t),r,o,s,l);return l.delete(e),p;case xN:if(em)return em.call(e)==em.call(t)}return!1}var EN=1,RN=Object.prototype,kN=RN.hasOwnProperty;function PN(e,t,n,r,o,s){var l=n&EN,u=o1(e),c=u.length,f=o1(t),p=f.length;if(c!=p&&!l)return!1;for(var m=c;m--;){var g=u[m];if(!(l?g in t:kN.call(t,g)))return!1}var S=s.get(e),x=s.get(t);if(S&&x)return S==t&&x==e;var b=!0;s.set(e,t),s.set(t,e);for(var w=l;++m<c;){g=u[m];var P=e[g],R=t[g];if(r)var O=l?r(R,P,g,t,e,s):r(P,R,g,e,t,s);if(!(O===void 0?P===R||o(P,R,n,r,s):O)){b=!1;break}w||(w=g=="constructor")}if(b&&!w){var A=e.constructor,$=t.constructor;A!=$&&"constructor"in e&&"constructor"in t&&!(typeof A=="function"&&A instanceof A&&typeof $=="function"&&$ instanceof $)&&(b=!1)}return s.delete(e),s.delete(t),b}var TN=1,w1="[object Arguments]",S1="[object Array]",vd="[object Object]",ON=Object.prototype,C1=ON.hasOwnProperty;function $N(e,t,n,r,o,s){var l=mr(e),u=mr(t),c=l?S1:Jr(e),f=u?S1:Jr(t);c=c==w1?vd:c,f=f==w1?vd:f;var p=c==vd,m=f==vd,g=c==f;if(g&&ga(e)){if(!ga(t))return!1;l=!0,p=!1}if(g&&!p)return s||(s=new Do),l||ad(e)?b1(e,t,n,r,o,s):CN(e,t,c,n,r,o,s);if(!(n&TN)){var S=p&&C1.call(e,"__wrapped__"),x=m&&C1.call(t,"__wrapped__");if(S||x){var b=S?e.value():e,w=x?t.value():t;return s||(s=new Do),o(b,w,n,r,s)}}return g?(s||(s=new Do),PN(e,t,n,r,o,s)):!1}function E1(e,t,n,r,o){return e===t?!0:e==null||t==null||!Lo(e)&&!Lo(t)?e!==e&&t!==t:$N(e,t,n,r,E1,o)}function AN(e,t){return e!=null&&t in Object(e)}function R1(e,t,n){t=va(t,e);for(var r=-1,o=t.length,s=!1;++r<o;){var l=ud(t[r]);if(!(s=e!=null&&n(e,l)))break;e=e[l]}return s||++r!=o?s:(o=e==null?0:e.length,!!o&&Fh(o)&&id(l,o)&&(mr(e)||ma(e)))}function jN(e,t){return e!=null&&R1(e,t,AN)}function _N(e){return function(t){return t==null?void 0:t[e]}}function IN(e){return function(t,n,r){for(var o=-1,s=Object(t),l=r(t),u=l.length;u--;){var c=l[++o];if(n(s[c],c,s)===!1)break}return t}}var MN=IN(),tm=function(){return bo.Date.now()},NN="Expected a function",LN=Math.max,DN=Math.min;function k1(e,t,n){var r,o,s,l,u,c,f=0,p=!1,m=!1,g=!0;if(typeof e!="function")throw new TypeError(NN);t=jh(t)||0,gr(n)&&(p=!!n.leading,m="maxWait"in n,s=m?LN(jh(n.maxWait)||0,t):s,g="trailing"in n?!!n.trailing:g);function S(T){var _=r,M=o;return r=o=void 0,f=T,l=e.apply(M,_),l}function x(T){return f=T,u=setTimeout(P,t),p?S(T):l}function b(T){var _=T-c,M=T-f,F=t-_;return m?DN(F,s-M):F}function w(T){var _=T-c,M=T-f;return c===void 0||_>=t||_<0||m&&M>=s}function P(){var T=tm();if(w(T))return R(T);u=setTimeout(P,b(T))}function R(T){return u=void 0,g&&r?S(T):(r=o=void 0,l)}function O(){u!==void 0&&clearTimeout(u),f=0,r=c=o=u=void 0}function A(){return u===void 0?l:R(tm())}function $(){var T=tm(),_=w(T);if(r=arguments,o=this,c=T,_){if(u===void 0)return x(c);if(m)return clearTimeout(u),u=setTimeout(P,t),S(c)}return u===void 0&&(u=setTimeout(P,t)),l}return $.cancel=O,$.flush=A,$}function nm(e,t,n){(n!==void 0&&!Hl(e[t],n)||n===void 0&&!(t in e))&&Lh(e,t,n)}function FN(e){return Lo(e)&&Vl(e)}function rm(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function BN(e){return ix(e,Uh(e))}function zN(e,t,n,r,o,s,l){var u=rm(e,n),c=rm(t,n),f=l.get(c);if(f){nm(e,n,f);return}var p=s?s(u,c,n+"",e,t,l):void 0,m=p===void 0;if(m){var g=mr(c),S=!g&&ga(c),x=!g&&!S&&ad(c);p=c,g||S||x?mr(u)?p=u:FN(u)?p=nx(u):S?(m=!1,p=Zx(c,!0)):x?(m=!1,p=p1(c,!0)):p=[]:Sx(c)||ma(c)?(p=u,ma(u)?p=BN(u):(!gr(u)||Ih(u))&&(p=EM(c))):m=!1}m&&(l.set(c,p),o(p,c,r,s,l),l.delete(c)),nm(e,n,p)}function P1(e,t,n,r,o){e!==t&&MN(t,function(s,l){if(o||(o=new Do),gr(s))zN(e,t,l,n,P1,r,o);else{var u=r?r(rm(e,l),s,l+"",e,t,o):void 0;u===void 0&&(u=s),nm(e,l,u)}},Uh)}function UN(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var WN=Object.prototype,HN=WN.hasOwnProperty;function VN(e,t){return e!=null&&HN.call(e,t)}function KN(e,t){return e!=null&&R1(e,t,VN)}function GN(e,t){return Ah(t,function(n){return e[n]})}function qN(e){return e==null?[]:GN(e,vx(e))}function QN(e,t){return t.length<2?e:Hh(e,Cx(t,0,-1))}var YN="[object Map]",XN="[object Set]",JN=Object.prototype,ZN=JN.hasOwnProperty;function eL(e){if(e==null)return!0;if(Vl(e)&&(mr(e)||typeof e=="string"||typeof e.splice=="function"||ga(e)||ad(e)||ma(e)))return!e.length;var t=Jr(e);if(t==YN||t==XN)return!e.size;if(sd(e))return!yx(e).length;for(var n in e)if(ZN.call(e,n))return!1;return!0}function tL(e,t){return E1(e,t)}var nL=hd(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),rL=$x("toLowerCase"),oL=WA(function(e,t,n){P1(e,t,n)});function T1(e,t){return t=va(t,e),e=QN(e,t),e==null||delete e[ud(UN(t))]}function iL(e){return Sx(e)?void 0:e}var sL=1,aL=2,lL=4,cL=xx(function(e,t){var n={};if(e==null)return n;var r=!1;t=Ah(t,function(s){return s=va(s,e),r||(r=s.length>1),s}),ix(e,i1(e),n),r&&(n=gd(n,sL|aL|lL,iL));for(var o=t.length;o--;)T1(n,t[o]);return n});function O1(e,t,n,r){if(!gr(e))return e;t=va(t,e);for(var o=-1,s=t.length,l=s-1,u=e;u!=null&&++o<s;){var c=ud(t[o]),f=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(o!=l){var p=u[c];f=void 0,f===void 0&&(f=gr(p)?p:id(t[o+1])?[]:{})}Dh(u,c,f),u=u[c]}return e}function uL(e,t,n){for(var r=-1,o=t.length,s={};++r<o;){var l=t[r],u=Hh(e,l);n(u,l)&&O1(s,va(l,e),u)}return s}var dL=9007199254740991,fL=Math.floor;function $1(e,t){var n="";if(!e||t<1||t>dL)return n;do t%2&&(n+=e),t=fL(t/2),t&&(e+=e);while(t);return n}var pL=_N("length"),A1="\\ud800-\\udfff",hL="\\u0300-\\u036f",mL="\\ufe20-\\ufe2f",gL="\\u20d0-\\u20ff",yL=hL+mL+gL,vL="\\ufe0e\\ufe0f",bL="["+A1+"]",om="["+yL+"]",im="\\ud83c[\\udffb-\\udfff]",xL="(?:"+om+"|"+im+")",j1="[^"+A1+"]",_1="(?:\\ud83c[\\udde6-\\uddff]){2}",I1="[\\ud800-\\udbff][\\udc00-\\udfff]",wL="\\u200d",M1=xL+"?",N1="["+vL+"]?",SL="(?:"+wL+"(?:"+[j1,_1,I1].join("|")+")"+N1+M1+")*",CL=N1+M1+SL,EL="(?:"+[j1+om+"?",om,_1,I1,bL].join("|")+")",L1=RegExp(im+"(?="+im+")|"+EL+CL,"g");function RL(e){for(var t=L1.lastIndex=0;L1.test(e);)++t;return t}function bd(e){return dd(e)?RL(e):pL(e)}var kL=Math.ceil;function xd(e,t){t=t===void 0?" ":rd(t);var n=t.length;if(n<2)return n?$1(t,e):t;var r=$1(t,kL(e/bd(t)));return dd(t)?Gh(fd(r),0,e).join(""):r.slice(0,e)}var PL=Math.ceil,TL=Math.floor;function OL(e,t,n){e=ai(e),t=_h(t);var r=t?bd(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return xd(TL(o),n)+e+xd(PL(o),n)}function $L(e,t,n){e=ai(e),t=_h(t);var r=t?bd(e):0;return t&&r<t?e+xd(t-r,n):e}function AL(e,t,n){e=ai(e),t=_h(t);var r=t?bd(e):0;return t&&r<t?xd(t-r,n)+e:e}function jL(e,t){return uL(e,t,function(n,r){return jN(e,r)})}var _L=xx(function(e,t){return e==null?{}:jL(e,t)}),IL=Math.floor,ML=Math.random;function NL(e,t){return e+IL(ML()*(t-e+1))}function D1(e,t){var n=-1,r=e.length,o=r-1;for(t=t===void 0?r:t;++n<t;){var s=NL(n,o),l=e[s];e[s]=e[n],e[n]=l}return e.length=t,e}function LL(e,t,n){return e==null?e:O1(e,t,n)}function DL(e){return D1(nx(e))}function FL(e){return D1(qN(e))}function BL(e){var t=mr(e)?DL:FL;return t(e)}var zL=hd(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),F1=hd(function(e,t,n){return e+(n?" ":"")+pd(t)}),UL="Expected a function";function WL(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(UL);return gr(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),k1(e,t,{leading:r,maxWait:t,trailing:o})}function HL(e,t){for(var n=e.length;n--&&ox(t,e[n],0)>-1;);return n}function VL(e,t){for(var n=-1,r=e.length;++n<r&&ox(t,e[n],0)>-1;);return n}function KL(e,t,n){if(e=ai(e),e&&t===void 0)return Yb(e);if(!e||!(t=rd(t)))return e;var r=fd(e),o=fd(t),s=VL(r,o),l=HL(r,o)+1;return Gh(r,s,l).join("")}function GL(e,t){return e==null?!0:T1(e,t)}function ji(e){return class extends e{constructor(...t){return super(...t),Ar(this,"_macros",{}),new Proxy(this,{get(n,r,o){return Reflect.has(n,r)?Reflect.get(n,r,o):typeof r=="string"&&n.hasMacro(r)?n._macros[r].bind(n):Reflect.get(n,r,o)}})}macro(t,n){if(typeof n!="function")throw new TypeError("Macro must be a function");this._macros[t]=n}hasMacro(t){return t in this._macros&&typeof this._macros[t]=="function"}flushMacros(){this._macros={}}}}class qL{fromQuery(t){const n={};for(const[r,o]of t.entries())this.set(n,r,o);return n}fromFormData(t){return this.fromQuery(t)}get(t,n,r){return p_(t,n,r)}has(t,n){return KN(t,n)}isEmpty(t){return eL(t)}isEqual(t,n){return tL(t,n)}merge(t,...n){return oL(t,...n)}omit(t,...n){return cL(t,...n)}pick(t,...n){return _L(t,...n)}set(t,n,r){LL(t,n,r)}toQuery(t){return $b(t,new URLSearchParams)}toFormData(t){return $b(t,new FormData)}unset(t,n){GL(t,n)}}const qe=new(ji(qL));class QL extends ha{constructor(t=[]){super(),Ar(this,"_configuration",{}),Ar(this,"singletons",{}),Ar(this,"loaders",{}),this.providers=t}get services(){return this.loaders}get configuration(){return this._configuration}loadConfiguration(){if(document.getElementById("luminix-data::config")){const t=Hb("config");t&&typeof t=="object"&&this.withConfiguration(t)}}bind(t,n){if(typeof t!="string")throw new TypeError("Service name must be a string.");this.loaders[t]={loader:n}}singleton(t,n){if(typeof t!="string")throw new TypeError("Service name must be a string.");this.loaders[t]={loader:n,singleton:!0}}make(t){const n=this.loaders[t];if(!n)throw new Error(`Service '${t}' is not bound in the container.`);return n.singleton?(this.singletons[t]||(this.singletons[t]=n.loader()),this.singletons[t]):n.loader()}withConfiguration(t){return this._configuration=qe.merge(this._configuration,t),this}withProviders(t){return this.providers.push(...t),this}create(){this.loadConfiguration();const t=this.providers.map(n=>new n(this));this.emit("init",t),t.forEach(n=>{n.register&&n.register()}),this.emit("booting"),t.forEach(n=>{n.boot&&n.boot()}),this.emit("booted"),this.once("flushing",()=>{t.forEach(n=>{n.flush&&n.flush()})}),this.emit("ready")}flush(){this.emit("flushing"),this.singletons={},this.loaders={},this._configuration={},this.providers=[],this.emit("flushed"),this.flushEvents()}dump(t=!1){const n=this.make("log");if(n){const r={configuration:this.configuration,services:this.services,providers:this.providers,singletons:this.singletons};if(t===!0)return r;t===!1&&n.info(r),n.info(t,r)}}}let sm=class{constructor(e,t){this._response=e,this._error=t}error(){return this._error}body(){return typeof this._response.data=="object"?JSON.stringify(this._response.data):String(this._response.data)}json(e,t){return e?qe.get(this._response.data,e,t):this._response.data}has(e){return qe.has(this._response.data,e)}status(){return Number(this._response.status)}successful(){return this.status()>=200&&this.status()<300}redirect(){return this.status()>=300&&this.status()<400}clientError(){return this.status()>=400&&this.status()<500}serverError(){return this.status()>=500}failed(){return this.clientError()||this.serverError()}header(e){return this._response.headers[e]}headers(){return this._response.headers}ok(){return this.status()===200}created(){return this.status()===201}accepted(){return this.status()===202}noContent(){return this.status()===204}movedPermanently(){return this.status()===301}found(){return this.status()===302}badRequest(){return this.status()===400}unauthorized(){return this.status()===401}paymentRequired(){return this.status()===402}forbidden(){return this.status()===403}notFound(){return this.status()===404}requestTimeout(){return this.status()===408}conflict(){return this.status()===409}unprocessableEntity(){return this.status()===422}tooManyRequests(){return this.status()===429}throw(){if(this.failed())throw this._error||new Error(this.body());return this}throwIf(e){return typeof e=="function"?e(this)?this.throw():this:e?this.throw():this}throwUnless(e){return typeof e=="function"?e(this)?this:this.throw():e?this:this.throw()}throwIfStatus(e){return typeof e=="function"&&e(this.status(),this)?this.throw():this.status()===e?this.throw():this}throwUnlessStatus(e){return typeof e=="function"&&!e(this.status(),this)?this.throw():this.status()===e?this:this.throw()}throwIfClientError(){return this.clientError()?this.throw():this}throwIfServerError(){return this.serverError()?this.throw():this}};var B1;let Ql=(B1=Symbol.toStringTag,class{constructor(e){Ar(this,"promise"),Ar(this,"response"),Ar(this,B1,"Request"),this.promise=new Promise((t,n)=>{wn(e).then(r=>{this.response=new sm(r),t(this.response)}).catch(r=>{w$(r)&&r.response?(this.response=new sm(r.response,r),t(this.response)):n(r)})})}then(e,t){return this.promise.then(e,t)}catch(e){return this.promise.catch(e)}finally(e){return this.promise.finally(e)}});class YL{constructor(t={}){this.options=t}parseData(t){return qe.get(this.options,"headers[Content-Type]","application/json")==="application/x-www-form-urlencoded"&&t?qe.toFormData(t||{}):t}baseUrl(t){return qe.set(this.options,"baseURL",t),this}asForm(){return qe.set(this.options,"headers[Content-Type]","application/x-www-form-urlencoded"),this}accept(t){return qe.set(this.options,"headers[Accept]",t),this}acceptJson(){return this.accept("application/json")}withHeaders(t){return qe.set(this.options,"headers",qe.merge(this.options.headers,t)),this}replaceHeaders(t){return qe.set(this.options,"headers",t),this}withOptions(t){return this.options=qe.merge(this.options,t),this}replaceOptions(t){return this.options=t,this}withQueryParameters(t){return qe.set(this.options,"params",qe.merge(this.options.params,t)),this}replaceQueryParameters(t){return qe.set(this.options,"params",t),this}withData(t){const n=qe.get(this.options,"data",{}),r=n instanceof FormData?qe.fromFormData(n):n;return qe.set(this.options,"data",this.parseData(qe.merge(r,t))),this}replaceData(t){return qe.set(this.options,"data",this.parseData(t)),this}withBasicAuth(t,n){return qe.set(this.options,"headers.Authorization",`Basic ${btoa(`${t}:${n}`)}`),this}withToken(t){return qe.set(this.options,"headers.Authorization",`Bearer ${t}`),this}get(t,n){return new Ql({...this.options,params:n??this.options.params,url:t})}post(t,n){return new Ql({...this.options,method:"post",url:t,data:this.parseData(n??this.options.data)})}put(t,n){return new Ql({...this.options,method:"put",url:t,data:this.parseData(n??this.options.data)})}patch(t,n){return new Ql({...this.options,method:"patch",url:t,data:this.parseData(n??this.options.data)})}delete(t,n){return new Ql({...this.options,method:"delete",params:n??this.options.params,url:t})}}class XL{cartesian(...t){return t.reduce((n,r)=>n.flatMap(o=>r.map(s=>[o,s].flat())))}sampleSize(t,n){return this.shuffle(t).slice(0,n)}shuffle(t){return BL(t)}}const wd=new(ji(XL)),li=e=>{e.emit("change",{items:e.all(),source:e})},Sd=(e,t)=>Array.isArray(e)?e[t]??null:e.get(t);function Cd(e){return e instanceof zn}var z1,U1,J;const JL=class Ve extends ha{constructor(t=[]){super(),WO(this,J),Ar(this,z1,"Collection"),HO(this,J,t)}get items(){return[...ne(this,J)]}[(U1=Symbol.iterator,z1=Symbol.toStringTag,U1)](){return ne(this,J)[Symbol.iterator]()}all(){return[...ne(this,J)]}average(t){return typeof t=="string"?this.avg(t):this.avg()}avg(t){return typeof t=="string"?this.sum(t)/ne(this,J).length:this.sum()/ne(this,J).length}chunk(t){const n=[];for(let r=0;r<ne(this,J).length;r+=t)n.push(ne(this,J).slice(r,r+t));return new Ve(n.map(r=>new Ve(r)))}chunkWhile(t){const n=[];let r=new Ve;for(let o=0;o<ne(this,J).length;o++)t(ne(this,J)[o],o,r)?r.push(ne(this,J)[o]):(n.push(r),r=new Ve);return r.count()>0&&n.push(r),new Ve(n)}collapse(){return new Ve(ne(this,J).flat())}collect(){return new Ve(ne(this,J))}combine(t){const n={};return ne(this,J).forEach((r,o)=>{if(typeof r!="string")throw new TypeError("The `combine` method expects the keys to be strings");n[r]=Sd(t,o)}),n}concat(t){return Array.isArray(t)?new Ve([...ne(this,J),...t]):new Ve([...ne(this,J),...t.all()])}contains(t,n){return typeof t=="function"?ne(this,J).some((r,o)=>t(r,o,this)):ne(this,J).some(r=>{if(typeof n>"u")return r==t;if(typeof t!="string")throw new TypeError("The key must be a string");return r[t]==n})}containsOneItem(){return ne(this,J).length===1}containsStrict(t,n){return typeof t=="function"?ne(this,J).some((r,o)=>t(r,o,this)):ne(this,J).some(r=>{if(typeof n>"u")return r===t;if(typeof t!="string")throw new TypeError("The key must be a string");return r[t]===n})}count(){return ne(this,J).length}countBy(t){return typeof t=="function"?ne(this,J).reduce((n,r,o)=>{const s=t(r,o,this);return n[s]=n[s]?n[s]+1:1,n},{}):ne(this,J).reduce((n,r)=>{if(!["string","number"].includes(typeof r))throw new TypeError("The countBy method expects the items to be strings or numbers");return n[String(r)]=n[String(r)]?n[String(r)]+1:1,n},{})}crossJoin(...t){return new Ve(wd.cartesian(ne(this,J),...t.map(n=>Array.isArray(n)?n:n.all())))}diff(t){return Array.isArray(t)?new Ve(ne(this,J).filter(n=>!t.includes(n))):new Ve(ne(this,J).filter(n=>!t.contains(n)))}doesntContain(t,n){return typeof t=="function"?ne(this,J).every((r,o)=>!t(r,o,this)):ne(this,J).every(r=>{if(typeof n>"u")return r!=t;if(typeof t!="string")throw new TypeError("The key must be a string");return r[t]!=n})}dump(){console.log(this.toArray())}duplicates(t){return typeof t=="string"?new Ve(ne(this,J).reduce((n,r,o)=>(ne(this,J).slice(o+1).some(s=>s[t]==r[t])&&n.push(r[t]),n),[])):new Ve(ne(this,J).reduce((n,r,o)=>(ne(this,J).slice(o+1).some(s=>s==r)&&n.push(r),n),[]))}duplicatesStrict(t){return typeof t=="string"?new Ve(ne(this,J).reduce((n,r,o)=>(ne(this,J).slice(o+1).some(s=>s[t]===r[t])&&n.push(r[t]),n),[])):new Ve(ne(this,J).reduce((n,r,o)=>(ne(this,J).slice(o+1).some(s=>s===r)&&n.push(r),n),[]))}each(t){let n=0;for(const r of this){if(t(r,n,this)===!1)break;n++}return this}eachSpread(t){for(const n of this){if(!Array.isArray(n)&&!Cd(n))throw new TypeError("The items in the collection must be arrays or collections");const r=Array.isArray(n)?n:n.all();if(t(...r)===!1)break}return this}ensure(t){const n=Array.isArray(t)?t:[t];return ne(this,J).forEach((r,o)=>{if(!n.some(s=>typeof s=="string"?typeof r===s:r instanceof s))throw new TypeError(`The item at index ${o} is not of the expected type`)}),this}every(t){return ne(this,J).every((n,r)=>t(n,r,this))}except(t){return new Ve(ne(this,J).filter((n,r)=>!t.includes(r)))}filter(t){return new Ve(ne(this,J).filter((n,r)=>typeof t!="function"?!!n:t(n,r,this)))}first(t){return typeof t=="function"?ne(this,J).find((n,r)=>t(n,r,this))??null:ne(this,J)[0]??null}firstOrFail(t){const n=this.first(t);if(n===null)throw new Error("No matching item found");return n}firstWhere(t,n,r){if(typeof t!="string")throw new TypeError("The key must be a string");if(typeof n>"u")return this.first(o=>!!o[t]);if(typeof r>"u")return ne(this,J).find(o=>o[t]==n)??null;if(typeof n!="string")throw new TypeError("The operator must be a string");return r===null?ne(this,J).find(o=>o[t]===null)??null:ne(this,J).find(o=>{switch(n){case"=":return o[t]==r;case"!=":return o[t]!=r;case">":return o[t]>r;case"<":return o[t]<r;case">=":return o[t]>=r;case"<=":return o[t]<=r;default:throw new Error("Unsupported operator")}})??null}flatMap(t){return new Ve(ne(this,J).flatMap((n,r)=>t(n,r,this)))}forget(t){return ne(this,J).splice(t,1),li(this),this}forPage(t,n){return new Ve(ne(this,J).slice((t-1)*n,t*n))}get(t,n){if(typeof t!="number")throw new TypeError("The key must be a number");return typeof n>"u"?ne(this,J)[t]??null:typeof n=="function"?ne(this,J)[t]??n():ne(this,J)[t]??n}groupBy(t){const n=Array.isArray(t)?t:[t];return ne(this,J).reduce((r,o,s)=>{const l=n.map(u=>{if(typeof u=="function"){const c=u(o,s,this);return Array.isArray(c)?c:[c]}return[String(o[u])]});return wd.cartesian(...l).forEach(u=>{const c=Array.isArray(u)?u.join("."):u;qe.set(r,c,[...qe.get(r,c,[]),o])}),r},{})}has(t){return ne(this,J).length>t}hasAny(t){return t.some(n=>this.has(n))}implode(t,n){if(typeof n>"u"){if(typeof t!="string")throw new TypeError("The glue must be a string");if(!ne(this,J).every(r=>["string","number"].includes(typeof r)))throw new TypeError("The items must be strings or numbers");return ne(this,J).join(t)}if(typeof t=="function")return ne(this,J).map((r,o)=>t(r,o,this)).join(n);if(typeof t!="string")throw new TypeError("The key must be a string");if(!ne(this,J).every(r=>typeof r=="object"))throw new TypeError("The items must be objects");return ne(this,J).map(r=>r[t]).join(n)}intersect(t){return Array.isArray(t)?new Ve(ne(this,J).filter(n=>t.includes(n))):new Ve(ne(this,J).filter(n=>t.contains(n)))}isEmpty(){return ne(this,J).length===0}isNotEmpty(){return!this.isEmpty()}join(t,n){return typeof n>"u"?ne(this,J).join(t):ne(this,J).slice(0,-1).join(t)+n+ne(this,J)[ne(this,J).length-1]}keyBy(t){if(typeof t=="function")return ne(this,J).reduce((n,r,o)=>(n[t(r,o,this)]=r,n),{});if(typeof t!="string")throw new TypeError("The key must be a string");return ne(this,J).reduce((n,r)=>(n[String(r[t])]=r,n),{})}last(t){return typeof t=="function"?ne(this,J).toReversed().find((n,r)=>t(n,r,this))??null:ne(this,J)[ne(this,J).length-1]??null}map(t){return new Ve(ne(this,J).map((n,r)=>t(n,r,this)))}mapInto(t){return new Ve(ne(this,J).map(n=>new t(n)))}mapSpread(t){return new Ve(ne(this,J).map(n=>{if(!Array.isArray(n)&&!Cd(n))throw new TypeError("The items in the collection must be arrays or collections");const r=Array.isArray(n)?n:n.all();return t(...r)}))}mapToGroups(t){return ne(this,J).reduce((n,r,o)=>{const s=t(r,o,this);return Object.entries(s).forEach(([l,u])=>{n[l]=n[l]??[],n[l].push(u)}),n},{})}mapWithKeys(t){return ne(this,J).reduce((n,r,o)=>{const s=t(r,o,this);return Object.entries(s).forEach(([l,u])=>{n[l]=u}),n},{})}max(t){return typeof t=="string"?ne(this,J).reduce((n,r)=>r[t]>n?r[t]:n,ne(this,J)[0][t]):ne(this,J).reduce((n,r)=>r>n?r:n,ne(this,J)[0])}median(t){if(typeof t=="string"){const o=this.pluck(t).sort(),s=Math.floor(o.count()/2);return o.count()%2===0?new Ve([Sd(o,s-1),Sd(o,s)]).avg():Sd(o,s)}const n=ne(this,J).toSorted(),r=Math.floor(n.length/2);return n.length%2===0?new Ve([n[r-1],n[r]]).avg():n[r]??null}merge(t){return Array.isArray(t)?new Ve([...ne(this,J),...t]):new Ve([...ne(this,J),...t.all()])}min(t){return typeof t=="string"?ne(this,J).reduce((n,r)=>r[t]<n?r[t]:n,ne(this,J)[0][t]):ne(this,J).reduce((n,r)=>r<n?r:n,ne(this,J)[0])}mode(t){const n=typeof t=="string"?this.filter(o=>["number","string"].includes(typeof o[t])).countBy(o=>o[t]):this.countBy(),r=Math.max(...Object.values(n));return Object.entries(n).filter(([,o])=>o===r).map(([o])=>o)}nth(t,n=0){return this.chunk(t).filter(r=>r.count()>n).map(r=>r.get(n))}only(t){return new Ve(ne(this,J).filter((n,r)=>t.includes(r)))}pad(t,n=null){const r=ne(this,J).slice();for(;r.length<Math.abs(t);)t>0?r.push(n):r.unshift(n);return new Ve(r)}partition(t){return[this.filter(t),this.reject(t)]}percentage(t,n=2){return Math.round(100*(10^n)*this.filter(t).count()/ne(this,J).length)/(10^n)}pipe(t){return t(this)}pipeInto(t){return new t(this)}pipeThrough(t){return t.reduce((n,r)=>{if(!Cd(n)&&!Array.isArray(n))throw new TypeError("The pipeline expects the carry to be a collection or an array");return r(Cd(n)?n:new Ve(n))},this)}pluck(t){return this.map(n=>n[t])}pop(t=1){const n=ne(this,J).splice(ne(this,J).length-t,t);return li(this),t===1?n[0]??null:new Ve(n)}prepend(t){const n=ne(this,J).unshift(t);return li(this),n}pull(t){const n=ne(this,J).splice(t,1)[0]??null;return li(this),n}push(...t){const n=ne(this,J).push(...t);return li(this),n}put(t,n){return ne(this,J).splice(t,1,n),li(this),this}random(t=1){if(ne(this,J).length<t)throw new Error("The collection has fewer items than the requested amount");const n=new Ve(wd.sampleSize(ne(this,J),t));return t===1?n.first():n}reduce(t,n=null){return ne(this,J).reduce((r,o,s)=>t(r,o,s,this),n)}reject(t){return this.filter((n,r)=>!t(n,r,this))}replace(t){const n=ne(this,J).slice();return Object.entries(t).forEach(([r,o])=>{n[parseInt(r)]=o}),new Ve(n)}reverse(){return new Ve(ne(this,J).toReversed())}search(t,n=!1){if(typeof t!="function"||ne(this,J).every(o=>typeof o=="function")){const o=ne(this,J).findIndex(s=>n?s===t:s==t);return o===-1?!1:o}const r=ne(this,J).findIndex((o,s)=>t(o,s,this));return r===-1?!1:r}select(t){return this.map(n=>t.reduce((r,o)=>(r[o]=n[o],r),{}))}shift(t=1){const n=ne(this,J).splice(0,t);return li(this),t===1?n[0]??null:new Ve(n)}shuffle(){return new Ve(wd.shuffle(ne(this,J)))}skip(t){return new Ve(ne(this,J).slice(t))}skipUntil(t){return typeof t=="function"?this.skip(ne(this,J).findIndex((n,r)=>t(n,r,this))):this.skip(ne(this,J).findIndex(n=>n==t))}skipWhile(t){return typeof t=="function"?this.skip(ne(this,J).findIndex((n,r)=>!t(n,r,this))):this.skip(ne(this,J).findIndex(n=>n!=t))}slice(t,n){return typeof n>"u"?new Ve(ne(this,J).slice(t)):typeof t>"u"?new Ve(ne(this,J).slice(0,n)):new Ve(ne(this,J).slice(t,t+n))}sliding(t,n=1){const r=[];for(let o=0;o<ne(this,J).length&&!(o+t>ne(this,J).length);o+=n)r.push(ne(this,J).slice(o,o+t));return new Ve(r.map(o=>new Ve(o)))}sole(t,n){if(typeof t=="function"){const r=this.filter(t);return r.count()===1?r.first():null}if(typeof t=="string"){const r=this.where(t,n);return r.count()===1?r.first():null}return ne(this,J).length===1?this.first():null}some(...t){return this.contains(...t)}sort(t){return new Ve(ne(this,J).toSorted(t))}sortBy(t,n="asc"){if(typeof t=="function"){let r=-1;return new Ve(ne(this,J).toSorted((o,s)=>(r++,t(o,r,this)-t(s,r,this))))}if(Array.isArray(t))return t.every(r=>Array.isArray(r))?new Ve(ne(this,J).toSorted((r,o)=>{for(const[s,l]of t){const u=r[s]??-1/0,c=o[s]??-1/0;if(u>c)return l==="asc"?1:-1;if(u<c)return l==="asc"?-1:1}return 0})):new Ve(ne(this,J).toSorted((r,o)=>{for(const s of t){const l=s(r,o);if(l!==0)return l}return 0}));if(typeof t!="string")throw new TypeError("The key must be a string");return new Ve(ne(this,J).toSorted((r,o)=>{const s=r[t]??-1/0,l=o[t]??-1/0;return s>l?n==="asc"?1:-1:s<l?n==="asc"?-1:1:0}))}sortDesc(){return this.sort((t,n)=>t>n?-1:t<n?1:0)}splice(t,n,...r){const o=n===void 0?ne(this,J).length:n,s=ne(this,J).splice(t,o,...r);return li(this),new Ve(s)}split(t){const n=[];for(let r=0;r<t;r++){const o=ne(this,J).slice(n.flat().length,n.flat().length+Math.min(Math.ceil((ne(this,J).length-n.flat().length)/(t-r)),ne(this,J).length-n.flat().length));n.push(new Ve(o))}return new Ve(n)}splitIn(t){const n=Math.ceil(ne(this,J).length/t);return this.chunk(n)}sum(t){return typeof t=="string"?ne(this,J).reduce((n,r)=>{const o=r[t];if(typeof o!="number")throw new TypeError("The items must be numbers");return n+o},0):ne(this,J).reduce((n,r)=>{if(typeof r!="number")throw new TypeError("The items must be numbers");return n+r},0)}take(t){return new Ve(ne(this,J).slice(0,t))}takeUntil(t){return typeof t=="function"?this.take(ne(this,J).findIndex((n,r)=>t(n,r,this))):this.take(ne(this,J).findIndex(n=>n==t))}takeWhile(t){return typeof t=="function"?this.take(ne(this,J).findIndex((n,r)=>!t(n,r,this))):this.take(ne(this,J).findIndex(n=>n!=t))}tap(t){return t(this),this}toArray(){const t=n=>typeof n!="object"?n:Array.isArray(n)?n.map(t):n&&"toArray"in n&&typeof n.toArray=="function"?n.toArray():n&&"toJson"in n&&typeof n.toJson=="function"?n.toJson():n;return ne(this,J).map(t)}toJson(){return JSON.stringify(ne(this,J))}transform(t){for(const[n,r]of ne(this,J).entries())ne(this,J).splice(n,1,t(r,n,this));return li(this),this}unique(t){return typeof t=="string"?new Ve([...new Set(ne(this,J).map(n=>n[t]))].map(n=>ne(this,J).find(r=>r[t]==n))):new Ve([...new Set(ne(this,J))])}uniqueStrict(t){return typeof t=="string"?new Ve([...new Set(ne(this,J).map(n=>n[t]))].map(n=>ne(this,J).find(r=>r[t]===n))):new Ve([...new Set(ne(this,J))])}unless(t,n,r){return t?typeof r=="function"&&r(this):n(this),this}unlessEmpty(t,n){return this.whenNotEmpty(t,n)}unlessNotEmpty(t,n){return this.whenEmpty(t,n)}value(t){return ne(this,J).length===0?null:ne(this,J)[0][t]}when(t,n,r){return t?n(this):typeof r=="function"&&r(this),this}whenEmpty(t,n){return this.isEmpty()?t(this):typeof n=="function"&&n(this),this}whenNotEmpty(t,n){return this.isNotEmpty()?t(this):typeof n=="function"&&n(this),this}where(t,n,r){if(typeof r>"u")return new Ve(ne(this,J).filter(s=>s[t]==n));if(typeof n!="string")throw new TypeError("The operator must be a string");if(r===null)return new Ve(ne(this,J).filter(s=>s[t]===null));const o={"=":s=>s[t]==r,"!=":s=>s[t]!=r,">":s=>s[t]>r,"<":s=>s[t]<r,">=":s=>s[t]>=r,"<=":s=>s[t]<=r};if(!(n in o))throw new Error("Unsupported operator");return new Ve(ne(this,J).filter((s,l)=>o[n](s,l,this)))}whereStrict(t,n,r){if(typeof r>"u")return new Ve(ne(this,J).filter(s=>s[t]===n));if(typeof n!="string")throw new TypeError("The operator must be a string");if(r===null)return new Ve(ne(this,J).filter(s=>s[t]===null));const o={"=":s=>s[t]===r,"!=":s=>s[t]!==r,">":s=>s[t]>r,"<":s=>s[t]<r,">=":s=>s[t]>=r,"<=":s=>s[t]<=r};if(!(n in o))throw new Error("Unsupported operator");return new Ve(ne(this,J).filter((s,l)=>o[n](s,l,this)))}whereBetween(t,[n,r]){return new Ve(ne(this,J).filter(o=>o[t]>=n&&o[t]<=r))}whereIn(t,n){return new Ve(ne(this,J).filter(r=>n.includes(r[t])))}whereInstanceOf(t){return new Ve(ne(this,J).filter(n=>n instanceof t))}whereNotBetween(t,[n,r]){return new Ve(ne(this,J).filter(o=>o[t]<n||o[t]>r))}whereNotIn(t,n){return new Ve(ne(this,J).filter(r=>!n.includes(r[t])))}whereNotNull(t){return new Ve(ne(this,J).filter(n=>n[t]!==null))}whereNull(t){return new Ve(ne(this,J).filter(n=>n[t]===null))}zip(t){return Array.isArray(t)?new Ve(ne(this,J).map((n,r)=>[n,t[r]??null])):new Ve(ne(this,J).map((n,r)=>[n,t.get(r)]))}};J=new WeakMap;let zn=JL;function Fo(e,t){return new class extends e{constructor(){return super(),new Proxy(this,{get(n,r){if(Reflect.has(n,r))return Reflect.get(n,r);const o=n.getFacadeAccessor(),s=typeof o=="string"?t.make(o):o;if(!s)throw new Error(`Service ${String(o)} does not exist.`);return Reflect.get(s,r,s)}})}}}class Os extends ha{constructor(t){super(),Ar(this,"locked",[]),this.bag=t,Object.freeze(this.bag)}get(t,n){return qe.get(this.bag,t,n)}set(t,n){if(this.locked.some(r=>t.startsWith(r)))throw new Error(`Cannot set a locked path "${t}"`);if(typeof n=="object"&&n!==null&&this.locked.some(r=>qe.has(n,r.slice(t.length+1))))throw new Error(`Cannot set a path "${t}" that would override a locked path`);if(t==="."){if(this.locked.length)throw new Error("Cannot set the root path when there are locked paths");if(typeof n!="object"||n===null)throw new TypeError("Value must be an object");this.bag=pa(this.bag,()=>n),this.emit("change",{path:t,value:n,type:"set",source:this});return}this.bag=pa(this.bag,r=>{qe.set(r,t,n)}),this.emit("change",{path:t,value:n,type:"set",source:this})}merge(t,n){if(typeof n!="object"||n===null)throw new TypeError("Value must be an object");if(t==="."){if(this.locked.some(o=>qe.has(n,o)))throw new Error(`Cannot merge a path "${t}" that would override a locked path`);this.bag=pa(this.bag,o=>({...o,...n})),this.emit("change",{path:t,value:n,type:"merge",source:this});return}const r=this.get(t);if(typeof r=="object"&&r!==null)return this.set(t,{...r,...n});if(r===null||typeof r>"u")return this.set(t,n);throw new Error(`Cannot merge a non-object path "${t}"`)}has(t){return qe.has(this.bag,t)}delete(t){if(this.locked.some(n=>t.startsWith(n)))throw new Error(`Cannot delete a locked path "${t}"`);this.bag=pa(this.bag,n=>{qe.unset(n,t)}),this.emit("change",{path:t,value:null,type:"delete",source:this})}lock(t){if(!this.has(t))throw new Error(`Cannot lock a non-existing path "${t}"`);this.locked.push(t)}clone(){return new Os(this.bag)}all(){return this.bag}isEmpty(){return qe.isEmpty(this.bag)}}var W1,H1;class ZL extends(H1=Error,W1=Symbol.toStringTag,H1){constructor(t,n){super(`[Luminix] Cannot create reducer '${t}' on '${n}' as it is a reserved property`),Ar(this,W1,"ReducerOverrideException")}}function Yl(e){return class extends e{constructor(...t){return super(...t),Ar(this,"_reducers",{}),new Proxy(this,{get(n,r,o){return typeof r=="symbol"||r in n?Reflect.get(n,r,o):(s,...l)=>{const{[r]:u=new zn}=n._reducers;return Yr(s)?pa(s,c=>u.sortBy("priority").reduce((f,p)=>p.callback(f,...l),c)):u.sortBy("priority").reduce((c,f)=>f.callback(c,...l),s)}}})}reducer(t,n,r=10){if(t in this)throw new ZL(t,this);return this._reducers[t]||(this._reducers[t]=new zn),this._reducers[t].push({callback:n,priority:r}),()=>this.removeReducer(t,n)}removeReducer(t,n){const r=this._reducers[t].search(o=>o.callback===n);r!==!1&&this._reducers[t].pull(r)}getReducer(t){return this._reducers[t]||(this._reducers[t]=new zn),this._reducers[t]}hasReducer(t){return!!this._reducers[t]&&this._reducers[t].count()>0}clearReducer(t){this._reducers[t].splice(0,this._reducers[t].count())}flushReducers(){Object.values(this._reducers).forEach(t=>t.splice(0,t.count()))}}}class Ed{constructor(t){this.app=t}}function V1(e){return e instanceof sm&&e.unprocessableEntity()&&typeof e.json("message")=="string"&&typeof e.json("errors")=="object"&&e.json("errors")!==null&&Object.values(e.json("errors")).every(t=>Array.isArray(t)&&t.every(n=>typeof n=="string"))}class eD{after(t,n){return t.includes(n)?t.split(n).slice(1).join(""):""}afterLast(t,n){return t.includes(n)?t.split(n).slice(-1).join(""):""}before(t,n){return t.includes(n)?t.split(n).slice(0,1).join(""):""}beforeLast(t,n){return t.includes(n)?t.split(n).slice(0,-1).join(""):""}camel(t){return jI(t)}lcfirst(t){return rL(t)}lower(t){return t.toLowerCase()}kebab(t){return nL(t)}padBoth(t,n,r){return OL(t,n,r)}padLeft(t,n,r){return AL(t,n,r)}padRight(t,n,r){return $L(t,n,r)}human(t){return Ax(F1(t))}studly(t){return pd(this.camel(t))}snake(t){return zL(t)}title(t){return F1(t)}trim(t,n){return KL(t,n)}ucfirst(t){return pd(t)}upper(t){return t.toUpperCase()}}const _e=new(ji(eD));class tD{parse(t){return t instanceof Date?t:new Date(t)}toDateTimeLocal(t){const n=this.parse(t),r=`${n.getFullYear()}`,o=`${_e.padLeft(`${n.getMonth()+1}`,2,"0")}`,s=`${_e.padLeft(`${n.getDate()}`,2,"0")}`,l=`${_e.padLeft(`${n.getHours()}`,2,"0")}`,u=`${_e.padLeft(`${n.getMinutes()}`,2,"0")}`;return`${r}-${o}-${s}T${l}:${u}`}}const am=new(ji(tD));class nD{throttle(t,n,r){return WL(t,n,r)}debounce(t,n,r){return k1(t,n,r)}}const lm=new(ji(nD));class rD{fromObject(t){return qe.toQuery(t)}toObject(t){return qe.fromQuery(t)}merge(...t){const n=new URLSearchParams;return t.forEach(r=>{(typeof r=="string"?new URLSearchParams(_e.after(r,"?")):r).forEach((o,s)=>{n.set(s,o)})}),n}}const $s=new(ji(rD));var oD=Object.defineProperty,iD=(e,t,n)=>t in e?oD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tn=(e,t,n)=>iD(e,typeof t!="symbol"?t+"":t,n);class sD{constructor(t,n,r){tn(this,"_user"),this.config=t,this.model=n,this.route=r}attempt(t,n=!1,r){const o=document.createElement("form");o.method="post",o.action=this.route.url("login"),o.style.display="none";const s=this.config.get("auth.csrf");if(typeof s=="string"){const c=document.createElement("input");c.type="hidden",c.name="_token",c.value=s,o.appendChild(c)}const l=document.createElement("input");l.type="email",l.name="email",l.value=t.email,o.appendChild(l);const u=document.createElement("input");if(u.type="password",u.name="password",u.value=t.password,o.appendChild(u),n){const c=document.createElement("input");c.type="checkbox",c.name="remember",c.value="1",c.checked=!0,o.appendChild(c)}r&&o.addEventListener("submit",r),document.body.appendChild(o),o.submit()}check(){return!!this.config.get("auth.user")}logout(t){const n=document.createElement("form");n.method="post",n.action=this.route.url("logout"),n.style.display="none";const r=this.config.get("auth.csrf");if(typeof r=="string"){const o=document.createElement("input");o.type="hidden",o.name="_token",o.value=r,n.appendChild(o)}document.body.appendChild(n),t&&n.addEventListener("submit",t),n.submit()}user(){if(!this._user){const t=this.model.make("user"),n=this.config.get("auth.user");if(!n)return;this._user=new t(n)}return this._user}id(){var t;return((t=this.user())==null?void 0:t.getKey())||null}}class aD{constructor(){tn(this,"bags");const t={};document.querySelectorAll('#luminix-embed [id^="luminix-error"]').forEach(n=>{const r=n.id.replace("luminix-error::","");t[r]=Hb(r,"error")}),this.bags={default:new Os(t)}}bag(t="default"){return this.bags[t]||(this.bags[t]=new Os({})),this.bags[t]}add(t,n,r="default"){this.bag(r).set(t,n)}set(t,n="default"){this.bag(n).set(".",t)}all(t="default"){return this.bag(t).all()}get(t,n="default"){return this.bag(n).get(t,null)}clear(t="default"){this.bag(t).set(".",{})}}class lD{constructor(t){this._debug=t}emergency(...t){this._debug&&console.error(...t)}alert(...t){this._debug&&console.error(...t)}critical(...t){this._debug&&console.error(...t)}error(...t){this._debug&&console.error(...t)}warning(...t){this._debug&&console.warn(...t)}notice(...t){this._debug&&console.info(...t)}info(...t){this._debug&&console.info(...t)}debug(...t){this._debug&&console.debug(...t)}}var K1,G1;class cD extends(G1=Error,K1=Symbol.toStringTag,G1){constructor(t){super(`[Luminix] Model "${t}" does not have a primary key`),tn(this,K1,"ModelWithoutPrimaryKeyException")}}class uD extends ha{constructor(t,n,r={}){super(),tn(this,"bag"),this.services=t,this.abstract=n,this.query=r,this.bag=new Os(r),this.bag.on("change",()=>{this.emit("change",{data:this.bag,source:this})})}lock(t){this.bag.lock(t)}whereBetween(t,n){return this.where(t,"between",n)}whereNotBetween(t,n){return this.where(t,"notBetween",n)}whereNull(t){return this.where(t,"null",null)}whereNotNull(t){return this.where(t,"notNull",null)}limit(t){return this.bag.set("per_page",t),this}where(t,n,r){if(this.bag.has("where")||this.bag.set("where",{}),typeof t=="function")return t(this)||this;if(typeof r>"u")return this.bag.set(`where.${t}`,n),this;if(typeof n!="string")throw new Error(`Invalid operator ${n} provided for where clause.`);const o={"=":"","!=":"notEquals",">":"greaterThan",">=":"greaterThanOrEquals","<":"lessThan","<=":"lessThanOrEquals"}[n]||n;return this.bag.set(`where.${t}:${o}`,r),this}with(t){const n=this.bag.get("with",[]);return(Array.isArray(t)?t:[t]).forEach(r=>{n.includes(r)||n.push(r)}),this.bag.set("with",n),this}withOnly(t){return this.bag.set("with",Array.isArray(t)?t:[t]),this}without(t){const n=this.bag.get("with",[]);return(Array.isArray(t)?t:[t]).forEach(r=>{n.includes(r)&&n.splice(n.indexOf(r),1)}),this.bag.set("with",n),this}orderBy(t,n="asc"){return this.bag.set("order_by",`${t}:${n}`),this}searchBy(t){return this.bag.set("q",t),this}minified(){return this.bag.set("minified",!0),this}unset(t){return this.bag.delete(t),this}include(t){for(const[n,r]of t.entries())this.bag.set(n,r);return this}async exec(t=1,n){try{this.bag.set("page",t),this.emit("submit",{data:this.bag,source:this});const r=await this.services.route.call(`luminix.${this.abstract}.index`,l=>l.withQueryParameters(this.bag.all())),o=this.services.model.make(this.abstract),s=new zn(r.json("data").map(l=>{const u=new o(l);return u.exists=!0,this.services.model.emit("fetch",{class:this.abstract,model:u,source:this.services.model}),u}));if(n){const[l]=n.split("?");return{...r.json(),data:s,links:{first:`${l}?${$s.merge(n,r.json("links").first).toString()}`,last:`${l}?${$s.merge(n,r.json("links").last).toString()}`,next:r.json("links").next&&`${l}?${$s.merge(n,r.json("links").next??"").toString()}`,prev:r.json("links").prev&&`${l}?${$s.merge(n,r.json("links").prev??"").toString()}`},meta:{...r.json("meta"),links:r.json("meta").links.map(u=>({...u,url:u.url&&`${l}?${$s.merge(n,u.url).toString()}`}))}}}return{...r.json(),data:s}}catch(r){throw this.emit("error",{error:r,source:this}),r}}async get(t=1,n){const r=await this.exec(t,n);return this.emit("success",{response:r,items:r.data,source:this}),r}async first(){const t=await this.limit(1).exec(1);return this.emit("success",{response:t,items:t.data.first(),source:this}),t.data.first()}async find(t){const n=this.services.model.schema(this.abstract).primaryKey;if(!n)throw new cD(this.abstract);const r=await this.where(n,t).limit(1).exec(1);return this.emit("success",{response:r,items:r.data.sole(),source:this}),r.data.sole()}async all(){const t=this.services.config.get("luminix.backend.api.max_per_page",150),n=await this.limit(t).exec(1),r=n.meta.last_page;if(r===1)return n.data;const o=Array.from({length:r-1},(u,c)=>c+2),s=await Promise.all(o.map(u=>this.limit(t).exec(u))),l=new zn(s.reduce((u,c)=>(u.push(...c.data),u),n.data).all());return this.emit("success",{response:{...n,data:l},items:l,source:this}),l}}var q1,Q1;let yr=class extends(Q1=TypeError,q1=Symbol.toStringTag,Q1){constructor(t,n="Model"){super(`[Luminix] "${t}" expects ${n}`),tn(this,q1,"NotModelException")}};var Y1,X1;let dD=class extends(X1=Error,Y1=Symbol.toStringTag,X1){constructor(t,n,r,o){super(`[Luminix] Could not determine inverse relation for "${n}" in model "${t}". Please specify a relation in model "${r}" of type ${o} that points back to "${t}".`),tn(this,Y1,"NoInverseRelationException")}};var J1,Z1;let fD=class extends(Z1=Error,J1=Symbol.toStringTag,Z1){constructor(t){super(`[Luminix] Relation "${t}" is not supported`),tn(this,J1,"UnsupportedRelationException")}};function er(e){return typeof e=="object"&&e!==null&&e.__isModel===!0}let Rd=class{constructor(t,n,r,o=null){if(tn(this,"unsubscribeQuery",null),this.services=t,this.meta=n,this.parent=r,this.items=o,o!==null&&!qe.isModel(o)&&!(o instanceof zn&&o.every(er)))throw new yr("Relation.constructor()","Model, Collection<Model> or null")}make(t){const n=this.getRelated();if(t===null||typeof t>"u"){this.set(null);return}if(this.isSingle()){if(typeof t!="object"||Array.isArray(t))throw new TypeError("Relation.make() expects an object");this.set(new n(t))}if(this.isMultiple()){if(!Array.isArray(t))throw new TypeError("Relation.make() expects an array");this.set(new zn(t.map(r=>new n(r))))}}guessInverseRelation(){const{relations:t}=this.getRelated().getSchema(),n=this.getType(),r=this.services.model.guessInverseRelation({HasOne:["BelongsTo"],HasMany:["BelongsTo"],BelongsTo:["HasOne","HasMany"],BelongsToMany:["BelongsToMany"],MorphTo:["MorphMany","MorphOne"],MorphOne:["MorphTo"],MorphMany:["MorphTo"],MorphToMany:["MorphToMany"]},this.parent,n,this.getRelated());if(!(n in r))throw new fD(n);for(const o in t){const s=t[o];if((s.model===this.parent.getType()||["MorphOne","MorphMany"].includes(n))&&r[n].includes(s.type))return o}throw new dD(this.parent.getType(),n,this.getRelated().getSchemaName(),r[n].join(" or "))}set(t){if(t!==null&&!er(t)&&!(t instanceof zn&&t.every(er)))throw new yr("Relation.set()","Model, Collection<Model> or null");!this.items||er(this.items)?this.items=t:t instanceof zn&&this.items.splice(0,this.items.count(),...t)}getForeignKey(){return this.meta.foreignKey}getName(){return this.meta.name}getType(){return this.meta.type}getModel(){return this.meta.model}getRelated(){return this.services.model.make(this.meta.model)}query(){const t=this.getRelated().query();return this.unsubscribeQuery&&this.unsubscribeQuery(),this.unsubscribeQuery=t.on("success",n=>{this.items=n.items}),t}isLoaded(){return this.items!==null}getLoadedItems(){return this.items}isSingle(){return er(this.items)}isMultiple(){return this.items instanceof zn}getParent(){return this.parent}where(...t){return this.query().where(...t)}whereNull(t){return this.query().whereNull(t)}whereNotNull(t){return this.query().whereNotNull(t)}whereBetween(t,n){return this.query().whereBetween(t,n)}whereNotBetween(t,n){return this.query().whereNotBetween(t,n)}orderBy(t,n="asc"){return this.query().orderBy(t,n)}searchBy(t){return this.query().searchBy(t)}minified(){return this.query().minified()}limit(t){return this.query().limit(t)}};var ew,tw;class As extends(tw=Error,ew=Symbol.toStringTag,tw){constructor(t){super(`[Luminix] Expected ${t} to be reducible.`),tn(this,ew,"NotReducibleException")}}var nw,rw;let pD=class extends(rw=Error,nw=Symbol.toStringTag,rw){constructor(){super("[Luminix] Method not implemented."),tn(this,nw,"MethodNotImplementedException")}};var ow,iw;let sw=class extends(iw=Error,ow=Symbol.toStringTag,iw){constructor(t,n){super(`[Luminix] Model "${t}" must be persisted before calling "${n}"`),tn(this,ow,"ModelNotPersistedException")}};function hD(e,t,n,r,o){var s,l,u;return u=class extends(l=ha,s=Symbol.toStringTag,l){constructor(c={}){super(),tn(this,"_attributes",new Os({})),tn(this,"_original",{}),tn(this,"_relations",{}),tn(this,"_changedKeys",[]),tn(this,"exists",!1),tn(this,"wasRecentlyCreated",!1),tn(this,s,_e.studly(o)),this.makeRelations(),this.makeAttributes(c)}cast(c,f){return c==null||!f?c:["boolean","bool"].includes(f)?!!c:["date","datetime","immutable_date","immutable_datetime"].includes(f)&&typeof c=="string"?new Date(c):["float","double","integer","int"].includes(f)||f.startsWith("decimal:")?Number(c):c}mutate(c,f){return c==null||!f?c:["boolean","bool"].includes(f)?!!c:["date","datetime","immutable_date","immutable_datetime"].includes(f)&&c instanceof Date?c.toISOString():["float","double","integer","int"].includes(f)||f.startsWith("decimal:")?Number(c):c}makeRelations(){const{relations:c}=n.schema(o);if(this._relations={},!c)return;const f=n.getRelationConstructors(o);Object.entries(c).forEach(([p,m])=>{const{type:g}=m,S=g in f?f[g]:Rd;this._relations[p]=new S({model:n,route:r},{name:p,...m},this,null)})}makeAttributes(c){const{relations:f}=n.schema(o),p=Object.keys(f||{}),m=qe.omit(c,...p);if(this.fillable.filter(g=>!(g in m)).forEach(g=>{m[g]=null}),f&&Object.keys(f).forEach(g=>{this.relation(_e.camel(g)).make(c[g])}),!this.validateJsonObject(m)){if(e.get("app.env","production")==="production")throw new TypeError(`[Luminix] Invalid attributes for model "${o}"`);t.warning(`Invalid attributes for model "${o}".
|
|
13
|
+
`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=xs(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&xh.assertOptions(r,{silentJSONParsing:Ai.transitional(Ai.boolean),forcedJSONParsing:Ai.transitional(Ai.boolean),clarifyTimeoutError:Ai.transitional(Ai.boolean)},!1),o!=null&&(fe.isFunction(o)?n.paramsSerializer={serialize:o}:xh.assertOptions(o,{encode:Ai.function,serialize:Ai.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&fe.merge(s.common,s[n.method]);s&&fe.forEach(["delete","get","head","post","put","patch","common"],x=>{delete s[x]}),n.headers=hr.concat(l,s);const u=[];let c=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(c=c&&x.synchronous,u.unshift(x.fulfilled,x.rejected))});const f=[];this.interceptors.response.forEach(function(x){f.push(x.fulfilled,x.rejected)});let p,m=0,g;if(!c){const x=[kb.bind(this),void 0];for(x.unshift.apply(x,u),x.push.apply(x,f),g=x.length,p=Promise.resolve(n);m<g;)p=p.then(x[m++],x[m++]);return p}g=u.length;let S=n;for(m=0;m<g;){const x=u[m++],b=u[m++];try{S=x(S)}catch(w){b.call(this,w);break}}try{p=kb.call(this,S)}catch(x){return Promise.reject(x)}for(m=0,g=f.length;m<g;)p=p.then(f[m++],f[m++]);return p}getUri(t){t=xs(this.defaults,t);const n=yb(t.baseURL,t.url);return lb(n,t.params,t.paramsSerializer)}};fe.forEach(["delete","get","head","options"],function(e){ws.prototype[e]=function(t,n){return this.request(xs(n||{},{method:e,url:t,data:(n||{}).data}))}}),fe.forEach(["post","put","patch"],function(e){function t(n){return function(r,o,s){return this.request(xs(s||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}ws.prototype[e]=t(),ws.prototype[e+"Form"]=t(!0)});let v$=class _O{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const l=new Promise(u=>{r.subscribe(u),s=u}).then(o);return l.cancel=function(){r.unsubscribe(s)},l},t(function(o,s,l){r.reason||(r.reason=new ua(o,s,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 _O(function(n){t=n}),cancel:t}}};function b$(e){return function(t){return e.apply(null,t)}}function x$(e){return fe.isObject(e)&&e.isAxiosError===!0}const wh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(wh).forEach(([e,t])=>{wh[t]=e});function Ob(e){const t=new ws(e),n=K0(ws.prototype.request,t);return fe.extend(n,ws.prototype,t,{allOwnKeys:!0}),fe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Ob(xs(e,r))},n}const wn=Ob(Ml);wn.Axios=ws,wn.CanceledError=ua,wn.CancelToken=v$,wn.isCancel=pb,wn.VERSION=Pb,wn.toFormData=Vu,wn.AxiosError=wt,wn.Cancel=wn.CanceledError,wn.all=function(e){return Promise.all(e)},wn.spread=b$,wn.isAxiosError=x$,wn.mergeConfig=xs,wn.AxiosHeaders=hr,wn.formToJSON=e=>db(fe.isHTMLForm(e)?new FormData(e):e),wn.getAdapter=Rb.getAdapter,wn.HttpStatusCode=wh,wn.default=wn;const{Axios:Tte,AxiosError:Ote,CanceledError:$te,isCancel:Ate,CancelToken:jte,VERSION:_te,all:Ite,Cancel:Mte,isAxiosError:w$,spread:Nte,toFormData:$b,AxiosHeaders:Lte,HttpStatusCode:Dte,formToJSON:Fte,getAdapter:Bte,mergeConfig:zte}=wn;var Yu=Symbol.for("immer-nothing"),da=Symbol.for("immer-draftable"),zt=Symbol.for("immer-state");function In(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ss=Object.getPrototypeOf;function ri(e){return!!e&&!!e[zt]}function Yr(e){var t;return e?Ab(e)||Array.isArray(e)||!!e[da]||!!((t=e.constructor)!=null&&t[da])||Dl(e)||Fl(e):!1}var S$=Object.prototype.constructor.toString();function Ab(e){if(!e||typeof e!="object")return!1;const t=Ss(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===S$}function C$(e){return ri(e)||In(15,e),e[zt].base_}function fa(e,t){Cs(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Cs(e){const t=e[zt];return t?t.type_:Array.isArray(e)?1:Dl(e)?2:Fl(e)?3:0}function Ll(e,t){return Cs(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Sh(e,t){return Cs(e)===2?e.get(t):e[t]}function jb(e,t,n){const r=Cs(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function E$(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Dl(e){return e instanceof Map}function Fl(e){return e instanceof Set}function Mn(e){return e.copy_||e.base_}function Ch(e,t){if(Dl(e))return new Map(e);if(Fl(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Ab(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[zt];let o=Reflect.ownKeys(r);for(let s=0;s<o.length;s++){const l=o[s],u=r[l];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(r[l]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[l]})}return Object.create(Ss(e),r)}else{const r=Ss(e);if(r!==null&&n)return{...e};const o=Object.create(r);return Object.assign(o,e)}}function Xu(e,t=!1){return Ju(e)||ri(e)||!Yr(e)||(Cs(e)>1&&(e.set=e.add=e.clear=e.delete=R$),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Xu(r,!0))),e}function R$(){In(2)}function Ju(e){return Object.isFrozen(e)}var Eh={};function Es(e){const t=Eh[e];return t||In(0,e),t}function _b(e,t){Eh[e]||(Eh[e]=t)}var Bl;function Zu(){return Bl}function k$(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Ib(e,t){t&&(Es("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Rh(e){kh(e),e.drafts_.forEach(P$),e.drafts_=null}function kh(e){e===Bl&&(Bl=e.parent_)}function Mb(e){return Bl=k$(Bl,e)}function P$(e){const t=e[zt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Nb(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[zt].modified_&&(Rh(t),In(4)),Yr(e)&&(e=ed(t,e),t.parent_||td(t,e)),t.patches_&&Es("Patches").generateReplacementPatches_(n[zt].base_,e,t.patches_,t.inversePatches_)):e=ed(t,n,[]),Rh(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Yu?e:void 0}function ed(e,t,n){if(Ju(t))return t;const r=t[zt];if(!r)return fa(t,(o,s)=>Lb(e,r,t,o,s,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return td(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let s=o,l=!1;r.type_===3&&(s=new Set(o),o.clear(),l=!0),fa(s,(u,c)=>Lb(e,r,o,u,c,n,l)),td(e,o,!1),n&&e.patches_&&Es("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Lb(e,t,n,r,o,s,l){if(ri(o)){const u=s&&t&&t.type_!==3&&!Ll(t.assigned_,r)?s.concat(r):void 0,c=ed(e,o,u);if(jb(n,r,c),ri(c))e.canAutoFreeze_=!1;else return}else l&&n.add(o);if(Yr(o)&&!Ju(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ed(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&td(e,o)}}function td(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Xu(t,n)}function T$(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Zu(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,s=Ph;n&&(o=[r],s=zl);const{revoke:l,proxy:u}=Proxy.revocable(o,s);return r.draft_=u,r.revoke_=l,u}var Ph={get(e,t){if(t===zt)return e;const n=Mn(e);if(!Ll(n,t))return O$(e,n,t);const r=n[t];return e.finalized_||!Yr(r)?r:r===Th(e.base_,t)?(Oh(e),e.copy_[t]=Ul(r,e)):r},has(e,t){return t in Mn(e)},ownKeys(e){return Reflect.ownKeys(Mn(e))},set(e,t,n){const r=Db(Mn(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=Th(Mn(e),t),s=o==null?void 0:o[zt];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(E$(n,o)&&(n!==void 0||Ll(e.base_,t)))return!0;Oh(e),oi(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Th(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Oh(e),oi(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Mn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){In(11)},getPrototypeOf(e){return Ss(e.base_)},setPrototypeOf(){In(12)}},zl={};fa(Ph,(e,t)=>{zl[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),zl.deleteProperty=function(e,t){return zl.set.call(this,e,t,void 0)},zl.set=function(e,t,n){return Ph.set.call(this,e[0],t,n,e[0])};function Th(e,t){const n=e[zt];return(n?Mn(n):e)[t]}function O$(e,t,n){var r;const o=Db(t,n);return o?"value"in o?o.value:(r=o.get)==null?void 0:r.call(e.draft_):void 0}function Db(e,t){if(!(t in e))return;let n=Ss(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Ss(n)}}function oi(e){e.modified_||(e.modified_=!0,e.parent_&&oi(e.parent_))}function Oh(e){e.copy_||(e.copy_=Ch(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Fb=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const s=n;n=t;const l=this;return function(u=s,...c){return l.produce(u,f=>n.call(this,f,...c))}}typeof n!="function"&&In(6),r!==void 0&&typeof r!="function"&&In(7);let o;if(Yr(t)){const s=Mb(this),l=Ul(t,void 0);let u=!0;try{o=n(l),u=!1}finally{u?Rh(s):kh(s)}return Ib(s,r),Nb(o,s)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===Yu&&(o=void 0),this.autoFreeze_&&Xu(o,!0),r){const s=[],l=[];Es("Patches").generateReplacementPatches_(t,o,s,l),r(s,l)}return o}else In(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...l)=>this.produceWithPatches(s,u=>t(u,...l));let r,o;return[this.produce(t,n,(s,l)=>{r=s,o=l}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Yr(e)||In(8),ri(e)&&(e=Bb(e));const t=Mb(this),n=Ul(e,void 0);return n[zt].isManual_=!0,kh(t),n}finishDraft(e,t){const n=e&&e[zt];(!n||!n.isManual_)&&In(9);const{scope_:r}=n;return Ib(r,t),Nb(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=Es("Patches").applyPatches_;return ri(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Ul(e,t){const n=Dl(e)?Es("MapSet").proxyMap_(e,t):Fl(e)?Es("MapSet").proxySet_(e,t):T$(e,t);return(t?t.scope_:Zu()).drafts_.push(n),n}function Bb(e){return ri(e)||In(10,e),zb(e)}function zb(e){if(!Yr(e)||Ju(e))return e;const t=e[zt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Ch(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Ch(e,!0);return fa(n,(r,o)=>{jb(n,r,zb(o))}),t&&(t.finalized_=!1),n}function $$(){const e="replace",t="add",n="remove";function r(m,g,S,x){switch(m.type_){case 0:case 2:return s(m,g,S,x);case 1:return o(m,g,S,x);case 3:return l(m,g,S,x)}}function o(m,g,S,x){let{base_:b,assigned_:w}=m,P=m.copy_;P.length<b.length&&([b,P]=[P,b],[S,x]=[x,S]);for(let R=0;R<b.length;R++)if(w[R]&&P[R]!==b[R]){const O=g.concat([R]);S.push({op:e,path:O,value:p(P[R])}),x.push({op:e,path:O,value:p(b[R])})}for(let R=b.length;R<P.length;R++){const O=g.concat([R]);S.push({op:t,path:O,value:p(P[R])})}for(let R=P.length-1;b.length<=R;--R){const O=g.concat([R]);x.push({op:n,path:O})}}function s(m,g,S,x){const{base_:b,copy_:w}=m;fa(m.assigned_,(P,R)=>{const O=Sh(b,P),A=Sh(w,P),$=R?Ll(b,P)?e:t:n;if(O===A&&$===e)return;const T=g.concat(P);S.push($===n?{op:$,path:T}:{op:$,path:T,value:A}),x.push($===t?{op:n,path:T}:$===n?{op:t,path:T,value:p(O)}:{op:e,path:T,value:p(O)})})}function l(m,g,S,x){let{base_:b,copy_:w}=m,P=0;b.forEach(R=>{if(!w.has(R)){const O=g.concat([P]);S.push({op:n,path:O,value:R}),x.unshift({op:t,path:O,value:R})}P++}),P=0,w.forEach(R=>{if(!b.has(R)){const O=g.concat([P]);S.push({op:t,path:O,value:R}),x.unshift({op:n,path:O,value:R})}P++})}function u(m,g,S,x){S.push({op:e,path:[],value:g===Yu?void 0:g}),x.push({op:e,path:[],value:m})}function c(m,g){return g.forEach(S=>{const{path:x,op:b}=S;let w=m;for(let A=0;A<x.length-1;A++){const $=Cs(w);let T=x[A];typeof T!="string"&&typeof T!="number"&&(T=""+T),($===0||$===1)&&(T==="__proto__"||T==="constructor")&&In(19),typeof w=="function"&&T==="prototype"&&In(19),w=Sh(w,T),typeof w!="object"&&In(18,x.join("/"))}const P=Cs(w),R=f(S.value),O=x[x.length-1];switch(b){case e:switch(P){case 2:return w.set(O,R);case 3:In(16);default:return w[O]=R}case t:switch(P){case 1:return O==="-"?w.push(R):w.splice(O,0,R);case 2:return w.set(O,R);case 3:return w.add(R);default:return w[O]=R}case n:switch(P){case 1:return w.splice(O,1);case 2:return w.delete(O);case 3:return w.delete(S.value);default:return delete w[O]}default:In(17,b)}}),m}function f(m){if(!Yr(m))return m;if(Array.isArray(m))return m.map(f);if(Dl(m))return new Map(Array.from(m.entries()).map(([S,x])=>[S,f(x)]));if(Fl(m))return new Set(Array.from(m).map(f));const g=Object.create(Ss(m));for(const S in m)g[S]=f(m[S]);return Ll(m,da)&&(g[da]=m[da]),g}function p(m){return ri(m)?f(m):m}_b("Patches",{applyPatches_:c,generatePatches_:r,generateReplacementPatches_:u})}function A$(){class e extends Map{constructor(c,f){super(),this[zt]={type_:2,parent_:f,scope_:f?f.scope_:Zu(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:c,draft_:this,isManual_:!1,revoked_:!1}}get size(){return Mn(this[zt]).size}has(c){return Mn(this[zt]).has(c)}set(c,f){const p=this[zt];return l(p),(!Mn(p).has(c)||Mn(p).get(c)!==f)&&(n(p),oi(p),p.assigned_.set(c,!0),p.copy_.set(c,f),p.assigned_.set(c,!0)),this}delete(c){if(!this.has(c))return!1;const f=this[zt];return l(f),n(f),oi(f),f.base_.has(c)?f.assigned_.set(c,!1):f.assigned_.delete(c),f.copy_.delete(c),!0}clear(){const c=this[zt];l(c),Mn(c).size&&(n(c),oi(c),c.assigned_=new Map,fa(c.base_,f=>{c.assigned_.set(f,!1)}),c.copy_.clear())}forEach(c,f){const p=this[zt];Mn(p).forEach((m,g,S)=>{c.call(f,this.get(g),g,this)})}get(c){const f=this[zt];l(f);const p=Mn(f).get(c);if(f.finalized_||!Yr(p)||p!==f.base_.get(c))return p;const m=Ul(p,f);return n(f),f.copy_.set(c,m),m}keys(){return Mn(this[zt]).keys()}values(){const c=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const f=c.next();return f.done?f:{done:!1,value:this.get(f.value)}}}}entries(){const c=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const f=c.next();if(f.done)return f;const p=this.get(f.value);return{done:!1,value:[f.value,p]}}}}[Symbol.iterator](){return this.entries()}}function t(u,c){return new e(u,c)}function n(u){u.copy_||(u.assigned_=new Map,u.copy_=new Map(u.base_))}class r extends Set{constructor(c,f){super(),this[zt]={type_:3,parent_:f,scope_:f?f.scope_:Zu(),modified_:!1,finalized_:!1,copy_:void 0,base_:c,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return Mn(this[zt]).size}has(c){const f=this[zt];return l(f),f.copy_?!!(f.copy_.has(c)||f.drafts_.has(c)&&f.copy_.has(f.drafts_.get(c))):f.base_.has(c)}add(c){const f=this[zt];return l(f),this.has(c)||(s(f),oi(f),f.copy_.add(c)),this}delete(c){if(!this.has(c))return!1;const f=this[zt];return l(f),s(f),oi(f),f.copy_.delete(c)||(f.drafts_.has(c)?f.copy_.delete(f.drafts_.get(c)):!1)}clear(){const c=this[zt];l(c),Mn(c).size&&(s(c),oi(c),c.copy_.clear())}values(){const c=this[zt];return l(c),s(c),c.copy_.values()}entries(){const c=this[zt];return l(c),s(c),c.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(c,f){const p=this.values();let m=p.next();for(;!m.done;)c.call(f,m.value,m.value,this),m=p.next()}}function o(u,c){return new r(u,c)}function s(u){u.copy_||(u.copy_=new Set,u.base_.forEach(c=>{if(Yr(c)){const f=Ul(c,u);u.drafts_.set(c,f),u.copy_.add(f)}else u.copy_.add(c)}))}function l(u){u.revoked_&&In(3,JSON.stringify(Mn(u)))}_b("MapSet",{proxyMap_:t,proxySet_:o})}var _r=new Fb,pa=_r.produce,j$=_r.produceWithPatches.bind(_r),_$=_r.setAutoFreeze.bind(_r),I$=_r.setUseStrictShallowCopy.bind(_r),M$=_r.applyPatches.bind(_r),N$=_r.createDraft.bind(_r),L$=_r.finishDraft.bind(_r);function D$(e){return e}function F$(e){return e}const $h=Object.freeze(Object.defineProperty({__proto__:null,Immer:Fb,applyPatches:M$,castDraft:D$,castImmutable:F$,createDraft:N$,current:Bb,enableMapSet:A$,enablePatches:$$,finishDraft:L$,freeze:Xu,immerable:da,isDraft:ri,isDraftable:Yr,nothing:Yu,original:C$,produce:pa,produceWithPatches:j$,setAutoFreeze:_$,setUseStrictShallowCopy:I$},Symbol.toStringTag,{value:"Module"}));let B$=()=>({emit(e,...t){for(let n=0,r=this.events[e]||[],o=r.length;n<o;n++)r[n](...t)},events:{},on(e,t){var n;return((n=this.events)[e]||(n[e]=[])).push(t),()=>{var r;this.events[e]=(r=this.events[e])==null?void 0:r.filter(o=>t!==o)}}});class ha{constructor(){Ar(this,"emitter"),this.emitter=B$()}on(t,n){return this.emitter.on(t,n)}once(t,n){const r=this.emitter.on(t,o=>{r(),n(o)})}emit(t,...n){this.emitter.emit(t,...n)}flushEvents(){this.emitter.events={}}}var Ub,Wb;class z$ extends(Wb=Error,Ub=Symbol.toStringTag,Wb){constructor(){super("[Luminix] Embed element not found. Make sure to include the `@luminixEmbed()` directive in your Blade template."),Ar(this,Ub,"NoEmbedException")}}const Hb=(e,t="data")=>{if(!document.querySelector("#luminix-embed"))throw new z$;const n=document.getElementById(`luminix-${t}::`+e);return n?n.dataset.json&&n.dataset.value?JSON.parse(n.dataset.value):n.dataset.value:null};var Vb=typeof global=="object"&&global&&global.Object===Object&&global,U$=typeof self=="object"&&self&&self.Object===Object&&self,xo=Vb||U$||Function("return this")(),Xr=xo.Symbol,Kb=Object.prototype,W$=Kb.hasOwnProperty,H$=Kb.toString,Wl=Xr?Xr.toStringTag:void 0;function V$(e){var t=W$.call(e,Wl),n=e[Wl];try{e[Wl]=void 0;var r=!0}catch{}var o=H$.call(e);return r&&(t?e[Wl]=n:delete e[Wl]),o}var K$=Object.prototype,G$=K$.toString;function q$(e){return G$.call(e)}var Q$="[object Null]",Y$="[object Undefined]",Gb=Xr?Xr.toStringTag:void 0;function Rs(e){return e==null?e===void 0?Y$:Q$:Gb&&Gb in Object(e)?V$(e):q$(e)}function Lo(e){return e!=null&&typeof e=="object"}var X$="[object Symbol]";function nd(e){return typeof e=="symbol"||Lo(e)&&Rs(e)==X$}function Ah(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var mr=Array.isArray,J$=1/0,qb=Xr?Xr.prototype:void 0,Qb=qb?qb.toString:void 0;function rd(e){if(typeof e=="string")return e;if(mr(e))return Ah(e,rd)+"";if(nd(e))return Qb?Qb.call(e):"";var t=e+"";return t=="0"&&1/e==-J$?"-0":t}var Z$=/\s/;function eA(e){for(var t=e.length;t--&&Z$.test(e.charAt(t)););return t}var tA=/^\s+/;function Yb(e){return e&&e.slice(0,eA(e)+1).replace(tA,"")}function gr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Xb=NaN,nA=/^[-+]0x[0-9a-f]+$/i,rA=/^0b[01]+$/i,oA=/^0o[0-7]+$/i,iA=parseInt;function jh(e){if(typeof e=="number")return e;if(nd(e))return Xb;if(gr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=gr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Yb(e);var n=rA.test(e);return n||oA.test(e)?iA(e.slice(2),n?2:8):nA.test(e)?Xb:+e}var Jb=1/0,sA=17976931348623157e292;function aA(e){if(!e)return e===0?e:0;if(e=jh(e),e===Jb||e===-Jb){var t=e<0?-1:1;return t*sA}return e===e?e:0}function _h(e){var t=aA(e),n=t%1;return t===t?n?t-n:t:0}function Zb(e){return e}var lA="[object AsyncFunction]",cA="[object Function]",uA="[object GeneratorFunction]",dA="[object Proxy]";function Ih(e){if(!gr(e))return!1;var t=Rs(e);return t==cA||t==uA||t==lA||t==dA}var Mh=xo["__core-js_shared__"],ex=function(){var e=/[^.]+$/.exec(Mh&&Mh.keys&&Mh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function fA(e){return!!ex&&ex in e}var pA=Function.prototype,hA=pA.toString;function ks(e){if(e!=null){try{return hA.call(e)}catch{}try{return e+""}catch{}}return""}var mA=/[\\^$.*+?()[\]{}|]/g,gA=/^\[object .+?Constructor\]$/,yA=Function.prototype,vA=Object.prototype,bA=yA.toString,xA=vA.hasOwnProperty,wA=RegExp("^"+bA.call(xA).replace(mA,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function SA(e){if(!gr(e)||fA(e))return!1;var t=Ih(e)?wA:gA;return t.test(ks(e))}function CA(e,t){return e==null?void 0:e[t]}function Ps(e,t){var n=CA(e,t);return SA(n)?n:void 0}var Nh=Ps(xo,"WeakMap"),tx=Object.create,EA=function(){function e(){}return function(t){if(!gr(t))return{};if(tx)return tx(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function RA(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function nx(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var kA=800,PA=16,TA=Date.now;function OA(e){var t=0,n=0;return function(){var r=TA(),o=PA-(r-n);if(n=r,o>0){if(++t>=kA)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function $A(e){return function(){return e}}var od=function(){try{var e=Ps(Object,"defineProperty");return e({},"",{}),e}catch{}}(),AA=od?function(e,t){return od(e,"toString",{configurable:!0,enumerable:!1,value:$A(t),writable:!0})}:Zb,rx=OA(AA);function jA(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function _A(e,t,n,r){for(var o=e.length,s=n+-1;++s<o;)if(t(e[s],s,e))return s;return-1}function IA(e){return e!==e}function MA(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function ox(e,t,n){return t===t?MA(e,t,n):_A(e,IA,n)}var NA=9007199254740991,LA=/^(?:0|[1-9]\d*)$/;function id(e,t){var n=typeof e;return t=t??NA,!!t&&(n=="number"||n!="symbol"&&LA.test(e))&&e>-1&&e%1==0&&e<t}function Lh(e,t,n){t=="__proto__"&&od?od(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Hl(e,t){return e===t||e!==e&&t!==t}var DA=Object.prototype,FA=DA.hasOwnProperty;function Dh(e,t,n){var r=e[t];(!(FA.call(e,t)&&Hl(r,n))||n===void 0&&!(t in e))&&Lh(e,t,n)}function ix(e,t,n,r){var o=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=void 0;c===void 0&&(c=e[u]),o?Lh(n,u,c):Dh(n,u,c)}return n}var sx=Math.max;function ax(e,t,n){return t=sx(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,s=sx(r.length-t,0),l=Array(s);++o<s;)l[o]=r[t+o];o=-1;for(var u=Array(t+1);++o<t;)u[o]=r[o];return u[t]=n(l),RA(e,this,u)}}function BA(e,t){return rx(ax(e,t,Zb),e+"")}var zA=9007199254740991;function Fh(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=zA}function Vl(e){return e!=null&&Fh(e.length)&&!Ih(e)}function UA(e,t,n){if(!gr(n))return!1;var r=typeof t;return(r=="number"?Vl(n)&&id(t,n.length):r=="string"&&t in n)?Hl(n[t],e):!1}function WA(e){return BA(function(t,n){var r=-1,o=n.length,s=o>1?n[o-1]:void 0,l=o>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(o--,s):void 0,l&&UA(n[0],n[1],l)&&(s=o<3?void 0:s,o=1),t=Object(t);++r<o;){var u=n[r];u&&e(t,u,r,s)}return t})}var HA=Object.prototype;function sd(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||HA;return e===n}function VA(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var KA="[object Arguments]";function lx(e){return Lo(e)&&Rs(e)==KA}var cx=Object.prototype,GA=cx.hasOwnProperty,qA=cx.propertyIsEnumerable,ma=lx(function(){return arguments}())?lx:function(e){return Lo(e)&&GA.call(e,"callee")&&!qA.call(e,"callee")};function QA(){return!1}var ux=typeof exports=="object"&&exports&&!exports.nodeType&&exports,dx=ux&&typeof module=="object"&&module&&!module.nodeType&&module,YA=dx&&dx.exports===ux,fx=YA?xo.Buffer:void 0,XA=fx?fx.isBuffer:void 0,ga=XA||QA,JA="[object Arguments]",ZA="[object Array]",ej="[object Boolean]",tj="[object Date]",nj="[object Error]",rj="[object Function]",oj="[object Map]",ij="[object Number]",sj="[object Object]",aj="[object RegExp]",lj="[object Set]",cj="[object String]",uj="[object WeakMap]",dj="[object ArrayBuffer]",fj="[object DataView]",pj="[object Float32Array]",hj="[object Float64Array]",mj="[object Int8Array]",gj="[object Int16Array]",yj="[object Int32Array]",vj="[object Uint8Array]",bj="[object Uint8ClampedArray]",xj="[object Uint16Array]",wj="[object Uint32Array]",an={};an[pj]=an[hj]=an[mj]=an[gj]=an[yj]=an[vj]=an[bj]=an[xj]=an[wj]=!0,an[JA]=an[ZA]=an[dj]=an[ej]=an[fj]=an[tj]=an[nj]=an[rj]=an[oj]=an[ij]=an[sj]=an[aj]=an[lj]=an[cj]=an[uj]=!1;function Sj(e){return Lo(e)&&Fh(e.length)&&!!an[Rs(e)]}function Bh(e){return function(t){return e(t)}}var px=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Kl=px&&typeof module=="object"&&module&&!module.nodeType&&module,Cj=Kl&&Kl.exports===px,zh=Cj&&Vb.process,ya=function(){try{var e=Kl&&Kl.require&&Kl.require("util").types;return e||zh&&zh.binding&&zh.binding("util")}catch{}}(),hx=ya&&ya.isTypedArray,ad=hx?Bh(hx):Sj,Ej=Object.prototype,Rj=Ej.hasOwnProperty;function mx(e,t){var n=mr(e),r=!n&&ma(e),o=!n&&!r&&ga(e),s=!n&&!r&&!o&&ad(e),l=n||r||o||s,u=l?VA(e.length,String):[],c=u.length;for(var f in e)(t||Rj.call(e,f))&&!(l&&(f=="length"||o&&(f=="offset"||f=="parent")||s&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||id(f,c)))&&u.push(f);return u}function gx(e,t){return function(n){return e(t(n))}}var kj=gx(Object.keys,Object),Pj=Object.prototype,Tj=Pj.hasOwnProperty;function yx(e){if(!sd(e))return kj(e);var t=[];for(var n in Object(e))Tj.call(e,n)&&n!="constructor"&&t.push(n);return t}function vx(e){return Vl(e)?mx(e):yx(e)}function Oj(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var $j=Object.prototype,Aj=$j.hasOwnProperty;function jj(e){if(!gr(e))return Oj(e);var t=sd(e),n=[];for(var r in e)r=="constructor"&&(t||!Aj.call(e,r))||n.push(r);return n}function Uh(e){return Vl(e)?mx(e,!0):jj(e)}var _j=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ij=/^\w*$/;function Mj(e,t){if(mr(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||nd(e)?!0:Ij.test(e)||!_j.test(e)||t!=null&&e in Object(t)}var Gl=Ps(Object,"create");function Nj(){this.__data__=Gl?Gl(null):{},this.size=0}function Lj(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Dj="__lodash_hash_undefined__",Fj=Object.prototype,Bj=Fj.hasOwnProperty;function zj(e){var t=this.__data__;if(Gl){var n=t[e];return n===Dj?void 0:n}return Bj.call(t,e)?t[e]:void 0}var Uj=Object.prototype,Wj=Uj.hasOwnProperty;function Hj(e){var t=this.__data__;return Gl?t[e]!==void 0:Wj.call(t,e)}var Vj="__lodash_hash_undefined__";function Kj(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Gl&&t===void 0?Vj:t,this}function Ts(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ts.prototype.clear=Nj,Ts.prototype.delete=Lj,Ts.prototype.get=zj,Ts.prototype.has=Hj,Ts.prototype.set=Kj;function Gj(){this.__data__=[],this.size=0}function ld(e,t){for(var n=e.length;n--;)if(Hl(e[n][0],t))return n;return-1}var qj=Array.prototype,Qj=qj.splice;function Yj(e){var t=this.__data__,n=ld(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Qj.call(t,n,1),--this.size,!0}function Xj(e){var t=this.__data__,n=ld(t,e);return n<0?void 0:t[n][1]}function Jj(e){return ld(this.__data__,e)>-1}function Zj(e,t){var n=this.__data__,r=ld(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ii(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ii.prototype.clear=Gj,ii.prototype.delete=Yj,ii.prototype.get=Xj,ii.prototype.has=Jj,ii.prototype.set=Zj;var ql=Ps(xo,"Map");function e_(){this.size=0,this.__data__={hash:new Ts,map:new(ql||ii),string:new Ts}}function t_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function cd(e,t){var n=e.__data__;return t_(t)?n[typeof t=="string"?"string":"hash"]:n.map}function n_(e){var t=cd(this,e).delete(e);return this.size-=t?1:0,t}function r_(e){return cd(this,e).get(e)}function o_(e){return cd(this,e).has(e)}function i_(e,t){var n=cd(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function si(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}si.prototype.clear=e_,si.prototype.delete=n_,si.prototype.get=r_,si.prototype.has=o_,si.prototype.set=i_;var s_="Expected a function";function Wh(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(s_);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],s=n.cache;if(s.has(o))return s.get(o);var l=e.apply(this,r);return n.cache=s.set(o,l)||s,l};return n.cache=new(Wh.Cache||si),n}Wh.Cache=si;var a_=500;function l_(e){var t=Wh(e,function(r){return n.size===a_&&n.clear(),r}),n=t.cache;return t}var c_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u_=/\\(\\)?/g,d_=l_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(c_,function(n,r,o,s){t.push(o?s.replace(u_,"$1"):r||n)}),t});function ai(e){return e==null?"":rd(e)}function va(e,t){return mr(e)?e:Mj(e,t)?[e]:d_(ai(e))}var f_=1/0;function ud(e){if(typeof e=="string"||nd(e))return e;var t=e+"";return t=="0"&&1/e==-f_?"-0":t}function Hh(e,t){t=va(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[ud(t[n++])];return n&&n==r?e:void 0}function p_(e,t,n){var r=e==null?void 0:Hh(e,t);return r===void 0?n:r}function Vh(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var bx=Xr?Xr.isConcatSpreadable:void 0;function h_(e){return mr(e)||ma(e)||!!(bx&&e&&e[bx])}function m_(e,t,n,r,o){var s=-1,l=e.length;for(n||(n=h_),o||(o=[]);++s<l;){var u=e[s];n(u)?Vh(o,u):o[o.length]=u}return o}function g_(e){var t=e==null?0:e.length;return t?m_(e):[]}function xx(e){return rx(ax(e,void 0,g_),e+"")}var Kh=gx(Object.getPrototypeOf,Object),y_="[object Object]",v_=Function.prototype,b_=Object.prototype,wx=v_.toString,x_=b_.hasOwnProperty,w_=wx.call(Object);function Sx(e){if(!Lo(e)||Rs(e)!=y_)return!1;var t=Kh(e);if(t===null)return!0;var n=x_.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&wx.call(n)==w_}function Cx(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(o);++r<o;)s[r]=e[r+t];return s}function Gh(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Cx(e,t,n)}var S_="\\ud800-\\udfff",C_="\\u0300-\\u036f",E_="\\ufe20-\\ufe2f",R_="\\u20d0-\\u20ff",k_=C_+E_+R_,P_="\\ufe0e\\ufe0f",T_="\\u200d",O_=RegExp("["+T_+S_+k_+P_+"]");function dd(e){return O_.test(e)}function $_(e){return e.split("")}var Ex="\\ud800-\\udfff",A_="\\u0300-\\u036f",j_="\\ufe20-\\ufe2f",__="\\u20d0-\\u20ff",I_=A_+j_+__,M_="\\ufe0e\\ufe0f",N_="["+Ex+"]",qh="["+I_+"]",Qh="\\ud83c[\\udffb-\\udfff]",L_="(?:"+qh+"|"+Qh+")",Rx="[^"+Ex+"]",kx="(?:\\ud83c[\\udde6-\\uddff]){2}",Px="[\\ud800-\\udbff][\\udc00-\\udfff]",D_="\\u200d",Tx=L_+"?",Ox="["+M_+"]?",F_="(?:"+D_+"(?:"+[Rx,kx,Px].join("|")+")"+Ox+Tx+")*",B_=Ox+Tx+F_,z_="(?:"+[Rx+qh+"?",qh,kx,Px,N_].join("|")+")",U_=RegExp(Qh+"(?="+Qh+")|"+z_+B_,"g");function W_(e){return e.match(U_)||[]}function fd(e){return dd(e)?W_(e):$_(e)}function $x(e){return function(t){t=ai(t);var n=dd(t)?fd(t):void 0,r=n?n[0]:t.charAt(0),o=n?Gh(n,1).join(""):t.slice(1);return r[e]()+o}}var pd=$x("toUpperCase");function Ax(e){return pd(ai(e).toLowerCase())}function H_(e,t,n,r){for(var o=-1,s=e==null?0:e.length;++o<s;)n=t(n,e[o],o,e);return n}function V_(e){return function(t){return e==null?void 0:e[t]}}var K_={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},G_=V_(K_),q_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Q_="\\u0300-\\u036f",Y_="\\ufe20-\\ufe2f",X_="\\u20d0-\\u20ff",J_=Q_+Y_+X_,Z_="["+J_+"]",eI=RegExp(Z_,"g");function tI(e){return e=ai(e),e&&e.replace(q_,G_).replace(eI,"")}var nI=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function rI(e){return e.match(nI)||[]}var oI=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function iI(e){return oI.test(e)}var jx="\\ud800-\\udfff",sI="\\u0300-\\u036f",aI="\\ufe20-\\ufe2f",lI="\\u20d0-\\u20ff",cI=sI+aI+lI,_x="\\u2700-\\u27bf",Ix="a-z\\xdf-\\xf6\\xf8-\\xff",uI="\\xac\\xb1\\xd7\\xf7",dI="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",fI="\\u2000-\\u206f",pI=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Mx="A-Z\\xc0-\\xd6\\xd8-\\xde",hI="\\ufe0e\\ufe0f",Nx=uI+dI+fI+pI,Lx="['’]",Dx="["+Nx+"]",mI="["+cI+"]",Fx="\\d+",gI="["+_x+"]",Bx="["+Ix+"]",zx="[^"+jx+Nx+Fx+_x+Ix+Mx+"]",yI="\\ud83c[\\udffb-\\udfff]",vI="(?:"+mI+"|"+yI+")",bI="[^"+jx+"]",Ux="(?:\\ud83c[\\udde6-\\uddff]){2}",Wx="[\\ud800-\\udbff][\\udc00-\\udfff]",ba="["+Mx+"]",xI="\\u200d",Hx="(?:"+Bx+"|"+zx+")",wI="(?:"+ba+"|"+zx+")",Vx="(?:"+Lx+"(?:d|ll|m|re|s|t|ve))?",Kx="(?:"+Lx+"(?:D|LL|M|RE|S|T|VE))?",Gx=vI+"?",qx="["+hI+"]?",SI="(?:"+xI+"(?:"+[bI,Ux,Wx].join("|")+")"+qx+Gx+")*",CI="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",EI="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",RI=qx+Gx+SI,kI="(?:"+[gI,Ux,Wx].join("|")+")"+RI,PI=RegExp([ba+"?"+Bx+"+"+Vx+"(?="+[Dx,ba,"$"].join("|")+")",wI+"+"+Kx+"(?="+[Dx,ba+Hx,"$"].join("|")+")",ba+"?"+Hx+"+"+Vx,ba+"+"+Kx,EI,CI,Fx,kI].join("|"),"g");function TI(e){return e.match(PI)||[]}function OI(e,t,n){return e=ai(e),t=t,t===void 0?iI(e)?TI(e):rI(e):e.match(t)||[]}var $I="['’]",AI=RegExp($I,"g");function hd(e){return function(t){return H_(OI(tI(t).replace(AI,"")),e,"")}}var jI=hd(function(e,t,n){return t=t.toLowerCase(),e+(n?Ax(t):t)});function _I(){this.__data__=new ii,this.size=0}function II(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function MI(e){return this.__data__.get(e)}function NI(e){return this.__data__.has(e)}var LI=200;function DI(e,t){var n=this.__data__;if(n instanceof ii){var r=n.__data__;if(!ql||r.length<LI-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new si(r)}return n.set(e,t),this.size=n.size,this}function Do(e){var t=this.__data__=new ii(e);this.size=t.size}Do.prototype.clear=_I,Do.prototype.delete=II,Do.prototype.get=MI,Do.prototype.has=NI,Do.prototype.set=DI;var Qx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Yx=Qx&&typeof module=="object"&&module&&!module.nodeType&&module,FI=Yx&&Yx.exports===Qx,Xx=FI?xo.Buffer:void 0,Jx=Xx?Xx.allocUnsafe:void 0;function Zx(e,t){if(t)return e.slice();var n=e.length,r=Jx?Jx(n):new e.constructor(n);return e.copy(r),r}function BI(e,t){for(var n=-1,r=e==null?0:e.length,o=0,s=[];++n<r;){var l=e[n];t(l,n,e)&&(s[o++]=l)}return s}function e1(){return[]}var zI=Object.prototype,UI=zI.propertyIsEnumerable,t1=Object.getOwnPropertySymbols,n1=t1?function(e){return e==null?[]:(e=Object(e),BI(t1(e),function(t){return UI.call(e,t)}))}:e1,WI=Object.getOwnPropertySymbols,HI=WI?function(e){for(var t=[];e;)Vh(t,n1(e)),e=Kh(e);return t}:e1;function r1(e,t,n){var r=t(e);return mr(e)?r:Vh(r,n(e))}function o1(e){return r1(e,vx,n1)}function i1(e){return r1(e,Uh,HI)}var Yh=Ps(xo,"DataView"),Xh=Ps(xo,"Promise"),Jh=Ps(xo,"Set"),s1="[object Map]",VI="[object Object]",a1="[object Promise]",l1="[object Set]",c1="[object WeakMap]",u1="[object DataView]",KI=ks(Yh),GI=ks(ql),qI=ks(Xh),QI=ks(Jh),YI=ks(Nh),Jr=Rs;(Yh&&Jr(new Yh(new ArrayBuffer(1)))!=u1||ql&&Jr(new ql)!=s1||Xh&&Jr(Xh.resolve())!=a1||Jh&&Jr(new Jh)!=l1||Nh&&Jr(new Nh)!=c1)&&(Jr=function(e){var t=Rs(e),n=t==VI?e.constructor:void 0,r=n?ks(n):"";if(r)switch(r){case KI:return u1;case GI:return s1;case qI:return a1;case QI:return l1;case YI:return c1}return t});var XI=Object.prototype,JI=XI.hasOwnProperty;function ZI(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&JI.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var md=xo.Uint8Array;function Zh(e){var t=new e.constructor(e.byteLength);return new md(t).set(new md(e)),t}function eM(e,t){var n=Zh(e.buffer);return new e.constructor(n,e.byteOffset,e.byteLength)}var tM=/\w*$/;function nM(e){var t=new e.constructor(e.source,tM.exec(e));return t.lastIndex=e.lastIndex,t}var d1=Xr?Xr.prototype:void 0,f1=d1?d1.valueOf:void 0;function rM(e){return f1?Object(f1.call(e)):{}}function p1(e,t){var n=t?Zh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var oM="[object Boolean]",iM="[object Date]",sM="[object Map]",aM="[object Number]",lM="[object RegExp]",cM="[object Set]",uM="[object String]",dM="[object Symbol]",fM="[object ArrayBuffer]",pM="[object DataView]",hM="[object Float32Array]",mM="[object Float64Array]",gM="[object Int8Array]",yM="[object Int16Array]",vM="[object Int32Array]",bM="[object Uint8Array]",xM="[object Uint8ClampedArray]",wM="[object Uint16Array]",SM="[object Uint32Array]";function CM(e,t,n){var r=e.constructor;switch(t){case fM:return Zh(e);case oM:case iM:return new r(+e);case pM:return eM(e);case hM:case mM:case gM:case yM:case vM:case bM:case xM:case wM:case SM:return p1(e,n);case sM:return new r;case aM:case uM:return new r(e);case lM:return nM(e);case cM:return new r;case dM:return rM(e)}}function EM(e){return typeof e.constructor=="function"&&!sd(e)?EA(Kh(e)):{}}var RM="[object Map]";function kM(e){return Lo(e)&&Jr(e)==RM}var h1=ya&&ya.isMap,PM=h1?Bh(h1):kM,TM="[object Set]";function OM(e){return Lo(e)&&Jr(e)==TM}var m1=ya&&ya.isSet,$M=m1?Bh(m1):OM,AM=1,g1="[object Arguments]",jM="[object Array]",_M="[object Boolean]",IM="[object Date]",MM="[object Error]",y1="[object Function]",NM="[object GeneratorFunction]",LM="[object Map]",DM="[object Number]",v1="[object Object]",FM="[object RegExp]",BM="[object Set]",zM="[object String]",UM="[object Symbol]",WM="[object WeakMap]",HM="[object ArrayBuffer]",VM="[object DataView]",KM="[object Float32Array]",GM="[object Float64Array]",qM="[object Int8Array]",QM="[object Int16Array]",YM="[object Int32Array]",XM="[object Uint8Array]",JM="[object Uint8ClampedArray]",ZM="[object Uint16Array]",eN="[object Uint32Array]",en={};en[g1]=en[jM]=en[HM]=en[VM]=en[_M]=en[IM]=en[KM]=en[GM]=en[qM]=en[QM]=en[YM]=en[LM]=en[DM]=en[v1]=en[FM]=en[BM]=en[zM]=en[UM]=en[XM]=en[JM]=en[ZM]=en[eN]=!0,en[MM]=en[y1]=en[WM]=!1;function gd(e,t,n,r,o,s){var l,u=t&AM;if(n&&(l=o?n(e,r,o,s):n(e)),l!==void 0)return l;if(!gr(e))return e;var c=mr(e);if(c)l=ZI(e);else{var f=Jr(e),p=f==y1||f==NM;if(ga(e))return Zx(e,u);if(f==v1||f==g1||p&&!o)l={};else{if(!en[f])return o?e:{};l=CM(e,f,u)}}s||(s=new Do);var m=s.get(e);if(m)return m;s.set(e,l),$M(e)?e.forEach(function(x){l.add(gd(x,t,n,x,e,s))}):PM(e)&&e.forEach(function(x,b){l.set(b,gd(x,t,n,b,e,s))});var g=i1,S=c?void 0:g(e);return jA(S||e,function(x,b){S&&(b=x,x=e[b]),Dh(l,b,gd(x,t,n,b,e,s))}),l}var tN="__lodash_hash_undefined__";function nN(e){return this.__data__.set(e,tN),this}function rN(e){return this.__data__.has(e)}function yd(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new si;++t<n;)this.add(e[t])}yd.prototype.add=yd.prototype.push=nN,yd.prototype.has=rN;function oN(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function iN(e,t){return e.has(t)}var sN=1,aN=2;function b1(e,t,n,r,o,s){var l=n&sN,u=e.length,c=t.length;if(u!=c&&!(l&&c>u))return!1;var f=s.get(e),p=s.get(t);if(f&&p)return f==t&&p==e;var m=-1,g=!0,S=n&aN?new yd:void 0;for(s.set(e,t),s.set(t,e);++m<u;){var x=e[m],b=t[m];if(r)var w=l?r(b,x,m,t,e,s):r(x,b,m,e,t,s);if(w!==void 0){if(w)continue;g=!1;break}if(S){if(!oN(t,function(P,R){if(!iN(S,R)&&(x===P||o(x,P,n,r,s)))return S.push(R)})){g=!1;break}}else if(!(x===b||o(x,b,n,r,s))){g=!1;break}}return s.delete(e),s.delete(t),g}function lN(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function cN(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var uN=1,dN=2,fN="[object Boolean]",pN="[object Date]",hN="[object Error]",mN="[object Map]",gN="[object Number]",yN="[object RegExp]",vN="[object Set]",bN="[object String]",xN="[object Symbol]",wN="[object ArrayBuffer]",SN="[object DataView]",x1=Xr?Xr.prototype:void 0,em=x1?x1.valueOf:void 0;function CN(e,t,n,r,o,s,l){switch(n){case SN:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case wN:return!(e.byteLength!=t.byteLength||!s(new md(e),new md(t)));case fN:case pN:case gN:return Hl(+e,+t);case hN:return e.name==t.name&&e.message==t.message;case yN:case bN:return e==t+"";case mN:var u=lN;case vN:var c=r&uN;if(u||(u=cN),e.size!=t.size&&!c)return!1;var f=l.get(e);if(f)return f==t;r|=dN,l.set(e,t);var p=b1(u(e),u(t),r,o,s,l);return l.delete(e),p;case xN:if(em)return em.call(e)==em.call(t)}return!1}var EN=1,RN=Object.prototype,kN=RN.hasOwnProperty;function PN(e,t,n,r,o,s){var l=n&EN,u=o1(e),c=u.length,f=o1(t),p=f.length;if(c!=p&&!l)return!1;for(var m=c;m--;){var g=u[m];if(!(l?g in t:kN.call(t,g)))return!1}var S=s.get(e),x=s.get(t);if(S&&x)return S==t&&x==e;var b=!0;s.set(e,t),s.set(t,e);for(var w=l;++m<c;){g=u[m];var P=e[g],R=t[g];if(r)var O=l?r(R,P,g,t,e,s):r(P,R,g,e,t,s);if(!(O===void 0?P===R||o(P,R,n,r,s):O)){b=!1;break}w||(w=g=="constructor")}if(b&&!w){var A=e.constructor,$=t.constructor;A!=$&&"constructor"in e&&"constructor"in t&&!(typeof A=="function"&&A instanceof A&&typeof $=="function"&&$ instanceof $)&&(b=!1)}return s.delete(e),s.delete(t),b}var TN=1,w1="[object Arguments]",S1="[object Array]",vd="[object Object]",ON=Object.prototype,C1=ON.hasOwnProperty;function $N(e,t,n,r,o,s){var l=mr(e),u=mr(t),c=l?S1:Jr(e),f=u?S1:Jr(t);c=c==w1?vd:c,f=f==w1?vd:f;var p=c==vd,m=f==vd,g=c==f;if(g&&ga(e)){if(!ga(t))return!1;l=!0,p=!1}if(g&&!p)return s||(s=new Do),l||ad(e)?b1(e,t,n,r,o,s):CN(e,t,c,n,r,o,s);if(!(n&TN)){var S=p&&C1.call(e,"__wrapped__"),x=m&&C1.call(t,"__wrapped__");if(S||x){var b=S?e.value():e,w=x?t.value():t;return s||(s=new Do),o(b,w,n,r,s)}}return g?(s||(s=new Do),PN(e,t,n,r,o,s)):!1}function E1(e,t,n,r,o){return e===t?!0:e==null||t==null||!Lo(e)&&!Lo(t)?e!==e&&t!==t:$N(e,t,n,r,E1,o)}function AN(e,t){return e!=null&&t in Object(e)}function R1(e,t,n){t=va(t,e);for(var r=-1,o=t.length,s=!1;++r<o;){var l=ud(t[r]);if(!(s=e!=null&&n(e,l)))break;e=e[l]}return s||++r!=o?s:(o=e==null?0:e.length,!!o&&Fh(o)&&id(l,o)&&(mr(e)||ma(e)))}function jN(e,t){return e!=null&&R1(e,t,AN)}function _N(e){return function(t){return t==null?void 0:t[e]}}function IN(e){return function(t,n,r){for(var o=-1,s=Object(t),l=r(t),u=l.length;u--;){var c=l[++o];if(n(s[c],c,s)===!1)break}return t}}var MN=IN(),tm=function(){return xo.Date.now()},NN="Expected a function",LN=Math.max,DN=Math.min;function k1(e,t,n){var r,o,s,l,u,c,f=0,p=!1,m=!1,g=!0;if(typeof e!="function")throw new TypeError(NN);t=jh(t)||0,gr(n)&&(p=!!n.leading,m="maxWait"in n,s=m?LN(jh(n.maxWait)||0,t):s,g="trailing"in n?!!n.trailing:g);function S(T){var _=r,M=o;return r=o=void 0,f=T,l=e.apply(M,_),l}function x(T){return f=T,u=setTimeout(P,t),p?S(T):l}function b(T){var _=T-c,M=T-f,F=t-_;return m?DN(F,s-M):F}function w(T){var _=T-c,M=T-f;return c===void 0||_>=t||_<0||m&&M>=s}function P(){var T=tm();if(w(T))return R(T);u=setTimeout(P,b(T))}function R(T){return u=void 0,g&&r?S(T):(r=o=void 0,l)}function O(){u!==void 0&&clearTimeout(u),f=0,r=c=o=u=void 0}function A(){return u===void 0?l:R(tm())}function $(){var T=tm(),_=w(T);if(r=arguments,o=this,c=T,_){if(u===void 0)return x(c);if(m)return clearTimeout(u),u=setTimeout(P,t),S(c)}return u===void 0&&(u=setTimeout(P,t)),l}return $.cancel=O,$.flush=A,$}function nm(e,t,n){(n!==void 0&&!Hl(e[t],n)||n===void 0&&!(t in e))&&Lh(e,t,n)}function FN(e){return Lo(e)&&Vl(e)}function rm(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function BN(e){return ix(e,Uh(e))}function zN(e,t,n,r,o,s,l){var u=rm(e,n),c=rm(t,n),f=l.get(c);if(f){nm(e,n,f);return}var p=s?s(u,c,n+"",e,t,l):void 0,m=p===void 0;if(m){var g=mr(c),S=!g&&ga(c),x=!g&&!S&&ad(c);p=c,g||S||x?mr(u)?p=u:FN(u)?p=nx(u):S?(m=!1,p=Zx(c,!0)):x?(m=!1,p=p1(c,!0)):p=[]:Sx(c)||ma(c)?(p=u,ma(u)?p=BN(u):(!gr(u)||Ih(u))&&(p=EM(c))):m=!1}m&&(l.set(c,p),o(p,c,r,s,l),l.delete(c)),nm(e,n,p)}function P1(e,t,n,r,o){e!==t&&MN(t,function(s,l){if(o||(o=new Do),gr(s))zN(e,t,l,n,P1,r,o);else{var u=r?r(rm(e,l),s,l+"",e,t,o):void 0;u===void 0&&(u=s),nm(e,l,u)}},Uh)}function UN(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var WN=Object.prototype,HN=WN.hasOwnProperty;function VN(e,t){return e!=null&&HN.call(e,t)}function KN(e,t){return e!=null&&R1(e,t,VN)}function GN(e,t){return Ah(t,function(n){return e[n]})}function qN(e){return e==null?[]:GN(e,vx(e))}function QN(e,t){return t.length<2?e:Hh(e,Cx(t,0,-1))}var YN="[object Map]",XN="[object Set]",JN=Object.prototype,ZN=JN.hasOwnProperty;function eL(e){if(e==null)return!0;if(Vl(e)&&(mr(e)||typeof e=="string"||typeof e.splice=="function"||ga(e)||ad(e)||ma(e)))return!e.length;var t=Jr(e);if(t==YN||t==XN)return!e.size;if(sd(e))return!yx(e).length;for(var n in e)if(ZN.call(e,n))return!1;return!0}function tL(e,t){return E1(e,t)}var nL=hd(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),rL=$x("toLowerCase"),oL=WA(function(e,t,n){P1(e,t,n)});function T1(e,t){return t=va(t,e),e=QN(e,t),e==null||delete e[ud(UN(t))]}function iL(e){return Sx(e)?void 0:e}var sL=1,aL=2,lL=4,cL=xx(function(e,t){var n={};if(e==null)return n;var r=!1;t=Ah(t,function(s){return s=va(s,e),r||(r=s.length>1),s}),ix(e,i1(e),n),r&&(n=gd(n,sL|aL|lL,iL));for(var o=t.length;o--;)T1(n,t[o]);return n});function O1(e,t,n,r){if(!gr(e))return e;t=va(t,e);for(var o=-1,s=t.length,l=s-1,u=e;u!=null&&++o<s;){var c=ud(t[o]),f=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(o!=l){var p=u[c];f=void 0,f===void 0&&(f=gr(p)?p:id(t[o+1])?[]:{})}Dh(u,c,f),u=u[c]}return e}function uL(e,t,n){for(var r=-1,o=t.length,s={};++r<o;){var l=t[r],u=Hh(e,l);n(u,l)&&O1(s,va(l,e),u)}return s}var dL=9007199254740991,fL=Math.floor;function $1(e,t){var n="";if(!e||t<1||t>dL)return n;do t%2&&(n+=e),t=fL(t/2),t&&(e+=e);while(t);return n}var pL=_N("length"),A1="\\ud800-\\udfff",hL="\\u0300-\\u036f",mL="\\ufe20-\\ufe2f",gL="\\u20d0-\\u20ff",yL=hL+mL+gL,vL="\\ufe0e\\ufe0f",bL="["+A1+"]",om="["+yL+"]",im="\\ud83c[\\udffb-\\udfff]",xL="(?:"+om+"|"+im+")",j1="[^"+A1+"]",_1="(?:\\ud83c[\\udde6-\\uddff]){2}",I1="[\\ud800-\\udbff][\\udc00-\\udfff]",wL="\\u200d",M1=xL+"?",N1="["+vL+"]?",SL="(?:"+wL+"(?:"+[j1,_1,I1].join("|")+")"+N1+M1+")*",CL=N1+M1+SL,EL="(?:"+[j1+om+"?",om,_1,I1,bL].join("|")+")",L1=RegExp(im+"(?="+im+")|"+EL+CL,"g");function RL(e){for(var t=L1.lastIndex=0;L1.test(e);)++t;return t}function bd(e){return dd(e)?RL(e):pL(e)}var kL=Math.ceil;function xd(e,t){t=t===void 0?" ":rd(t);var n=t.length;if(n<2)return n?$1(t,e):t;var r=$1(t,kL(e/bd(t)));return dd(t)?Gh(fd(r),0,e).join(""):r.slice(0,e)}var PL=Math.ceil,TL=Math.floor;function OL(e,t,n){e=ai(e),t=_h(t);var r=t?bd(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return xd(TL(o),n)+e+xd(PL(o),n)}function $L(e,t,n){e=ai(e),t=_h(t);var r=t?bd(e):0;return t&&r<t?e+xd(t-r,n):e}function AL(e,t,n){e=ai(e),t=_h(t);var r=t?bd(e):0;return t&&r<t?xd(t-r,n)+e:e}function jL(e,t){return uL(e,t,function(n,r){return jN(e,r)})}var _L=xx(function(e,t){return e==null?{}:jL(e,t)}),IL=Math.floor,ML=Math.random;function NL(e,t){return e+IL(ML()*(t-e+1))}function D1(e,t){var n=-1,r=e.length,o=r-1;for(t=t===void 0?r:t;++n<t;){var s=NL(n,o),l=e[s];e[s]=e[n],e[n]=l}return e.length=t,e}function LL(e,t,n){return e==null?e:O1(e,t,n)}function DL(e){return D1(nx(e))}function FL(e){return D1(qN(e))}function BL(e){var t=mr(e)?DL:FL;return t(e)}var zL=hd(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),F1=hd(function(e,t,n){return e+(n?" ":"")+pd(t)}),UL="Expected a function";function WL(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(UL);return gr(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),k1(e,t,{leading:r,maxWait:t,trailing:o})}function HL(e,t){for(var n=e.length;n--&&ox(t,e[n],0)>-1;);return n}function VL(e,t){for(var n=-1,r=e.length;++n<r&&ox(t,e[n],0)>-1;);return n}function KL(e,t,n){if(e=ai(e),e&&t===void 0)return Yb(e);if(!e||!(t=rd(t)))return e;var r=fd(e),o=fd(t),s=VL(r,o),l=HL(r,o)+1;return Gh(r,s,l).join("")}function GL(e,t){return e==null?!0:T1(e,t)}function ji(e){return class extends e{constructor(...t){return super(...t),Ar(this,"_macros",{}),new Proxy(this,{get(n,r,o){return Reflect.has(n,r)?Reflect.get(n,r,o):typeof r=="string"&&n.hasMacro(r)?n._macros[r].bind(n):Reflect.get(n,r,o)}})}macro(t,n){if(typeof n!="function")throw new TypeError("Macro must be a function");this._macros[t]=n}hasMacro(t){return t in this._macros&&typeof this._macros[t]=="function"}flushMacros(){this._macros={}}}}class qL{fromQuery(t){const n={};for(const[r,o]of t.entries())this.set(n,r,o);return n}fromFormData(t){return this.fromQuery(t)}get(t,n,r){return p_(t,n,r)}has(t,n){return KN(t,n)}isEmpty(t){return eL(t)}isEqual(t,n){return tL(t,n)}merge(t,...n){return oL(t,...n)}omit(t,...n){return cL(t,...n)}pick(t,...n){return _L(t,...n)}set(t,n,r){LL(t,n,r)}toQuery(t){return $b(t,new URLSearchParams)}toFormData(t){return $b(t,new FormData)}unset(t,n){GL(t,n)}}const qe=new(ji(qL));class QL extends ha{constructor(t=[]){super(),Ar(this,"_configuration",{}),Ar(this,"singletons",{}),Ar(this,"loaders",{}),this.providers=t}get services(){return this.loaders}get configuration(){return this._configuration}loadConfiguration(){if(document.getElementById("luminix-data::config")){const t=Hb("config");t&&typeof t=="object"&&this.withConfiguration(t)}}bind(t,n){if(typeof t!="string")throw new TypeError("Service name must be a string.");this.loaders[t]={loader:n}}singleton(t,n){if(typeof t!="string")throw new TypeError("Service name must be a string.");this.loaders[t]={loader:n,singleton:!0}}make(t){const n=this.loaders[t];if(!n)throw new Error(`Service '${t}' is not bound in the container.`);return n.singleton?(this.singletons[t]||(this.singletons[t]=n.loader()),this.singletons[t]):n.loader()}withConfiguration(t){return this._configuration=qe.merge(this._configuration,t),this}withProviders(t){return this.providers.push(...t),this}create(){this.loadConfiguration();const t=this.providers.map(n=>new n(this));this.emit("init",t),t.forEach(n=>{n.register&&n.register()}),this.emit("booting"),t.forEach(n=>{n.boot&&n.boot()}),this.emit("booted"),this.once("flushing",()=>{t.forEach(n=>{n.flush&&n.flush()})}),this.emit("ready")}flush(){this.emit("flushing"),this.singletons={},this.loaders={},this._configuration={},this.providers=[],this.emit("flushed"),this.flushEvents()}dump(t=!1){const n=this.make("log");if(n){const r={configuration:this.configuration,services:this.services,providers:this.providers,singletons:this.singletons};if(t===!0)return r;t===!1&&n.info(r),n.info(t,r)}}}let sm=class{constructor(e,t){this._response=e,this._error=t}error(){return this._error}body(){return typeof this._response.data=="object"?JSON.stringify(this._response.data):String(this._response.data)}json(e,t){return e?qe.get(this._response.data,e,t):this._response.data}has(e){return qe.has(this._response.data,e)}status(){return Number(this._response.status)}successful(){return this.status()>=200&&this.status()<300}redirect(){return this.status()>=300&&this.status()<400}clientError(){return this.status()>=400&&this.status()<500}serverError(){return this.status()>=500}failed(){return this.clientError()||this.serverError()}header(e){return this._response.headers[e]}headers(){return this._response.headers}ok(){return this.status()===200}created(){return this.status()===201}accepted(){return this.status()===202}noContent(){return this.status()===204}movedPermanently(){return this.status()===301}found(){return this.status()===302}badRequest(){return this.status()===400}unauthorized(){return this.status()===401}paymentRequired(){return this.status()===402}forbidden(){return this.status()===403}notFound(){return this.status()===404}requestTimeout(){return this.status()===408}conflict(){return this.status()===409}unprocessableEntity(){return this.status()===422}tooManyRequests(){return this.status()===429}throw(){if(this.failed())throw this._error||new Error(this.body());return this}throwIf(e){return typeof e=="function"?e(this)?this.throw():this:e?this.throw():this}throwUnless(e){return typeof e=="function"?e(this)?this:this.throw():e?this:this.throw()}throwIfStatus(e){return typeof e=="function"&&e(this.status(),this)?this.throw():this.status()===e?this.throw():this}throwUnlessStatus(e){return typeof e=="function"&&!e(this.status(),this)?this.throw():this.status()===e?this:this.throw()}throwIfClientError(){return this.clientError()?this.throw():this}throwIfServerError(){return this.serverError()?this.throw():this}};var B1;let Ql=(B1=Symbol.toStringTag,class{constructor(e){Ar(this,"promise"),Ar(this,"response"),Ar(this,B1,"Request"),this.promise=new Promise((t,n)=>{wn(e).then(r=>{this.response=new sm(r),t(this.response)}).catch(r=>{w$(r)&&r.response?(this.response=new sm(r.response,r),t(this.response)):n(r)})})}then(e,t){return this.promise.then(e,t)}catch(e){return this.promise.catch(e)}finally(e){return this.promise.finally(e)}});class YL{constructor(t={}){this.options=t}parseData(t){return qe.get(this.options,"headers[Content-Type]","application/json")==="application/x-www-form-urlencoded"&&t?qe.toFormData(t||{}):t}baseUrl(t){return qe.set(this.options,"baseURL",t),this}asForm(){return qe.set(this.options,"headers[Content-Type]","application/x-www-form-urlencoded"),this}accept(t){return qe.set(this.options,"headers[Accept]",t),this}acceptJson(){return this.accept("application/json")}withHeaders(t){return qe.set(this.options,"headers",qe.merge(this.options.headers,t)),this}replaceHeaders(t){return qe.set(this.options,"headers",t),this}withOptions(t){return this.options=qe.merge(this.options,t),this}replaceOptions(t){return this.options=t,this}withQueryParameters(t){return qe.set(this.options,"params",qe.merge(this.options.params,t)),this}replaceQueryParameters(t){return qe.set(this.options,"params",t),this}withData(t){const n=qe.get(this.options,"data",{}),r=n instanceof FormData?qe.fromFormData(n):n;return qe.set(this.options,"data",this.parseData(qe.merge(r,t))),this}replaceData(t){return qe.set(this.options,"data",this.parseData(t)),this}withBasicAuth(t,n){return qe.set(this.options,"headers.Authorization",`Basic ${btoa(`${t}:${n}`)}`),this}withToken(t){return qe.set(this.options,"headers.Authorization",`Bearer ${t}`),this}get(t,n){return new Ql({...this.options,params:n??this.options.params,url:t})}post(t,n){return new Ql({...this.options,method:"post",url:t,data:this.parseData(n??this.options.data)})}put(t,n){return new Ql({...this.options,method:"put",url:t,data:this.parseData(n??this.options.data)})}patch(t,n){return new Ql({...this.options,method:"patch",url:t,data:this.parseData(n??this.options.data)})}delete(t,n){return new Ql({...this.options,method:"delete",params:n??this.options.params,url:t})}}class XL{cartesian(...t){return t.reduce((n,r)=>n.flatMap(o=>r.map(s=>[o,s].flat())))}sampleSize(t,n){return this.shuffle(t).slice(0,n)}shuffle(t){return BL(t)}}const wd=new(ji(XL)),li=e=>{e.emit("change",{items:e.all(),source:e})},Sd=(e,t)=>Array.isArray(e)?e[t]??null:e.get(t);function Cd(e){return e instanceof zn}var z1,U1,J;const JL=class Ve extends ha{constructor(t=[]){super(),WO(this,J),Ar(this,z1,"Collection"),HO(this,J,t)}get items(){return[...ne(this,J)]}[(U1=Symbol.iterator,z1=Symbol.toStringTag,U1)](){return ne(this,J)[Symbol.iterator]()}all(){return[...ne(this,J)]}average(t){return typeof t=="string"?this.avg(t):this.avg()}avg(t){return typeof t=="string"?this.sum(t)/ne(this,J).length:this.sum()/ne(this,J).length}chunk(t){const n=[];for(let r=0;r<ne(this,J).length;r+=t)n.push(ne(this,J).slice(r,r+t));return new Ve(n.map(r=>new Ve(r)))}chunkWhile(t){const n=[];let r=new Ve;for(let o=0;o<ne(this,J).length;o++)t(ne(this,J)[o],o,r)?r.push(ne(this,J)[o]):(n.push(r),r=new Ve);return r.count()>0&&n.push(r),new Ve(n)}collapse(){return new Ve(ne(this,J).flat())}collect(){return new Ve(ne(this,J))}combine(t){const n={};return ne(this,J).forEach((r,o)=>{if(typeof r!="string")throw new TypeError("The `combine` method expects the keys to be strings");n[r]=Sd(t,o)}),n}concat(t){return Array.isArray(t)?new Ve([...ne(this,J),...t]):new Ve([...ne(this,J),...t.all()])}contains(t,n){return typeof t=="function"?ne(this,J).some((r,o)=>t(r,o,this)):ne(this,J).some(r=>{if(typeof n>"u")return r==t;if(typeof t!="string")throw new TypeError("The key must be a string");return r[t]==n})}containsOneItem(){return ne(this,J).length===1}containsStrict(t,n){return typeof t=="function"?ne(this,J).some((r,o)=>t(r,o,this)):ne(this,J).some(r=>{if(typeof n>"u")return r===t;if(typeof t!="string")throw new TypeError("The key must be a string");return r[t]===n})}count(){return ne(this,J).length}countBy(t){return typeof t=="function"?ne(this,J).reduce((n,r,o)=>{const s=t(r,o,this);return n[s]=n[s]?n[s]+1:1,n},{}):ne(this,J).reduce((n,r)=>{if(!["string","number"].includes(typeof r))throw new TypeError("The countBy method expects the items to be strings or numbers");return n[String(r)]=n[String(r)]?n[String(r)]+1:1,n},{})}crossJoin(...t){return new Ve(wd.cartesian(ne(this,J),...t.map(n=>Array.isArray(n)?n:n.all())))}diff(t){return Array.isArray(t)?new Ve(ne(this,J).filter(n=>!t.includes(n))):new Ve(ne(this,J).filter(n=>!t.contains(n)))}doesntContain(t,n){return typeof t=="function"?ne(this,J).every((r,o)=>!t(r,o,this)):ne(this,J).every(r=>{if(typeof n>"u")return r!=t;if(typeof t!="string")throw new TypeError("The key must be a string");return r[t]!=n})}dump(){console.log(this.toArray())}duplicates(t){return typeof t=="string"?new Ve(ne(this,J).reduce((n,r,o)=>(ne(this,J).slice(o+1).some(s=>s[t]==r[t])&&n.push(r[t]),n),[])):new Ve(ne(this,J).reduce((n,r,o)=>(ne(this,J).slice(o+1).some(s=>s==r)&&n.push(r),n),[]))}duplicatesStrict(t){return typeof t=="string"?new Ve(ne(this,J).reduce((n,r,o)=>(ne(this,J).slice(o+1).some(s=>s[t]===r[t])&&n.push(r[t]),n),[])):new Ve(ne(this,J).reduce((n,r,o)=>(ne(this,J).slice(o+1).some(s=>s===r)&&n.push(r),n),[]))}each(t){let n=0;for(const r of this){if(t(r,n,this)===!1)break;n++}return this}eachSpread(t){for(const n of this){if(!Array.isArray(n)&&!Cd(n))throw new TypeError("The items in the collection must be arrays or collections");const r=Array.isArray(n)?n:n.all();if(t(...r)===!1)break}return this}ensure(t){const n=Array.isArray(t)?t:[t];return ne(this,J).forEach((r,o)=>{if(!n.some(s=>typeof s=="string"?typeof r===s:r instanceof s))throw new TypeError(`The item at index ${o} is not of the expected type`)}),this}every(t){return ne(this,J).every((n,r)=>t(n,r,this))}except(t){return new Ve(ne(this,J).filter((n,r)=>!t.includes(r)))}filter(t){return new Ve(ne(this,J).filter((n,r)=>typeof t!="function"?!!n:t(n,r,this)))}first(t){return typeof t=="function"?ne(this,J).find((n,r)=>t(n,r,this))??null:ne(this,J)[0]??null}firstOrFail(t){const n=this.first(t);if(n===null)throw new Error("No matching item found");return n}firstWhere(t,n,r){if(typeof t!="string")throw new TypeError("The key must be a string");if(typeof n>"u")return this.first(o=>!!o[t]);if(typeof r>"u")return ne(this,J).find(o=>o[t]==n)??null;if(typeof n!="string")throw new TypeError("The operator must be a string");return r===null?ne(this,J).find(o=>o[t]===null)??null:ne(this,J).find(o=>{switch(n){case"=":return o[t]==r;case"!=":return o[t]!=r;case">":return o[t]>r;case"<":return o[t]<r;case">=":return o[t]>=r;case"<=":return o[t]<=r;default:throw new Error("Unsupported operator")}})??null}flatMap(t){return new Ve(ne(this,J).flatMap((n,r)=>t(n,r,this)))}forget(t){return ne(this,J).splice(t,1),li(this),this}forPage(t,n){return new Ve(ne(this,J).slice((t-1)*n,t*n))}get(t,n){if(typeof t!="number")throw new TypeError("The key must be a number");return typeof n>"u"?ne(this,J)[t]??null:typeof n=="function"?ne(this,J)[t]??n():ne(this,J)[t]??n}groupBy(t){const n=Array.isArray(t)?t:[t];return ne(this,J).reduce((r,o,s)=>{const l=n.map(u=>{if(typeof u=="function"){const c=u(o,s,this);return Array.isArray(c)?c:[c]}return[String(o[u])]});return wd.cartesian(...l).forEach(u=>{const c=Array.isArray(u)?u.join("."):u;qe.set(r,c,[...qe.get(r,c,[]),o])}),r},{})}has(t){return ne(this,J).length>t}hasAny(t){return t.some(n=>this.has(n))}implode(t,n){if(typeof n>"u"){if(typeof t!="string")throw new TypeError("The glue must be a string");if(!ne(this,J).every(r=>["string","number"].includes(typeof r)))throw new TypeError("The items must be strings or numbers");return ne(this,J).join(t)}if(typeof t=="function")return ne(this,J).map((r,o)=>t(r,o,this)).join(n);if(typeof t!="string")throw new TypeError("The key must be a string");if(!ne(this,J).every(r=>typeof r=="object"))throw new TypeError("The items must be objects");return ne(this,J).map(r=>r[t]).join(n)}intersect(t){return Array.isArray(t)?new Ve(ne(this,J).filter(n=>t.includes(n))):new Ve(ne(this,J).filter(n=>t.contains(n)))}isEmpty(){return ne(this,J).length===0}isNotEmpty(){return!this.isEmpty()}join(t,n){return typeof n>"u"?ne(this,J).join(t):ne(this,J).slice(0,-1).join(t)+n+ne(this,J)[ne(this,J).length-1]}keyBy(t){if(typeof t=="function")return ne(this,J).reduce((n,r,o)=>(n[t(r,o,this)]=r,n),{});if(typeof t!="string")throw new TypeError("The key must be a string");return ne(this,J).reduce((n,r)=>(n[String(r[t])]=r,n),{})}last(t){return typeof t=="function"?ne(this,J).toReversed().find((n,r)=>t(n,r,this))??null:ne(this,J)[ne(this,J).length-1]??null}map(t){return new Ve(ne(this,J).map((n,r)=>t(n,r,this)))}mapInto(t){return new Ve(ne(this,J).map(n=>new t(n)))}mapSpread(t){return new Ve(ne(this,J).map(n=>{if(!Array.isArray(n)&&!Cd(n))throw new TypeError("The items in the collection must be arrays or collections");const r=Array.isArray(n)?n:n.all();return t(...r)}))}mapToGroups(t){return ne(this,J).reduce((n,r,o)=>{const s=t(r,o,this);return Object.entries(s).forEach(([l,u])=>{n[l]=n[l]??[],n[l].push(u)}),n},{})}mapWithKeys(t){return ne(this,J).reduce((n,r,o)=>{const s=t(r,o,this);return Object.entries(s).forEach(([l,u])=>{n[l]=u}),n},{})}max(t){return typeof t=="string"?ne(this,J).reduce((n,r)=>r[t]>n?r[t]:n,ne(this,J)[0][t]):ne(this,J).reduce((n,r)=>r>n?r:n,ne(this,J)[0])}median(t){if(typeof t=="string"){const o=this.pluck(t).sort(),s=Math.floor(o.count()/2);return o.count()%2===0?new Ve([Sd(o,s-1),Sd(o,s)]).avg():Sd(o,s)}const n=ne(this,J).toSorted(),r=Math.floor(n.length/2);return n.length%2===0?new Ve([n[r-1],n[r]]).avg():n[r]??null}merge(t){return Array.isArray(t)?new Ve([...ne(this,J),...t]):new Ve([...ne(this,J),...t.all()])}min(t){return typeof t=="string"?ne(this,J).reduce((n,r)=>r[t]<n?r[t]:n,ne(this,J)[0][t]):ne(this,J).reduce((n,r)=>r<n?r:n,ne(this,J)[0])}mode(t){const n=typeof t=="string"?this.filter(o=>["number","string"].includes(typeof o[t])).countBy(o=>o[t]):this.countBy(),r=Math.max(...Object.values(n));return Object.entries(n).filter(([,o])=>o===r).map(([o])=>o)}nth(t,n=0){return this.chunk(t).filter(r=>r.count()>n).map(r=>r.get(n))}only(t){return new Ve(ne(this,J).filter((n,r)=>t.includes(r)))}pad(t,n=null){const r=ne(this,J).slice();for(;r.length<Math.abs(t);)t>0?r.push(n):r.unshift(n);return new Ve(r)}partition(t){return[this.filter(t),this.reject(t)]}percentage(t,n=2){return Math.round(100*(10^n)*this.filter(t).count()/ne(this,J).length)/(10^n)}pipe(t){return t(this)}pipeInto(t){return new t(this)}pipeThrough(t){return t.reduce((n,r)=>{if(!Cd(n)&&!Array.isArray(n))throw new TypeError("The pipeline expects the carry to be a collection or an array");return r(Cd(n)?n:new Ve(n))},this)}pluck(t){return this.map(n=>n[t])}pop(t=1){const n=ne(this,J).splice(ne(this,J).length-t,t);return li(this),t===1?n[0]??null:new Ve(n)}prepend(t){const n=ne(this,J).unshift(t);return li(this),n}pull(t){const n=ne(this,J).splice(t,1)[0]??null;return li(this),n}push(...t){const n=ne(this,J).push(...t);return li(this),n}put(t,n){return ne(this,J).splice(t,1,n),li(this),this}random(t=1){if(ne(this,J).length<t)throw new Error("The collection has fewer items than the requested amount");const n=new Ve(wd.sampleSize(ne(this,J),t));return t===1?n.first():n}reduce(t,n=null){return ne(this,J).reduce((r,o,s)=>t(r,o,s,this),n)}reject(t){return this.filter((n,r)=>!t(n,r,this))}replace(t){const n=ne(this,J).slice();return Object.entries(t).forEach(([r,o])=>{n[parseInt(r)]=o}),new Ve(n)}reverse(){return new Ve(ne(this,J).toReversed())}search(t,n=!1){if(typeof t!="function"||ne(this,J).every(o=>typeof o=="function")){const o=ne(this,J).findIndex(s=>n?s===t:s==t);return o===-1?!1:o}const r=ne(this,J).findIndex((o,s)=>t(o,s,this));return r===-1?!1:r}select(t){return this.map(n=>t.reduce((r,o)=>(r[o]=n[o],r),{}))}shift(t=1){const n=ne(this,J).splice(0,t);return li(this),t===1?n[0]??null:new Ve(n)}shuffle(){return new Ve(wd.shuffle(ne(this,J)))}skip(t){return new Ve(ne(this,J).slice(t))}skipUntil(t){return typeof t=="function"?this.skip(ne(this,J).findIndex((n,r)=>t(n,r,this))):this.skip(ne(this,J).findIndex(n=>n==t))}skipWhile(t){return typeof t=="function"?this.skip(ne(this,J).findIndex((n,r)=>!t(n,r,this))):this.skip(ne(this,J).findIndex(n=>n!=t))}slice(t,n){return typeof n>"u"?new Ve(ne(this,J).slice(t)):typeof t>"u"?new Ve(ne(this,J).slice(0,n)):new Ve(ne(this,J).slice(t,t+n))}sliding(t,n=1){const r=[];for(let o=0;o<ne(this,J).length&&!(o+t>ne(this,J).length);o+=n)r.push(ne(this,J).slice(o,o+t));return new Ve(r.map(o=>new Ve(o)))}sole(t,n){if(typeof t=="function"){const r=this.filter(t);return r.count()===1?r.first():null}if(typeof t=="string"){const r=this.where(t,n);return r.count()===1?r.first():null}return ne(this,J).length===1?this.first():null}some(...t){return this.contains(...t)}sort(t){return new Ve(ne(this,J).toSorted(t))}sortBy(t,n="asc"){if(typeof t=="function"){let r=-1;return new Ve(ne(this,J).toSorted((o,s)=>(r++,t(o,r,this)-t(s,r,this))))}if(Array.isArray(t))return t.every(r=>Array.isArray(r))?new Ve(ne(this,J).toSorted((r,o)=>{for(const[s,l]of t){const u=r[s]??-1/0,c=o[s]??-1/0;if(u>c)return l==="asc"?1:-1;if(u<c)return l==="asc"?-1:1}return 0})):new Ve(ne(this,J).toSorted((r,o)=>{for(const s of t){const l=s(r,o);if(l!==0)return l}return 0}));if(typeof t!="string")throw new TypeError("The key must be a string");return new Ve(ne(this,J).toSorted((r,o)=>{const s=r[t]??-1/0,l=o[t]??-1/0;return s>l?n==="asc"?1:-1:s<l?n==="asc"?-1:1:0}))}sortDesc(){return this.sort((t,n)=>t>n?-1:t<n?1:0)}splice(t,n,...r){const o=n===void 0?ne(this,J).length:n,s=ne(this,J).splice(t,o,...r);return li(this),new Ve(s)}split(t){const n=[];for(let r=0;r<t;r++){const o=ne(this,J).slice(n.flat().length,n.flat().length+Math.min(Math.ceil((ne(this,J).length-n.flat().length)/(t-r)),ne(this,J).length-n.flat().length));n.push(new Ve(o))}return new Ve(n)}splitIn(t){const n=Math.ceil(ne(this,J).length/t);return this.chunk(n)}sum(t){return typeof t=="string"?ne(this,J).reduce((n,r)=>{const o=r[t];if(typeof o!="number")throw new TypeError("The items must be numbers");return n+o},0):ne(this,J).reduce((n,r)=>{if(typeof r!="number")throw new TypeError("The items must be numbers");return n+r},0)}take(t){return new Ve(ne(this,J).slice(0,t))}takeUntil(t){return typeof t=="function"?this.take(ne(this,J).findIndex((n,r)=>t(n,r,this))):this.take(ne(this,J).findIndex(n=>n==t))}takeWhile(t){return typeof t=="function"?this.take(ne(this,J).findIndex((n,r)=>!t(n,r,this))):this.take(ne(this,J).findIndex(n=>n!=t))}tap(t){return t(this),this}toArray(){const t=n=>typeof n!="object"?n:Array.isArray(n)?n.map(t):n&&"toArray"in n&&typeof n.toArray=="function"?n.toArray():n&&"toJson"in n&&typeof n.toJson=="function"?n.toJson():n;return ne(this,J).map(t)}toJson(){return JSON.stringify(ne(this,J))}transform(t){for(const[n,r]of ne(this,J).entries())ne(this,J).splice(n,1,t(r,n,this));return li(this),this}unique(t){return typeof t=="string"?new Ve([...new Set(ne(this,J).map(n=>n[t]))].map(n=>ne(this,J).find(r=>r[t]==n))):new Ve([...new Set(ne(this,J))])}uniqueStrict(t){return typeof t=="string"?new Ve([...new Set(ne(this,J).map(n=>n[t]))].map(n=>ne(this,J).find(r=>r[t]===n))):new Ve([...new Set(ne(this,J))])}unless(t,n,r){return t?typeof r=="function"&&r(this):n(this),this}unlessEmpty(t,n){return this.whenNotEmpty(t,n)}unlessNotEmpty(t,n){return this.whenEmpty(t,n)}value(t){return ne(this,J).length===0?null:ne(this,J)[0][t]}when(t,n,r){return t?n(this):typeof r=="function"&&r(this),this}whenEmpty(t,n){return this.isEmpty()?t(this):typeof n=="function"&&n(this),this}whenNotEmpty(t,n){return this.isNotEmpty()?t(this):typeof n=="function"&&n(this),this}where(t,n,r){if(typeof r>"u")return new Ve(ne(this,J).filter(s=>s[t]==n));if(typeof n!="string")throw new TypeError("The operator must be a string");if(r===null)return new Ve(ne(this,J).filter(s=>s[t]===null));const o={"=":s=>s[t]==r,"!=":s=>s[t]!=r,">":s=>s[t]>r,"<":s=>s[t]<r,">=":s=>s[t]>=r,"<=":s=>s[t]<=r};if(!(n in o))throw new Error("Unsupported operator");return new Ve(ne(this,J).filter((s,l)=>o[n](s,l,this)))}whereStrict(t,n,r){if(typeof r>"u")return new Ve(ne(this,J).filter(s=>s[t]===n));if(typeof n!="string")throw new TypeError("The operator must be a string");if(r===null)return new Ve(ne(this,J).filter(s=>s[t]===null));const o={"=":s=>s[t]===r,"!=":s=>s[t]!==r,">":s=>s[t]>r,"<":s=>s[t]<r,">=":s=>s[t]>=r,"<=":s=>s[t]<=r};if(!(n in o))throw new Error("Unsupported operator");return new Ve(ne(this,J).filter((s,l)=>o[n](s,l,this)))}whereBetween(t,[n,r]){return new Ve(ne(this,J).filter(o=>o[t]>=n&&o[t]<=r))}whereIn(t,n){return new Ve(ne(this,J).filter(r=>n.includes(r[t])))}whereInstanceOf(t){return new Ve(ne(this,J).filter(n=>n instanceof t))}whereNotBetween(t,[n,r]){return new Ve(ne(this,J).filter(o=>o[t]<n||o[t]>r))}whereNotIn(t,n){return new Ve(ne(this,J).filter(r=>!n.includes(r[t])))}whereNotNull(t){return new Ve(ne(this,J).filter(n=>n[t]!==null))}whereNull(t){return new Ve(ne(this,J).filter(n=>n[t]===null))}zip(t){return Array.isArray(t)?new Ve(ne(this,J).map((n,r)=>[n,t[r]??null])):new Ve(ne(this,J).map((n,r)=>[n,t.get(r)]))}};J=new WeakMap;let zn=JL;function Fo(e,t){return new class extends e{constructor(){return super(),new Proxy(this,{get(n,r){if(Reflect.has(n,r))return Reflect.get(n,r);const o=n.getFacadeAccessor(),s=typeof o=="string"?t.make(o):o;if(!s)throw new Error(`Service ${String(o)} does not exist.`);return Reflect.get(s,r,s)}})}}}class Os extends ha{constructor(t){super(),Ar(this,"locked",[]),this.bag=t,Object.freeze(this.bag)}get(t,n){return qe.get(this.bag,t,n)}set(t,n){if(this.locked.some(r=>t.startsWith(r)))throw new Error(`Cannot set a locked path "${t}"`);if(typeof n=="object"&&n!==null&&this.locked.some(r=>qe.has(n,r.slice(t.length+1))))throw new Error(`Cannot set a path "${t}" that would override a locked path`);if(t==="."){if(this.locked.length)throw new Error("Cannot set the root path when there are locked paths");if(typeof n!="object"||n===null)throw new TypeError("Value must be an object");this.bag=pa(this.bag,()=>n),this.emit("change",{path:t,value:n,type:"set",source:this});return}this.bag=pa(this.bag,r=>{qe.set(r,t,n)}),this.emit("change",{path:t,value:n,type:"set",source:this})}merge(t,n){if(typeof n!="object"||n===null)throw new TypeError("Value must be an object");if(t==="."){if(this.locked.some(o=>qe.has(n,o)))throw new Error(`Cannot merge a path "${t}" that would override a locked path`);this.bag=pa(this.bag,o=>({...o,...n})),this.emit("change",{path:t,value:n,type:"merge",source:this});return}const r=this.get(t);if(typeof r=="object"&&r!==null)return this.set(t,{...r,...n});if(r===null||typeof r>"u")return this.set(t,n);throw new Error(`Cannot merge a non-object path "${t}"`)}has(t){return qe.has(this.bag,t)}delete(t){if(this.locked.some(n=>t.startsWith(n)))throw new Error(`Cannot delete a locked path "${t}"`);this.bag=pa(this.bag,n=>{qe.unset(n,t)}),this.emit("change",{path:t,value:null,type:"delete",source:this})}lock(t){if(!this.has(t))throw new Error(`Cannot lock a non-existing path "${t}"`);this.locked.push(t)}clone(){return new Os(this.bag)}all(){return this.bag}isEmpty(){return qe.isEmpty(this.bag)}}var W1,H1;class ZL extends(H1=Error,W1=Symbol.toStringTag,H1){constructor(t,n){super(`[Luminix] Cannot create reducer '${t}' on '${n}' as it is a reserved property`),Ar(this,W1,"ReducerOverrideException")}}function Yl(e){return class extends e{constructor(...t){return super(...t),Ar(this,"_reducers",{}),new Proxy(this,{get(n,r,o){return typeof r=="symbol"||r in n?Reflect.get(n,r,o):(s,...l)=>{const{[r]:u=new zn}=n._reducers;return Yr(s)?pa(s,c=>u.sortBy("priority").reduce((f,p)=>p.callback(f,...l),c)):u.sortBy("priority").reduce((c,f)=>f.callback(c,...l),s)}}})}reducer(t,n,r=10){if(t in this)throw new ZL(t,this);return this._reducers[t]||(this._reducers[t]=new zn),this._reducers[t].push({callback:n,priority:r}),()=>this.removeReducer(t,n)}removeReducer(t,n){const r=this._reducers[t].search(o=>o.callback===n);r!==!1&&this._reducers[t].pull(r)}getReducer(t){return this._reducers[t]||(this._reducers[t]=new zn),this._reducers[t]}hasReducer(t){return!!this._reducers[t]&&this._reducers[t].count()>0}clearReducer(t){this._reducers[t].splice(0,this._reducers[t].count())}flushReducers(){Object.values(this._reducers).forEach(t=>t.splice(0,t.count()))}}}class Ed{constructor(t){this.app=t}}function V1(e){return e instanceof sm&&e.unprocessableEntity()&&typeof e.json("message")=="string"&&typeof e.json("errors")=="object"&&e.json("errors")!==null&&Object.values(e.json("errors")).every(t=>Array.isArray(t)&&t.every(n=>typeof n=="string"))}class eD{after(t,n){return t.includes(n)?t.split(n).slice(1).join(""):""}afterLast(t,n){return t.includes(n)?t.split(n).slice(-1).join(""):""}before(t,n){return t.includes(n)?t.split(n).slice(0,1).join(""):""}beforeLast(t,n){return t.includes(n)?t.split(n).slice(0,-1).join(""):""}camel(t){return jI(t)}lcfirst(t){return rL(t)}lower(t){return t.toLowerCase()}kebab(t){return nL(t)}padBoth(t,n,r){return OL(t,n,r)}padLeft(t,n,r){return AL(t,n,r)}padRight(t,n,r){return $L(t,n,r)}human(t){return Ax(F1(t))}studly(t){return pd(this.camel(t))}snake(t){return zL(t)}title(t){return F1(t)}trim(t,n){return KL(t,n)}ucfirst(t){return pd(t)}upper(t){return t.toUpperCase()}}const _e=new(ji(eD));class tD{parse(t){return t instanceof Date?t:new Date(t)}toDateTimeLocal(t){const n=this.parse(t),r=`${n.getFullYear()}`,o=`${_e.padLeft(`${n.getMonth()+1}`,2,"0")}`,s=`${_e.padLeft(`${n.getDate()}`,2,"0")}`,l=`${_e.padLeft(`${n.getHours()}`,2,"0")}`,u=`${_e.padLeft(`${n.getMinutes()}`,2,"0")}`;return`${r}-${o}-${s}T${l}:${u}`}}const am=new(ji(tD));class nD{throttle(t,n,r){return WL(t,n,r)}debounce(t,n,r){return k1(t,n,r)}}const lm=new(ji(nD));class rD{fromObject(t){return qe.toQuery(t)}toObject(t){return qe.fromQuery(t)}merge(...t){const n=new URLSearchParams;return t.forEach(r=>{(typeof r=="string"?new URLSearchParams(_e.after(r,"?")):r).forEach((o,s)=>{n.set(s,o)})}),n}}const $s=new(ji(rD));var oD=Object.defineProperty,iD=(e,t,n)=>t in e?oD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tn=(e,t,n)=>iD(e,typeof t!="symbol"?t+"":t,n);class sD{constructor(t,n,r){tn(this,"_user"),this.config=t,this.model=n,this.route=r}attempt(t,n=!1,r){const o=document.createElement("form");o.method="post",o.action=this.route.url("login"),o.style.display="none";const s=this.config.get("auth.csrf");if(typeof s=="string"){const c=document.createElement("input");c.type="hidden",c.name="_token",c.value=s,o.appendChild(c)}const l=document.createElement("input");l.type="email",l.name="email",l.value=t.email,o.appendChild(l);const u=document.createElement("input");if(u.type="password",u.name="password",u.value=t.password,o.appendChild(u),n){const c=document.createElement("input");c.type="checkbox",c.name="remember",c.value="1",c.checked=!0,o.appendChild(c)}r&&o.addEventListener("submit",r),document.body.appendChild(o),o.submit()}check(){return!!this.config.get("auth.user")}logout(t){const n=document.createElement("form");n.method="post",n.action=this.route.url("logout"),n.style.display="none";const r=this.config.get("auth.csrf");if(typeof r=="string"){const o=document.createElement("input");o.type="hidden",o.name="_token",o.value=r,n.appendChild(o)}document.body.appendChild(n),t&&n.addEventListener("submit",t),n.submit()}user(){if(!this._user){const t=this.model.make("user"),n=this.config.get("auth.user");if(!n)return;this._user=new t(n)}return this._user}id(){var t;return((t=this.user())==null?void 0:t.getKey())||null}}class aD{constructor(){tn(this,"bags");const t={};document.querySelectorAll('#luminix-embed [id^="luminix-error"]').forEach(n=>{const r=n.id.replace("luminix-error::","");t[r]=Hb(r,"error")}),this.bags={default:new Os(t)}}bag(t="default"){return this.bags[t]||(this.bags[t]=new Os({})),this.bags[t]}add(t,n,r="default"){this.bag(r).set(t,n)}set(t,n="default"){this.bag(n).set(".",t)}all(t="default"){return this.bag(t).all()}get(t,n="default"){return this.bag(n).get(t,null)}clear(t="default"){this.bag(t).set(".",{})}}class lD{constructor(t){this._debug=t}emergency(...t){this._debug&&console.error(...t)}alert(...t){this._debug&&console.error(...t)}critical(...t){this._debug&&console.error(...t)}error(...t){this._debug&&console.error(...t)}warning(...t){this._debug&&console.warn(...t)}notice(...t){this._debug&&console.info(...t)}info(...t){this._debug&&console.info(...t)}debug(...t){this._debug&&console.debug(...t)}}var K1,G1;class cD extends(G1=Error,K1=Symbol.toStringTag,G1){constructor(t){super(`[Luminix] Model "${t}" does not have a primary key`),tn(this,K1,"ModelWithoutPrimaryKeyException")}}class uD extends ha{constructor(t,n,r={}){super(),tn(this,"bag"),this.services=t,this.abstract=n,this.query=r,this.bag=new Os(r),this.bag.on("change",()=>{this.emit("change",{data:this.bag,source:this})})}lock(t){this.bag.lock(t)}whereBetween(t,n){return this.where(t,"between",n)}whereNotBetween(t,n){return this.where(t,"notBetween",n)}whereNull(t){return this.where(t,"null",null)}whereNotNull(t){return this.where(t,"notNull",null)}limit(t){return this.bag.set("per_page",t),this}where(t,n,r){if(this.bag.has("where")||this.bag.set("where",{}),typeof t=="function")return t(this)||this;if(typeof r>"u")return this.bag.set(`where.${t}`,n),this;if(typeof n!="string")throw new Error(`Invalid operator ${n} provided for where clause.`);const o={"=":"","!=":"notEquals",">":"greaterThan",">=":"greaterThanOrEquals","<":"lessThan","<=":"lessThanOrEquals"}[n]||n;return this.bag.set(`where.${t}:${o}`,r),this}with(t){const n=this.bag.get("with",[]);return(Array.isArray(t)?t:[t]).forEach(r=>{n.includes(r)||n.push(r)}),this.bag.set("with",n),this}withOnly(t){return this.bag.set("with",Array.isArray(t)?t:[t]),this}without(t){const n=this.bag.get("with",[]);return(Array.isArray(t)?t:[t]).forEach(r=>{n.includes(r)&&n.splice(n.indexOf(r),1)}),this.bag.set("with",n),this}orderBy(t,n="asc"){return this.bag.set("order_by",`${t}:${n}`),this}searchBy(t){return this.bag.set("q",t),this}minified(){return this.bag.set("minified",!0),this}unset(t){return this.bag.delete(t),this}include(t){for(const[n,r]of t.entries())this.bag.set(n,r);return this}async exec(t=1,n){try{this.bag.set("page",t),this.emit("submit",{data:this.bag,source:this});const r=await this.services.route.call(`luminix.${this.abstract}.index`,l=>l.withQueryParameters(this.bag.all())),o=this.services.model.make(this.abstract),s=new zn(r.json("data").map(l=>{const u=new o(l);return u.exists=!0,this.services.model.emit("fetch",{class:this.abstract,model:u,source:this.services.model}),u}));if(n){const[l]=n.split("?");return{...r.json(),data:s,links:{first:`${l}?${$s.merge(n,r.json("links").first).toString()}`,last:`${l}?${$s.merge(n,r.json("links").last).toString()}`,next:r.json("links").next&&`${l}?${$s.merge(n,r.json("links").next??"").toString()}`,prev:r.json("links").prev&&`${l}?${$s.merge(n,r.json("links").prev??"").toString()}`},meta:{...r.json("meta"),links:r.json("meta").links.map(u=>({...u,url:u.url&&`${l}?${$s.merge(n,u.url).toString()}`}))}}}return{...r.json(),data:s}}catch(r){throw this.emit("error",{error:r,source:this}),r}}async get(t=1,n){const r=await this.exec(t,n);return this.emit("success",{response:r,items:r.data,source:this}),r}async first(){const t=await this.limit(1).exec(1);return this.emit("success",{response:t,items:t.data.first(),source:this}),t.data.first()}async find(t){const n=this.services.model.schema(this.abstract).primaryKey;if(!n)throw new cD(this.abstract);const r=await this.where(n,t).limit(1).exec(1);return this.emit("success",{response:r,items:r.data.sole(),source:this}),r.data.sole()}async all(){const t=this.services.config.get("luminix.backend.api.max_per_page",150),n=await this.limit(t).exec(1),r=n.meta.last_page;if(r===1)return n.data;const o=Array.from({length:r-1},(u,c)=>c+2),s=await Promise.all(o.map(u=>this.limit(t).exec(u))),l=new zn(s.reduce((u,c)=>(u.push(...c.data),u),n.data).all());return this.emit("success",{response:{...n,data:l},items:l,source:this}),l}}var q1,Q1;let yr=class extends(Q1=TypeError,q1=Symbol.toStringTag,Q1){constructor(t,n="Model"){super(`[Luminix] "${t}" expects ${n}`),tn(this,q1,"NotModelException")}};var Y1,X1;let dD=class extends(X1=Error,Y1=Symbol.toStringTag,X1){constructor(t,n,r,o){super(`[Luminix] Could not determine inverse relation for "${n}" in model "${t}". Please specify a relation in model "${r}" of type ${o} that points back to "${t}".`),tn(this,Y1,"NoInverseRelationException")}};var J1,Z1;let fD=class extends(Z1=Error,J1=Symbol.toStringTag,Z1){constructor(t){super(`[Luminix] Relation "${t}" is not supported`),tn(this,J1,"UnsupportedRelationException")}};function er(e){return typeof e=="object"&&e!==null&&e.__isModel===!0}let Rd=class{constructor(t,n,r,o=null){if(tn(this,"unsubscribeQuery",null),this.services=t,this.meta=n,this.parent=r,this.items=o,o!==null&&!qe.isModel(o)&&!(o instanceof zn&&o.every(er)))throw new yr("Relation.constructor()","Model, Collection<Model> or null")}make(t){const n=this.getRelated();if(t===null||typeof t>"u"){this.set(null);return}if(this.isSingle()){if(typeof t!="object"||Array.isArray(t))throw new TypeError("Relation.make() expects an object");this.set(new n(t))}if(this.isMultiple()){if(!Array.isArray(t))throw new TypeError("Relation.make() expects an array");this.set(new zn(t.map(r=>new n(r))))}}guessInverseRelation(){const{relations:t}=this.getRelated().getSchema(),n=this.getType(),r=this.services.model.guessInverseRelation({HasOne:["BelongsTo"],HasMany:["BelongsTo"],BelongsTo:["HasOne","HasMany"],BelongsToMany:["BelongsToMany"],MorphTo:["MorphMany","MorphOne"],MorphOne:["MorphTo"],MorphMany:["MorphTo"],MorphToMany:["MorphToMany"]},this.parent,n,this.getRelated());if(!(n in r))throw new fD(n);for(const o in t){const s=t[o];if((s.model===this.parent.getType()||["MorphOne","MorphMany"].includes(n))&&r[n].includes(s.type))return o}throw new dD(this.parent.getType(),n,this.getRelated().getSchemaName(),r[n].join(" or "))}set(t){if(t!==null&&!er(t)&&!(t instanceof zn&&t.every(er)))throw new yr("Relation.set()","Model, Collection<Model> or null");!this.items||er(this.items)?this.items=t:t instanceof zn&&this.items.splice(0,this.items.count(),...t)}getForeignKey(){return this.meta.foreignKey}getName(){return this.meta.name}getType(){return this.meta.type}getModel(){return this.meta.model}getRelated(){return this.services.model.make(this.meta.model)}query(){const t=this.getRelated().query();return this.unsubscribeQuery&&this.unsubscribeQuery(),this.unsubscribeQuery=t.on("success",n=>{this.items=n.items}),t}isLoaded(){return this.items!==null}getLoadedItems(){return this.items}isSingle(){return er(this.items)}isMultiple(){return this.items instanceof zn}getParent(){return this.parent}where(...t){return this.query().where(...t)}whereNull(t){return this.query().whereNull(t)}whereNotNull(t){return this.query().whereNotNull(t)}whereBetween(t,n){return this.query().whereBetween(t,n)}whereNotBetween(t,n){return this.query().whereNotBetween(t,n)}orderBy(t,n="asc"){return this.query().orderBy(t,n)}searchBy(t){return this.query().searchBy(t)}minified(){return this.query().minified()}limit(t){return this.query().limit(t)}};var ew,tw;class As extends(tw=Error,ew=Symbol.toStringTag,tw){constructor(t){super(`[Luminix] Expected ${t} to be reducible.`),tn(this,ew,"NotReducibleException")}}var nw,rw;let pD=class extends(rw=Error,nw=Symbol.toStringTag,rw){constructor(){super("[Luminix] Method not implemented."),tn(this,nw,"MethodNotImplementedException")}};var ow,iw;let sw=class extends(iw=Error,ow=Symbol.toStringTag,iw){constructor(t,n){super(`[Luminix] Model "${t}" must be persisted before calling "${n}"`),tn(this,ow,"ModelNotPersistedException")}};function hD(e,t,n,r,o){var s,l,u;return u=class extends(l=ha,s=Symbol.toStringTag,l){constructor(c={}){super(),tn(this,"_attributes",new Os({})),tn(this,"_original",{}),tn(this,"_relations",{}),tn(this,"_changedKeys",[]),tn(this,"exists",!1),tn(this,"wasRecentlyCreated",!1),tn(this,s,_e.studly(o)),this.makeRelations(),this.makeAttributes(c)}cast(c,f){return c==null||!f?c:["boolean","bool"].includes(f)?!!c:["date","datetime","immutable_date","immutable_datetime"].includes(f)&&typeof c=="string"?new Date(c):["float","double","integer","int"].includes(f)||f.startsWith("decimal:")?Number(c):c}mutate(c,f){return c==null||!f?c:["boolean","bool"].includes(f)?!!c:["date","datetime","immutable_date","immutable_datetime"].includes(f)&&c instanceof Date?c.toISOString():["float","double","integer","int"].includes(f)||f.startsWith("decimal:")?Number(c):c}makeRelations(){const{relations:c}=n.schema(o);if(this._relations={},!c)return;const f=n.getRelationConstructors(o);Object.entries(c).forEach(([p,m])=>{const{type:g}=m,S=g in f?f[g]:Rd;this._relations[p]=new S({model:n,route:r},{name:p,...m},this,null)})}makeAttributes(c){const{relations:f}=n.schema(o),p=Object.keys(f||{}),m=qe.omit(c,...p);if(this.fillable.filter(g=>!(g in m)).forEach(g=>{m[g]=null}),f&&Object.keys(f).forEach(g=>{this.relation(_e.camel(g)).make(c[g])}),!this.validateJsonObject(m)){if(e.get("app.env","production")==="production")throw new TypeError(`[Luminix] Invalid attributes for model "${o}"`);t.warning(`Invalid attributes for model "${o}".
|
|
14
14
|
This will throw an error in production.`,{attributes:c,abstract:o})}this._attributes.set(".",m),this._original=m,this._changedKeys.splice(0,this._changedKeys.length)}makePrimaryKeyReplacer(){return{[this.getKeyName()]:this.getKey()}}dispatchChangeEvent(c){this.emit("change",{value:c,source:this})}dispatchCreateEvent(c){this.emit("create",{value:c,source:this}),n.emit("create",{class:o,model:this,source:n})}dispatchUpdateEvent(c){this.emit("update",{value:c,source:this}),n.emit("update",{class:o,model:this,source:n})}dispatchSaveEvent(){this.emit("save",{value:this.diff(),source:this}),n.emit("save",{class:o,model:this,source:n})}dispatchDeleteEvent(c=!1){this.emit("delete",{force:c,[this.getKeyName()]:this.getKey(),source:this}),n.emit("delete",{class:o,model:this,source:n,force:c})}dispatchRestoreEvent(){this.emit("restore",{value:this.attributes,source:this}),n.emit("restore",{class:o,model:this,source:n})}dispatchErrorEvent(c,f){this.emit("error",{error:c,operation:f,source:this}),n.emit("error",{class:o,model:this,source:n,error:c,operation:f})}updateChangedKeys(c){const f=(p,m)=>typeof p=="object"&&p!==null?qe.isEqual(p,m):p==m;!this._changedKeys.includes(c)&&!f(qe.get(this._original,c),this._attributes.get(c))?this._changedKeys.push(c):this._changedKeys.includes(c)&&f(qe.get(this._original,c),this._attributes.get(c))&&this._changedKeys.splice(this._changedKeys.indexOf(c),1)}validateJsonObject(c){return typeof c!="object"||c===null?!1:Object.entries(c).every(([,f])=>["boolean","number","string"].includes(typeof f)||f===null||this.validateJsonObject(f)||Array.isArray(f)&&f.every(p=>this.validateJsonObject(p)))}get attributes(){return this._attributes.all()}get original(){return this._original}get relations(){return this._relations}get fillable(){return n.schema(o).fillable}get primaryKey(){return n.schema(o).primaryKey}get timestamps(){return n.schema(o).timestamps}get casts(){return{...n.schema(o).casts,...this.timestamps?{created_at:"datetime",updated_at:"datetime"}:{}}}get isDirty(){return this._changedKeys.length>0}getAttribute(c){let f=this._attributes.get(c,null);c in this.casts&&(f=this.cast(f,this.casts[c]));const p=n[`model${_e.studly(o)}Get${_e.studly(c)}Attribute`];if(typeof p!="function")throw new As("ModelFacade");return p.bind(n)(f,this)}setAttribute(c,f){const p=n[`model${_e.studly(o)}Set${_e.studly(c)}Attribute`];if(typeof p!="function")throw new As("ModelFacade");const m=p.bind(n)(this.mutate(f,this.casts[c]),this);if(!this.validateJsonObject({[c]:m})){if(e.get("app.env","production")==="production")throw new TypeError(`[Luminix] Attribute "${c}" in model "${o}" must be a boolean, number, string or null`);t.warning(`Invalid type for attribute "${c}" in model "${o}" after mutation.
|
|
15
15
|
This will throw an error in production.`,{key:c,value:f,mutated:m,cast:this.casts[c],item:this.toJson()});return}this._attributes.set(c,m),this.updateChangedKeys(c),this.dispatchChangeEvent({[c]:m})}getKey(){return this.getAttribute(this.primaryKey)}getKeyName(){return this.primaryKey}fill(c){const f=qe.pick(c,...this.fillable),p=Object.entries(f).reduce((m,[g,S])=>{const x=n[`model${_e.studly(o)}Set${_e.studly(g)}Attribute`];if(typeof x!="function")throw new As("ModelFacade");return m[g]=x.bind(n)(this.mutate(S,this.casts[g]),this),m},{});if(!this.validateJsonObject(p)){if(e.get("app.env","production")==="production")throw new TypeError(`[Luminix] Invalid attributes for model "${o}"`);t.warning(`Invalid attributes for model "${o}" after mutation.
|
|
16
|
-
This will throw an error in production.`,{attributes:c,mutatedAttributes:p,item:this.toJson(),casts:this.casts});return}this._attributes.merge(".",p),Object.keys(p).forEach(m=>this.updateChangedKeys(m)),this.dispatchChangeEvent(p)}dump(){t.info({...this.toJson(),[Symbol.toStringTag]:_e.studly(o)})}toJson(){const c=Object.entries(this.relations).reduce((p,[m,g])=>(g.isLoaded()&&(g.isSingle()?p[_e.snake(m)]=g.getLoadedItems().toJson():g.isMultiple()&&(p[_e.snake(m)]=g.getLoadedItems().map(S=>S.toJson()).all())),p),{}),f=n[`model${_e.studly(o)}Json`];if(typeof f!="function")throw new As("ModelFacade");return f.bind(n)({...this.attributes,...c},this)}diff(){return this._changedKeys.reduce((c,f)=>(c[f]=this._attributes.get(f),c),{})}getType(){return o}relation(c){if(c===_e.camel(c))return this.relations[_e.snake(c)]}getErrorBag(c){return`${this.exists?`${o}[${this.getKey()}].`:`${o}.`}${c}`}getRouteForSave(){return this.exists?[`luminix.${o}.update`,this.makePrimaryKeyReplacer()]:`luminix.${o}.store`}getRouteForUpdate(){return[`luminix.${o}.update`,this.makePrimaryKeyReplacer()]}getRouteForDelete(){return[`luminix.${o}.destroy`,this.makePrimaryKeyReplacer()]}getRouteForRefresh(){return[`luminix.${o}.show`,this.makePrimaryKeyReplacer()]}getLabel(){const{labeledBy:c}=n.schema(o);return this.getAttribute(c)}async refresh(c){if(!this.exists)throw new sw(o,"refresh");const f=await r.call(this.getRouteForRefresh(),c,this.getErrorBag("fetch"));this.makeAttributes(f.json())}async save(c={},f){try{const{additionalPayload:p={},sendsOnlyModifiedFields:m=!0}=c,g=this.exists,S={...qe.pick(m&&g?this.diff():this.attributes,...this.fillable),...p};if(qe.isEmpty(S))return;const x=await r.call(this.getRouteForSave(),b=>f?f(b.withData(S)):b.withData(S),this.getErrorBag(g?"update":"store"));if(x.successful())return this.makeAttributes(x.json()),this.exists=!0,this.dispatchSaveEvent(),g?this.dispatchUpdateEvent(x.json()):(this.wasRecentlyCreated=!0,this.dispatchCreateEvent(x.json())),x;throw x}catch(p){throw this.dispatchErrorEvent(p,"save"),p}}async push(){throw new pD}async delete(){try{const c=await r.call(this.getRouteForDelete(),void 0,this.getErrorBag("delete"));if(c.noContent())return this.dispatchDeleteEvent(),c;throw c}catch(c){throw this.dispatchErrorEvent(c,"delete"),c}}async update(c,f){try{const p=await r.call(this.getRouteForUpdate(),m=>f?f(m.withData(c)):m.withData(c),this.getErrorBag("update"));if(p.ok()){this.makeAttributes(p.json()),this.dispatchUpdateEvent(p.json());return}throw p}catch(p){throw this.dispatchErrorEvent(p,"save"),p}}async forceDelete(){try{const c=await r.call(this.getRouteForDelete(),f=>f.withQueryParameters({force:!0}),this.getErrorBag("forceDelete"));if(c.noContent())return this.dispatchDeleteEvent(!0),c;throw c}catch(c){throw this.dispatchErrorEvent(c,"forceDelete"),c}}async restore(){try{const c=await r.call(this.getRouteForUpdate(),f=>f.withQueryParameters({restore:!0}),this.getErrorBag("restore"));if(c.ok())return this.dispatchRestoreEvent(),c;throw c}catch(c){throw this.dispatchErrorEvent(c,"restore"),c}}static getSchemaName(){return o}static getSchema(){return n.schema(o)}static query(){return new uD({config:e,route:r,model:n},o)}static where(...c){return this.query().where(...c)}static whereNull(c){return this.query().whereNull(c)}static whereNotNull(c){return this.query().whereNotNull(c)}static whereBetween(c,f){return this.query().whereBetween(c,f)}static whereNotBetween(c,f){return this.query().whereNotBetween(c,f)}static orderBy(c,f="asc"){return this.query().orderBy(c,f)}static searchBy(c){return this.query().searchBy(c)}static minified(){return this.query().minified()}static limit(c){return this.query().limit(c)}static get(c=1,f){return this.query().get(c,f)}static find(c){return this.query().find(c)}static first(){return this.query().first()}static async create(c){const f=n.make(o),p=new f;return p.fill(c),await p.save(),p}static async update(c,f){const p=n.make(o),m=new p({id:c});return m.fill(f),m.exists=!0,await m.save(),m}static delete(c){if(Array.isArray(c))return r.call(`luminix.${o}.destroyMany`,p=>p.withQueryParameters({ids:c}),`${o}.deleteMany`);const f=n.make(o);return new f({id:c}).delete()}static async restore(c){if(Array.isArray(c))return r.call(`luminix.${o}.restoreMany`,p=>p.withData({ids:c}),`${o}.restoreMany`);const f=n.make(o);return new f({id:c}).restore()}static forceDelete(c){if(Array.isArray(c))return r.call(`luminix.${o}.destroyMany`,p=>p.withQueryParameters({ids:c,force:!0}),`${o}.forceDeleteMany`);const f=n.make(o);return new f({id:c}).forceDelete()}static singular(){return n.schema(o).displayName.singular}static plural(){return n.schema(o).displayName.plural}},tn(u,"name",_e.studly(o)),u}function mD(e,t,n){var r,o;return class extends(o=n,r=Symbol.toStringTag,o){constructor(s={}){return super(s),tn(this,r,_e.studly(t)),new Proxy(this,{get:(l,u)=>{if(u==="__isModel")return!0;if(Reflect.has(l,u))return Reflect.get(l,u);if(Object.keys(l.attributes).includes(u))return l.getAttribute(u);if(Object.keys(l.relations).includes(u))return l.relations[u].getLoadedItems();if(u.endsWith("Relation")&&Object.keys(l.relations).includes(_e.snake(u.slice(0,-8))))return()=>l.relation(u.slice(0,-8));if(e.hasReducer(`model${_e.studly(l.getType())}Get${_e.studly(u)}Attribute`)){const c=e[`model${_e.studly(l.getType())}Get${_e.studly(u)}Attribute`];if(typeof c!="function")throw new As("ModelFacade");return c.bind(e)(void 0,l)}return Reflect.get(l,u)},set:(l,u,c)=>u in l&&typeof l[u]!="function"?Reflect.set(l,u,c):(l.setAttribute(_e.snake(u),c),!0)})}}}var aw,lw;class cw extends(lw=Error,aw=Symbol.toStringTag,lw){constructor(t){super(`[Luminix] Model "${t}" not found`),tn(this,aw,"ModelNotFoundException")}}var uw,dw;class Xl extends(dw=TypeError,uw=Symbol.toStringTag,dw){constructor(t,n,r){super(`[Luminix] "${t}" expects a related model of type "${n}". Received "${r}" instead.`),tn(this,uw,"ModelInvalidRelatedTypeException")}}class fw extends Rd{constructor(t,n,r,o=null){if(!qe.isModel(o)&&o!==null)throw new yr("BelongsTo.constructor()","Model or null");super(t,n,r,o),this.services=t,this.meta=n,this.parent=r,this.items=o}isSingle(){return!0}isMultiple(){return!1}query(){const t=super.query(),n=this.guessInverseRelation();return t.where(n,this.parent.getKey()),t.lock(`where.${n}`),t}get(){return this.query().first()}async associate(t){if(!qe.isModel(t))throw new yr("BelongsTo.associate()");if(t.getType()!==this.getRelated().getSchemaName())throw new Xl("BelongsTo.associate()",this.getRelated().getSchemaName(),t.getType());if(!t.exists)throw new sw(this.getRelated().getSchemaName(),"save");return this.parent.update({[this.getForeignKey()]:t.getKey()})}dissociate(){return this.parent.update({[this.getForeignKey()]:null})}}class pw extends Rd{constructor(t,n,r,o=null){if(o!==null&&!(o instanceof zn&&o.every(er)))throw new yr("BelongsToMany.constructor()","Collection<Model> or null");super(t,n,r,o),this.services=t,this.meta=n,this.parent=r,this.items=o}isSingle(){return!1}isMultiple(){return!0}query(){const t=super.query(),n=this.guessInverseRelation();return t.where(n,this.parent.getKey()),t.lock(`where.${n}`),t}get(t=1,n){return this.query().get(t,n)}all(){return this.query().all()}first(){return this.query().first()}find(t){return this.query().find(t)}attachQuietly(t,n={}){return this.services.route.call([`luminix.${this.parent.getType()}.${this.getName()}:attach`,{[this.parent.getKeyName()]:this.parent.getKey(),itemId:t}],r=>r.withData(n))}async attach(t,n={}){if(await this.attachQuietly(t,n),this.items){const r=this.items.search(s=>s.getKey()===t),o=await this.getRelated().find(t);if(!o)return;r!==!1?this.items.put(r,o):this.items.push(o)}else this.items=await this.all()}async detachQuietly(t){await this.services.route.call([`luminix.${this.parent.getType()}.${this.getName()}:detach`,{[this.parent.getKeyName()]:this.parent.getKey(),itemId:t}])}async detach(t){if(await this.detachQuietly(t),this.items){const n=this.items.search(r=>r.getKey()===t);n!==!1&&this.items.pull(n)}}async syncQuietly(t){await this.services.route.call([`luminix.${this.parent.getType()}.${this.getName()}:sync`,{[this.parent.getKeyName()]:this.parent.getKey()}],n=>n.withData(t))}async syncWithPivotValuesQuietly(t,n){await this.services.route.call([`luminix.${this.parent.getType()}.${this.getName()}:sync`,{[this.parent.getKeyName()]:this.parent.getKey()}],r=>r.withData(t.map(o=>({[this.getRelated().getSchema().primaryKey]:o,...n}))))}async sync(t){await this.syncQuietly(t);const n=await this.all();this.items?this.items.splice(0,this.items.count(),...n):this.items=n}async syncWithPivotValues(t,n){await this.syncWithPivotValuesQuietly(t,n);const r=await this.all();this.items?this.items.splice(0,this.items.count(),...r):this.items=r}}class cm extends Rd{query(){const t=super.query(),n=this.guessInverseRelation();return t.where(n,this.parent.getKey()),t.lock(`where.${n}`),t}async saveQuietly(t){if(!er(t))throw new yr("HasOneOrMany.saveQuietly()");if(t.getType()!==this.getRelated().getSchemaName())throw new Xl("HasOneOrMany.saveQuietly()",this.getRelated().getSchemaName(),t.getType());t.setAttribute(this.getForeignKey(),this.parent.getKey()),await t.save()}}class gD extends cm{constructor(t,n,r,o=null){if(!er(o)&&o!==null)throw new yr("HasOne.constructor()","Model or null");super(t,n,r,o),this.services=t,this.meta=n,this.parent=r,this.items=o}isSingle(){return!0}isMultiple(){return!1}get(){return this.query().first()}async save(t){await this.saveQuietly(t),this.items=t}}class yD extends cm{constructor(t,n,r,o=null){if(o!==null&&!(o instanceof zn&&o.every(er)))throw new yr("HasMany.constructor()","Collection<Model> or null");super(t,n,r,o),this.services=t,this.meta=n,this.parent=r,this.items=o}isSingle(){return!1}isMultiple(){return!0}get(t=1,n){return this.query().get(t,n)}all(){return this.query().all()}first(){return this.query().first()}find(t){return this.query().find(t)}async saveManyQuietly(t){if(!Array.isArray(t)||!t.every(er))throw new yr("HasMany.saveManyQuietly()","Model[]");if(!t.every(n=>n.getType()===this.getRelated().getSchemaName()))throw new Xl("HasMany.saveManyQuietly()",this.getRelated().getSchemaName(),t.map(n=>n.getType()).join(", "));await Promise.all(t.map(n=>(n.setAttribute(this.getForeignKey(),this.parent.getKey()),n.save())))}async saveMany(t){await this.saveManyQuietly(t);const n=await this.all();this.items?this.items.splice(0,this.items.count(),...n):this.items=n}async save(t){await this.saveQuietly(t),this.items===null?this.items=await this.all():this.items.push(t)}}class hw extends cm{query(){const t=this.getRelated().query();t.once("success",r=>{this.items=r.items});const n=this.guessInverseRelation();return t.where(n+"_id",this.parent.getKey()),t.where(n+"_type",this.getRelated().getSchemaName()),t.lock(`where.${n}_id`),t.lock(`where.${n}_type`),t}async saveQuietly(t){if(!er(t))throw new yr("MorphOneOrMany.saveQuietly()");if(t.getType()!==this.getRelated().getSchemaName())throw new Xl("MorphOneOrMany.saveQuietly()",this.getRelated().getSchemaName(),t.getType());const n=this.guessInverseRelation();t.setAttribute(n+"_id",this.parent.getKey()),t.setAttribute(n+"_type",this.parent.getType()),await t.save()}}let vD=class extends hw{constructor(t,n,r,o=null){if(o!==null&&!(o instanceof zn&&o.every(er)))throw new yr("MorphMany.constructor()","Collection<Model> or null");super(t,n,r,o),this.services=t,this.meta=n,this.parent=r,this.items=o}isSingle(){return!1}isMultiple(){return!0}get(t=1,n){return this.query().get(t,n)}all(){return this.query().all()}first(){return this.query().first()}find(t){return this.query().find(t)}async saveManyQuietly(t){if(!Array.isArray(t)||!t.every(er))throw new yr("MorphMany.saveManyQuietly()");if(!t.every(n=>n.getType()===this.getRelated().getSchemaName()))throw new Xl("MorphMany.saveManyQuietly()",this.getRelated().getSchemaName(),t.map(n=>n.getType()).join(", "));await Promise.all(t.map(n=>(n.setAttribute(this.getName()+"_id",this.parent.getKey()),n.setAttribute(this.getName()+"_type",this.parent.getType()),n.save())))}async save(t){await this.saveQuietly(t),this.items?this.items.push(t):this.items=await this.all()}async saveMany(t){await this.saveManyQuietly(t);const n=await this.all();this.items?this.items.splice(0,this.items.count(),...n):this.items=n}},bD=class extends hw{constructor(t,n,r,o=null){if(super(t,n,r,o),this.services=t,this.meta=n,this.parent=r,this.items=o,o!==null&&!er(o))throw new yr("MorphOne.constructor()","Model or null")}isSingle(){return!0}isMultiple(){return!1}get(){return this.query().first()}async save(t){await this.saveQuietly(t),this.items=t}};class xD extends fw{getRelated(){return this.services.model.make(this.parent.getAttribute(this.getName()+"_type"))}async associate(t){if(!er(t))throw new yr("MorphTo.associate()");return t.exists||await t.save(),this.parent.update({[this.getName()+"_id"]:t.getKey(),[this.getName()+"_type"]:t.getType()})}dissociate(){return this.parent.update({[this.getName()+"_id"]:null,[this.getName()+"_type"]:null})}}let wD=class extends pw{query(){const t=super.query(),n=this.guessInverseRelation();return t.where(n+"_id",this.parent.getKey()),t.where(n+"_type",this.parent.getType()),t.lock(`where.${n}_id`),t.lock(`where.${n}_type`),t}};var mw,gw;class SD extends(gw=ha,mw=Symbol.toStringTag,gw){constructor(t){super(),tn(this,"_models",{}),tn(this,mw,"ModelService"),this._schema=t}boot(t){this._schema&&Object.keys(this._schema).forEach(n=>{const r=this[`model${_e.studly(n)}`],o=this.model(hD(t.make("config"),t.make("log"),t.make("model"),t.make("route"),n),n),s=r(o);this._models[n]=mD(t.make("model"),n,s)})}schema(t){if(!this._schema||t&&!this._schema[t])throw new cw(t||"undefined");return t?this._schema[t]:this._schema}make(t){if(t&&!this._models[t])throw new cw(t);return t?this._models[t]:this._models}getRelationConstructors(t){return this.relationMap({BelongsTo:fw,BelongsToMany:pw,HasOne:gD,HasMany:yD,MorphMany:vD,MorphOne:bD,MorphTo:xD,MorphToMany:wD},t)}toString(){return"model"}}const CD=Yl(SD);var yw,vw;let ED=class extends(vw=Error,yw=Symbol.toStringTag,vw){constructor(t){super(`[Luminix] Route "${t}" not found`),tn(this,yw,"RouteNotFoundException")}};const RD=Yl(class{constructor(t,n,r,o=""){this.routes=t,this.error=n,this.http=r,this.appUrl=o}isRouteTuple(t){if(!Array.isArray(t)||t.length<2)return!1;const[n,...r]=t;if(typeof n!="string")return!1;const o=["get","post","put","patch","delete"];return!!r.every(s=>o.includes(s))}extractGenerator(t){let n,r=!1;return Array.isArray(t)?[n,r]=t:n=t,[n,r]}get(t){if(!this.exists(t))throw new ED(t);return qe.get(this.routes,t)}url(t){const[n,r]=this.extractGenerator(t),o=this.get(n)[0].replace(/^\/|\/$/g,""),s=/{([^}]+)}/g;if(r===!1){if(typeof this.replaceRouteParams!="function")throw new As("RouteFacade");return this.appUrl+this.replaceRouteParams(`/${o}`)}const l=o.match(s),u=l?l.map(g=>g.slice(1,-1)):[],c=Object.keys(r),f=u.filter(g=>!c.includes(g)),p=c.filter(g=>!u.includes(g));if(f.length>0)throw new TypeError(`Missing values for parameter(s): ${f.join(", ")}`);if(p.length>0)throw new TypeError(`Unexpected parameters: ${p.join(", ")}`);const m=u.reduce((g,S)=>g.replace(`{${S}}`,`${r[S]}`),o);return this.appUrl+`/${m}`}methods(t){const[n]=this.extractGenerator(t);return this.get(n).slice(1)}exists(t){return qe.has(this.routes,t)&&this.isRouteTuple(qe.get(this.routes,t))}async call(t,n=o=>o,r="default"){if(typeof this.clientOptions!="function"||typeof this.clientError!="function")throw new As("RouteFacade");const[o,s]=this.extractGenerator(t),[,...l]=this.get(o),u=this.url(s?[o,s]:o),c=n(this.http()),f=this.clientOptions({},o);qe.isEmpty(f)||c.withOptions(f);const p=l[0]??f.method;this.error.clear(r);const m=await c[p](u);if(V1(m)){const g=m.json("errors");this.error.set(Object.entries(g).reduce((S,[x,b])=>(S[x]=b.join(" "),S),{}),r)}else m.failed()&&this.error.set(this.clientError({axios:m.json("message")},{response:m,name:o,replace:s,client:c}),r);return m}toString(){return"route"}}),kD=ji(class{getClient(){return new YL}baseUrl(t){return this.getClient().baseUrl(t)}asForm(){return this.getClient().asForm()}accept(t){return this.getClient().accept(t)}acceptJson(){return this.getClient().acceptJson()}withHeaders(t){return this.getClient().withHeaders(t)}withOptions(t){return this.getClient().withOptions(t)}withData(t){return this.getClient().withData(t)}withQueryParameters(t){return this.getClient().withQueryParameters(t)}withBasicAuth(t,n){return this.getClient().withBasicAuth(t,n)}withToken(t){return this.getClient().withToken(t)}get(t,n){return this.getClient().get(t,n)}post(t,n){return this.getClient().post(t,n)}put(t,n){return this.getClient().put(t,n)}patch(t,n){return this.getClient().patch(t,n)}delete(t,n){return this.getClient().delete(t,n)}});var bw,xw;let PD=class extends(xw=Ed,bw=Symbol.toStringTag,xw){constructor(){super(...arguments),tn(this,bw,"LuminixServiceProvider")}register(){this.registerServices(),this.registerMacros(),this.app.on("ready",()=>{this.app.dump("[Luminix] App boot completed")})}boot(){this.app.make("model").boot(this.app)}registerServices(){this.app.singleton("auth",()=>new sD(this.app.make("config"),this.app.make("model"),this.app.make("route"))),this.app.singleton("config",()=>{const t=new Os(qe.omit(this.app.configuration,"manifest"));return t.has("auth.user")||t.set("auth.user",null),t.lock("auth.user"),t}),this.app.singleton("error",()=>new aD),this.app.singleton("http",()=>new kD),this.app.singleton("log",()=>{var t;return new lD(((t=this.app.configuration.app)==null?void 0:t.debug)??!1)}),this.app.singleton("model",()=>{var t;return new CD(((t=this.app.configuration.manifest)==null?void 0:t.models)??{})}),this.app.singleton("route",()=>{var t,n;return new RD(((t=this.app.configuration.manifest)==null?void 0:t.routes)??{},this.app.make("error"),()=>this.app.make("http"),(n=this.app.configuration.app)==null?void 0:n.url)})}registerMacros(){this.app.macro("environment",(...t)=>t.length>0?t.includes(this.app.make("config").get("app.env","production")):this.app.make("config").get("app.env","production")),this.app.macro("getLocale",()=>this.app.make("config").get("app.locale","en")),this.app.macro("hasDebugModeEnabled",()=>this.app.make("config").get("app.debug",!1)),this.app.macro("isLocal",()=>this.app.make("config").get("app.env","production")==="local"),this.app.macro("isProduction",()=>this.app.make("config").get("app.env","production")==="production"),qe.macro("isModel",function(t){return typeof t=="object"&&t!==null&&t.__isModel===!0})}},xa;const xo=Fo(class{getFacadeAccessor(){return xa||(xa=new(ji(QL))([PD])),xa}down(){xa&&(xa.flush(),xa=void 0)}});function Tt(e=void 0){return typeof e!="string"?xo:xo.make(e)}function tr(e){return new zn(e)}function _i(e,t){const n=Tt("config");return typeof e>"u"?n:n.get(e,t)}function um(e,t="default"){return e?Tt().make("error").get(e,t):Tt().make("error")}function dm(...e){const t=Tt("log");return e.length?t.debug(...e):t}function Jl(e){const t=Tt("model");return e?t.make(e):t}function ww(e,t=!1){const n=Tt("route");return e?t?n.url([e,t]):n.url(e):n}Fo(class{getFacadeAccessor(){return"auth"}},xo);const Ii=Fo(class{getFacadeAccessor(){return"config"}},xo);class TD{getFacadeAccessor(){return"error"}}Fo(TD,xo);const OD=Fo(class{getFacadeAccessor(){return"http"}},xo);Fo(class{getFacadeAccessor(){return"log"}},xo);const kd=Fo(class{getFacadeAccessor(){return"model"}},xo),fm=Fo(class{getFacadeAccessor(){return"route"}},xo);function hn(){return hn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hn.apply(this,arguments)}var kn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(kn||(kn={}));const Sw="popstate";function $D(e){e===void 0&&(e={});function t(r,o){let{pathname:s,search:l,hash:u}=r.location;return Zl("",{pathname:s,search:l,hash:u},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Mi(o)}return jD(t,n,null,e)}function Ct(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function wa(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function AD(){return Math.random().toString(36).substr(2,8)}function Cw(e,t){return{usr:e.state,key:e.key,idx:t}}function Zl(e,t,n,r){return n===void 0&&(n=null),hn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ni(t):t,{state:n,key:t&&t.key||r||AD()})}function Mi(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ni(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function jD(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,l=o.history,u=kn.Pop,c=null,f=p();f==null&&(f=0,l.replaceState(hn({},l.state,{idx:f}),""));function p(){return(l.state||{idx:null}).idx}function m(){u=kn.Pop;let w=p(),P=w==null?null:w-f;f=w,c&&c({action:u,location:b.location,delta:P})}function g(w,P){u=kn.Push;let R=Zl(b.location,w,P);f=p()+1;let O=Cw(R,f),A=b.createHref(R);try{l.pushState(O,"",A)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;o.location.assign(A)}s&&c&&c({action:u,location:b.location,delta:1})}function S(w,P){u=kn.Replace;let R=Zl(b.location,w,P);f=p();let O=Cw(R,f),A=b.createHref(R);l.replaceState(O,"",A),s&&c&&c({action:u,location:b.location,delta:0})}function x(w){let P=o.location.origin!=="null"?o.location.origin:o.location.href,R=typeof w=="string"?w:Mi(w);return R=R.replace(/ $/,"%20"),Ct(P,"No window.location.(origin|href) available to create URL for href: "+R),new URL(R,P)}let b={get action(){return u},get location(){return e(o,l)},listen(w){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(Sw,m),c=w,()=>{o.removeEventListener(Sw,m),c=null}},createHref(w){return t(o,w)},createURL:x,encodeLocation(w){let P=x(w);return{pathname:P.pathname,search:P.search,hash:P.hash}},push:g,replace:S,go(w){return l.go(w)}};return b}var nn;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(nn||(nn={}));const _D=new Set(["lazy","caseSensitive","path","id","index","children"]);function ID(e){return e.index===!0}function ec(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,s)=>{let l=[...n,String(s)],u=typeof o.id=="string"?o.id:l.join("-");if(Ct(o.index!==!0||!o.children,"Cannot specify children on an index route"),Ct(!r[u],'Found a route id collision on id "'+u+`". Route id's must be globally unique within Data Router usages`),ID(o)){let c=hn({},o,t(o),{id:u});return r[u]=c,c}else{let c=hn({},o,t(o),{id:u,children:void 0});return r[u]=c,o.children&&(c.children=ec(o.children,t,l,r)),c}})}function js(e,t,n){return n===void 0&&(n="/"),Pd(e,t,n,!1)}function Pd(e,t,n,r){let o=typeof t=="string"?Ni(t):t,s=Li(o.pathname||"/",n);if(s==null)return null;let l=Ew(e);ND(l);let u=null;for(let c=0;u==null&&c<l.length;++c){let f=GD(s);u=VD(l[c],f,r)}return u}function MD(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function Ew(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(s,l,u)=>{let c={relativePath:u===void 0?s.path||"":u,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};c.relativePath.startsWith("/")&&(Ct(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let f=Bo([r,c.relativePath]),p=n.concat(c);s.children&&s.children.length>0&&(Ct(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),Ew(s.children,t,p,f)),!(s.path==null&&!s.index)&&t.push({path:f,score:WD(f,s.index),routesMeta:p})};return e.forEach((s,l)=>{var u;if(s.path===""||!((u=s.path)!=null&&u.includes("?")))o(s,l);else for(let c of Rw(s.path))o(s,l,c)}),t}function Rw(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let l=Rw(r.join("/")),u=[];return u.push(...l.map(c=>c===""?s:[s,c].join("/"))),o&&u.push(...l),u.map(c=>e.startsWith("/")&&c===""?"/":c)}function ND(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:HD(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const LD=/^:[\w-]+$/,DD=3,FD=2,BD=1,zD=10,UD=-2,kw=e=>e==="*";function WD(e,t){let n=e.split("/"),r=n.length;return n.some(kw)&&(r+=UD),t&&(r+=FD),n.filter(o=>!kw(o)).reduce((o,s)=>o+(LD.test(s)?DD:s===""?BD:zD),r)}function HD(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function VD(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},s="/",l=[];for(let u=0;u<r.length;++u){let c=r[u],f=u===r.length-1,p=s==="/"?t:t.slice(s.length)||"/",m=Pw({path:c.relativePath,caseSensitive:c.caseSensitive,end:f},p),g=c.route;if(!m&&f&&n&&!r[r.length-1].route.index&&(m=Pw({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},p)),!m)return null;Object.assign(o,m.params),l.push({params:o,pathname:Bo([s,m.pathname]),pathnameBase:YD(Bo([s,m.pathnameBase])),route:g}),m.pathnameBase!=="/"&&(s=Bo([s,m.pathnameBase]))}return l}function Pw(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=KD(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],l=s.replace(/(.)\/+$/,"$1"),u=o.slice(1);return{params:r.reduce((f,p,m)=>{let{paramName:g,isOptional:S}=p;if(g==="*"){let b=u[m]||"";l=s.slice(0,s.length-b.length).replace(/(.)\/+$/,"$1")}const x=u[m];return S&&!x?f[g]=void 0:f[g]=(x||"").replace(/%2F/g,"/"),f},{}),pathname:s,pathnameBase:l,pattern:e}}function KD(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),wa(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,u,c)=>(r.push({paramName:u,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function GD(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return wa(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Li(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function qD(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ni(e):e;return{pathname:n?n.startsWith("/")?n:QD(n,t):t,search:XD(r),hash:JD(o)}}function QD(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function pm(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Tw(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function hm(e,t){let n=Tw(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function mm(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ni(e):(o=hn({},e),Ct(!o.pathname||!o.pathname.includes("?"),pm("?","pathname","search",o)),Ct(!o.pathname||!o.pathname.includes("#"),pm("#","pathname","hash",o)),Ct(!o.search||!o.search.includes("#"),pm("#","search","hash",o)));let s=e===""||o.pathname==="",l=s?"/":o.pathname,u;if(l==null)u=n;else{let m=t.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),m-=1;o.pathname=g.join("/")}u=m>=0?t[m]:"/"}let c=qD(o,u),f=l&&l!=="/"&&l.endsWith("/"),p=(s||l===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(f||p)&&(c.pathname+="/"),c}const Bo=e=>e.join("/").replace(/\/\/+/g,"/"),YD=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),XD=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,JD=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class gm{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Td(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ow=["post","put","patch","delete"],ZD=new Set(Ow),eF=["get",...Ow],tF=new Set(eF),nF=new Set([301,302,303,307,308]),rF=new Set([307,308]),ym={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},oF={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},tc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},vm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,iF=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),$w="remix-router-transitions";function sF(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Ct(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let D=e.detectErrorBoundary;o=V=>({hasErrorBoundary:D(V)})}else o=iF;let s={},l=ec(e.routes,o,void 0,s),u,c=e.basename||"/",f=e.unstable_dataStrategy||dF,p=e.unstable_patchRoutesOnMiss,m=hn({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),g=null,S=new Set,x=null,b=null,w=null,P=e.hydrationData!=null,R=js(l,e.history.location,c),O=null;if(R==null&&!p){let D=nr(404,{pathname:e.history.location.pathname}),{matches:V,route:oe}=Uw(l);R=V,O={[oe.id]:D}}R&&p&&!e.hydrationData&&co(R,l,e.history.location.pathname).active&&(R=null);let A;if(!R)A=!1,R=[];else if(R.some(D=>D.route.lazy))A=!1;else if(!R.some(D=>D.route.loader))A=!0;else if(m.v7_partialHydration){let D=e.hydrationData?e.hydrationData.loaderData:null,V=e.hydrationData?e.hydrationData.errors:null,oe=me=>me.route.loader?typeof me.route.loader=="function"&&me.route.loader.hydrate===!0?!1:D&&D[me.route.id]!==void 0||V&&V[me.route.id]!==void 0:!0;if(V){let me=R.findIndex(je=>V[je.route.id]!==void 0);A=R.slice(0,me+1).every(oe)}else A=R.every(oe)}else A=e.hydrationData!=null;let $,T={historyAction:e.history.action,location:e.history.location,matches:R,initialized:A,navigation:ym,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||O,fetchers:new Map,blockers:new Map},_=kn.Pop,M=!1,F,B=!1,G=new Map,W=null,H=!1,z=!1,te=[],Z=[],X=new Map,N=0,Y=-1,ce=new Map,L=new Set,se=new Map,Oe=new Map,ve=new Set,xe=new Map,he=new Map,Me=new Map,de=!1;function ke(){if(g=e.history.listen(D=>{let{action:V,location:oe,delta:me}=D;if(de){de=!1;return}wa(he.size===0||me!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let je=It({currentLocation:T.location,nextLocation:oe,historyAction:V});if(je&&me!=null){de=!0,e.history.go(me*-1),bt(je,{state:"blocked",location:oe,proceed(){bt(je,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),e.history.go(me)},reset(){let Ke=new Map(T.blockers);Ke.set(je,tc),Be({blockers:Ke})}});return}return ze(V,oe)}),n){EF(t,G);let D=()=>RF(t,G);t.addEventListener("pagehide",D),W=()=>t.removeEventListener("pagehide",D)}return T.initialized||ze(kn.Pop,T.location,{initialHydration:!0}),$}function Qe(){g&&g(),W&&W(),S.clear(),F&&F.abort(),T.fetchers.forEach((D,V)=>Ht(V)),T.blockers.forEach((D,V)=>yt(V))}function He(D){return S.add(D),()=>S.delete(D)}function Be(D,V){V===void 0&&(V={}),T=hn({},T,D);let oe=[],me=[];m.v7_fetcherPersist&&T.fetchers.forEach((je,Ke)=>{je.state==="idle"&&(ve.has(Ke)?me.push(Ke):oe.push(Ke))}),[...S].forEach(je=>je(T,{deletedFetchers:me,unstable_viewTransitionOpts:V.viewTransitionOpts,unstable_flushSync:V.flushSync===!0})),m.v7_fetcherPersist&&(oe.forEach(je=>T.fetchers.delete(je)),me.forEach(je=>Ht(je)))}function Je(D,V,oe){var me,je;let{flushSync:Ke}=oe===void 0?{}:oe,it=T.actionData!=null&&T.navigation.formMethod!=null&&wo(T.navigation.formMethod)&&T.navigation.state==="loading"&&((me=D.state)==null?void 0:me._isRedirect)!==!0,$e;V.actionData?Object.keys(V.actionData).length>0?$e=V.actionData:$e=null:it?$e=T.actionData:$e=null;let st=V.loaderData?Bw(T.loaderData,V.loaderData,V.matches||[],V.errors):T.loaderData,Q=T.blockers;Q.size>0&&(Q=new Map(Q),Q.forEach((be,De)=>Q.set(De,tc)));let q=M===!0||T.navigation.formMethod!=null&&wo(T.navigation.formMethod)&&((je=D.state)==null?void 0:je._isRedirect)!==!0;u&&(l=u,u=void 0),H||_===kn.Pop||(_===kn.Push?e.history.push(D,D.state):_===kn.Replace&&e.history.replace(D,D.state));let we;if(_===kn.Pop){let be=G.get(T.location.pathname);be&&be.has(D.pathname)?we={currentLocation:T.location,nextLocation:D}:G.has(D.pathname)&&(we={currentLocation:D,nextLocation:T.location})}else if(B){let be=G.get(T.location.pathname);be?be.add(D.pathname):(be=new Set([D.pathname]),G.set(T.location.pathname,be)),we={currentLocation:T.location,nextLocation:D}}Be(hn({},V,{actionData:$e,loaderData:st,historyAction:_,location:D,initialized:!0,navigation:ym,revalidation:"idle",restoreScrollPosition:To(D,V.matches||T.matches),preventScrollReset:q,blockers:Q}),{viewTransitionOpts:we,flushSync:Ke===!0}),_=kn.Pop,M=!1,B=!1,H=!1,z=!1,te=[],Z=[]}async function ct(D,V){if(typeof D=="number"){e.history.go(D);return}let oe=bm(T.location,T.matches,c,m.v7_prependBasename,D,m.v7_relativeSplatPath,V==null?void 0:V.fromRouteId,V==null?void 0:V.relative),{path:me,submission:je,error:Ke}=Aw(m.v7_normalizeFormMethod,!1,oe,V),it=T.location,$e=Zl(T.location,me,V&&V.state);$e=hn({},$e,e.history.encodeLocation($e));let st=V&&V.replace!=null?V.replace:void 0,Q=kn.Push;st===!0?Q=kn.Replace:st===!1||je!=null&&wo(je.formMethod)&&je.formAction===T.location.pathname+T.location.search&&(Q=kn.Replace);let q=V&&"preventScrollReset"in V?V.preventScrollReset===!0:void 0,we=(V&&V.unstable_flushSync)===!0,be=It({currentLocation:it,nextLocation:$e,historyAction:Q});if(be){bt(be,{state:"blocked",location:$e,proceed(){bt(be,{state:"proceeding",proceed:void 0,reset:void 0,location:$e}),ct(D,V)},reset(){let De=new Map(T.blockers);De.set(be,tc),Be({blockers:De})}});return}return await ze(Q,$e,{submission:je,pendingError:Ke,preventScrollReset:q,replace:V&&V.replace,enableViewTransition:V&&V.unstable_viewTransition,flushSync:we})}function ot(){if(qt(),Be({revalidation:"loading"}),T.navigation.state!=="submitting"){if(T.navigation.state==="idle"){ze(T.historyAction,T.location,{startUninterruptedRevalidation:!0});return}ze(_||T.historyAction,T.navigation.location,{overrideNavigation:T.navigation})}}async function ze(D,V,oe){F&&F.abort(),F=null,_=D,H=(oe&&oe.startUninterruptedRevalidation)===!0,Po(T.location,T.matches),M=(oe&&oe.preventScrollReset)===!0,B=(oe&&oe.enableViewTransition)===!0;let me=u||l,je=oe&&oe.overrideNavigation,Ke=js(me,V,c),it=(oe&&oe.flushSync)===!0,$e=co(Ke,me,V.pathname);if($e.active&&$e.matches&&(Ke=$e.matches),!Ke){let{error:Ee,notFoundMatches:nt,route:At}=Mt(V.pathname);Je(V,{matches:nt,loaderData:{},errors:{[At.id]:Ee}},{flushSync:it});return}if(T.initialized&&!z&&yF(T.location,V)&&!(oe&&oe.submission&&wo(oe.submission.formMethod))){Je(V,{matches:Ke},{flushSync:it});return}F=new AbortController;let st=Sa(e.history,V,F.signal,oe&&oe.submission),Q;if(oe&&oe.pendingError)Q=[Ca(Ke).route.id,{type:nn.error,error:oe.pendingError}];else if(oe&&oe.submission&&wo(oe.submission.formMethod)){let Ee=await Ot(st,V,oe.submission,Ke,$e.active,{replace:oe.replace,flushSync:it});if(Ee.shortCircuited)return;if(Ee.pendingActionResult){let[nt,At]=Ee.pendingActionResult;if(Ir(At)&&Td(At.error)&&At.error.status===404){F=null,Je(V,{matches:Ee.matches,loaderData:{},errors:{[nt]:At.error}});return}}Ke=Ee.matches||Ke,Q=Ee.pendingActionResult,je=Sm(V,oe.submission),it=!1,$e.active=!1,st=Sa(e.history,st.url,st.signal)}let{shortCircuited:q,matches:we,loaderData:be,errors:De}=await Ze(st,V,Ke,$e.active,je,oe&&oe.submission,oe&&oe.fetcherSubmission,oe&&oe.replace,oe&&oe.initialHydration===!0,it,Q);q||(F=null,Je(V,hn({matches:we||Ke},zw(Q),{loaderData:be,errors:De})))}async function Ot(D,V,oe,me,je,Ke){Ke===void 0&&(Ke={}),qt();let it=SF(V,oe);if(Be({navigation:it},{flushSync:Ke.flushSync===!0}),je){let Q=await Ln(me,V.pathname,D.signal);if(Q.type==="aborted")return{shortCircuited:!0};if(Q.type==="error"){let{boundaryId:q,error:we}=Zt(V.pathname,Q);return{matches:Q.partialMatches,pendingActionResult:[q,{type:nn.error,error:we}]}}else if(Q.matches)me=Q.matches;else{let{notFoundMatches:q,error:we,route:be}=Mt(V.pathname);return{matches:q,pendingActionResult:[be.id,{type:nn.error,error:we}]}}}let $e,st=nc(me,V);if(!st.route.action&&!st.route.lazy)$e={type:nn.error,error:nr(405,{method:D.method,pathname:V.pathname,routeId:st.route.id})};else if($e=(await Ft("action",D,[st],me))[0],D.signal.aborted)return{shortCircuited:!0};if(Is($e)){let Q;return Ke&&Ke.replace!=null?Q=Ke.replace:Q=Lw($e.response.headers.get("Location"),new URL(D.url),c)===T.location.pathname+T.location.search,await pt(D,$e,{submission:oe,replace:Q}),{shortCircuited:!0}}if(_s($e))throw nr(400,{type:"defer-action"});if(Ir($e)){let Q=Ca(me,st.route.id);return(Ke&&Ke.replace)!==!0&&(_=kn.Push),{matches:me,pendingActionResult:[Q.route.id,$e]}}return{matches:me,pendingActionResult:[st.route.id,$e]}}async function Ze(D,V,oe,me,je,Ke,it,$e,st,Q,q){let we=je||Sm(V,Ke),be=Ke||it||qw(we),De=!H&&(!m.v7_partialHydration||!st);if(me){if(De){let Nt=$t(q);Be(hn({navigation:we},Nt!==void 0?{actionData:Nt}:{}),{flushSync:Q})}let vt=await Ln(oe,V.pathname,D.signal);if(vt.type==="aborted")return{shortCircuited:!0};if(vt.type==="error"){let{boundaryId:Nt,error:cr}=Zt(V.pathname,vt);return{matches:vt.partialMatches,loaderData:{},errors:{[Nt]:cr}}}else if(vt.matches)oe=vt.matches;else{let{error:Nt,notFoundMatches:cr,route:jt}=Mt(V.pathname);return{matches:cr,loaderData:{},errors:{[jt.id]:Nt}}}}let Ee=u||l,[nt,At]=jw(e.history,T,oe,be,V,m.v7_partialHydration&&st===!0,m.v7_skipActionErrorRevalidation,z,te,Z,ve,se,L,Ee,c,q);if(rn(vt=>!(oe&&oe.some(Nt=>Nt.route.id===vt))||nt&&nt.some(Nt=>Nt.route.id===vt)),Y=++N,nt.length===0&&At.length===0){let vt=Re();return Je(V,hn({matches:oe,loaderData:{},errors:q&&Ir(q[1])?{[q[0]]:q[1].error}:null},zw(q),vt?{fetchers:new Map(T.fetchers)}:{}),{flushSync:Q}),{shortCircuited:!0}}if(De){let vt={};if(!me){vt.navigation=we;let Nt=$t(q);Nt!==void 0&&(vt.actionData=Nt)}At.length>0&&(vt.fetchers=gt(At)),Be(vt,{flushSync:Q})}At.forEach(vt=>{X.has(vt.key)&&Ue(vt.key),vt.controller&&X.set(vt.key,vt.controller)});let uo=()=>At.forEach(vt=>Ue(vt.key));F&&F.signal.addEventListener("abort",uo);let{loaderResults:Xo,fetcherResults:Jt}=await Yt(T.matches,oe,nt,At,D);if(D.signal.aborted)return{shortCircuited:!0};F&&F.signal.removeEventListener("abort",uo),At.forEach(vt=>X.delete(vt.key));let Ji=Ww([...Xo,...Jt]);if(Ji){if(Ji.idx>=nt.length){let vt=At[Ji.idx-nt.length].key;L.add(vt)}return await pt(D,Ji.result,{replace:$e}),{shortCircuited:!0}}let{loaderData:Jo,errors:Vr}=Fw(T,oe,nt,Xo,q,At,Jt,xe);xe.forEach((vt,Nt)=>{vt.subscribe(cr=>{(cr||vt.done)&&xe.delete(Nt)})}),m.v7_partialHydration&&st&&T.errors&&Object.entries(T.errors).filter(vt=>{let[Nt]=vt;return!nt.some(cr=>cr.route.id===Nt)}).forEach(vt=>{let[Nt,cr]=vt;Vr=Object.assign(Vr||{},{[Nt]:cr})});let wi=Re(),cl=We(Y),Ys=wi||cl||At.length>0;return hn({matches:oe,loaderData:Jo,errors:Vr},Ys?{fetchers:new Map(T.fetchers)}:{})}function $t(D){if(D&&!Ir(D[1]))return{[D[0]]:D[1].data};if(T.actionData)return Object.keys(T.actionData).length===0?null:T.actionData}function gt(D){return D.forEach(V=>{let oe=T.fetchers.get(V.key),me=rc(void 0,oe?oe.data:void 0);T.fetchers.set(V.key,me)}),new Map(T.fetchers)}function dt(D,V,oe,me){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");X.has(D)&&Ue(D);let je=(me&&me.unstable_flushSync)===!0,Ke=u||l,it=bm(T.location,T.matches,c,m.v7_prependBasename,oe,m.v7_relativeSplatPath,V,me==null?void 0:me.relative),$e=js(Ke,it,c),st=co($e,Ke,it);if(st.active&&st.matches&&($e=st.matches),!$e){Pe(D,V,nr(404,{pathname:it}),{flushSync:je});return}let{path:Q,submission:q,error:we}=Aw(m.v7_normalizeFormMethod,!0,it,me);if(we){Pe(D,V,we,{flushSync:je});return}let be=nc($e,Q);if(M=(me&&me.preventScrollReset)===!0,q&&wo(q.formMethod)){_t(D,V,Q,be,$e,st.active,je,q);return}se.set(D,{routeId:V,path:Q}),Pt(D,V,Q,be,$e,st.active,je,q)}async function _t(D,V,oe,me,je,Ke,it,$e){qt(),se.delete(D);function st(jt){if(!jt.route.action&&!jt.route.lazy){let Oo=nr(405,{method:$e.formMethod,pathname:oe,routeId:V});return Pe(D,V,Oo,{flushSync:it}),!0}return!1}if(!Ke&&st(me))return;let Q=T.fetchers.get(D);et(D,CF($e,Q),{flushSync:it});let q=new AbortController,we=Sa(e.history,oe,q.signal,$e);if(Ke){let jt=await Ln(je,oe,we.signal);if(jt.type==="aborted")return;if(jt.type==="error"){let{error:Oo}=Zt(oe,jt);Pe(D,V,Oo,{flushSync:it});return}else if(jt.matches){if(je=jt.matches,me=nc(je,oe),st(me))return}else{Pe(D,V,nr(404,{pathname:oe}),{flushSync:it});return}}X.set(D,q);let be=N,Ee=(await Ft("action",we,[me],je))[0];if(we.signal.aborted){X.get(D)===q&&X.delete(D);return}if(m.v7_fetcherPersist&&ve.has(D)){if(Is(Ee)||Ir(Ee)){et(D,Di(void 0));return}}else{if(Is(Ee))if(X.delete(D),Y>be){et(D,Di(void 0));return}else return L.add(D),et(D,rc($e)),pt(we,Ee,{fetcherSubmission:$e});if(Ir(Ee)){Pe(D,V,Ee.error);return}}if(_s(Ee))throw nr(400,{type:"defer-action"});let nt=T.navigation.location||T.location,At=Sa(e.history,nt,q.signal),uo=u||l,Xo=T.navigation.state!=="idle"?js(uo,T.navigation.location,c):T.matches;Ct(Xo,"Didn't find any matches after fetcher action");let Jt=++N;ce.set(D,Jt);let Ji=rc($e,Ee.data);T.fetchers.set(D,Ji);let[Jo,Vr]=jw(e.history,T,Xo,$e,nt,!1,m.v7_skipActionErrorRevalidation,z,te,Z,ve,se,L,uo,c,[me.route.id,Ee]);Vr.filter(jt=>jt.key!==D).forEach(jt=>{let Oo=jt.key,ep=T.fetchers.get(Oo),ev=rc(void 0,ep?ep.data:void 0);T.fetchers.set(Oo,ev),X.has(Oo)&&Ue(Oo),jt.controller&&X.set(Oo,jt.controller)}),Be({fetchers:new Map(T.fetchers)});let wi=()=>Vr.forEach(jt=>Ue(jt.key));q.signal.addEventListener("abort",wi);let{loaderResults:cl,fetcherResults:Ys}=await Yt(T.matches,Xo,Jo,Vr,At);if(q.signal.aborted)return;q.signal.removeEventListener("abort",wi),ce.delete(D),X.delete(D),Vr.forEach(jt=>X.delete(jt.key));let vt=Ww([...cl,...Ys]);if(vt){if(vt.idx>=Jo.length){let jt=Vr[vt.idx-Jo.length].key;L.add(jt)}return pt(At,vt.result)}let{loaderData:Nt,errors:cr}=Fw(T,T.matches,Jo,cl,void 0,Vr,Ys,xe);if(T.fetchers.has(D)){let jt=Di(Ee.data);T.fetchers.set(D,jt)}We(Jt),T.navigation.state==="loading"&&Jt>Y?(Ct(_,"Expected pending action"),F&&F.abort(),Je(T.navigation.location,{matches:Xo,loaderData:Nt,errors:cr,fetchers:new Map(T.fetchers)})):(Be({errors:cr,loaderData:Bw(T.loaderData,Nt,Xo,cr),fetchers:new Map(T.fetchers)}),z=!1)}async function Pt(D,V,oe,me,je,Ke,it,$e){let st=T.fetchers.get(D);et(D,rc($e,st?st.data:void 0),{flushSync:it});let Q=new AbortController,q=Sa(e.history,oe,Q.signal);if(Ke){let Ee=await Ln(je,oe,q.signal);if(Ee.type==="aborted")return;if(Ee.type==="error"){let{error:nt}=Zt(oe,Ee);Pe(D,V,nt,{flushSync:it});return}else if(Ee.matches)je=Ee.matches,me=nc(je,oe);else{Pe(D,V,nr(404,{pathname:oe}),{flushSync:it});return}}X.set(D,Q);let we=N,De=(await Ft("loader",q,[me],je))[0];if(_s(De)&&(De=await Gw(De,q.signal,!0)||De),X.get(D)===Q&&X.delete(D),!q.signal.aborted){if(ve.has(D)){et(D,Di(void 0));return}if(Is(De))if(Y>we){et(D,Di(void 0));return}else{L.add(D),await pt(q,De);return}if(Ir(De)){Pe(D,V,De.error);return}Ct(!_s(De),"Unhandled fetcher deferred data"),et(D,Di(De.data))}}async function pt(D,V,oe){let{submission:me,fetcherSubmission:je,replace:Ke}=oe===void 0?{}:oe;V.response.headers.has("X-Remix-Revalidate")&&(z=!0);let it=V.response.headers.get("Location");Ct(it,"Expected a Location header on the redirect Response"),it=Lw(it,new URL(D.url),c);let $e=Zl(T.location,it,{_isRedirect:!0});if(n){let De=!1;if(V.response.headers.has("X-Remix-Reload-Document"))De=!0;else if(vm.test(it)){const Ee=e.history.createURL(it);De=Ee.origin!==t.location.origin||Li(Ee.pathname,c)==null}if(De){Ke?t.location.replace(it):t.location.assign(it);return}}F=null;let st=Ke===!0?kn.Replace:kn.Push,{formMethod:Q,formAction:q,formEncType:we}=T.navigation;!me&&!je&&Q&&q&&we&&(me=qw(T.navigation));let be=me||je;if(rF.has(V.response.status)&&be&&wo(be.formMethod))await ze(st,$e,{submission:hn({},be,{formAction:it}),preventScrollReset:M});else{let De=Sm($e,me);await ze(st,$e,{overrideNavigation:De,fetcherSubmission:je,preventScrollReset:M})}}async function Ft(D,V,oe,me){try{let je=await fF(f,D,V,oe,me,s,o);return await Promise.all(je.map((Ke,it)=>{if(bF(Ke)){let $e=Ke.result;return{type:nn.redirect,response:mF($e,V,oe[it].route.id,me,c,m.v7_relativeSplatPath)}}return hF(Ke)}))}catch(je){return oe.map(()=>({type:nn.error,error:je}))}}async function Yt(D,V,oe,me,je){let[Ke,...it]=await Promise.all([oe.length?Ft("loader",je,oe,V):[],...me.map($e=>{if($e.matches&&$e.match&&$e.controller){let st=Sa(e.history,$e.path,$e.controller.signal);return Ft("loader",st,[$e.match],$e.matches).then(Q=>Q[0])}else return Promise.resolve({type:nn.error,error:nr(404,{pathname:$e.path})})})]);return await Promise.all([Kw(D,oe,Ke,Ke.map(()=>je.signal),!1,T.loaderData),Kw(D,me.map($e=>$e.match),it,me.map($e=>$e.controller?$e.controller.signal:null),!0)]),{loaderResults:Ke,fetcherResults:it}}function qt(){z=!0,te.push(...rn()),se.forEach((D,V)=>{X.has(V)&&(Z.push(V),Ue(V))})}function et(D,V,oe){oe===void 0&&(oe={}),T.fetchers.set(D,V),Be({fetchers:new Map(T.fetchers)},{flushSync:(oe&&oe.flushSync)===!0})}function Pe(D,V,oe,me){me===void 0&&(me={});let je=Ca(T.matches,V);Ht(D),Be({errors:{[je.route.id]:oe},fetchers:new Map(T.fetchers)},{flushSync:(me&&me.flushSync)===!0})}function xt(D){return m.v7_fetcherPersist&&(Oe.set(D,(Oe.get(D)||0)+1),ve.has(D)&&ve.delete(D)),T.fetchers.get(D)||oF}function Ht(D){let V=T.fetchers.get(D);X.has(D)&&!(V&&V.state==="loading"&&ce.has(D))&&Ue(D),se.delete(D),ce.delete(D),L.delete(D),ve.delete(D),T.fetchers.delete(D)}function fn(D){if(m.v7_fetcherPersist){let V=(Oe.get(D)||0)-1;V<=0?(Oe.delete(D),ve.add(D)):Oe.set(D,V)}else Ht(D);Be({fetchers:new Map(T.fetchers)})}function Ue(D){let V=X.get(D);Ct(V,"Expected fetch controller: "+D),V.abort(),X.delete(D)}function ut(D){for(let V of D){let oe=xt(V),me=Di(oe.data);T.fetchers.set(V,me)}}function Re(){let D=[],V=!1;for(let oe of L){let me=T.fetchers.get(oe);Ct(me,"Expected fetcher: "+oe),me.state==="loading"&&(L.delete(oe),D.push(oe),V=!0)}return ut(D),V}function We(D){let V=[];for(let[oe,me]of ce)if(me<D){let je=T.fetchers.get(oe);Ct(je,"Expected fetcher: "+oe),je.state==="loading"&&(Ue(oe),ce.delete(oe),V.push(oe))}return ut(V),V.length>0}function ft(D,V){let oe=T.blockers.get(D)||tc;return he.get(D)!==V&&he.set(D,V),oe}function yt(D){T.blockers.delete(D),he.delete(D)}function bt(D,V){let oe=T.blockers.get(D)||tc;Ct(oe.state==="unblocked"&&V.state==="blocked"||oe.state==="blocked"&&V.state==="blocked"||oe.state==="blocked"&&V.state==="proceeding"||oe.state==="blocked"&&V.state==="unblocked"||oe.state==="proceeding"&&V.state==="unblocked","Invalid blocker state transition: "+oe.state+" -> "+V.state);let me=new Map(T.blockers);me.set(D,V),Be({blockers:me})}function It(D){let{currentLocation:V,nextLocation:oe,historyAction:me}=D;if(he.size===0)return;he.size>1&&wa(!1,"A router only supports one blocker at a time");let je=Array.from(he.entries()),[Ke,it]=je[je.length-1],$e=T.blockers.get(Ke);if(!($e&&$e.state==="proceeding")&&it({currentLocation:V,nextLocation:oe,historyAction:me}))return Ke}function Mt(D){let V=nr(404,{pathname:D}),oe=u||l,{matches:me,route:je}=Uw(oe);return rn(),{notFoundMatches:me,route:je,error:V}}function Zt(D,V){return{boundaryId:Ca(V.partialMatches).route.id,error:nr(400,{type:"route-discovery",pathname:D,message:V.error!=null&&"message"in V.error?V.error:String(V.error)})}}function rn(D){let V=[];return xe.forEach((oe,me)=>{(!D||D(me))&&(oe.cancel(),V.push(me),xe.delete(me))}),V}function Qn(D,V,oe){if(x=D,w=V,b=oe||null,!P&&T.navigation===ym){P=!0;let me=To(T.location,T.matches);me!=null&&Be({restoreScrollPosition:me})}return()=>{x=null,w=null,b=null}}function Hr(D,V){return b&&b(D,V.map(me=>MD(me,T.loaderData)))||D.key}function Po(D,V){if(x&&w){let oe=Hr(D,V);x[oe]=w()}}function To(D,V){if(x){let oe=Hr(D,V),me=x[oe];if(typeof me=="number")return me}return null}function co(D,V,oe){if(p)if(D){let me=D[D.length-1].route;if(me.path&&(me.path==="*"||me.path.endsWith("/*")))return{active:!0,matches:Pd(V,oe,c,!0)}}else return{active:!0,matches:Pd(V,oe,c,!0)||[]};return{active:!1,matches:null}}async function Ln(D,V,oe){let me=D,je=me.length>0?me[me.length-1].route:null;for(;;){let Ke=u==null,it=u||l;try{await uF(p,V,me,it,s,o,Me,oe)}catch(q){return{type:"error",error:q,partialMatches:me}}finally{Ke&&(l=[...l])}if(oe.aborted)return{type:"aborted"};let $e=js(it,V,c),st=!1;if($e){let q=$e[$e.length-1].route;if(q.index)return{type:"success",matches:$e};if(q.path&&q.path.length>0)if(q.path==="*")st=!0;else return{type:"success",matches:$e}}let Q=Pd(it,V,c,!0);if(!Q||me.map(q=>q.route.id).join("-")===Q.map(q=>q.route.id).join("-"))return{type:"success",matches:st?$e:null};if(me=Q,je=me[me.length-1].route,je.path==="*")return{type:"success",matches:me}}}function on(D){s={},u=ec(D,o,void 0,s)}function Qt(D,V){let oe=u==null;Mw(D,V,u||l,s,o),oe&&(l=[...l],Be({}))}return $={get basename(){return c},get future(){return m},get state(){return T},get routes(){return l},get window(){return t},initialize:ke,subscribe:He,enableScrollRestoration:Qn,navigate:ct,fetch:dt,revalidate:ot,createHref:D=>e.history.createHref(D),encodeLocation:D=>e.history.encodeLocation(D),getFetcher:xt,deleteFetcher:fn,dispose:Qe,getBlocker:ft,deleteBlocker:yt,patchRoutes:Qt,_internalFetchControllers:X,_internalActiveDeferreds:xe,_internalSetRoutes:on},$}function aF(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function bm(e,t,n,r,o,s,l,u){let c,f;if(l){c=[];for(let m of t)if(c.push(m),m.route.id===l){f=m;break}}else c=t,f=t[t.length-1];let p=mm(o||".",hm(c,s),Li(e.pathname,n)||e.pathname,u==="path");return o==null&&(p.search=e.search,p.hash=e.hash),(o==null||o===""||o===".")&&f&&f.route.index&&!wm(p.search)&&(p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(p.pathname=p.pathname==="/"?n:Bo([n,p.pathname])),Mi(p)}function Aw(e,t,n,r){if(!r||!aF(r))return{path:n};if(r.formMethod&&!wF(r.formMethod))return{path:n,error:nr(405,{method:r.formMethod})};let o=()=>({path:n,error:nr(400,{type:"invalid-body"})}),s=r.formMethod||"get",l=e?s.toUpperCase():s.toLowerCase(),u=Hw(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!wo(l))return o();let g=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((S,x)=>{let[b,w]=x;return""+S+b+"="+w+`
|
|
16
|
+
This will throw an error in production.`,{attributes:c,mutatedAttributes:p,item:this.toJson(),casts:this.casts});return}this._attributes.merge(".",p),Object.keys(p).forEach(m=>this.updateChangedKeys(m)),this.dispatchChangeEvent(p)}dump(){t.info({...this.toJson(),[Symbol.toStringTag]:_e.studly(o)})}toJson(){const c=Object.entries(this.relations).reduce((p,[m,g])=>(g.isLoaded()&&(g.isSingle()?p[_e.snake(m)]=g.getLoadedItems().toJson():g.isMultiple()&&(p[_e.snake(m)]=g.getLoadedItems().map(S=>S.toJson()).all())),p),{}),f=n[`model${_e.studly(o)}Json`];if(typeof f!="function")throw new As("ModelFacade");return f.bind(n)({...this.attributes,...c},this)}diff(){return this._changedKeys.reduce((c,f)=>(c[f]=this._attributes.get(f),c),{})}getType(){return o}relation(c){if(c===_e.camel(c))return this.relations[_e.snake(c)]}getErrorBag(c){return`${this.exists?`${o}[${this.getKey()}].`:`${o}.`}${c}`}getRouteForSave(){return this.exists?[`luminix.${o}.update`,this.makePrimaryKeyReplacer()]:`luminix.${o}.store`}getRouteForUpdate(){return[`luminix.${o}.update`,this.makePrimaryKeyReplacer()]}getRouteForDelete(){return[`luminix.${o}.destroy`,this.makePrimaryKeyReplacer()]}getRouteForRefresh(){return[`luminix.${o}.show`,this.makePrimaryKeyReplacer()]}getLabel(){const{labeledBy:c}=n.schema(o);return this.getAttribute(c)}async refresh(c){if(!this.exists)throw new sw(o,"refresh");const f=await r.call(this.getRouteForRefresh(),c,this.getErrorBag("fetch"));this.makeAttributes(f.json())}async save(c={},f){try{const{additionalPayload:p={},sendsOnlyModifiedFields:m=!0}=c,g=this.exists,S={...qe.pick(m&&g?this.diff():this.attributes,...this.fillable),...p};if(qe.isEmpty(S))return;const x=await r.call(this.getRouteForSave(),b=>f?f(b.withData(S)):b.withData(S),this.getErrorBag(g?"update":"store"));if(x.successful())return this.makeAttributes(x.json()),this.exists=!0,this.dispatchSaveEvent(),g?this.dispatchUpdateEvent(x.json()):(this.wasRecentlyCreated=!0,this.dispatchCreateEvent(x.json())),x;throw x}catch(p){throw this.dispatchErrorEvent(p,"save"),p}}async push(){throw new pD}async delete(){try{const c=await r.call(this.getRouteForDelete(),void 0,this.getErrorBag("delete"));if(c.noContent())return this.dispatchDeleteEvent(),c;throw c}catch(c){throw this.dispatchErrorEvent(c,"delete"),c}}async update(c,f){try{const p=await r.call(this.getRouteForUpdate(),m=>f?f(m.withData(c)):m.withData(c),this.getErrorBag("update"));if(p.ok()){this.makeAttributes(p.json()),this.dispatchUpdateEvent(p.json());return}throw p}catch(p){throw this.dispatchErrorEvent(p,"save"),p}}async forceDelete(){try{const c=await r.call(this.getRouteForDelete(),f=>f.withQueryParameters({force:!0}),this.getErrorBag("forceDelete"));if(c.noContent())return this.dispatchDeleteEvent(!0),c;throw c}catch(c){throw this.dispatchErrorEvent(c,"forceDelete"),c}}async restore(){try{const c=await r.call(this.getRouteForUpdate(),f=>f.withQueryParameters({restore:!0}),this.getErrorBag("restore"));if(c.ok())return this.dispatchRestoreEvent(),c;throw c}catch(c){throw this.dispatchErrorEvent(c,"restore"),c}}static getSchemaName(){return o}static getSchema(){return n.schema(o)}static query(){return new uD({config:e,route:r,model:n},o)}static where(...c){return this.query().where(...c)}static whereNull(c){return this.query().whereNull(c)}static whereNotNull(c){return this.query().whereNotNull(c)}static whereBetween(c,f){return this.query().whereBetween(c,f)}static whereNotBetween(c,f){return this.query().whereNotBetween(c,f)}static orderBy(c,f="asc"){return this.query().orderBy(c,f)}static searchBy(c){return this.query().searchBy(c)}static minified(){return this.query().minified()}static limit(c){return this.query().limit(c)}static get(c=1,f){return this.query().get(c,f)}static find(c){return this.query().find(c)}static first(){return this.query().first()}static async create(c){const f=n.make(o),p=new f;return p.fill(c),await p.save(),p}static async update(c,f){const p=n.make(o),m=new p({id:c});return m.fill(f),m.exists=!0,await m.save(),m}static delete(c){if(Array.isArray(c))return r.call(`luminix.${o}.destroyMany`,p=>p.withQueryParameters({ids:c}),`${o}.deleteMany`);const f=n.make(o);return new f({id:c}).delete()}static async restore(c){if(Array.isArray(c))return r.call(`luminix.${o}.restoreMany`,p=>p.withData({ids:c}),`${o}.restoreMany`);const f=n.make(o);return new f({id:c}).restore()}static forceDelete(c){if(Array.isArray(c))return r.call(`luminix.${o}.destroyMany`,p=>p.withQueryParameters({ids:c,force:!0}),`${o}.forceDeleteMany`);const f=n.make(o);return new f({id:c}).forceDelete()}static singular(){return n.schema(o).displayName.singular}static plural(){return n.schema(o).displayName.plural}},tn(u,"name",_e.studly(o)),u}function mD(e,t,n){var r,o;return class extends(o=n,r=Symbol.toStringTag,o){constructor(s={}){return super(s),tn(this,r,_e.studly(t)),new Proxy(this,{get:(l,u)=>{if(u==="__isModel")return!0;if(Reflect.has(l,u))return Reflect.get(l,u);if(Object.keys(l.attributes).includes(u))return l.getAttribute(u);if(Object.keys(l.relations).includes(u))return l.relations[u].getLoadedItems();if(u.endsWith("Relation")&&Object.keys(l.relations).includes(_e.snake(u.slice(0,-8))))return()=>l.relation(u.slice(0,-8));if(e.hasReducer(`model${_e.studly(l.getType())}Get${_e.studly(u)}Attribute`)){const c=e[`model${_e.studly(l.getType())}Get${_e.studly(u)}Attribute`];if(typeof c!="function")throw new As("ModelFacade");return c.bind(e)(void 0,l)}return Reflect.get(l,u)},set:(l,u,c)=>u in l&&typeof l[u]!="function"?Reflect.set(l,u,c):(l.setAttribute(_e.snake(u),c),!0)})}}}var aw,lw;class cw extends(lw=Error,aw=Symbol.toStringTag,lw){constructor(t){super(`[Luminix] Model "${t}" not found`),tn(this,aw,"ModelNotFoundException")}}var uw,dw;class Xl extends(dw=TypeError,uw=Symbol.toStringTag,dw){constructor(t,n,r){super(`[Luminix] "${t}" expects a related model of type "${n}". Received "${r}" instead.`),tn(this,uw,"ModelInvalidRelatedTypeException")}}class fw extends Rd{constructor(t,n,r,o=null){if(!qe.isModel(o)&&o!==null)throw new yr("BelongsTo.constructor()","Model or null");super(t,n,r,o),this.services=t,this.meta=n,this.parent=r,this.items=o}isSingle(){return!0}isMultiple(){return!1}query(){const t=super.query(),n=this.guessInverseRelation();return t.where(n,this.parent.getKey()),t.lock(`where.${n}`),t}get(){return this.query().first()}async associate(t){if(!qe.isModel(t))throw new yr("BelongsTo.associate()");if(t.getType()!==this.getRelated().getSchemaName())throw new Xl("BelongsTo.associate()",this.getRelated().getSchemaName(),t.getType());if(!t.exists)throw new sw(this.getRelated().getSchemaName(),"save");return this.parent.update({[this.getForeignKey()]:t.getKey()})}dissociate(){return this.parent.update({[this.getForeignKey()]:null})}}class pw extends Rd{constructor(t,n,r,o=null){if(o!==null&&!(o instanceof zn&&o.every(er)))throw new yr("BelongsToMany.constructor()","Collection<Model> or null");super(t,n,r,o),this.services=t,this.meta=n,this.parent=r,this.items=o}isSingle(){return!1}isMultiple(){return!0}query(){const t=super.query(),n=this.guessInverseRelation();return t.where(n,this.parent.getKey()),t.lock(`where.${n}`),t}get(t=1,n){return this.query().get(t,n)}all(){return this.query().all()}first(){return this.query().first()}find(t){return this.query().find(t)}attachQuietly(t,n={}){return this.services.route.call([`luminix.${this.parent.getType()}.${this.getName()}:attach`,{[this.parent.getKeyName()]:this.parent.getKey(),itemId:t}],r=>r.withData(n))}async attach(t,n={}){if(await this.attachQuietly(t,n),this.items){const r=this.items.search(s=>s.getKey()===t),o=await this.getRelated().find(t);if(!o)return;r!==!1?this.items.put(r,o):this.items.push(o)}else this.items=await this.all()}async detachQuietly(t){await this.services.route.call([`luminix.${this.parent.getType()}.${this.getName()}:detach`,{[this.parent.getKeyName()]:this.parent.getKey(),itemId:t}])}async detach(t){if(await this.detachQuietly(t),this.items){const n=this.items.search(r=>r.getKey()===t);n!==!1&&this.items.pull(n)}}async syncQuietly(t){await this.services.route.call([`luminix.${this.parent.getType()}.${this.getName()}:sync`,{[this.parent.getKeyName()]:this.parent.getKey()}],n=>n.withData(t))}async syncWithPivotValuesQuietly(t,n){await this.services.route.call([`luminix.${this.parent.getType()}.${this.getName()}:sync`,{[this.parent.getKeyName()]:this.parent.getKey()}],r=>r.withData(t.map(o=>({[this.getRelated().getSchema().primaryKey]:o,...n}))))}async sync(t){await this.syncQuietly(t);const n=await this.all();this.items?this.items.splice(0,this.items.count(),...n):this.items=n}async syncWithPivotValues(t,n){await this.syncWithPivotValuesQuietly(t,n);const r=await this.all();this.items?this.items.splice(0,this.items.count(),...r):this.items=r}}class cm extends Rd{query(){const t=super.query(),n=this.guessInverseRelation();return t.where(n,this.parent.getKey()),t.lock(`where.${n}`),t}async saveQuietly(t){if(!er(t))throw new yr("HasOneOrMany.saveQuietly()");if(t.getType()!==this.getRelated().getSchemaName())throw new Xl("HasOneOrMany.saveQuietly()",this.getRelated().getSchemaName(),t.getType());t.setAttribute(this.getForeignKey(),this.parent.getKey()),await t.save()}}class gD extends cm{constructor(t,n,r,o=null){if(!er(o)&&o!==null)throw new yr("HasOne.constructor()","Model or null");super(t,n,r,o),this.services=t,this.meta=n,this.parent=r,this.items=o}isSingle(){return!0}isMultiple(){return!1}get(){return this.query().first()}async save(t){await this.saveQuietly(t),this.items=t}}class yD extends cm{constructor(t,n,r,o=null){if(o!==null&&!(o instanceof zn&&o.every(er)))throw new yr("HasMany.constructor()","Collection<Model> or null");super(t,n,r,o),this.services=t,this.meta=n,this.parent=r,this.items=o}isSingle(){return!1}isMultiple(){return!0}get(t=1,n){return this.query().get(t,n)}all(){return this.query().all()}first(){return this.query().first()}find(t){return this.query().find(t)}async saveManyQuietly(t){if(!Array.isArray(t)||!t.every(er))throw new yr("HasMany.saveManyQuietly()","Model[]");if(!t.every(n=>n.getType()===this.getRelated().getSchemaName()))throw new Xl("HasMany.saveManyQuietly()",this.getRelated().getSchemaName(),t.map(n=>n.getType()).join(", "));await Promise.all(t.map(n=>(n.setAttribute(this.getForeignKey(),this.parent.getKey()),n.save())))}async saveMany(t){await this.saveManyQuietly(t);const n=await this.all();this.items?this.items.splice(0,this.items.count(),...n):this.items=n}async save(t){await this.saveQuietly(t),this.items===null?this.items=await this.all():this.items.push(t)}}class hw extends cm{query(){const t=this.getRelated().query();t.once("success",r=>{this.items=r.items});const n=this.guessInverseRelation();return t.where(n+"_id",this.parent.getKey()),t.where(n+"_type",this.getRelated().getSchemaName()),t.lock(`where.${n}_id`),t.lock(`where.${n}_type`),t}async saveQuietly(t){if(!er(t))throw new yr("MorphOneOrMany.saveQuietly()");if(t.getType()!==this.getRelated().getSchemaName())throw new Xl("MorphOneOrMany.saveQuietly()",this.getRelated().getSchemaName(),t.getType());const n=this.guessInverseRelation();t.setAttribute(n+"_id",this.parent.getKey()),t.setAttribute(n+"_type",this.parent.getType()),await t.save()}}let vD=class extends hw{constructor(t,n,r,o=null){if(o!==null&&!(o instanceof zn&&o.every(er)))throw new yr("MorphMany.constructor()","Collection<Model> or null");super(t,n,r,o),this.services=t,this.meta=n,this.parent=r,this.items=o}isSingle(){return!1}isMultiple(){return!0}get(t=1,n){return this.query().get(t,n)}all(){return this.query().all()}first(){return this.query().first()}find(t){return this.query().find(t)}async saveManyQuietly(t){if(!Array.isArray(t)||!t.every(er))throw new yr("MorphMany.saveManyQuietly()");if(!t.every(n=>n.getType()===this.getRelated().getSchemaName()))throw new Xl("MorphMany.saveManyQuietly()",this.getRelated().getSchemaName(),t.map(n=>n.getType()).join(", "));await Promise.all(t.map(n=>(n.setAttribute(this.getName()+"_id",this.parent.getKey()),n.setAttribute(this.getName()+"_type",this.parent.getType()),n.save())))}async save(t){await this.saveQuietly(t),this.items?this.items.push(t):this.items=await this.all()}async saveMany(t){await this.saveManyQuietly(t);const n=await this.all();this.items?this.items.splice(0,this.items.count(),...n):this.items=n}},bD=class extends hw{constructor(t,n,r,o=null){if(super(t,n,r,o),this.services=t,this.meta=n,this.parent=r,this.items=o,o!==null&&!er(o))throw new yr("MorphOne.constructor()","Model or null")}isSingle(){return!0}isMultiple(){return!1}get(){return this.query().first()}async save(t){await this.saveQuietly(t),this.items=t}};class xD extends fw{getRelated(){return this.services.model.make(this.parent.getAttribute(this.getName()+"_type"))}async associate(t){if(!er(t))throw new yr("MorphTo.associate()");return t.exists||await t.save(),this.parent.update({[this.getName()+"_id"]:t.getKey(),[this.getName()+"_type"]:t.getType()})}dissociate(){return this.parent.update({[this.getName()+"_id"]:null,[this.getName()+"_type"]:null})}}let wD=class extends pw{query(){const t=super.query(),n=this.guessInverseRelation();return t.where(n+"_id",this.parent.getKey()),t.where(n+"_type",this.parent.getType()),t.lock(`where.${n}_id`),t.lock(`where.${n}_type`),t}};var mw,gw;class SD extends(gw=ha,mw=Symbol.toStringTag,gw){constructor(t){super(),tn(this,"_models",{}),tn(this,mw,"ModelService"),this._schema=t}boot(t){this._schema&&Object.keys(this._schema).forEach(n=>{const r=this[`model${_e.studly(n)}`],o=this.model(hD(t.make("config"),t.make("log"),t.make("model"),t.make("route"),n),n),s=r(o);this._models[n]=mD(t.make("model"),n,s)})}schema(t){if(!this._schema||t&&!this._schema[t])throw new cw(t||"undefined");return t?this._schema[t]:this._schema}make(t){if(t&&!this._models[t])throw new cw(t);return t?this._models[t]:this._models}getRelationConstructors(t){return this.relationMap({BelongsTo:fw,BelongsToMany:pw,HasOne:gD,HasMany:yD,MorphMany:vD,MorphOne:bD,MorphTo:xD,MorphToMany:wD},t)}toString(){return"model"}}const CD=Yl(SD);var yw,vw;let ED=class extends(vw=Error,yw=Symbol.toStringTag,vw){constructor(t){super(`[Luminix] Route "${t}" not found`),tn(this,yw,"RouteNotFoundException")}};const RD=Yl(class{constructor(t,n,r,o=""){this.routes=t,this.error=n,this.http=r,this.appUrl=o}isRouteTuple(t){if(!Array.isArray(t)||t.length<2)return!1;const[n,...r]=t;if(typeof n!="string")return!1;const o=["get","post","put","patch","delete"];return!!r.every(s=>o.includes(s))}extractGenerator(t){let n,r=!1;return Array.isArray(t)?[n,r]=t:n=t,[n,r]}get(t){if(!this.exists(t))throw new ED(t);return qe.get(this.routes,t)}url(t){const[n,r]=this.extractGenerator(t),o=this.get(n)[0].replace(/^\/|\/$/g,""),s=/{([^}]+)}/g;if(r===!1){if(typeof this.replaceRouteParams!="function")throw new As("RouteFacade");return this.appUrl+this.replaceRouteParams(`/${o}`)}const l=o.match(s),u=l?l.map(g=>g.slice(1,-1)):[],c=Object.keys(r),f=u.filter(g=>!c.includes(g)),p=c.filter(g=>!u.includes(g));if(f.length>0)throw new TypeError(`Missing values for parameter(s): ${f.join(", ")}`);if(p.length>0)throw new TypeError(`Unexpected parameters: ${p.join(", ")}`);const m=u.reduce((g,S)=>g.replace(`{${S}}`,`${r[S]}`),o);return this.appUrl+`/${m}`}methods(t){const[n]=this.extractGenerator(t);return this.get(n).slice(1)}exists(t){return qe.has(this.routes,t)&&this.isRouteTuple(qe.get(this.routes,t))}async call(t,n=o=>o,r="default"){if(typeof this.clientOptions!="function"||typeof this.clientError!="function")throw new As("RouteFacade");const[o,s]=this.extractGenerator(t),[,...l]=this.get(o),u=this.url(s?[o,s]:o),c=n(this.http()),f=this.clientOptions({},o);qe.isEmpty(f)||c.withOptions(f);const p=l[0]??f.method;this.error.clear(r);const m=await c[p](u);if(V1(m)){const g=m.json("errors");this.error.set(Object.entries(g).reduce((S,[x,b])=>(S[x]=b.join(" "),S),{}),r)}else m.failed()&&this.error.set(this.clientError({axios:m.json("message")},{response:m,name:o,replace:s,client:c}),r);return m}toString(){return"route"}}),kD=ji(class{getClient(){return new YL}baseUrl(t){return this.getClient().baseUrl(t)}asForm(){return this.getClient().asForm()}accept(t){return this.getClient().accept(t)}acceptJson(){return this.getClient().acceptJson()}withHeaders(t){return this.getClient().withHeaders(t)}withOptions(t){return this.getClient().withOptions(t)}withData(t){return this.getClient().withData(t)}withQueryParameters(t){return this.getClient().withQueryParameters(t)}withBasicAuth(t,n){return this.getClient().withBasicAuth(t,n)}withToken(t){return this.getClient().withToken(t)}get(t,n){return this.getClient().get(t,n)}post(t,n){return this.getClient().post(t,n)}put(t,n){return this.getClient().put(t,n)}patch(t,n){return this.getClient().patch(t,n)}delete(t,n){return this.getClient().delete(t,n)}});var bw,xw;let PD=class extends(xw=Ed,bw=Symbol.toStringTag,xw){constructor(){super(...arguments),tn(this,bw,"LuminixServiceProvider")}register(){this.registerServices(),this.registerMacros(),this.app.on("ready",()=>{this.app.dump("[Luminix] App boot completed")})}boot(){this.app.make("model").boot(this.app)}registerServices(){this.app.singleton("auth",()=>new sD(this.app.make("config"),this.app.make("model"),this.app.make("route"))),this.app.singleton("config",()=>{const t=new Os(qe.omit(this.app.configuration,"manifest"));return t.has("auth.user")||t.set("auth.user",null),t.lock("auth.user"),t}),this.app.singleton("error",()=>new aD),this.app.singleton("http",()=>new kD),this.app.singleton("log",()=>{var t;return new lD(((t=this.app.configuration.app)==null?void 0:t.debug)??!1)}),this.app.singleton("model",()=>{var t;return new CD(((t=this.app.configuration.manifest)==null?void 0:t.models)??{})}),this.app.singleton("route",()=>{var t,n;return new RD(((t=this.app.configuration.manifest)==null?void 0:t.routes)??{},this.app.make("error"),()=>this.app.make("http"),(n=this.app.configuration.app)==null?void 0:n.url)})}registerMacros(){this.app.macro("environment",(...t)=>t.length>0?t.includes(this.app.make("config").get("app.env","production")):this.app.make("config").get("app.env","production")),this.app.macro("getLocale",()=>this.app.make("config").get("app.locale","en")),this.app.macro("hasDebugModeEnabled",()=>this.app.make("config").get("app.debug",!1)),this.app.macro("isLocal",()=>this.app.make("config").get("app.env","production")==="local"),this.app.macro("isProduction",()=>this.app.make("config").get("app.env","production")==="production"),qe.macro("isModel",function(t){return typeof t=="object"&&t!==null&&t.__isModel===!0})}},xa;const Zr=Fo(class{getFacadeAccessor(){return xa||(xa=new(ji(QL))([PD])),xa}down(){xa&&(xa.flush(),xa=void 0)}});function Tt(e=void 0){return typeof e!="string"?Zr:Zr.make(e)}function tr(e){return new zn(e)}function _i(e,t){const n=Tt("config");return typeof e>"u"?n:n.get(e,t)}function um(e,t="default"){return e?Tt().make("error").get(e,t):Tt().make("error")}function dm(...e){const t=Tt("log");return e.length?t.debug(...e):t}function Jl(e){const t=Tt("model");return e?t.make(e):t}function ww(e,t=!1){const n=Tt("route");return e?t?n.url([e,t]):n.url(e):n}Fo(class{getFacadeAccessor(){return"auth"}},Zr);const Ii=Fo(class{getFacadeAccessor(){return"config"}},Zr);class TD{getFacadeAccessor(){return"error"}}Fo(TD,Zr);const OD=Fo(class{getFacadeAccessor(){return"http"}},Zr);Fo(class{getFacadeAccessor(){return"log"}},Zr);const kd=Fo(class{getFacadeAccessor(){return"model"}},Zr),fm=Fo(class{getFacadeAccessor(){return"route"}},Zr);function hn(){return hn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hn.apply(this,arguments)}var kn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(kn||(kn={}));const Sw="popstate";function $D(e){e===void 0&&(e={});function t(r,o){let{pathname:s,search:l,hash:u}=r.location;return Zl("",{pathname:s,search:l,hash:u},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Mi(o)}return jD(t,n,null,e)}function Ct(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function wa(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function AD(){return Math.random().toString(36).substr(2,8)}function Cw(e,t){return{usr:e.state,key:e.key,idx:t}}function Zl(e,t,n,r){return n===void 0&&(n=null),hn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ni(t):t,{state:n,key:t&&t.key||r||AD()})}function Mi(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ni(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function jD(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,l=o.history,u=kn.Pop,c=null,f=p();f==null&&(f=0,l.replaceState(hn({},l.state,{idx:f}),""));function p(){return(l.state||{idx:null}).idx}function m(){u=kn.Pop;let w=p(),P=w==null?null:w-f;f=w,c&&c({action:u,location:b.location,delta:P})}function g(w,P){u=kn.Push;let R=Zl(b.location,w,P);f=p()+1;let O=Cw(R,f),A=b.createHref(R);try{l.pushState(O,"",A)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;o.location.assign(A)}s&&c&&c({action:u,location:b.location,delta:1})}function S(w,P){u=kn.Replace;let R=Zl(b.location,w,P);f=p();let O=Cw(R,f),A=b.createHref(R);l.replaceState(O,"",A),s&&c&&c({action:u,location:b.location,delta:0})}function x(w){let P=o.location.origin!=="null"?o.location.origin:o.location.href,R=typeof w=="string"?w:Mi(w);return R=R.replace(/ $/,"%20"),Ct(P,"No window.location.(origin|href) available to create URL for href: "+R),new URL(R,P)}let b={get action(){return u},get location(){return e(o,l)},listen(w){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(Sw,m),c=w,()=>{o.removeEventListener(Sw,m),c=null}},createHref(w){return t(o,w)},createURL:x,encodeLocation(w){let P=x(w);return{pathname:P.pathname,search:P.search,hash:P.hash}},push:g,replace:S,go(w){return l.go(w)}};return b}var nn;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(nn||(nn={}));const _D=new Set(["lazy","caseSensitive","path","id","index","children"]);function ID(e){return e.index===!0}function ec(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,s)=>{let l=[...n,String(s)],u=typeof o.id=="string"?o.id:l.join("-");if(Ct(o.index!==!0||!o.children,"Cannot specify children on an index route"),Ct(!r[u],'Found a route id collision on id "'+u+`". Route id's must be globally unique within Data Router usages`),ID(o)){let c=hn({},o,t(o),{id:u});return r[u]=c,c}else{let c=hn({},o,t(o),{id:u,children:void 0});return r[u]=c,o.children&&(c.children=ec(o.children,t,l,r)),c}})}function js(e,t,n){return n===void 0&&(n="/"),Pd(e,t,n,!1)}function Pd(e,t,n,r){let o=typeof t=="string"?Ni(t):t,s=Li(o.pathname||"/",n);if(s==null)return null;let l=Ew(e);ND(l);let u=null;for(let c=0;u==null&&c<l.length;++c){let f=GD(s);u=VD(l[c],f,r)}return u}function MD(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function Ew(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(s,l,u)=>{let c={relativePath:u===void 0?s.path||"":u,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};c.relativePath.startsWith("/")&&(Ct(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let f=Bo([r,c.relativePath]),p=n.concat(c);s.children&&s.children.length>0&&(Ct(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),Ew(s.children,t,p,f)),!(s.path==null&&!s.index)&&t.push({path:f,score:WD(f,s.index),routesMeta:p})};return e.forEach((s,l)=>{var u;if(s.path===""||!((u=s.path)!=null&&u.includes("?")))o(s,l);else for(let c of Rw(s.path))o(s,l,c)}),t}function Rw(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let l=Rw(r.join("/")),u=[];return u.push(...l.map(c=>c===""?s:[s,c].join("/"))),o&&u.push(...l),u.map(c=>e.startsWith("/")&&c===""?"/":c)}function ND(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:HD(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const LD=/^:[\w-]+$/,DD=3,FD=2,BD=1,zD=10,UD=-2,kw=e=>e==="*";function WD(e,t){let n=e.split("/"),r=n.length;return n.some(kw)&&(r+=UD),t&&(r+=FD),n.filter(o=>!kw(o)).reduce((o,s)=>o+(LD.test(s)?DD:s===""?BD:zD),r)}function HD(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function VD(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},s="/",l=[];for(let u=0;u<r.length;++u){let c=r[u],f=u===r.length-1,p=s==="/"?t:t.slice(s.length)||"/",m=Pw({path:c.relativePath,caseSensitive:c.caseSensitive,end:f},p),g=c.route;if(!m&&f&&n&&!r[r.length-1].route.index&&(m=Pw({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},p)),!m)return null;Object.assign(o,m.params),l.push({params:o,pathname:Bo([s,m.pathname]),pathnameBase:YD(Bo([s,m.pathnameBase])),route:g}),m.pathnameBase!=="/"&&(s=Bo([s,m.pathnameBase]))}return l}function Pw(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=KD(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],l=s.replace(/(.)\/+$/,"$1"),u=o.slice(1);return{params:r.reduce((f,p,m)=>{let{paramName:g,isOptional:S}=p;if(g==="*"){let b=u[m]||"";l=s.slice(0,s.length-b.length).replace(/(.)\/+$/,"$1")}const x=u[m];return S&&!x?f[g]=void 0:f[g]=(x||"").replace(/%2F/g,"/"),f},{}),pathname:s,pathnameBase:l,pattern:e}}function KD(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),wa(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,u,c)=>(r.push({paramName:u,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function GD(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return wa(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Li(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function qD(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ni(e):e;return{pathname:n?n.startsWith("/")?n:QD(n,t):t,search:XD(r),hash:JD(o)}}function QD(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function pm(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Tw(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function hm(e,t){let n=Tw(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function mm(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ni(e):(o=hn({},e),Ct(!o.pathname||!o.pathname.includes("?"),pm("?","pathname","search",o)),Ct(!o.pathname||!o.pathname.includes("#"),pm("#","pathname","hash",o)),Ct(!o.search||!o.search.includes("#"),pm("#","search","hash",o)));let s=e===""||o.pathname==="",l=s?"/":o.pathname,u;if(l==null)u=n;else{let m=t.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),m-=1;o.pathname=g.join("/")}u=m>=0?t[m]:"/"}let c=qD(o,u),f=l&&l!=="/"&&l.endsWith("/"),p=(s||l===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(f||p)&&(c.pathname+="/"),c}const Bo=e=>e.join("/").replace(/\/\/+/g,"/"),YD=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),XD=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,JD=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class gm{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Td(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ow=["post","put","patch","delete"],ZD=new Set(Ow),eF=["get",...Ow],tF=new Set(eF),nF=new Set([301,302,303,307,308]),rF=new Set([307,308]),ym={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},oF={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},tc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},vm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,iF=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),$w="remix-router-transitions";function sF(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Ct(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let D=e.detectErrorBoundary;o=V=>({hasErrorBoundary:D(V)})}else o=iF;let s={},l=ec(e.routes,o,void 0,s),u,c=e.basename||"/",f=e.unstable_dataStrategy||dF,p=e.unstable_patchRoutesOnMiss,m=hn({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),g=null,S=new Set,x=null,b=null,w=null,P=e.hydrationData!=null,R=js(l,e.history.location,c),O=null;if(R==null&&!p){let D=nr(404,{pathname:e.history.location.pathname}),{matches:V,route:oe}=Uw(l);R=V,O={[oe.id]:D}}R&&p&&!e.hydrationData&&uo(R,l,e.history.location.pathname).active&&(R=null);let A;if(!R)A=!1,R=[];else if(R.some(D=>D.route.lazy))A=!1;else if(!R.some(D=>D.route.loader))A=!0;else if(m.v7_partialHydration){let D=e.hydrationData?e.hydrationData.loaderData:null,V=e.hydrationData?e.hydrationData.errors:null,oe=me=>me.route.loader?typeof me.route.loader=="function"&&me.route.loader.hydrate===!0?!1:D&&D[me.route.id]!==void 0||V&&V[me.route.id]!==void 0:!0;if(V){let me=R.findIndex(je=>V[je.route.id]!==void 0);A=R.slice(0,me+1).every(oe)}else A=R.every(oe)}else A=e.hydrationData!=null;let $,T={historyAction:e.history.action,location:e.history.location,matches:R,initialized:A,navigation:ym,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||O,fetchers:new Map,blockers:new Map},_=kn.Pop,M=!1,F,B=!1,G=new Map,W=null,H=!1,z=!1,te=[],Z=[],X=new Map,N=0,Y=-1,ce=new Map,L=new Set,se=new Map,Oe=new Map,ve=new Set,xe=new Map,he=new Map,Me=new Map,de=!1;function ke(){if(g=e.history.listen(D=>{let{action:V,location:oe,delta:me}=D;if(de){de=!1;return}wa(he.size===0||me!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let je=It({currentLocation:T.location,nextLocation:oe,historyAction:V});if(je&&me!=null){de=!0,e.history.go(me*-1),bt(je,{state:"blocked",location:oe,proceed(){bt(je,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),e.history.go(me)},reset(){let Ke=new Map(T.blockers);Ke.set(je,tc),Be({blockers:Ke})}});return}return ze(V,oe)}),n){EF(t,G);let D=()=>RF(t,G);t.addEventListener("pagehide",D),W=()=>t.removeEventListener("pagehide",D)}return T.initialized||ze(kn.Pop,T.location,{initialHydration:!0}),$}function Qe(){g&&g(),W&&W(),S.clear(),F&&F.abort(),T.fetchers.forEach((D,V)=>Ht(V)),T.blockers.forEach((D,V)=>yt(V))}function He(D){return S.add(D),()=>S.delete(D)}function Be(D,V){V===void 0&&(V={}),T=hn({},T,D);let oe=[],me=[];m.v7_fetcherPersist&&T.fetchers.forEach((je,Ke)=>{je.state==="idle"&&(ve.has(Ke)?me.push(Ke):oe.push(Ke))}),[...S].forEach(je=>je(T,{deletedFetchers:me,unstable_viewTransitionOpts:V.viewTransitionOpts,unstable_flushSync:V.flushSync===!0})),m.v7_fetcherPersist&&(oe.forEach(je=>T.fetchers.delete(je)),me.forEach(je=>Ht(je)))}function Je(D,V,oe){var me,je;let{flushSync:Ke}=oe===void 0?{}:oe,it=T.actionData!=null&&T.navigation.formMethod!=null&&wo(T.navigation.formMethod)&&T.navigation.state==="loading"&&((me=D.state)==null?void 0:me._isRedirect)!==!0,$e;V.actionData?Object.keys(V.actionData).length>0?$e=V.actionData:$e=null:it?$e=T.actionData:$e=null;let st=V.loaderData?Bw(T.loaderData,V.loaderData,V.matches||[],V.errors):T.loaderData,Q=T.blockers;Q.size>0&&(Q=new Map(Q),Q.forEach((be,De)=>Q.set(De,tc)));let q=M===!0||T.navigation.formMethod!=null&&wo(T.navigation.formMethod)&&((je=D.state)==null?void 0:je._isRedirect)!==!0;u&&(l=u,u=void 0),H||_===kn.Pop||(_===kn.Push?e.history.push(D,D.state):_===kn.Replace&&e.history.replace(D,D.state));let we;if(_===kn.Pop){let be=G.get(T.location.pathname);be&&be.has(D.pathname)?we={currentLocation:T.location,nextLocation:D}:G.has(D.pathname)&&(we={currentLocation:D,nextLocation:T.location})}else if(B){let be=G.get(T.location.pathname);be?be.add(D.pathname):(be=new Set([D.pathname]),G.set(T.location.pathname,be)),we={currentLocation:T.location,nextLocation:D}}Be(hn({},V,{actionData:$e,loaderData:st,historyAction:_,location:D,initialized:!0,navigation:ym,revalidation:"idle",restoreScrollPosition:To(D,V.matches||T.matches),preventScrollReset:q,blockers:Q}),{viewTransitionOpts:we,flushSync:Ke===!0}),_=kn.Pop,M=!1,B=!1,H=!1,z=!1,te=[],Z=[]}async function ct(D,V){if(typeof D=="number"){e.history.go(D);return}let oe=bm(T.location,T.matches,c,m.v7_prependBasename,D,m.v7_relativeSplatPath,V==null?void 0:V.fromRouteId,V==null?void 0:V.relative),{path:me,submission:je,error:Ke}=Aw(m.v7_normalizeFormMethod,!1,oe,V),it=T.location,$e=Zl(T.location,me,V&&V.state);$e=hn({},$e,e.history.encodeLocation($e));let st=V&&V.replace!=null?V.replace:void 0,Q=kn.Push;st===!0?Q=kn.Replace:st===!1||je!=null&&wo(je.formMethod)&&je.formAction===T.location.pathname+T.location.search&&(Q=kn.Replace);let q=V&&"preventScrollReset"in V?V.preventScrollReset===!0:void 0,we=(V&&V.unstable_flushSync)===!0,be=It({currentLocation:it,nextLocation:$e,historyAction:Q});if(be){bt(be,{state:"blocked",location:$e,proceed(){bt(be,{state:"proceeding",proceed:void 0,reset:void 0,location:$e}),ct(D,V)},reset(){let De=new Map(T.blockers);De.set(be,tc),Be({blockers:De})}});return}return await ze(Q,$e,{submission:je,pendingError:Ke,preventScrollReset:q,replace:V&&V.replace,enableViewTransition:V&&V.unstable_viewTransition,flushSync:we})}function ot(){if(qt(),Be({revalidation:"loading"}),T.navigation.state!=="submitting"){if(T.navigation.state==="idle"){ze(T.historyAction,T.location,{startUninterruptedRevalidation:!0});return}ze(_||T.historyAction,T.navigation.location,{overrideNavigation:T.navigation})}}async function ze(D,V,oe){F&&F.abort(),F=null,_=D,H=(oe&&oe.startUninterruptedRevalidation)===!0,Po(T.location,T.matches),M=(oe&&oe.preventScrollReset)===!0,B=(oe&&oe.enableViewTransition)===!0;let me=u||l,je=oe&&oe.overrideNavigation,Ke=js(me,V,c),it=(oe&&oe.flushSync)===!0,$e=uo(Ke,me,V.pathname);if($e.active&&$e.matches&&(Ke=$e.matches),!Ke){let{error:Ee,notFoundMatches:nt,route:At}=Mt(V.pathname);Je(V,{matches:nt,loaderData:{},errors:{[At.id]:Ee}},{flushSync:it});return}if(T.initialized&&!z&&yF(T.location,V)&&!(oe&&oe.submission&&wo(oe.submission.formMethod))){Je(V,{matches:Ke},{flushSync:it});return}F=new AbortController;let st=Sa(e.history,V,F.signal,oe&&oe.submission),Q;if(oe&&oe.pendingError)Q=[Ca(Ke).route.id,{type:nn.error,error:oe.pendingError}];else if(oe&&oe.submission&&wo(oe.submission.formMethod)){let Ee=await Ot(st,V,oe.submission,Ke,$e.active,{replace:oe.replace,flushSync:it});if(Ee.shortCircuited)return;if(Ee.pendingActionResult){let[nt,At]=Ee.pendingActionResult;if(Ir(At)&&Td(At.error)&&At.error.status===404){F=null,Je(V,{matches:Ee.matches,loaderData:{},errors:{[nt]:At.error}});return}}Ke=Ee.matches||Ke,Q=Ee.pendingActionResult,je=Sm(V,oe.submission),it=!1,$e.active=!1,st=Sa(e.history,st.url,st.signal)}let{shortCircuited:q,matches:we,loaderData:be,errors:De}=await Ze(st,V,Ke,$e.active,je,oe&&oe.submission,oe&&oe.fetcherSubmission,oe&&oe.replace,oe&&oe.initialHydration===!0,it,Q);q||(F=null,Je(V,hn({matches:we||Ke},zw(Q),{loaderData:be,errors:De})))}async function Ot(D,V,oe,me,je,Ke){Ke===void 0&&(Ke={}),qt();let it=SF(V,oe);if(Be({navigation:it},{flushSync:Ke.flushSync===!0}),je){let Q=await Ln(me,V.pathname,D.signal);if(Q.type==="aborted")return{shortCircuited:!0};if(Q.type==="error"){let{boundaryId:q,error:we}=Zt(V.pathname,Q);return{matches:Q.partialMatches,pendingActionResult:[q,{type:nn.error,error:we}]}}else if(Q.matches)me=Q.matches;else{let{notFoundMatches:q,error:we,route:be}=Mt(V.pathname);return{matches:q,pendingActionResult:[be.id,{type:nn.error,error:we}]}}}let $e,st=nc(me,V);if(!st.route.action&&!st.route.lazy)$e={type:nn.error,error:nr(405,{method:D.method,pathname:V.pathname,routeId:st.route.id})};else if($e=(await Ft("action",D,[st],me))[0],D.signal.aborted)return{shortCircuited:!0};if(Is($e)){let Q;return Ke&&Ke.replace!=null?Q=Ke.replace:Q=Lw($e.response.headers.get("Location"),new URL(D.url),c)===T.location.pathname+T.location.search,await pt(D,$e,{submission:oe,replace:Q}),{shortCircuited:!0}}if(_s($e))throw nr(400,{type:"defer-action"});if(Ir($e)){let Q=Ca(me,st.route.id);return(Ke&&Ke.replace)!==!0&&(_=kn.Push),{matches:me,pendingActionResult:[Q.route.id,$e]}}return{matches:me,pendingActionResult:[st.route.id,$e]}}async function Ze(D,V,oe,me,je,Ke,it,$e,st,Q,q){let we=je||Sm(V,Ke),be=Ke||it||qw(we),De=!H&&(!m.v7_partialHydration||!st);if(me){if(De){let Nt=$t(q);Be(hn({navigation:we},Nt!==void 0?{actionData:Nt}:{}),{flushSync:Q})}let vt=await Ln(oe,V.pathname,D.signal);if(vt.type==="aborted")return{shortCircuited:!0};if(vt.type==="error"){let{boundaryId:Nt,error:cr}=Zt(V.pathname,vt);return{matches:vt.partialMatches,loaderData:{},errors:{[Nt]:cr}}}else if(vt.matches)oe=vt.matches;else{let{error:Nt,notFoundMatches:cr,route:jt}=Mt(V.pathname);return{matches:cr,loaderData:{},errors:{[jt.id]:Nt}}}}let Ee=u||l,[nt,At]=jw(e.history,T,oe,be,V,m.v7_partialHydration&&st===!0,m.v7_skipActionErrorRevalidation,z,te,Z,ve,se,L,Ee,c,q);if(rn(vt=>!(oe&&oe.some(Nt=>Nt.route.id===vt))||nt&&nt.some(Nt=>Nt.route.id===vt)),Y=++N,nt.length===0&&At.length===0){let vt=Re();return Je(V,hn({matches:oe,loaderData:{},errors:q&&Ir(q[1])?{[q[0]]:q[1].error}:null},zw(q),vt?{fetchers:new Map(T.fetchers)}:{}),{flushSync:Q}),{shortCircuited:!0}}if(De){let vt={};if(!me){vt.navigation=we;let Nt=$t(q);Nt!==void 0&&(vt.actionData=Nt)}At.length>0&&(vt.fetchers=gt(At)),Be(vt,{flushSync:Q})}At.forEach(vt=>{X.has(vt.key)&&Ue(vt.key),vt.controller&&X.set(vt.key,vt.controller)});let fo=()=>At.forEach(vt=>Ue(vt.key));F&&F.signal.addEventListener("abort",fo);let{loaderResults:Xo,fetcherResults:Jt}=await Yt(T.matches,oe,nt,At,D);if(D.signal.aborted)return{shortCircuited:!0};F&&F.signal.removeEventListener("abort",fo),At.forEach(vt=>X.delete(vt.key));let Ji=Ww([...Xo,...Jt]);if(Ji){if(Ji.idx>=nt.length){let vt=At[Ji.idx-nt.length].key;L.add(vt)}return await pt(D,Ji.result,{replace:$e}),{shortCircuited:!0}}let{loaderData:Jo,errors:Vr}=Fw(T,oe,nt,Xo,q,At,Jt,xe);xe.forEach((vt,Nt)=>{vt.subscribe(cr=>{(cr||vt.done)&&xe.delete(Nt)})}),m.v7_partialHydration&&st&&T.errors&&Object.entries(T.errors).filter(vt=>{let[Nt]=vt;return!nt.some(cr=>cr.route.id===Nt)}).forEach(vt=>{let[Nt,cr]=vt;Vr=Object.assign(Vr||{},{[Nt]:cr})});let wi=Re(),cl=We(Y),Ys=wi||cl||At.length>0;return hn({matches:oe,loaderData:Jo,errors:Vr},Ys?{fetchers:new Map(T.fetchers)}:{})}function $t(D){if(D&&!Ir(D[1]))return{[D[0]]:D[1].data};if(T.actionData)return Object.keys(T.actionData).length===0?null:T.actionData}function gt(D){return D.forEach(V=>{let oe=T.fetchers.get(V.key),me=rc(void 0,oe?oe.data:void 0);T.fetchers.set(V.key,me)}),new Map(T.fetchers)}function dt(D,V,oe,me){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");X.has(D)&&Ue(D);let je=(me&&me.unstable_flushSync)===!0,Ke=u||l,it=bm(T.location,T.matches,c,m.v7_prependBasename,oe,m.v7_relativeSplatPath,V,me==null?void 0:me.relative),$e=js(Ke,it,c),st=uo($e,Ke,it);if(st.active&&st.matches&&($e=st.matches),!$e){Pe(D,V,nr(404,{pathname:it}),{flushSync:je});return}let{path:Q,submission:q,error:we}=Aw(m.v7_normalizeFormMethod,!0,it,me);if(we){Pe(D,V,we,{flushSync:je});return}let be=nc($e,Q);if(M=(me&&me.preventScrollReset)===!0,q&&wo(q.formMethod)){_t(D,V,Q,be,$e,st.active,je,q);return}se.set(D,{routeId:V,path:Q}),Pt(D,V,Q,be,$e,st.active,je,q)}async function _t(D,V,oe,me,je,Ke,it,$e){qt(),se.delete(D);function st(jt){if(!jt.route.action&&!jt.route.lazy){let Oo=nr(405,{method:$e.formMethod,pathname:oe,routeId:V});return Pe(D,V,Oo,{flushSync:it}),!0}return!1}if(!Ke&&st(me))return;let Q=T.fetchers.get(D);et(D,CF($e,Q),{flushSync:it});let q=new AbortController,we=Sa(e.history,oe,q.signal,$e);if(Ke){let jt=await Ln(je,oe,we.signal);if(jt.type==="aborted")return;if(jt.type==="error"){let{error:Oo}=Zt(oe,jt);Pe(D,V,Oo,{flushSync:it});return}else if(jt.matches){if(je=jt.matches,me=nc(je,oe),st(me))return}else{Pe(D,V,nr(404,{pathname:oe}),{flushSync:it});return}}X.set(D,q);let be=N,Ee=(await Ft("action",we,[me],je))[0];if(we.signal.aborted){X.get(D)===q&&X.delete(D);return}if(m.v7_fetcherPersist&&ve.has(D)){if(Is(Ee)||Ir(Ee)){et(D,Di(void 0));return}}else{if(Is(Ee))if(X.delete(D),Y>be){et(D,Di(void 0));return}else return L.add(D),et(D,rc($e)),pt(we,Ee,{fetcherSubmission:$e});if(Ir(Ee)){Pe(D,V,Ee.error);return}}if(_s(Ee))throw nr(400,{type:"defer-action"});let nt=T.navigation.location||T.location,At=Sa(e.history,nt,q.signal),fo=u||l,Xo=T.navigation.state!=="idle"?js(fo,T.navigation.location,c):T.matches;Ct(Xo,"Didn't find any matches after fetcher action");let Jt=++N;ce.set(D,Jt);let Ji=rc($e,Ee.data);T.fetchers.set(D,Ji);let[Jo,Vr]=jw(e.history,T,Xo,$e,nt,!1,m.v7_skipActionErrorRevalidation,z,te,Z,ve,se,L,fo,c,[me.route.id,Ee]);Vr.filter(jt=>jt.key!==D).forEach(jt=>{let Oo=jt.key,ep=T.fetchers.get(Oo),ev=rc(void 0,ep?ep.data:void 0);T.fetchers.set(Oo,ev),X.has(Oo)&&Ue(Oo),jt.controller&&X.set(Oo,jt.controller)}),Be({fetchers:new Map(T.fetchers)});let wi=()=>Vr.forEach(jt=>Ue(jt.key));q.signal.addEventListener("abort",wi);let{loaderResults:cl,fetcherResults:Ys}=await Yt(T.matches,Xo,Jo,Vr,At);if(q.signal.aborted)return;q.signal.removeEventListener("abort",wi),ce.delete(D),X.delete(D),Vr.forEach(jt=>X.delete(jt.key));let vt=Ww([...cl,...Ys]);if(vt){if(vt.idx>=Jo.length){let jt=Vr[vt.idx-Jo.length].key;L.add(jt)}return pt(At,vt.result)}let{loaderData:Nt,errors:cr}=Fw(T,T.matches,Jo,cl,void 0,Vr,Ys,xe);if(T.fetchers.has(D)){let jt=Di(Ee.data);T.fetchers.set(D,jt)}We(Jt),T.navigation.state==="loading"&&Jt>Y?(Ct(_,"Expected pending action"),F&&F.abort(),Je(T.navigation.location,{matches:Xo,loaderData:Nt,errors:cr,fetchers:new Map(T.fetchers)})):(Be({errors:cr,loaderData:Bw(T.loaderData,Nt,Xo,cr),fetchers:new Map(T.fetchers)}),z=!1)}async function Pt(D,V,oe,me,je,Ke,it,$e){let st=T.fetchers.get(D);et(D,rc($e,st?st.data:void 0),{flushSync:it});let Q=new AbortController,q=Sa(e.history,oe,Q.signal);if(Ke){let Ee=await Ln(je,oe,q.signal);if(Ee.type==="aborted")return;if(Ee.type==="error"){let{error:nt}=Zt(oe,Ee);Pe(D,V,nt,{flushSync:it});return}else if(Ee.matches)je=Ee.matches,me=nc(je,oe);else{Pe(D,V,nr(404,{pathname:oe}),{flushSync:it});return}}X.set(D,Q);let we=N,De=(await Ft("loader",q,[me],je))[0];if(_s(De)&&(De=await Gw(De,q.signal,!0)||De),X.get(D)===Q&&X.delete(D),!q.signal.aborted){if(ve.has(D)){et(D,Di(void 0));return}if(Is(De))if(Y>we){et(D,Di(void 0));return}else{L.add(D),await pt(q,De);return}if(Ir(De)){Pe(D,V,De.error);return}Ct(!_s(De),"Unhandled fetcher deferred data"),et(D,Di(De.data))}}async function pt(D,V,oe){let{submission:me,fetcherSubmission:je,replace:Ke}=oe===void 0?{}:oe;V.response.headers.has("X-Remix-Revalidate")&&(z=!0);let it=V.response.headers.get("Location");Ct(it,"Expected a Location header on the redirect Response"),it=Lw(it,new URL(D.url),c);let $e=Zl(T.location,it,{_isRedirect:!0});if(n){let De=!1;if(V.response.headers.has("X-Remix-Reload-Document"))De=!0;else if(vm.test(it)){const Ee=e.history.createURL(it);De=Ee.origin!==t.location.origin||Li(Ee.pathname,c)==null}if(De){Ke?t.location.replace(it):t.location.assign(it);return}}F=null;let st=Ke===!0?kn.Replace:kn.Push,{formMethod:Q,formAction:q,formEncType:we}=T.navigation;!me&&!je&&Q&&q&&we&&(me=qw(T.navigation));let be=me||je;if(rF.has(V.response.status)&&be&&wo(be.formMethod))await ze(st,$e,{submission:hn({},be,{formAction:it}),preventScrollReset:M});else{let De=Sm($e,me);await ze(st,$e,{overrideNavigation:De,fetcherSubmission:je,preventScrollReset:M})}}async function Ft(D,V,oe,me){try{let je=await fF(f,D,V,oe,me,s,o);return await Promise.all(je.map((Ke,it)=>{if(bF(Ke)){let $e=Ke.result;return{type:nn.redirect,response:mF($e,V,oe[it].route.id,me,c,m.v7_relativeSplatPath)}}return hF(Ke)}))}catch(je){return oe.map(()=>({type:nn.error,error:je}))}}async function Yt(D,V,oe,me,je){let[Ke,...it]=await Promise.all([oe.length?Ft("loader",je,oe,V):[],...me.map($e=>{if($e.matches&&$e.match&&$e.controller){let st=Sa(e.history,$e.path,$e.controller.signal);return Ft("loader",st,[$e.match],$e.matches).then(Q=>Q[0])}else return Promise.resolve({type:nn.error,error:nr(404,{pathname:$e.path})})})]);return await Promise.all([Kw(D,oe,Ke,Ke.map(()=>je.signal),!1,T.loaderData),Kw(D,me.map($e=>$e.match),it,me.map($e=>$e.controller?$e.controller.signal:null),!0)]),{loaderResults:Ke,fetcherResults:it}}function qt(){z=!0,te.push(...rn()),se.forEach((D,V)=>{X.has(V)&&(Z.push(V),Ue(V))})}function et(D,V,oe){oe===void 0&&(oe={}),T.fetchers.set(D,V),Be({fetchers:new Map(T.fetchers)},{flushSync:(oe&&oe.flushSync)===!0})}function Pe(D,V,oe,me){me===void 0&&(me={});let je=Ca(T.matches,V);Ht(D),Be({errors:{[je.route.id]:oe},fetchers:new Map(T.fetchers)},{flushSync:(me&&me.flushSync)===!0})}function xt(D){return m.v7_fetcherPersist&&(Oe.set(D,(Oe.get(D)||0)+1),ve.has(D)&&ve.delete(D)),T.fetchers.get(D)||oF}function Ht(D){let V=T.fetchers.get(D);X.has(D)&&!(V&&V.state==="loading"&&ce.has(D))&&Ue(D),se.delete(D),ce.delete(D),L.delete(D),ve.delete(D),T.fetchers.delete(D)}function fn(D){if(m.v7_fetcherPersist){let V=(Oe.get(D)||0)-1;V<=0?(Oe.delete(D),ve.add(D)):Oe.set(D,V)}else Ht(D);Be({fetchers:new Map(T.fetchers)})}function Ue(D){let V=X.get(D);Ct(V,"Expected fetch controller: "+D),V.abort(),X.delete(D)}function ut(D){for(let V of D){let oe=xt(V),me=Di(oe.data);T.fetchers.set(V,me)}}function Re(){let D=[],V=!1;for(let oe of L){let me=T.fetchers.get(oe);Ct(me,"Expected fetcher: "+oe),me.state==="loading"&&(L.delete(oe),D.push(oe),V=!0)}return ut(D),V}function We(D){let V=[];for(let[oe,me]of ce)if(me<D){let je=T.fetchers.get(oe);Ct(je,"Expected fetcher: "+oe),je.state==="loading"&&(Ue(oe),ce.delete(oe),V.push(oe))}return ut(V),V.length>0}function ft(D,V){let oe=T.blockers.get(D)||tc;return he.get(D)!==V&&he.set(D,V),oe}function yt(D){T.blockers.delete(D),he.delete(D)}function bt(D,V){let oe=T.blockers.get(D)||tc;Ct(oe.state==="unblocked"&&V.state==="blocked"||oe.state==="blocked"&&V.state==="blocked"||oe.state==="blocked"&&V.state==="proceeding"||oe.state==="blocked"&&V.state==="unblocked"||oe.state==="proceeding"&&V.state==="unblocked","Invalid blocker state transition: "+oe.state+" -> "+V.state);let me=new Map(T.blockers);me.set(D,V),Be({blockers:me})}function It(D){let{currentLocation:V,nextLocation:oe,historyAction:me}=D;if(he.size===0)return;he.size>1&&wa(!1,"A router only supports one blocker at a time");let je=Array.from(he.entries()),[Ke,it]=je[je.length-1],$e=T.blockers.get(Ke);if(!($e&&$e.state==="proceeding")&&it({currentLocation:V,nextLocation:oe,historyAction:me}))return Ke}function Mt(D){let V=nr(404,{pathname:D}),oe=u||l,{matches:me,route:je}=Uw(oe);return rn(),{notFoundMatches:me,route:je,error:V}}function Zt(D,V){return{boundaryId:Ca(V.partialMatches).route.id,error:nr(400,{type:"route-discovery",pathname:D,message:V.error!=null&&"message"in V.error?V.error:String(V.error)})}}function rn(D){let V=[];return xe.forEach((oe,me)=>{(!D||D(me))&&(oe.cancel(),V.push(me),xe.delete(me))}),V}function Qn(D,V,oe){if(x=D,w=V,b=oe||null,!P&&T.navigation===ym){P=!0;let me=To(T.location,T.matches);me!=null&&Be({restoreScrollPosition:me})}return()=>{x=null,w=null,b=null}}function Hr(D,V){return b&&b(D,V.map(me=>MD(me,T.loaderData)))||D.key}function Po(D,V){if(x&&w){let oe=Hr(D,V);x[oe]=w()}}function To(D,V){if(x){let oe=Hr(D,V),me=x[oe];if(typeof me=="number")return me}return null}function uo(D,V,oe){if(p)if(D){let me=D[D.length-1].route;if(me.path&&(me.path==="*"||me.path.endsWith("/*")))return{active:!0,matches:Pd(V,oe,c,!0)}}else return{active:!0,matches:Pd(V,oe,c,!0)||[]};return{active:!1,matches:null}}async function Ln(D,V,oe){let me=D,je=me.length>0?me[me.length-1].route:null;for(;;){let Ke=u==null,it=u||l;try{await uF(p,V,me,it,s,o,Me,oe)}catch(q){return{type:"error",error:q,partialMatches:me}}finally{Ke&&(l=[...l])}if(oe.aborted)return{type:"aborted"};let $e=js(it,V,c),st=!1;if($e){let q=$e[$e.length-1].route;if(q.index)return{type:"success",matches:$e};if(q.path&&q.path.length>0)if(q.path==="*")st=!0;else return{type:"success",matches:$e}}let Q=Pd(it,V,c,!0);if(!Q||me.map(q=>q.route.id).join("-")===Q.map(q=>q.route.id).join("-"))return{type:"success",matches:st?$e:null};if(me=Q,je=me[me.length-1].route,je.path==="*")return{type:"success",matches:me}}}function on(D){s={},u=ec(D,o,void 0,s)}function Qt(D,V){let oe=u==null;Mw(D,V,u||l,s,o),oe&&(l=[...l],Be({}))}return $={get basename(){return c},get future(){return m},get state(){return T},get routes(){return l},get window(){return t},initialize:ke,subscribe:He,enableScrollRestoration:Qn,navigate:ct,fetch:dt,revalidate:ot,createHref:D=>e.history.createHref(D),encodeLocation:D=>e.history.encodeLocation(D),getFetcher:xt,deleteFetcher:fn,dispose:Qe,getBlocker:ft,deleteBlocker:yt,patchRoutes:Qt,_internalFetchControllers:X,_internalActiveDeferreds:xe,_internalSetRoutes:on},$}function aF(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function bm(e,t,n,r,o,s,l,u){let c,f;if(l){c=[];for(let m of t)if(c.push(m),m.route.id===l){f=m;break}}else c=t,f=t[t.length-1];let p=mm(o||".",hm(c,s),Li(e.pathname,n)||e.pathname,u==="path");return o==null&&(p.search=e.search,p.hash=e.hash),(o==null||o===""||o===".")&&f&&f.route.index&&!wm(p.search)&&(p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(p.pathname=p.pathname==="/"?n:Bo([n,p.pathname])),Mi(p)}function Aw(e,t,n,r){if(!r||!aF(r))return{path:n};if(r.formMethod&&!wF(r.formMethod))return{path:n,error:nr(405,{method:r.formMethod})};let o=()=>({path:n,error:nr(400,{type:"invalid-body"})}),s=r.formMethod||"get",l=e?s.toUpperCase():s.toLowerCase(),u=Hw(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!wo(l))return o();let g=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((S,x)=>{let[b,w]=x;return""+S+b+"="+w+`
|
|
17
17
|
`},""):String(r.body);return{path:n,submission:{formMethod:l,formAction:u,formEncType:r.formEncType,formData:void 0,json:void 0,text:g}}}else if(r.formEncType==="application/json"){if(!wo(l))return o();try{let g=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:l,formAction:u,formEncType:r.formEncType,formData:void 0,json:g,text:void 0}}}catch{return o()}}}Ct(typeof FormData=="function","FormData is not available in this environment");let c,f;if(r.formData)c=xm(r.formData),f=r.formData;else if(r.body instanceof FormData)c=xm(r.body),f=r.body;else if(r.body instanceof URLSearchParams)c=r.body,f=Dw(c);else if(r.body==null)c=new URLSearchParams,f=new FormData;else try{c=new URLSearchParams(r.body),f=Dw(c)}catch{return o()}let p={formMethod:l,formAction:u,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:f,json:void 0,text:void 0};if(wo(p.formMethod))return{path:n,submission:p};let m=Ni(n);return t&&m.search&&wm(m.search)&&c.append("index",""),m.search="?"+c,{path:Mi(m),submission:p}}function lF(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function jw(e,t,n,r,o,s,l,u,c,f,p,m,g,S,x,b){let w=b?Ir(b[1])?b[1].error:b[1].data:void 0,P=e.createURL(t.location),R=e.createURL(o),O=b&&Ir(b[1])?b[0]:void 0,A=O?lF(n,O):n,$=b?b[1].statusCode:void 0,T=l&&$&&$>=400,_=A.filter((F,B)=>{let{route:G}=F;if(G.lazy)return!0;if(G.loader==null)return!1;if(s)return typeof G.loader!="function"||G.loader.hydrate?!0:t.loaderData[G.id]===void 0&&(!t.errors||t.errors[G.id]===void 0);if(cF(t.loaderData,t.matches[B],F)||c.some(z=>z===F.route.id))return!0;let W=t.matches[B],H=F;return Iw(F,hn({currentUrl:P,currentParams:W.params,nextUrl:R,nextParams:H.params},r,{actionResult:w,actionStatus:$,defaultShouldRevalidate:T?!1:u||P.pathname+P.search===R.pathname+R.search||P.search!==R.search||_w(W,H)}))}),M=[];return m.forEach((F,B)=>{if(s||!n.some(te=>te.route.id===F.routeId)||p.has(B))return;let G=js(S,F.path,x);if(!G){M.push({key:B,routeId:F.routeId,path:F.path,matches:null,match:null,controller:null});return}let W=t.fetchers.get(B),H=nc(G,F.path),z=!1;g.has(B)?z=!1:f.includes(B)?z=!0:W&&W.state!=="idle"&&W.data===void 0?z=u:z=Iw(H,hn({currentUrl:P,currentParams:t.matches[t.matches.length-1].params,nextUrl:R,nextParams:n[n.length-1].params},r,{actionResult:w,actionStatus:$,defaultShouldRevalidate:T?!1:u})),z&&M.push({key:B,routeId:F.routeId,path:F.path,matches:G,match:H,controller:new AbortController})}),[_,M]}function cF(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function _w(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Iw(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function uF(e,t,n,r,o,s,l,u){let c=[t,...n.map(f=>f.route.id)].join("-");try{let f=l.get(c);f||(f=e({path:t,matches:n,patch:(p,m)=>{u.aborted||Mw(p,m,r,o,s)}}),l.set(c,f)),f&&vF(f)&&await f}finally{l.delete(c)}}function Mw(e,t,n,r,o){if(e){var s;let l=r[e];Ct(l,"No route found to patch children into: routeId = "+e);let u=ec(t,o,[e,"patch",String(((s=l.children)==null?void 0:s.length)||"0")],r);l.children?l.children.push(...u):l.children=u}else{let l=ec(t,o,["patch",String(n.length||"0")],r);n.push(...l)}}async function Nw(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];Ct(o,"No route found in manifest");let s={};for(let l in r){let c=o[l]!==void 0&&l!=="hasErrorBoundary";wa(!c,'Route "'+o.id+'" has a static property "'+l+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+l+'" will be ignored.')),!c&&!_D.has(l)&&(s[l]=r[l])}Object.assign(o,s),Object.assign(o,hn({},t(o),{lazy:void 0}))}function dF(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function fF(e,t,n,r,o,s,l,u){let c=r.reduce((m,g)=>m.add(g.route.id),new Set),f=new Set,p=await e({matches:o.map(m=>{let g=c.has(m.route.id);return hn({},m,{shouldLoad:g,resolve:x=>(f.add(m.route.id),g?pF(t,n,m,s,l,x,u):Promise.resolve({type:nn.data,result:void 0}))})}),request:n,params:o[0].params,context:u});return o.forEach(m=>Ct(f.has(m.route.id),'`match.resolve()` was not called for route id "'+m.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),p.filter((m,g)=>c.has(o[g].route.id))}async function pF(e,t,n,r,o,s,l){let u,c,f=p=>{let m,g=new Promise((b,w)=>m=w);c=()=>m(),t.signal.addEventListener("abort",c);let S=b=>typeof p!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):p({request:t,params:n.params,context:l},...b!==void 0?[b]:[]),x;return s?x=s(b=>S(b)):x=(async()=>{try{return{type:"data",result:await S()}}catch(b){return{type:"error",result:b}}})(),Promise.race([x,g])};try{let p=n.route[e];if(n.route.lazy)if(p){let m,[g]=await Promise.all([f(p).catch(S=>{m=S}),Nw(n.route,o,r)]);if(m!==void 0)throw m;u=g}else if(await Nw(n.route,o,r),p=n.route[e],p)u=await f(p);else if(e==="action"){let m=new URL(t.url),g=m.pathname+m.search;throw nr(405,{method:t.method,pathname:g,routeId:n.route.id})}else return{type:nn.data,result:void 0};else if(p)u=await f(p);else{let m=new URL(t.url),g=m.pathname+m.search;throw nr(404,{pathname:g})}Ct(u.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(p){return{type:nn.error,result:p}}finally{c&&t.signal.removeEventListener("abort",c)}return u}async function hF(e){let{result:t,type:n,status:r}=e;if(Vw(t)){let l;try{let u=t.headers.get("Content-Type");u&&/\bapplication\/json\b/.test(u)?t.body==null?l=null:l=await t.json():l=await t.text()}catch(u){return{type:nn.error,error:u}}return n===nn.error?{type:nn.error,error:new gm(t.status,t.statusText,l),statusCode:t.status,headers:t.headers}:{type:nn.data,data:l,statusCode:t.status,headers:t.headers}}if(n===nn.error)return{type:nn.error,error:t,statusCode:Td(t)?t.status:r};if(xF(t)){var o,s;return{type:nn.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((s=t.init)==null?void 0:s.headers)&&new Headers(t.init.headers)}}return{type:nn.data,data:t,statusCode:r}}function mF(e,t,n,r,o,s){let l=e.headers.get("Location");if(Ct(l,"Redirects returned/thrown from loaders/actions must have a Location header"),!vm.test(l)){let u=r.slice(0,r.findIndex(c=>c.route.id===n)+1);l=bm(new URL(t.url),u,o,!0,l,s),e.headers.set("Location",l)}return e}function Lw(e,t,n){if(vm.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),s=Li(o.pathname,n)!=null;if(o.origin===t.origin&&s)return o.pathname+o.search+o.hash}return e}function Sa(e,t,n,r){let o=e.createURL(Hw(t)).toString(),s={signal:n};if(r&&wo(r.formMethod)){let{formMethod:l,formEncType:u}=r;s.method=l.toUpperCase(),u==="application/json"?(s.headers=new Headers({"Content-Type":u}),s.body=JSON.stringify(r.json)):u==="text/plain"?s.body=r.text:u==="application/x-www-form-urlencoded"&&r.formData?s.body=xm(r.formData):s.body=r.formData}return new Request(o,s)}function xm(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Dw(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function gF(e,t,n,r,o,s){let l={},u=null,c,f=!1,p={},m=r&&Ir(r[1])?r[1].error:void 0;return n.forEach((g,S)=>{let x=t[S].route.id;if(Ct(!Is(g),"Cannot handle redirect results in processLoaderData"),Ir(g)){let b=g.error;m!==void 0&&(b=m,m=void 0),u=u||{};{let w=Ca(e,x);u[w.route.id]==null&&(u[w.route.id]=b)}l[x]=void 0,f||(f=!0,c=Td(g.error)?g.error.status:500),g.headers&&(p[x]=g.headers)}else _s(g)?(o.set(x,g.deferredData),l[x]=g.deferredData.data,g.statusCode!=null&&g.statusCode!==200&&!f&&(c=g.statusCode),g.headers&&(p[x]=g.headers)):(l[x]=g.data,g.statusCode&&g.statusCode!==200&&!f&&(c=g.statusCode),g.headers&&(p[x]=g.headers))}),m!==void 0&&r&&(u={[r[0]]:m},l[r[0]]=void 0),{loaderData:l,errors:u,statusCode:c||200,loaderHeaders:p}}function Fw(e,t,n,r,o,s,l,u){let{loaderData:c,errors:f}=gF(t,n,r,o,u);for(let p=0;p<s.length;p++){let{key:m,match:g,controller:S}=s[p];Ct(l!==void 0&&l[p]!==void 0,"Did not find corresponding fetcher result");let x=l[p];if(!(S&&S.signal.aborted))if(Ir(x)){let b=Ca(e.matches,g==null?void 0:g.route.id);f&&f[b.route.id]||(f=hn({},f,{[b.route.id]:x.error})),e.fetchers.delete(m)}else if(Is(x))Ct(!1,"Unhandled fetcher revalidation redirect");else if(_s(x))Ct(!1,"Unhandled fetcher deferred data");else{let b=Di(x.data);e.fetchers.set(m,b)}}return{loaderData:c,errors:f}}function Bw(e,t,n,r){let o=hn({},t);for(let s of n){let l=s.route.id;if(t.hasOwnProperty(l)?t[l]!==void 0&&(o[l]=t[l]):e[l]!==void 0&&s.route.loader&&(o[l]=e[l]),r&&r.hasOwnProperty(l))break}return o}function zw(e){return e?Ir(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ca(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Uw(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function nr(e,t){let{pathname:n,routeId:r,method:o,type:s,message:l}=t===void 0?{}:t,u="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(u="Bad Request",s==="route-discovery"?c='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnMiss()` '+(`function threw the following error:
|
|
18
|
-
`+l):o&&n&&r?c="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":s==="defer-action"?c="defer() is not supported in actions":s==="invalid-body"&&(c="Unable to encode submission body")):e===403?(u="Forbidden",c='Route "'+r+'" does not match URL "'+n+'"'):e===404?(u="Not Found",c='No route matches URL "'+n+'"'):e===405&&(u="Method Not Allowed",o&&n&&r?c="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(c='Invalid request method "'+o.toUpperCase()+'"')),new gm(e||500,u,new Error(c),!0)}function Ww(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Is(n))return{result:n,idx:t}}}function Hw(e){let t=typeof e=="string"?Ni(e):e;return Mi(hn({},t,{hash:""}))}function yF(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function vF(e){return typeof e=="object"&&e!=null&&"then"in e}function bF(e){return Vw(e.result)&&nF.has(e.result.status)}function _s(e){return e.type===nn.deferred}function Ir(e){return e.type===nn.error}function Is(e){return(e&&e.type)===nn.redirect}function xF(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Vw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function wF(e){return tF.has(e.toLowerCase())}function wo(e){return ZD.has(e.toLowerCase())}async function Kw(e,t,n,r,o,s){for(let l=0;l<n.length;l++){let u=n[l],c=t[l];if(!c)continue;let f=e.find(m=>m.route.id===c.route.id),p=f!=null&&!_w(f,c)&&(s&&s[c.route.id])!==void 0;if(_s(u)&&(o||p)){let m=r[l];Ct(m,"Expected an AbortSignal for revalidating fetcher deferred result"),await Gw(u,m,o).then(g=>{g&&(n[l]=g||n[l])})}}}async function Gw(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:nn.data,data:e.deferredData.unwrappedData}}catch(o){return{type:nn.error,error:o}}return{type:nn.data,data:e.deferredData.data}}}function wm(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function nc(e,t){let n=typeof t=="string"?Ni(t).search:t.search;if(e[e.length-1].route.index&&wm(n||""))return e[e.length-1];let r=Tw(e);return r[r.length-1]}function qw(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:s,json:l}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(s!=null)return{formMethod:t,formAction:n,formEncType:r,formData:s,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function Sm(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function SF(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function rc(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function CF(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Di(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function EF(e,t){try{let n=e.sessionStorage.getItem($w);if(n){let r=JSON.parse(n);for(let[o,s]of Object.entries(r||{}))s&&Array.isArray(s)&&t.set(o,new Set(s||[]))}}catch{}}function RF(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem($w,JSON.stringify(n))}catch(r){wa(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}function Od(){return Od=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Od.apply(this,arguments)}const oc=E.createContext(null),Qw=E.createContext(null),ci=E.createContext(null),Cm=E.createContext(null),zo=E.createContext({outlet:null,matches:[],isDataRoute:!1}),Yw=E.createContext(null);function kF(e,t){let{relative:n}=t===void 0?{}:t;ic()||Ct(!1);let{basename:r,navigator:o}=E.useContext(ci),{hash:s,pathname:l,search:u}=Em(e,{relative:n}),c=l;return r!=="/"&&(c=l==="/"?r:Bo([r,l])),o.createHref({pathname:c,search:u,hash:s})}function ic(){return E.useContext(Cm)!=null}function Ms(){return ic()||Ct(!1),E.useContext(Cm).location}function Xw(e){E.useContext(ci).static||E.useLayoutEffect(e)}function sc(){let{isDataRoute:e}=E.useContext(zo);return e?UF():PF()}function PF(){ic()||Ct(!1);let e=E.useContext(oc),{basename:t,future:n,navigator:r}=E.useContext(ci),{matches:o}=E.useContext(zo),{pathname:s}=Ms(),l=JSON.stringify(hm(o,n.v7_relativeSplatPath)),u=E.useRef(!1);return Xw(()=>{u.current=!0}),E.useCallback(function(f,p){if(p===void 0&&(p={}),!u.current)return;if(typeof f=="number"){r.go(f);return}let m=mm(f,JSON.parse(l),s,p.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Bo([t,m.pathname])),(p.replace?r.replace:r.push)(m,p.state,p)},[t,r,l,s,e])}const TF=E.createContext(null);function OF(e){let t=E.useContext(zo).outlet;return t&&E.createElement(TF.Provider,{value:e},t)}function $F(){let{matches:e}=E.useContext(zo),t=e[e.length-1];return t?t.params:{}}function Em(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=E.useContext(ci),{matches:o}=E.useContext(zo),{pathname:s}=Ms(),l=JSON.stringify(hm(o,r.v7_relativeSplatPath));return E.useMemo(()=>mm(e,JSON.parse(l),s,n==="path"),[e,l,s,n])}function AF(e,t,n,r){ic()||Ct(!1);let{navigator:o}=E.useContext(ci),{matches:s}=E.useContext(zo),l=s[s.length-1],u=l?l.params:{};l&&l.pathname;let c=l?l.pathnameBase:"/";l&&l.route;let f=Ms(),p;p=f;let m=p.pathname||"/",g=m;if(c!=="/"){let b=c.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(b.length).join("/")}let S=js(e,{pathname:g});return NF(S&&S.map(b=>Object.assign({},b,{params:Object.assign({},u,b.params),pathname:Bo([c,o.encodeLocation?o.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?c:Bo([c,o.encodeLocation?o.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),s,n,r)}function jF(){let e=zF(),t=Td(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:o},n):null,null)}const _F=E.createElement(jF,null);class IF extends E.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?E.createElement(zo.Provider,{value:this.props.routeContext},E.createElement(Yw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function MF(e){let{routeContext:t,match:n,children:r}=e,o=E.useContext(oc);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(zo.Provider,{value:t},r)}function NF(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if((s=n)!=null&&s.errors)e=n.matches;else return null}let l=e,u=(o=n)==null?void 0:o.errors;if(u!=null){let p=l.findIndex(m=>m.route.id&&(u==null?void 0:u[m.route.id])!==void 0);p>=0||Ct(!1),l=l.slice(0,Math.min(l.length,p+1))}let c=!1,f=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p<l.length;p++){let m=l[p];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(f=p),m.route.id){let{loaderData:g,errors:S}=n,x=m.route.loader&&g[m.route.id]===void 0&&(!S||S[m.route.id]===void 0);if(m.route.lazy||x){c=!0,f>=0?l=l.slice(0,f+1):l=[l[0]];break}}}return l.reduceRight((p,m,g)=>{let S,x=!1,b=null,w=null;n&&(S=u&&m.route.id?u[m.route.id]:void 0,b=m.route.errorElement||_F,c&&(f<0&&g===0?(x=!0,w=null):f===g&&(x=!0,w=m.route.hydrateFallbackElement||null)));let P=t.concat(l.slice(0,g+1)),R=()=>{let O;return S?O=b:x?O=w:m.route.Component?O=E.createElement(m.route.Component,null):m.route.element?O=m.route.element:O=p,E.createElement(MF,{match:m,routeContext:{outlet:p,matches:P,isDataRoute:n!=null},children:O})};return n&&(m.route.ErrorBoundary||m.route.errorElement||g===0)?E.createElement(IF,{location:n.location,revalidation:n.revalidation,component:b,error:S,children:R(),routeContext:{outlet:null,matches:P,isDataRoute:!0}}):R()},null)}var Jw=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Jw||{}),ac=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ac||{});function LF(e){let t=E.useContext(oc);return t||Ct(!1),t}function DF(e){let t=E.useContext(Qw);return t||Ct(!1),t}function FF(e){let t=E.useContext(zo);return t||Ct(!1),t}function Rm(e){let t=FF(),n=t.matches[t.matches.length-1];return n.route.id||Ct(!1),n.route.id}function BF(){return Rm(ac.UseRouteId)}function zF(){var e;let t=E.useContext(Yw),n=DF(ac.UseRouteError),r=Rm(ac.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function UF(){let{router:e}=LF(Jw.UseNavigateStable),t=Rm(ac.UseNavigateStable),n=E.useRef(!1);return Xw(()=>{n.current=!0}),E.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Od({fromRouteId:t},s)))},[e,t])}function WF(e){return OF(e.context)}function HF(e){let{basename:t="/",children:n=null,location:r,navigationType:o=kn.Pop,navigator:s,static:l=!1,future:u}=e;ic()&&Ct(!1);let c=t.replace(/^\/*/,"/"),f=E.useMemo(()=>({basename:c,navigator:s,static:l,future:Od({v7_relativeSplatPath:!1},u)}),[c,u,s,l]);typeof r=="string"&&(r=Ni(r));let{pathname:p="/",search:m="",hash:g="",state:S=null,key:x="default"}=r,b=E.useMemo(()=>{let w=Li(p,c);return w==null?null:{location:{pathname:w,search:m,hash:g,state:S,key:x},navigationType:o}},[c,p,m,g,S,x,o]);return b==null?null:E.createElement(ci.Provider,{value:f},E.createElement(Cm.Provider,{children:n,value:b}))}new Promise(()=>{});function VF(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:E.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:E.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:E.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function Ns(){return Ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ns.apply(this,arguments)}function Zw(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const $d="get",km="application/x-www-form-urlencoded";function Ad(e){return e!=null&&typeof e.tagName=="string"}function KF(e){return Ad(e)&&e.tagName.toLowerCase()==="button"}function GF(e){return Ad(e)&&e.tagName.toLowerCase()==="form"}function qF(e){return Ad(e)&&e.tagName.toLowerCase()==="input"}function QF(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function YF(e,t){return e.button===0&&(!t||t==="_self")&&!QF(e)}function Pm(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function XF(e,t){let n=Pm(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(s=>{n.append(o,s)})}),n}let jd=null;function JF(){if(jd===null)try{new FormData(document.createElement("form"),0),jd=!1}catch{jd=!0}return jd}const ZF=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Tm(e){return e!=null&&!ZF.has(e)?null:e}function e4(e,t){let n,r,o,s,l;if(GF(e)){let u=e.getAttribute("action");r=u?Li(u,t):null,n=e.getAttribute("method")||$d,o=Tm(e.getAttribute("enctype"))||km,s=new FormData(e)}else if(KF(e)||qF(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||u.getAttribute("action");if(r=c?Li(c,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||$d,o=Tm(e.getAttribute("formenctype"))||Tm(u.getAttribute("enctype"))||km,s=new FormData(u,e),!JF()){let{name:f,type:p,value:m}=e;if(p==="image"){let g=f?f+".":"";s.append(g+"x","0"),s.append(g+"y","0")}else f&&s.append(f,m)}}else{if(Ad(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=$d,r=null,o=km,l=e}return s&&o==="text/plain"&&(l=s,s=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:s,body:l}}const t4=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],n4=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"],r4="6";try{window.__reactRouterVersion=r4}catch{}function o4(e,t){return sF({basename:t==null?void 0:t.basename,future:Ns({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:$D({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||i4(),routes:e,mapRouteProperties:VF,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnMiss:t==null?void 0:t.unstable_patchRoutesOnMiss,window:t==null?void 0:t.window}).initialize()}function i4(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Ns({},t,{errors:s4(t.errors)})),t}function s4(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new gm(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let s=window[o.__subType];if(typeof s=="function")try{let l=new s(o.message);l.stack="",n[r]=l}catch{}}if(n[r]==null){let s=new Error(o.message);s.stack="",n[r]=s}}else n[r]=o;return n}const a4=E.createContext({isTransitioning:!1}),l4=E.createContext(new Map),eS=Fu["startTransition"],tS=BO["flushSync"];function c4(e){eS?eS(e):e()}function lc(e){tS?tS(e):e()}class u4{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function d4(e){let{fallbackElement:t,router:n,future:r}=e,[o,s]=E.useState(n.state),[l,u]=E.useState(),[c,f]=E.useState({isTransitioning:!1}),[p,m]=E.useState(),[g,S]=E.useState(),[x,b]=E.useState(),w=E.useRef(new Map),{v7_startTransition:P}=r||{},R=E.useCallback(M=>{P?c4(M):M()},[P]),O=E.useCallback((M,F)=>{let{deletedFetchers:B,unstable_flushSync:G,unstable_viewTransitionOpts:W}=F;B.forEach(z=>w.current.delete(z)),M.fetchers.forEach((z,te)=>{z.data!==void 0&&w.current.set(te,z.data)});let H=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!W||H){G?lc(()=>s(M)):R(()=>s(M));return}if(G){lc(()=>{g&&(p&&p.resolve(),g.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:W.currentLocation,nextLocation:W.nextLocation})});let z=n.window.document.startViewTransition(()=>{lc(()=>s(M))});z.finished.finally(()=>{lc(()=>{m(void 0),S(void 0),u(void 0),f({isTransitioning:!1})})}),lc(()=>S(z));return}g?(p&&p.resolve(),g.skipTransition(),b({state:M,currentLocation:W.currentLocation,nextLocation:W.nextLocation})):(u(M),f({isTransitioning:!0,flushSync:!1,currentLocation:W.currentLocation,nextLocation:W.nextLocation}))},[n.window,g,p,w,R]);E.useLayoutEffect(()=>n.subscribe(O),[n,O]),E.useEffect(()=>{c.isTransitioning&&!c.flushSync&&m(new u4)},[c]),E.useEffect(()=>{if(p&&l&&n.window){let M=l,F=p.promise,B=n.window.document.startViewTransition(async()=>{R(()=>s(M)),await F});B.finished.finally(()=>{m(void 0),S(void 0),u(void 0),f({isTransitioning:!1})}),S(B)}},[R,l,p,n.window]),E.useEffect(()=>{p&&l&&o.location.key===l.location.key&&p.resolve()},[p,g,o.location,l]),E.useEffect(()=>{!c.isTransitioning&&x&&(u(x.state),f({isTransitioning:!0,flushSync:!1,currentLocation:x.currentLocation,nextLocation:x.nextLocation}),b(void 0))},[c.isTransitioning,x]),E.useEffect(()=>{},[]);let A=E.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:M=>n.navigate(M),push:(M,F,B)=>n.navigate(M,{state:F,preventScrollReset:B==null?void 0:B.preventScrollReset}),replace:(M,F,B)=>n.navigate(M,{replace:!0,state:F,preventScrollReset:B==null?void 0:B.preventScrollReset})}),[n]),$=n.basename||"/",T=E.useMemo(()=>({router:n,navigator:A,static:!1,basename:$}),[n,A,$]),_=E.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return E.createElement(E.Fragment,null,E.createElement(oc.Provider,{value:T},E.createElement(Qw.Provider,{value:o},E.createElement(l4.Provider,{value:w.current},E.createElement(a4.Provider,{value:c},E.createElement(HF,{basename:$,location:o.location,navigationType:o.historyAction,navigator:A,future:_},o.initialized||n.future.v7_partialHydration?E.createElement(f4,{routes:n.routes,future:n.future,state:o}):t))))),null)}const f4=E.memo(p4);function p4(e){let{routes:t,future:n,state:r}=e;return AF(t,void 0,r,n)}const h4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",m4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_d=E.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:l,state:u,target:c,to:f,preventScrollReset:p,unstable_viewTransition:m}=t,g=Zw(t,t4),{basename:S}=E.useContext(ci),x,b=!1;if(typeof f=="string"&&m4.test(f)&&(x=f,h4))try{let O=new URL(window.location.href),A=f.startsWith("//")?new URL(O.protocol+f):new URL(f),$=Li(A.pathname,S);A.origin===O.origin&&$!=null?f=$+A.search+A.hash:b=!0}catch{}let w=kF(f,{relative:o}),P=v4(f,{replace:l,state:u,target:c,preventScrollReset:p,relative:o,unstable_viewTransition:m});function R(O){r&&r(O),O.defaultPrevented||P(O)}return E.createElement("a",Ns({},g,{href:x||w,onClick:b||s?r:R,ref:n,target:c}))}),g4=E.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:o,replace:s,state:l,method:u=$d,action:c,onSubmit:f,relative:p,preventScrollReset:m,unstable_viewTransition:g}=e,S=Zw(e,n4),x=S4(),b=C4(c,{relative:p}),w=u.toLowerCase()==="get"?"get":"post",P=R=>{if(f&&f(R),R.defaultPrevented)return;R.preventDefault();let O=R.nativeEvent.submitter,A=(O==null?void 0:O.getAttribute("formmethod"))||u;x(O||R.currentTarget,{fetcherKey:n,method:A,navigate:r,replace:s,state:l,relative:p,preventScrollReset:m,unstable_viewTransition:g})};return E.createElement("form",Ns({ref:t,method:w,action:b,onSubmit:o?f:P},S))});var Om;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Om||(Om={}));var nS;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(nS||(nS={}));function y4(e){let t=E.useContext(oc);return t||Ct(!1),t}function v4(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:l,unstable_viewTransition:u}=t===void 0?{}:t,c=sc(),f=Ms(),p=Em(e,{relative:l});return E.useCallback(m=>{if(YF(m,n)){m.preventDefault();let g=r!==void 0?r:Mi(f)===Mi(p);c(e,{replace:g,state:o,preventScrollReset:s,relative:l,unstable_viewTransition:u})}},[f,c,p,r,o,n,e,s,l,u])}function Zr(e){let t=E.useRef(Pm(e)),n=E.useRef(!1),r=Ms(),o=E.useMemo(()=>XF(r.search,n.current?null:t.current),[r.search]),s=sc(),l=E.useCallback((u,c)=>{const f=Pm(typeof u=="function"?u(o):u);n.current=!0,s("?"+f,c)},[s,o]);return[o,l]}function b4(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let x4=0,w4=()=>"__"+String(++x4)+"__";function S4(){let{router:e}=y4(Om.UseSubmit),{basename:t}=E.useContext(ci),n=BF();return E.useCallback(function(r,o){o===void 0&&(o={}),b4();let{action:s,method:l,encType:u,formData:c,body:f}=e4(r,t);if(o.navigate===!1){let p=o.fetcherKey||w4();e.fetch(p,n,o.action||s,{preventScrollReset:o.preventScrollReset,formData:c,body:f,formMethod:o.method||l,formEncType:o.encType||u,unstable_flushSync:o.unstable_flushSync})}else e.navigate(o.action||s,{preventScrollReset:o.preventScrollReset,formData:c,body:f,formMethod:o.method||l,formEncType:o.encType||u,replace:o.replace,state:o.state,fromRouteId:n,unstable_flushSync:o.unstable_flushSync,unstable_viewTransition:o.unstable_viewTransition})},[e,t,n])}function C4(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=E.useContext(ci),o=E.useContext(zo);o||Ct(!1);let[s]=o.matches.slice(-1),l=Ns({},Em(e||".",{relative:n})),u=Ms();if(e==null){l.search=u.search;let c=new URLSearchParams(l.search);c.has("index")&&c.get("index")===""&&(c.delete("index"),l.search=c.toString()?"?"+c.toString():"")}return(!e||e===".")&&s.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(l.pathname=l.pathname==="/"?r:Bo([r,l.pathname])),Mi(l)}var E4=Object.defineProperty,R4=(e,t,n)=>t in e?E4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,k4=(e,t,n)=>R4(e,typeof t!="symbol"?t+"":t,n),P4={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function $m(e){if(typeof e=="number")return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();n.includes(".")?t=parseFloat(n):t=parseInt(n,10);var r=(e.match(/[^0-9]*$/)||"").toString();return P4[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function Am(e){var t=$m(e);return"".concat(t.value).concat(t.unit)}var T4=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if(typeof window>"u"||!window.document)return r;var o=document.createElement("style");document.head.appendChild(o);var s=o.sheet,l=`
|
|
18
|
+
`+l):o&&n&&r?c="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":s==="defer-action"?c="defer() is not supported in actions":s==="invalid-body"&&(c="Unable to encode submission body")):e===403?(u="Forbidden",c='Route "'+r+'" does not match URL "'+n+'"'):e===404?(u="Not Found",c='No route matches URL "'+n+'"'):e===405&&(u="Method Not Allowed",o&&n&&r?c="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(c='Invalid request method "'+o.toUpperCase()+'"')),new gm(e||500,u,new Error(c),!0)}function Ww(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Is(n))return{result:n,idx:t}}}function Hw(e){let t=typeof e=="string"?Ni(e):e;return Mi(hn({},t,{hash:""}))}function yF(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function vF(e){return typeof e=="object"&&e!=null&&"then"in e}function bF(e){return Vw(e.result)&&nF.has(e.result.status)}function _s(e){return e.type===nn.deferred}function Ir(e){return e.type===nn.error}function Is(e){return(e&&e.type)===nn.redirect}function xF(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Vw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function wF(e){return tF.has(e.toLowerCase())}function wo(e){return ZD.has(e.toLowerCase())}async function Kw(e,t,n,r,o,s){for(let l=0;l<n.length;l++){let u=n[l],c=t[l];if(!c)continue;let f=e.find(m=>m.route.id===c.route.id),p=f!=null&&!_w(f,c)&&(s&&s[c.route.id])!==void 0;if(_s(u)&&(o||p)){let m=r[l];Ct(m,"Expected an AbortSignal for revalidating fetcher deferred result"),await Gw(u,m,o).then(g=>{g&&(n[l]=g||n[l])})}}}async function Gw(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:nn.data,data:e.deferredData.unwrappedData}}catch(o){return{type:nn.error,error:o}}return{type:nn.data,data:e.deferredData.data}}}function wm(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function nc(e,t){let n=typeof t=="string"?Ni(t).search:t.search;if(e[e.length-1].route.index&&wm(n||""))return e[e.length-1];let r=Tw(e);return r[r.length-1]}function qw(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:s,json:l}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(s!=null)return{formMethod:t,formAction:n,formEncType:r,formData:s,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function Sm(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function SF(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function rc(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function CF(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Di(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function EF(e,t){try{let n=e.sessionStorage.getItem($w);if(n){let r=JSON.parse(n);for(let[o,s]of Object.entries(r||{}))s&&Array.isArray(s)&&t.set(o,new Set(s||[]))}}catch{}}function RF(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem($w,JSON.stringify(n))}catch(r){wa(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}function Od(){return Od=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Od.apply(this,arguments)}const oc=E.createContext(null),Qw=E.createContext(null),ci=E.createContext(null),Cm=E.createContext(null),zo=E.createContext({outlet:null,matches:[],isDataRoute:!1}),Yw=E.createContext(null);function kF(e,t){let{relative:n}=t===void 0?{}:t;ic()||Ct(!1);let{basename:r,navigator:o}=E.useContext(ci),{hash:s,pathname:l,search:u}=Em(e,{relative:n}),c=l;return r!=="/"&&(c=l==="/"?r:Bo([r,l])),o.createHref({pathname:c,search:u,hash:s})}function ic(){return E.useContext(Cm)!=null}function Ms(){return ic()||Ct(!1),E.useContext(Cm).location}function Xw(e){E.useContext(ci).static||E.useLayoutEffect(e)}function sc(){let{isDataRoute:e}=E.useContext(zo);return e?UF():PF()}function PF(){ic()||Ct(!1);let e=E.useContext(oc),{basename:t,future:n,navigator:r}=E.useContext(ci),{matches:o}=E.useContext(zo),{pathname:s}=Ms(),l=JSON.stringify(hm(o,n.v7_relativeSplatPath)),u=E.useRef(!1);return Xw(()=>{u.current=!0}),E.useCallback(function(f,p){if(p===void 0&&(p={}),!u.current)return;if(typeof f=="number"){r.go(f);return}let m=mm(f,JSON.parse(l),s,p.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Bo([t,m.pathname])),(p.replace?r.replace:r.push)(m,p.state,p)},[t,r,l,s,e])}const TF=E.createContext(null);function OF(e){let t=E.useContext(zo).outlet;return t&&E.createElement(TF.Provider,{value:e},t)}function $F(){let{matches:e}=E.useContext(zo),t=e[e.length-1];return t?t.params:{}}function Em(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=E.useContext(ci),{matches:o}=E.useContext(zo),{pathname:s}=Ms(),l=JSON.stringify(hm(o,r.v7_relativeSplatPath));return E.useMemo(()=>mm(e,JSON.parse(l),s,n==="path"),[e,l,s,n])}function AF(e,t,n,r){ic()||Ct(!1);let{navigator:o}=E.useContext(ci),{matches:s}=E.useContext(zo),l=s[s.length-1],u=l?l.params:{};l&&l.pathname;let c=l?l.pathnameBase:"/";l&&l.route;let f=Ms(),p;p=f;let m=p.pathname||"/",g=m;if(c!=="/"){let b=c.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(b.length).join("/")}let S=js(e,{pathname:g});return NF(S&&S.map(b=>Object.assign({},b,{params:Object.assign({},u,b.params),pathname:Bo([c,o.encodeLocation?o.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?c:Bo([c,o.encodeLocation?o.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),s,n,r)}function jF(){let e=zF(),t=Td(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:o},n):null,null)}const _F=E.createElement(jF,null);class IF extends E.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?E.createElement(zo.Provider,{value:this.props.routeContext},E.createElement(Yw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function MF(e){let{routeContext:t,match:n,children:r}=e,o=E.useContext(oc);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(zo.Provider,{value:t},r)}function NF(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if((s=n)!=null&&s.errors)e=n.matches;else return null}let l=e,u=(o=n)==null?void 0:o.errors;if(u!=null){let p=l.findIndex(m=>m.route.id&&(u==null?void 0:u[m.route.id])!==void 0);p>=0||Ct(!1),l=l.slice(0,Math.min(l.length,p+1))}let c=!1,f=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p<l.length;p++){let m=l[p];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(f=p),m.route.id){let{loaderData:g,errors:S}=n,x=m.route.loader&&g[m.route.id]===void 0&&(!S||S[m.route.id]===void 0);if(m.route.lazy||x){c=!0,f>=0?l=l.slice(0,f+1):l=[l[0]];break}}}return l.reduceRight((p,m,g)=>{let S,x=!1,b=null,w=null;n&&(S=u&&m.route.id?u[m.route.id]:void 0,b=m.route.errorElement||_F,c&&(f<0&&g===0?(x=!0,w=null):f===g&&(x=!0,w=m.route.hydrateFallbackElement||null)));let P=t.concat(l.slice(0,g+1)),R=()=>{let O;return S?O=b:x?O=w:m.route.Component?O=E.createElement(m.route.Component,null):m.route.element?O=m.route.element:O=p,E.createElement(MF,{match:m,routeContext:{outlet:p,matches:P,isDataRoute:n!=null},children:O})};return n&&(m.route.ErrorBoundary||m.route.errorElement||g===0)?E.createElement(IF,{location:n.location,revalidation:n.revalidation,component:b,error:S,children:R(),routeContext:{outlet:null,matches:P,isDataRoute:!0}}):R()},null)}var Jw=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Jw||{}),ac=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ac||{});function LF(e){let t=E.useContext(oc);return t||Ct(!1),t}function DF(e){let t=E.useContext(Qw);return t||Ct(!1),t}function FF(e){let t=E.useContext(zo);return t||Ct(!1),t}function Rm(e){let t=FF(),n=t.matches[t.matches.length-1];return n.route.id||Ct(!1),n.route.id}function BF(){return Rm(ac.UseRouteId)}function zF(){var e;let t=E.useContext(Yw),n=DF(ac.UseRouteError),r=Rm(ac.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function UF(){let{router:e}=LF(Jw.UseNavigateStable),t=Rm(ac.UseNavigateStable),n=E.useRef(!1);return Xw(()=>{n.current=!0}),E.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Od({fromRouteId:t},s)))},[e,t])}function WF(e){return OF(e.context)}function HF(e){let{basename:t="/",children:n=null,location:r,navigationType:o=kn.Pop,navigator:s,static:l=!1,future:u}=e;ic()&&Ct(!1);let c=t.replace(/^\/*/,"/"),f=E.useMemo(()=>({basename:c,navigator:s,static:l,future:Od({v7_relativeSplatPath:!1},u)}),[c,u,s,l]);typeof r=="string"&&(r=Ni(r));let{pathname:p="/",search:m="",hash:g="",state:S=null,key:x="default"}=r,b=E.useMemo(()=>{let w=Li(p,c);return w==null?null:{location:{pathname:w,search:m,hash:g,state:S,key:x},navigationType:o}},[c,p,m,g,S,x,o]);return b==null?null:E.createElement(ci.Provider,{value:f},E.createElement(Cm.Provider,{children:n,value:b}))}new Promise(()=>{});function VF(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:E.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:E.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:E.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function Ns(){return Ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ns.apply(this,arguments)}function Zw(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const $d="get",km="application/x-www-form-urlencoded";function Ad(e){return e!=null&&typeof e.tagName=="string"}function KF(e){return Ad(e)&&e.tagName.toLowerCase()==="button"}function GF(e){return Ad(e)&&e.tagName.toLowerCase()==="form"}function qF(e){return Ad(e)&&e.tagName.toLowerCase()==="input"}function QF(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function YF(e,t){return e.button===0&&(!t||t==="_self")&&!QF(e)}function Pm(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function XF(e,t){let n=Pm(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(s=>{n.append(o,s)})}),n}let jd=null;function JF(){if(jd===null)try{new FormData(document.createElement("form"),0),jd=!1}catch{jd=!0}return jd}const ZF=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Tm(e){return e!=null&&!ZF.has(e)?null:e}function e4(e,t){let n,r,o,s,l;if(GF(e)){let u=e.getAttribute("action");r=u?Li(u,t):null,n=e.getAttribute("method")||$d,o=Tm(e.getAttribute("enctype"))||km,s=new FormData(e)}else if(KF(e)||qF(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||u.getAttribute("action");if(r=c?Li(c,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||$d,o=Tm(e.getAttribute("formenctype"))||Tm(u.getAttribute("enctype"))||km,s=new FormData(u,e),!JF()){let{name:f,type:p,value:m}=e;if(p==="image"){let g=f?f+".":"";s.append(g+"x","0"),s.append(g+"y","0")}else f&&s.append(f,m)}}else{if(Ad(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=$d,r=null,o=km,l=e}return s&&o==="text/plain"&&(l=s,s=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:s,body:l}}const t4=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],n4=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"],r4="6";try{window.__reactRouterVersion=r4}catch{}function o4(e,t){return sF({basename:t==null?void 0:t.basename,future:Ns({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:$D({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||i4(),routes:e,mapRouteProperties:VF,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnMiss:t==null?void 0:t.unstable_patchRoutesOnMiss,window:t==null?void 0:t.window}).initialize()}function i4(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Ns({},t,{errors:s4(t.errors)})),t}function s4(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new gm(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let s=window[o.__subType];if(typeof s=="function")try{let l=new s(o.message);l.stack="",n[r]=l}catch{}}if(n[r]==null){let s=new Error(o.message);s.stack="",n[r]=s}}else n[r]=o;return n}const a4=E.createContext({isTransitioning:!1}),l4=E.createContext(new Map),eS=Fu["startTransition"],tS=BO["flushSync"];function c4(e){eS?eS(e):e()}function lc(e){tS?tS(e):e()}class u4{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function d4(e){let{fallbackElement:t,router:n,future:r}=e,[o,s]=E.useState(n.state),[l,u]=E.useState(),[c,f]=E.useState({isTransitioning:!1}),[p,m]=E.useState(),[g,S]=E.useState(),[x,b]=E.useState(),w=E.useRef(new Map),{v7_startTransition:P}=r||{},R=E.useCallback(M=>{P?c4(M):M()},[P]),O=E.useCallback((M,F)=>{let{deletedFetchers:B,unstable_flushSync:G,unstable_viewTransitionOpts:W}=F;B.forEach(z=>w.current.delete(z)),M.fetchers.forEach((z,te)=>{z.data!==void 0&&w.current.set(te,z.data)});let H=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!W||H){G?lc(()=>s(M)):R(()=>s(M));return}if(G){lc(()=>{g&&(p&&p.resolve(),g.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:W.currentLocation,nextLocation:W.nextLocation})});let z=n.window.document.startViewTransition(()=>{lc(()=>s(M))});z.finished.finally(()=>{lc(()=>{m(void 0),S(void 0),u(void 0),f({isTransitioning:!1})})}),lc(()=>S(z));return}g?(p&&p.resolve(),g.skipTransition(),b({state:M,currentLocation:W.currentLocation,nextLocation:W.nextLocation})):(u(M),f({isTransitioning:!0,flushSync:!1,currentLocation:W.currentLocation,nextLocation:W.nextLocation}))},[n.window,g,p,w,R]);E.useLayoutEffect(()=>n.subscribe(O),[n,O]),E.useEffect(()=>{c.isTransitioning&&!c.flushSync&&m(new u4)},[c]),E.useEffect(()=>{if(p&&l&&n.window){let M=l,F=p.promise,B=n.window.document.startViewTransition(async()=>{R(()=>s(M)),await F});B.finished.finally(()=>{m(void 0),S(void 0),u(void 0),f({isTransitioning:!1})}),S(B)}},[R,l,p,n.window]),E.useEffect(()=>{p&&l&&o.location.key===l.location.key&&p.resolve()},[p,g,o.location,l]),E.useEffect(()=>{!c.isTransitioning&&x&&(u(x.state),f({isTransitioning:!0,flushSync:!1,currentLocation:x.currentLocation,nextLocation:x.nextLocation}),b(void 0))},[c.isTransitioning,x]),E.useEffect(()=>{},[]);let A=E.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:M=>n.navigate(M),push:(M,F,B)=>n.navigate(M,{state:F,preventScrollReset:B==null?void 0:B.preventScrollReset}),replace:(M,F,B)=>n.navigate(M,{replace:!0,state:F,preventScrollReset:B==null?void 0:B.preventScrollReset})}),[n]),$=n.basename||"/",T=E.useMemo(()=>({router:n,navigator:A,static:!1,basename:$}),[n,A,$]),_=E.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return E.createElement(E.Fragment,null,E.createElement(oc.Provider,{value:T},E.createElement(Qw.Provider,{value:o},E.createElement(l4.Provider,{value:w.current},E.createElement(a4.Provider,{value:c},E.createElement(HF,{basename:$,location:o.location,navigationType:o.historyAction,navigator:A,future:_},o.initialized||n.future.v7_partialHydration?E.createElement(f4,{routes:n.routes,future:n.future,state:o}):t))))),null)}const f4=E.memo(p4);function p4(e){let{routes:t,future:n,state:r}=e;return AF(t,void 0,r,n)}const h4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",m4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_d=E.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:l,state:u,target:c,to:f,preventScrollReset:p,unstable_viewTransition:m}=t,g=Zw(t,t4),{basename:S}=E.useContext(ci),x,b=!1;if(typeof f=="string"&&m4.test(f)&&(x=f,h4))try{let O=new URL(window.location.href),A=f.startsWith("//")?new URL(O.protocol+f):new URL(f),$=Li(A.pathname,S);A.origin===O.origin&&$!=null?f=$+A.search+A.hash:b=!0}catch{}let w=kF(f,{relative:o}),P=v4(f,{replace:l,state:u,target:c,preventScrollReset:p,relative:o,unstable_viewTransition:m});function R(O){r&&r(O),O.defaultPrevented||P(O)}return E.createElement("a",Ns({},g,{href:x||w,onClick:b||s?r:R,ref:n,target:c}))}),g4=E.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:o,replace:s,state:l,method:u=$d,action:c,onSubmit:f,relative:p,preventScrollReset:m,unstable_viewTransition:g}=e,S=Zw(e,n4),x=S4(),b=C4(c,{relative:p}),w=u.toLowerCase()==="get"?"get":"post",P=R=>{if(f&&f(R),R.defaultPrevented)return;R.preventDefault();let O=R.nativeEvent.submitter,A=(O==null?void 0:O.getAttribute("formmethod"))||u;x(O||R.currentTarget,{fetcherKey:n,method:A,navigate:r,replace:s,state:l,relative:p,preventScrollReset:m,unstable_viewTransition:g})};return E.createElement("form",Ns({ref:t,method:w,action:b,onSubmit:o?f:P},S))});var Om;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Om||(Om={}));var nS;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(nS||(nS={}));function y4(e){let t=E.useContext(oc);return t||Ct(!1),t}function v4(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:l,unstable_viewTransition:u}=t===void 0?{}:t,c=sc(),f=Ms(),p=Em(e,{relative:l});return E.useCallback(m=>{if(YF(m,n)){m.preventDefault();let g=r!==void 0?r:Mi(f)===Mi(p);c(e,{replace:g,state:o,preventScrollReset:s,relative:l,unstable_viewTransition:u})}},[f,c,p,r,o,n,e,s,l,u])}function eo(e){let t=E.useRef(Pm(e)),n=E.useRef(!1),r=Ms(),o=E.useMemo(()=>XF(r.search,n.current?null:t.current),[r.search]),s=sc(),l=E.useCallback((u,c)=>{const f=Pm(typeof u=="function"?u(o):u);n.current=!0,s("?"+f,c)},[s,o]);return[o,l]}function b4(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let x4=0,w4=()=>"__"+String(++x4)+"__";function S4(){let{router:e}=y4(Om.UseSubmit),{basename:t}=E.useContext(ci),n=BF();return E.useCallback(function(r,o){o===void 0&&(o={}),b4();let{action:s,method:l,encType:u,formData:c,body:f}=e4(r,t);if(o.navigate===!1){let p=o.fetcherKey||w4();e.fetch(p,n,o.action||s,{preventScrollReset:o.preventScrollReset,formData:c,body:f,formMethod:o.method||l,formEncType:o.encType||u,unstable_flushSync:o.unstable_flushSync})}else e.navigate(o.action||s,{preventScrollReset:o.preventScrollReset,formData:c,body:f,formMethod:o.method||l,formEncType:o.encType||u,replace:o.replace,state:o.state,fromRouteId:n,unstable_flushSync:o.unstable_flushSync,unstable_viewTransition:o.unstable_viewTransition})},[e,t,n])}function C4(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=E.useContext(ci),o=E.useContext(zo);o||Ct(!1);let[s]=o.matches.slice(-1),l=Ns({},Em(e||".",{relative:n})),u=Ms();if(e==null){l.search=u.search;let c=new URLSearchParams(l.search);c.has("index")&&c.get("index")===""&&(c.delete("index"),l.search=c.toString()?"?"+c.toString():"")}return(!e||e===".")&&s.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(l.pathname=l.pathname==="/"?r:Bo([r,l.pathname])),Mi(l)}var E4=Object.defineProperty,R4=(e,t,n)=>t in e?E4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,k4=(e,t,n)=>R4(e,typeof t!="symbol"?t+"":t,n),P4={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function $m(e){if(typeof e=="number")return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();n.includes(".")?t=parseFloat(n):t=parseInt(n,10);var r=(e.match(/[^0-9]*$/)||"").toString();return P4[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function Am(e){var t=$m(e);return"".concat(t.value).concat(t.unit)}var T4=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if(typeof window>"u"||!window.document)return r;var o=document.createElement("style");document.head.appendChild(o);var s=o.sheet,l=`
|
|
19
19
|
@keyframes `.concat(r,` {
|
|
20
20
|
`).concat(t,`
|
|
21
21
|
}
|
|
22
|
-
`);return s&&s.insertRule(l,0),r},Id=function(){return Id=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Id.apply(this,arguments)},O4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},$4=T4("GridLoader","0% {transform: scale(1)} 50% {transform: scale(0.5); opacity: 0.7} 100% {transform: scale(1); opacity: 1}","grid"),ui=function(e){return Math.random()*e};function A4(e){var t=e.loading,n=t===void 0?!0:t,r=e.color,o=r===void 0?"#000000":r,s=e.speedMultiplier,l=s===void 0?1:s,u=e.cssOverride,c=u===void 0?{}:u,f=e.size,p=f===void 0?15:f,m=e.margin,g=m===void 0?2:m,S=O4(e,["loading","color","speedMultiplier","cssOverride","size","margin"]),x=$m(p),b=$m(g),w=parseFloat(x.value.toString())*3+parseFloat(b.value.toString())*6,P=Id({width:"".concat(w).concat(x.unit),fontSize:0,display:"inline-block"},c),R=function(O){return{display:"inline-block",backgroundColor:o,width:"".concat(Am(p)),height:"".concat(Am(p)),margin:Am(g),borderRadius:"100%",animationFillMode:"both",animation:"".concat($4," ").concat((O/100+.6)/l,"s ").concat(O/100-.2,"s infinite ease")}};return n?E.createElement("span",Id({style:P},S,{ref:function(O){O&&O.style.setProperty("width","".concat(w).concat(x.unit),"important")}}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))})):null}const j4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAALMUlEQVR4nOyde1BTZ97Hv5AEUbnESwGRCkGCAi9yUZG2oFYqtn3bnV3W1hZ72Vqdam92esGu2m23VWdtd9Z29tJ1t7P+0+ls2213y/0WuVuxaKlUyjUBCgQCYriThISdcwosYoCc5DznnBA+M46B5Dy/Z/LhOc/9OeKxsTHMRElra3iWUrnnYrs6oUGrDQXgMeOHecQJQObuXyJs5Upe81HZqcETmZnQ6nTT3+oLkkqrY31XKe4LDPw03s+vaqY0nMwJyVGptp4uv3SyQauNI5Bv1kkOCcHvtm3lNQ8FLS04mJuH4dHROT8bJJWWHtkSc2yXTFY8/b2bhBiMRqfXCove/rK+/igAZ/azzT5uEglK9yZjuasrb3nIUanwbF4+DCYTk8tMSXL5qfe2b/uNRCSalCCeeEHJeCY376P85uZ9bGeYJI+HhfIq44vaOrxaWAjjLLf+GXD+sr7+eJ9e73s2cef+CSmTpYAqGfYmw1Ukwv4NG3iLf66qCi8XFFgjYxLqO6e++4mfaSE5KlX8+G3Krng+Ohq3LVnCS+z3KyrwZtkFWK/if1DfPeUAE0JOl186ZS91xgS3u7vjYGQEL7F/W3YBf6i4zGaSzuMOIKaatvbSmppKSsxmuIhEnMY0mkw4UlSMz2prWU+bckC5cM5sVO5hPXXChK9ciQflck5j6o1GHC0uISJjAsqFuFytTiAWgQBUJ/DtuLs4vb8OGQx4Pj8f+c0tRONQLsQNWm0I0Sgss0sWgI0+PpzF69Xp8KvMLFzu7CQei3JB9UM8iUdikeeiojiL1TM8jEfT0/HD9R6uQnraVcsqMSAAEV5enMTq0+nweEYmlzJoxJxGswGqE/jGHbGcxGrq7cXT2dmov6HlJN5U7EbIgQ0b4O9J/u56tasLT2RkomdkhHgsc9iFkOWurjgYFUk8TqVGg+T0dAzoDcRjzYRd1CGHN0bD3cWFaIzvu7vpksGnDNhDCQn09MRjYWFEY+Q1NeFFxXkMGviVAXsQ8tKmjZA4kyvIH1+rxrGSElYGCdlA0EKCpFI8sHYtsfQ/vnYNR0tKiaVvDYKuQ17fEgMxodLxSXU1jgtMBoRcQrb6+SFRJmM9XROA98rL8edvK1lPmw0EKUTk5IS37rqT9XRHTSa8pDiP1MZG1tNmC0Hesh5Zvx5By5axmiZVMl4uKBC0DAixhHi4uOCVmM2spjmg1+Pw+fPIa2pmNV0SCE7I3tAQrFy8mLX0boyM4Nm8PJS1tbOWJkkEJcRNIsGhSPaGSDSDQ9iTloZGLfeDhNYiKCGUDCmLa6yWSMT45IEHJn82jZmgZ7aYbVb++UMNPqxkt7UmGCH+Hh44EMHuGis3Fxf6Hwn+/t1V1mVASELeuCMWrmLBZGdWzlRU4Ay7y4AmEcQ3sNnHh0gnkAQnv/4aZ7+7Six9QQg5FsvNTKAtUDXPuxfLicqAEITcKwtAtI8339mYFaqHn1JYhH/V1RGPxasQJ6r3vGkTn1mYE53RSPdjuOpU8irkZ0FBWL9iBZ9ZmJUhgwH7s3NQ2tbGWUzexrJcnJ3xGstDJGxiMJnoksGlDPBZQsYAPJqWTjd1F4lE9DKfRROvxSIsEt38+v8DAxHpzc2arBsjI/T2tK/buR9u4U0I9Rf4Y3+/RZ+lmsUpHJUm9cAAktMzeBtu4b2VNRcrXF3xl507IeFg60Fbfz8eTk2z+A+FBIKcD5nK6W3b4L2U/C6prqEhPJaRwasMCL2EHN64EYmyAOJxanp68HRWNu8yIGQhD64NxCubyfdRvlGr8WRWFu8L5CYQpJB1y5fhve3bice51K6mT14YsmCzP1dwXoe4zLGsx00iwd8SE7FEIiGaj8pODZ7KzhaUDPAhZPe6dVg6y5f97vZtkEmlRPOQpVThkbQ09Ov1RONYA+dCqNvRz+VBZt87FBlBdKUixlcrHszNFVzJmIBzIX7u7nSvezpxq1cjJSaGaOyPr1XTS0eFso7XHJxX6gGenvR07WKxCMOjRvp3q93c8Kd7EiAiuKj6s5oaHC8V3tLR6XBaQhaLxZB5etIb/qO8fpoDoSrxc/fdi+UsLv2ZzpmKCrxaWASTDWeScAWnQqK8vSYXT69fvpz+/0R8HLEheKPJhFcLConNf5OAUyF3+a6efO3jthQPrQtGUnAwsXjHS0qJnrxAAk7rkF1ThkHi/fzwVHg4kTgjo6NIKSrCf+obiKRPEs6EhK1YgeDx2xT9M6HzEQf0euzLysZFtZpI+qThTMjD69cRj9Gn09EjtpWaLuKxSMFJHUL1zKkeOkmGDAa6ZNizDHBVQh4PDSW6rbljcBD7s7NxtaubWAyuIC5kjbs7DhHc9N/S14eHU1PRPjBILAaXEL9lHY2NxTJCp4ZSJeOx9Ix5IwOkS8gv5EG4f+2t41ZsQJWM5LR0tAhglo9NiAlJ8F+DdwlNMl3p6MSBnBx0DQ8TSZ9PiAhJDPDHh4mJRE5guNDWRp/wNmI0sp62EGD9G0sOCflp2Q4BGd+oO/B0ds68lQE2S4j3kiV4Jz4O9xLa51HS2ooD2TmCnVhiC5uFUP2LQ5ER2BceTmwe/LOaGvy6uITpYfd2iU1C7vT1xQcJO+C9dCl7OZrGuaoq+khvR8FqIbuDg+kFCaQOh8H4lOtbDiQD1gpJWLMGv99xt9kWgdFkop8WYOsx4H+trMSpi+U2pWGPMP7z9vfwwJkdO8xeeLmjkz5a1RYooW+WljmkDDAV4gTg/R13Q+q66Jb3MpVKPPTVV4j08rKpdKQUFeHc999bfb29w+iWdX9goNljvq91d+PFfAW9iODREOtOLqdKxuvFxfi8lvzGSiHDSMiBGZ5mc6y4hD6y4h7/Nbjdw51xJqjm7GGFAumNSsbXzjcsFkLVHea2L/+7rh5XNBr6dvZCdDTjDPTqdPRKQns5rYc0FgvZNMMTCf545Qr9/5NhYYjyZrbffNBgoM/K/VajYXTdfMZiIb5ut3b+Kjs1aNBq6RPg3opn9pAe7cgInszMWpAxDYuF6EZvHdAra2/Dibg4PPF/zA46burtpee/G+zoHCuusFiIuS9vb0io2SbwbCi1Wvo2Nd8mltjC4n5IWVsbtCM3P+OVqQyVthd7UtMWZMyCxUJ0RiPOfmf9gV0116/jodRUdA4NWZ2GI8Cop25tP6Fcrcbur1KhWZAxJ4w6hvF+fowD5KhUOKw4P+8nltiCkZCI225jlHhBSwuey1fQzwBcwDIYCZFJLX/kUKZSiRfyFQ4xy8cmjIR4Wfgg4C/q6uiNMrY8RdlRYSRkkWjuj2c2KvFKQaFdbB8TIoxaWXPVBbmqJjyvyF+QYQOMhMzWbC1rbaNPYBs1LciwBUZCanuum/395Y4O+kGMbB7j7agwEmJuzqK1v58+KHKhn8EOjIQU/thC71SaYECvx1NZWbjO01Mx5yOUkD5LPzxoGMXn49uMqZsT1c+o7blBMn+ORq9zkFRazeSKDy5foSeXTly4AEUL2Qe+OxpBUukPzltWrVIwuah7eBh70zPw0dUqcjlzUCgXzvevDfyU6YVV3fa/uVKIUC6c4/38qoKkUuEfkzPPoRxQLuhW1pEtMUfH6+kF+ME07uCnZu8umawkSS4/xXeuHJUkufwk5YB67TQ2Pu5kMBqdnsnN+yi/uXkf3xl0JO7x9//H2cSd+yUiES1ismNI/YJ6I0kuP7Fw++IEU5Jc/s5UGZhaQqaSo1JtPV1+6WSDVsts9dsCFkFV4Ee2xBzbJZMVT3/PrJAJSlpbw7OUyj0X29UJDVptKAAP0pmdp/RRHfBY31WK+wIDP6VaUzN98L8BAAD//6zjBbZXWKjWAAAAAElFTkSuQmCC",_4=()=>(ae.useEffect(()=>(document.body.style.margin="0",()=>{document.body.style.margin=""}),[]),y.jsxs("div",{style:{height:"100vh",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",gap:"1rem"},className:"test",children:[y.jsx("img",{src:j4,alt:"Luminix"}),y.jsx(A4,{color:"#1d9798"})]})),jm={booted:!1,router:null},I4=ae.createContext(jm),rS=ae.createContext({form:null});function Fi(){const{form:e}=ae.useContext(rS);return e}function Ls(e="default"){const[t,n]=ae.useState({});return ae.useEffect(()=>{const r=um().bag(e).on("change",({source:o})=>{n(Object.entries(o.all()).reduce((s,[l,u])=>(s[_e.camel(l+"Error")]=u,s),{}))});return()=>{r(),um().clear(e)}},[e]),t}const M4=e=>{const{label:t,options:n,className:r,...o}=e,{selectProps:s,errorBag:l}=Fi(),{[`${_e.camel(e.name)}Error`]:u}=Ls(l);return y.jsxs(y.Fragment,{children:[y.jsxs("p",{children:[t&&y.jsxs(y.Fragment,{children:[y.jsx("label",{className:"luminix-form-label luminix-form-select-label".trim(),htmlFor:e.id,children:t}),y.jsx("br",{})]}),y.jsx("select",{className:`luminix-form-input luminix-form-select-input ${r??""}`.trim(),...s(e.name),...o,children:n.map(c=>y.jsx("option",{value:c.value,children:c.label},c.value))})]}),u&&y.jsx("p",{children:u})]})},N4=e=>{const{label:t,options:n,className:r,id:o,...s}=e,{radioProps:l,errorBag:u}=Fi(),{[`${_e.camel(e.name)}Error`]:c}=Ls(u);return y.jsxs(y.Fragment,{children:[t&&y.jsx(y.Fragment,{children:y.jsx("label",{className:"luminix-form-label luminix-form-radio-label",children:t})}),n.map(({value:f,label:p})=>y.jsxs("p",{children:[y.jsx("input",{id:o?`${o}::${f}`:void 0,className:`luminix-form-input luminix-form-radio-input ${r??""}`.trim(),...l(e.name,f),...s}),y.jsx("label",{htmlFor:o?`${o}::${f}`:void 0,children:p})]},f)),c&&y.jsx("p",{children:c})]})},L4=e=>{const{label:t,className:n,...r}=e,{checkboxProps:o,errorBag:s}=Fi(),{[`${_e.camel(e.name)}Error`]:l}=Ls(s);return y.jsxs(y.Fragment,{children:[y.jsxs("p",{children:[y.jsx("input",{className:`luminix-form-input luminix-form-checkbox-input ${n??""}`.trim(),...o(e.name),...r}),t&&y.jsx("label",{htmlFor:e.id,className:"luminix-form-label luminix-form-checkbox-label",children:t})]}),l&&y.jsx("p",{children:l})]})},D4=e=>{const{label:t,type:n,sanitize:r,className:o,...s}=e,{textareaProps:l,errorBag:u}=Fi(),{[`${_e.camel(e.name)}Error`]:c}=Ls(u);return y.jsxs(y.Fragment,{children:[y.jsxs("p",{children:[t&&y.jsxs(y.Fragment,{children:[y.jsx("label",{className:"luminix-form-label luminix-form-textarea-label".trim(),htmlFor:e.id,children:t}),y.jsx("br",{})]}),y.jsx("textarea",{className:`luminix-form-input luminix-form-textarea-input ${o??""}`.trim(),...l(e.name,r),...s})]}),c&&y.jsx("p",{className:"luminix-form-error",children:c})]})},F4=e=>{const{label:t,className:n,...r}=e,{datetimeLocalProps:o,errorBag:s}=Fi(),{[`${_e.camel(e.name)}Error`]:l}=Ls(s);return y.jsxs(y.Fragment,{children:[y.jsxs("p",{children:[t&&y.jsxs(y.Fragment,{children:[y.jsx("label",{className:"luminix-form-label luminix-form-datetime-local-label".trim(),htmlFor:e.id,children:t}),y.jsx("br",{})]}),y.jsx("input",{className:`luminix-form-input luminix-form-datetime-local-input ${n??""}`.trim(),...o(e.name),...r,type:"datetime-local"})]}),l&&y.jsx("p",{className:"luminix-form-error",children:l})]})},B4=e=>{const{label:t,sanitize:n,className:r,...o}=e,{inputProps:s,errorBag:l}=Fi(),{[`${_e.camel(e.name)}Error`]:u}=Ls(l);return y.jsxs(y.Fragment,{children:[y.jsxs("p",{children:[t&&y.jsxs(y.Fragment,{children:[y.jsx("label",{className:`luminix-form-label luminix-form-${e.type}-label`.trim(),htmlFor:e.id,children:t}),y.jsx("br",{})]}),y.jsx("input",{className:`luminix-form-input luminix-form-${e.type}-input ${r??""}`.trim(),...s(e.name,n),...o})]}),u&&y.jsx("p",{className:"luminix-form-error",children:u})]})};class z4{getFormInputComponent(t){return this.replaceFormInputComponent(this.switchInputType(t),t)}getDefaultInputsForModel(t,n=[]){const r=t.getType(),o=tr(kd.schema(r).attributes),s=t.fillable.flatMap(l=>this.getDefaultInputProps(this.makeFormAttributesFor(l,{attributes:o,confirmed:n,item:t}),{attributes:o,confirmed:n,item:t}));return this[`selectDefaultInputsFor${_e.studly(r)}`](s,t)}switchInputType(t){return t==="select"?M4:t==="radio"?N4:t==="checkbox"?L4:t==="textarea"?D4:t==="datetime-local"?F4:B4}makeFormAttributesFor(t,{attributes:n,item:r,confirmed:o}){const s=(l=>{var u;const c=n.where("name",l).first(),f=`luminix-form-${r.getType()}-${r.getKey()||"new"}-${l}`;if(!c)return null;const p=this.mapAttributeCastToInputTypes({date:"date",datetime:"datetime-local",timestamp:"datetime-local",hashed:"password",int:"number",float:"number",boolean:"checkbox"},r,c);if(c.cast&&c.cast in p)return{name:l,type:p[c.cast],label:_e.human(l),id:f};const m=this.mapAttributeTypeToInputTypes({"tinyint(1)":"checkbox",int:"number",float:"number",timestamp:"datetime-local",text:"textarea",tinytext:"textarea",mediumtext:"textarea",longtext:"textarea",date:"date"},r,c);if(c.type&&c.type in m)return{name:l,type:m[c.type],label:_e.human(l),id:f};if((u=c.type)!=null&&u.startsWith("enum(")){const g=c.type.match(/enum\((.*)\)/);if(g)return{name:l,type:"select",label:_e.human(l),id:f,options:[{label:"-- Select a value --",value:""},...g[1].split(",").map(S=>{const x=S.replace(/['"]+/g,"");return{label:_e.human(x.trim()),value:x.trim()}})]}}return{name:l,type:"text",label:_e.human(l),id:f}})(t);return o.includes(t)&&s?[s,{...s,name:`${t}_confirmation`,label:`Confirm ${s.label}`,id:`luminix-form-${r.getType()}-${r.getKey()||"new"}-${t}-confirmation`}]:s}}const U4=Yl(z4);var oS,iS;class W4 extends(iS=Ed,oS=Symbol.toStringTag,iS){constructor(){super(...arguments),k4(this,oS,"ReactServiceProvider")}register(){this.app.singleton("forms",()=>new U4)}boot(){this.registerUrlParamReplacementForReactRouter()}registerUrlParamReplacementForReactRouter(){fm.reducer("replaceRouteParams",t=>{const n=t.replace(/^\/+|\/+$/g,""),r=/{([^}]+)}/g;return`/${n.replace(r,":$1")}`})}}const H4=({routes:e,config:t={},providers:n=[],onInit:r,onBooting:o,onBooted:s,onFlushing:l,onFlushed:u,onReady:c,fallbackElement:f=y.jsx(_4,{}),...p})=>{const[m,g]=ae.useState(jm);return ae.useEffect(()=>{const S=xo.withProviders([W4,...n]);return t&&S.withConfiguration(t),r&&S.on("init",r),o&&S.on("booting",o),s&&S.on("booted",s),c&&S.on("ready",c),l&&S.on("flushing",l),u&&S.on("flushed",u),S.on("ready",()=>{const x=fm.domRouterOptions({});g({booted:!0,router:o4(e(S),x)})}),S.create(),()=>{S.flush(),g(jm)}},[t,s,o,u,l,r,c,n,e]),y.jsx(I4.Provider,{value:m,children:m.router?y.jsx(d4,{router:m.router,fallbackElement:f,...p}):f})};function sS(e,t){return t[e]()}function V4(e,t={}){const{replaceLinksWith:n,method:r="get",page:o=1,id:s}=t,[l,u]=ae.useState({loading:!0,error:null}),c=ae.useCallback(()=>{if(u(({meta:p,links:m})=>({loading:!0,error:null,meta:p,links:m})),!e)return;const f=sS(r,{get:()=>[o,n],all:()=>[],first:()=>[],find:()=>[s]});if(!f){dm().error(`useQuery: method '${r}' is not supported`);return}e[r](...f).then(p=>{const m=sS(r,{get:()=>p.data,all:()=>p,first:()=>p?tr([p]):null,find:()=>p?tr([p]):null});u({loading:!1,error:null,data:m??void 0,...r==="get"?p:void 0})}).catch(p=>{u({loading:!1,error:p}),dm().error(p)})},[e,o,n,r,s]);return ae.useEffect(c,[c]),{...l,refresh:c}}function K4(e){const[t,n]=Zr(),[r,o]=ae.useState(null),s=Ms(),l=t.has("page")?Number(t.get("page")):1;ae.useEffect(()=>{o(e().include(t))},[t,e]);const u=ae.useMemo(()=>`${s.pathname}?${t.toString()}`,[s.pathname,t]),c=V4(r,{replaceLinksWith:u,page:l}),{meta:{current_page:f,last_page:p}={}}=c;return ae.useEffect(()=>{f&&p&&f>p&&n(m=>(m.set("page",p.toString()),m),{replace:!0})},[f,p,n]),c}const aS=ae.createContext({refresh:()=>{},loading:!1,error:new Error("Trying to access QueryContext outside of QueryProvider")}),G4=({factory:e,children:t})=>{const n=K4(e);return y.jsx(aS.Provider,{value:n,children:t})};class q4{getFacadeAccessor(){return"forms"}}const Md=Fo(q4,xo);function Q4(e,t){if(V1(e)){const n=Object.entries(e.json("errors")).reduce((r,[o,s])=>(r[o]=s.join(", "),r),{});um().set(n,t)}}function lS(e){return e}const Y4=lm.throttle((...e)=>{dm().debug(...e)},1e3);function X4(e){const{initialValues:t,onSubmit:n,onChange:r,onError:o,onSuccess:s,action:l,transformPayload:u=lS,tap:c=lS,preventDefault:f=!0,errorBag:p="default",method:m,autoSave:g=!1,debounce:S=1e3,debug:x=!1}=e,b=ae.useRef(),[w,P]=ae.useState(t),[R,O]=ae.useState(!1),A=ae.useCallback(lm.debounce($=>{var T;g&&((T=b.current)==null||T.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0})))},S),[S,g]);return ae.useEffect(()=>{A(w)},[A,w]),ae.useMemo(()=>{const $=(W,H)=>{P(z=>{const te=W==="."?H:$h.produce(z,Z=>{qe.set(Z,W,H)});return r&&r(te),x&&Y4("Form data changed",{form:b.current,path:W,value:H,data:te,prev:z}),te})},T=(W,H=z=>z.target.value)=>({name:W,value:qe.get(w,W,"")??"",onChange:z=>{$(W,H(z))}}),_=W=>({name:W,value:(()=>{const H=qe.get(w,W);return H?am.toDateTimeLocal(H):""})(),onChange:H=>{const{value:z}=H.target;$(W,z?new Date(z).toISOString():null)}}),M=W=>({name:W,value:qe.get(w,W,"")??"",onChange:H=>{$(W,H.target.value)}}),F=W=>({name:W,checked:!!qe.get(w,W),onChange:H=>{$(W,H.target.checked)}}),B=(W,H)=>({name:W,value:H,checked:qe.get(w,W)===H,onChange:z=>{$(W,z.target.value)}}),G=async W=>{W.preventDefault();try{O(!0);let H=!0;if(n&&(H=await n(w)),H!==!1&&l){const z=await c(OD.getClient())[m??"get"](l,u(w));z.successful()&&s?s(z):z.failed()&&(Q4(z,p),o&&o(z))}}catch(H){o&&o(H)}finally{O(!1)}};return{data:w,setProp:$,formProps:()=>({onSubmit:f?G:void 0,action:l,method:m==null?void 0:m.toUpperCase(),ref:b}),inputProps:T,textareaProps:T,selectProps:M,checkboxProps:F,radioProps:B,datetimeLocalProps:_,isSubmitting:R,form:b.current,errorBag:p,...Md.expandUseFormProps({},w)}},[w,r,R,n,l,m,x,u,s,p,o,f,c])}function Nd(e){const t=ae.useMemo(()=>Md.getFormInputComponent(e.type),[e.type]),{errorBag:n}=Fi(),{[`${_e.camel(e.name)}Error`]:r}=Ls(n);return y.jsx("div",{className:`luminix-form-control luminix-form-${e.type}-control ${r?"luminix-form-control-error":""}`,children:y.jsx(t,{...e})})}Nd.displayName="Input";function cS(e){const{initialValues:t,onSubmit:n,onChange:r,onError:o,onSuccess:s,action:l,transformPayload:u,preventDefault:c=!0,errorBag:f,method:p,children:m,autoSave:g,debounce:S,debug:x,className:b,...w}=e,P=X4({initialValues:t,onSubmit:n,onChange:r,onError:o,onSuccess:s,action:l,transformPayload:u,preventDefault:c,errorBag:f,method:p,autoSave:g,debounce:S,debug:x}),{data:R,...O}=P;return y.jsx(rS.Provider,{value:{form:P},children:y.jsx("form",{className:`luminix-form ${b||""}`.trim(),...w,...P.formProps(),children:typeof m=="function"?m(R,O):m})})}cS.Input=Nd;const _m=ae.createContext({item:null});function J4(){const{item:e}=ae.useContext(_m);return e}function uS({confirmed:e=[]}){const t=J4();return ae.useMemo(()=>Md.getDefaultInputsForModel(t,e).map(n=>n&&y.jsx(Nd,{...n},n.name)),[t,...e])}function Im({children:e,className:t,...n}){return y.jsx("button",{type:"submit",className:`luminix-form-submit ${t??""}`.trim(),...n,children:e})}Im.displayName="Submit";const Z4=()=>({});function Mm(){const{item:e}=ae.useContext(_m),{setProp:t}=Fi();return ae.useEffect(()=>e.on("save",()=>{t(".",e.toJson())}),[e,t]),null}function Ld({item:e,children:t,onSubmit:n,onSuccess:r,onError:o,getSaveOptions:s=Z4,hideSubmit:l=!1,submitText:u="Submit",confirmed:c=[],...f}){const p=e.getRouteForSave(),m=ae.useMemo(()=>typeof c=="string"?[c]:c,[c]),g=ae.useCallback(async S=>{let x=!0;if(n&&(x=await n(S)),e.fill(S),x!==!1){const{additionalPayload:b,...w}=s(S),P={additionalPayload:{...b,...qe.pick(S,...m.map(R=>`${R}_confirmation`))},...w};e.save(P).then(R=>{r&&R&&r(R)}).catch(o)}return!1},[e,n,r,o,s,m]);return y.jsx(_m.Provider,{value:{item:e},children:y.jsx(cS,{initialValues:e.toJson(),onSubmit:g,action:ww().url(p),method:ww().methods(p)[0],errorBag:e.getErrorBag(e.exists?"update":"store"),...f,children:(S,x)=>t?typeof t=="function"?y.jsxs(y.Fragment,{children:[y.jsx(Mm,{}),t(S,x)]}):y.jsxs(y.Fragment,{children:[y.jsx(Mm,{}),t]}):y.jsxs(y.Fragment,{children:[y.jsx(Mm,{}),y.jsx(uS,{confirmed:m}),!l&&y.jsx(Im,{style:{marginTop:"1rem"},children:u})]})})})}Ld.Input=Nd,Ld.DefaultInputs=uS,Ld.Submit=Im;function Nm(e,t){const[n,r]=ae.useState(t?t(e.collect()):e.collect()),o=ae.useRef(!1);return ae.useEffect(()=>{o.current=!0},[]),ae.useEffect(()=>(o.current?o.current=!1:r(t?t(e.collect()):e.collect()),e.on("change",({items:s})=>{r(()=>t?t(new zn(s)):new zn(s))})),[e,t]),n}const eB=e=>e.pluck("callback");function Lm(e,t,n,...r){const o=Nm(e.getReducer(t),eB);return ae.useMemo(()=>$h.isDraftable(n)?$h.produce(n,s=>o.reduce((l,u)=>u(l,...r),s)):o.reduce((s,l)=>l(s,...r),n),[o,n,...r])}function cc(){return ae.useContext(aS)}function di(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const tB=Object.freeze(Object.defineProperty({__proto__:null,default:di},Symbol.toStringTag,{value:"Module"})),Ea="$$material";function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k.apply(null,arguments)}function ge(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function dS(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var nB=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,rB=dS(function(e){return nB.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),oB=!1;function iB(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function sB(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var aB=function(){function e(n){var r=this;this._insertTag=function(o){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,s),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!oB:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(sB(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=iB(o);try{s.insertRule(r,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),qn="-ms-",Dd="-moz-",Ut="-webkit-",fS="comm",Dm="rule",Fm="decl",lB="@import",pS="@keyframes",cB="@layer",uB=Math.abs,Fd=String.fromCharCode,dB=Object.assign;function fB(e,t){return Un(e,0)^45?(((t<<2^Un(e,0))<<2^Un(e,1))<<2^Un(e,2))<<2^Un(e,3):0}function hS(e){return e.trim()}function pB(e,t){return(e=t.exec(e))?e[0]:e}function Wt(e,t,n){return e.replace(t,n)}function Bm(e,t){return e.indexOf(t)}function Un(e,t){return e.charCodeAt(t)|0}function uc(e,t,n){return e.slice(t,n)}function Uo(e){return e.length}function zm(e){return e.length}function Bd(e,t){return t.push(e),e}function hB(e,t){return e.map(t).join("")}var zd=1,Ra=1,mS=0,vr=0,Pn=0,ka="";function Ud(e,t,n,r,o,s,l){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:zd,column:Ra,length:l,return:""}}function dc(e,t){return dB(Ud("",null,null,"",null,null,0),e,{length:-e.length},t)}function mB(){return Pn}function gB(){return Pn=vr>0?Un(ka,--vr):0,Ra--,Pn===10&&(Ra=1,zd--),Pn}function Mr(){return Pn=vr<mS?Un(ka,vr++):0,Ra++,Pn===10&&(Ra=1,zd++),Pn}function Wo(){return Un(ka,vr)}function Wd(){return vr}function fc(e,t){return uc(ka,e,t)}function pc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function gS(e){return zd=Ra=1,mS=Uo(ka=e),vr=0,[]}function yS(e){return ka="",e}function Hd(e){return hS(fc(vr-1,Um(e===91?e+2:e===40?e+1:e)))}function yB(e){for(;(Pn=Wo())&&Pn<33;)Mr();return pc(e)>2||pc(Pn)>3?"":" "}function vB(e,t){for(;--t&&Mr()&&!(Pn<48||Pn>102||Pn>57&&Pn<65||Pn>70&&Pn<97););return fc(e,Wd()+(t<6&&Wo()==32&&Mr()==32))}function Um(e){for(;Mr();)switch(Pn){case e:return vr;case 34:case 39:e!==34&&e!==39&&Um(Pn);break;case 40:e===41&&Um(e);break;case 92:Mr();break}return vr}function bB(e,t){for(;Mr()&&e+Pn!==57;)if(e+Pn===84&&Wo()===47)break;return"/*"+fc(t,vr-1)+"*"+Fd(e===47?e:Mr())}function xB(e){for(;!pc(Wo());)Mr();return fc(e,vr)}function wB(e){return yS(Vd("",null,null,null,[""],e=gS(e),0,[0],e))}function Vd(e,t,n,r,o,s,l,u,c){for(var f=0,p=0,m=l,g=0,S=0,x=0,b=1,w=1,P=1,R=0,O="",A=o,$=s,T=r,_=O;w;)switch(x=R,R=Mr()){case 40:if(x!=108&&Un(_,m-1)==58){Bm(_+=Wt(Hd(R),"&","&\f"),"&\f")!=-1&&(P=-1);break}case 34:case 39:case 91:_+=Hd(R);break;case 9:case 10:case 13:case 32:_+=yB(x);break;case 92:_+=vB(Wd()-1,7);continue;case 47:switch(Wo()){case 42:case 47:Bd(SB(bB(Mr(),Wd()),t,n),c);break;default:_+="/"}break;case 123*b:u[f++]=Uo(_)*P;case 125*b:case 59:case 0:switch(R){case 0:case 125:w=0;case 59+p:P==-1&&(_=Wt(_,/\f/g,"")),S>0&&Uo(_)-m&&Bd(S>32?bS(_+";",r,n,m-1):bS(Wt(_," ","")+";",r,n,m-2),c);break;case 59:_+=";";default:if(Bd(T=vS(_,t,n,f,p,o,u,O,A=[],$=[],m),s),R===123)if(p===0)Vd(_,t,T,T,A,s,m,u,$);else switch(g===99&&Un(_,3)===110?100:g){case 100:case 108:case 109:case 115:Vd(e,T,T,r&&Bd(vS(e,T,T,0,0,o,u,O,o,A=[],m),$),o,$,m,u,r?A:$);break;default:Vd(_,T,T,T,[""],$,0,u,$)}}f=p=S=0,b=P=1,O=_="",m=l;break;case 58:m=1+Uo(_),S=x;default:if(b<1){if(R==123)--b;else if(R==125&&b++==0&&gB()==125)continue}switch(_+=Fd(R),R*b){case 38:P=p>0?1:(_+="\f",-1);break;case 44:u[f++]=(Uo(_)-1)*P,P=1;break;case 64:Wo()===45&&(_+=Hd(Mr())),g=Wo(),p=m=Uo(O=_+=xB(Wd())),R++;break;case 45:x===45&&Uo(_)==2&&(b=0)}}return s}function vS(e,t,n,r,o,s,l,u,c,f,p){for(var m=o-1,g=o===0?s:[""],S=zm(g),x=0,b=0,w=0;x<r;++x)for(var P=0,R=uc(e,m+1,m=uB(b=l[x])),O=e;P<S;++P)(O=hS(b>0?g[P]+" "+R:Wt(R,/&\f/g,g[P])))&&(c[w++]=O);return Ud(e,t,n,o===0?Dm:u,c,f,p)}function SB(e,t,n){return Ud(e,t,n,fS,Fd(mB()),uc(e,2,-2),0)}function bS(e,t,n,r){return Ud(e,t,n,Fm,uc(e,0,r),uc(e,r+1,-1),r)}function Pa(e,t){for(var n="",r=zm(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function CB(e,t,n,r){switch(e.type){case cB:if(e.children.length)break;case lB:case Fm:return e.return=e.return||e.value;case fS:return"";case pS:return e.return=e.value+"{"+Pa(e.children,r)+"}";case Dm:e.value=e.props.join(",")}return Uo(n=Pa(e.children,r))?e.return=e.value+"{"+n+"}":""}function EB(e){var t=zm(e);return function(n,r,o,s){for(var l="",u=0;u<t;u++)l+=e[u](n,r,o,s)||"";return l}}function RB(e){return function(t){t.root||(t=t.return)&&e(t)}}var kB=function(t,n,r){for(var o=0,s=0;o=s,s=Wo(),o===38&&s===12&&(n[r]=1),!pc(s);)Mr();return fc(t,vr)},PB=function(t,n){var r=-1,o=44;do switch(pc(o)){case 0:o===38&&Wo()===12&&(n[r]=1),t[r]+=kB(vr-1,n,r);break;case 2:t[r]+=Hd(o);break;case 4:if(o===44){t[++r]=Wo()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Fd(o)}while(o=Mr());return t},TB=function(t,n){return yS(PB(gS(t),n))},xS=new WeakMap,OB=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!xS.get(r))&&!o){xS.set(t,!0);for(var s=[],l=TB(n,s),u=r.props,c=0,f=0;c<l.length;c++)for(var p=0;p<u.length;p++,f++)t.props[f]=s[c]?l[c].replace(/&\f/g,u[p]):u[p]+" "+l[c]}}},$B=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function wS(e,t){switch(fB(e,t)){case 5103:return Ut+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ut+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ut+e+Dd+e+qn+e+e;case 6828:case 4268:return Ut+e+qn+e+e;case 6165:return Ut+e+qn+"flex-"+e+e;case 5187:return Ut+e+Wt(e,/(\w+).+(:[^]+)/,Ut+"box-$1$2"+qn+"flex-$1$2")+e;case 5443:return Ut+e+qn+"flex-item-"+Wt(e,/flex-|-self/,"")+e;case 4675:return Ut+e+qn+"flex-line-pack"+Wt(e,/align-content|flex-|-self/,"")+e;case 5548:return Ut+e+qn+Wt(e,"shrink","negative")+e;case 5292:return Ut+e+qn+Wt(e,"basis","preferred-size")+e;case 6060:return Ut+"box-"+Wt(e,"-grow","")+Ut+e+qn+Wt(e,"grow","positive")+e;case 4554:return Ut+Wt(e,/([^-])(transform)/g,"$1"+Ut+"$2")+e;case 6187:return Wt(Wt(Wt(e,/(zoom-|grab)/,Ut+"$1"),/(image-set)/,Ut+"$1"),e,"")+e;case 5495:case 3959:return Wt(e,/(image-set\([^]*)/,Ut+"$1$`$1");case 4968:return Wt(Wt(e,/(.+:)(flex-)?(.*)/,Ut+"box-pack:$3"+qn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ut+e+e;case 4095:case 3583:case 4068:case 2532:return Wt(e,/(.+)-inline(.+)/,Ut+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Uo(e)-1-t>6)switch(Un(e,t+1)){case 109:if(Un(e,t+4)!==45)break;case 102:return Wt(e,/(.+:)(.+)-([^]+)/,"$1"+Ut+"$2-$3$1"+Dd+(Un(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Bm(e,"stretch")?wS(Wt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Un(e,t+1)!==115)break;case 6444:switch(Un(e,Uo(e)-3-(~Bm(e,"!important")&&10))){case 107:return Wt(e,":",":"+Ut)+e;case 101:return Wt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ut+(Un(e,14)===45?"inline-":"")+"box$3$1"+Ut+"$2$3$1"+qn+"$2box$3")+e}break;case 5936:switch(Un(e,t+11)){case 114:return Ut+e+qn+Wt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ut+e+qn+Wt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ut+e+qn+Wt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ut+e+qn+e+e}return e}var AB=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Fm:t.return=wS(t.value,t.length);break;case pS:return Pa([dc(t,{value:Wt(t.value,"@","@"+Ut)})],o);case Dm:if(t.length)return hB(t.props,function(s){switch(pB(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Pa([dc(t,{props:[Wt(s,/:(read-\w+)/,":"+Dd+"$1")]})],o);case"::placeholder":return Pa([dc(t,{props:[Wt(s,/:(plac\w+)/,":"+Ut+"input-$1")]}),dc(t,{props:[Wt(s,/:(plac\w+)/,":"+Dd+"$1")]}),dc(t,{props:[Wt(s,/:(plac\w+)/,qn+"input-$1")]})],o)}return""})}},jB=[AB],SS=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(b){var w=b.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=t.stylisPlugins||jB,s={},l,u=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var w=b.getAttribute("data-emotion").split(" "),P=1;P<w.length;P++)s[w[P]]=!0;u.push(b)});var c,f=[OB,$B];{var p,m=[CB,RB(function(b){p.insert(b)})],g=EB(f.concat(o,m)),S=function(w){return Pa(wB(w),g)};c=function(w,P,R,O){p=R,S(w?w+"{"+P.styles+"}":P.styles),O&&(x.inserted[P.name]=!0)}}var x={key:n,sheet:new aB({key:n,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:c};return x.sheet.hydrate(u),x},CS={exports:{}},Vt={};var ES;function _B(){if(ES)return Vt;ES=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function O($){if(typeof $=="object"&&$!==null){var T=$.$$typeof;switch(T){case t:switch($=$.type,$){case c:case f:case r:case s:case o:case m:return $;default:switch($=$&&$.$$typeof,$){case u:case p:case x:case S:case l:return $;default:return T}}case n:return T}}}function A($){return O($)===f}return Vt.AsyncMode=c,Vt.ConcurrentMode=f,Vt.ContextConsumer=u,Vt.ContextProvider=l,Vt.Element=t,Vt.ForwardRef=p,Vt.Fragment=r,Vt.Lazy=x,Vt.Memo=S,Vt.Portal=n,Vt.Profiler=s,Vt.StrictMode=o,Vt.Suspense=m,Vt.isAsyncMode=function($){return A($)||O($)===c},Vt.isConcurrentMode=A,Vt.isContextConsumer=function($){return O($)===u},Vt.isContextProvider=function($){return O($)===l},Vt.isElement=function($){return typeof $=="object"&&$!==null&&$.$$typeof===t},Vt.isForwardRef=function($){return O($)===p},Vt.isFragment=function($){return O($)===r},Vt.isLazy=function($){return O($)===x},Vt.isMemo=function($){return O($)===S},Vt.isPortal=function($){return O($)===n},Vt.isProfiler=function($){return O($)===s},Vt.isStrictMode=function($){return O($)===o},Vt.isSuspense=function($){return O($)===m},Vt.isValidElementType=function($){return typeof $=="string"||typeof $=="function"||$===r||$===f||$===s||$===o||$===m||$===g||typeof $=="object"&&$!==null&&($.$$typeof===x||$.$$typeof===S||$.$$typeof===l||$.$$typeof===u||$.$$typeof===p||$.$$typeof===w||$.$$typeof===P||$.$$typeof===R||$.$$typeof===b)},Vt.typeOf=O,Vt}CS.exports=_B();var IB=CS.exports,RS=IB,MB={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},NB={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},kS={};kS[RS.ForwardRef]=MB,kS[RS.Memo]=NB;var LB=!0;function DB(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var PS=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||LB===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},TS=function(t,n,r){PS(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function FB(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var BB={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},zB=!1,UB=/[A-Z]|^ms/g,WB=/_EMO_([^_]+?)_([^]*?)_EMO_/g,OS=function(t){return t.charCodeAt(1)===45},$S=function(t){return t!=null&&typeof t!="boolean"},Wm=dS(function(e){return OS(e)?e:e.replace(UB,"-$&").toLowerCase()}),AS=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(WB,function(r,o,s){return Ho={name:o,styles:s,next:Ho},o})}return BB[t]!==1&&!OS(t)&&typeof n=="number"&&n!==0?n+"px":n},HB="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function hc(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Ho={name:o.name,styles:o.styles,next:Ho},o.name;var s=n;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)Ho={name:l.name,styles:l.styles,next:Ho},l=l.next;var u=s.styles+";";return u}return VB(e,t,n)}case"function":{if(e!==void 0){var c=Ho,f=n(e);return Ho=c,hc(e,t,f)}break}}var p=n;if(t==null)return p;var m=t[p];return m!==void 0?m:p}function VB(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=hc(e,t,n[o])+";";else for(var s in n){var l=n[s];if(typeof l!="object"){var u=l;t!=null&&t[u]!==void 0?r+=s+"{"+t[u]+"}":$S(u)&&(r+=Wm(s)+":"+AS(s,u)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&zB)throw new Error(HB);if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var c=0;c<l.length;c++)$S(l[c])&&(r+=Wm(s)+":"+AS(s,l[c])+";");else{var f=hc(e,t,l);switch(s){case"animation":case"animationName":{r+=Wm(s)+":"+f+";";break}default:r+=s+"{"+f+"}"}}}}return r}var jS=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ho;function Hm(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Ho=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=hc(n,t,s);else{var l=s;o+=l[0]}for(var u=1;u<e.length;u++)if(o+=hc(n,t,e[u]),r){var c=s;o+=c[u]}jS.lastIndex=0;for(var f="",p;(p=jS.exec(o))!==null;)f+="-"+p[1];var m=FB(o)+f;return{name:m,styles:o,next:Ho}}var KB=function(t){return t()},_S=Fu.useInsertionEffect?Fu.useInsertionEffect:!1,GB=_S||KB,IS=_S||E.useLayoutEffect,MS=E.createContext(typeof HTMLElement<"u"?SS({key:"css"}):null),qB=MS.Provider,NS=function(t){return E.forwardRef(function(n,r){var o=E.useContext(MS);return t(n,o,r)})},mc=E.createContext({}),Vm={exports:{}},LS;function DS(){return LS||(LS=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var s in o)({}).hasOwnProperty.call(o,s)&&(n[s]=o[s])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Vm)),Vm.exports}DS();var QB=NS(function(e,t){var n=e.styles,r=Hm([n],void 0,E.useContext(mc)),o=E.useRef();return IS(function(){var s=t.key+"-global",l=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,c=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),c!==null&&(u=!0,c.setAttribute("data-emotion",s),l.hydrate([c])),o.current=[l,u],function(){l.flush()}},[t]),IS(function(){var s=o.current,l=s[0],u=s[1];if(u){s[1]=!1;return}if(r.next!==void 0&&TS(t,r.next,!0),l.tags.length){var c=l.tags[l.tags.length-1].nextElementSibling;l.before=c,l.flush()}t.insert("",r,l,!1)},[t,r.name]),null});function Ta(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Hm(t)}var Bi=function(){var t=Ta.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},YB=rB,XB=function(t){return t!=="theme"},FS=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?YB:XB},BS=function(t,n,r){var o;if(n){var s=n.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(l){return t.__emotion_forwardProp(l)&&s(l)}:s}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},JB=!1,ZB=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return PS(n,r,o),GB(function(){return TS(n,r,o)}),null},e5=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,s,l;n!==void 0&&(s=n.label,l=n.target);var u=BS(t,n,r),c=u||FS(o),f=!c("as");return function(){var p=arguments,m=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&m.push("label:"+s+";"),p[0]==null||p[0].raw===void 0)m.push.apply(m,p);else{m.push(p[0][0]);for(var g=p.length,S=1;S<g;S++)m.push(p[S],p[0][S])}var x=NS(function(b,w,P){var R=f&&b.as||o,O="",A=[],$=b;if(b.theme==null){$={};for(var T in b)$[T]=b[T];$.theme=E.useContext(mc)}typeof b.className=="string"?O=DB(w.registered,A,b.className):b.className!=null&&(O=b.className+" ");var _=Hm(m.concat(A),w.registered,$);O+=w.key+"-"+_.name,l!==void 0&&(O+=" "+l);var M=f&&u===void 0?FS(R):c,F={};for(var B in b)f&&B==="as"||M(B)&&(F[B]=b[B]);return F.className=O,P&&(F.ref=P),E.createElement(E.Fragment,null,E.createElement(ZB,{cache:w,serialized:_,isStringTag:typeof R=="string"}),E.createElement(R,F))});return x.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=o,x.__emotion_styles=m,x.__emotion_forwardProp=u,Object.defineProperty(x,"toString",{value:function(){return l===void 0&&JB?"NO_COMPONENT_SELECTOR":"."+l}}),x.withComponent=function(b,w){return e(b,k({},n,w,{shouldForwardProp:BS(x,w,!0)})).apply(void 0,m)},x}},t5=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Km=e5.bind();t5.forEach(function(e){Km[e]=Km(e)});let Gm;typeof document=="object"&&(Gm=SS({key:"css",prepend:!0}));function n5(e){const{injectFirst:t,children:n}=e;return t&&Gm?y.jsx(qB,{value:Gm,children:n}):n}function r5(e){return e==null||Object.keys(e).length===0}function zS(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(r5(o)?n:o):t;return y.jsx(QB,{styles:r})}function qm(e,t){return Km(e,t)}const US=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},o5=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:zS,StyledEngineProvider:n5,ThemeContext:mc,css:Ta,default:qm,internal_processStyles:US,keyframes:Bi},Symbol.toStringTag,{value:"Module"}));function fi(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function WS(e){if(!fi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=WS(e[n])}),t}function rr(e,t,n={clone:!0}){const r=n.clone?k({},e):e;return fi(e)&&fi(t)&&Object.keys(t).forEach(o=>{fi(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&fi(e[o])?r[o]=rr(e[o],t[o],n):n.clone?r[o]=fi(t[o])?WS(t[o]):t[o]:r[o]=t[o]}),r}const i5=Object.freeze(Object.defineProperty({__proto__:null,default:rr,isPlainObject:fi},Symbol.toStringTag,{value:"Module"})),s5=["values","unit","step"],a5=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>k({},n,{[r.key]:r.val}),{})};function HS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ge(e,s5),s=a5(t),l=Object.keys(s);function u(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n})`}function c(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-r/100}${n})`}function f(g,S){const x=l.indexOf(S);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(x!==-1&&typeof t[l[x]]=="number"?t[l[x]]:S)-r/100}${n})`}function p(g){return l.indexOf(g)+1<l.length?f(g,l[l.indexOf(g)+1]):u(g)}function m(g){const S=l.indexOf(g);return S===0?u(l[1]):S===l.length-1?c(l[S]):f(g,l[l.indexOf(g)+1]).replace("@media","@media not all and")}return k({keys:l,values:s,up:u,down:c,between:f,only:p,not:m,unit:n},o)}const l5={borderRadius:4};function gc(e,t){return t?rr(e,t,{clone:!1}):e}const Qm={xs:0,sm:600,md:900,lg:1200,xl:1536},VS={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Qm[e]}px)`};function So(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||VS;return t.reduce((l,u,c)=>(l[s.up(s.keys[c])]=n(t[c]),l),{})}if(typeof t=="object"){const s=r.breakpoints||VS;return Object.keys(t).reduce((l,u)=>{if(Object.keys(s.values||Qm).indexOf(u)!==-1){const c=s.up(u);l[c]=n(t[u],u)}else{const c=u;l[c]=t[c]}return l},{})}return n(t)}function KS(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const s=e.up(o);return r[s]={},r},{}))||{}}function GS(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function c5(e,...t){const n=KS(e),r=[n,...t].reduce((o,s)=>rr(o,s),{});return GS(Object.keys(n),r)}function u5(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,s)=>{s<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function Ym({values:e,breakpoints:t,base:n}){const r=n||u5(e,t),o=Object.keys(r);if(o.length===0)return e;let s;return o.reduce((l,u,c)=>(Array.isArray(e)?(l[u]=e[c]!=null?e[c]:e[s],s=c):typeof e=="object"?(l[u]=e[u]!=null?e[u]:e[s],s=u):l[u]=e,l),{})}function ie(e){if(typeof e!="string")throw new Error(di(7));return e.charAt(0).toUpperCase()+e.slice(1)}const d5=Object.freeze(Object.defineProperty({__proto__:null,default:ie},Symbol.toStringTag,{value:"Module"}));function Oa(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Kd(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Oa(e,n)||r,t&&(o=t(o,r,e)),o}function Sn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=l=>{if(l[t]==null)return null;const u=l[t],c=l.theme,f=Oa(c,r)||{};return So(l,u,m=>{let g=Kd(f,o,m);return m===g&&typeof m=="string"&&(g=Kd(f,o,`${t}${m==="default"?"":ie(m)}`,m)),n===!1?g:{[n]:g}})};return s.propTypes={},s.filterProps=[t],s}function f5(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const p5={m:"margin",p:"padding"},h5={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},qS={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},m5=f5(e=>{if(e.length>2)if(qS[e])e=qS[e];else return[e];const[t,n]=e.split(""),r=p5[t],o=h5[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),Xm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Jm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Xm,...Jm];function yc(e,t,n,r){var o;const s=(o=Oa(e,t,!1))!=null?o:n;return typeof s=="number"?l=>typeof l=="string"?l:s*l:Array.isArray(s)?l=>typeof l=="string"?l:s[l]:typeof s=="function"?s:()=>{}}function Zm(e){return yc(e,"spacing",8)}function Ds(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function g5(e,t){return n=>e.reduce((r,o)=>(r[o]=Ds(t,n),r),{})}function y5(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=m5(n),s=g5(o,r),l=e[n];return So(e,l,s)}function QS(e,t){const n=Zm(e.theme);return Object.keys(e).map(r=>y5(e,t,r,n)).reduce(gc,{})}function yn(e){return QS(e,Xm)}yn.propTypes={},yn.filterProps=Xm;function vn(e){return QS(e,Jm)}vn.propTypes={},vn.filterProps=Jm;function v5(e=8){if(e.mui)return e;const t=Zm({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(s=>{const l=t(s);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function Gd(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?gc(o,t[s](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function eo(e){return typeof e!="number"?e:`${e}px solid`}function to(e,t){return Sn({prop:e,themeKey:"borders",transform:t})}const b5=to("border",eo),x5=to("borderTop",eo),w5=to("borderRight",eo),S5=to("borderBottom",eo),C5=to("borderLeft",eo),E5=to("borderColor"),R5=to("borderTopColor"),k5=to("borderRightColor"),P5=to("borderBottomColor"),T5=to("borderLeftColor"),O5=to("outline",eo),$5=to("outlineColor"),qd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=yc(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ds(t,r)});return So(e,e.borderRadius,n)}return null};qd.propTypes={},qd.filterProps=["borderRadius"],Gd(b5,x5,w5,S5,C5,E5,R5,k5,P5,T5,qd,O5,$5);const Qd=e=>{if(e.gap!==void 0&&e.gap!==null){const t=yc(e.theme,"spacing",8),n=r=>({gap:Ds(t,r)});return So(e,e.gap,n)}return null};Qd.propTypes={},Qd.filterProps=["gap"];const Yd=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=yc(e.theme,"spacing",8),n=r=>({columnGap:Ds(t,r)});return So(e,e.columnGap,n)}return null};Yd.propTypes={},Yd.filterProps=["columnGap"];const Xd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=yc(e.theme,"spacing",8),n=r=>({rowGap:Ds(t,r)});return So(e,e.rowGap,n)}return null};Xd.propTypes={},Xd.filterProps=["rowGap"];const A5=Sn({prop:"gridColumn"}),j5=Sn({prop:"gridRow"}),_5=Sn({prop:"gridAutoFlow"}),I5=Sn({prop:"gridAutoColumns"}),M5=Sn({prop:"gridAutoRows"}),N5=Sn({prop:"gridTemplateColumns"}),L5=Sn({prop:"gridTemplateRows"}),D5=Sn({prop:"gridTemplateAreas"}),F5=Sn({prop:"gridArea"});Gd(Qd,Yd,Xd,A5,j5,_5,I5,M5,N5,L5,D5,F5);function $a(e,t){return t==="grey"?t:e}const B5=Sn({prop:"color",themeKey:"palette",transform:$a}),z5=Sn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$a}),U5=Sn({prop:"backgroundColor",themeKey:"palette",transform:$a});Gd(B5,z5,U5);function Nr(e){return e<=1&&e!==0?`${e*100}%`:e}const W5=Sn({prop:"width",transform:Nr}),eg=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const s=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Qm[n];return s?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:Nr(n)}};return So(e,e.maxWidth,t)}return null};eg.filterProps=["maxWidth"];const H5=Sn({prop:"minWidth",transform:Nr}),V5=Sn({prop:"height",transform:Nr}),K5=Sn({prop:"maxHeight",transform:Nr}),G5=Sn({prop:"minHeight",transform:Nr});Sn({prop:"size",cssProperty:"width",transform:Nr}),Sn({prop:"size",cssProperty:"height",transform:Nr});const q5=Sn({prop:"boxSizing"});Gd(W5,eg,H5,V5,K5,G5,q5);const vc={border:{themeKey:"borders",transform:eo},borderTop:{themeKey:"borders",transform:eo},borderRight:{themeKey:"borders",transform:eo},borderBottom:{themeKey:"borders",transform:eo},borderLeft:{themeKey:"borders",transform:eo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:eo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:qd},color:{themeKey:"palette",transform:$a},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$a},backgroundColor:{themeKey:"palette",transform:$a},p:{style:vn},pt:{style:vn},pr:{style:vn},pb:{style:vn},pl:{style:vn},px:{style:vn},py:{style:vn},padding:{style:vn},paddingTop:{style:vn},paddingRight:{style:vn},paddingBottom:{style:vn},paddingLeft:{style:vn},paddingX:{style:vn},paddingY:{style:vn},paddingInline:{style:vn},paddingInlineStart:{style:vn},paddingInlineEnd:{style:vn},paddingBlock:{style:vn},paddingBlockStart:{style:vn},paddingBlockEnd:{style:vn},m:{style:yn},mt:{style:yn},mr:{style:yn},mb:{style:yn},ml:{style:yn},mx:{style:yn},my:{style:yn},margin:{style:yn},marginTop:{style:yn},marginRight:{style:yn},marginBottom:{style:yn},marginLeft:{style:yn},marginX:{style:yn},marginY:{style:yn},marginInline:{style:yn},marginInlineStart:{style:yn},marginInlineEnd:{style:yn},marginBlock:{style:yn},marginBlockStart:{style:yn},marginBlockEnd:{style:yn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Qd},rowGap:{style:Xd},columnGap:{style:Yd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Nr},maxWidth:{style:eg},minWidth:{transform:Nr},height:{transform:Nr},maxHeight:{transform:Nr},minHeight:{transform:Nr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Q5(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Y5(e,t){return typeof e=="function"?e(t):e}function YS(){function e(n,r,o,s){const l={[n]:r,theme:o},u=s[n];if(!u)return{[n]:r};const{cssProperty:c=n,themeKey:f,transform:p,style:m}=u;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const g=Oa(o,f)||{};return m?m(l):So(l,r,x=>{let b=Kd(g,p,x);return x===b&&typeof x=="string"&&(b=Kd(g,p,`${n}${x==="default"?"":ie(x)}`,x)),c===!1?b:{[c]:b}})}function t(n){var r;const{sx:o,theme:s={}}=n||{};if(!o)return null;const l=(r=s.unstable_sxConfig)!=null?r:vc;function u(c){let f=c;if(typeof c=="function")f=c(s);else if(typeof c!="object")return c;if(!f)return null;const p=KS(s.breakpoints),m=Object.keys(p);let g=p;return Object.keys(f).forEach(S=>{const x=Y5(f[S],s);if(x!=null)if(typeof x=="object")if(l[S])g=gc(g,e(S,x,s,l));else{const b=So({theme:s},x,w=>({[S]:w}));Q5(b,x)?g[S]=t({sx:x,theme:s}):g=gc(g,b)}else g=gc(g,e(S,x,s,l))}),GS(m,g)}return Array.isArray(o)?o.map(u):u(o)}return t}const Aa=YS();Aa.filterProps=["sx"];function XS(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const X5=["breakpoints","palette","spacing","shape"];function ja(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={}}=e,l=ge(e,X5),u=HS(n),c=v5(o);let f=rr({breakpoints:u,direction:"ltr",components:{},palette:k({mode:"light"},r),spacing:c,shape:k({},l5,s)},l);return f.applyStyles=XS,f=t.reduce((p,m)=>rr(p,m),f),f.unstable_sxConfig=k({},vc,l==null?void 0:l.unstable_sxConfig),f.unstable_sx=function(m){return Aa({sx:m,theme:this})},f}const J5=Object.freeze(Object.defineProperty({__proto__:null,default:ja,private_createBreakpoints:HS,unstable_applyStyles:XS},Symbol.toStringTag,{value:"Module"}));function Z5(e){return Object.keys(e).length===0}function tg(e=null){const t=E.useContext(mc);return!t||Z5(t)?e:t}const ez=ja();function bc(e=ez){return tg(e)}function tz({styles:e,themeId:t,defaultTheme:n={}}){const r=bc(n),o=typeof e=="function"?e(t&&r[t]||r):e;return y.jsx(zS,{styles:o})}const nz=["sx"],rz=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:vc;return Object.keys(e).forEach(s=>{o[s]?r.systemProps[s]=e[s]:r.otherProps[s]=e[s]}),r};function xc(e){const{sx:t}=e,n=ge(e,nz),{systemProps:r,otherProps:o}=rz(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...l)=>{const u=t(...l);return fi(u)?k({},r,u):r}:s=k({},r,t),k({},o,{sx:s})}const oz=Object.freeze(Object.defineProperty({__proto__:null,default:Aa,extendSxProp:xc,unstable_createStyleFunctionSx:YS,unstable_defaultSxConfig:vc},Symbol.toStringTag,{value:"Module"})),JS=e=>e,ZS=(()=>{let e=JS;return{configure(t){e=t},generate(t){return e(t)},reset(){e=JS}}})();function eC(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=eC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ye(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=eC(e))&&(r&&(r+=" "),r+=t);return r}const iz=["className","component"];function sz(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,s=qm("div",{shouldForwardProp:u=>u!=="theme"&&u!=="sx"&&u!=="as"})(Aa);return E.forwardRef(function(c,f){const p=bc(n),m=xc(c),{className:g,component:S="div"}=m,x=ge(m,iz);return y.jsx(s,k({as:S,ref:f,className:ye(g,o?o(r):r),theme:t&&p[t]||p},x))})}const az={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ie(e,t,n="Mui"){const r=az[t];return r?`${n}-${r}`:`${ZS.generate(e)}-${t}`}function Ne(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ie(e,o,n)}),r}var tC={exports:{}},Kt={};var nC;function lz(){if(nC)return Kt;nC=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function b(w){if(typeof w=="object"&&w!==null){var P=w.$$typeof;switch(P){case e:switch(w=w.type,w){case n:case o:case r:case f:case p:return w;default:switch(w=w&&w.$$typeof,w){case u:case l:case c:case g:case m:case s:return w;default:return P}}case t:return P}}}return Kt.ContextConsumer=l,Kt.ContextProvider=s,Kt.Element=e,Kt.ForwardRef=c,Kt.Fragment=n,Kt.Lazy=g,Kt.Memo=m,Kt.Portal=t,Kt.Profiler=o,Kt.StrictMode=r,Kt.Suspense=f,Kt.SuspenseList=p,Kt.isAsyncMode=function(){return!1},Kt.isConcurrentMode=function(){return!1},Kt.isContextConsumer=function(w){return b(w)===l},Kt.isContextProvider=function(w){return b(w)===s},Kt.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},Kt.isForwardRef=function(w){return b(w)===c},Kt.isFragment=function(w){return b(w)===n},Kt.isLazy=function(w){return b(w)===g},Kt.isMemo=function(w){return b(w)===m},Kt.isPortal=function(w){return b(w)===t},Kt.isProfiler=function(w){return b(w)===o},Kt.isStrictMode=function(w){return b(w)===r},Kt.isSuspense=function(w){return b(w)===f},Kt.isSuspenseList=function(w){return b(w)===p},Kt.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===o||w===r||w===f||w===p||w===S||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===m||w.$$typeof===s||w.$$typeof===l||w.$$typeof===c||w.$$typeof===x||w.getModuleId!==void 0)},Kt.typeOf=b,Kt}tC.exports=lz();var rC=tC.exports;const cz=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function oC(e){const t=`${e}`.match(cz);return t&&t[1]||""}function iC(e,t=""){return e.displayName||e.name||oC(e)||t}function sC(e,t,n){const r=iC(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function uz(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return iC(e,"Component");if(typeof e=="object")switch(e.$$typeof){case rC.ForwardRef:return sC(e,e.render,"ForwardRef");case rC.Memo:return sC(e,e.type,"memo");default:return}}}const dz=Object.freeze(Object.defineProperty({__proto__:null,default:uz,getFunctionName:oC},Symbol.toStringTag,{value:"Module"})),fz=["ownerState"],pz=["variants"],hz=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function mz(e){return Object.keys(e).length===0}function gz(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ng(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const yz=ja(),vz=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Jd({defaultTheme:e,theme:t,themeId:n}){return mz(t)?e:t[n]||t}function bz(e){return e?(t,n)=>n[e]:null}function Zd(e,t){let{ownerState:n}=t,r=ge(t,fz);const o=typeof e=="function"?e(k({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(s=>Zd(s,k({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:s=[]}=o;let u=ge(o,pz);return s.forEach(c=>{let f=!0;typeof c.props=="function"?f=c.props(k({ownerState:n},r,n)):Object.keys(c.props).forEach(p=>{(n==null?void 0:n[p])!==c.props[p]&&r[p]!==c.props[p]&&(f=!1)}),f&&(Array.isArray(u)||(u=[u]),u.push(typeof c.style=="function"?c.style(k({ownerState:n},r,n)):c.style))}),u}return o}function xz(e={}){const{themeId:t,defaultTheme:n=yz,rootShouldForwardProp:r=ng,slotShouldForwardProp:o=ng}=e,s=l=>Aa(k({},l,{theme:Jd(k({},l,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(l,u={})=>{US(l,$=>$.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:c,slot:f,skipVariantsResolver:p,skipSx:m,overridesResolver:g=bz(vz(f))}=u,S=ge(u,hz),x=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,b=m||!1;let w,P=ng;f==="Root"||f==="root"?P=r:f?P=o:gz(l)&&(P=void 0);const R=qm(l,k({shouldForwardProp:P,label:w},S)),O=$=>typeof $=="function"&&$.__emotion_real!==$||fi($)?T=>Zd($,k({},T,{theme:Jd({theme:T.theme,defaultTheme:n,themeId:t})})):$,A=($,...T)=>{let _=O($);const M=T?T.map(O):[];c&&g&&M.push(G=>{const W=Jd(k({},G,{defaultTheme:n,themeId:t}));if(!W.components||!W.components[c]||!W.components[c].styleOverrides)return null;const H=W.components[c].styleOverrides,z={};return Object.entries(H).forEach(([te,Z])=>{z[te]=Zd(Z,k({},G,{theme:W}))}),g(G,z)}),c&&!x&&M.push(G=>{var W;const H=Jd(k({},G,{defaultTheme:n,themeId:t})),z=H==null||(W=H.components)==null||(W=W[c])==null?void 0:W.variants;return Zd({variants:z},k({},G,{theme:H}))}),b||M.push(s);const F=M.length-T.length;if(Array.isArray($)&&F>0){const G=new Array(F).fill("");_=[...$,...G],_.raw=[...$.raw,...G]}const B=R(_,...M);return l.muiName&&(B.muiName=l.muiName),B};return R.withConfig&&(A.withConfig=R.withConfig),A}}const aC=xz();function wc(e,t){const n=k({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=k({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},s=t[r];n[r]={},!s||!Object.keys(s)?n[r]=o:!o||!Object.keys(o)?n[r]=s:(n[r]=k({},s),Object.keys(o).forEach(l=>{n[r][l]=wc(o[l],s[l])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function lC(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:wc(t.components[n].defaultProps,r)}function cC({props:e,name:t,defaultTheme:n,themeId:r}){let o=bc(n);return r&&(o=o[r]||o),lC({theme:o,name:t,props:e})}const br=typeof window<"u"?E.useLayoutEffect:E.useEffect;function wz(e,t,n,r,o){const[s,l]=E.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return br(()=>{let u=!0;if(!n)return;const c=n(e),f=()=>{u&&l(c.matches)};return f(),c.addListener(f),()=>{u=!1,c.removeListener(f)}},[e,n]),s}const uC=E.useSyncExternalStore;function Sz(e,t,n,r,o){const s=E.useCallback(()=>t,[t]),l=E.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:p}=r(e);return()=>p}return s},[s,e,r,o,n]),[u,c]=E.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const p=n(e);return[()=>p.matches,m=>(p.addListener(m),()=>{p.removeListener(m)})]},[s,n,e]);return uC(c,u,l)}function ef(e,t={}){const n=tg(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:s=r?window.matchMedia:null,ssrMatchMedia:l=null,noSsr:u=!1}=lC({name:"MuiUseMediaQuery",props:t,theme:n});let c=typeof e=="function"?e(n):e;return c=c.replace(/^@media( ?)/m,""),(uC!==void 0?Sz:wz)(c,o,s,l,u)}function rg(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Cz=Object.freeze(Object.defineProperty({__proto__:null,default:rg},Symbol.toStringTag,{value:"Module"}));function Ez(e,t=0,n=1){return rg(e,t,n)}function Rz(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function dC(e){if(e.type)return e;if(e.charAt(0)==="#")return dC(Rz(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(di(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(di(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}function kz(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,s)=>s<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Pz(e,t){return e=dC(e),t=Ez(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,kz(e)}function og(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Sc(e,t=166){let n;function r(...o){const s=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function _a(e,t){var n,r;return E.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function An(e){return e&&e.ownerDocument||document}function Co(e){return An(e).defaultView||window}function tf(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let fC=0;function Tz(e){const[t,n]=E.useState(e),r=e||t;return E.useEffect(()=>{t==null&&(fC+=1,n(`mui-${fC}`))},[t]),r}const pC=Fu.useId;function Ia(e){if(pC!==void 0){const t=pC();return e??t}return Tz(e)}function pi({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=E.useRef(e!==void 0),[s,l]=E.useState(t),u=o?e:s,c=E.useCallback(f=>{o||l(f)},[]);return[u,c]}function Nn(e){const t=E.useRef(e);return br(()=>{t.current=e}),E.useRef((...n)=>(0,t.current)(...n)).current}function Gt(...e){return E.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{tf(n,t)})},e)}const hC={};function Oz(e,t){const n=E.useRef(hC);return n.current===hC&&(n.current=e(t)),n}const $z=[];function Az(e){E.useEffect(e,$z)}class Cc{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Cc}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function hi(){const e=Oz(Cc.create).current;return Az(e.disposeEffect),e}let nf=!0,ig=!1;const jz=new Cc,_z={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Iz(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&_z[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Mz(e){e.metaKey||e.altKey||e.ctrlKey||(nf=!0)}function sg(){nf=!1}function Nz(){this.visibilityState==="hidden"&&ig&&(nf=!0)}function Lz(e){e.addEventListener("keydown",Mz,!0),e.addEventListener("mousedown",sg,!0),e.addEventListener("pointerdown",sg,!0),e.addEventListener("touchstart",sg,!0),e.addEventListener("visibilitychange",Nz,!0)}function Dz(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return nf||Iz(t)}function ag(){const e=E.useCallback(o=>{o!=null&&Lz(o.ownerDocument)},[]),t=E.useRef(!1);function n(){return t.current?(ig=!0,jz.start(100,()=>{ig=!1}),t.current=!1,!0):!1}function r(o){return Dz(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function mC(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Ma;function gC(){if(Ma)return Ma;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Ma="reverse",e.scrollLeft>0?Ma="default":(e.scrollLeft=1,e.scrollLeft===0&&(Ma="negative")),document.body.removeChild(e),Ma}function Fz(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(gC()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const lg=e=>{const t=E.useRef({});return E.useEffect(()=>{t.current=e}),t.current};function Bz(e){return E.Children.toArray(e).filter(t=>E.isValidElement(t))}function Le(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((s,l)=>{if(l){const u=t(l);u!==""&&s.push(u),n&&n[l]&&s.push(n[l])}return s},[]).join(" ")}),r}function Na(e){return typeof e=="string"}function La(e,t,n){return e===void 0||Na(e)?t:k({},t,{ownerState:k({},t.ownerState,n)})}function rf(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function yC(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function vC(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const S=ye(n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),x=k({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),b=k({},n,o,r);return S.length>0&&(b.className=S),Object.keys(x).length>0&&(b.style=x),{props:b,internalRef:void 0}}const l=rf(k({},o,r)),u=yC(r),c=yC(o),f=t(l),p=ye(f==null?void 0:f.className,n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),m=k({},f==null?void 0:f.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),g=k({},f,n,c,u);return p.length>0&&(g.className=p),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:f.ref}}function bC(e,t,n){return typeof e=="function"?e(t,n):e}const zz=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function or(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:s=!1}=e,l=ge(e,zz),u=s?{}:bC(r,o),{props:c,internalRef:f}=vC(k({},l,{externalSlotProps:u})),p=Gt(f,u==null?void 0:u.ref,(t=e.additionalProps)==null?void 0:t.ref);return La(n,k({},c,{ref:p}),o)}const xC=E.createContext(null);function wC(){return E.useContext(xC)}const Uz=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Wz(e,t){return typeof t=="function"?t(e):k({},e,t)}function Hz(e){const{children:t,theme:n}=e,r=wC(),o=E.useMemo(()=>{const s=r===null?n:Wz(r,n);return s!=null&&(s[Uz]=r!==null),s},[n,r]);return y.jsx(xC.Provider,{value:o,children:t})}const Vz=["value"],SC=E.createContext();function Kz(e){let{value:t}=e,n=ge(e,Vz);return y.jsx(SC.Provider,k({value:t??!0},n))}const Ec=()=>{const e=E.useContext(SC);return e??!1},CC=E.createContext(void 0);function Gz({value:e,children:t}){return y.jsx(CC.Provider,{value:e,children:t})}function qz(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?wc(o.defaultProps,r):!o.styleOverrides&&!o.variants?wc(o,r):r}function Qz({props:e,name:t}){const n=E.useContext(CC);return qz({props:e,name:t,theme:{components:n}})}const EC={};function RC(e,t,n,r=!1){return E.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const s=n(o),l=e?k({},t,{[e]:s}):s;return r?()=>l:l}return e?k({},t,{[e]:n}):k({},t,n)},[e,t,n,r])}function Yz(e){const{children:t,theme:n,themeId:r}=e,o=tg(EC),s=wC()||EC,l=RC(r,o,n),u=RC(r,s,n,!0),c=l.direction==="rtl";return y.jsx(Hz,{theme:u,children:y.jsx(mc.Provider,{value:l,children:y.jsx(Kz,{value:c,children:y.jsx(Gz,{value:l==null?void 0:l.components,children:t})})})})}const Xz=(e,t)=>e.filter(n=>t.includes(n)),Da=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,s)=>{n((l,u)=>{s<=e.keys.length-1&&(s===0?Object.assign(l,u):l[e.up(e.keys[s])]=u)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:Xz(e.keys,Object.keys(t))).forEach(s=>{if(e.keys.indexOf(s)!==-1){const l=t[s];l!==void 0&&n((u,c)=>{r===s?Object.assign(u,c):u[e.up(s)]=c},l)}}):(typeof t=="number"||typeof t=="string")&&n((o,s)=>{Object.assign(o,s)},t)};function mi(e){return e?`Level${e}`:""}function Rc(e){return e.unstable_level>0&&e.container}function kC(e){return function(n){return`var(--Grid-${n}Spacing${mi(e.unstable_level)})`}}function cg(e){return function(n){return e.unstable_level===0?`var(--Grid-${n}Spacing)`:`var(--Grid-${n}Spacing${mi(e.unstable_level-1)})`}}function ug(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${mi(e.unstable_level-1)})`}const Jz=({theme:e,ownerState:t})=>{const n=kC(t),r={};return Da(e.breakpoints,t.gridSize,(o,s)=>{let l={};s===!0&&(l={flexBasis:0,flexGrow:1,maxWidth:"100%"}),s==="auto"&&(l={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof s=="number"&&(l={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${s} / ${ug(t)}${Rc(t)?` + ${n("column")}`:""})`}),o(r,l)}),r},Zz=({theme:e,ownerState:t})=>{const n={};return Da(e.breakpoints,t.gridOffset,(r,o)=>{let s={};o==="auto"&&(s={marginLeft:"auto"}),typeof o=="number"&&(s={marginLeft:o===0?"0px":`calc(100% * ${o} / ${ug(t)})`}),r(n,s)}),n},e3=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=Rc(t)?{[`--Grid-columns${mi(t.unstable_level)}`]:ug(t)}:{"--Grid-columns":12};return Da(e.breakpoints,t.columns,(r,o)=>{r(n,{[`--Grid-columns${mi(t.unstable_level)}`]:o})}),n},t3=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=cg(t),r=Rc(t)?{[`--Grid-rowSpacing${mi(t.unstable_level)}`]:n("row")}:{};return Da(e.breakpoints,t.rowSpacing,(o,s)=>{var l;o(r,{[`--Grid-rowSpacing${mi(t.unstable_level)}`]:typeof s=="string"?s:(l=e.spacing)==null?void 0:l.call(e,s)})}),r},n3=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=cg(t),r=Rc(t)?{[`--Grid-columnSpacing${mi(t.unstable_level)}`]:n("column")}:{};return Da(e.breakpoints,t.columnSpacing,(o,s)=>{var l;o(r,{[`--Grid-columnSpacing${mi(t.unstable_level)}`]:typeof s=="string"?s:(l=e.spacing)==null?void 0:l.call(e,s)})}),r},r3=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Da(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},o3=({ownerState:e})=>{const t=kC(e),n=cg(e);return k({minWidth:0,boxSizing:"border-box"},e.container&&k({display:"flex",flexWrap:"wrap"},e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||Rc(e))&&k({padding:`calc(${n("row")} / 2) calc(${n("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${n("row")} 0px 0px ${n("column")}`}))},i3=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},s3=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([o,s])=>{n(s)&&r.push(`spacing-${o}-${String(s)}`)}),r}return[]},a3=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],l3=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],c3=ja(),u3=aC("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function d3(e){return cC({props:e,name:"MuiGrid",defaultTheme:c3})}function f3(e={}){const{createStyledComponent:t=u3,useThemeProps:n=d3,componentName:r="MuiGrid"}=e,o=E.createContext(void 0),s=(c,f)=>{const{container:p,direction:m,spacing:g,wrap:S,gridSize:x}=c,b={root:["root",p&&"container",S!=="wrap"&&`wrap-xs-${String(S)}`,...a3(m),...i3(x),...p?s3(g,f.breakpoints.keys[0]):[]]};return Le(b,w=>Ie(r,w),{})},l=t(e3,n3,t3,Jz,r3,o3,Zz),u=E.forwardRef(function(f,p){var m,g,S,x,b,w,P,R;const O=bc(),A=n(f),$=xc(A),T=E.useContext(o),{className:_,children:M,columns:F=12,container:B=!1,component:G="div",direction:W="row",wrap:H="wrap",spacing:z=0,rowSpacing:te=z,columnSpacing:Z=z,disableEqualOverflow:X,unstable_level:N=0}=$,Y=ge($,l3);let ce=X;N&&X!==void 0&&(ce=f.disableEqualOverflow);const L={},se={},Oe={};Object.entries(Y).forEach(([He,Be])=>{O.breakpoints.values[He]!==void 0?L[He]=Be:O.breakpoints.values[He.replace("Offset","")]!==void 0?se[He.replace("Offset","")]=Be:Oe[He]=Be});const ve=(m=f.columns)!=null?m:N?void 0:F,xe=(g=f.spacing)!=null?g:N?void 0:z,he=(S=(x=f.rowSpacing)!=null?x:f.spacing)!=null?S:N?void 0:te,Me=(b=(w=f.columnSpacing)!=null?w:f.spacing)!=null?b:N?void 0:Z,de=k({},$,{level:N,columns:ve,container:B,direction:W,wrap:H,spacing:xe,rowSpacing:he,columnSpacing:Me,gridSize:L,gridOffset:se,disableEqualOverflow:(P=(R=ce)!=null?R:T)!=null?P:!1,parentDisableEqualOverflow:T}),ke=s(de,O);let Qe=y.jsx(l,k({ref:p,as:G,ownerState:de,className:ye(ke.root,_)},Oe,{children:E.Children.map(M,He=>{if(E.isValidElement(He)&&_a(He,["Grid"])){var Be;return E.cloneElement(He,{unstable_level:(Be=He.props.unstable_level)!=null?Be:N+1})}return He})}));return ce!==void 0&&ce!==(T??!1)&&(Qe=y.jsx(o.Provider,{value:ce,children:Qe})),Qe});return u.muiName="Grid",u}const p3=["component","direction","spacing","divider","children","className","useFlexGap"],h3=ja(),m3=aC("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function g3(e){return cC({props:e,name:"MuiStack",defaultTheme:h3})}function y3(e,t){const n=E.Children.toArray(e).filter(Boolean);return n.reduce((r,o,s)=>(r.push(o),s<n.length-1&&r.push(E.cloneElement(t,{key:`separator-${s}`})),r),[])}const v3=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],b3=({ownerState:e,theme:t})=>{let n=k({display:"flex",flexDirection:"column"},So({theme:t},Ym({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=Zm(t),o=Object.keys(t.breakpoints.values).reduce((c,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(c[f]=!0),c),{}),s=Ym({values:e.direction,base:o}),l=Ym({values:e.spacing,base:o});typeof s=="object"&&Object.keys(s).forEach((c,f,p)=>{if(!s[c]){const g=f>0?s[p[f-1]]:"column";s[c]=g}}),n=rr(n,So({theme:t},l,(c,f)=>e.useFlexGap?{gap:Ds(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${v3(f?s[f]:e.direction)}`]:Ds(r,c)}}))}return n=c5(t.breakpoints,n),n};function x3(e={}){const{createStyledComponent:t=m3,useThemeProps:n=g3,componentName:r="MuiStack"}=e,o=()=>Le({root:["root"]},c=>Ie(r,c),{}),s=t(b3);return E.forwardRef(function(c,f){const p=n(c),m=xc(p),{component:g="div",direction:S="column",spacing:x=0,divider:b,children:w,className:P,useFlexGap:R=!1}=m,O=ge(m,p3),A={direction:S,spacing:x,useFlexGap:R},$=o();return y.jsx(s,k({as:g,ownerState:A,ref:f,className:ye($.root,P)},O,{children:b?y3(w,b):w}))})}function w3(e,t){return k({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Cn={},PC={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(PC);var TC=PC.exports;const S3=$r(tB),C3=$r(Cz);var kc={GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_185af867-948f-4203-9c52-e02bdb842cbe",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_always_auth:"",npm_config_user_agent:"npm/10.8.2 node/v20.18.0 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_185af867-948f-4203-9c52-e02bdb842cbe",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.0/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",NODE_AUTH_TOKEN:"XXXXX-XXXXX-XXXXX-XXXXX",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/js-mui-cms/js-mui-cms/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"luminix-cms",GRADLE_HOME:"/usr/share/gradle-8.11",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"158327540",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu22",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_local_prefix:"/home/runner/work/js-mui-cms/js-mui-cms",SYSTEMD_EXEC_PID:"480",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20241117.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.9/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.3/x64",JOURNAL_STREAM:"8:18277",GITHUB_WORKFLOW:"Publish beta version to NPM",_:"/opt/hostedtoolcache/node/20.18.0/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.0/x64",npm_config_npm_version:"10.8.2",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"11982751398",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"3e112dce67991bd6c767ccea1de91efc5d7fec9c",GITHUB_BASE_REF:"",ImageOS:"ubuntu22",GITHUB_WORKFLOW_REF:"luminix-cms/js-mui-cms/.github/workflows/beta.yml@refs/heads/v0.x",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.0/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/js-mui-cms/js-mui-cms/node_modules/.bin:/home/runner/work/js-mui-cms/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.0/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/js-mui-cms/js-mui-cms/node_modules/.bin:/home/runner/work/js-mui-cms/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.0/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_6253908b-c5ec-4a27-be52-fe06baa6d806",INVOCATION_ID:"dd58698177924ff483f00ef2ea38f383",NPM_CONFIG_USERCONFIG:"/home/runner/work/_temp/.npmrc",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.0/x64/bin/node",npm_package_name:"@luminix/mui-cms",GITHUB_ACTION:"__run",GITHUB_RUN_NUMBER:"1",GITHUB_TRIGGERING_ACTOR:"obrunopolo",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 7",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"v0.x",GITHUB_REPOSITORY:"luminix-cms/js-mui-cms",STATS_D_D:"true",npm_lifecycle_script:"tsc && vite build --config vite.config.bundle.ts",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"751419373",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"",npm_lifecycle_event:"build:bundle",GITHUB_REF_PROTECTED:"false",GITHUB_WORKSPACE:"/home/runner/work/js-mui-cms/js-mui-cms",ACCEPT_EULA:"Y",GITHUB_JOB:"publish",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"3e112dce67991bd6c767ccea1de91efc5d7fec9c",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/v0.x",GITHUB_ACTOR:"obrunopolo",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",LEIN_HOME:"/usr/local/lib/lein",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.0/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_185af867-948f-4203-9c52-e02bdb842cbe",JAVA_HOME:"/usr/lib/jvm/temurin-11-jdk-amd64",PWD:"/home/runner/work/js-mui-cms/js-mui-cms",GITHUB_ACTOR_ID:"47830258",RUNNER_WORKSPACE:"/home/runner/work/js-mui-cms",npm_execpath:"/opt/hostedtoolcache/node/20.18.0/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",LEIN_JAR:"/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_185af867-948f-4203-9c52-e02bdb842cbe",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.0/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_185af867-948f-4203-9c52-e02bdb842cbe",INIT_CWD:"/home/runner/work/js-mui-cms/js-mui-cms",EDITOR:"vi",NODE_ENV:"production"},OC=TC;Object.defineProperty(Cn,"__esModule",{value:!0});var mt=Cn.alpha=IC;Cn.blend=I3,Cn.colorChannel=void 0;var Pc=Cn.darken=fg;Cn.decomposeColor=no;var of=Cn.emphasize=MC,E3=Cn.getContrastRatio=O3;Cn.getLuminance=sf,Cn.hexToRgb=AC,Cn.hslToRgb=_C;var Tc=Cn.lighten=pg;Cn.private_safeAlpha=$3,Cn.private_safeColorChannel=void 0,Cn.private_safeDarken=A3,Cn.private_safeEmphasize=_3,Cn.private_safeLighten=j3,Cn.recomposeColor=Fa,Cn.rgbToHex=T3;var $C=OC(S3),R3=OC(C3);function dg(e,t=0,n=1){return(0,R3.default)(e,t,n)}function AC(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function k3(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function no(e){if(e.type)return e;if(e.charAt(0)==="#")return no(AC(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,$C.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,$C.default)(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}const jC=e=>{const t=no(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Cn.colorChannel=jC;const P3=(e,t)=>{try{return jC(e)}catch{return t&&kc.NODE_ENV!=="production"&&console.warn(t),e}};Cn.private_safeColorChannel=P3;function Fa(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,s)=>s<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function T3(e){if(e.indexOf("#")===0)return e;const{values:t}=no(e);return`#${t.map((n,r)=>k3(r===3?Math.round(255*n):n)).join("")}`}function _C(e){e=no(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),l=(f,p=(f+n/30)%12)=>o-s*Math.max(Math.min(p-3,9-p,1),-1);let u="rgb";const c=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(u+="a",c.push(t[3])),Fa({type:u,values:c})}function sf(e){e=no(e);let t=e.type==="hsl"||e.type==="hsla"?no(_C(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function O3(e,t){const n=sf(e),r=sf(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function IC(e,t){return e=no(e),t=dg(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Fa(e)}function $3(e,t,n){try{return IC(e,t)}catch{return n&&kc.NODE_ENV!=="production"&&console.warn(n),e}}function fg(e,t){if(e=no(e),t=dg(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Fa(e)}function A3(e,t,n){try{return fg(e,t)}catch{return n&&kc.NODE_ENV!=="production"&&console.warn(n),e}}function pg(e,t){if(e=no(e),t=dg(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Fa(e)}function j3(e,t,n){try{return pg(e,t)}catch{return n&&kc.NODE_ENV!=="production"&&console.warn(n),e}}function MC(e,t=.15){return sf(e)>.5?fg(e,t):pg(e,t)}function _3(e,t,n){try{return MC(e,t)}catch{return n&&kc.NODE_ENV!=="production"&&console.warn(n),e}}function I3(e,t,n,r=1){const o=(c,f)=>Math.round((c**(1/r)*(1-n)+f**(1/r)*n)**r),s=no(e),l=no(t),u=[o(s.values[0],l.values[0]),o(s.values[1],l.values[1]),o(s.values[2],l.values[2])];return Fa({type:"rgb",values:u})}const Oc={black:"#000",white:"#fff"},M3={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Ba={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},za={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},$c={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Ua={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Wa={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ha={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},N3=["mode","contrastThreshold","tonalOffset"],NC={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Oc.white,default:Oc.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},hg={text:{primary:Oc.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Oc.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function LC(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Tc(e.main,o):t==="dark"&&(e.dark=Pc(e.main,s)))}function L3(e="light"){return e==="dark"?{main:Ua[200],light:Ua[50],dark:Ua[400]}:{main:Ua[700],light:Ua[400],dark:Ua[800]}}function D3(e="light"){return e==="dark"?{main:Ba[200],light:Ba[50],dark:Ba[400]}:{main:Ba[500],light:Ba[300],dark:Ba[700]}}function F3(e="light"){return e==="dark"?{main:za[500],light:za[300],dark:za[700]}:{main:za[700],light:za[400],dark:za[800]}}function B3(e="light"){return e==="dark"?{main:Wa[400],light:Wa[300],dark:Wa[700]}:{main:Wa[700],light:Wa[500],dark:Wa[900]}}function z3(e="light"){return e==="dark"?{main:Ha[400],light:Ha[300],dark:Ha[700]}:{main:Ha[800],light:Ha[500],dark:Ha[900]}}function U3(e="light"){return e==="dark"?{main:$c[400],light:$c[300],dark:$c[700]}:{main:"#ed6c02",light:$c[500],dark:$c[900]}}function W3(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ge(e,N3),s=e.primary||L3(t),l=e.secondary||D3(t),u=e.error||F3(t),c=e.info||B3(t),f=e.success||z3(t),p=e.warning||U3(t);function m(b){return E3(b,hg.text.primary)>=n?hg.text.primary:NC.text.primary}const g=({color:b,name:w,mainShade:P=500,lightShade:R=300,darkShade:O=700})=>{if(b=k({},b),!b.main&&b[P]&&(b.main=b[P]),!b.hasOwnProperty("main"))throw new Error(di(11,w?` (${w})`:"",P));if(typeof b.main!="string")throw new Error(di(12,w?` (${w})`:"",JSON.stringify(b.main)));return LC(b,"light",R,r),LC(b,"dark",O,r),b.contrastText||(b.contrastText=m(b.main)),b},S={dark:hg,light:NC};return rr(k({common:k({},Oc),mode:t,primary:g({color:s,name:"primary"}),secondary:g({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:u,name:"error"}),warning:g({color:p,name:"warning"}),info:g({color:c,name:"info"}),success:g({color:f,name:"success"}),grey:M3,contrastThreshold:n,getContrastText:m,augmentColor:g,tonalOffset:r},S[t]),o)}const H3=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function V3(e){return Math.round(e*1e5)/1e5}const DC={textTransform:"uppercase"},FC='"Roboto", "Helvetica", "Arial", sans-serif';function K3(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=FC,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:l=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:f=16,allVariants:p,pxToRem:m}=n,g=ge(n,H3),S=o/14,x=m||(P=>`${P/f*S}rem`),b=(P,R,O,A,$)=>k({fontFamily:r,fontWeight:P,fontSize:x(R),lineHeight:O},r===FC?{letterSpacing:`${V3(A/R)}em`}:{},$,p),w={h1:b(s,96,1.167,-1.5),h2:b(s,60,1.2,-.5),h3:b(l,48,1.167,0),h4:b(l,34,1.235,.25),h5:b(l,24,1.334,0),h6:b(u,20,1.6,.15),subtitle1:b(l,16,1.75,.15),subtitle2:b(u,14,1.57,.1),body1:b(l,16,1.5,.15),body2:b(l,14,1.43,.15),button:b(u,14,1.75,.4,DC),caption:b(l,12,1.66,.4),overline:b(l,12,2.66,1,DC),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return rr(k({htmlFontSize:f,pxToRem:x,fontFamily:r,fontSize:o,fontWeightLight:s,fontWeightRegular:l,fontWeightMedium:u,fontWeightBold:c},w),g,{clone:!1})}const G3=.2,q3=.14,Q3=.12;function dn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${G3})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${q3})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Q3})`].join(",")}const Y3=["none",dn(0,2,1,-1,0,1,1,0,0,1,3,0),dn(0,3,1,-2,0,2,2,0,0,1,5,0),dn(0,3,3,-2,0,3,4,0,0,1,8,0),dn(0,2,4,-1,0,4,5,0,0,1,10,0),dn(0,3,5,-1,0,5,8,0,0,1,14,0),dn(0,3,5,-1,0,6,10,0,0,1,18,0),dn(0,4,5,-2,0,7,10,1,0,2,16,1),dn(0,5,5,-3,0,8,10,1,0,3,14,2),dn(0,5,6,-3,0,9,12,1,0,3,16,2),dn(0,6,6,-3,0,10,14,1,0,4,18,3),dn(0,6,7,-4,0,11,15,1,0,4,20,3),dn(0,7,8,-4,0,12,17,2,0,5,22,4),dn(0,7,8,-4,0,13,19,2,0,5,24,4),dn(0,7,9,-4,0,14,21,2,0,5,26,4),dn(0,8,9,-5,0,15,22,2,0,6,28,5),dn(0,8,10,-5,0,16,24,2,0,6,30,5),dn(0,8,11,-5,0,17,26,2,0,6,32,5),dn(0,9,11,-5,0,18,28,2,0,7,34,6),dn(0,9,12,-6,0,19,29,2,0,7,36,6),dn(0,10,13,-6,0,20,31,3,0,8,38,7),dn(0,10,13,-6,0,21,33,3,0,8,40,7),dn(0,10,14,-6,0,22,35,3,0,8,42,7),dn(0,11,14,-7,0,23,36,3,0,9,44,8),dn(0,11,15,-7,0,24,38,3,0,9,46,8)],X3=["duration","easing","delay"],J3={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},BC={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function zC(e){return`${Math.round(e)}ms`}function Z3(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function eU(e){const t=k({},J3,e.easing),n=k({},BC,e.duration);return k({getAutoHeightDuration:Z3,create:(o=["all"],s={})=>{const{duration:l=n.standard,easing:u=t.easeInOut,delay:c=0}=s;return ge(s,X3),(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof l=="string"?l:zC(l)} ${u} ${typeof c=="string"?c:zC(c)}`).join(",")}},e,{easing:t,duration:n})}const tU={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},nU=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function mg(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:s={}}=e,l=ge(e,nU);if(e.vars)throw new Error(di(18));const u=W3(r),c=ja(e);let f=rr(c,{mixins:w3(c.breakpoints,n),palette:u,shadows:Y3.slice(),typography:K3(u,s),transitions:eU(o),zIndex:k({},tU)});return f=rr(f,l),f=t.reduce((p,m)=>rr(p,m),f),f.unstable_sxConfig=k({},vc,l==null?void 0:l.unstable_sxConfig),f.unstable_sx=function(m){return Aa({sx:m,theme:this})},f}function rU(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function oU(e){return parseFloat(e)}const gg=mg();function xr(){const e=bc(gg);return e[Ea]||e}var Ac={},yg={exports:{}},UC;function iU(){return UC||(UC=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var s in n)if({}.hasOwnProperty.call(n,s)){if(r.includes(s))continue;o[s]=n[s]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(yg)),yg.exports}const WC=$r(o5),sU=$r(i5),aU=$r(d5),lU=$r(dz),cU=$r(J5),uU=$r(oz);var Va=TC;Object.defineProperty(Ac,"__esModule",{value:!0});var dU=Ac.default=EU;Ac.shouldForwardProp=af,Ac.systemDefaultTheme=void 0;var ro=Va(DS()),vg=Va(iU()),HC=vU(WC),fU=sU;Va(aU),Va(lU);var pU=Va(cU),hU=Va(uU);const mU=["ownerState"],gU=["variants"],yU=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function VC(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(VC=function(r){return r?n:t})(e)}function vU(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=VC(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var l=o?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(r,s,l):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function bU(e){return Object.keys(e).length===0}function xU(e){return typeof e=="string"&&e.charCodeAt(0)>96}function af(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const wU=Ac.systemDefaultTheme=(0,pU.default)(),SU=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function lf({defaultTheme:e,theme:t,themeId:n}){return bU(t)?e:t[n]||t}function CU(e){return e?(t,n)=>n[e]:null}function cf(e,t){let{ownerState:n}=t,r=(0,vg.default)(t,mU);const o=typeof e=="function"?e((0,ro.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(s=>cf(s,(0,ro.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:s=[]}=o;let u=(0,vg.default)(o,gU);return s.forEach(c=>{let f=!0;typeof c.props=="function"?f=c.props((0,ro.default)({ownerState:n},r,n)):Object.keys(c.props).forEach(p=>{(n==null?void 0:n[p])!==c.props[p]&&r[p]!==c.props[p]&&(f=!1)}),f&&(Array.isArray(u)||(u=[u]),u.push(typeof c.style=="function"?c.style((0,ro.default)({ownerState:n},r,n)):c.style))}),u}return o}function EU(e={}){const{themeId:t,defaultTheme:n=wU,rootShouldForwardProp:r=af,slotShouldForwardProp:o=af}=e,s=l=>(0,hU.default)((0,ro.default)({},l,{theme:lf((0,ro.default)({},l,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(l,u={})=>{(0,HC.internal_processStyles)(l,$=>$.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:c,slot:f,skipVariantsResolver:p,skipSx:m,overridesResolver:g=CU(SU(f))}=u,S=(0,vg.default)(u,yU),x=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,b=m||!1;let w,P=af;f==="Root"||f==="root"?P=r:f?P=o:xU(l)&&(P=void 0);const R=(0,HC.default)(l,(0,ro.default)({shouldForwardProp:P,label:w},S)),O=$=>typeof $=="function"&&$.__emotion_real!==$||(0,fU.isPlainObject)($)?T=>cf($,(0,ro.default)({},T,{theme:lf({theme:T.theme,defaultTheme:n,themeId:t})})):$,A=($,...T)=>{let _=O($);const M=T?T.map(O):[];c&&g&&M.push(G=>{const W=lf((0,ro.default)({},G,{defaultTheme:n,themeId:t}));if(!W.components||!W.components[c]||!W.components[c].styleOverrides)return null;const H=W.components[c].styleOverrides,z={};return Object.entries(H).forEach(([te,Z])=>{z[te]=cf(Z,(0,ro.default)({},G,{theme:W}))}),g(G,z)}),c&&!x&&M.push(G=>{var W;const H=lf((0,ro.default)({},G,{defaultTheme:n,themeId:t})),z=H==null||(W=H.components)==null||(W=W[c])==null?void 0:W.variants;return cf({variants:z},(0,ro.default)({},G,{theme:H}))}),b||M.push(s);const F=M.length-T.length;if(Array.isArray($)&&F>0){const G=new Array(F).fill("");_=[...$,...G],_.raw=[...$.raw,...G]}const B=R(_,...M);return l.muiName&&(B.muiName=l.muiName),B};return R.withConfig&&(A.withConfig=R.withConfig),A}}function KC(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Tn=e=>KC(e)&&e!=="classes",re=dU({themeId:Ea,defaultTheme:gg,rootShouldForwardProp:Tn}),RU=["theme"];function kU(e){let{theme:t}=e,n=ge(e,RU);const r=t[Ea];return y.jsx(Yz,k({},n,{themeId:r?Ea:void 0,theme:r||t}))}const GC=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Fe(e){return Qz(e)}function PU(e){return Ie("MuiSvgIcon",e)}Ne("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const TU=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],OU=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ie(t)}`,`fontSize${ie(n)}`]};return Le(o,PU,r)},$U=re("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ie(n.color)}`],t[`fontSize${ie(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,s,l,u,c,f,p,m,g,S,x;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,20))||"1.25rem",medium:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,24))||"1.5rem",large:((f=e.typography)==null||(p=f.pxToRem)==null?void 0:p.call(f,35))||"2.1875rem"}[t.fontSize],color:(m=(g=(e.vars||e).palette)==null||(g=g[t.color])==null?void 0:g.main)!=null?m:{action:(S=(e.vars||e).palette)==null||(S=S.action)==null?void 0:S.active,disabled:(x=(e.vars||e).palette)==null||(x=x.action)==null?void 0:x.disabled,inherit:void 0}[t.color]}}),bg=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:l="inherit",component:u="svg",fontSize:c="medium",htmlColor:f,inheritViewBox:p=!1,titleAccess:m,viewBox:g="0 0 24 24"}=r,S=ge(r,TU),x=E.isValidElement(o)&&o.type==="svg",b=k({},r,{color:l,component:u,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:g,hasSvgAsChild:x}),w={};p||(w.viewBox=g);const P=OU(b);return y.jsxs($U,k({as:u,className:ye(P.root,s),focusable:"false",color:f,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n},w,S,x&&o.props,{ownerState:b,children:[x?o.props.children:o,m?y.jsx("title",{children:m}):null]}))});bg.muiName="SvgIcon";function Rt(e,t){function n(r,o){return y.jsx(bg,k({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=bg.muiName,E.memo(E.forwardRef(n))}function xg(e,t){return xg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},xg(e,t)}function qC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xg(e,t)}const QC={disabled:!1},uf=ae.createContext(null);var AU=function(t){return t.scrollTop},jc="unmounted",Fs="exited",Bs="entering",Ka="entered",wg="exiting",Lr=function(e){qC(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var l=o,u=l&&!l.isMounting?r.enter:r.appear,c;return s.appearStatus=null,r.in?u?(c=Fs,s.appearStatus=Bs):c=Ka:r.unmountOnExit||r.mountOnEnter?c=jc:c=Fs,s.state={status:c},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var l=o.in;return l&&s.status===jc?{status:Fs}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var l=this.state.status;this.props.in?l!==Bs&&l!==Ka&&(s=Bs):(l===Bs||l===Ka)&&(s=wg)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,l,u;return s=l=u=o,o!=null&&typeof o!="number"&&(s=o.exit,l=o.enter,u=o.appear!==void 0?o.appear:l),{exit:s,enter:l,appear:u}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===Bs){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:vs.findDOMNode(this);l&&AU(l)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fs&&this.setState({status:jc})},n.performEnter=function(o){var s=this,l=this.props.enter,u=this.context?this.context.isMounting:o,c=this.props.nodeRef?[u]:[vs.findDOMNode(this),u],f=c[0],p=c[1],m=this.getTimeouts(),g=u?m.appear:m.enter;if(!o&&!l||QC.disabled){this.safeSetState({status:Ka},function(){s.props.onEntered(f)});return}this.props.onEnter(f,p),this.safeSetState({status:Bs},function(){s.props.onEntering(f,p),s.onTransitionEnd(g,function(){s.safeSetState({status:Ka},function(){s.props.onEntered(f,p)})})})},n.performExit=function(){var o=this,s=this.props.exit,l=this.getTimeouts(),u=this.props.nodeRef?void 0:vs.findDOMNode(this);if(!s||QC.disabled){this.safeSetState({status:Fs},function(){o.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:wg},function(){o.props.onExiting(u),o.onTransitionEnd(l.exit,function(){o.safeSetState({status:Fs},function(){o.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,l=!0;return this.nextCallback=function(u){l&&(l=!1,s.nextCallback=null,o(u))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var l=this.props.nodeRef?this.props.nodeRef.current:vs.findDOMNode(this),u=o==null&&!this.props.addEndListener;if(!l||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],f=c[0],p=c[1];this.props.addEndListener(f,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===jc)return null;var s=this.props,l=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var u=ge(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ae.createElement(uf.Provider,{value:null},typeof l=="function"?l(o,u):ae.cloneElement(ae.Children.only(l),u))},t}(ae.Component);Lr.contextType=uf,Lr.propTypes={};function Ga(){}Lr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ga,onEntering:Ga,onEntered:Ga,onExit:Ga,onExiting:Ga,onExited:Ga},Lr.UNMOUNTED=jc,Lr.EXITED=Fs,Lr.ENTERING=Bs,Lr.ENTERED=Ka,Lr.EXITING=wg;function jU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sg(e,t){var n=function(s){return t&&E.isValidElement(s)?t(s):s},r=Object.create(null);return e&&E.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function _U(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var s in e)s in t?o.length&&(r[s]=o,o=[]):o.push(s);var l,u={};for(var c in t){if(r[c])for(l=0;l<r[c].length;l++){var f=r[c][l];u[r[c][l]]=n(f)}u[c]=n(c)}for(l=0;l<o.length;l++)u[o[l]]=n(o[l]);return u}function zs(e,t,n){return n[t]!=null?n[t]:e.props[t]}function IU(e,t){return Sg(e.children,function(n){return E.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:zs(n,"appear",e),enter:zs(n,"enter",e),exit:zs(n,"exit",e)})})}function MU(e,t,n){var r=Sg(e.children),o=_U(t,r);return Object.keys(o).forEach(function(s){var l=o[s];if(E.isValidElement(l)){var u=s in t,c=s in r,f=t[s],p=E.isValidElement(f)&&!f.props.in;c&&(!u||p)?o[s]=E.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:zs(l,"exit",e),enter:zs(l,"enter",e)}):!c&&u&&!p?o[s]=E.cloneElement(l,{in:!1}):c&&u&&E.isValidElement(f)&&(o[s]=E.cloneElement(l,{onExited:n.bind(null,l),in:f.props.in,exit:zs(l,"exit",e),enter:zs(l,"enter",e)}))}}),o}var NU=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},LU={component:"div",childFactory:function(t){return t}},Cg=function(e){qC(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var l=s.handleExited.bind(jU(s));return s.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,s){var l=s.children,u=s.handleExited,c=s.firstRender;return{children:c?IU(o,u):MU(o,l,u),firstRender:!1}},n.handleExited=function(o,s){var l=Sg(this.props.children);o.key in l||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(u){var c=k({},u.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,s=o.component,l=o.childFactory,u=ge(o,["component","childFactory"]),c=this.state.contextValue,f=NU(this.state.children).map(l);return delete u.appear,delete u.enter,delete u.exit,s===null?ae.createElement(uf.Provider,{value:c},f):ae.createElement(uf.Provider,{value:c},ae.createElement(s,u,f))},t}(ae.Component);Cg.propTypes={},Cg.defaultProps=LU;const df=e=>e.scrollTop;function Vo(e,t){var n,r;const{timeout:o,easing:s,style:l={}}=e;return{duration:(n=l.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=l.transitionTimingFunction)!=null?r:typeof s=="object"?s[t.mode]:s,delay:l.transitionDelay}}function DU(e){return Ie("MuiCollapse",e)}Ne("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const FU=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],BU=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Le(r,DU,n)},zU=re("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>k({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&k({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),UU=re("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>k({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),WU=re("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>k({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Eg=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiCollapse"}),{addEndListener:o,children:s,className:l,collapsedSize:u="0px",component:c,easing:f,in:p,onEnter:m,onEntered:g,onEntering:S,onExit:x,onExited:b,onExiting:w,orientation:P="vertical",style:R,timeout:O=BC.standard,TransitionComponent:A=Lr}=r,$=ge(r,FU),T=k({},r,{orientation:P,collapsedSize:u}),_=BU(T),M=xr(),F=hi(),B=E.useRef(null),G=E.useRef(),W=typeof u=="number"?`${u}px`:u,H=P==="horizontal",z=H?"width":"height",te=E.useRef(null),Z=Gt(n,te),X=he=>Me=>{if(he){const de=te.current;Me===void 0?he(de):he(de,Me)}},N=()=>B.current?B.current[H?"clientWidth":"clientHeight"]:0,Y=X((he,Me)=>{B.current&&H&&(B.current.style.position="absolute"),he.style[z]=W,m&&m(he,Me)}),ce=X((he,Me)=>{const de=N();B.current&&H&&(B.current.style.position="");const{duration:ke,easing:Qe}=Vo({style:R,timeout:O,easing:f},{mode:"enter"});if(O==="auto"){const He=M.transitions.getAutoHeightDuration(de);he.style.transitionDuration=`${He}ms`,G.current=He}else he.style.transitionDuration=typeof ke=="string"?ke:`${ke}ms`;he.style[z]=`${de}px`,he.style.transitionTimingFunction=Qe,S&&S(he,Me)}),L=X((he,Me)=>{he.style[z]="auto",g&&g(he,Me)}),se=X(he=>{he.style[z]=`${N()}px`,x&&x(he)}),Oe=X(b),ve=X(he=>{const Me=N(),{duration:de,easing:ke}=Vo({style:R,timeout:O,easing:f},{mode:"exit"});if(O==="auto"){const Qe=M.transitions.getAutoHeightDuration(Me);he.style.transitionDuration=`${Qe}ms`,G.current=Qe}else he.style.transitionDuration=typeof de=="string"?de:`${de}ms`;he.style[z]=W,he.style.transitionTimingFunction=ke,w&&w(he)}),xe=he=>{O==="auto"&&F.start(G.current||0,he),o&&o(te.current,he)};return y.jsx(A,k({in:p,onEnter:Y,onEntered:L,onEntering:ce,onExit:se,onExited:Oe,onExiting:ve,addEndListener:xe,nodeRef:te,timeout:O==="auto"?null:O},$,{children:(he,Me)=>y.jsx(zU,k({as:c,className:ye(_.root,l,{entered:_.entered,exited:!p&&W==="0px"&&_.hidden}[he]),style:k({[H?"minWidth":"minHeight"]:W},R),ref:Z},Me,{ownerState:k({},T,{state:he}),children:y.jsx(UU,{ownerState:k({},T,{state:he}),className:_.wrapper,ref:B,children:y.jsx(WU,{ownerState:k({},T,{state:he}),className:_.wrapperInner,children:s})})}))}))});Eg.muiSupportAuto=!0;function HU(e){return Ie("MuiPaper",e)}Ne("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const VU=["className","component","elevation","square","variant"],KU=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Le(s,HU,o)},GU=re("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return k({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&k({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${mt("#fff",GC(t.elevation))}, ${mt("#fff",GC(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),oo=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPaper"}),{className:o,component:s="div",elevation:l=1,square:u=!1,variant:c="elevation"}=r,f=ge(r,VU),p=k({},r,{component:s,elevation:l,square:u,variant:c}),m=KU(p);return y.jsx(GU,k({as:s,ownerState:p,className:ye(m.root,o),ref:n},f))}),qU=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],QU=["component","slots","slotProps"],YU=["component"];function Rg(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:s,getSlotOwnerState:l,internalForwardedProps:u}=t,c=ge(t,qU),{component:f,slots:p={[e]:void 0},slotProps:m={[e]:void 0}}=s,g=ge(s,QU),S=p[e]||r,x=bC(m[e],o),b=vC(k({className:n},c,{externalForwardedProps:e==="root"?g:void 0,externalSlotProps:x})),{props:{component:w},internalRef:P}=b,R=ge(b.props,YU),O=Gt(P,x==null?void 0:x.ref,t.ref),A=l?l(R):{},$=k({},o,A),T=e==="root"?w||f:w,_=La(S,k({},e==="root"&&!f&&!p[e]&&u,e!=="root"&&!p[e]&&u,R,T&&{as:T},{ref:O}),$);return Object.keys(A).forEach(M=>{delete _[M]}),[S,_]}function XU(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:l,in:u,onExited:c,timeout:f}=e,[p,m]=E.useState(!1),g=ye(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),S={width:l,height:l,top:-(l/2)+s,left:-(l/2)+o},x=ye(n.child,p&&n.childLeaving,r&&n.childPulsate);return!u&&!p&&m(!0),E.useEffect(()=>{if(!u&&c!=null){const b=setTimeout(c,f);return()=>{clearTimeout(b)}}},[c,u,f]),y.jsx("span",{className:g,style:S,children:y.jsx("span",{className:x})})}const io=Ne("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),JU=["center","classes","className"];let ff=e=>e,YC,XC,JC,ZC;const kg=550,ZU=80,e6=Bi(YC||(YC=ff`
|
|
22
|
+
`);return s&&s.insertRule(l,0),r},Id=function(){return Id=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Id.apply(this,arguments)},O4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},$4=T4("GridLoader","0% {transform: scale(1)} 50% {transform: scale(0.5); opacity: 0.7} 100% {transform: scale(1); opacity: 1}","grid"),ui=function(e){return Math.random()*e};function A4(e){var t=e.loading,n=t===void 0?!0:t,r=e.color,o=r===void 0?"#000000":r,s=e.speedMultiplier,l=s===void 0?1:s,u=e.cssOverride,c=u===void 0?{}:u,f=e.size,p=f===void 0?15:f,m=e.margin,g=m===void 0?2:m,S=O4(e,["loading","color","speedMultiplier","cssOverride","size","margin"]),x=$m(p),b=$m(g),w=parseFloat(x.value.toString())*3+parseFloat(b.value.toString())*6,P=Id({width:"".concat(w).concat(x.unit),fontSize:0,display:"inline-block"},c),R=function(O){return{display:"inline-block",backgroundColor:o,width:"".concat(Am(p)),height:"".concat(Am(p)),margin:Am(g),borderRadius:"100%",animationFillMode:"both",animation:"".concat($4," ").concat((O/100+.6)/l,"s ").concat(O/100-.2,"s infinite ease")}};return n?E.createElement("span",Id({style:P},S,{ref:function(O){O&&O.style.setProperty("width","".concat(w).concat(x.unit),"important")}}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))}),E.createElement("span",{style:R(ui(100))})):null}const j4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAALMUlEQVR4nOyde1BTZ97Hv5AEUbnESwGRCkGCAi9yUZG2oFYqtn3bnV3W1hZ72Vqdam92esGu2m23VWdtd9Z29tJ1t7P+0+ls2213y/0WuVuxaKlUyjUBCgQCYriThISdcwosYoCc5DznnBA+M46B5Dy/Z/LhOc/9OeKxsTHMRElra3iWUrnnYrs6oUGrDQXgMeOHecQJQObuXyJs5Upe81HZqcETmZnQ6nTT3+oLkkqrY31XKe4LDPw03s+vaqY0nMwJyVGptp4uv3SyQauNI5Bv1kkOCcHvtm3lNQ8FLS04mJuH4dHROT8bJJWWHtkSc2yXTFY8/b2bhBiMRqfXCove/rK+/igAZ/azzT5uEglK9yZjuasrb3nIUanwbF4+DCYTk8tMSXL5qfe2b/uNRCSalCCeeEHJeCY376P85uZ9bGeYJI+HhfIq44vaOrxaWAjjLLf+GXD+sr7+eJ9e73s2cef+CSmTpYAqGfYmw1Ukwv4NG3iLf66qCi8XFFgjYxLqO6e++4mfaSE5KlX8+G3Krng+Ohq3LVnCS+z3KyrwZtkFWK/if1DfPeUAE0JOl186ZS91xgS3u7vjYGQEL7F/W3YBf6i4zGaSzuMOIKaatvbSmppKSsxmuIhEnMY0mkw4UlSMz2prWU+bckC5cM5sVO5hPXXChK9ciQflck5j6o1GHC0uISJjAsqFuFytTiAWgQBUJ/DtuLs4vb8OGQx4Pj8f+c0tRONQLsQNWm0I0Sgss0sWgI0+PpzF69Xp8KvMLFzu7CQei3JB9UM8iUdikeeiojiL1TM8jEfT0/HD9R6uQnraVcsqMSAAEV5enMTq0+nweEYmlzJoxJxGswGqE/jGHbGcxGrq7cXT2dmov6HlJN5U7EbIgQ0b4O9J/u56tasLT2RkomdkhHgsc9iFkOWurjgYFUk8TqVGg+T0dAzoDcRjzYRd1CGHN0bD3cWFaIzvu7vpksGnDNhDCQn09MRjYWFEY+Q1NeFFxXkMGviVAXsQ8tKmjZA4kyvIH1+rxrGSElYGCdlA0EKCpFI8sHYtsfQ/vnYNR0tKiaVvDYKuQ17fEgMxodLxSXU1jgtMBoRcQrb6+SFRJmM9XROA98rL8edvK1lPmw0EKUTk5IS37rqT9XRHTSa8pDiP1MZG1tNmC0Hesh5Zvx5By5axmiZVMl4uKBC0DAixhHi4uOCVmM2spjmg1+Pw+fPIa2pmNV0SCE7I3tAQrFy8mLX0boyM4Nm8PJS1tbOWJkkEJcRNIsGhSPaGSDSDQ9iTloZGLfeDhNYiKCGUDCmLa6yWSMT45IEHJn82jZmgZ7aYbVb++UMNPqxkt7UmGCH+Hh44EMHuGis3Fxf6Hwn+/t1V1mVASELeuCMWrmLBZGdWzlRU4Ay7y4AmEcQ3sNnHh0gnkAQnv/4aZ7+7Six9QQg5FsvNTKAtUDXPuxfLicqAEITcKwtAtI8339mYFaqHn1JYhH/V1RGPxasQJ6r3vGkTn1mYE53RSPdjuOpU8irkZ0FBWL9iBZ9ZmJUhgwH7s3NQ2tbGWUzexrJcnJ3xGstDJGxiMJnoksGlDPBZQsYAPJqWTjd1F4lE9DKfRROvxSIsEt38+v8DAxHpzc2arBsjI/T2tK/buR9u4U0I9Rf4Y3+/RZ+lmsUpHJUm9cAAktMzeBtu4b2VNRcrXF3xl507IeFg60Fbfz8eTk2z+A+FBIKcD5nK6W3b4L2U/C6prqEhPJaRwasMCL2EHN64EYmyAOJxanp68HRWNu8yIGQhD64NxCubyfdRvlGr8WRWFu8L5CYQpJB1y5fhve3bice51K6mT14YsmCzP1dwXoe4zLGsx00iwd8SE7FEIiGaj8pODZ7KzhaUDPAhZPe6dVg6y5f97vZtkEmlRPOQpVThkbQ09Ov1RONYA+dCqNvRz+VBZt87FBlBdKUixlcrHszNFVzJmIBzIX7u7nSvezpxq1cjJSaGaOyPr1XTS0eFso7XHJxX6gGenvR07WKxCMOjRvp3q93c8Kd7EiAiuKj6s5oaHC8V3tLR6XBaQhaLxZB5etIb/qO8fpoDoSrxc/fdi+UsLv2ZzpmKCrxaWASTDWeScAWnQqK8vSYXT69fvpz+/0R8HLEheKPJhFcLConNf5OAUyF3+a6efO3jthQPrQtGUnAwsXjHS0qJnrxAAk7rkF1ThkHi/fzwVHg4kTgjo6NIKSrCf+obiKRPEs6EhK1YgeDx2xT9M6HzEQf0euzLysZFtZpI+qThTMjD69cRj9Gn09EjtpWaLuKxSMFJHUL1zKkeOkmGDAa6ZNizDHBVQh4PDSW6rbljcBD7s7NxtaubWAyuIC5kjbs7DhHc9N/S14eHU1PRPjBILAaXEL9lHY2NxTJCp4ZSJeOx9Ix5IwOkS8gv5EG4f+2t41ZsQJWM5LR0tAhglo9NiAlJ8F+DdwlNMl3p6MSBnBx0DQ8TSZ9PiAhJDPDHh4mJRE5guNDWRp/wNmI0sp62EGD9G0sOCflp2Q4BGd+oO/B0ds68lQE2S4j3kiV4Jz4O9xLa51HS2ooD2TmCnVhiC5uFUP2LQ5ER2BceTmwe/LOaGvy6uITpYfd2iU1C7vT1xQcJO+C9dCl7OZrGuaoq+khvR8FqIbuDg+kFCaQOh8H4lOtbDiQD1gpJWLMGv99xt9kWgdFkop8WYOsx4H+trMSpi+U2pWGPMP7z9vfwwJkdO8xeeLmjkz5a1RYooW+WljmkDDAV4gTg/R13Q+q66Jb3MpVKPPTVV4j08rKpdKQUFeHc999bfb29w+iWdX9goNljvq91d+PFfAW9iODREOtOLqdKxuvFxfi8lvzGSiHDSMiBGZ5mc6y4hD6y4h7/Nbjdw51xJqjm7GGFAumNSsbXzjcsFkLVHea2L/+7rh5XNBr6dvZCdDTjDPTqdPRKQns5rYc0FgvZNMMTCf545Qr9/5NhYYjyZrbffNBgoM/K/VajYXTdfMZiIb5ut3b+Kjs1aNBq6RPg3opn9pAe7cgInszMWpAxDYuF6EZvHdAra2/Dibg4PPF/zA46burtpee/G+zoHCuusFiIuS9vb0io2SbwbCi1Wvo2Nd8mltjC4n5IWVsbtCM3P+OVqQyVthd7UtMWZMyCxUJ0RiPOfmf9gV0116/jodRUdA4NWZ2GI8Cop25tP6Fcrcbur1KhWZAxJ4w6hvF+fowD5KhUOKw4P+8nltiCkZCI225jlHhBSwuey1fQzwBcwDIYCZFJLX/kUKZSiRfyFQ4xy8cmjIR4Wfgg4C/q6uiNMrY8RdlRYSRkkWjuj2c2KvFKQaFdbB8TIoxaWXPVBbmqJjyvyF+QYQOMhMzWbC1rbaNPYBs1LciwBUZCanuum/395Y4O+kGMbB7j7agwEmJuzqK1v58+KHKhn8EOjIQU/thC71SaYECvx1NZWbjO01Mx5yOUkD5LPzxoGMXn49uMqZsT1c+o7blBMn+ORq9zkFRazeSKDy5foSeXTly4AEUL2Qe+OxpBUukPzltWrVIwuah7eBh70zPw0dUqcjlzUCgXzvevDfyU6YVV3fa/uVKIUC6c4/38qoKkUuEfkzPPoRxQLuhW1pEtMUfH6+kF+ME07uCnZu8umawkSS4/xXeuHJUkufwk5YB67TQ2Pu5kMBqdnsnN+yi/uXkf3xl0JO7x9//H2cSd+yUiES1ismNI/YJ6I0kuP7Fw++IEU5Jc/s5UGZhaQqaSo1JtPV1+6WSDVsts9dsCFkFV4Ee2xBzbJZMVT3/PrJAJSlpbw7OUyj0X29UJDVptKAAP0pmdp/RRHfBY31WK+wIDP6VaUzN98L8BAAD//6zjBbZXWKjWAAAAAElFTkSuQmCC",_4=()=>(ae.useEffect(()=>(document.body.style.margin="0",()=>{document.body.style.margin=""}),[]),y.jsxs("div",{style:{height:"100vh",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",gap:"1rem"},className:"test",children:[y.jsx("img",{src:j4,alt:"Luminix"}),y.jsx(A4,{color:"#1d9798"})]})),jm={booted:!1,router:null},I4=ae.createContext(jm),rS=ae.createContext({form:null});function Fi(){const{form:e}=ae.useContext(rS);return e}function Ls(e="default"){const[t,n]=ae.useState({});return ae.useEffect(()=>{const r=um().bag(e).on("change",({source:o})=>{n(Object.entries(o.all()).reduce((s,[l,u])=>(s[_e.camel(l+"Error")]=u,s),{}))});return()=>{r(),um().clear(e)}},[e]),t}const M4=e=>{const{label:t,options:n,className:r,...o}=e,{selectProps:s,errorBag:l}=Fi(),{[`${_e.camel(e.name)}Error`]:u}=Ls(l);return y.jsxs(y.Fragment,{children:[y.jsxs("p",{children:[t&&y.jsxs(y.Fragment,{children:[y.jsx("label",{className:"luminix-form-label luminix-form-select-label".trim(),htmlFor:e.id,children:t}),y.jsx("br",{})]}),y.jsx("select",{className:`luminix-form-input luminix-form-select-input ${r??""}`.trim(),...s(e.name),...o,children:n.map(c=>y.jsx("option",{value:c.value,children:c.label},c.value))})]}),u&&y.jsx("p",{children:u})]})},N4=e=>{const{label:t,options:n,className:r,id:o,...s}=e,{radioProps:l,errorBag:u}=Fi(),{[`${_e.camel(e.name)}Error`]:c}=Ls(u);return y.jsxs(y.Fragment,{children:[t&&y.jsx(y.Fragment,{children:y.jsx("label",{className:"luminix-form-label luminix-form-radio-label",children:t})}),n.map(({value:f,label:p})=>y.jsxs("p",{children:[y.jsx("input",{id:o?`${o}::${f}`:void 0,className:`luminix-form-input luminix-form-radio-input ${r??""}`.trim(),...l(e.name,f),...s}),y.jsx("label",{htmlFor:o?`${o}::${f}`:void 0,children:p})]},f)),c&&y.jsx("p",{children:c})]})},L4=e=>{const{label:t,className:n,...r}=e,{checkboxProps:o,errorBag:s}=Fi(),{[`${_e.camel(e.name)}Error`]:l}=Ls(s);return y.jsxs(y.Fragment,{children:[y.jsxs("p",{children:[y.jsx("input",{className:`luminix-form-input luminix-form-checkbox-input ${n??""}`.trim(),...o(e.name),...r}),t&&y.jsx("label",{htmlFor:e.id,className:"luminix-form-label luminix-form-checkbox-label",children:t})]}),l&&y.jsx("p",{children:l})]})},D4=e=>{const{label:t,type:n,sanitize:r,className:o,...s}=e,{textareaProps:l,errorBag:u}=Fi(),{[`${_e.camel(e.name)}Error`]:c}=Ls(u);return y.jsxs(y.Fragment,{children:[y.jsxs("p",{children:[t&&y.jsxs(y.Fragment,{children:[y.jsx("label",{className:"luminix-form-label luminix-form-textarea-label".trim(),htmlFor:e.id,children:t}),y.jsx("br",{})]}),y.jsx("textarea",{className:`luminix-form-input luminix-form-textarea-input ${o??""}`.trim(),...l(e.name,r),...s})]}),c&&y.jsx("p",{className:"luminix-form-error",children:c})]})},F4=e=>{const{label:t,className:n,...r}=e,{datetimeLocalProps:o,errorBag:s}=Fi(),{[`${_e.camel(e.name)}Error`]:l}=Ls(s);return y.jsxs(y.Fragment,{children:[y.jsxs("p",{children:[t&&y.jsxs(y.Fragment,{children:[y.jsx("label",{className:"luminix-form-label luminix-form-datetime-local-label".trim(),htmlFor:e.id,children:t}),y.jsx("br",{})]}),y.jsx("input",{className:`luminix-form-input luminix-form-datetime-local-input ${n??""}`.trim(),...o(e.name),...r,type:"datetime-local"})]}),l&&y.jsx("p",{className:"luminix-form-error",children:l})]})},B4=e=>{const{label:t,sanitize:n,className:r,...o}=e,{inputProps:s,errorBag:l}=Fi(),{[`${_e.camel(e.name)}Error`]:u}=Ls(l);return y.jsxs(y.Fragment,{children:[y.jsxs("p",{children:[t&&y.jsxs(y.Fragment,{children:[y.jsx("label",{className:`luminix-form-label luminix-form-${e.type}-label`.trim(),htmlFor:e.id,children:t}),y.jsx("br",{})]}),y.jsx("input",{className:`luminix-form-input luminix-form-${e.type}-input ${r??""}`.trim(),...s(e.name,n),...o})]}),u&&y.jsx("p",{className:"luminix-form-error",children:u})]})};class z4{getFormInputComponent(t){return this.replaceFormInputComponent(this.switchInputType(t),t)}getDefaultInputsForModel(t,n=[]){const r=t.getType(),o=tr(kd.schema(r).attributes),s=t.fillable.flatMap(l=>this.getDefaultInputProps(this.makeFormAttributesFor(l,{attributes:o,confirmed:n,item:t}),{attributes:o,confirmed:n,item:t}));return this[`selectDefaultInputsFor${_e.studly(r)}`](s,t)}switchInputType(t){return t==="select"?M4:t==="radio"?N4:t==="checkbox"?L4:t==="textarea"?D4:t==="datetime-local"?F4:B4}makeFormAttributesFor(t,{attributes:n,item:r,confirmed:o}){const s=(l=>{var u;const c=n.where("name",l).first(),f=`luminix-form-${r.getType()}-${r.getKey()||"new"}-${l}`;if(!c)return null;const p=this.mapAttributeCastToInputTypes({date:"date",datetime:"datetime-local",timestamp:"datetime-local",hashed:"password",int:"number",float:"number",boolean:"checkbox"},r,c);if(c.cast&&c.cast in p)return{name:l,type:p[c.cast],label:_e.human(l),id:f};const m=this.mapAttributeTypeToInputTypes({"tinyint(1)":"checkbox",int:"number",float:"number",timestamp:"datetime-local",text:"textarea",tinytext:"textarea",mediumtext:"textarea",longtext:"textarea",date:"date"},r,c);if(c.type&&c.type in m)return{name:l,type:m[c.type],label:_e.human(l),id:f};if((u=c.type)!=null&&u.startsWith("enum(")){const g=c.type.match(/enum\((.*)\)/);if(g)return{name:l,type:"select",label:_e.human(l),id:f,options:[{label:"-- Select a value --",value:""},...g[1].split(",").map(S=>{const x=S.replace(/['"]+/g,"");return{label:_e.human(x.trim()),value:x.trim()}})]}}return{name:l,type:"text",label:_e.human(l),id:f}})(t);return o.includes(t)&&s?[s,{...s,name:`${t}_confirmation`,label:`Confirm ${s.label}`,id:`luminix-form-${r.getType()}-${r.getKey()||"new"}-${t}-confirmation`}]:s}}const U4=Yl(z4);var oS,iS;class W4 extends(iS=Ed,oS=Symbol.toStringTag,iS){constructor(){super(...arguments),k4(this,oS,"ReactServiceProvider")}register(){this.app.singleton("forms",()=>new U4)}boot(){this.registerUrlParamReplacementForReactRouter()}registerUrlParamReplacementForReactRouter(){fm.reducer("replaceRouteParams",t=>{const n=t.replace(/^\/+|\/+$/g,""),r=/{([^}]+)}/g;return`/${n.replace(r,":$1")}`})}}const H4=({routes:e,config:t={},providers:n=[],onInit:r,onBooting:o,onBooted:s,onFlushing:l,onFlushed:u,onReady:c,fallbackElement:f=y.jsx(_4,{}),...p})=>{const[m,g]=ae.useState(jm);return ae.useEffect(()=>{const S=Zr.withProviders([W4,...n]);return t&&S.withConfiguration(t),r&&S.on("init",r),o&&S.on("booting",o),s&&S.on("booted",s),c&&S.on("ready",c),l&&S.on("flushing",l),u&&S.on("flushed",u),S.on("ready",()=>{const x=fm.domRouterOptions({});g({booted:!0,router:o4(e(S),x)})}),S.create(),()=>{S.flush(),g(jm)}},[t,s,o,u,l,r,c,n,e]),y.jsx(I4.Provider,{value:m,children:m.router?y.jsx(d4,{router:m.router,fallbackElement:f,...p}):f})};function sS(e,t){return t[e]()}function V4(e,t={}){const{replaceLinksWith:n,method:r="get",page:o=1,id:s}=t,[l,u]=ae.useState({loading:!0,error:null}),c=ae.useCallback(()=>{if(u(({meta:p,links:m})=>({loading:!0,error:null,meta:p,links:m})),!e)return;const f=sS(r,{get:()=>[o,n],all:()=>[],first:()=>[],find:()=>[s]});if(!f){dm().error(`useQuery: method '${r}' is not supported`);return}e[r](...f).then(p=>{const m=sS(r,{get:()=>p.data,all:()=>p,first:()=>p?tr([p]):null,find:()=>p?tr([p]):null});u({loading:!1,error:null,data:m??void 0,...r==="get"?p:void 0})}).catch(p=>{u({loading:!1,error:p}),dm().error(p)})},[e,o,n,r,s]);return ae.useEffect(c,[c]),{...l,refresh:c}}function K4(e){const[t,n]=eo(),[r,o]=ae.useState(null),s=Ms(),l=t.has("page")?Number(t.get("page")):1;ae.useEffect(()=>{o(e().include(t))},[t,e]);const u=ae.useMemo(()=>`${s.pathname}?${t.toString()}`,[s.pathname,t]),c=V4(r,{replaceLinksWith:u,page:l}),{meta:{current_page:f,last_page:p}={}}=c;return ae.useEffect(()=>{f&&p&&f>p&&n(m=>(m.set("page",p.toString()),m),{replace:!0})},[f,p,n]),c}const aS=ae.createContext({refresh:()=>{},loading:!1,error:new Error("Trying to access QueryContext outside of QueryProvider")}),G4=({factory:e,children:t})=>{const n=K4(e);return y.jsx(aS.Provider,{value:n,children:t})};class q4{getFacadeAccessor(){return"forms"}}const Md=Fo(q4,Zr);function Q4(e,t){if(V1(e)){const n=Object.entries(e.json("errors")).reduce((r,[o,s])=>(r[o]=s.join(", "),r),{});um().set(n,t)}}function lS(e){return e}const Y4=lm.throttle((...e)=>{dm().debug(...e)},1e3);function X4(e){const{initialValues:t,onSubmit:n,onChange:r,onError:o,onSuccess:s,action:l,transformPayload:u=lS,tap:c=lS,preventDefault:f=!0,errorBag:p="default",method:m,autoSave:g=!1,debounce:S=1e3,debug:x=!1}=e,b=ae.useRef(),[w,P]=ae.useState(t),[R,O]=ae.useState(!1),A=ae.useCallback(lm.debounce($=>{var T;g&&((T=b.current)==null||T.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0})))},S),[S,g]);return ae.useEffect(()=>{A(w)},[A,w]),ae.useMemo(()=>{const $=(W,H)=>{P(z=>{const te=W==="."?H:$h.produce(z,Z=>{qe.set(Z,W,H)});return r&&r(te),x&&Y4("Form data changed",{form:b.current,path:W,value:H,data:te,prev:z}),te})},T=(W,H=z=>z.target.value)=>({name:W,value:qe.get(w,W,"")??"",onChange:z=>{$(W,H(z))}}),_=W=>({name:W,value:(()=>{const H=qe.get(w,W);return H?am.toDateTimeLocal(H):""})(),onChange:H=>{const{value:z}=H.target;$(W,z?new Date(z).toISOString():null)}}),M=W=>({name:W,value:qe.get(w,W,"")??"",onChange:H=>{$(W,H.target.value)}}),F=W=>({name:W,checked:!!qe.get(w,W),onChange:H=>{$(W,H.target.checked)}}),B=(W,H)=>({name:W,value:H,checked:qe.get(w,W)===H,onChange:z=>{$(W,z.target.value)}}),G=async W=>{W.preventDefault();try{O(!0);let H=!0;if(n&&(H=await n(w)),H!==!1&&l){const z=await c(OD.getClient())[m??"get"](l,u(w));z.successful()&&s?s(z):z.failed()&&(Q4(z,p),o&&o(z))}}catch(H){o&&o(H)}finally{O(!1)}};return{data:w,setProp:$,formProps:()=>({onSubmit:f?G:void 0,action:l,method:m==null?void 0:m.toUpperCase(),ref:b}),inputProps:T,textareaProps:T,selectProps:M,checkboxProps:F,radioProps:B,datetimeLocalProps:_,isSubmitting:R,form:b.current,errorBag:p,...Md.expandUseFormProps({},w)}},[w,r,R,n,l,m,x,u,s,p,o,f,c])}function Nd(e){const t=ae.useMemo(()=>Md.getFormInputComponent(e.type),[e.type]),{errorBag:n}=Fi(),{[`${_e.camel(e.name)}Error`]:r}=Ls(n);return y.jsx("div",{className:`luminix-form-control luminix-form-${e.type}-control ${r?"luminix-form-control-error":""}`,children:y.jsx(t,{...e})})}Nd.displayName="Input";function cS(e){const{initialValues:t,onSubmit:n,onChange:r,onError:o,onSuccess:s,action:l,transformPayload:u,preventDefault:c=!0,errorBag:f,method:p,children:m,autoSave:g,debounce:S,debug:x,className:b,...w}=e,P=X4({initialValues:t,onSubmit:n,onChange:r,onError:o,onSuccess:s,action:l,transformPayload:u,preventDefault:c,errorBag:f,method:p,autoSave:g,debounce:S,debug:x}),{data:R,...O}=P;return y.jsx(rS.Provider,{value:{form:P},children:y.jsx("form",{className:`luminix-form ${b||""}`.trim(),...w,...P.formProps(),children:typeof m=="function"?m(R,O):m})})}cS.Input=Nd;const _m=ae.createContext({item:null});function J4(){const{item:e}=ae.useContext(_m);return e}function uS({confirmed:e=[]}){const t=J4();return ae.useMemo(()=>Md.getDefaultInputsForModel(t,e).map(n=>n&&y.jsx(Nd,{...n},n.name)),[t,...e])}function Im({children:e,className:t,...n}){return y.jsx("button",{type:"submit",className:`luminix-form-submit ${t??""}`.trim(),...n,children:e})}Im.displayName="Submit";const Z4=()=>({});function Mm(){const{item:e}=ae.useContext(_m),{setProp:t}=Fi();return ae.useEffect(()=>e.on("save",()=>{t(".",e.toJson())}),[e,t]),null}function Ld({item:e,children:t,onSubmit:n,onSuccess:r,onError:o,getSaveOptions:s=Z4,hideSubmit:l=!1,submitText:u="Submit",confirmed:c=[],...f}){const p=e.getRouteForSave(),m=ae.useMemo(()=>typeof c=="string"?[c]:c,[c]),g=ae.useCallback(async S=>{let x=!0;if(n&&(x=await n(S)),e.fill(S),x!==!1){const{additionalPayload:b,...w}=s(S),P={additionalPayload:{...b,...qe.pick(S,...m.map(R=>`${R}_confirmation`))},...w};e.save(P).then(R=>{r&&R&&r(R)}).catch(o)}return!1},[e,n,r,o,s,m]);return y.jsx(_m.Provider,{value:{item:e},children:y.jsx(cS,{initialValues:e.toJson(),onSubmit:g,action:ww().url(p),method:ww().methods(p)[0],errorBag:e.getErrorBag(e.exists?"update":"store"),...f,children:(S,x)=>t?typeof t=="function"?y.jsxs(y.Fragment,{children:[y.jsx(Mm,{}),t(S,x)]}):y.jsxs(y.Fragment,{children:[y.jsx(Mm,{}),t]}):y.jsxs(y.Fragment,{children:[y.jsx(Mm,{}),y.jsx(uS,{confirmed:m}),!l&&y.jsx(Im,{style:{marginTop:"1rem"},children:u})]})})})}Ld.Input=Nd,Ld.DefaultInputs=uS,Ld.Submit=Im;function Nm(e,t){const[n,r]=ae.useState(t?t(e.collect()):e.collect()),o=ae.useRef(!1);return ae.useEffect(()=>{o.current=!0},[]),ae.useEffect(()=>(o.current?o.current=!1:r(t?t(e.collect()):e.collect()),e.on("change",({items:s})=>{r(()=>t?t(new zn(s)):new zn(s))})),[e,t]),n}const eB=e=>e.pluck("callback");function Lm(e,t,n,...r){const o=Nm(e.getReducer(t),eB);return ae.useMemo(()=>$h.isDraftable(n)?$h.produce(n,s=>o.reduce((l,u)=>u(l,...r),s)):o.reduce((s,l)=>l(s,...r),n),[o,n,...r])}function cc(){return ae.useContext(aS)}function di(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const tB=Object.freeze(Object.defineProperty({__proto__:null,default:di},Symbol.toStringTag,{value:"Module"})),Ea="$$material";function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k.apply(null,arguments)}function ge(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function dS(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var nB=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,rB=dS(function(e){return nB.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),oB=!1;function iB(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function sB(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var aB=function(){function e(n){var r=this;this._insertTag=function(o){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,s),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!oB:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(sB(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=iB(o);try{s.insertRule(r,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),qn="-ms-",Dd="-moz-",Ut="-webkit-",fS="comm",Dm="rule",Fm="decl",lB="@import",pS="@keyframes",cB="@layer",uB=Math.abs,Fd=String.fromCharCode,dB=Object.assign;function fB(e,t){return Un(e,0)^45?(((t<<2^Un(e,0))<<2^Un(e,1))<<2^Un(e,2))<<2^Un(e,3):0}function hS(e){return e.trim()}function pB(e,t){return(e=t.exec(e))?e[0]:e}function Wt(e,t,n){return e.replace(t,n)}function Bm(e,t){return e.indexOf(t)}function Un(e,t){return e.charCodeAt(t)|0}function uc(e,t,n){return e.slice(t,n)}function Uo(e){return e.length}function zm(e){return e.length}function Bd(e,t){return t.push(e),e}function hB(e,t){return e.map(t).join("")}var zd=1,Ra=1,mS=0,vr=0,Pn=0,ka="";function Ud(e,t,n,r,o,s,l){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:zd,column:Ra,length:l,return:""}}function dc(e,t){return dB(Ud("",null,null,"",null,null,0),e,{length:-e.length},t)}function mB(){return Pn}function gB(){return Pn=vr>0?Un(ka,--vr):0,Ra--,Pn===10&&(Ra=1,zd--),Pn}function Mr(){return Pn=vr<mS?Un(ka,vr++):0,Ra++,Pn===10&&(Ra=1,zd++),Pn}function Wo(){return Un(ka,vr)}function Wd(){return vr}function fc(e,t){return uc(ka,e,t)}function pc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function gS(e){return zd=Ra=1,mS=Uo(ka=e),vr=0,[]}function yS(e){return ka="",e}function Hd(e){return hS(fc(vr-1,Um(e===91?e+2:e===40?e+1:e)))}function yB(e){for(;(Pn=Wo())&&Pn<33;)Mr();return pc(e)>2||pc(Pn)>3?"":" "}function vB(e,t){for(;--t&&Mr()&&!(Pn<48||Pn>102||Pn>57&&Pn<65||Pn>70&&Pn<97););return fc(e,Wd()+(t<6&&Wo()==32&&Mr()==32))}function Um(e){for(;Mr();)switch(Pn){case e:return vr;case 34:case 39:e!==34&&e!==39&&Um(Pn);break;case 40:e===41&&Um(e);break;case 92:Mr();break}return vr}function bB(e,t){for(;Mr()&&e+Pn!==57;)if(e+Pn===84&&Wo()===47)break;return"/*"+fc(t,vr-1)+"*"+Fd(e===47?e:Mr())}function xB(e){for(;!pc(Wo());)Mr();return fc(e,vr)}function wB(e){return yS(Vd("",null,null,null,[""],e=gS(e),0,[0],e))}function Vd(e,t,n,r,o,s,l,u,c){for(var f=0,p=0,m=l,g=0,S=0,x=0,b=1,w=1,P=1,R=0,O="",A=o,$=s,T=r,_=O;w;)switch(x=R,R=Mr()){case 40:if(x!=108&&Un(_,m-1)==58){Bm(_+=Wt(Hd(R),"&","&\f"),"&\f")!=-1&&(P=-1);break}case 34:case 39:case 91:_+=Hd(R);break;case 9:case 10:case 13:case 32:_+=yB(x);break;case 92:_+=vB(Wd()-1,7);continue;case 47:switch(Wo()){case 42:case 47:Bd(SB(bB(Mr(),Wd()),t,n),c);break;default:_+="/"}break;case 123*b:u[f++]=Uo(_)*P;case 125*b:case 59:case 0:switch(R){case 0:case 125:w=0;case 59+p:P==-1&&(_=Wt(_,/\f/g,"")),S>0&&Uo(_)-m&&Bd(S>32?bS(_+";",r,n,m-1):bS(Wt(_," ","")+";",r,n,m-2),c);break;case 59:_+=";";default:if(Bd(T=vS(_,t,n,f,p,o,u,O,A=[],$=[],m),s),R===123)if(p===0)Vd(_,t,T,T,A,s,m,u,$);else switch(g===99&&Un(_,3)===110?100:g){case 100:case 108:case 109:case 115:Vd(e,T,T,r&&Bd(vS(e,T,T,0,0,o,u,O,o,A=[],m),$),o,$,m,u,r?A:$);break;default:Vd(_,T,T,T,[""],$,0,u,$)}}f=p=S=0,b=P=1,O=_="",m=l;break;case 58:m=1+Uo(_),S=x;default:if(b<1){if(R==123)--b;else if(R==125&&b++==0&&gB()==125)continue}switch(_+=Fd(R),R*b){case 38:P=p>0?1:(_+="\f",-1);break;case 44:u[f++]=(Uo(_)-1)*P,P=1;break;case 64:Wo()===45&&(_+=Hd(Mr())),g=Wo(),p=m=Uo(O=_+=xB(Wd())),R++;break;case 45:x===45&&Uo(_)==2&&(b=0)}}return s}function vS(e,t,n,r,o,s,l,u,c,f,p){for(var m=o-1,g=o===0?s:[""],S=zm(g),x=0,b=0,w=0;x<r;++x)for(var P=0,R=uc(e,m+1,m=uB(b=l[x])),O=e;P<S;++P)(O=hS(b>0?g[P]+" "+R:Wt(R,/&\f/g,g[P])))&&(c[w++]=O);return Ud(e,t,n,o===0?Dm:u,c,f,p)}function SB(e,t,n){return Ud(e,t,n,fS,Fd(mB()),uc(e,2,-2),0)}function bS(e,t,n,r){return Ud(e,t,n,Fm,uc(e,0,r),uc(e,r+1,-1),r)}function Pa(e,t){for(var n="",r=zm(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function CB(e,t,n,r){switch(e.type){case cB:if(e.children.length)break;case lB:case Fm:return e.return=e.return||e.value;case fS:return"";case pS:return e.return=e.value+"{"+Pa(e.children,r)+"}";case Dm:e.value=e.props.join(",")}return Uo(n=Pa(e.children,r))?e.return=e.value+"{"+n+"}":""}function EB(e){var t=zm(e);return function(n,r,o,s){for(var l="",u=0;u<t;u++)l+=e[u](n,r,o,s)||"";return l}}function RB(e){return function(t){t.root||(t=t.return)&&e(t)}}var kB=function(t,n,r){for(var o=0,s=0;o=s,s=Wo(),o===38&&s===12&&(n[r]=1),!pc(s);)Mr();return fc(t,vr)},PB=function(t,n){var r=-1,o=44;do switch(pc(o)){case 0:o===38&&Wo()===12&&(n[r]=1),t[r]+=kB(vr-1,n,r);break;case 2:t[r]+=Hd(o);break;case 4:if(o===44){t[++r]=Wo()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Fd(o)}while(o=Mr());return t},TB=function(t,n){return yS(PB(gS(t),n))},xS=new WeakMap,OB=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!xS.get(r))&&!o){xS.set(t,!0);for(var s=[],l=TB(n,s),u=r.props,c=0,f=0;c<l.length;c++)for(var p=0;p<u.length;p++,f++)t.props[f]=s[c]?l[c].replace(/&\f/g,u[p]):u[p]+" "+l[c]}}},$B=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function wS(e,t){switch(fB(e,t)){case 5103:return Ut+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ut+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ut+e+Dd+e+qn+e+e;case 6828:case 4268:return Ut+e+qn+e+e;case 6165:return Ut+e+qn+"flex-"+e+e;case 5187:return Ut+e+Wt(e,/(\w+).+(:[^]+)/,Ut+"box-$1$2"+qn+"flex-$1$2")+e;case 5443:return Ut+e+qn+"flex-item-"+Wt(e,/flex-|-self/,"")+e;case 4675:return Ut+e+qn+"flex-line-pack"+Wt(e,/align-content|flex-|-self/,"")+e;case 5548:return Ut+e+qn+Wt(e,"shrink","negative")+e;case 5292:return Ut+e+qn+Wt(e,"basis","preferred-size")+e;case 6060:return Ut+"box-"+Wt(e,"-grow","")+Ut+e+qn+Wt(e,"grow","positive")+e;case 4554:return Ut+Wt(e,/([^-])(transform)/g,"$1"+Ut+"$2")+e;case 6187:return Wt(Wt(Wt(e,/(zoom-|grab)/,Ut+"$1"),/(image-set)/,Ut+"$1"),e,"")+e;case 5495:case 3959:return Wt(e,/(image-set\([^]*)/,Ut+"$1$`$1");case 4968:return Wt(Wt(e,/(.+:)(flex-)?(.*)/,Ut+"box-pack:$3"+qn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ut+e+e;case 4095:case 3583:case 4068:case 2532:return Wt(e,/(.+)-inline(.+)/,Ut+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Uo(e)-1-t>6)switch(Un(e,t+1)){case 109:if(Un(e,t+4)!==45)break;case 102:return Wt(e,/(.+:)(.+)-([^]+)/,"$1"+Ut+"$2-$3$1"+Dd+(Un(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Bm(e,"stretch")?wS(Wt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Un(e,t+1)!==115)break;case 6444:switch(Un(e,Uo(e)-3-(~Bm(e,"!important")&&10))){case 107:return Wt(e,":",":"+Ut)+e;case 101:return Wt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ut+(Un(e,14)===45?"inline-":"")+"box$3$1"+Ut+"$2$3$1"+qn+"$2box$3")+e}break;case 5936:switch(Un(e,t+11)){case 114:return Ut+e+qn+Wt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ut+e+qn+Wt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ut+e+qn+Wt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ut+e+qn+e+e}return e}var AB=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Fm:t.return=wS(t.value,t.length);break;case pS:return Pa([dc(t,{value:Wt(t.value,"@","@"+Ut)})],o);case Dm:if(t.length)return hB(t.props,function(s){switch(pB(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Pa([dc(t,{props:[Wt(s,/:(read-\w+)/,":"+Dd+"$1")]})],o);case"::placeholder":return Pa([dc(t,{props:[Wt(s,/:(plac\w+)/,":"+Ut+"input-$1")]}),dc(t,{props:[Wt(s,/:(plac\w+)/,":"+Dd+"$1")]}),dc(t,{props:[Wt(s,/:(plac\w+)/,qn+"input-$1")]})],o)}return""})}},jB=[AB],SS=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(b){var w=b.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=t.stylisPlugins||jB,s={},l,u=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var w=b.getAttribute("data-emotion").split(" "),P=1;P<w.length;P++)s[w[P]]=!0;u.push(b)});var c,f=[OB,$B];{var p,m=[CB,RB(function(b){p.insert(b)})],g=EB(f.concat(o,m)),S=function(w){return Pa(wB(w),g)};c=function(w,P,R,O){p=R,S(w?w+"{"+P.styles+"}":P.styles),O&&(x.inserted[P.name]=!0)}}var x={key:n,sheet:new aB({key:n,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:c};return x.sheet.hydrate(u),x},CS={exports:{}},Vt={};var ES;function _B(){if(ES)return Vt;ES=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function O($){if(typeof $=="object"&&$!==null){var T=$.$$typeof;switch(T){case t:switch($=$.type,$){case c:case f:case r:case s:case o:case m:return $;default:switch($=$&&$.$$typeof,$){case u:case p:case x:case S:case l:return $;default:return T}}case n:return T}}}function A($){return O($)===f}return Vt.AsyncMode=c,Vt.ConcurrentMode=f,Vt.ContextConsumer=u,Vt.ContextProvider=l,Vt.Element=t,Vt.ForwardRef=p,Vt.Fragment=r,Vt.Lazy=x,Vt.Memo=S,Vt.Portal=n,Vt.Profiler=s,Vt.StrictMode=o,Vt.Suspense=m,Vt.isAsyncMode=function($){return A($)||O($)===c},Vt.isConcurrentMode=A,Vt.isContextConsumer=function($){return O($)===u},Vt.isContextProvider=function($){return O($)===l},Vt.isElement=function($){return typeof $=="object"&&$!==null&&$.$$typeof===t},Vt.isForwardRef=function($){return O($)===p},Vt.isFragment=function($){return O($)===r},Vt.isLazy=function($){return O($)===x},Vt.isMemo=function($){return O($)===S},Vt.isPortal=function($){return O($)===n},Vt.isProfiler=function($){return O($)===s},Vt.isStrictMode=function($){return O($)===o},Vt.isSuspense=function($){return O($)===m},Vt.isValidElementType=function($){return typeof $=="string"||typeof $=="function"||$===r||$===f||$===s||$===o||$===m||$===g||typeof $=="object"&&$!==null&&($.$$typeof===x||$.$$typeof===S||$.$$typeof===l||$.$$typeof===u||$.$$typeof===p||$.$$typeof===w||$.$$typeof===P||$.$$typeof===R||$.$$typeof===b)},Vt.typeOf=O,Vt}CS.exports=_B();var IB=CS.exports,RS=IB,MB={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},NB={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},kS={};kS[RS.ForwardRef]=MB,kS[RS.Memo]=NB;var LB=!0;function DB(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var PS=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||LB===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},TS=function(t,n,r){PS(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function FB(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var BB={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},zB=!1,UB=/[A-Z]|^ms/g,WB=/_EMO_([^_]+?)_([^]*?)_EMO_/g,OS=function(t){return t.charCodeAt(1)===45},$S=function(t){return t!=null&&typeof t!="boolean"},Wm=dS(function(e){return OS(e)?e:e.replace(UB,"-$&").toLowerCase()}),AS=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(WB,function(r,o,s){return Ho={name:o,styles:s,next:Ho},o})}return BB[t]!==1&&!OS(t)&&typeof n=="number"&&n!==0?n+"px":n},HB="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function hc(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Ho={name:o.name,styles:o.styles,next:Ho},o.name;var s=n;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)Ho={name:l.name,styles:l.styles,next:Ho},l=l.next;var u=s.styles+";";return u}return VB(e,t,n)}case"function":{if(e!==void 0){var c=Ho,f=n(e);return Ho=c,hc(e,t,f)}break}}var p=n;if(t==null)return p;var m=t[p];return m!==void 0?m:p}function VB(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=hc(e,t,n[o])+";";else for(var s in n){var l=n[s];if(typeof l!="object"){var u=l;t!=null&&t[u]!==void 0?r+=s+"{"+t[u]+"}":$S(u)&&(r+=Wm(s)+":"+AS(s,u)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&zB)throw new Error(HB);if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var c=0;c<l.length;c++)$S(l[c])&&(r+=Wm(s)+":"+AS(s,l[c])+";");else{var f=hc(e,t,l);switch(s){case"animation":case"animationName":{r+=Wm(s)+":"+f+";";break}default:r+=s+"{"+f+"}"}}}}return r}var jS=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ho;function Hm(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Ho=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=hc(n,t,s);else{var l=s;o+=l[0]}for(var u=1;u<e.length;u++)if(o+=hc(n,t,e[u]),r){var c=s;o+=c[u]}jS.lastIndex=0;for(var f="",p;(p=jS.exec(o))!==null;)f+="-"+p[1];var m=FB(o)+f;return{name:m,styles:o,next:Ho}}var KB=function(t){return t()},_S=Fu.useInsertionEffect?Fu.useInsertionEffect:!1,GB=_S||KB,IS=_S||E.useLayoutEffect,MS=E.createContext(typeof HTMLElement<"u"?SS({key:"css"}):null),qB=MS.Provider,NS=function(t){return E.forwardRef(function(n,r){var o=E.useContext(MS);return t(n,o,r)})},mc=E.createContext({}),Vm={exports:{}},LS;function DS(){return LS||(LS=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var s in o)({}).hasOwnProperty.call(o,s)&&(n[s]=o[s])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Vm)),Vm.exports}DS();var QB=NS(function(e,t){var n=e.styles,r=Hm([n],void 0,E.useContext(mc)),o=E.useRef();return IS(function(){var s=t.key+"-global",l=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,c=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),c!==null&&(u=!0,c.setAttribute("data-emotion",s),l.hydrate([c])),o.current=[l,u],function(){l.flush()}},[t]),IS(function(){var s=o.current,l=s[0],u=s[1];if(u){s[1]=!1;return}if(r.next!==void 0&&TS(t,r.next,!0),l.tags.length){var c=l.tags[l.tags.length-1].nextElementSibling;l.before=c,l.flush()}t.insert("",r,l,!1)},[t,r.name]),null});function Ta(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Hm(t)}var Bi=function(){var t=Ta.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},YB=rB,XB=function(t){return t!=="theme"},FS=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?YB:XB},BS=function(t,n,r){var o;if(n){var s=n.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(l){return t.__emotion_forwardProp(l)&&s(l)}:s}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},JB=!1,ZB=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return PS(n,r,o),GB(function(){return TS(n,r,o)}),null},e5=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,s,l;n!==void 0&&(s=n.label,l=n.target);var u=BS(t,n,r),c=u||FS(o),f=!c("as");return function(){var p=arguments,m=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&m.push("label:"+s+";"),p[0]==null||p[0].raw===void 0)m.push.apply(m,p);else{m.push(p[0][0]);for(var g=p.length,S=1;S<g;S++)m.push(p[S],p[0][S])}var x=NS(function(b,w,P){var R=f&&b.as||o,O="",A=[],$=b;if(b.theme==null){$={};for(var T in b)$[T]=b[T];$.theme=E.useContext(mc)}typeof b.className=="string"?O=DB(w.registered,A,b.className):b.className!=null&&(O=b.className+" ");var _=Hm(m.concat(A),w.registered,$);O+=w.key+"-"+_.name,l!==void 0&&(O+=" "+l);var M=f&&u===void 0?FS(R):c,F={};for(var B in b)f&&B==="as"||M(B)&&(F[B]=b[B]);return F.className=O,P&&(F.ref=P),E.createElement(E.Fragment,null,E.createElement(ZB,{cache:w,serialized:_,isStringTag:typeof R=="string"}),E.createElement(R,F))});return x.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=o,x.__emotion_styles=m,x.__emotion_forwardProp=u,Object.defineProperty(x,"toString",{value:function(){return l===void 0&&JB?"NO_COMPONENT_SELECTOR":"."+l}}),x.withComponent=function(b,w){return e(b,k({},n,w,{shouldForwardProp:BS(x,w,!0)})).apply(void 0,m)},x}},t5=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Km=e5.bind();t5.forEach(function(e){Km[e]=Km(e)});let Gm;typeof document=="object"&&(Gm=SS({key:"css",prepend:!0}));function n5(e){const{injectFirst:t,children:n}=e;return t&&Gm?y.jsx(qB,{value:Gm,children:n}):n}function r5(e){return e==null||Object.keys(e).length===0}function zS(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(r5(o)?n:o):t;return y.jsx(QB,{styles:r})}function qm(e,t){return Km(e,t)}const US=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},o5=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:zS,StyledEngineProvider:n5,ThemeContext:mc,css:Ta,default:qm,internal_processStyles:US,keyframes:Bi},Symbol.toStringTag,{value:"Module"}));function fi(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function WS(e){if(!fi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=WS(e[n])}),t}function rr(e,t,n={clone:!0}){const r=n.clone?k({},e):e;return fi(e)&&fi(t)&&Object.keys(t).forEach(o=>{fi(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&fi(e[o])?r[o]=rr(e[o],t[o],n):n.clone?r[o]=fi(t[o])?WS(t[o]):t[o]:r[o]=t[o]}),r}const i5=Object.freeze(Object.defineProperty({__proto__:null,default:rr,isPlainObject:fi},Symbol.toStringTag,{value:"Module"})),s5=["values","unit","step"],a5=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>k({},n,{[r.key]:r.val}),{})};function HS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ge(e,s5),s=a5(t),l=Object.keys(s);function u(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n})`}function c(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-r/100}${n})`}function f(g,S){const x=l.indexOf(S);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(x!==-1&&typeof t[l[x]]=="number"?t[l[x]]:S)-r/100}${n})`}function p(g){return l.indexOf(g)+1<l.length?f(g,l[l.indexOf(g)+1]):u(g)}function m(g){const S=l.indexOf(g);return S===0?u(l[1]):S===l.length-1?c(l[S]):f(g,l[l.indexOf(g)+1]).replace("@media","@media not all and")}return k({keys:l,values:s,up:u,down:c,between:f,only:p,not:m,unit:n},o)}const l5={borderRadius:4};function gc(e,t){return t?rr(e,t,{clone:!1}):e}const Qm={xs:0,sm:600,md:900,lg:1200,xl:1536},VS={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Qm[e]}px)`};function So(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||VS;return t.reduce((l,u,c)=>(l[s.up(s.keys[c])]=n(t[c]),l),{})}if(typeof t=="object"){const s=r.breakpoints||VS;return Object.keys(t).reduce((l,u)=>{if(Object.keys(s.values||Qm).indexOf(u)!==-1){const c=s.up(u);l[c]=n(t[u],u)}else{const c=u;l[c]=t[c]}return l},{})}return n(t)}function KS(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const s=e.up(o);return r[s]={},r},{}))||{}}function GS(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function c5(e,...t){const n=KS(e),r=[n,...t].reduce((o,s)=>rr(o,s),{});return GS(Object.keys(n),r)}function u5(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,s)=>{s<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function Ym({values:e,breakpoints:t,base:n}){const r=n||u5(e,t),o=Object.keys(r);if(o.length===0)return e;let s;return o.reduce((l,u,c)=>(Array.isArray(e)?(l[u]=e[c]!=null?e[c]:e[s],s=c):typeof e=="object"?(l[u]=e[u]!=null?e[u]:e[s],s=u):l[u]=e,l),{})}function ie(e){if(typeof e!="string")throw new Error(di(7));return e.charAt(0).toUpperCase()+e.slice(1)}const d5=Object.freeze(Object.defineProperty({__proto__:null,default:ie},Symbol.toStringTag,{value:"Module"}));function Oa(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Kd(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Oa(e,n)||r,t&&(o=t(o,r,e)),o}function Sn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=l=>{if(l[t]==null)return null;const u=l[t],c=l.theme,f=Oa(c,r)||{};return So(l,u,m=>{let g=Kd(f,o,m);return m===g&&typeof m=="string"&&(g=Kd(f,o,`${t}${m==="default"?"":ie(m)}`,m)),n===!1?g:{[n]:g}})};return s.propTypes={},s.filterProps=[t],s}function f5(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const p5={m:"margin",p:"padding"},h5={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},qS={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},m5=f5(e=>{if(e.length>2)if(qS[e])e=qS[e];else return[e];const[t,n]=e.split(""),r=p5[t],o=h5[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),Xm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Jm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Xm,...Jm];function yc(e,t,n,r){var o;const s=(o=Oa(e,t,!1))!=null?o:n;return typeof s=="number"?l=>typeof l=="string"?l:s*l:Array.isArray(s)?l=>typeof l=="string"?l:s[l]:typeof s=="function"?s:()=>{}}function Zm(e){return yc(e,"spacing",8)}function Ds(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function g5(e,t){return n=>e.reduce((r,o)=>(r[o]=Ds(t,n),r),{})}function y5(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=m5(n),s=g5(o,r),l=e[n];return So(e,l,s)}function QS(e,t){const n=Zm(e.theme);return Object.keys(e).map(r=>y5(e,t,r,n)).reduce(gc,{})}function yn(e){return QS(e,Xm)}yn.propTypes={},yn.filterProps=Xm;function vn(e){return QS(e,Jm)}vn.propTypes={},vn.filterProps=Jm;function v5(e=8){if(e.mui)return e;const t=Zm({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(s=>{const l=t(s);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function Gd(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?gc(o,t[s](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function to(e){return typeof e!="number"?e:`${e}px solid`}function no(e,t){return Sn({prop:e,themeKey:"borders",transform:t})}const b5=no("border",to),x5=no("borderTop",to),w5=no("borderRight",to),S5=no("borderBottom",to),C5=no("borderLeft",to),E5=no("borderColor"),R5=no("borderTopColor"),k5=no("borderRightColor"),P5=no("borderBottomColor"),T5=no("borderLeftColor"),O5=no("outline",to),$5=no("outlineColor"),qd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=yc(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ds(t,r)});return So(e,e.borderRadius,n)}return null};qd.propTypes={},qd.filterProps=["borderRadius"],Gd(b5,x5,w5,S5,C5,E5,R5,k5,P5,T5,qd,O5,$5);const Qd=e=>{if(e.gap!==void 0&&e.gap!==null){const t=yc(e.theme,"spacing",8),n=r=>({gap:Ds(t,r)});return So(e,e.gap,n)}return null};Qd.propTypes={},Qd.filterProps=["gap"];const Yd=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=yc(e.theme,"spacing",8),n=r=>({columnGap:Ds(t,r)});return So(e,e.columnGap,n)}return null};Yd.propTypes={},Yd.filterProps=["columnGap"];const Xd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=yc(e.theme,"spacing",8),n=r=>({rowGap:Ds(t,r)});return So(e,e.rowGap,n)}return null};Xd.propTypes={},Xd.filterProps=["rowGap"];const A5=Sn({prop:"gridColumn"}),j5=Sn({prop:"gridRow"}),_5=Sn({prop:"gridAutoFlow"}),I5=Sn({prop:"gridAutoColumns"}),M5=Sn({prop:"gridAutoRows"}),N5=Sn({prop:"gridTemplateColumns"}),L5=Sn({prop:"gridTemplateRows"}),D5=Sn({prop:"gridTemplateAreas"}),F5=Sn({prop:"gridArea"});Gd(Qd,Yd,Xd,A5,j5,_5,I5,M5,N5,L5,D5,F5);function $a(e,t){return t==="grey"?t:e}const B5=Sn({prop:"color",themeKey:"palette",transform:$a}),z5=Sn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$a}),U5=Sn({prop:"backgroundColor",themeKey:"palette",transform:$a});Gd(B5,z5,U5);function Nr(e){return e<=1&&e!==0?`${e*100}%`:e}const W5=Sn({prop:"width",transform:Nr}),eg=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const s=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Qm[n];return s?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:Nr(n)}};return So(e,e.maxWidth,t)}return null};eg.filterProps=["maxWidth"];const H5=Sn({prop:"minWidth",transform:Nr}),V5=Sn({prop:"height",transform:Nr}),K5=Sn({prop:"maxHeight",transform:Nr}),G5=Sn({prop:"minHeight",transform:Nr});Sn({prop:"size",cssProperty:"width",transform:Nr}),Sn({prop:"size",cssProperty:"height",transform:Nr});const q5=Sn({prop:"boxSizing"});Gd(W5,eg,H5,V5,K5,G5,q5);const vc={border:{themeKey:"borders",transform:to},borderTop:{themeKey:"borders",transform:to},borderRight:{themeKey:"borders",transform:to},borderBottom:{themeKey:"borders",transform:to},borderLeft:{themeKey:"borders",transform:to},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:to},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:qd},color:{themeKey:"palette",transform:$a},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$a},backgroundColor:{themeKey:"palette",transform:$a},p:{style:vn},pt:{style:vn},pr:{style:vn},pb:{style:vn},pl:{style:vn},px:{style:vn},py:{style:vn},padding:{style:vn},paddingTop:{style:vn},paddingRight:{style:vn},paddingBottom:{style:vn},paddingLeft:{style:vn},paddingX:{style:vn},paddingY:{style:vn},paddingInline:{style:vn},paddingInlineStart:{style:vn},paddingInlineEnd:{style:vn},paddingBlock:{style:vn},paddingBlockStart:{style:vn},paddingBlockEnd:{style:vn},m:{style:yn},mt:{style:yn},mr:{style:yn},mb:{style:yn},ml:{style:yn},mx:{style:yn},my:{style:yn},margin:{style:yn},marginTop:{style:yn},marginRight:{style:yn},marginBottom:{style:yn},marginLeft:{style:yn},marginX:{style:yn},marginY:{style:yn},marginInline:{style:yn},marginInlineStart:{style:yn},marginInlineEnd:{style:yn},marginBlock:{style:yn},marginBlockStart:{style:yn},marginBlockEnd:{style:yn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Qd},rowGap:{style:Xd},columnGap:{style:Yd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Nr},maxWidth:{style:eg},minWidth:{transform:Nr},height:{transform:Nr},maxHeight:{transform:Nr},minHeight:{transform:Nr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Q5(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Y5(e,t){return typeof e=="function"?e(t):e}function YS(){function e(n,r,o,s){const l={[n]:r,theme:o},u=s[n];if(!u)return{[n]:r};const{cssProperty:c=n,themeKey:f,transform:p,style:m}=u;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const g=Oa(o,f)||{};return m?m(l):So(l,r,x=>{let b=Kd(g,p,x);return x===b&&typeof x=="string"&&(b=Kd(g,p,`${n}${x==="default"?"":ie(x)}`,x)),c===!1?b:{[c]:b}})}function t(n){var r;const{sx:o,theme:s={}}=n||{};if(!o)return null;const l=(r=s.unstable_sxConfig)!=null?r:vc;function u(c){let f=c;if(typeof c=="function")f=c(s);else if(typeof c!="object")return c;if(!f)return null;const p=KS(s.breakpoints),m=Object.keys(p);let g=p;return Object.keys(f).forEach(S=>{const x=Y5(f[S],s);if(x!=null)if(typeof x=="object")if(l[S])g=gc(g,e(S,x,s,l));else{const b=So({theme:s},x,w=>({[S]:w}));Q5(b,x)?g[S]=t({sx:x,theme:s}):g=gc(g,b)}else g=gc(g,e(S,x,s,l))}),GS(m,g)}return Array.isArray(o)?o.map(u):u(o)}return t}const Aa=YS();Aa.filterProps=["sx"];function XS(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const X5=["breakpoints","palette","spacing","shape"];function ja(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={}}=e,l=ge(e,X5),u=HS(n),c=v5(o);let f=rr({breakpoints:u,direction:"ltr",components:{},palette:k({mode:"light"},r),spacing:c,shape:k({},l5,s)},l);return f.applyStyles=XS,f=t.reduce((p,m)=>rr(p,m),f),f.unstable_sxConfig=k({},vc,l==null?void 0:l.unstable_sxConfig),f.unstable_sx=function(m){return Aa({sx:m,theme:this})},f}const J5=Object.freeze(Object.defineProperty({__proto__:null,default:ja,private_createBreakpoints:HS,unstable_applyStyles:XS},Symbol.toStringTag,{value:"Module"}));function Z5(e){return Object.keys(e).length===0}function tg(e=null){const t=E.useContext(mc);return!t||Z5(t)?e:t}const ez=ja();function bc(e=ez){return tg(e)}function tz({styles:e,themeId:t,defaultTheme:n={}}){const r=bc(n),o=typeof e=="function"?e(t&&r[t]||r):e;return y.jsx(zS,{styles:o})}const nz=["sx"],rz=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:vc;return Object.keys(e).forEach(s=>{o[s]?r.systemProps[s]=e[s]:r.otherProps[s]=e[s]}),r};function xc(e){const{sx:t}=e,n=ge(e,nz),{systemProps:r,otherProps:o}=rz(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...l)=>{const u=t(...l);return fi(u)?k({},r,u):r}:s=k({},r,t),k({},o,{sx:s})}const oz=Object.freeze(Object.defineProperty({__proto__:null,default:Aa,extendSxProp:xc,unstable_createStyleFunctionSx:YS,unstable_defaultSxConfig:vc},Symbol.toStringTag,{value:"Module"})),JS=e=>e,ZS=(()=>{let e=JS;return{configure(t){e=t},generate(t){return e(t)},reset(){e=JS}}})();function eC(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=eC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ye(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=eC(e))&&(r&&(r+=" "),r+=t);return r}const iz=["className","component"];function sz(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,s=qm("div",{shouldForwardProp:u=>u!=="theme"&&u!=="sx"&&u!=="as"})(Aa);return E.forwardRef(function(c,f){const p=bc(n),m=xc(c),{className:g,component:S="div"}=m,x=ge(m,iz);return y.jsx(s,k({as:S,ref:f,className:ye(g,o?o(r):r),theme:t&&p[t]||p},x))})}const az={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ie(e,t,n="Mui"){const r=az[t];return r?`${n}-${r}`:`${ZS.generate(e)}-${t}`}function Ne(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ie(e,o,n)}),r}var tC={exports:{}},Kt={};var nC;function lz(){if(nC)return Kt;nC=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function b(w){if(typeof w=="object"&&w!==null){var P=w.$$typeof;switch(P){case e:switch(w=w.type,w){case n:case o:case r:case f:case p:return w;default:switch(w=w&&w.$$typeof,w){case u:case l:case c:case g:case m:case s:return w;default:return P}}case t:return P}}}return Kt.ContextConsumer=l,Kt.ContextProvider=s,Kt.Element=e,Kt.ForwardRef=c,Kt.Fragment=n,Kt.Lazy=g,Kt.Memo=m,Kt.Portal=t,Kt.Profiler=o,Kt.StrictMode=r,Kt.Suspense=f,Kt.SuspenseList=p,Kt.isAsyncMode=function(){return!1},Kt.isConcurrentMode=function(){return!1},Kt.isContextConsumer=function(w){return b(w)===l},Kt.isContextProvider=function(w){return b(w)===s},Kt.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},Kt.isForwardRef=function(w){return b(w)===c},Kt.isFragment=function(w){return b(w)===n},Kt.isLazy=function(w){return b(w)===g},Kt.isMemo=function(w){return b(w)===m},Kt.isPortal=function(w){return b(w)===t},Kt.isProfiler=function(w){return b(w)===o},Kt.isStrictMode=function(w){return b(w)===r},Kt.isSuspense=function(w){return b(w)===f},Kt.isSuspenseList=function(w){return b(w)===p},Kt.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===o||w===r||w===f||w===p||w===S||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===m||w.$$typeof===s||w.$$typeof===l||w.$$typeof===c||w.$$typeof===x||w.getModuleId!==void 0)},Kt.typeOf=b,Kt}tC.exports=lz();var rC=tC.exports;const cz=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function oC(e){const t=`${e}`.match(cz);return t&&t[1]||""}function iC(e,t=""){return e.displayName||e.name||oC(e)||t}function sC(e,t,n){const r=iC(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function uz(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return iC(e,"Component");if(typeof e=="object")switch(e.$$typeof){case rC.ForwardRef:return sC(e,e.render,"ForwardRef");case rC.Memo:return sC(e,e.type,"memo");default:return}}}const dz=Object.freeze(Object.defineProperty({__proto__:null,default:uz,getFunctionName:oC},Symbol.toStringTag,{value:"Module"})),fz=["ownerState"],pz=["variants"],hz=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function mz(e){return Object.keys(e).length===0}function gz(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ng(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const yz=ja(),vz=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Jd({defaultTheme:e,theme:t,themeId:n}){return mz(t)?e:t[n]||t}function bz(e){return e?(t,n)=>n[e]:null}function Zd(e,t){let{ownerState:n}=t,r=ge(t,fz);const o=typeof e=="function"?e(k({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(s=>Zd(s,k({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:s=[]}=o;let u=ge(o,pz);return s.forEach(c=>{let f=!0;typeof c.props=="function"?f=c.props(k({ownerState:n},r,n)):Object.keys(c.props).forEach(p=>{(n==null?void 0:n[p])!==c.props[p]&&r[p]!==c.props[p]&&(f=!1)}),f&&(Array.isArray(u)||(u=[u]),u.push(typeof c.style=="function"?c.style(k({ownerState:n},r,n)):c.style))}),u}return o}function xz(e={}){const{themeId:t,defaultTheme:n=yz,rootShouldForwardProp:r=ng,slotShouldForwardProp:o=ng}=e,s=l=>Aa(k({},l,{theme:Jd(k({},l,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(l,u={})=>{US(l,$=>$.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:c,slot:f,skipVariantsResolver:p,skipSx:m,overridesResolver:g=bz(vz(f))}=u,S=ge(u,hz),x=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,b=m||!1;let w,P=ng;f==="Root"||f==="root"?P=r:f?P=o:gz(l)&&(P=void 0);const R=qm(l,k({shouldForwardProp:P,label:w},S)),O=$=>typeof $=="function"&&$.__emotion_real!==$||fi($)?T=>Zd($,k({},T,{theme:Jd({theme:T.theme,defaultTheme:n,themeId:t})})):$,A=($,...T)=>{let _=O($);const M=T?T.map(O):[];c&&g&&M.push(G=>{const W=Jd(k({},G,{defaultTheme:n,themeId:t}));if(!W.components||!W.components[c]||!W.components[c].styleOverrides)return null;const H=W.components[c].styleOverrides,z={};return Object.entries(H).forEach(([te,Z])=>{z[te]=Zd(Z,k({},G,{theme:W}))}),g(G,z)}),c&&!x&&M.push(G=>{var W;const H=Jd(k({},G,{defaultTheme:n,themeId:t})),z=H==null||(W=H.components)==null||(W=W[c])==null?void 0:W.variants;return Zd({variants:z},k({},G,{theme:H}))}),b||M.push(s);const F=M.length-T.length;if(Array.isArray($)&&F>0){const G=new Array(F).fill("");_=[...$,...G],_.raw=[...$.raw,...G]}const B=R(_,...M);return l.muiName&&(B.muiName=l.muiName),B};return R.withConfig&&(A.withConfig=R.withConfig),A}}const aC=xz();function wc(e,t){const n=k({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=k({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},s=t[r];n[r]={},!s||!Object.keys(s)?n[r]=o:!o||!Object.keys(o)?n[r]=s:(n[r]=k({},s),Object.keys(o).forEach(l=>{n[r][l]=wc(o[l],s[l])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function lC(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:wc(t.components[n].defaultProps,r)}function cC({props:e,name:t,defaultTheme:n,themeId:r}){let o=bc(n);return r&&(o=o[r]||o),lC({theme:o,name:t,props:e})}const br=typeof window<"u"?E.useLayoutEffect:E.useEffect;function wz(e,t,n,r,o){const[s,l]=E.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return br(()=>{let u=!0;if(!n)return;const c=n(e),f=()=>{u&&l(c.matches)};return f(),c.addListener(f),()=>{u=!1,c.removeListener(f)}},[e,n]),s}const uC=E.useSyncExternalStore;function Sz(e,t,n,r,o){const s=E.useCallback(()=>t,[t]),l=E.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:p}=r(e);return()=>p}return s},[s,e,r,o,n]),[u,c]=E.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const p=n(e);return[()=>p.matches,m=>(p.addListener(m),()=>{p.removeListener(m)})]},[s,n,e]);return uC(c,u,l)}function ef(e,t={}){const n=tg(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:s=r?window.matchMedia:null,ssrMatchMedia:l=null,noSsr:u=!1}=lC({name:"MuiUseMediaQuery",props:t,theme:n});let c=typeof e=="function"?e(n):e;return c=c.replace(/^@media( ?)/m,""),(uC!==void 0?Sz:wz)(c,o,s,l,u)}function rg(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Cz=Object.freeze(Object.defineProperty({__proto__:null,default:rg},Symbol.toStringTag,{value:"Module"}));function Ez(e,t=0,n=1){return rg(e,t,n)}function Rz(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function dC(e){if(e.type)return e;if(e.charAt(0)==="#")return dC(Rz(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(di(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(di(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}function kz(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,s)=>s<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Pz(e,t){return e=dC(e),t=Ez(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,kz(e)}function og(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Sc(e,t=166){let n;function r(...o){const s=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function _a(e,t){var n,r;return E.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function An(e){return e&&e.ownerDocument||document}function Co(e){return An(e).defaultView||window}function tf(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let fC=0;function Tz(e){const[t,n]=E.useState(e),r=e||t;return E.useEffect(()=>{t==null&&(fC+=1,n(`mui-${fC}`))},[t]),r}const pC=Fu.useId;function Ia(e){if(pC!==void 0){const t=pC();return e??t}return Tz(e)}function pi({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=E.useRef(e!==void 0),[s,l]=E.useState(t),u=o?e:s,c=E.useCallback(f=>{o||l(f)},[]);return[u,c]}function Nn(e){const t=E.useRef(e);return br(()=>{t.current=e}),E.useRef((...n)=>(0,t.current)(...n)).current}function Gt(...e){return E.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{tf(n,t)})},e)}const hC={};function Oz(e,t){const n=E.useRef(hC);return n.current===hC&&(n.current=e(t)),n}const $z=[];function Az(e){E.useEffect(e,$z)}class Cc{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Cc}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function hi(){const e=Oz(Cc.create).current;return Az(e.disposeEffect),e}let nf=!0,ig=!1;const jz=new Cc,_z={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Iz(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&_z[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Mz(e){e.metaKey||e.altKey||e.ctrlKey||(nf=!0)}function sg(){nf=!1}function Nz(){this.visibilityState==="hidden"&&ig&&(nf=!0)}function Lz(e){e.addEventListener("keydown",Mz,!0),e.addEventListener("mousedown",sg,!0),e.addEventListener("pointerdown",sg,!0),e.addEventListener("touchstart",sg,!0),e.addEventListener("visibilitychange",Nz,!0)}function Dz(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return nf||Iz(t)}function ag(){const e=E.useCallback(o=>{o!=null&&Lz(o.ownerDocument)},[]),t=E.useRef(!1);function n(){return t.current?(ig=!0,jz.start(100,()=>{ig=!1}),t.current=!1,!0):!1}function r(o){return Dz(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function mC(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Ma;function gC(){if(Ma)return Ma;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Ma="reverse",e.scrollLeft>0?Ma="default":(e.scrollLeft=1,e.scrollLeft===0&&(Ma="negative")),document.body.removeChild(e),Ma}function Fz(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(gC()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const lg=e=>{const t=E.useRef({});return E.useEffect(()=>{t.current=e}),t.current};function Bz(e){return E.Children.toArray(e).filter(t=>E.isValidElement(t))}function Le(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((s,l)=>{if(l){const u=t(l);u!==""&&s.push(u),n&&n[l]&&s.push(n[l])}return s},[]).join(" ")}),r}function Na(e){return typeof e=="string"}function La(e,t,n){return e===void 0||Na(e)?t:k({},t,{ownerState:k({},t.ownerState,n)})}function rf(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function yC(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function vC(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const S=ye(n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),x=k({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),b=k({},n,o,r);return S.length>0&&(b.className=S),Object.keys(x).length>0&&(b.style=x),{props:b,internalRef:void 0}}const l=rf(k({},o,r)),u=yC(r),c=yC(o),f=t(l),p=ye(f==null?void 0:f.className,n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),m=k({},f==null?void 0:f.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),g=k({},f,n,c,u);return p.length>0&&(g.className=p),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:f.ref}}function bC(e,t,n){return typeof e=="function"?e(t,n):e}const zz=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function or(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:s=!1}=e,l=ge(e,zz),u=s?{}:bC(r,o),{props:c,internalRef:f}=vC(k({},l,{externalSlotProps:u})),p=Gt(f,u==null?void 0:u.ref,(t=e.additionalProps)==null?void 0:t.ref);return La(n,k({},c,{ref:p}),o)}const xC=E.createContext(null);function wC(){return E.useContext(xC)}const Uz=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Wz(e,t){return typeof t=="function"?t(e):k({},e,t)}function Hz(e){const{children:t,theme:n}=e,r=wC(),o=E.useMemo(()=>{const s=r===null?n:Wz(r,n);return s!=null&&(s[Uz]=r!==null),s},[n,r]);return y.jsx(xC.Provider,{value:o,children:t})}const Vz=["value"],SC=E.createContext();function Kz(e){let{value:t}=e,n=ge(e,Vz);return y.jsx(SC.Provider,k({value:t??!0},n))}const Ec=()=>{const e=E.useContext(SC);return e??!1},CC=E.createContext(void 0);function Gz({value:e,children:t}){return y.jsx(CC.Provider,{value:e,children:t})}function qz(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?wc(o.defaultProps,r):!o.styleOverrides&&!o.variants?wc(o,r):r}function Qz({props:e,name:t}){const n=E.useContext(CC);return qz({props:e,name:t,theme:{components:n}})}const EC={};function RC(e,t,n,r=!1){return E.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const s=n(o),l=e?k({},t,{[e]:s}):s;return r?()=>l:l}return e?k({},t,{[e]:n}):k({},t,n)},[e,t,n,r])}function Yz(e){const{children:t,theme:n,themeId:r}=e,o=tg(EC),s=wC()||EC,l=RC(r,o,n),u=RC(r,s,n,!0),c=l.direction==="rtl";return y.jsx(Hz,{theme:u,children:y.jsx(mc.Provider,{value:l,children:y.jsx(Kz,{value:c,children:y.jsx(Gz,{value:l==null?void 0:l.components,children:t})})})})}const Xz=(e,t)=>e.filter(n=>t.includes(n)),Da=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,s)=>{n((l,u)=>{s<=e.keys.length-1&&(s===0?Object.assign(l,u):l[e.up(e.keys[s])]=u)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:Xz(e.keys,Object.keys(t))).forEach(s=>{if(e.keys.indexOf(s)!==-1){const l=t[s];l!==void 0&&n((u,c)=>{r===s?Object.assign(u,c):u[e.up(s)]=c},l)}}):(typeof t=="number"||typeof t=="string")&&n((o,s)=>{Object.assign(o,s)},t)};function mi(e){return e?`Level${e}`:""}function Rc(e){return e.unstable_level>0&&e.container}function kC(e){return function(n){return`var(--Grid-${n}Spacing${mi(e.unstable_level)})`}}function cg(e){return function(n){return e.unstable_level===0?`var(--Grid-${n}Spacing)`:`var(--Grid-${n}Spacing${mi(e.unstable_level-1)})`}}function ug(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${mi(e.unstable_level-1)})`}const Jz=({theme:e,ownerState:t})=>{const n=kC(t),r={};return Da(e.breakpoints,t.gridSize,(o,s)=>{let l={};s===!0&&(l={flexBasis:0,flexGrow:1,maxWidth:"100%"}),s==="auto"&&(l={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof s=="number"&&(l={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${s} / ${ug(t)}${Rc(t)?` + ${n("column")}`:""})`}),o(r,l)}),r},Zz=({theme:e,ownerState:t})=>{const n={};return Da(e.breakpoints,t.gridOffset,(r,o)=>{let s={};o==="auto"&&(s={marginLeft:"auto"}),typeof o=="number"&&(s={marginLeft:o===0?"0px":`calc(100% * ${o} / ${ug(t)})`}),r(n,s)}),n},e3=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=Rc(t)?{[`--Grid-columns${mi(t.unstable_level)}`]:ug(t)}:{"--Grid-columns":12};return Da(e.breakpoints,t.columns,(r,o)=>{r(n,{[`--Grid-columns${mi(t.unstable_level)}`]:o})}),n},t3=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=cg(t),r=Rc(t)?{[`--Grid-rowSpacing${mi(t.unstable_level)}`]:n("row")}:{};return Da(e.breakpoints,t.rowSpacing,(o,s)=>{var l;o(r,{[`--Grid-rowSpacing${mi(t.unstable_level)}`]:typeof s=="string"?s:(l=e.spacing)==null?void 0:l.call(e,s)})}),r},n3=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=cg(t),r=Rc(t)?{[`--Grid-columnSpacing${mi(t.unstable_level)}`]:n("column")}:{};return Da(e.breakpoints,t.columnSpacing,(o,s)=>{var l;o(r,{[`--Grid-columnSpacing${mi(t.unstable_level)}`]:typeof s=="string"?s:(l=e.spacing)==null?void 0:l.call(e,s)})}),r},r3=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Da(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},o3=({ownerState:e})=>{const t=kC(e),n=cg(e);return k({minWidth:0,boxSizing:"border-box"},e.container&&k({display:"flex",flexWrap:"wrap"},e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||Rc(e))&&k({padding:`calc(${n("row")} / 2) calc(${n("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${n("row")} 0px 0px ${n("column")}`}))},i3=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},s3=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([o,s])=>{n(s)&&r.push(`spacing-${o}-${String(s)}`)}),r}return[]},a3=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],l3=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],c3=ja(),u3=aC("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function d3(e){return cC({props:e,name:"MuiGrid",defaultTheme:c3})}function f3(e={}){const{createStyledComponent:t=u3,useThemeProps:n=d3,componentName:r="MuiGrid"}=e,o=E.createContext(void 0),s=(c,f)=>{const{container:p,direction:m,spacing:g,wrap:S,gridSize:x}=c,b={root:["root",p&&"container",S!=="wrap"&&`wrap-xs-${String(S)}`,...a3(m),...i3(x),...p?s3(g,f.breakpoints.keys[0]):[]]};return Le(b,w=>Ie(r,w),{})},l=t(e3,n3,t3,Jz,r3,o3,Zz),u=E.forwardRef(function(f,p){var m,g,S,x,b,w,P,R;const O=bc(),A=n(f),$=xc(A),T=E.useContext(o),{className:_,children:M,columns:F=12,container:B=!1,component:G="div",direction:W="row",wrap:H="wrap",spacing:z=0,rowSpacing:te=z,columnSpacing:Z=z,disableEqualOverflow:X,unstable_level:N=0}=$,Y=ge($,l3);let ce=X;N&&X!==void 0&&(ce=f.disableEqualOverflow);const L={},se={},Oe={};Object.entries(Y).forEach(([He,Be])=>{O.breakpoints.values[He]!==void 0?L[He]=Be:O.breakpoints.values[He.replace("Offset","")]!==void 0?se[He.replace("Offset","")]=Be:Oe[He]=Be});const ve=(m=f.columns)!=null?m:N?void 0:F,xe=(g=f.spacing)!=null?g:N?void 0:z,he=(S=(x=f.rowSpacing)!=null?x:f.spacing)!=null?S:N?void 0:te,Me=(b=(w=f.columnSpacing)!=null?w:f.spacing)!=null?b:N?void 0:Z,de=k({},$,{level:N,columns:ve,container:B,direction:W,wrap:H,spacing:xe,rowSpacing:he,columnSpacing:Me,gridSize:L,gridOffset:se,disableEqualOverflow:(P=(R=ce)!=null?R:T)!=null?P:!1,parentDisableEqualOverflow:T}),ke=s(de,O);let Qe=y.jsx(l,k({ref:p,as:G,ownerState:de,className:ye(ke.root,_)},Oe,{children:E.Children.map(M,He=>{if(E.isValidElement(He)&&_a(He,["Grid"])){var Be;return E.cloneElement(He,{unstable_level:(Be=He.props.unstable_level)!=null?Be:N+1})}return He})}));return ce!==void 0&&ce!==(T??!1)&&(Qe=y.jsx(o.Provider,{value:ce,children:Qe})),Qe});return u.muiName="Grid",u}const p3=["component","direction","spacing","divider","children","className","useFlexGap"],h3=ja(),m3=aC("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function g3(e){return cC({props:e,name:"MuiStack",defaultTheme:h3})}function y3(e,t){const n=E.Children.toArray(e).filter(Boolean);return n.reduce((r,o,s)=>(r.push(o),s<n.length-1&&r.push(E.cloneElement(t,{key:`separator-${s}`})),r),[])}const v3=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],b3=({ownerState:e,theme:t})=>{let n=k({display:"flex",flexDirection:"column"},So({theme:t},Ym({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=Zm(t),o=Object.keys(t.breakpoints.values).reduce((c,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(c[f]=!0),c),{}),s=Ym({values:e.direction,base:o}),l=Ym({values:e.spacing,base:o});typeof s=="object"&&Object.keys(s).forEach((c,f,p)=>{if(!s[c]){const g=f>0?s[p[f-1]]:"column";s[c]=g}}),n=rr(n,So({theme:t},l,(c,f)=>e.useFlexGap?{gap:Ds(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${v3(f?s[f]:e.direction)}`]:Ds(r,c)}}))}return n=c5(t.breakpoints,n),n};function x3(e={}){const{createStyledComponent:t=m3,useThemeProps:n=g3,componentName:r="MuiStack"}=e,o=()=>Le({root:["root"]},c=>Ie(r,c),{}),s=t(b3);return E.forwardRef(function(c,f){const p=n(c),m=xc(p),{component:g="div",direction:S="column",spacing:x=0,divider:b,children:w,className:P,useFlexGap:R=!1}=m,O=ge(m,p3),A={direction:S,spacing:x,useFlexGap:R},$=o();return y.jsx(s,k({as:g,ownerState:A,ref:f,className:ye($.root,P)},O,{children:b?y3(w,b):w}))})}function w3(e,t){return k({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Cn={},PC={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(PC);var TC=PC.exports;const S3=$r(tB),C3=$r(Cz);var kc={GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_b25ae535-6491-4290-8a72-65a67a34b8f8",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_always_auth:"",npm_config_user_agent:"npm/10.8.2 node/v20.18.0 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_b25ae535-6491-4290-8a72-65a67a34b8f8",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.0/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",NODE_AUTH_TOKEN:"XXXXX-XXXXX-XXXXX-XXXXX",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/js-mui-cms/js-mui-cms/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"luminix-cms",GRADLE_HOME:"/usr/share/gradle-8.11",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"158327540",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu22",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_local_prefix:"/home/runner/work/js-mui-cms/js-mui-cms",SYSTEMD_EXEC_PID:"478",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20241117.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.9/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.3/x64",JOURNAL_STREAM:"8:16209",GITHUB_WORKFLOW:"Publish beta version to NPM",_:"/opt/hostedtoolcache/node/20.18.0/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.0/x64",npm_config_npm_version:"10.8.2",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"11983052501",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"d2d1cbde9948737b237c901f5448ce92bd164040",GITHUB_BASE_REF:"",ImageOS:"ubuntu22",GITHUB_WORKFLOW_REF:"luminix-cms/js-mui-cms/.github/workflows/beta.yml@refs/heads/v0.x",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.0/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/js-mui-cms/js-mui-cms/node_modules/.bin:/home/runner/work/js-mui-cms/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.0/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/js-mui-cms/js-mui-cms/node_modules/.bin:/home/runner/work/js-mui-cms/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.0/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_c82be7f9-f1b6-4aae-95a8-9343e28ec554",INVOCATION_ID:"6975319e1ea746bd81b10c23a58b7be1",NPM_CONFIG_USERCONFIG:"/home/runner/work/_temp/.npmrc",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.0/x64/bin/node",npm_package_name:"@luminix/mui-cms",GITHUB_ACTION:"__run",GITHUB_RUN_NUMBER:"2",GITHUB_TRIGGERING_ACTOR:"obrunopolo",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 11",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"v0.x",GITHUB_REPOSITORY:"luminix-cms/js-mui-cms",STATS_D_D:"true",npm_lifecycle_script:"tsc && vite build --config vite.config.bundle.ts",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"751419373",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"",npm_lifecycle_event:"build:bundle",GITHUB_REF_PROTECTED:"false",GITHUB_WORKSPACE:"/home/runner/work/js-mui-cms/js-mui-cms",ACCEPT_EULA:"Y",GITHUB_JOB:"publish",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"d2d1cbde9948737b237c901f5448ce92bd164040",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/v0.x",GITHUB_ACTOR:"obrunopolo",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",LEIN_HOME:"/usr/local/lib/lein",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.0/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_b25ae535-6491-4290-8a72-65a67a34b8f8",JAVA_HOME:"/usr/lib/jvm/temurin-11-jdk-amd64",PWD:"/home/runner/work/js-mui-cms/js-mui-cms",GITHUB_ACTOR_ID:"47830258",RUNNER_WORKSPACE:"/home/runner/work/js-mui-cms",npm_execpath:"/opt/hostedtoolcache/node/20.18.0/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",LEIN_JAR:"/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_b25ae535-6491-4290-8a72-65a67a34b8f8",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.0/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_b25ae535-6491-4290-8a72-65a67a34b8f8",INIT_CWD:"/home/runner/work/js-mui-cms/js-mui-cms",EDITOR:"vi",NODE_ENV:"production"},OC=TC;Object.defineProperty(Cn,"__esModule",{value:!0});var mt=Cn.alpha=IC;Cn.blend=I3,Cn.colorChannel=void 0;var Pc=Cn.darken=fg;Cn.decomposeColor=ro;var of=Cn.emphasize=MC,E3=Cn.getContrastRatio=O3;Cn.getLuminance=sf,Cn.hexToRgb=AC,Cn.hslToRgb=_C;var Tc=Cn.lighten=pg;Cn.private_safeAlpha=$3,Cn.private_safeColorChannel=void 0,Cn.private_safeDarken=A3,Cn.private_safeEmphasize=_3,Cn.private_safeLighten=j3,Cn.recomposeColor=Fa,Cn.rgbToHex=T3;var $C=OC(S3),R3=OC(C3);function dg(e,t=0,n=1){return(0,R3.default)(e,t,n)}function AC(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function k3(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function ro(e){if(e.type)return e;if(e.charAt(0)==="#")return ro(AC(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,$C.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,$C.default)(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}const jC=e=>{const t=ro(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Cn.colorChannel=jC;const P3=(e,t)=>{try{return jC(e)}catch{return t&&kc.NODE_ENV!=="production"&&console.warn(t),e}};Cn.private_safeColorChannel=P3;function Fa(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,s)=>s<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function T3(e){if(e.indexOf("#")===0)return e;const{values:t}=ro(e);return`#${t.map((n,r)=>k3(r===3?Math.round(255*n):n)).join("")}`}function _C(e){e=ro(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),l=(f,p=(f+n/30)%12)=>o-s*Math.max(Math.min(p-3,9-p,1),-1);let u="rgb";const c=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(u+="a",c.push(t[3])),Fa({type:u,values:c})}function sf(e){e=ro(e);let t=e.type==="hsl"||e.type==="hsla"?ro(_C(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function O3(e,t){const n=sf(e),r=sf(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function IC(e,t){return e=ro(e),t=dg(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Fa(e)}function $3(e,t,n){try{return IC(e,t)}catch{return n&&kc.NODE_ENV!=="production"&&console.warn(n),e}}function fg(e,t){if(e=ro(e),t=dg(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Fa(e)}function A3(e,t,n){try{return fg(e,t)}catch{return n&&kc.NODE_ENV!=="production"&&console.warn(n),e}}function pg(e,t){if(e=ro(e),t=dg(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Fa(e)}function j3(e,t,n){try{return pg(e,t)}catch{return n&&kc.NODE_ENV!=="production"&&console.warn(n),e}}function MC(e,t=.15){return sf(e)>.5?fg(e,t):pg(e,t)}function _3(e,t,n){try{return MC(e,t)}catch{return n&&kc.NODE_ENV!=="production"&&console.warn(n),e}}function I3(e,t,n,r=1){const o=(c,f)=>Math.round((c**(1/r)*(1-n)+f**(1/r)*n)**r),s=ro(e),l=ro(t),u=[o(s.values[0],l.values[0]),o(s.values[1],l.values[1]),o(s.values[2],l.values[2])];return Fa({type:"rgb",values:u})}const Oc={black:"#000",white:"#fff"},M3={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Ba={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},za={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},$c={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Ua={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Wa={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ha={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},N3=["mode","contrastThreshold","tonalOffset"],NC={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Oc.white,default:Oc.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},hg={text:{primary:Oc.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Oc.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function LC(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Tc(e.main,o):t==="dark"&&(e.dark=Pc(e.main,s)))}function L3(e="light"){return e==="dark"?{main:Ua[200],light:Ua[50],dark:Ua[400]}:{main:Ua[700],light:Ua[400],dark:Ua[800]}}function D3(e="light"){return e==="dark"?{main:Ba[200],light:Ba[50],dark:Ba[400]}:{main:Ba[500],light:Ba[300],dark:Ba[700]}}function F3(e="light"){return e==="dark"?{main:za[500],light:za[300],dark:za[700]}:{main:za[700],light:za[400],dark:za[800]}}function B3(e="light"){return e==="dark"?{main:Wa[400],light:Wa[300],dark:Wa[700]}:{main:Wa[700],light:Wa[500],dark:Wa[900]}}function z3(e="light"){return e==="dark"?{main:Ha[400],light:Ha[300],dark:Ha[700]}:{main:Ha[800],light:Ha[500],dark:Ha[900]}}function U3(e="light"){return e==="dark"?{main:$c[400],light:$c[300],dark:$c[700]}:{main:"#ed6c02",light:$c[500],dark:$c[900]}}function W3(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ge(e,N3),s=e.primary||L3(t),l=e.secondary||D3(t),u=e.error||F3(t),c=e.info||B3(t),f=e.success||z3(t),p=e.warning||U3(t);function m(b){return E3(b,hg.text.primary)>=n?hg.text.primary:NC.text.primary}const g=({color:b,name:w,mainShade:P=500,lightShade:R=300,darkShade:O=700})=>{if(b=k({},b),!b.main&&b[P]&&(b.main=b[P]),!b.hasOwnProperty("main"))throw new Error(di(11,w?` (${w})`:"",P));if(typeof b.main!="string")throw new Error(di(12,w?` (${w})`:"",JSON.stringify(b.main)));return LC(b,"light",R,r),LC(b,"dark",O,r),b.contrastText||(b.contrastText=m(b.main)),b},S={dark:hg,light:NC};return rr(k({common:k({},Oc),mode:t,primary:g({color:s,name:"primary"}),secondary:g({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:u,name:"error"}),warning:g({color:p,name:"warning"}),info:g({color:c,name:"info"}),success:g({color:f,name:"success"}),grey:M3,contrastThreshold:n,getContrastText:m,augmentColor:g,tonalOffset:r},S[t]),o)}const H3=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function V3(e){return Math.round(e*1e5)/1e5}const DC={textTransform:"uppercase"},FC='"Roboto", "Helvetica", "Arial", sans-serif';function K3(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=FC,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:l=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:f=16,allVariants:p,pxToRem:m}=n,g=ge(n,H3),S=o/14,x=m||(P=>`${P/f*S}rem`),b=(P,R,O,A,$)=>k({fontFamily:r,fontWeight:P,fontSize:x(R),lineHeight:O},r===FC?{letterSpacing:`${V3(A/R)}em`}:{},$,p),w={h1:b(s,96,1.167,-1.5),h2:b(s,60,1.2,-.5),h3:b(l,48,1.167,0),h4:b(l,34,1.235,.25),h5:b(l,24,1.334,0),h6:b(u,20,1.6,.15),subtitle1:b(l,16,1.75,.15),subtitle2:b(u,14,1.57,.1),body1:b(l,16,1.5,.15),body2:b(l,14,1.43,.15),button:b(u,14,1.75,.4,DC),caption:b(l,12,1.66,.4),overline:b(l,12,2.66,1,DC),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return rr(k({htmlFontSize:f,pxToRem:x,fontFamily:r,fontSize:o,fontWeightLight:s,fontWeightRegular:l,fontWeightMedium:u,fontWeightBold:c},w),g,{clone:!1})}const G3=.2,q3=.14,Q3=.12;function dn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${G3})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${q3})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Q3})`].join(",")}const Y3=["none",dn(0,2,1,-1,0,1,1,0,0,1,3,0),dn(0,3,1,-2,0,2,2,0,0,1,5,0),dn(0,3,3,-2,0,3,4,0,0,1,8,0),dn(0,2,4,-1,0,4,5,0,0,1,10,0),dn(0,3,5,-1,0,5,8,0,0,1,14,0),dn(0,3,5,-1,0,6,10,0,0,1,18,0),dn(0,4,5,-2,0,7,10,1,0,2,16,1),dn(0,5,5,-3,0,8,10,1,0,3,14,2),dn(0,5,6,-3,0,9,12,1,0,3,16,2),dn(0,6,6,-3,0,10,14,1,0,4,18,3),dn(0,6,7,-4,0,11,15,1,0,4,20,3),dn(0,7,8,-4,0,12,17,2,0,5,22,4),dn(0,7,8,-4,0,13,19,2,0,5,24,4),dn(0,7,9,-4,0,14,21,2,0,5,26,4),dn(0,8,9,-5,0,15,22,2,0,6,28,5),dn(0,8,10,-5,0,16,24,2,0,6,30,5),dn(0,8,11,-5,0,17,26,2,0,6,32,5),dn(0,9,11,-5,0,18,28,2,0,7,34,6),dn(0,9,12,-6,0,19,29,2,0,7,36,6),dn(0,10,13,-6,0,20,31,3,0,8,38,7),dn(0,10,13,-6,0,21,33,3,0,8,40,7),dn(0,10,14,-6,0,22,35,3,0,8,42,7),dn(0,11,14,-7,0,23,36,3,0,9,44,8),dn(0,11,15,-7,0,24,38,3,0,9,46,8)],X3=["duration","easing","delay"],J3={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},BC={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function zC(e){return`${Math.round(e)}ms`}function Z3(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function eU(e){const t=k({},J3,e.easing),n=k({},BC,e.duration);return k({getAutoHeightDuration:Z3,create:(o=["all"],s={})=>{const{duration:l=n.standard,easing:u=t.easeInOut,delay:c=0}=s;return ge(s,X3),(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof l=="string"?l:zC(l)} ${u} ${typeof c=="string"?c:zC(c)}`).join(",")}},e,{easing:t,duration:n})}const tU={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},nU=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function mg(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:s={}}=e,l=ge(e,nU);if(e.vars)throw new Error(di(18));const u=W3(r),c=ja(e);let f=rr(c,{mixins:w3(c.breakpoints,n),palette:u,shadows:Y3.slice(),typography:K3(u,s),transitions:eU(o),zIndex:k({},tU)});return f=rr(f,l),f=t.reduce((p,m)=>rr(p,m),f),f.unstable_sxConfig=k({},vc,l==null?void 0:l.unstable_sxConfig),f.unstable_sx=function(m){return Aa({sx:m,theme:this})},f}function rU(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function oU(e){return parseFloat(e)}const gg=mg();function xr(){const e=bc(gg);return e[Ea]||e}var Ac={},yg={exports:{}},UC;function iU(){return UC||(UC=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var s in n)if({}.hasOwnProperty.call(n,s)){if(r.includes(s))continue;o[s]=n[s]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(yg)),yg.exports}const WC=$r(o5),sU=$r(i5),aU=$r(d5),lU=$r(dz),cU=$r(J5),uU=$r(oz);var Va=TC;Object.defineProperty(Ac,"__esModule",{value:!0});var dU=Ac.default=EU;Ac.shouldForwardProp=af,Ac.systemDefaultTheme=void 0;var oo=Va(DS()),vg=Va(iU()),HC=vU(WC),fU=sU;Va(aU),Va(lU);var pU=Va(cU),hU=Va(uU);const mU=["ownerState"],gU=["variants"],yU=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function VC(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(VC=function(r){return r?n:t})(e)}function vU(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=VC(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var l=o?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(r,s,l):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function bU(e){return Object.keys(e).length===0}function xU(e){return typeof e=="string"&&e.charCodeAt(0)>96}function af(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const wU=Ac.systemDefaultTheme=(0,pU.default)(),SU=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function lf({defaultTheme:e,theme:t,themeId:n}){return bU(t)?e:t[n]||t}function CU(e){return e?(t,n)=>n[e]:null}function cf(e,t){let{ownerState:n}=t,r=(0,vg.default)(t,mU);const o=typeof e=="function"?e((0,oo.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(s=>cf(s,(0,oo.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:s=[]}=o;let u=(0,vg.default)(o,gU);return s.forEach(c=>{let f=!0;typeof c.props=="function"?f=c.props((0,oo.default)({ownerState:n},r,n)):Object.keys(c.props).forEach(p=>{(n==null?void 0:n[p])!==c.props[p]&&r[p]!==c.props[p]&&(f=!1)}),f&&(Array.isArray(u)||(u=[u]),u.push(typeof c.style=="function"?c.style((0,oo.default)({ownerState:n},r,n)):c.style))}),u}return o}function EU(e={}){const{themeId:t,defaultTheme:n=wU,rootShouldForwardProp:r=af,slotShouldForwardProp:o=af}=e,s=l=>(0,hU.default)((0,oo.default)({},l,{theme:lf((0,oo.default)({},l,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(l,u={})=>{(0,HC.internal_processStyles)(l,$=>$.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:c,slot:f,skipVariantsResolver:p,skipSx:m,overridesResolver:g=CU(SU(f))}=u,S=(0,vg.default)(u,yU),x=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,b=m||!1;let w,P=af;f==="Root"||f==="root"?P=r:f?P=o:xU(l)&&(P=void 0);const R=(0,HC.default)(l,(0,oo.default)({shouldForwardProp:P,label:w},S)),O=$=>typeof $=="function"&&$.__emotion_real!==$||(0,fU.isPlainObject)($)?T=>cf($,(0,oo.default)({},T,{theme:lf({theme:T.theme,defaultTheme:n,themeId:t})})):$,A=($,...T)=>{let _=O($);const M=T?T.map(O):[];c&&g&&M.push(G=>{const W=lf((0,oo.default)({},G,{defaultTheme:n,themeId:t}));if(!W.components||!W.components[c]||!W.components[c].styleOverrides)return null;const H=W.components[c].styleOverrides,z={};return Object.entries(H).forEach(([te,Z])=>{z[te]=cf(Z,(0,oo.default)({},G,{theme:W}))}),g(G,z)}),c&&!x&&M.push(G=>{var W;const H=lf((0,oo.default)({},G,{defaultTheme:n,themeId:t})),z=H==null||(W=H.components)==null||(W=W[c])==null?void 0:W.variants;return cf({variants:z},(0,oo.default)({},G,{theme:H}))}),b||M.push(s);const F=M.length-T.length;if(Array.isArray($)&&F>0){const G=new Array(F).fill("");_=[...$,...G],_.raw=[...$.raw,...G]}const B=R(_,...M);return l.muiName&&(B.muiName=l.muiName),B};return R.withConfig&&(A.withConfig=R.withConfig),A}}function KC(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Tn=e=>KC(e)&&e!=="classes",re=dU({themeId:Ea,defaultTheme:gg,rootShouldForwardProp:Tn}),RU=["theme"];function kU(e){let{theme:t}=e,n=ge(e,RU);const r=t[Ea];return y.jsx(Yz,k({},n,{themeId:r?Ea:void 0,theme:r||t}))}const GC=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Fe(e){return Qz(e)}function PU(e){return Ie("MuiSvgIcon",e)}Ne("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const TU=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],OU=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ie(t)}`,`fontSize${ie(n)}`]};return Le(o,PU,r)},$U=re("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ie(n.color)}`],t[`fontSize${ie(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,s,l,u,c,f,p,m,g,S,x;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,20))||"1.25rem",medium:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,24))||"1.5rem",large:((f=e.typography)==null||(p=f.pxToRem)==null?void 0:p.call(f,35))||"2.1875rem"}[t.fontSize],color:(m=(g=(e.vars||e).palette)==null||(g=g[t.color])==null?void 0:g.main)!=null?m:{action:(S=(e.vars||e).palette)==null||(S=S.action)==null?void 0:S.active,disabled:(x=(e.vars||e).palette)==null||(x=x.action)==null?void 0:x.disabled,inherit:void 0}[t.color]}}),bg=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:l="inherit",component:u="svg",fontSize:c="medium",htmlColor:f,inheritViewBox:p=!1,titleAccess:m,viewBox:g="0 0 24 24"}=r,S=ge(r,TU),x=E.isValidElement(o)&&o.type==="svg",b=k({},r,{color:l,component:u,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:g,hasSvgAsChild:x}),w={};p||(w.viewBox=g);const P=OU(b);return y.jsxs($U,k({as:u,className:ye(P.root,s),focusable:"false",color:f,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n},w,S,x&&o.props,{ownerState:b,children:[x?o.props.children:o,m?y.jsx("title",{children:m}):null]}))});bg.muiName="SvgIcon";function Rt(e,t){function n(r,o){return y.jsx(bg,k({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=bg.muiName,E.memo(E.forwardRef(n))}function xg(e,t){return xg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},xg(e,t)}function qC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xg(e,t)}const QC={disabled:!1},uf=ae.createContext(null);var AU=function(t){return t.scrollTop},jc="unmounted",Fs="exited",Bs="entering",Ka="entered",wg="exiting",Lr=function(e){qC(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var l=o,u=l&&!l.isMounting?r.enter:r.appear,c;return s.appearStatus=null,r.in?u?(c=Fs,s.appearStatus=Bs):c=Ka:r.unmountOnExit||r.mountOnEnter?c=jc:c=Fs,s.state={status:c},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var l=o.in;return l&&s.status===jc?{status:Fs}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var l=this.state.status;this.props.in?l!==Bs&&l!==Ka&&(s=Bs):(l===Bs||l===Ka)&&(s=wg)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,l,u;return s=l=u=o,o!=null&&typeof o!="number"&&(s=o.exit,l=o.enter,u=o.appear!==void 0?o.appear:l),{exit:s,enter:l,appear:u}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===Bs){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:vs.findDOMNode(this);l&&AU(l)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fs&&this.setState({status:jc})},n.performEnter=function(o){var s=this,l=this.props.enter,u=this.context?this.context.isMounting:o,c=this.props.nodeRef?[u]:[vs.findDOMNode(this),u],f=c[0],p=c[1],m=this.getTimeouts(),g=u?m.appear:m.enter;if(!o&&!l||QC.disabled){this.safeSetState({status:Ka},function(){s.props.onEntered(f)});return}this.props.onEnter(f,p),this.safeSetState({status:Bs},function(){s.props.onEntering(f,p),s.onTransitionEnd(g,function(){s.safeSetState({status:Ka},function(){s.props.onEntered(f,p)})})})},n.performExit=function(){var o=this,s=this.props.exit,l=this.getTimeouts(),u=this.props.nodeRef?void 0:vs.findDOMNode(this);if(!s||QC.disabled){this.safeSetState({status:Fs},function(){o.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:wg},function(){o.props.onExiting(u),o.onTransitionEnd(l.exit,function(){o.safeSetState({status:Fs},function(){o.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,l=!0;return this.nextCallback=function(u){l&&(l=!1,s.nextCallback=null,o(u))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var l=this.props.nodeRef?this.props.nodeRef.current:vs.findDOMNode(this),u=o==null&&!this.props.addEndListener;if(!l||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],f=c[0],p=c[1];this.props.addEndListener(f,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===jc)return null;var s=this.props,l=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var u=ge(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ae.createElement(uf.Provider,{value:null},typeof l=="function"?l(o,u):ae.cloneElement(ae.Children.only(l),u))},t}(ae.Component);Lr.contextType=uf,Lr.propTypes={};function Ga(){}Lr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ga,onEntering:Ga,onEntered:Ga,onExit:Ga,onExiting:Ga,onExited:Ga},Lr.UNMOUNTED=jc,Lr.EXITED=Fs,Lr.ENTERING=Bs,Lr.ENTERED=Ka,Lr.EXITING=wg;function jU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sg(e,t){var n=function(s){return t&&E.isValidElement(s)?t(s):s},r=Object.create(null);return e&&E.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function _U(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var s in e)s in t?o.length&&(r[s]=o,o=[]):o.push(s);var l,u={};for(var c in t){if(r[c])for(l=0;l<r[c].length;l++){var f=r[c][l];u[r[c][l]]=n(f)}u[c]=n(c)}for(l=0;l<o.length;l++)u[o[l]]=n(o[l]);return u}function zs(e,t,n){return n[t]!=null?n[t]:e.props[t]}function IU(e,t){return Sg(e.children,function(n){return E.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:zs(n,"appear",e),enter:zs(n,"enter",e),exit:zs(n,"exit",e)})})}function MU(e,t,n){var r=Sg(e.children),o=_U(t,r);return Object.keys(o).forEach(function(s){var l=o[s];if(E.isValidElement(l)){var u=s in t,c=s in r,f=t[s],p=E.isValidElement(f)&&!f.props.in;c&&(!u||p)?o[s]=E.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:zs(l,"exit",e),enter:zs(l,"enter",e)}):!c&&u&&!p?o[s]=E.cloneElement(l,{in:!1}):c&&u&&E.isValidElement(f)&&(o[s]=E.cloneElement(l,{onExited:n.bind(null,l),in:f.props.in,exit:zs(l,"exit",e),enter:zs(l,"enter",e)}))}}),o}var NU=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},LU={component:"div",childFactory:function(t){return t}},Cg=function(e){qC(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var l=s.handleExited.bind(jU(s));return s.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,s){var l=s.children,u=s.handleExited,c=s.firstRender;return{children:c?IU(o,u):MU(o,l,u),firstRender:!1}},n.handleExited=function(o,s){var l=Sg(this.props.children);o.key in l||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(u){var c=k({},u.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,s=o.component,l=o.childFactory,u=ge(o,["component","childFactory"]),c=this.state.contextValue,f=NU(this.state.children).map(l);return delete u.appear,delete u.enter,delete u.exit,s===null?ae.createElement(uf.Provider,{value:c},f):ae.createElement(uf.Provider,{value:c},ae.createElement(s,u,f))},t}(ae.Component);Cg.propTypes={},Cg.defaultProps=LU;const df=e=>e.scrollTop;function Vo(e,t){var n,r;const{timeout:o,easing:s,style:l={}}=e;return{duration:(n=l.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=l.transitionTimingFunction)!=null?r:typeof s=="object"?s[t.mode]:s,delay:l.transitionDelay}}function DU(e){return Ie("MuiCollapse",e)}Ne("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const FU=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],BU=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Le(r,DU,n)},zU=re("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>k({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&k({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),UU=re("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>k({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),WU=re("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>k({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Eg=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiCollapse"}),{addEndListener:o,children:s,className:l,collapsedSize:u="0px",component:c,easing:f,in:p,onEnter:m,onEntered:g,onEntering:S,onExit:x,onExited:b,onExiting:w,orientation:P="vertical",style:R,timeout:O=BC.standard,TransitionComponent:A=Lr}=r,$=ge(r,FU),T=k({},r,{orientation:P,collapsedSize:u}),_=BU(T),M=xr(),F=hi(),B=E.useRef(null),G=E.useRef(),W=typeof u=="number"?`${u}px`:u,H=P==="horizontal",z=H?"width":"height",te=E.useRef(null),Z=Gt(n,te),X=he=>Me=>{if(he){const de=te.current;Me===void 0?he(de):he(de,Me)}},N=()=>B.current?B.current[H?"clientWidth":"clientHeight"]:0,Y=X((he,Me)=>{B.current&&H&&(B.current.style.position="absolute"),he.style[z]=W,m&&m(he,Me)}),ce=X((he,Me)=>{const de=N();B.current&&H&&(B.current.style.position="");const{duration:ke,easing:Qe}=Vo({style:R,timeout:O,easing:f},{mode:"enter"});if(O==="auto"){const He=M.transitions.getAutoHeightDuration(de);he.style.transitionDuration=`${He}ms`,G.current=He}else he.style.transitionDuration=typeof ke=="string"?ke:`${ke}ms`;he.style[z]=`${de}px`,he.style.transitionTimingFunction=Qe,S&&S(he,Me)}),L=X((he,Me)=>{he.style[z]="auto",g&&g(he,Me)}),se=X(he=>{he.style[z]=`${N()}px`,x&&x(he)}),Oe=X(b),ve=X(he=>{const Me=N(),{duration:de,easing:ke}=Vo({style:R,timeout:O,easing:f},{mode:"exit"});if(O==="auto"){const Qe=M.transitions.getAutoHeightDuration(Me);he.style.transitionDuration=`${Qe}ms`,G.current=Qe}else he.style.transitionDuration=typeof de=="string"?de:`${de}ms`;he.style[z]=W,he.style.transitionTimingFunction=ke,w&&w(he)}),xe=he=>{O==="auto"&&F.start(G.current||0,he),o&&o(te.current,he)};return y.jsx(A,k({in:p,onEnter:Y,onEntered:L,onEntering:ce,onExit:se,onExited:Oe,onExiting:ve,addEndListener:xe,nodeRef:te,timeout:O==="auto"?null:O},$,{children:(he,Me)=>y.jsx(zU,k({as:c,className:ye(_.root,l,{entered:_.entered,exited:!p&&W==="0px"&&_.hidden}[he]),style:k({[H?"minWidth":"minHeight"]:W},R),ref:Z},Me,{ownerState:k({},T,{state:he}),children:y.jsx(UU,{ownerState:k({},T,{state:he}),className:_.wrapper,ref:B,children:y.jsx(WU,{ownerState:k({},T,{state:he}),className:_.wrapperInner,children:s})})}))}))});Eg.muiSupportAuto=!0;function HU(e){return Ie("MuiPaper",e)}Ne("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const VU=["className","component","elevation","square","variant"],KU=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Le(s,HU,o)},GU=re("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return k({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&k({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${mt("#fff",GC(t.elevation))}, ${mt("#fff",GC(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),io=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPaper"}),{className:o,component:s="div",elevation:l=1,square:u=!1,variant:c="elevation"}=r,f=ge(r,VU),p=k({},r,{component:s,elevation:l,square:u,variant:c}),m=KU(p);return y.jsx(GU,k({as:s,ownerState:p,className:ye(m.root,o),ref:n},f))}),qU=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],QU=["component","slots","slotProps"],YU=["component"];function Rg(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:s,getSlotOwnerState:l,internalForwardedProps:u}=t,c=ge(t,qU),{component:f,slots:p={[e]:void 0},slotProps:m={[e]:void 0}}=s,g=ge(s,QU),S=p[e]||r,x=bC(m[e],o),b=vC(k({className:n},c,{externalForwardedProps:e==="root"?g:void 0,externalSlotProps:x})),{props:{component:w},internalRef:P}=b,R=ge(b.props,YU),O=Gt(P,x==null?void 0:x.ref,t.ref),A=l?l(R):{},$=k({},o,A),T=e==="root"?w||f:w,_=La(S,k({},e==="root"&&!f&&!p[e]&&u,e!=="root"&&!p[e]&&u,R,T&&{as:T},{ref:O}),$);return Object.keys(A).forEach(M=>{delete _[M]}),[S,_]}function XU(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:l,in:u,onExited:c,timeout:f}=e,[p,m]=E.useState(!1),g=ye(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),S={width:l,height:l,top:-(l/2)+s,left:-(l/2)+o},x=ye(n.child,p&&n.childLeaving,r&&n.childPulsate);return!u&&!p&&m(!0),E.useEffect(()=>{if(!u&&c!=null){const b=setTimeout(c,f);return()=>{clearTimeout(b)}}},[c,u,f]),y.jsx("span",{className:g,style:S,children:y.jsx("span",{className:x})})}const so=Ne("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),JU=["center","classes","className"];let ff=e=>e,YC,XC,JC,ZC;const kg=550,ZU=80,e6=Bi(YC||(YC=ff`
|
|
23
23
|
0% {
|
|
24
24
|
transform: scale(0);
|
|
25
25
|
opacity: 0.1;
|
|
@@ -92,8 +92,8 @@ Error generating stack: `+C.message+`
|
|
|
92
92
|
animation-iteration-count: infinite;
|
|
93
93
|
animation-delay: 200ms;
|
|
94
94
|
}
|
|
95
|
-
`),io.rippleVisible,e6,kg,({theme:e})=>e.transitions.easing.easeInOut,io.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,io.child,io.childLeaving,t6,kg,({theme:e})=>e.transitions.easing.easeInOut,io.childPulsate,n6,({theme:e})=>e.transitions.easing.easeInOut),i6=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:l}=r,u=ge(r,JU),[c,f]=E.useState([]),p=E.useRef(0),m=E.useRef(null);E.useEffect(()=>{m.current&&(m.current(),m.current=null)},[c]);const g=E.useRef(!1),S=hi(),x=E.useRef(null),b=E.useRef(null),w=E.useCallback(A=>{const{pulsate:$,rippleX:T,rippleY:_,rippleSize:M,cb:F}=A;f(B=>[...B,y.jsx(o6,{classes:{ripple:ye(s.ripple,io.ripple),rippleVisible:ye(s.rippleVisible,io.rippleVisible),ripplePulsate:ye(s.ripplePulsate,io.ripplePulsate),child:ye(s.child,io.child),childLeaving:ye(s.childLeaving,io.childLeaving),childPulsate:ye(s.childPulsate,io.childPulsate)},timeout:kg,pulsate:$,rippleX:T,rippleY:_,rippleSize:M},p.current)]),p.current+=1,m.current=F},[s]),P=E.useCallback((A={},$={},T=()=>{})=>{const{pulsate:_=!1,center:M=o||$.pulsate,fakeElement:F=!1}=$;if((A==null?void 0:A.type)==="mousedown"&&g.current){g.current=!1;return}(A==null?void 0:A.type)==="touchstart"&&(g.current=!0);const B=F?null:b.current,G=B?B.getBoundingClientRect():{width:0,height:0,left:0,top:0};let W,H,z;if(M||A===void 0||A.clientX===0&&A.clientY===0||!A.clientX&&!A.touches)W=Math.round(G.width/2),H=Math.round(G.height/2);else{const{clientX:te,clientY:Z}=A.touches&&A.touches.length>0?A.touches[0]:A;W=Math.round(te-G.left),H=Math.round(Z-G.top)}if(M)z=Math.sqrt((2*G.width**2+G.height**2)/3),z%2===0&&(z+=1);else{const te=Math.max(Math.abs((B?B.clientWidth:0)-W),W)*2+2,Z=Math.max(Math.abs((B?B.clientHeight:0)-H),H)*2+2;z=Math.sqrt(te**2+Z**2)}A!=null&&A.touches?x.current===null&&(x.current=()=>{w({pulsate:_,rippleX:W,rippleY:H,rippleSize:z,cb:T})},S.start(ZU,()=>{x.current&&(x.current(),x.current=null)})):w({pulsate:_,rippleX:W,rippleY:H,rippleSize:z,cb:T})},[o,w,S]),R=E.useCallback(()=>{P({},{pulsate:!0})},[P]),O=E.useCallback((A,$)=>{if(S.clear(),(A==null?void 0:A.type)==="touchend"&&x.current){x.current(),x.current=null,S.start(0,()=>{O(A,$)});return}x.current=null,f(T=>T.length>0?T.slice(1):T),m.current=$},[S]);return E.useImperativeHandle(n,()=>({pulsate:R,start:P,stop:O}),[R,P,O]),y.jsx(r6,k({className:ye(io.root,s.root,l),ref:b},u,{children:y.jsx(Cg,{component:null,exit:!0,children:c})}))});function s6(e){return Ie("MuiButtonBase",e)}const a6=Ne("MuiButtonBase",["root","disabled","focusVisible"]),l6=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],c6=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,l=Le({root:["root",t&&"disabled",n&&"focusVisible"]},s6,o);return n&&r&&(l.root+=` ${r}`),l},u6=re("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${a6.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Dr=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:l,className:u,component:c="button",disabled:f=!1,disableRipple:p=!1,disableTouchRipple:m=!1,focusRipple:g=!1,LinkComponent:S="a",onBlur:x,onClick:b,onContextMenu:w,onDragLeave:P,onFocus:R,onFocusVisible:O,onKeyDown:A,onKeyUp:$,onMouseDown:T,onMouseLeave:_,onMouseUp:M,onTouchEnd:F,onTouchMove:B,onTouchStart:G,tabIndex:W=0,TouchRippleProps:H,touchRippleRef:z,type:te}=r,Z=ge(r,l6),X=E.useRef(null),N=E.useRef(null),Y=Gt(N,z),{isFocusVisibleRef:ce,onFocus:L,onBlur:se,ref:Oe}=ag(),[ve,xe]=E.useState(!1);f&&ve&&xe(!1),E.useImperativeHandle(o,()=>({focusVisible:()=>{xe(!0),X.current.focus()}}),[]);const[he,Me]=E.useState(!1);E.useEffect(()=>{Me(!0)},[]);const de=he&&!p&&!f;E.useEffect(()=>{ve&&g&&!p&&he&&N.current.pulsate()},[p,g,ve,he]);function ke(Pe,xt,Ht=m){return Nn(fn=>(xt&&xt(fn),!Ht&&N.current&&N.current[Pe](fn),!0))}const Qe=ke("start",T),He=ke("stop",w),Be=ke("stop",P),Je=ke("stop",M),ct=ke("stop",Pe=>{ve&&Pe.preventDefault(),_&&_(Pe)}),ot=ke("start",G),ze=ke("stop",F),Ot=ke("stop",B),Ze=ke("stop",Pe=>{se(Pe),ce.current===!1&&xe(!1),x&&x(Pe)},!1),$t=Nn(Pe=>{X.current||(X.current=Pe.currentTarget),L(Pe),ce.current===!0&&(xe(!0),O&&O(Pe)),R&&R(Pe)}),gt=()=>{const Pe=X.current;return c&&c!=="button"&&!(Pe.tagName==="A"&&Pe.href)},dt=E.useRef(!1),_t=Nn(Pe=>{g&&!dt.current&&ve&&N.current&&Pe.key===" "&&(dt.current=!0,N.current.stop(Pe,()=>{N.current.start(Pe)})),Pe.target===Pe.currentTarget&>()&&Pe.key===" "&&Pe.preventDefault(),A&&A(Pe),Pe.target===Pe.currentTarget&>()&&Pe.key==="Enter"&&!f&&(Pe.preventDefault(),b&&b(Pe))}),Pt=Nn(Pe=>{g&&Pe.key===" "&&N.current&&ve&&!Pe.defaultPrevented&&(dt.current=!1,N.current.stop(Pe,()=>{N.current.pulsate(Pe)})),$&&$(Pe),b&&Pe.target===Pe.currentTarget&>()&&Pe.key===" "&&!Pe.defaultPrevented&&b(Pe)});let pt=c;pt==="button"&&(Z.href||Z.to)&&(pt=S);const Ft={};pt==="button"?(Ft.type=te===void 0?"button":te,Ft.disabled=f):(!Z.href&&!Z.to&&(Ft.role="button"),f&&(Ft["aria-disabled"]=f));const Yt=Gt(n,Oe,X),qt=k({},r,{centerRipple:s,component:c,disabled:f,disableRipple:p,disableTouchRipple:m,focusRipple:g,tabIndex:W,focusVisible:ve}),et=c6(qt);return y.jsxs(u6,k({as:pt,className:ye(et.root,u),ownerState:qt,onBlur:Ze,onClick:b,onContextMenu:He,onFocus:$t,onKeyDown:_t,onKeyUp:Pt,onMouseDown:Qe,onMouseLeave:ct,onMouseUp:Je,onDragLeave:Be,onTouchEnd:ze,onTouchMove:Ot,onTouchStart:ot,ref:Yt,tabIndex:f?-1:W,type:te},Ft,Z,{children:[l,de?y.jsx(i6,k({ref:Y,center:s},H)):null]}))});function d6(e){return Ie("MuiAlert",e)}const eE=Ne("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function f6(e){return Ie("MuiIconButton",e)}const p6=Ne("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),h6=["edge","children","className","color","disabled","disableFocusRipple","size"],m6=e=>{const{classes:t,disabled:n,color:r,edge:o,size:s}=e,l={root:["root",n&&"disabled",r!=="default"&&`color${ie(r)}`,o&&`edge${ie(o)}`,`size${ie(s)}`]};return Le(l,f6,t)},g6=re(Dr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ie(n.color)}`],n.edge&&t[`edge${ie(n.edge)}`],t[`size${ie(n.size)}`]]}})(({theme:e,ownerState:t})=>k({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return k({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&k({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":k({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${p6.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Wn=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:l,color:u="default",disabled:c=!1,disableFocusRipple:f=!1,size:p="medium"}=r,m=ge(r,h6),g=k({},r,{edge:o,color:u,disabled:c,disableFocusRipple:f,size:p}),S=m6(g);return y.jsx(g6,k({className:ye(S.root,l),centerRipple:!0,focusRipple:!f,disabled:c,ref:n},m,{ownerState:g,children:s}))}),y6=Rt(y.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),v6=Rt(y.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),b6=Rt(y.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),x6=Rt(y.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),tE=Rt(y.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),w6=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],S6=e=>{const{variant:t,color:n,severity:r,classes:o}=e,s={root:["root",`color${ie(n||r)}`,`${t}${ie(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Le(s,d6,o)},C6=re(oo,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ie(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?Pc:Tc,n=e.palette.mode==="light"?Tc:Pc;return k({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${eE.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${eE.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:k({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}))]})}),E6=re("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),R6=re("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),nE=re("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),rE={success:y.jsx(y6,{fontSize:"inherit"}),warning:y.jsx(v6,{fontSize:"inherit"}),error:y.jsx(b6,{fontSize:"inherit"}),info:y.jsx(x6,{fontSize:"inherit"})},k6=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiAlert"}),{action:o,children:s,className:l,closeText:u="Close",color:c,components:f={},componentsProps:p={},icon:m,iconMapping:g=rE,onClose:S,role:x="alert",severity:b="success",slotProps:w={},slots:P={},variant:R="standard"}=r,O=ge(r,w6),A=k({},r,{color:c,severity:b,variant:R,colorSeverity:c||b}),$=S6(A),T={slots:k({closeButton:f.CloseButton,closeIcon:f.CloseIcon},P),slotProps:k({},p,w)},[_,M]=Rg("closeButton",{elementType:Wn,externalForwardedProps:T,ownerState:A}),[F,B]=Rg("closeIcon",{elementType:tE,externalForwardedProps:T,ownerState:A});return y.jsxs(C6,k({role:x,elevation:0,ownerState:A,className:ye($.root,l),ref:n},O,{children:[m!==!1?y.jsx(E6,{ownerState:A,className:$.icon,children:m||g[b]||rE[b]}):null,y.jsx(R6,{ownerState:A,className:$.message,children:s}),o!=null?y.jsx(nE,{ownerState:A,className:$.action,children:o}):null,o==null&&S?y.jsx(nE,{ownerState:A,className:$.action,children:y.jsx(_,k({size:"small","aria-label":u,title:u,color:"inherit",onClick:S},M,{children:y.jsx(F,k({fontSize:"small"},B))}))}):null]}))});function P6(e){return Ie("MuiTypography",e)}Ne("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const T6=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],O6=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:l}=e,u={root:["root",s,e.align!=="inherit"&&`align${ie(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Le(u,P6,l)},$6=re("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ie(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>k({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),oE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},A6={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},j6=e=>A6[e]||e,bn=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTypography"}),o=j6(r.color),s=xc(k({},r,{color:o})),{align:l="inherit",className:u,component:c,gutterBottom:f=!1,noWrap:p=!1,paragraph:m=!1,variant:g="body1",variantMapping:S=oE}=s,x=ge(s,T6),b=k({},s,{align:l,color:o,className:u,component:c,gutterBottom:f,noWrap:p,paragraph:m,variant:g,variantMapping:S}),w=c||(m?"p":S[g]||oE[g])||"span",P=O6(b);return y.jsx($6,k({as:w,ref:n,ownerState:b,className:ye(P.root,u)},x))});function _6(e){return Ie("MuiAlertTitle",e)}Ne("MuiAlertTitle",["root"]);const I6=["className"],M6=e=>{const{classes:t}=e;return Le({root:["root"]},_6,t)},N6=re(bn,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2})),L6=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiAlertTitle"}),{className:o}=r,s=ge(r,I6),l=r,u=M6(l);return y.jsx(N6,k({gutterBottom:!0,component:"div",ownerState:l,ref:n,className:ye(u.root,o)},s))});function D6(e){return Ie("MuiAppBar",e)}Ne("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const F6=["className","color","enableColorOnDark","position"],B6=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${ie(t)}`,`position${ie(n)}`]};return Le(o,D6,r)},pf=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,z6=re(oo,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ie(n.position)}`],t[`color${ie(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return k({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&k({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&k({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&k({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:pf(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:pf(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:pf(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:pf(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),iE=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiAppBar"}),{className:o,color:s="primary",enableColorOnDark:l=!1,position:u="fixed"}=r,c=ge(r,F6),f=k({},r,{color:s,position:u,enableColorOnDark:l}),p=B6(f);return y.jsx(z6,k({square:!0,component:"header",ownerState:f,elevation:4,className:ye(p.root,o,u==="fixed"&&"mui-fixed"),ref:n},c))});function sE(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function U6(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:s,trim:l=!1}=e;return(u,{inputValue:c,getOptionLabel:f})=>{let p=l?c.trim():c;n&&(p=p.toLowerCase()),t&&(p=sE(p));const m=p?u.filter(g=>{let S=(s||f)(g);return n&&(S=S.toLowerCase()),t&&(S=sE(S)),o==="start"?S.indexOf(p)===0:S.indexOf(p)>-1}):u;return typeof r=="number"?m.slice(0,r):m}}function hf(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const W6=U6(),aE=5,H6=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function V6(e){const{unstable_isActiveElementInListbox:t=H6,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:s=!1,blurOnSelect:l=!1,clearOnBlur:u=!e.freeSolo,clearOnEscape:c=!1,componentName:f="useAutocomplete",defaultValue:p=e.multiple?[]:null,disableClearable:m=!1,disableCloseOnSelect:g=!1,disabled:S,disabledItemsFocusable:x=!1,disableListWrap:b=!1,filterOptions:w=W6,filterSelectedOptions:P=!1,freeSolo:R=!1,getOptionDisabled:O,getOptionKey:A,getOptionLabel:$=Q=>{var q;return(q=Q.label)!=null?q:Q},groupBy:T,handleHomeEndKeys:_=!e.freeSolo,id:M,includeInputInList:F=!1,inputValue:B,isOptionEqualToValue:G=(Q,q)=>Q===q,multiple:W=!1,onChange:H,onClose:z,onHighlightChange:te,onInputChange:Z,onOpen:X,open:N,openOnFocus:Y=!1,options:ce,readOnly:L=!1,selectOnFocus:se=!e.freeSolo,value:Oe}=e,ve=Ia(M);let xe=$;xe=Q=>{const q=$(Q);return typeof q!="string"?String(q):q};const he=E.useRef(!1),Me=E.useRef(!0),de=E.useRef(null),ke=E.useRef(null),[Qe,He]=E.useState(null),[Be,Je]=E.useState(-1),ct=o?0:-1,ot=E.useRef(ct),[ze,Ot]=pi({controlled:Oe,default:p,name:f}),[Ze,$t]=pi({controlled:B,default:"",name:f,state:"inputValue"}),[gt,dt]=E.useState(!1),_t=E.useCallback((Q,q)=>{if(!(W?ze.length<q.length:q!==null)&&!u)return;let be;if(W)be="";else if(q==null)be="";else{const De=xe(q);be=typeof De=="string"?De:""}Ze!==be&&($t(be),Z&&Z(Q,be,"reset"))},[xe,Ze,W,Z,$t,u,ze]),[Pt,pt]=pi({controlled:N,default:!1,name:f,state:"open"}),[Ft,Yt]=E.useState(!0),qt=!W&&ze!=null&&Ze===xe(ze),et=Pt&&!L,Pe=et?w(ce.filter(Q=>!(P&&(W?ze:[ze]).some(q=>q!==null&&G(Q,q)))),{inputValue:qt&&Ft?"":Ze,getOptionLabel:xe}):[],xt=lg({filteredOptions:Pe,value:ze,inputValue:Ze});E.useEffect(()=>{const Q=ze!==xt.value;gt&&!Q||R&&!Q||_t(null,ze)},[ze,_t,gt,xt.value,R]);const Ht=Pt&&Pe.length>0&&!L,fn=Nn(Q=>{Q===-1?de.current.focus():Qe.querySelector(`[data-tag-index="${Q}"]`).focus()});E.useEffect(()=>{W&&Be>ze.length-1&&(Je(-1),fn(-1))},[ze,W,Be,fn]);function Ue(Q,q){if(!ke.current||Q<0||Q>=Pe.length)return-1;let we=Q;for(;;){const be=ke.current.querySelector(`[data-option-index="${we}"]`),De=x?!1:!be||be.disabled||be.getAttribute("aria-disabled")==="true";if(be&&be.hasAttribute("tabindex")&&!De)return we;if(q==="next"?we=(we+1)%Pe.length:we=(we-1+Pe.length)%Pe.length,we===Q)return-1}}const ut=Nn(({event:Q,index:q,reason:we="auto"})=>{if(ot.current=q,q===-1?de.current.removeAttribute("aria-activedescendant"):de.current.setAttribute("aria-activedescendant",`${ve}-option-${q}`),te&&te(Q,q===-1?null:Pe[q],we),!ke.current)return;const be=ke.current.querySelector(`[role="option"].${n}-focused`);be&&(be.classList.remove(`${n}-focused`),be.classList.remove(`${n}-focusVisible`));let De=ke.current;if(ke.current.getAttribute("role")!=="listbox"&&(De=ke.current.parentElement.querySelector('[role="listbox"]')),!De)return;if(q===-1){De.scrollTop=0;return}const Ee=ke.current.querySelector(`[data-option-index="${q}"]`);if(Ee&&(Ee.classList.add(`${n}-focused`),we==="keyboard"&&Ee.classList.add(`${n}-focusVisible`),De.scrollHeight>De.clientHeight&&we!=="mouse"&&we!=="touch")){const nt=Ee,At=De.clientHeight+De.scrollTop,uo=nt.offsetTop+nt.offsetHeight;uo>At?De.scrollTop=uo-De.clientHeight:nt.offsetTop-nt.offsetHeight*(T?1.3:0)<De.scrollTop&&(De.scrollTop=nt.offsetTop-nt.offsetHeight*(T?1.3:0))}}),Re=Nn(({event:Q,diff:q,direction:we="next",reason:be="auto"})=>{if(!et)return;const Ee=Ue((()=>{const nt=Pe.length-1;if(q==="reset")return ct;if(q==="start")return 0;if(q==="end")return nt;const At=ot.current+q;return At<0?At===-1&&F?-1:b&&ot.current!==-1||Math.abs(q)>1?0:nt:At>nt?At===nt+1&&F?-1:b||Math.abs(q)>1?nt:0:At})(),we);if(ut({index:Ee,reason:be,event:Q}),r&&q!=="reset")if(Ee===-1)de.current.value=Ze;else{const nt=xe(Pe[Ee]);de.current.value=nt,nt.toLowerCase().indexOf(Ze.toLowerCase())===0&&Ze.length>0&&de.current.setSelectionRange(Ze.length,nt.length)}}),We=()=>{const Q=(q,we)=>{const be=q?xe(q):"",De=we?xe(we):"";return be===De};if(ot.current!==-1&&xt.filteredOptions&&xt.filteredOptions.length!==Pe.length&&xt.inputValue===Ze&&(W?ze.length===xt.value.length&&xt.value.every((q,we)=>xe(ze[we])===xe(q)):Q(xt.value,ze))){const q=xt.filteredOptions[ot.current];if(q)return hf(Pe,we=>xe(we)===xe(q))}return-1},ft=E.useCallback(()=>{if(!et)return;const Q=We();if(Q!==-1){ot.current=Q;return}const q=W?ze[0]:ze;if(Pe.length===0||q==null){Re({diff:"reset"});return}if(ke.current){if(q!=null){const we=Pe[ot.current];if(W&&we&&hf(ze,De=>G(we,De))!==-1)return;const be=hf(Pe,De=>G(De,q));be===-1?Re({diff:"reset"}):ut({index:be});return}if(ot.current>=Pe.length-1){ut({index:Pe.length-1});return}ut({index:ot.current})}},[Pe.length,W?!1:ze,P,Re,ut,et,Ze,W]),yt=Nn(Q=>{tf(ke,Q),Q&&ft()});E.useEffect(()=>{ft()},[ft]);const bt=Q=>{Pt||(pt(!0),Yt(!0),X&&X(Q))},It=(Q,q)=>{Pt&&(pt(!1),z&&z(Q,q))},Mt=(Q,q,we,be)=>{if(W){if(ze.length===q.length&&ze.every((De,Ee)=>De===q[Ee]))return}else if(ze===q)return;H&&H(Q,q,we,be),Ot(q)},Zt=E.useRef(!1),rn=(Q,q,we="selectOption",be="options")=>{let De=we,Ee=q;if(W){Ee=Array.isArray(ze)?ze.slice():[];const nt=hf(Ee,At=>G(q,At));nt===-1?Ee.push(q):be!=="freeSolo"&&(Ee.splice(nt,1),De="removeOption")}_t(Q,Ee),Mt(Q,Ee,De,{option:q}),!g&&(!Q||!Q.ctrlKey&&!Q.metaKey)&&It(Q,De),(l===!0||l==="touch"&&Zt.current||l==="mouse"&&!Zt.current)&&de.current.blur()};function Qn(Q,q){if(Q===-1)return-1;let we=Q;for(;;){if(q==="next"&&we===ze.length||q==="previous"&&we===-1)return-1;const be=Qe.querySelector(`[data-tag-index="${we}"]`);if(!be||!be.hasAttribute("tabindex")||be.disabled||be.getAttribute("aria-disabled")==="true")we+=q==="next"?1:-1;else return we}}const Hr=(Q,q)=>{if(!W)return;Ze===""&&It(Q,"toggleInput");let we=Be;Be===-1?Ze===""&&q==="previous"&&(we=ze.length-1):(we+=q==="next"?1:-1,we<0&&(we=0),we===ze.length&&(we=-1)),we=Qn(we,q),Je(we),fn(we)},Po=Q=>{he.current=!0,$t(""),Z&&Z(Q,"","clear"),Mt(Q,W?[]:null,"clear")},To=Q=>q=>{if(Q.onKeyDown&&Q.onKeyDown(q),!q.defaultMuiPrevented&&(Be!==-1&&["ArrowLeft","ArrowRight"].indexOf(q.key)===-1&&(Je(-1),fn(-1)),q.which!==229))switch(q.key){case"Home":et&&_&&(q.preventDefault(),Re({diff:"start",direction:"next",reason:"keyboard",event:q}));break;case"End":et&&_&&(q.preventDefault(),Re({diff:"end",direction:"previous",reason:"keyboard",event:q}));break;case"PageUp":q.preventDefault(),Re({diff:-aE,direction:"previous",reason:"keyboard",event:q}),bt(q);break;case"PageDown":q.preventDefault(),Re({diff:aE,direction:"next",reason:"keyboard",event:q}),bt(q);break;case"ArrowDown":q.preventDefault(),Re({diff:1,direction:"next",reason:"keyboard",event:q}),bt(q);break;case"ArrowUp":q.preventDefault(),Re({diff:-1,direction:"previous",reason:"keyboard",event:q}),bt(q);break;case"ArrowLeft":Hr(q,"previous");break;case"ArrowRight":Hr(q,"next");break;case"Enter":if(ot.current!==-1&&et){const we=Pe[ot.current],be=O?O(we):!1;if(q.preventDefault(),be)return;rn(q,we,"selectOption"),r&&de.current.setSelectionRange(de.current.value.length,de.current.value.length)}else R&&Ze!==""&&qt===!1&&(W&&q.preventDefault(),rn(q,Ze,"createOption","freeSolo"));break;case"Escape":et?(q.preventDefault(),q.stopPropagation(),It(q,"escape")):c&&(Ze!==""||W&&ze.length>0)&&(q.preventDefault(),q.stopPropagation(),Po(q));break;case"Backspace":if(W&&!L&&Ze===""&&ze.length>0){const we=Be===-1?ze.length-1:Be,be=ze.slice();be.splice(we,1),Mt(q,be,"removeOption",{option:ze[we]})}break;case"Delete":if(W&&!L&&Ze===""&&ze.length>0&&Be!==-1){const we=Be,be=ze.slice();be.splice(we,1),Mt(q,be,"removeOption",{option:ze[we]})}break}},co=Q=>{dt(!0),Y&&!he.current&&bt(Q)},Ln=Q=>{if(t(ke)){de.current.focus();return}dt(!1),Me.current=!0,he.current=!1,s&&ot.current!==-1&&et?rn(Q,Pe[ot.current],"blur"):s&&R&&Ze!==""?rn(Q,Ze,"blur","freeSolo"):u&&_t(Q,ze),It(Q,"blur")},on=Q=>{const q=Q.target.value;Ze!==q&&($t(q),Yt(!1),Z&&Z(Q,q,"input")),q===""?!m&&!W&&Mt(Q,null,"clear"):bt(Q)},Qt=Q=>{const q=Number(Q.currentTarget.getAttribute("data-option-index"));ot.current!==q&&ut({event:Q,index:q,reason:"mouse"})},D=Q=>{ut({event:Q,index:Number(Q.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Zt.current=!0},V=Q=>{const q=Number(Q.currentTarget.getAttribute("data-option-index"));rn(Q,Pe[q],"selectOption"),Zt.current=!1},oe=Q=>q=>{const we=ze.slice();we.splice(Q,1),Mt(q,we,"removeOption",{option:ze[Q]})},me=Q=>{Pt?It(Q,"toggleInput"):bt(Q)},je=Q=>{Q.currentTarget.contains(Q.target)&&Q.target.getAttribute("id")!==ve&&Q.preventDefault()},Ke=Q=>{Q.currentTarget.contains(Q.target)&&(de.current.focus(),se&&Me.current&&de.current.selectionEnd-de.current.selectionStart===0&&de.current.select(),Me.current=!1)},it=Q=>{!S&&(Ze===""||!Pt)&&me(Q)};let $e=R&&Ze.length>0;$e=$e||(W?ze.length>0:ze!==null);let st=Pe;return T&&(st=Pe.reduce((Q,q,we)=>{const be=T(q);return Q.length>0&&Q[Q.length-1].group===be?Q[Q.length-1].options.push(q):Q.push({key:we,index:we,group:be,options:[q]}),Q},[])),S&>&&Ln(),{getRootProps:(Q={})=>k({"aria-owns":Ht?`${ve}-listbox`:null},Q,{onKeyDown:To(Q),onMouseDown:je,onClick:Ke}),getInputLabelProps:()=>({id:`${ve}-label`,htmlFor:ve}),getInputProps:()=>({id:ve,value:Ze,onBlur:Ln,onFocus:co,onChange:on,onMouseDown:it,"aria-activedescendant":et?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ht?`${ve}-listbox`:void 0,"aria-expanded":Ht,autoComplete:"off",ref:de,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:S}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Po}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:me}),getTagProps:({index:Q})=>k({key:Q,"data-tag-index":Q,tabIndex:-1},!L&&{onDelete:oe(Q)}),getListboxProps:()=>({role:"listbox",id:`${ve}-listbox`,"aria-labelledby":`${ve}-label`,ref:yt,onMouseDown:Q=>{Q.preventDefault()}}),getOptionProps:({index:Q,option:q})=>{var we;const be=(W?ze:[ze]).some(Ee=>Ee!=null&&G(q,Ee)),De=O?O(q):!1;return{key:(we=A==null?void 0:A(q))!=null?we:xe(q),tabIndex:-1,role:"option",id:`${ve}-option-${Q}`,onMouseMove:Qt,onClick:V,onTouchStart:D,"data-option-index":Q,"aria-disabled":De,"aria-selected":be}},id:ve,inputValue:Ze,value:ze,dirty:$e,expanded:et&&Qe,popupOpen:et,focused:gt||Be!==-1,anchorEl:Qe,setAnchorEl:He,focusedTag:Be,groupedOptions:st}}var Pg={};Object.defineProperty(Pg,"__esModule",{value:!0});var lE=Pg.default=void 0,K6=q6(E),G6=WC;function cE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(cE=function(r){return r?n:t})(e)}function q6(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=cE(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var l=o?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(r,s,l):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function Q6(e){return Object.keys(e).length===0}function Y6(e=null){const t=K6.useContext(G6.ThemeContext);return!t||Q6(t)?e:t}lE=Pg.default=Y6;var wr="top",so="bottom",ao="right",Sr="left",Tg="auto",_c=[wr,so,ao,Sr],qa="start",Ic="end",X6="clippingParents",uE="viewport",Mc="popper",J6="reference",dE=_c.reduce(function(e,t){return e.concat([t+"-"+qa,t+"-"+Ic])},[]),fE=[].concat(_c,[Tg]).reduce(function(e,t){return e.concat([t,t+"-"+qa,t+"-"+Ic])},[]),Z6="beforeRead",e8="read",t8="afterRead",n8="beforeMain",r8="main",o8="afterMain",i8="beforeWrite",s8="write",a8="afterWrite",l8=[Z6,e8,t8,n8,r8,o8,i8,s8,a8];function Ko(e){return e?(e.nodeName||"").toLowerCase():null}function Fr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Us(e){var t=Fr(e).Element;return e instanceof t||e instanceof Element}function lo(e){var t=Fr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Og(e){if(typeof ShadowRoot>"u")return!1;var t=Fr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function c8(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!lo(s)||!Ko(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(l){var u=o[l];u===!1?s.removeAttribute(l):s.setAttribute(l,u===!0?"":u)}))})}function u8(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=l.reduce(function(c,f){return c[f]="",c},{});!lo(o)||!Ko(o)||(Object.assign(o.style,u),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}const d8={name:"applyStyles",enabled:!0,phase:"write",fn:c8,effect:u8,requires:["computeStyles"]};function Go(e){return e.split("-")[0]}var Ws=Math.max,mf=Math.min,Qa=Math.round;function $g(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function pE(){return!/^((?!chrome|android).)*safari/i.test($g())}function Ya(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&lo(e)&&(o=e.offsetWidth>0&&Qa(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Qa(r.height)/e.offsetHeight||1);var l=Us(e)?Fr(e):window,u=l.visualViewport,c=!pE()&&n,f=(r.left+(c&&u?u.offsetLeft:0))/o,p=(r.top+(c&&u?u.offsetTop:0))/s,m=r.width/o,g=r.height/s;return{width:m,height:g,top:p,right:f+m,bottom:p+g,left:f,x:f,y:p}}function Ag(e){var t=Ya(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function hE(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Og(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function gi(e){return Fr(e).getComputedStyle(e)}function f8(e){return["table","td","th"].indexOf(Ko(e))>=0}function zi(e){return((Us(e)?e.ownerDocument:e.document)||window.document).documentElement}function gf(e){return Ko(e)==="html"?e:e.assignedSlot||e.parentNode||(Og(e)?e.host:null)||zi(e)}function mE(e){return!lo(e)||gi(e).position==="fixed"?null:e.offsetParent}function p8(e){var t=/firefox/i.test($g()),n=/Trident/i.test($g());if(n&&lo(e)){var r=gi(e);if(r.position==="fixed")return null}var o=gf(e);for(Og(o)&&(o=o.host);lo(o)&&["html","body"].indexOf(Ko(o))<0;){var s=gi(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Nc(e){for(var t=Fr(e),n=mE(e);n&&f8(n)&&gi(n).position==="static";)n=mE(n);return n&&(Ko(n)==="html"||Ko(n)==="body"&&gi(n).position==="static")?t:n||p8(e)||t}function jg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Lc(e,t,n){return Ws(e,mf(t,n))}function h8(e,t,n){var r=Lc(e,t,n);return r>n?n:r}function gE(){return{top:0,right:0,bottom:0,left:0}}function yE(e){return Object.assign({},gE(),e)}function vE(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var m8=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,yE(typeof t!="number"?t:vE(t,_c))};function g8(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,l=n.modifiersData.popperOffsets,u=Go(n.placement),c=jg(u),f=[Sr,ao].indexOf(u)>=0,p=f?"height":"width";if(!(!s||!l)){var m=m8(o.padding,n),g=Ag(s),S=c==="y"?wr:Sr,x=c==="y"?so:ao,b=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],w=l[c]-n.rects.reference[c],P=Nc(s),R=P?c==="y"?P.clientHeight||0:P.clientWidth||0:0,O=b/2-w/2,A=m[S],$=R-g[p]-m[x],T=R/2-g[p]/2+O,_=Lc(A,T,$),M=c;n.modifiersData[r]=(t={},t[M]=_,t.centerOffset=_-T,t)}}function y8(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||hE(t.elements.popper,o)&&(t.elements.arrow=o))}const v8={name:"arrow",enabled:!0,phase:"main",fn:g8,effect:y8,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xa(e){return e.split("-")[1]}var b8={top:"auto",right:"auto",bottom:"auto",left:"auto"};function x8(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Qa(n*o)/o||0,y:Qa(r*o)/o||0}}function bE(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,l=e.offsets,u=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,m=e.isFixed,g=l.x,S=g===void 0?0:g,x=l.y,b=x===void 0?0:x,w=typeof p=="function"?p({x:S,y:b}):{x:S,y:b};S=w.x,b=w.y;var P=l.hasOwnProperty("x"),R=l.hasOwnProperty("y"),O=Sr,A=wr,$=window;if(f){var T=Nc(n),_="clientHeight",M="clientWidth";if(T===Fr(n)&&(T=zi(n),gi(T).position!=="static"&&u==="absolute"&&(_="scrollHeight",M="scrollWidth")),T=T,o===wr||(o===Sr||o===ao)&&s===Ic){A=so;var F=m&&T===$&&$.visualViewport?$.visualViewport.height:T[_];b-=F-r.height,b*=c?1:-1}if(o===Sr||(o===wr||o===so)&&s===Ic){O=ao;var B=m&&T===$&&$.visualViewport?$.visualViewport.width:T[M];S-=B-r.width,S*=c?1:-1}}var G=Object.assign({position:u},f&&b8),W=p===!0?x8({x:S,y:b},Fr(n)):{x:S,y:b};if(S=W.x,b=W.y,c){var H;return Object.assign({},G,(H={},H[A]=R?"0":"",H[O]=P?"0":"",H.transform=($.devicePixelRatio||1)<=1?"translate("+S+"px, "+b+"px)":"translate3d("+S+"px, "+b+"px, 0)",H))}return Object.assign({},G,(t={},t[A]=R?b+"px":"",t[O]=P?S+"px":"",t.transform="",t))}function w8(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,l=s===void 0?!0:s,u=n.roundOffsets,c=u===void 0?!0:u,f={placement:Go(t.placement),variation:Xa(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,bE(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,bE(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const S8={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:w8,data:{}};var yf={passive:!0};function C8(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,l=r.resize,u=l===void 0?!0:l,c=Fr(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&f.forEach(function(p){p.addEventListener("scroll",n.update,yf)}),u&&c.addEventListener("resize",n.update,yf),function(){s&&f.forEach(function(p){p.removeEventListener("scroll",n.update,yf)}),u&&c.removeEventListener("resize",n.update,yf)}}const E8={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:C8,data:{}};var R8={left:"right",right:"left",bottom:"top",top:"bottom"};function vf(e){return e.replace(/left|right|bottom|top/g,function(t){return R8[t]})}var k8={start:"end",end:"start"};function xE(e){return e.replace(/start|end/g,function(t){return k8[t]})}function _g(e){var t=Fr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ig(e){return Ya(zi(e)).left+_g(e).scrollLeft}function P8(e,t){var n=Fr(e),r=zi(e),o=n.visualViewport,s=r.clientWidth,l=r.clientHeight,u=0,c=0;if(o){s=o.width,l=o.height;var f=pE();(f||!f&&t==="fixed")&&(u=o.offsetLeft,c=o.offsetTop)}return{width:s,height:l,x:u+Ig(e),y:c}}function T8(e){var t,n=zi(e),r=_g(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=Ws(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=Ws(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+Ig(e),c=-r.scrollTop;return gi(o||n).direction==="rtl"&&(u+=Ws(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:u,y:c}}function Mg(e){var t=gi(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function wE(e){return["html","body","#document"].indexOf(Ko(e))>=0?e.ownerDocument.body:lo(e)&&Mg(e)?e:wE(gf(e))}function Dc(e,t){var n;t===void 0&&(t=[]);var r=wE(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=Fr(r),l=o?[s].concat(s.visualViewport||[],Mg(r)?r:[]):r,u=t.concat(l);return o?u:u.concat(Dc(gf(l)))}function Ng(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function O8(e,t){var n=Ya(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function SE(e,t,n){return t===uE?Ng(P8(e,n)):Us(t)?O8(t,n):Ng(T8(zi(e)))}function $8(e){var t=Dc(gf(e)),n=["absolute","fixed"].indexOf(gi(e).position)>=0,r=n&&lo(e)?Nc(e):e;return Us(r)?t.filter(function(o){return Us(o)&&hE(o,r)&&Ko(o)!=="body"}):[]}function A8(e,t,n,r){var o=t==="clippingParents"?$8(e):[].concat(t),s=[].concat(o,[n]),l=s[0],u=s.reduce(function(c,f){var p=SE(e,f,r);return c.top=Ws(p.top,c.top),c.right=mf(p.right,c.right),c.bottom=mf(p.bottom,c.bottom),c.left=Ws(p.left,c.left),c},SE(e,l,r));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function CE(e){var t=e.reference,n=e.element,r=e.placement,o=r?Go(r):null,s=r?Xa(r):null,l=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,c;switch(o){case wr:c={x:l,y:t.y-n.height};break;case so:c={x:l,y:t.y+t.height};break;case ao:c={x:t.x+t.width,y:u};break;case Sr:c={x:t.x-n.width,y:u};break;default:c={x:t.x,y:t.y}}var f=o?jg(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(s){case qa:c[f]=c[f]-(t[p]/2-n[p]/2);break;case Ic:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function Fc(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,l=s===void 0?e.strategy:s,u=n.boundary,c=u===void 0?X6:u,f=n.rootBoundary,p=f===void 0?uE:f,m=n.elementContext,g=m===void 0?Mc:m,S=n.altBoundary,x=S===void 0?!1:S,b=n.padding,w=b===void 0?0:b,P=yE(typeof w!="number"?w:vE(w,_c)),R=g===Mc?J6:Mc,O=e.rects.popper,A=e.elements[x?R:g],$=A8(Us(A)?A:A.contextElement||zi(e.elements.popper),c,p,l),T=Ya(e.elements.reference),_=CE({reference:T,element:O,strategy:"absolute",placement:o}),M=Ng(Object.assign({},O,_)),F=g===Mc?M:T,B={top:$.top-F.top+P.top,bottom:F.bottom-$.bottom+P.bottom,left:$.left-F.left+P.left,right:F.right-$.right+P.right},G=e.modifiersData.offset;if(g===Mc&&G){var W=G[o];Object.keys(B).forEach(function(H){var z=[ao,so].indexOf(H)>=0?1:-1,te=[wr,so].indexOf(H)>=0?"y":"x";B[H]+=W[te]*z})}return B}function j8(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,l=n.padding,u=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?fE:c,p=Xa(r),m=p?u?dE:dE.filter(function(x){return Xa(x)===p}):_c,g=m.filter(function(x){return f.indexOf(x)>=0});g.length===0&&(g=m);var S=g.reduce(function(x,b){return x[b]=Fc(e,{placement:b,boundary:o,rootBoundary:s,padding:l})[Go(b)],x},{});return Object.keys(S).sort(function(x,b){return S[x]-S[b]})}function _8(e){if(Go(e)===Tg)return[];var t=vf(e);return[xE(e),t,xE(t)]}function I8(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,l=n.altAxis,u=l===void 0?!0:l,c=n.fallbackPlacements,f=n.padding,p=n.boundary,m=n.rootBoundary,g=n.altBoundary,S=n.flipVariations,x=S===void 0?!0:S,b=n.allowedAutoPlacements,w=t.options.placement,P=Go(w),R=P===w,O=c||(R||!x?[vf(w)]:_8(w)),A=[w].concat(O).reduce(function(ve,xe){return ve.concat(Go(xe)===Tg?j8(t,{placement:xe,boundary:p,rootBoundary:m,padding:f,flipVariations:x,allowedAutoPlacements:b}):xe)},[]),$=t.rects.reference,T=t.rects.popper,_=new Map,M=!0,F=A[0],B=0;B<A.length;B++){var G=A[B],W=Go(G),H=Xa(G)===qa,z=[wr,so].indexOf(W)>=0,te=z?"width":"height",Z=Fc(t,{placement:G,boundary:p,rootBoundary:m,altBoundary:g,padding:f}),X=z?H?ao:Sr:H?so:wr;$[te]>T[te]&&(X=vf(X));var N=vf(X),Y=[];if(s&&Y.push(Z[W]<=0),u&&Y.push(Z[X]<=0,Z[N]<=0),Y.every(function(ve){return ve})){F=G,M=!1;break}_.set(G,Y)}if(M)for(var ce=x?3:1,L=function(xe){var he=A.find(function(Me){var de=_.get(Me);if(de)return de.slice(0,xe).every(function(ke){return ke})});if(he)return F=he,"break"},se=ce;se>0;se--){var Oe=L(se);if(Oe==="break")break}t.placement!==F&&(t.modifiersData[r]._skip=!0,t.placement=F,t.reset=!0)}}const M8={name:"flip",enabled:!0,phase:"main",fn:I8,requiresIfExists:["offset"],data:{_skip:!1}};function EE(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function RE(e){return[wr,ao,so,Sr].some(function(t){return e[t]>=0})}function N8(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,l=Fc(t,{elementContext:"reference"}),u=Fc(t,{altBoundary:!0}),c=EE(l,r),f=EE(u,o,s),p=RE(c),m=RE(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":m})}const L8={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:N8};function D8(e,t,n){var r=Go(e),o=[Sr,wr].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=s[0],u=s[1];return l=l||0,u=(u||0)*o,[Sr,ao].indexOf(r)>=0?{x:u,y:l}:{x:l,y:u}}function F8(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,l=fE.reduce(function(p,m){return p[m]=D8(m,t.rects,s),p},{}),u=l[t.placement],c=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=l}const B8={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:F8};function z8(e){var t=e.state,n=e.name;t.modifiersData[n]=CE({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const U8={name:"popperOffsets",enabled:!0,phase:"read",fn:z8,data:{}};function W8(e){return e==="x"?"y":"x"}function H8(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,l=n.altAxis,u=l===void 0?!1:l,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.padding,g=n.tether,S=g===void 0?!0:g,x=n.tetherOffset,b=x===void 0?0:x,w=Fc(t,{boundary:c,rootBoundary:f,padding:m,altBoundary:p}),P=Go(t.placement),R=Xa(t.placement),O=!R,A=jg(P),$=W8(A),T=t.modifiersData.popperOffsets,_=t.rects.reference,M=t.rects.popper,F=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,B=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),G=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(T){if(s){var H,z=A==="y"?wr:Sr,te=A==="y"?so:ao,Z=A==="y"?"height":"width",X=T[A],N=X+w[z],Y=X-w[te],ce=S?-M[Z]/2:0,L=R===qa?_[Z]:M[Z],se=R===qa?-M[Z]:-_[Z],Oe=t.elements.arrow,ve=S&&Oe?Ag(Oe):{width:0,height:0},xe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:gE(),he=xe[z],Me=xe[te],de=Lc(0,_[Z],ve[Z]),ke=O?_[Z]/2-ce-de-he-B.mainAxis:L-de-he-B.mainAxis,Qe=O?-_[Z]/2+ce+de+Me+B.mainAxis:se+de+Me+B.mainAxis,He=t.elements.arrow&&Nc(t.elements.arrow),Be=He?A==="y"?He.clientTop||0:He.clientLeft||0:0,Je=(H=G==null?void 0:G[A])!=null?H:0,ct=X+ke-Je-Be,ot=X+Qe-Je,ze=Lc(S?mf(N,ct):N,X,S?Ws(Y,ot):Y);T[A]=ze,W[A]=ze-X}if(u){var Ot,Ze=A==="x"?wr:Sr,$t=A==="x"?so:ao,gt=T[$],dt=$==="y"?"height":"width",_t=gt+w[Ze],Pt=gt-w[$t],pt=[wr,Sr].indexOf(P)!==-1,Ft=(Ot=G==null?void 0:G[$])!=null?Ot:0,Yt=pt?_t:gt-_[dt]-M[dt]-Ft+B.altAxis,qt=pt?gt+_[dt]+M[dt]-Ft-B.altAxis:Pt,et=S&&pt?h8(Yt,gt,qt):Lc(S?Yt:_t,gt,S?qt:Pt);T[$]=et,W[$]=et-gt}t.modifiersData[r]=W}}const V8={name:"preventOverflow",enabled:!0,phase:"main",fn:H8,requiresIfExists:["offset"]};function K8(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function G8(e){return e===Fr(e)||!lo(e)?_g(e):K8(e)}function q8(e){var t=e.getBoundingClientRect(),n=Qa(t.width)/e.offsetWidth||1,r=Qa(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Q8(e,t,n){n===void 0&&(n=!1);var r=lo(t),o=lo(t)&&q8(t),s=zi(t),l=Ya(e,o,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Ko(t)!=="body"||Mg(s))&&(u=G8(t)),lo(t)?(c=Ya(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=Ig(s))),{x:l.left+u.scrollLeft-c.x,y:l.top+u.scrollTop-c.y,width:l.width,height:l.height}}function Y8(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(u){if(!n.has(u)){var c=t.get(u);c&&o(c)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function X8(e){var t=Y8(e);return l8.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function J8(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Z8(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var kE={placement:"bottom",modifiers:[],strategy:"absolute"};function PE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function eW(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?kE:o;return function(u,c,f){f===void 0&&(f=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},kE,s),modifiersData:{},elements:{reference:u,popper:c},attributes:{},styles:{}},m=[],g=!1,S={state:p,setOptions:function(P){var R=typeof P=="function"?P(p.options):P;b(),p.options=Object.assign({},s,p.options,R),p.scrollParents={reference:Us(u)?Dc(u):u.contextElement?Dc(u.contextElement):[],popper:Dc(c)};var O=X8(Z8([].concat(r,p.options.modifiers)));return p.orderedModifiers=O.filter(function(A){return A.enabled}),x(),S.update()},forceUpdate:function(){if(!g){var P=p.elements,R=P.reference,O=P.popper;if(PE(R,O)){p.rects={reference:Q8(R,Nc(O),p.options.strategy==="fixed"),popper:Ag(O)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(B){return p.modifiersData[B.name]=Object.assign({},B.data)});for(var A=0;A<p.orderedModifiers.length;A++){if(p.reset===!0){p.reset=!1,A=-1;continue}var $=p.orderedModifiers[A],T=$.fn,_=$.options,M=_===void 0?{}:_,F=$.name;typeof T=="function"&&(p=T({state:p,options:M,name:F,instance:S})||p)}}}},update:J8(function(){return new Promise(function(w){S.forceUpdate(),w(p)})}),destroy:function(){b(),g=!0}};if(!PE(u,c))return S;S.setOptions(f).then(function(w){!g&&f.onFirstUpdate&&f.onFirstUpdate(w)});function x(){p.orderedModifiers.forEach(function(w){var P=w.name,R=w.options,O=R===void 0?{}:R,A=w.effect;if(typeof A=="function"){var $=A({state:p,name:P,instance:S,options:O}),T=function(){};m.push($||T)}})}function b(){m.forEach(function(w){return w()}),m=[]}return S}}var tW=[E8,U8,S8,d8,B8,M8,V8,v8,L8],nW=eW({defaultModifiers:tW});function rW(e){return typeof e=="function"?e():e}const TE=E.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[l,u]=E.useState(null),c=Gt(E.isValidElement(r)?r.ref:null,n);if(br(()=>{s||u(rW(o)||document.body)},[o,s]),br(()=>{if(l&&!s)return tf(n,l),()=>{tf(n,null)}},[n,l,s]),s){if(E.isValidElement(r)){const f={ref:c};return E.cloneElement(r,f)}return y.jsx(E.Fragment,{children:r})}return y.jsx(E.Fragment,{children:l&&Bu.createPortal(r,l)})});function oW(e){return Ie("MuiPopper",e)}Ne("MuiPopper",["root"]);const iW=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],sW=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function aW(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Lg(e){return typeof e=="function"?e():e}function lW(e){return e.nodeType!==void 0}const cW=e=>{const{classes:t}=e;return Le({root:["root"]},oW,t)},uW={},dW=E.forwardRef(function(t,n){var r;const{anchorEl:o,children:s,direction:l,disablePortal:u,modifiers:c,open:f,placement:p,popperOptions:m,popperRef:g,slotProps:S={},slots:x={},TransitionProps:b}=t,w=ge(t,iW),P=E.useRef(null),R=Gt(P,n),O=E.useRef(null),A=Gt(O,g),$=E.useRef(A);br(()=>{$.current=A},[A]),E.useImperativeHandle(g,()=>O.current,[]);const T=aW(p,l),[_,M]=E.useState(T),[F,B]=E.useState(Lg(o));E.useEffect(()=>{O.current&&O.current.forceUpdate()}),E.useEffect(()=>{o&&B(Lg(o))},[o]),br(()=>{if(!F||!f)return;const te=N=>{M(N.placement)};let Z=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:N})=>{te(N)}}];c!=null&&(Z=Z.concat(c)),m&&m.modifiers!=null&&(Z=Z.concat(m.modifiers));const X=nW(F,P.current,k({placement:T},m,{modifiers:Z}));return $.current(X),()=>{X.destroy(),$.current(null)}},[F,u,c,f,m,T]);const G={placement:_};b!==null&&(G.TransitionProps=b);const W=cW(t),H=(r=x.root)!=null?r:"div",z=or({elementType:H,externalSlotProps:S.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:R},ownerState:t,className:W.root});return y.jsx(H,k({},z,{children:typeof s=="function"?s(G):s}))}),fW=E.forwardRef(function(t,n){const{anchorEl:r,children:o,container:s,direction:l="ltr",disablePortal:u=!1,keepMounted:c=!1,modifiers:f,open:p,placement:m="bottom",popperOptions:g=uW,popperRef:S,style:x,transition:b=!1,slotProps:w={},slots:P={}}=t,R=ge(t,sW),[O,A]=E.useState(!0),$=()=>{A(!1)},T=()=>{A(!0)};if(!c&&!p&&(!b||O))return null;let _;if(s)_=s;else if(r){const B=Lg(r);_=B&&lW(B)?An(B).body:An(null).body}const M=!p&&c&&(!b||O)?"none":void 0,F=b?{in:p,onEnter:$,onExited:T}:void 0;return y.jsx(TE,{disablePortal:u,container:_,children:y.jsx(dW,k({anchorEl:r,direction:l,disablePortal:u,modifiers:f,ref:n,open:b?!O:p,placement:m,popperOptions:g,popperRef:S,slotProps:w,slots:P},R,{style:k({position:"fixed",top:0,left:0,display:M},x),TransitionProps:F,children:o}))})}),pW=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],hW=re(fW,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Bc=E.forwardRef(function(t,n){var r;const o=lE(),s=Fe({props:t,name:"MuiPopper"}),{anchorEl:l,component:u,components:c,componentsProps:f,container:p,disablePortal:m,keepMounted:g,modifiers:S,open:x,placement:b,popperOptions:w,popperRef:P,transition:R,slots:O,slotProps:A}=s,$=ge(s,pW),T=(r=O==null?void 0:O.root)!=null?r:c==null?void 0:c.Root,_=k({anchorEl:l,container:p,disablePortal:m,keepMounted:g,modifiers:S,open:x,placement:b,popperOptions:w,popperRef:P,transition:R},$);return y.jsx(hW,k({as:u,direction:o==null?void 0:o.direction,slots:{root:T},slotProps:A??f},_,{ref:n}))});function mW(e){return Ie("MuiListSubheader",e)}Ne("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const gW=["className","color","component","disableGutters","disableSticky","inset"],yW=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:s}=e,l={root:["root",n!=="default"&&`color${ie(n)}`,!r&&"gutters",o&&"inset",!s&&"sticky"]};return Le(l,mW,t)},vW=re("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ie(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>k({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),OE=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListSubheader"}),{className:o,color:s="default",component:l="li",disableGutters:u=!1,disableSticky:c=!1,inset:f=!1}=r,p=ge(r,gW),m=k({},r,{color:s,component:l,disableGutters:u,disableSticky:c,inset:f}),g=yW(m);return y.jsx(vW,k({as:l,className:ye(g.root,o),ref:n,ownerState:m},p))});OE.muiSkipListHighlight=!0;const bW=Rt(y.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function xW(e){return Ie("MuiChip",e)}const Dt=Ne("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),wW=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],SW=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:s,onDelete:l,clickable:u,variant:c}=e,f={root:["root",c,n&&"disabled",`size${ie(r)}`,`color${ie(o)}`,u&&"clickable",u&&`clickableColor${ie(o)}`,l&&"deletable",l&&`deletableColor${ie(o)}`,`${c}${ie(o)}`],label:["label",`label${ie(r)}`],avatar:["avatar",`avatar${ie(r)}`,`avatarColor${ie(o)}`],icon:["icon",`icon${ie(r)}`,`iconColor${ie(s)}`],deleteIcon:["deleteIcon",`deleteIcon${ie(r)}`,`deleteIconColor${ie(o)}`,`deleteIcon${ie(c)}Color${ie(o)}`]};return Le(f,xW,t)},CW=re("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:s,onDelete:l,size:u,variant:c}=n;return[{[`& .${Dt.avatar}`]:t.avatar},{[`& .${Dt.avatar}`]:t[`avatar${ie(u)}`]},{[`& .${Dt.avatar}`]:t[`avatarColor${ie(r)}`]},{[`& .${Dt.icon}`]:t.icon},{[`& .${Dt.icon}`]:t[`icon${ie(u)}`]},{[`& .${Dt.icon}`]:t[`iconColor${ie(o)}`]},{[`& .${Dt.deleteIcon}`]:t.deleteIcon},{[`& .${Dt.deleteIcon}`]:t[`deleteIcon${ie(u)}`]},{[`& .${Dt.deleteIcon}`]:t[`deleteIconColor${ie(r)}`]},{[`& .${Dt.deleteIcon}`]:t[`deleteIcon${ie(c)}Color${ie(r)}`]},t.root,t[`size${ie(u)}`],t[`color${ie(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${ie(r)})`],l&&t.deletable,l&&r!=="default"&&t[`deletableColor${ie(r)}`],t[c],t[`${c}${ie(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return k({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Dt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Dt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Dt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Dt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Dt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Dt.icon}`]:k({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&k({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Dt.deleteIcon}`]:k({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:mt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:mt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:mt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Dt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Dt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>k({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Dt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Dt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>k({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Dt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Dt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Dt.avatar}`]:{marginLeft:4},[`& .${Dt.avatarSmall}`]:{marginLeft:2},[`& .${Dt.icon}`]:{marginLeft:4},[`& .${Dt.iconSmall}`]:{marginLeft:2},[`& .${Dt.deleteIcon}`]:{marginRight:5},[`& .${Dt.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:mt(e.palette[t.color].main,.7)}`,[`&.${Dt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Dt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:mt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Dt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:mt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),EW=re("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ie(r)}`]]}})(({ownerState:e})=>k({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function $E(e){return e.key==="Backspace"||e.key==="Delete"}const RW=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiChip"}),{avatar:o,className:s,clickable:l,color:u="default",component:c,deleteIcon:f,disabled:p=!1,icon:m,label:g,onClick:S,onDelete:x,onKeyDown:b,onKeyUp:w,size:P="medium",variant:R="filled",tabIndex:O,skipFocusWhenDisabled:A=!1}=r,$=ge(r,wW),T=E.useRef(null),_=Gt(T,n),M=Y=>{Y.stopPropagation(),x&&x(Y)},F=Y=>{Y.currentTarget===Y.target&&$E(Y)&&Y.preventDefault(),b&&b(Y)},B=Y=>{Y.currentTarget===Y.target&&(x&&$E(Y)?x(Y):Y.key==="Escape"&&T.current&&T.current.blur()),w&&w(Y)},G=l!==!1&&S?!0:l,W=G||x?Dr:c||"div",H=k({},r,{component:W,disabled:p,size:P,color:u,iconColor:E.isValidElement(m)&&m.props.color||u,onDelete:!!x,clickable:G,variant:R}),z=SW(H),te=W===Dr?k({component:c||"div",focusVisibleClassName:z.focusVisible},x&&{disableRipple:!0}):{};let Z=null;x&&(Z=f&&E.isValidElement(f)?E.cloneElement(f,{className:ye(f.props.className,z.deleteIcon),onClick:M}):y.jsx(bW,{className:ye(z.deleteIcon),onClick:M}));let X=null;o&&E.isValidElement(o)&&(X=E.cloneElement(o,{className:ye(z.avatar,o.props.className)}));let N=null;return m&&E.isValidElement(m)&&(N=E.cloneElement(m,{className:ye(z.icon,m.props.className)})),y.jsxs(CW,k({as:W,className:ye(z.root,s),disabled:G&&p?!0:void 0,onClick:S,onKeyDown:F,onKeyUp:B,ref:_,tabIndex:A&&p?-1:O,ownerState:H},te,$,{children:[X||N,y.jsx(EW,{className:ye(z.label),ownerState:H,children:g}),Z]}))}),kW=["onChange","maxRows","minRows","style","value"];function bf(e){return parseInt(e,10)||0}const PW={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function TW(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const OW=E.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:s=1,style:l,value:u}=t,c=ge(t,kW),{current:f}=E.useRef(u!=null),p=E.useRef(null),m=Gt(n,p),g=E.useRef(null),S=E.useRef(null),x=E.useCallback(()=>{const P=p.current,O=Co(P).getComputedStyle(P);if(O.width==="0px")return{outerHeightStyle:0,overflowing:!1};const A=S.current;A.style.width=O.width,A.value=P.value||t.placeholder||"x",A.value.slice(-1)===`
|
|
96
|
-
`&&(A.value+=" ");const $=O.boxSizing,T=bf(O.paddingBottom)+bf(O.paddingTop),_=bf(O.borderBottomWidth)+bf(O.borderTopWidth),M=A.scrollHeight;A.value="x";const F=A.scrollHeight;let B=M;s&&(B=Math.max(Number(s)*F,B)),o&&(B=Math.min(Number(o)*F,B)),B=Math.max(B,F);const G=B+($==="border-box"?T+_:0),W=Math.abs(B-M)<=1;return{outerHeightStyle:G,overflowing:W}},[o,s,t.placeholder]),b=E.useCallback(()=>{const P=x();if(TW(P))return;const R=P.outerHeightStyle,O=p.current;g.current!==R&&(g.current=R,O.style.height=`${R}px`),O.style.overflow=P.overflowing?"hidden":""},[x]);br(()=>{const P=()=>{b()};let R;const O=Sc(P),A=p.current,$=Co(A);$.addEventListener("resize",O);let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(P),T.observe(A)),()=>{O.clear(),cancelAnimationFrame(R),$.removeEventListener("resize",O),T&&T.disconnect()}},[x,b]),br(()=>{b()});const w=P=>{f||b(),r&&r(P)};return y.jsxs(E.Fragment,{children:[y.jsx("textarea",k({value:u,onChange:w,ref:m,rows:s,style:l},c)),y.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:S,tabIndex:-1,style:k({},PW.shadow,l,{paddingTop:0,paddingBottom:0})})]})});function Ui({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const Dg=E.createContext(void 0);function yi(){return E.useContext(Dg)}function AE(e){return y.jsx(tz,k({},e,{defaultTheme:gg,themeId:Ea}))}function jE(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function xf(e,t=!1){return e&&(jE(e.value)&&e.value!==""||t&&jE(e.defaultValue)&&e.defaultValue!=="")}function $W(e){return e.startAdornment}function AW(e){return Ie("MuiInputBase",e)}const Br=Ne("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),jW=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],wf=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ie(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Sf=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},_W=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:s,focused:l,formControl:u,fullWidth:c,hiddenLabel:f,multiline:p,readOnly:m,size:g,startAdornment:S,type:x}=e,b={root:["root",`color${ie(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",l&&"focused",u&&"formControl",g&&g!=="medium"&&`size${ie(g)}`,p&&"multiline",S&&"adornedStart",s&&"adornedEnd",f&&"hiddenLabel",m&&"readOnly"],input:["input",r&&"disabled",x==="search"&&"inputTypeSearch",p&&"inputMultiline",g==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",S&&"inputAdornedStart",s&&"inputAdornedEnd",m&&"readOnly"]};return Le(b,AW,t)},Cf=re("div",{name:"MuiInputBase",slot:"Root",overridesResolver:wf})(({theme:e,ownerState:t})=>k({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Br.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&k({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Ef=re("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Sf})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=k({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},s=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return k({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Br.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${Br.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),IW=y.jsx(AE,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Fg=E.forwardRef(function(t,n){var r;const o=Fe({props:t,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:l,autoFocus:u,className:c,components:f={},componentsProps:p={},defaultValue:m,disabled:g,disableInjectingGlobalStyles:S,endAdornment:x,fullWidth:b=!1,id:w,inputComponent:P="input",inputProps:R={},inputRef:O,maxRows:A,minRows:$,multiline:T=!1,name:_,onBlur:M,onChange:F,onClick:B,onFocus:G,onKeyDown:W,onKeyUp:H,placeholder:z,readOnly:te,renderSuffix:Z,rows:X,slotProps:N={},slots:Y={},startAdornment:ce,type:L="text",value:se}=o,Oe=ge(o,jW),ve=R.value!=null?R.value:se,{current:xe}=E.useRef(ve!=null),he=E.useRef(),Me=E.useCallback(et=>{},[]),de=Gt(he,O,R.ref,Me),[ke,Qe]=E.useState(!1),He=yi(),Be=Ui({props:o,muiFormControl:He,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Be.focused=He?He.focused:ke,E.useEffect(()=>{!He&&g&&ke&&(Qe(!1),M&&M())},[He,g,ke,M]);const Je=He&&He.onFilled,ct=He&&He.onEmpty,ot=E.useCallback(et=>{xf(et)?Je&&Je():ct&&ct()},[Je,ct]);br(()=>{xe&&ot({value:ve})},[ve,ot,xe]);const ze=et=>{if(Be.disabled){et.stopPropagation();return}G&&G(et),R.onFocus&&R.onFocus(et),He&&He.onFocus?He.onFocus(et):Qe(!0)},Ot=et=>{M&&M(et),R.onBlur&&R.onBlur(et),He&&He.onBlur?He.onBlur(et):Qe(!1)},Ze=(et,...Pe)=>{if(!xe){const xt=et.target||he.current;if(xt==null)throw new Error(di(1));ot({value:xt.value})}R.onChange&&R.onChange(et,...Pe),F&&F(et,...Pe)};E.useEffect(()=>{ot(he.current)},[]);const $t=et=>{he.current&&et.currentTarget===et.target&&he.current.focus(),B&&B(et)};let gt=P,dt=R;T&>==="input"&&(X?dt=k({type:void 0,minRows:X,maxRows:X},dt):dt=k({type:void 0,maxRows:A,minRows:$},dt),gt=OW);const _t=et=>{ot(et.animationName==="mui-auto-fill-cancel"?he.current:{value:"x"})};E.useEffect(()=>{He&&He.setAdornedStart(!!ce)},[He,ce]);const Pt=k({},o,{color:Be.color||"primary",disabled:Be.disabled,endAdornment:x,error:Be.error,focused:Be.focused,formControl:He,fullWidth:b,hiddenLabel:Be.hiddenLabel,multiline:T,size:Be.size,startAdornment:ce,type:L}),pt=_W(Pt),Ft=Y.root||f.Root||Cf,Yt=N.root||p.root||{},qt=Y.input||f.Input||Ef;return dt=k({},dt,(r=N.input)!=null?r:p.input),y.jsxs(E.Fragment,{children:[!S&&IW,y.jsxs(Ft,k({},Yt,!Na(Ft)&&{ownerState:k({},Pt,Yt.ownerState)},{ref:n,onClick:$t},Oe,{className:ye(pt.root,Yt.className,c,te&&"MuiInputBase-readOnly"),children:[ce,y.jsx(Dg.Provider,{value:null,children:y.jsx(qt,k({ownerState:Pt,"aria-invalid":Be.error,"aria-describedby":s,autoComplete:l,autoFocus:u,defaultValue:m,disabled:Be.disabled,id:w,onAnimationStart:_t,name:_,placeholder:z,readOnly:te,required:Be.required,rows:X,value:ve,onKeyDown:W,onKeyUp:H,type:L},dt,!Na(qt)&&{as:gt,ownerState:k({},Pt,dt.ownerState)},{ref:de,className:ye(pt.input,dt.className,te&&"MuiInputBase-readOnly"),onBlur:Ot,onChange:Ze,onFocus:ze}))}),x,Z?Z(k({},Be,{startAdornment:ce})):null]}))]})});function MW(e){return Ie("MuiInput",e)}const Wi=k({},Br,Ne("MuiInput",["root","underline","input"]));function NW(e){return Ie("MuiOutlinedInput",e)}const qo=k({},Br,Ne("MuiOutlinedInput",["root","notchedOutline","input"]));function LW(e){return Ie("MuiFilledInput",e)}const zr=k({},Br,Ne("MuiFilledInput",["root","underline","input"])),_E=Rt(y.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function DW(e){return Ie("MuiAutocomplete",e)}const Et=Ne("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var IE,ME;const FW=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],BW=["ref"],zW=["key"],UW=["key"],WW=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:s,hasClearIcon:l,hasPopupIcon:u,inputFocused:c,popupOpen:f,size:p}=e,m={root:["root",r&&"expanded",o&&"focused",s&&"fullWidth",l&&"hasClearIcon",u&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${ie(p)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",f&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Le(m,DW,t)},HW=re("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:s,inputFocused:l,size:u}=n;return[{[`& .${Et.tag}`]:t.tag},{[`& .${Et.tag}`]:t[`tagSize${ie(u)}`]},{[`& .${Et.inputRoot}`]:t.inputRoot},{[`& .${Et.input}`]:t.input},{[`& .${Et.input}`]:l&&t.inputFocused},t.root,r&&t.fullWidth,s&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Et.focused} .${Et.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Et.clearIndicator}`]:{visibility:"visible"}},[`& .${Et.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Et.inputRoot}`]:{[`.${Et.hasPopupIcon}&, .${Et.hasClearIcon}&`]:{paddingRight:30},[`.${Et.hasPopupIcon}.${Et.hasClearIcon}&`]:{paddingRight:56},[`& .${Et.input}`]:{width:0,minWidth:30}},[`& .${Wi.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Wi.root}.${Br.sizeSmall}`]:{[`& .${Wi.input}`]:{padding:"2px 4px 3px 0"}},[`& .${qo.root}`]:{padding:9,[`.${Et.hasPopupIcon}&, .${Et.hasClearIcon}&`]:{paddingRight:39},[`.${Et.hasPopupIcon}.${Et.hasClearIcon}&`]:{paddingRight:65},[`& .${Et.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Et.endAdornment}`]:{right:9}},[`& .${qo.root}.${Br.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Et.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${zr.root}`]:{paddingTop:19,paddingLeft:8,[`.${Et.hasPopupIcon}&, .${Et.hasClearIcon}&`]:{paddingRight:39},[`.${Et.hasPopupIcon}.${Et.hasClearIcon}&`]:{paddingRight:65},[`& .${zr.input}`]:{padding:"7px 4px"},[`& .${Et.endAdornment}`]:{right:9}},[`& .${zr.root}.${Br.sizeSmall}`]:{paddingBottom:1,[`& .${zr.input}`]:{padding:"2.5px 4px"}},[`& .${Br.hiddenLabel}`]:{paddingTop:8},[`& .${zr.root}.${Br.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Et.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${zr.root}.${Br.hiddenLabel}.${Br.sizeSmall}`]:{[`& .${Et.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Et.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Et.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Et.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Et.inputRoot}`]:{flexWrap:"wrap"}}}]}),VW=re("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),KW=re(Wn,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),GW=re(Wn,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>k({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),qW=re(Bc,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Et.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),QW=re(oo,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>k({},e.typography.body1,{overflow:"auto"})),YW=re("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),XW=re("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),JW=re("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Et.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Et.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Et.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),ZW=re(OE,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),e9=re("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Et.option}`]:{paddingLeft:24}}),t9=E.forwardRef(function(t,n){var r,o,s,l;const u=Fe({props:t,name:"MuiAutocomplete"}),{autoComplete:c=!1,autoHighlight:f=!1,autoSelect:p=!1,blurOnSelect:m=!1,ChipProps:g,className:S,clearIcon:x=IE||(IE=y.jsx(tE,{fontSize:"small"})),clearOnBlur:b=!u.freeSolo,clearOnEscape:w=!1,clearText:P="Clear",closeText:R="Close",componentsProps:O={},defaultValue:A=u.multiple?[]:null,disableClearable:$=!1,disableCloseOnSelect:T=!1,disabled:_=!1,disabledItemsFocusable:M=!1,disableListWrap:F=!1,disablePortal:B=!1,filterSelectedOptions:G=!1,forcePopupIcon:W="auto",freeSolo:H=!1,fullWidth:z=!1,getLimitTagsText:te=be=>`+${be}`,getOptionLabel:Z,groupBy:X,handleHomeEndKeys:N=!u.freeSolo,includeInputInList:Y=!1,limitTags:ce=-1,ListboxComponent:L="ul",ListboxProps:se,loading:Oe=!1,loadingText:ve="Loading…",multiple:xe=!1,noOptionsText:he="No options",openOnFocus:Me=!1,openText:de="Open",PaperComponent:ke=oo,PopperComponent:Qe=Bc,popupIcon:He=ME||(ME=y.jsx(_E,{})),readOnly:Be=!1,renderGroup:Je,renderInput:ct,renderOption:ot,renderTags:ze,selectOnFocus:Ot=!u.freeSolo,size:Ze="medium",slotProps:$t={}}=u,gt=ge(u,FW),{getRootProps:dt,getInputProps:_t,getInputLabelProps:Pt,getPopupIndicatorProps:pt,getClearProps:Ft,getTagProps:Yt,getListboxProps:qt,getOptionProps:et,value:Pe,dirty:xt,expanded:Ht,id:fn,popupOpen:Ue,focused:ut,focusedTag:Re,anchorEl:We,setAnchorEl:ft,inputValue:yt,groupedOptions:bt}=V6(k({},u,{componentName:"Autocomplete"})),It=!$&&!_&&xt&&!Be,Mt=(!H||W===!0)&&W!==!1,{onMouseDown:Zt}=_t(),{ref:rn}=se??{},Qn=qt(),{ref:Hr}=Qn,Po=ge(Qn,BW),To=Gt(Hr,rn),Ln=Z||(be=>{var De;return(De=be.label)!=null?De:be}),on=k({},u,{disablePortal:B,expanded:Ht,focused:ut,fullWidth:z,getOptionLabel:Ln,hasClearIcon:It,hasPopupIcon:Mt,inputFocused:Re===-1,popupOpen:Ue,size:Ze}),Qt=WW(on);let D;if(xe&&Pe.length>0){const be=De=>k({className:Qt.tag,disabled:_},Yt(De));ze?D=ze(Pe,be,on):D=Pe.map((De,Ee)=>{const nt=be({index:Ee}),{key:At}=nt,uo=ge(nt,zW);return y.jsx(RW,k({label:Ln(De),size:Ze},uo,g),At)})}if(ce>-1&&Array.isArray(D)){const be=D.length-ce;!ut&&be>0&&(D=D.splice(0,ce),D.push(y.jsx("span",{className:Qt.tag,children:te(be)},D.length)))}const oe=Je||(be=>y.jsxs("li",{children:[y.jsx(ZW,{className:Qt.groupLabel,ownerState:on,component:"div",children:be.group}),y.jsx(e9,{className:Qt.groupUl,ownerState:on,children:be.children})]},be.key)),je=ot||((be,De)=>{const{key:Ee}=be,nt=ge(be,UW);return y.jsx("li",k({},nt,{children:Ln(De)}),Ee)}),Ke=(be,De)=>{const Ee=et({option:be,index:De});return je(k({},Ee,{className:Qt.option}),be,{selected:Ee["aria-selected"],index:De,inputValue:yt},on)},it=(r=$t.clearIndicator)!=null?r:O.clearIndicator,$e=(o=$t.paper)!=null?o:O.paper,st=(s=$t.popper)!=null?s:O.popper,Q=(l=$t.popupIndicator)!=null?l:O.popupIndicator,q=be=>y.jsx(qW,k({as:Qe,disablePortal:B,style:{width:We?We.clientWidth:null},ownerState:on,role:"presentation",anchorEl:We,open:Ue},st,{className:ye(Qt.popper,st==null?void 0:st.className),children:y.jsx(QW,k({ownerState:on,as:ke},$e,{className:ye(Qt.paper,$e==null?void 0:$e.className),children:be}))}));let we=null;return bt.length>0?we=q(y.jsx(JW,k({as:L,className:Qt.listbox,ownerState:on},Po,se,{ref:To,children:bt.map((be,De)=>X?oe({key:be.key,group:be.group,children:be.options.map((Ee,nt)=>Ke(Ee,be.index+nt))}):Ke(be,De))}))):Oe&&bt.length===0?we=q(y.jsx(YW,{className:Qt.loading,ownerState:on,children:ve})):bt.length===0&&!H&&!Oe&&(we=q(y.jsx(XW,{className:Qt.noOptions,ownerState:on,role:"presentation",onMouseDown:be=>{be.preventDefault()},children:he}))),y.jsxs(E.Fragment,{children:[y.jsx(HW,k({ref:n,className:ye(Qt.root,S),ownerState:on},dt(gt),{children:ct({id:fn,disabled:_,fullWidth:!0,size:Ze==="small"?"small":void 0,InputLabelProps:Pt(),InputProps:k({ref:ft,className:Qt.inputRoot,startAdornment:D,onClick:be=>{be.target===be.currentTarget&&Zt(be)}},(It||Mt)&&{endAdornment:y.jsxs(VW,{className:Qt.endAdornment,ownerState:on,children:[It?y.jsx(KW,k({},Ft(),{"aria-label":P,title:P,ownerState:on},it,{className:ye(Qt.clearIndicator,it==null?void 0:it.className),children:x})):null,Mt?y.jsx(GW,k({},pt(),{disabled:_,"aria-label":Ue?R:de,title:Ue?R:de,ownerState:on},Q,{className:ye(Qt.popupIndicator,Q==null?void 0:Q.className),children:He})):null]})}),inputProps:k({className:Qt.input,disabled:_,readOnly:Be},_t())})})),We?we:null]})}),n9=Rt(y.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function r9(e){return Ie("MuiAvatar",e)}Ne("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const o9=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],i9=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Le({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},r9,t)},s9=re("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:k({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:k({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),a9=re("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),l9=re(n9,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function c9({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,s]=E.useState(!1);return E.useEffect(()=>{if(!n&&!r)return;s(!1);let l=!0;const u=new Image;return u.onload=()=>{l&&s("loaded")},u.onerror=()=>{l&&s("error")},u.crossOrigin=e,u.referrerPolicy=t,u.src=n,r&&(u.srcset=r),()=>{l=!1}},[e,t,n,r]),o}const u9=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiAvatar"}),{alt:o,children:s,className:l,component:u="div",slots:c={},slotProps:f={},imgProps:p,sizes:m,src:g,srcSet:S,variant:x="circular"}=r,b=ge(r,o9);let w=null;const P=c9(k({},p,{src:g,srcSet:S})),R=g||S,O=R&&P!=="error",A=k({},r,{colorDefault:!O,component:u,variant:x}),$=i9(A),[T,_]=Rg("img",{className:$.img,elementType:a9,externalForwardedProps:{slots:c,slotProps:{img:k({},p,f.img)}},additionalProps:{alt:o,src:g,srcSet:S,sizes:m},ownerState:A});return O?w=y.jsx(T,k({},_)):s||s===0?w=s:R&&o?w=o[0]:w=y.jsx(l9,{ownerState:A,className:$.fallback}),y.jsx(s9,k({as:u,ownerState:A,className:ye($.root,l),ref:n},b,{children:w}))}),d9=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],f9={entering:{opacity:1},entered:{opacity:1}},NE=E.forwardRef(function(t,n){const r=xr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:u,easing:c,in:f,onEnter:p,onEntered:m,onEntering:g,onExit:S,onExited:x,onExiting:b,style:w,timeout:P=o,TransitionComponent:R=Lr}=t,O=ge(t,d9),A=E.useRef(null),$=Gt(A,u.ref,n),T=z=>te=>{if(z){const Z=A.current;te===void 0?z(Z):z(Z,te)}},_=T(g),M=T((z,te)=>{df(z);const Z=Vo({style:w,timeout:P,easing:c},{mode:"enter"});z.style.webkitTransition=r.transitions.create("opacity",Z),z.style.transition=r.transitions.create("opacity",Z),p&&p(z,te)}),F=T(m),B=T(b),G=T(z=>{const te=Vo({style:w,timeout:P,easing:c},{mode:"exit"});z.style.webkitTransition=r.transitions.create("opacity",te),z.style.transition=r.transitions.create("opacity",te),S&&S(z)}),W=T(x),H=z=>{s&&s(A.current,z)};return y.jsx(R,k({appear:l,in:f,nodeRef:A,onEnter:M,onEntered:F,onEntering:_,onExit:G,onExited:W,onExiting:B,addEndListener:H,timeout:P},O,{children:(z,te)=>E.cloneElement(u,k({style:k({opacity:0,visibility:z==="exited"&&!f?"hidden":void 0},f9[z],w,u.props.style),ref:$},te))}))});function p9(e){return Ie("MuiBackdrop",e)}Ne("MuiBackdrop",["root","invisible"]);const h9=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],m9=e=>{const{classes:t,invisible:n}=e;return Le({root:["root",n&&"invisible"]},p9,t)},g9=re("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>k({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),LE=E.forwardRef(function(t,n){var r,o,s;const l=Fe({props:t,name:"MuiBackdrop"}),{children:u,className:c,component:f="div",components:p={},componentsProps:m={},invisible:g=!1,open:S,slotProps:x={},slots:b={},TransitionComponent:w=NE,transitionDuration:P}=l,R=ge(l,h9),O=k({},l,{component:f,invisible:g}),A=m9(O),$=(r=x.root)!=null?r:m.root;return y.jsx(w,k({in:S,timeout:P},R,{children:y.jsx(g9,k({"aria-hidden":!0},$,{as:(o=(s=b.root)!=null?s:p.Root)!=null?o:f,className:ye(A.root,c,$==null?void 0:$.className),ownerState:k({},O,$==null?void 0:$.ownerState),classes:A,ref:n,children:u}))}))});function y9(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,s=lg({badgeContent:t,max:r});let l=n;n===!1&&t===0&&!o&&(l=!0);const{badgeContent:u,max:c=r}=l?s:e,f=u&&Number(u)>c?`${c}+`:u;return{badgeContent:u,invisible:l,max:c,displayValue:f}}function v9(e){return Ie("MuiBadge",e)}const Hi=Ne("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),b9=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Bg=10,zg=4,x9=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:s,classes:l={}}=e,u={root:["root"],badge:["badge",s,r&&"invisible",`anchorOrigin${ie(n.vertical)}${ie(n.horizontal)}`,`anchorOrigin${ie(n.vertical)}${ie(n.horizontal)}${ie(o)}`,`overlap${ie(o)}`,t!=="default"&&`color${ie(t)}`]};return Le(u,v9,l)},w9=re("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),S9=re("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${ie(n.anchorOrigin.vertical)}${ie(n.anchorOrigin.horizontal)}${ie(n.overlap)}`],n.color!=="default"&&t[`color${ie(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Bg*2,lineHeight:1,padding:"0 6px",height:Bg*2,borderRadius:Bg,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:zg,height:zg*2,minWidth:zg*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Hi.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Hi.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Hi.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Hi.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Hi.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Hi.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Hi.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Hi.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),Ug=E.forwardRef(function(t,n){var r,o,s,l,u,c;const f=Fe({props:t,name:"MuiBadge"}),{anchorOrigin:p={vertical:"top",horizontal:"right"},className:m,component:g,components:S={},componentsProps:x={},children:b,overlap:w="rectangular",color:P="default",invisible:R=!1,max:O=99,badgeContent:A,slots:$,slotProps:T,showZero:_=!1,variant:M="standard"}=f,F=ge(f,b9),{badgeContent:B,invisible:G,max:W,displayValue:H}=y9({max:O,invisible:R,badgeContent:A,showZero:_}),z=lg({anchorOrigin:p,color:P,overlap:w,variant:M,badgeContent:A}),te=G||B==null&&M!=="dot",{color:Z=P,overlap:X=w,anchorOrigin:N=p,variant:Y=M}=te?z:f,ce=Y!=="dot"?H:void 0,L=k({},f,{badgeContent:B,invisible:te,max:W,displayValue:ce,showZero:_,anchorOrigin:N,color:Z,overlap:X,variant:Y}),se=x9(L),Oe=(r=(o=$==null?void 0:$.root)!=null?o:S.Root)!=null?r:w9,ve=(s=(l=$==null?void 0:$.badge)!=null?l:S.Badge)!=null?s:S9,xe=(u=T==null?void 0:T.root)!=null?u:x.root,he=(c=T==null?void 0:T.badge)!=null?c:x.badge,Me=or({elementType:Oe,externalSlotProps:xe,externalForwardedProps:F,additionalProps:{ref:n,as:g},ownerState:L,className:ye(xe==null?void 0:xe.className,se.root,m)}),de=or({elementType:ve,externalSlotProps:he,ownerState:L,className:ye(se.badge,he==null?void 0:he.className)});return y.jsxs(Oe,k({},Me,{children:[b,y.jsx(ve,k({},de,{children:ce}))]}))}),C9=Ne("MuiBox",["root"]),E9=mg(),Eo=sz({themeId:Ea,defaultTheme:E9,defaultClassName:C9.root,generateClassName:ZS.generate}),R9=Rt(y.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),k9=["slots","slotProps"],P9=re(Dr)(({theme:e})=>k({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":k({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":k({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:of(e.palette.grey[200],.12)}:{backgroundColor:of(e.palette.grey[600],.12)})})),T9=re(R9)({width:24,height:16});function O9(e){const{slots:t={},slotProps:n={}}=e,r=ge(e,k9),o=e;return y.jsx("li",{children:y.jsx(P9,k({focusRipple:!0},r,{ownerState:o,children:y.jsx(T9,k({as:t.CollapsedIcon,ownerState:o},n.collapsedIcon))}))})}function $9(e){return Ie("MuiBreadcrumbs",e)}const A9=Ne("MuiBreadcrumbs",["root","ol","li","separator"]),j9=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],_9=e=>{const{classes:t}=e;return Le({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},$9,t)},I9=re(bn,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${A9.li}`]:t.li},t.root]})({}),M9=re("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),N9=re("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function L9(e,t,n,r){return e.reduce((o,s,l)=>(l<e.length-1?o=o.concat(s,y.jsx(N9,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${l}`)):o.push(s),o),[])}const D9=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiBreadcrumbs"}),{children:o,className:s,component:l="nav",slots:u={},slotProps:c={},expandText:f="Show path",itemsAfterCollapse:p=1,itemsBeforeCollapse:m=1,maxItems:g=8,separator:S="/"}=r,x=ge(r,j9),[b,w]=E.useState(!1),P=k({},r,{component:l,expanded:b,expandText:f,itemsAfterCollapse:p,itemsBeforeCollapse:m,maxItems:g,separator:S}),R=_9(P),O=or({elementType:u.CollapsedIcon,externalSlotProps:c.collapsedIcon,ownerState:P}),A=E.useRef(null),$=_=>{const M=()=>{w(!0);const F=A.current.querySelector("a[href],button,[tabindex]");F&&F.focus()};return m+p>=_.length?_:[..._.slice(0,m),y.jsx(O9,{"aria-label":f,slots:{CollapsedIcon:u.CollapsedIcon},slotProps:{collapsedIcon:O},onClick:M},"ellipsis"),..._.slice(_.length-p,_.length)]},T=E.Children.toArray(o).filter(_=>E.isValidElement(_)).map((_,M)=>y.jsx("li",{className:R.li,children:_},`child-${M}`));return y.jsx(I9,k({ref:n,component:l,color:"text.secondary",className:ye(R.root,s),ownerState:P},x,{children:y.jsx(M9,{className:R.ol,ref:A,ownerState:P,children:L9(b||g&&T.length<=g?T:$(T),R.separator,S,P)})}))});function F9(e){return Ie("MuiButton",e)}const Rf=Ne("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),DE=E.createContext({}),FE=E.createContext(void 0),B9=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],z9=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:s,classes:l}=e,u={root:["root",s,`${s}${ie(t)}`,`size${ie(o)}`,`${s}Size${ie(o)}`,`color${ie(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ie(o)}`],endIcon:["icon","endIcon",`iconSize${ie(o)}`]},c=Le(u,F9,l);return k({},l,c)},BE=e=>k({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),U9=re(Dr,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ie(n.color)}`],t[`size${ie(n.size)}`],t[`${n.variant}Size${ie(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],s=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return k({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":k({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":k({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Rf.focusVisible}`]:k({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Rf.disabled}`]:k({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${mt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Rf.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Rf.disabled}`]:{boxShadow:"none"}}),W9=re("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ie(n.size)}`]]}})(({ownerState:e})=>k({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},BE(e))),H9=re("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ie(n.size)}`]]}})(({ownerState:e})=>k({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},BE(e))),ir=E.forwardRef(function(t,n){const r=E.useContext(DE),o=E.useContext(FE),s=wc(r,t),l=Fe({props:s,name:"MuiButton"}),{children:u,color:c="primary",component:f="button",className:p,disabled:m=!1,disableElevation:g=!1,disableFocusRipple:S=!1,endIcon:x,focusVisibleClassName:b,fullWidth:w=!1,size:P="medium",startIcon:R,type:O,variant:A="text"}=l,$=ge(l,B9),T=k({},l,{color:c,component:f,disabled:m,disableElevation:g,disableFocusRipple:S,fullWidth:w,size:P,type:O,variant:A}),_=z9(T),M=R&&y.jsx(W9,{className:_.startIcon,ownerState:T,children:R}),F=x&&y.jsx(H9,{className:_.endIcon,ownerState:T,children:x}),B=o||"";return y.jsxs(U9,k({ownerState:T,className:ye(r.className,_.root,p,B),component:f,disabled:m,focusRipple:!S,focusVisibleClassName:ye(_.focusVisible,b),ref:n,type:O},$,{classes:_,children:[M,u,F]}))});function V9(e){return Ie("MuiButtonGroup",e)}const Hn=Ne("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),K9=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],G9=(e,t)=>{const{ownerState:n}=e;return[{[`& .${Hn.grouped}`]:t.grouped},{[`& .${Hn.grouped}`]:t[`grouped${ie(n.orientation)}`]},{[`& .${Hn.grouped}`]:t[`grouped${ie(n.variant)}`]},{[`& .${Hn.grouped}`]:t[`grouped${ie(n.variant)}${ie(n.orientation)}`]},{[`& .${Hn.grouped}`]:t[`grouped${ie(n.variant)}${ie(n.color)}`]},{[`& .${Hn.firstButton}`]:t.firstButton},{[`& .${Hn.lastButton}`]:t.lastButton},{[`& .${Hn.middleButton}`]:t.middleButton},t.root,t[n.variant],n.disableElevation===!0&&t.disableElevation,n.fullWidth&&t.fullWidth,n.orientation==="vertical"&&t.vertical]},q9=e=>{const{classes:t,color:n,disabled:r,disableElevation:o,fullWidth:s,orientation:l,variant:u}=e,c={root:["root",u,l==="vertical"&&"vertical",s&&"fullWidth",o&&"disableElevation"],grouped:["grouped",`grouped${ie(l)}`,`grouped${ie(u)}`,`grouped${ie(u)}${ie(l)}`,`grouped${ie(u)}${ie(n)}`,r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Le(c,V9,t)},Q9=re("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:G9})(({theme:e,ownerState:t})=>k({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[2]},t.disableElevation&&{boxShadow:"none"},t.fullWidth&&{width:"100%"},t.orientation==="vertical"&&{flexDirection:"column"},{[`& .${Hn.grouped}`]:k({minWidth:40,"&:hover":k({},t.variant==="contained"&&{boxShadow:"none"})},t.variant==="contained"&&{boxShadow:"none"}),[`& .${Hn.firstButton},& .${Hn.middleButton}`]:k({},t.orientation==="horizontal"&&{borderTopRightRadius:0,borderBottomRightRadius:0},t.orientation==="vertical"&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},t.variant==="text"&&t.orientation==="horizontal"&&{borderRight:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Hn.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="text"&&t.orientation==="vertical"&&{borderBottom:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Hn.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="text"&&t.color!=="inherit"&&{borderColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:mt(e.palette[t.color].main,.5)},t.variant==="outlined"&&t.orientation==="horizontal"&&{borderRightColor:"transparent"},t.variant==="outlined"&&t.orientation==="vertical"&&{borderBottomColor:"transparent"},t.variant==="contained"&&t.orientation==="horizontal"&&{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Hn.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="contained"&&t.orientation==="vertical"&&{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Hn.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="contained"&&t.color!=="inherit"&&{borderColor:(e.vars||e).palette[t.color].dark},{"&:hover":k({},t.variant==="outlined"&&t.orientation==="horizontal"&&{borderRightColor:"currentColor"},t.variant==="outlined"&&t.orientation==="vertical"&&{borderBottomColor:"currentColor"})}),[`& .${Hn.lastButton},& .${Hn.middleButton}`]:k({},t.orientation==="horizontal"&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t.orientation==="vertical"&&{borderTopRightRadius:0,borderTopLeftRadius:0},t.variant==="outlined"&&t.orientation==="horizontal"&&{marginLeft:-1},t.variant==="outlined"&&t.orientation==="vertical"&&{marginTop:-1})})),Y9=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiButtonGroup"}),{children:o,className:s,color:l="primary",component:u="div",disabled:c=!1,disableElevation:f=!1,disableFocusRipple:p=!1,disableRipple:m=!1,fullWidth:g=!1,orientation:S="horizontal",size:x="medium",variant:b="outlined"}=r,w=ge(r,K9),P=k({},r,{color:l,component:u,disabled:c,disableElevation:f,disableFocusRipple:p,disableRipple:m,fullWidth:g,orientation:S,size:x,variant:b}),R=q9(P),O=E.useMemo(()=>({className:R.grouped,color:l,disabled:c,disableElevation:f,disableFocusRipple:p,disableRipple:m,fullWidth:g,size:x,variant:b}),[l,c,f,p,m,g,x,b,R.grouped]),A=Bz(o),$=A.length,T=_=>{const M=_===0,F=_===$-1;return M&&F?"":M?R.firstButton:F?R.lastButton:R.middleButton};return y.jsx(Q9,k({as:u,role:"group",className:ye(R.root,s),ref:n,ownerState:P},w,{children:y.jsx(DE.Provider,{value:O,children:A.map((_,M)=>y.jsx(FE.Provider,{value:T(M),children:_},M))})}))});function X9(e){return Ie("PrivateSwitchBase",e)}Ne("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const J9=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Z9=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,s={root:["root",n&&"checked",r&&"disabled",o&&`edge${ie(o)}`],input:["input"]};return Le(s,X9,t)},eH=re(Dr)(({ownerState:e})=>k({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),tH=re("input",{shouldForwardProp:Tn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Wg=E.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:s,className:l,defaultChecked:u,disabled:c,disableFocusRipple:f=!1,edge:p=!1,icon:m,id:g,inputProps:S,inputRef:x,name:b,onBlur:w,onChange:P,onFocus:R,readOnly:O,required:A=!1,tabIndex:$,type:T,value:_}=t,M=ge(t,J9),[F,B]=pi({controlled:o,default:!!u,name:"SwitchBase",state:"checked"}),G=yi(),W=Y=>{R&&R(Y),G&&G.onFocus&&G.onFocus(Y)},H=Y=>{w&&w(Y),G&&G.onBlur&&G.onBlur(Y)},z=Y=>{if(Y.nativeEvent.defaultPrevented)return;const ce=Y.target.checked;B(ce),P&&P(Y,ce)};let te=c;G&&typeof te>"u"&&(te=G.disabled);const Z=T==="checkbox"||T==="radio",X=k({},t,{checked:F,disabled:te,disableFocusRipple:f,edge:p}),N=Z9(X);return y.jsxs(eH,k({component:"span",className:ye(N.root,l),centerRipple:!0,focusRipple:!f,disabled:te,tabIndex:null,role:void 0,onFocus:W,onBlur:H,ownerState:X,ref:n},M,{children:[y.jsx(tH,k({autoFocus:r,checked:o,defaultChecked:u,className:N.input,disabled:te,id:Z?g:void 0,name:b,onChange:z,readOnly:O,ref:x,required:A,ownerState:X,tabIndex:$,type:T},T==="checkbox"&&_===void 0?{}:{value:_},S)),F?s:m]}))}),nH=Rt(y.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),rH=Rt(y.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),oH=Rt(y.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function iH(e){return Ie("MuiCheckbox",e)}const Hg=Ne("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),sH=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],aH=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,s={root:["root",n&&"indeterminate",`color${ie(r)}`,`size${ie(o)}`]},l=Le(s,iH,t);return k({},t,l)},lH=re(Wg,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ie(n.size)}`],n.color!=="default"&&t[`color${ie(n.color)}`]]}})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Hg.checked}, &.${Hg.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Hg.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),cH=y.jsx(rH,{}),uH=y.jsx(nH,{}),dH=y.jsx(oH,{}),Vg=E.forwardRef(function(t,n){var r,o;const s=Fe({props:t,name:"MuiCheckbox"}),{checkedIcon:l=cH,color:u="primary",icon:c=uH,indeterminate:f=!1,indeterminateIcon:p=dH,inputProps:m,size:g="medium",className:S}=s,x=ge(s,sH),b=f?p:c,w=f?p:l,P=k({},s,{color:u,indeterminate:f,size:g}),R=aH(P);return y.jsx(lH,k({type:"checkbox",inputProps:k({"data-indeterminate":f},m),icon:E.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:g}),checkedIcon:E.cloneElement(w,{fontSize:(o=w.props.fontSize)!=null?o:g}),ownerState:P,ref:n,className:ye(R.root,S)},x,{classes:R}))});function fH(e){return Ie("MuiCircularProgress",e)}Ne("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const pH=["className","color","disableShrink","size","style","thickness","value","variant"];let kf=e=>e,zE,UE,WE,HE;const Vi=44,hH=Bi(zE||(zE=kf`
|
|
95
|
+
`),so.rippleVisible,e6,kg,({theme:e})=>e.transitions.easing.easeInOut,so.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,so.child,so.childLeaving,t6,kg,({theme:e})=>e.transitions.easing.easeInOut,so.childPulsate,n6,({theme:e})=>e.transitions.easing.easeInOut),i6=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:l}=r,u=ge(r,JU),[c,f]=E.useState([]),p=E.useRef(0),m=E.useRef(null);E.useEffect(()=>{m.current&&(m.current(),m.current=null)},[c]);const g=E.useRef(!1),S=hi(),x=E.useRef(null),b=E.useRef(null),w=E.useCallback(A=>{const{pulsate:$,rippleX:T,rippleY:_,rippleSize:M,cb:F}=A;f(B=>[...B,y.jsx(o6,{classes:{ripple:ye(s.ripple,so.ripple),rippleVisible:ye(s.rippleVisible,so.rippleVisible),ripplePulsate:ye(s.ripplePulsate,so.ripplePulsate),child:ye(s.child,so.child),childLeaving:ye(s.childLeaving,so.childLeaving),childPulsate:ye(s.childPulsate,so.childPulsate)},timeout:kg,pulsate:$,rippleX:T,rippleY:_,rippleSize:M},p.current)]),p.current+=1,m.current=F},[s]),P=E.useCallback((A={},$={},T=()=>{})=>{const{pulsate:_=!1,center:M=o||$.pulsate,fakeElement:F=!1}=$;if((A==null?void 0:A.type)==="mousedown"&&g.current){g.current=!1;return}(A==null?void 0:A.type)==="touchstart"&&(g.current=!0);const B=F?null:b.current,G=B?B.getBoundingClientRect():{width:0,height:0,left:0,top:0};let W,H,z;if(M||A===void 0||A.clientX===0&&A.clientY===0||!A.clientX&&!A.touches)W=Math.round(G.width/2),H=Math.round(G.height/2);else{const{clientX:te,clientY:Z}=A.touches&&A.touches.length>0?A.touches[0]:A;W=Math.round(te-G.left),H=Math.round(Z-G.top)}if(M)z=Math.sqrt((2*G.width**2+G.height**2)/3),z%2===0&&(z+=1);else{const te=Math.max(Math.abs((B?B.clientWidth:0)-W),W)*2+2,Z=Math.max(Math.abs((B?B.clientHeight:0)-H),H)*2+2;z=Math.sqrt(te**2+Z**2)}A!=null&&A.touches?x.current===null&&(x.current=()=>{w({pulsate:_,rippleX:W,rippleY:H,rippleSize:z,cb:T})},S.start(ZU,()=>{x.current&&(x.current(),x.current=null)})):w({pulsate:_,rippleX:W,rippleY:H,rippleSize:z,cb:T})},[o,w,S]),R=E.useCallback(()=>{P({},{pulsate:!0})},[P]),O=E.useCallback((A,$)=>{if(S.clear(),(A==null?void 0:A.type)==="touchend"&&x.current){x.current(),x.current=null,S.start(0,()=>{O(A,$)});return}x.current=null,f(T=>T.length>0?T.slice(1):T),m.current=$},[S]);return E.useImperativeHandle(n,()=>({pulsate:R,start:P,stop:O}),[R,P,O]),y.jsx(r6,k({className:ye(so.root,s.root,l),ref:b},u,{children:y.jsx(Cg,{component:null,exit:!0,children:c})}))});function s6(e){return Ie("MuiButtonBase",e)}const a6=Ne("MuiButtonBase",["root","disabled","focusVisible"]),l6=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],c6=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,l=Le({root:["root",t&&"disabled",n&&"focusVisible"]},s6,o);return n&&r&&(l.root+=` ${r}`),l},u6=re("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${a6.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Dr=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:l,className:u,component:c="button",disabled:f=!1,disableRipple:p=!1,disableTouchRipple:m=!1,focusRipple:g=!1,LinkComponent:S="a",onBlur:x,onClick:b,onContextMenu:w,onDragLeave:P,onFocus:R,onFocusVisible:O,onKeyDown:A,onKeyUp:$,onMouseDown:T,onMouseLeave:_,onMouseUp:M,onTouchEnd:F,onTouchMove:B,onTouchStart:G,tabIndex:W=0,TouchRippleProps:H,touchRippleRef:z,type:te}=r,Z=ge(r,l6),X=E.useRef(null),N=E.useRef(null),Y=Gt(N,z),{isFocusVisibleRef:ce,onFocus:L,onBlur:se,ref:Oe}=ag(),[ve,xe]=E.useState(!1);f&&ve&&xe(!1),E.useImperativeHandle(o,()=>({focusVisible:()=>{xe(!0),X.current.focus()}}),[]);const[he,Me]=E.useState(!1);E.useEffect(()=>{Me(!0)},[]);const de=he&&!p&&!f;E.useEffect(()=>{ve&&g&&!p&&he&&N.current.pulsate()},[p,g,ve,he]);function ke(Pe,xt,Ht=m){return Nn(fn=>(xt&&xt(fn),!Ht&&N.current&&N.current[Pe](fn),!0))}const Qe=ke("start",T),He=ke("stop",w),Be=ke("stop",P),Je=ke("stop",M),ct=ke("stop",Pe=>{ve&&Pe.preventDefault(),_&&_(Pe)}),ot=ke("start",G),ze=ke("stop",F),Ot=ke("stop",B),Ze=ke("stop",Pe=>{se(Pe),ce.current===!1&&xe(!1),x&&x(Pe)},!1),$t=Nn(Pe=>{X.current||(X.current=Pe.currentTarget),L(Pe),ce.current===!0&&(xe(!0),O&&O(Pe)),R&&R(Pe)}),gt=()=>{const Pe=X.current;return c&&c!=="button"&&!(Pe.tagName==="A"&&Pe.href)},dt=E.useRef(!1),_t=Nn(Pe=>{g&&!dt.current&&ve&&N.current&&Pe.key===" "&&(dt.current=!0,N.current.stop(Pe,()=>{N.current.start(Pe)})),Pe.target===Pe.currentTarget&>()&&Pe.key===" "&&Pe.preventDefault(),A&&A(Pe),Pe.target===Pe.currentTarget&>()&&Pe.key==="Enter"&&!f&&(Pe.preventDefault(),b&&b(Pe))}),Pt=Nn(Pe=>{g&&Pe.key===" "&&N.current&&ve&&!Pe.defaultPrevented&&(dt.current=!1,N.current.stop(Pe,()=>{N.current.pulsate(Pe)})),$&&$(Pe),b&&Pe.target===Pe.currentTarget&>()&&Pe.key===" "&&!Pe.defaultPrevented&&b(Pe)});let pt=c;pt==="button"&&(Z.href||Z.to)&&(pt=S);const Ft={};pt==="button"?(Ft.type=te===void 0?"button":te,Ft.disabled=f):(!Z.href&&!Z.to&&(Ft.role="button"),f&&(Ft["aria-disabled"]=f));const Yt=Gt(n,Oe,X),qt=k({},r,{centerRipple:s,component:c,disabled:f,disableRipple:p,disableTouchRipple:m,focusRipple:g,tabIndex:W,focusVisible:ve}),et=c6(qt);return y.jsxs(u6,k({as:pt,className:ye(et.root,u),ownerState:qt,onBlur:Ze,onClick:b,onContextMenu:He,onFocus:$t,onKeyDown:_t,onKeyUp:Pt,onMouseDown:Qe,onMouseLeave:ct,onMouseUp:Je,onDragLeave:Be,onTouchEnd:ze,onTouchMove:Ot,onTouchStart:ot,ref:Yt,tabIndex:f?-1:W,type:te},Ft,Z,{children:[l,de?y.jsx(i6,k({ref:Y,center:s},H)):null]}))});function d6(e){return Ie("MuiAlert",e)}const eE=Ne("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function f6(e){return Ie("MuiIconButton",e)}const p6=Ne("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),h6=["edge","children","className","color","disabled","disableFocusRipple","size"],m6=e=>{const{classes:t,disabled:n,color:r,edge:o,size:s}=e,l={root:["root",n&&"disabled",r!=="default"&&`color${ie(r)}`,o&&`edge${ie(o)}`,`size${ie(s)}`]};return Le(l,f6,t)},g6=re(Dr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ie(n.color)}`],n.edge&&t[`edge${ie(n.edge)}`],t[`size${ie(n.size)}`]]}})(({theme:e,ownerState:t})=>k({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return k({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&k({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":k({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${p6.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Wn=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:l,color:u="default",disabled:c=!1,disableFocusRipple:f=!1,size:p="medium"}=r,m=ge(r,h6),g=k({},r,{edge:o,color:u,disabled:c,disableFocusRipple:f,size:p}),S=m6(g);return y.jsx(g6,k({className:ye(S.root,l),centerRipple:!0,focusRipple:!f,disabled:c,ref:n},m,{ownerState:g,children:s}))}),y6=Rt(y.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),v6=Rt(y.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),b6=Rt(y.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),x6=Rt(y.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),tE=Rt(y.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),w6=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],S6=e=>{const{variant:t,color:n,severity:r,classes:o}=e,s={root:["root",`color${ie(n||r)}`,`${t}${ie(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Le(s,d6,o)},C6=re(io,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ie(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?Pc:Tc,n=e.palette.mode==="light"?Tc:Pc;return k({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${eE.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${eE.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:k({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}))]})}),E6=re("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),R6=re("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),nE=re("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),rE={success:y.jsx(y6,{fontSize:"inherit"}),warning:y.jsx(v6,{fontSize:"inherit"}),error:y.jsx(b6,{fontSize:"inherit"}),info:y.jsx(x6,{fontSize:"inherit"})},k6=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiAlert"}),{action:o,children:s,className:l,closeText:u="Close",color:c,components:f={},componentsProps:p={},icon:m,iconMapping:g=rE,onClose:S,role:x="alert",severity:b="success",slotProps:w={},slots:P={},variant:R="standard"}=r,O=ge(r,w6),A=k({},r,{color:c,severity:b,variant:R,colorSeverity:c||b}),$=S6(A),T={slots:k({closeButton:f.CloseButton,closeIcon:f.CloseIcon},P),slotProps:k({},p,w)},[_,M]=Rg("closeButton",{elementType:Wn,externalForwardedProps:T,ownerState:A}),[F,B]=Rg("closeIcon",{elementType:tE,externalForwardedProps:T,ownerState:A});return y.jsxs(C6,k({role:x,elevation:0,ownerState:A,className:ye($.root,l),ref:n},O,{children:[m!==!1?y.jsx(E6,{ownerState:A,className:$.icon,children:m||g[b]||rE[b]}):null,y.jsx(R6,{ownerState:A,className:$.message,children:s}),o!=null?y.jsx(nE,{ownerState:A,className:$.action,children:o}):null,o==null&&S?y.jsx(nE,{ownerState:A,className:$.action,children:y.jsx(_,k({size:"small","aria-label":u,title:u,color:"inherit",onClick:S},M,{children:y.jsx(F,k({fontSize:"small"},B))}))}):null]}))});function P6(e){return Ie("MuiTypography",e)}Ne("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const T6=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],O6=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:l}=e,u={root:["root",s,e.align!=="inherit"&&`align${ie(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Le(u,P6,l)},$6=re("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ie(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>k({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),oE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},A6={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},j6=e=>A6[e]||e,bn=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTypography"}),o=j6(r.color),s=xc(k({},r,{color:o})),{align:l="inherit",className:u,component:c,gutterBottom:f=!1,noWrap:p=!1,paragraph:m=!1,variant:g="body1",variantMapping:S=oE}=s,x=ge(s,T6),b=k({},s,{align:l,color:o,className:u,component:c,gutterBottom:f,noWrap:p,paragraph:m,variant:g,variantMapping:S}),w=c||(m?"p":S[g]||oE[g])||"span",P=O6(b);return y.jsx($6,k({as:w,ref:n,ownerState:b,className:ye(P.root,u)},x))});function _6(e){return Ie("MuiAlertTitle",e)}Ne("MuiAlertTitle",["root"]);const I6=["className"],M6=e=>{const{classes:t}=e;return Le({root:["root"]},_6,t)},N6=re(bn,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2})),L6=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiAlertTitle"}),{className:o}=r,s=ge(r,I6),l=r,u=M6(l);return y.jsx(N6,k({gutterBottom:!0,component:"div",ownerState:l,ref:n,className:ye(u.root,o)},s))});function D6(e){return Ie("MuiAppBar",e)}Ne("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const F6=["className","color","enableColorOnDark","position"],B6=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${ie(t)}`,`position${ie(n)}`]};return Le(o,D6,r)},pf=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,z6=re(io,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ie(n.position)}`],t[`color${ie(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return k({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&k({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&k({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&k({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:pf(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:pf(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:pf(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:pf(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),iE=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiAppBar"}),{className:o,color:s="primary",enableColorOnDark:l=!1,position:u="fixed"}=r,c=ge(r,F6),f=k({},r,{color:s,position:u,enableColorOnDark:l}),p=B6(f);return y.jsx(z6,k({square:!0,component:"header",ownerState:f,elevation:4,className:ye(p.root,o,u==="fixed"&&"mui-fixed"),ref:n},c))});function sE(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function U6(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:s,trim:l=!1}=e;return(u,{inputValue:c,getOptionLabel:f})=>{let p=l?c.trim():c;n&&(p=p.toLowerCase()),t&&(p=sE(p));const m=p?u.filter(g=>{let S=(s||f)(g);return n&&(S=S.toLowerCase()),t&&(S=sE(S)),o==="start"?S.indexOf(p)===0:S.indexOf(p)>-1}):u;return typeof r=="number"?m.slice(0,r):m}}function hf(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const W6=U6(),aE=5,H6=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function V6(e){const{unstable_isActiveElementInListbox:t=H6,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:s=!1,blurOnSelect:l=!1,clearOnBlur:u=!e.freeSolo,clearOnEscape:c=!1,componentName:f="useAutocomplete",defaultValue:p=e.multiple?[]:null,disableClearable:m=!1,disableCloseOnSelect:g=!1,disabled:S,disabledItemsFocusable:x=!1,disableListWrap:b=!1,filterOptions:w=W6,filterSelectedOptions:P=!1,freeSolo:R=!1,getOptionDisabled:O,getOptionKey:A,getOptionLabel:$=Q=>{var q;return(q=Q.label)!=null?q:Q},groupBy:T,handleHomeEndKeys:_=!e.freeSolo,id:M,includeInputInList:F=!1,inputValue:B,isOptionEqualToValue:G=(Q,q)=>Q===q,multiple:W=!1,onChange:H,onClose:z,onHighlightChange:te,onInputChange:Z,onOpen:X,open:N,openOnFocus:Y=!1,options:ce,readOnly:L=!1,selectOnFocus:se=!e.freeSolo,value:Oe}=e,ve=Ia(M);let xe=$;xe=Q=>{const q=$(Q);return typeof q!="string"?String(q):q};const he=E.useRef(!1),Me=E.useRef(!0),de=E.useRef(null),ke=E.useRef(null),[Qe,He]=E.useState(null),[Be,Je]=E.useState(-1),ct=o?0:-1,ot=E.useRef(ct),[ze,Ot]=pi({controlled:Oe,default:p,name:f}),[Ze,$t]=pi({controlled:B,default:"",name:f,state:"inputValue"}),[gt,dt]=E.useState(!1),_t=E.useCallback((Q,q)=>{if(!(W?ze.length<q.length:q!==null)&&!u)return;let be;if(W)be="";else if(q==null)be="";else{const De=xe(q);be=typeof De=="string"?De:""}Ze!==be&&($t(be),Z&&Z(Q,be,"reset"))},[xe,Ze,W,Z,$t,u,ze]),[Pt,pt]=pi({controlled:N,default:!1,name:f,state:"open"}),[Ft,Yt]=E.useState(!0),qt=!W&&ze!=null&&Ze===xe(ze),et=Pt&&!L,Pe=et?w(ce.filter(Q=>!(P&&(W?ze:[ze]).some(q=>q!==null&&G(Q,q)))),{inputValue:qt&&Ft?"":Ze,getOptionLabel:xe}):[],xt=lg({filteredOptions:Pe,value:ze,inputValue:Ze});E.useEffect(()=>{const Q=ze!==xt.value;gt&&!Q||R&&!Q||_t(null,ze)},[ze,_t,gt,xt.value,R]);const Ht=Pt&&Pe.length>0&&!L,fn=Nn(Q=>{Q===-1?de.current.focus():Qe.querySelector(`[data-tag-index="${Q}"]`).focus()});E.useEffect(()=>{W&&Be>ze.length-1&&(Je(-1),fn(-1))},[ze,W,Be,fn]);function Ue(Q,q){if(!ke.current||Q<0||Q>=Pe.length)return-1;let we=Q;for(;;){const be=ke.current.querySelector(`[data-option-index="${we}"]`),De=x?!1:!be||be.disabled||be.getAttribute("aria-disabled")==="true";if(be&&be.hasAttribute("tabindex")&&!De)return we;if(q==="next"?we=(we+1)%Pe.length:we=(we-1+Pe.length)%Pe.length,we===Q)return-1}}const ut=Nn(({event:Q,index:q,reason:we="auto"})=>{if(ot.current=q,q===-1?de.current.removeAttribute("aria-activedescendant"):de.current.setAttribute("aria-activedescendant",`${ve}-option-${q}`),te&&te(Q,q===-1?null:Pe[q],we),!ke.current)return;const be=ke.current.querySelector(`[role="option"].${n}-focused`);be&&(be.classList.remove(`${n}-focused`),be.classList.remove(`${n}-focusVisible`));let De=ke.current;if(ke.current.getAttribute("role")!=="listbox"&&(De=ke.current.parentElement.querySelector('[role="listbox"]')),!De)return;if(q===-1){De.scrollTop=0;return}const Ee=ke.current.querySelector(`[data-option-index="${q}"]`);if(Ee&&(Ee.classList.add(`${n}-focused`),we==="keyboard"&&Ee.classList.add(`${n}-focusVisible`),De.scrollHeight>De.clientHeight&&we!=="mouse"&&we!=="touch")){const nt=Ee,At=De.clientHeight+De.scrollTop,fo=nt.offsetTop+nt.offsetHeight;fo>At?De.scrollTop=fo-De.clientHeight:nt.offsetTop-nt.offsetHeight*(T?1.3:0)<De.scrollTop&&(De.scrollTop=nt.offsetTop-nt.offsetHeight*(T?1.3:0))}}),Re=Nn(({event:Q,diff:q,direction:we="next",reason:be="auto"})=>{if(!et)return;const Ee=Ue((()=>{const nt=Pe.length-1;if(q==="reset")return ct;if(q==="start")return 0;if(q==="end")return nt;const At=ot.current+q;return At<0?At===-1&&F?-1:b&&ot.current!==-1||Math.abs(q)>1?0:nt:At>nt?At===nt+1&&F?-1:b||Math.abs(q)>1?nt:0:At})(),we);if(ut({index:Ee,reason:be,event:Q}),r&&q!=="reset")if(Ee===-1)de.current.value=Ze;else{const nt=xe(Pe[Ee]);de.current.value=nt,nt.toLowerCase().indexOf(Ze.toLowerCase())===0&&Ze.length>0&&de.current.setSelectionRange(Ze.length,nt.length)}}),We=()=>{const Q=(q,we)=>{const be=q?xe(q):"",De=we?xe(we):"";return be===De};if(ot.current!==-1&&xt.filteredOptions&&xt.filteredOptions.length!==Pe.length&&xt.inputValue===Ze&&(W?ze.length===xt.value.length&&xt.value.every((q,we)=>xe(ze[we])===xe(q)):Q(xt.value,ze))){const q=xt.filteredOptions[ot.current];if(q)return hf(Pe,we=>xe(we)===xe(q))}return-1},ft=E.useCallback(()=>{if(!et)return;const Q=We();if(Q!==-1){ot.current=Q;return}const q=W?ze[0]:ze;if(Pe.length===0||q==null){Re({diff:"reset"});return}if(ke.current){if(q!=null){const we=Pe[ot.current];if(W&&we&&hf(ze,De=>G(we,De))!==-1)return;const be=hf(Pe,De=>G(De,q));be===-1?Re({diff:"reset"}):ut({index:be});return}if(ot.current>=Pe.length-1){ut({index:Pe.length-1});return}ut({index:ot.current})}},[Pe.length,W?!1:ze,P,Re,ut,et,Ze,W]),yt=Nn(Q=>{tf(ke,Q),Q&&ft()});E.useEffect(()=>{ft()},[ft]);const bt=Q=>{Pt||(pt(!0),Yt(!0),X&&X(Q))},It=(Q,q)=>{Pt&&(pt(!1),z&&z(Q,q))},Mt=(Q,q,we,be)=>{if(W){if(ze.length===q.length&&ze.every((De,Ee)=>De===q[Ee]))return}else if(ze===q)return;H&&H(Q,q,we,be),Ot(q)},Zt=E.useRef(!1),rn=(Q,q,we="selectOption",be="options")=>{let De=we,Ee=q;if(W){Ee=Array.isArray(ze)?ze.slice():[];const nt=hf(Ee,At=>G(q,At));nt===-1?Ee.push(q):be!=="freeSolo"&&(Ee.splice(nt,1),De="removeOption")}_t(Q,Ee),Mt(Q,Ee,De,{option:q}),!g&&(!Q||!Q.ctrlKey&&!Q.metaKey)&&It(Q,De),(l===!0||l==="touch"&&Zt.current||l==="mouse"&&!Zt.current)&&de.current.blur()};function Qn(Q,q){if(Q===-1)return-1;let we=Q;for(;;){if(q==="next"&&we===ze.length||q==="previous"&&we===-1)return-1;const be=Qe.querySelector(`[data-tag-index="${we}"]`);if(!be||!be.hasAttribute("tabindex")||be.disabled||be.getAttribute("aria-disabled")==="true")we+=q==="next"?1:-1;else return we}}const Hr=(Q,q)=>{if(!W)return;Ze===""&&It(Q,"toggleInput");let we=Be;Be===-1?Ze===""&&q==="previous"&&(we=ze.length-1):(we+=q==="next"?1:-1,we<0&&(we=0),we===ze.length&&(we=-1)),we=Qn(we,q),Je(we),fn(we)},Po=Q=>{he.current=!0,$t(""),Z&&Z(Q,"","clear"),Mt(Q,W?[]:null,"clear")},To=Q=>q=>{if(Q.onKeyDown&&Q.onKeyDown(q),!q.defaultMuiPrevented&&(Be!==-1&&["ArrowLeft","ArrowRight"].indexOf(q.key)===-1&&(Je(-1),fn(-1)),q.which!==229))switch(q.key){case"Home":et&&_&&(q.preventDefault(),Re({diff:"start",direction:"next",reason:"keyboard",event:q}));break;case"End":et&&_&&(q.preventDefault(),Re({diff:"end",direction:"previous",reason:"keyboard",event:q}));break;case"PageUp":q.preventDefault(),Re({diff:-aE,direction:"previous",reason:"keyboard",event:q}),bt(q);break;case"PageDown":q.preventDefault(),Re({diff:aE,direction:"next",reason:"keyboard",event:q}),bt(q);break;case"ArrowDown":q.preventDefault(),Re({diff:1,direction:"next",reason:"keyboard",event:q}),bt(q);break;case"ArrowUp":q.preventDefault(),Re({diff:-1,direction:"previous",reason:"keyboard",event:q}),bt(q);break;case"ArrowLeft":Hr(q,"previous");break;case"ArrowRight":Hr(q,"next");break;case"Enter":if(ot.current!==-1&&et){const we=Pe[ot.current],be=O?O(we):!1;if(q.preventDefault(),be)return;rn(q,we,"selectOption"),r&&de.current.setSelectionRange(de.current.value.length,de.current.value.length)}else R&&Ze!==""&&qt===!1&&(W&&q.preventDefault(),rn(q,Ze,"createOption","freeSolo"));break;case"Escape":et?(q.preventDefault(),q.stopPropagation(),It(q,"escape")):c&&(Ze!==""||W&&ze.length>0)&&(q.preventDefault(),q.stopPropagation(),Po(q));break;case"Backspace":if(W&&!L&&Ze===""&&ze.length>0){const we=Be===-1?ze.length-1:Be,be=ze.slice();be.splice(we,1),Mt(q,be,"removeOption",{option:ze[we]})}break;case"Delete":if(W&&!L&&Ze===""&&ze.length>0&&Be!==-1){const we=Be,be=ze.slice();be.splice(we,1),Mt(q,be,"removeOption",{option:ze[we]})}break}},uo=Q=>{dt(!0),Y&&!he.current&&bt(Q)},Ln=Q=>{if(t(ke)){de.current.focus();return}dt(!1),Me.current=!0,he.current=!1,s&&ot.current!==-1&&et?rn(Q,Pe[ot.current],"blur"):s&&R&&Ze!==""?rn(Q,Ze,"blur","freeSolo"):u&&_t(Q,ze),It(Q,"blur")},on=Q=>{const q=Q.target.value;Ze!==q&&($t(q),Yt(!1),Z&&Z(Q,q,"input")),q===""?!m&&!W&&Mt(Q,null,"clear"):bt(Q)},Qt=Q=>{const q=Number(Q.currentTarget.getAttribute("data-option-index"));ot.current!==q&&ut({event:Q,index:q,reason:"mouse"})},D=Q=>{ut({event:Q,index:Number(Q.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Zt.current=!0},V=Q=>{const q=Number(Q.currentTarget.getAttribute("data-option-index"));rn(Q,Pe[q],"selectOption"),Zt.current=!1},oe=Q=>q=>{const we=ze.slice();we.splice(Q,1),Mt(q,we,"removeOption",{option:ze[Q]})},me=Q=>{Pt?It(Q,"toggleInput"):bt(Q)},je=Q=>{Q.currentTarget.contains(Q.target)&&Q.target.getAttribute("id")!==ve&&Q.preventDefault()},Ke=Q=>{Q.currentTarget.contains(Q.target)&&(de.current.focus(),se&&Me.current&&de.current.selectionEnd-de.current.selectionStart===0&&de.current.select(),Me.current=!1)},it=Q=>{!S&&(Ze===""||!Pt)&&me(Q)};let $e=R&&Ze.length>0;$e=$e||(W?ze.length>0:ze!==null);let st=Pe;return T&&(st=Pe.reduce((Q,q,we)=>{const be=T(q);return Q.length>0&&Q[Q.length-1].group===be?Q[Q.length-1].options.push(q):Q.push({key:we,index:we,group:be,options:[q]}),Q},[])),S&>&&Ln(),{getRootProps:(Q={})=>k({"aria-owns":Ht?`${ve}-listbox`:null},Q,{onKeyDown:To(Q),onMouseDown:je,onClick:Ke}),getInputLabelProps:()=>({id:`${ve}-label`,htmlFor:ve}),getInputProps:()=>({id:ve,value:Ze,onBlur:Ln,onFocus:uo,onChange:on,onMouseDown:it,"aria-activedescendant":et?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ht?`${ve}-listbox`:void 0,"aria-expanded":Ht,autoComplete:"off",ref:de,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:S}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Po}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:me}),getTagProps:({index:Q})=>k({key:Q,"data-tag-index":Q,tabIndex:-1},!L&&{onDelete:oe(Q)}),getListboxProps:()=>({role:"listbox",id:`${ve}-listbox`,"aria-labelledby":`${ve}-label`,ref:yt,onMouseDown:Q=>{Q.preventDefault()}}),getOptionProps:({index:Q,option:q})=>{var we;const be=(W?ze:[ze]).some(Ee=>Ee!=null&&G(q,Ee)),De=O?O(q):!1;return{key:(we=A==null?void 0:A(q))!=null?we:xe(q),tabIndex:-1,role:"option",id:`${ve}-option-${Q}`,onMouseMove:Qt,onClick:V,onTouchStart:D,"data-option-index":Q,"aria-disabled":De,"aria-selected":be}},id:ve,inputValue:Ze,value:ze,dirty:$e,expanded:et&&Qe,popupOpen:et,focused:gt||Be!==-1,anchorEl:Qe,setAnchorEl:He,focusedTag:Be,groupedOptions:st}}var Pg={};Object.defineProperty(Pg,"__esModule",{value:!0});var lE=Pg.default=void 0,K6=q6(E),G6=WC;function cE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(cE=function(r){return r?n:t})(e)}function q6(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=cE(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var l=o?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(r,s,l):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function Q6(e){return Object.keys(e).length===0}function Y6(e=null){const t=K6.useContext(G6.ThemeContext);return!t||Q6(t)?e:t}lE=Pg.default=Y6;var wr="top",ao="bottom",lo="right",Sr="left",Tg="auto",_c=[wr,ao,lo,Sr],qa="start",Ic="end",X6="clippingParents",uE="viewport",Mc="popper",J6="reference",dE=_c.reduce(function(e,t){return e.concat([t+"-"+qa,t+"-"+Ic])},[]),fE=[].concat(_c,[Tg]).reduce(function(e,t){return e.concat([t,t+"-"+qa,t+"-"+Ic])},[]),Z6="beforeRead",e8="read",t8="afterRead",n8="beforeMain",r8="main",o8="afterMain",i8="beforeWrite",s8="write",a8="afterWrite",l8=[Z6,e8,t8,n8,r8,o8,i8,s8,a8];function Ko(e){return e?(e.nodeName||"").toLowerCase():null}function Fr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Us(e){var t=Fr(e).Element;return e instanceof t||e instanceof Element}function co(e){var t=Fr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Og(e){if(typeof ShadowRoot>"u")return!1;var t=Fr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function c8(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!co(s)||!Ko(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(l){var u=o[l];u===!1?s.removeAttribute(l):s.setAttribute(l,u===!0?"":u)}))})}function u8(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=l.reduce(function(c,f){return c[f]="",c},{});!co(o)||!Ko(o)||(Object.assign(o.style,u),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}const d8={name:"applyStyles",enabled:!0,phase:"write",fn:c8,effect:u8,requires:["computeStyles"]};function Go(e){return e.split("-")[0]}var Ws=Math.max,mf=Math.min,Qa=Math.round;function $g(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function pE(){return!/^((?!chrome|android).)*safari/i.test($g())}function Ya(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&co(e)&&(o=e.offsetWidth>0&&Qa(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Qa(r.height)/e.offsetHeight||1);var l=Us(e)?Fr(e):window,u=l.visualViewport,c=!pE()&&n,f=(r.left+(c&&u?u.offsetLeft:0))/o,p=(r.top+(c&&u?u.offsetTop:0))/s,m=r.width/o,g=r.height/s;return{width:m,height:g,top:p,right:f+m,bottom:p+g,left:f,x:f,y:p}}function Ag(e){var t=Ya(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function hE(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Og(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function gi(e){return Fr(e).getComputedStyle(e)}function f8(e){return["table","td","th"].indexOf(Ko(e))>=0}function zi(e){return((Us(e)?e.ownerDocument:e.document)||window.document).documentElement}function gf(e){return Ko(e)==="html"?e:e.assignedSlot||e.parentNode||(Og(e)?e.host:null)||zi(e)}function mE(e){return!co(e)||gi(e).position==="fixed"?null:e.offsetParent}function p8(e){var t=/firefox/i.test($g()),n=/Trident/i.test($g());if(n&&co(e)){var r=gi(e);if(r.position==="fixed")return null}var o=gf(e);for(Og(o)&&(o=o.host);co(o)&&["html","body"].indexOf(Ko(o))<0;){var s=gi(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Nc(e){for(var t=Fr(e),n=mE(e);n&&f8(n)&&gi(n).position==="static";)n=mE(n);return n&&(Ko(n)==="html"||Ko(n)==="body"&&gi(n).position==="static")?t:n||p8(e)||t}function jg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Lc(e,t,n){return Ws(e,mf(t,n))}function h8(e,t,n){var r=Lc(e,t,n);return r>n?n:r}function gE(){return{top:0,right:0,bottom:0,left:0}}function yE(e){return Object.assign({},gE(),e)}function vE(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var m8=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,yE(typeof t!="number"?t:vE(t,_c))};function g8(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,l=n.modifiersData.popperOffsets,u=Go(n.placement),c=jg(u),f=[Sr,lo].indexOf(u)>=0,p=f?"height":"width";if(!(!s||!l)){var m=m8(o.padding,n),g=Ag(s),S=c==="y"?wr:Sr,x=c==="y"?ao:lo,b=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],w=l[c]-n.rects.reference[c],P=Nc(s),R=P?c==="y"?P.clientHeight||0:P.clientWidth||0:0,O=b/2-w/2,A=m[S],$=R-g[p]-m[x],T=R/2-g[p]/2+O,_=Lc(A,T,$),M=c;n.modifiersData[r]=(t={},t[M]=_,t.centerOffset=_-T,t)}}function y8(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||hE(t.elements.popper,o)&&(t.elements.arrow=o))}const v8={name:"arrow",enabled:!0,phase:"main",fn:g8,effect:y8,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xa(e){return e.split("-")[1]}var b8={top:"auto",right:"auto",bottom:"auto",left:"auto"};function x8(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Qa(n*o)/o||0,y:Qa(r*o)/o||0}}function bE(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,l=e.offsets,u=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,m=e.isFixed,g=l.x,S=g===void 0?0:g,x=l.y,b=x===void 0?0:x,w=typeof p=="function"?p({x:S,y:b}):{x:S,y:b};S=w.x,b=w.y;var P=l.hasOwnProperty("x"),R=l.hasOwnProperty("y"),O=Sr,A=wr,$=window;if(f){var T=Nc(n),_="clientHeight",M="clientWidth";if(T===Fr(n)&&(T=zi(n),gi(T).position!=="static"&&u==="absolute"&&(_="scrollHeight",M="scrollWidth")),T=T,o===wr||(o===Sr||o===lo)&&s===Ic){A=ao;var F=m&&T===$&&$.visualViewport?$.visualViewport.height:T[_];b-=F-r.height,b*=c?1:-1}if(o===Sr||(o===wr||o===ao)&&s===Ic){O=lo;var B=m&&T===$&&$.visualViewport?$.visualViewport.width:T[M];S-=B-r.width,S*=c?1:-1}}var G=Object.assign({position:u},f&&b8),W=p===!0?x8({x:S,y:b},Fr(n)):{x:S,y:b};if(S=W.x,b=W.y,c){var H;return Object.assign({},G,(H={},H[A]=R?"0":"",H[O]=P?"0":"",H.transform=($.devicePixelRatio||1)<=1?"translate("+S+"px, "+b+"px)":"translate3d("+S+"px, "+b+"px, 0)",H))}return Object.assign({},G,(t={},t[A]=R?b+"px":"",t[O]=P?S+"px":"",t.transform="",t))}function w8(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,l=s===void 0?!0:s,u=n.roundOffsets,c=u===void 0?!0:u,f={placement:Go(t.placement),variation:Xa(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,bE(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,bE(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const S8={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:w8,data:{}};var yf={passive:!0};function C8(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,l=r.resize,u=l===void 0?!0:l,c=Fr(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&f.forEach(function(p){p.addEventListener("scroll",n.update,yf)}),u&&c.addEventListener("resize",n.update,yf),function(){s&&f.forEach(function(p){p.removeEventListener("scroll",n.update,yf)}),u&&c.removeEventListener("resize",n.update,yf)}}const E8={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:C8,data:{}};var R8={left:"right",right:"left",bottom:"top",top:"bottom"};function vf(e){return e.replace(/left|right|bottom|top/g,function(t){return R8[t]})}var k8={start:"end",end:"start"};function xE(e){return e.replace(/start|end/g,function(t){return k8[t]})}function _g(e){var t=Fr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ig(e){return Ya(zi(e)).left+_g(e).scrollLeft}function P8(e,t){var n=Fr(e),r=zi(e),o=n.visualViewport,s=r.clientWidth,l=r.clientHeight,u=0,c=0;if(o){s=o.width,l=o.height;var f=pE();(f||!f&&t==="fixed")&&(u=o.offsetLeft,c=o.offsetTop)}return{width:s,height:l,x:u+Ig(e),y:c}}function T8(e){var t,n=zi(e),r=_g(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=Ws(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=Ws(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+Ig(e),c=-r.scrollTop;return gi(o||n).direction==="rtl"&&(u+=Ws(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:u,y:c}}function Mg(e){var t=gi(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function wE(e){return["html","body","#document"].indexOf(Ko(e))>=0?e.ownerDocument.body:co(e)&&Mg(e)?e:wE(gf(e))}function Dc(e,t){var n;t===void 0&&(t=[]);var r=wE(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=Fr(r),l=o?[s].concat(s.visualViewport||[],Mg(r)?r:[]):r,u=t.concat(l);return o?u:u.concat(Dc(gf(l)))}function Ng(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function O8(e,t){var n=Ya(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function SE(e,t,n){return t===uE?Ng(P8(e,n)):Us(t)?O8(t,n):Ng(T8(zi(e)))}function $8(e){var t=Dc(gf(e)),n=["absolute","fixed"].indexOf(gi(e).position)>=0,r=n&&co(e)?Nc(e):e;return Us(r)?t.filter(function(o){return Us(o)&&hE(o,r)&&Ko(o)!=="body"}):[]}function A8(e,t,n,r){var o=t==="clippingParents"?$8(e):[].concat(t),s=[].concat(o,[n]),l=s[0],u=s.reduce(function(c,f){var p=SE(e,f,r);return c.top=Ws(p.top,c.top),c.right=mf(p.right,c.right),c.bottom=mf(p.bottom,c.bottom),c.left=Ws(p.left,c.left),c},SE(e,l,r));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function CE(e){var t=e.reference,n=e.element,r=e.placement,o=r?Go(r):null,s=r?Xa(r):null,l=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,c;switch(o){case wr:c={x:l,y:t.y-n.height};break;case ao:c={x:l,y:t.y+t.height};break;case lo:c={x:t.x+t.width,y:u};break;case Sr:c={x:t.x-n.width,y:u};break;default:c={x:t.x,y:t.y}}var f=o?jg(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(s){case qa:c[f]=c[f]-(t[p]/2-n[p]/2);break;case Ic:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function Fc(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,l=s===void 0?e.strategy:s,u=n.boundary,c=u===void 0?X6:u,f=n.rootBoundary,p=f===void 0?uE:f,m=n.elementContext,g=m===void 0?Mc:m,S=n.altBoundary,x=S===void 0?!1:S,b=n.padding,w=b===void 0?0:b,P=yE(typeof w!="number"?w:vE(w,_c)),R=g===Mc?J6:Mc,O=e.rects.popper,A=e.elements[x?R:g],$=A8(Us(A)?A:A.contextElement||zi(e.elements.popper),c,p,l),T=Ya(e.elements.reference),_=CE({reference:T,element:O,strategy:"absolute",placement:o}),M=Ng(Object.assign({},O,_)),F=g===Mc?M:T,B={top:$.top-F.top+P.top,bottom:F.bottom-$.bottom+P.bottom,left:$.left-F.left+P.left,right:F.right-$.right+P.right},G=e.modifiersData.offset;if(g===Mc&&G){var W=G[o];Object.keys(B).forEach(function(H){var z=[lo,ao].indexOf(H)>=0?1:-1,te=[wr,ao].indexOf(H)>=0?"y":"x";B[H]+=W[te]*z})}return B}function j8(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,l=n.padding,u=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?fE:c,p=Xa(r),m=p?u?dE:dE.filter(function(x){return Xa(x)===p}):_c,g=m.filter(function(x){return f.indexOf(x)>=0});g.length===0&&(g=m);var S=g.reduce(function(x,b){return x[b]=Fc(e,{placement:b,boundary:o,rootBoundary:s,padding:l})[Go(b)],x},{});return Object.keys(S).sort(function(x,b){return S[x]-S[b]})}function _8(e){if(Go(e)===Tg)return[];var t=vf(e);return[xE(e),t,xE(t)]}function I8(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,l=n.altAxis,u=l===void 0?!0:l,c=n.fallbackPlacements,f=n.padding,p=n.boundary,m=n.rootBoundary,g=n.altBoundary,S=n.flipVariations,x=S===void 0?!0:S,b=n.allowedAutoPlacements,w=t.options.placement,P=Go(w),R=P===w,O=c||(R||!x?[vf(w)]:_8(w)),A=[w].concat(O).reduce(function(ve,xe){return ve.concat(Go(xe)===Tg?j8(t,{placement:xe,boundary:p,rootBoundary:m,padding:f,flipVariations:x,allowedAutoPlacements:b}):xe)},[]),$=t.rects.reference,T=t.rects.popper,_=new Map,M=!0,F=A[0],B=0;B<A.length;B++){var G=A[B],W=Go(G),H=Xa(G)===qa,z=[wr,ao].indexOf(W)>=0,te=z?"width":"height",Z=Fc(t,{placement:G,boundary:p,rootBoundary:m,altBoundary:g,padding:f}),X=z?H?lo:Sr:H?ao:wr;$[te]>T[te]&&(X=vf(X));var N=vf(X),Y=[];if(s&&Y.push(Z[W]<=0),u&&Y.push(Z[X]<=0,Z[N]<=0),Y.every(function(ve){return ve})){F=G,M=!1;break}_.set(G,Y)}if(M)for(var ce=x?3:1,L=function(xe){var he=A.find(function(Me){var de=_.get(Me);if(de)return de.slice(0,xe).every(function(ke){return ke})});if(he)return F=he,"break"},se=ce;se>0;se--){var Oe=L(se);if(Oe==="break")break}t.placement!==F&&(t.modifiersData[r]._skip=!0,t.placement=F,t.reset=!0)}}const M8={name:"flip",enabled:!0,phase:"main",fn:I8,requiresIfExists:["offset"],data:{_skip:!1}};function EE(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function RE(e){return[wr,lo,ao,Sr].some(function(t){return e[t]>=0})}function N8(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,l=Fc(t,{elementContext:"reference"}),u=Fc(t,{altBoundary:!0}),c=EE(l,r),f=EE(u,o,s),p=RE(c),m=RE(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":m})}const L8={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:N8};function D8(e,t,n){var r=Go(e),o=[Sr,wr].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=s[0],u=s[1];return l=l||0,u=(u||0)*o,[Sr,lo].indexOf(r)>=0?{x:u,y:l}:{x:l,y:u}}function F8(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,l=fE.reduce(function(p,m){return p[m]=D8(m,t.rects,s),p},{}),u=l[t.placement],c=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=l}const B8={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:F8};function z8(e){var t=e.state,n=e.name;t.modifiersData[n]=CE({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const U8={name:"popperOffsets",enabled:!0,phase:"read",fn:z8,data:{}};function W8(e){return e==="x"?"y":"x"}function H8(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,l=n.altAxis,u=l===void 0?!1:l,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.padding,g=n.tether,S=g===void 0?!0:g,x=n.tetherOffset,b=x===void 0?0:x,w=Fc(t,{boundary:c,rootBoundary:f,padding:m,altBoundary:p}),P=Go(t.placement),R=Xa(t.placement),O=!R,A=jg(P),$=W8(A),T=t.modifiersData.popperOffsets,_=t.rects.reference,M=t.rects.popper,F=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,B=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),G=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(T){if(s){var H,z=A==="y"?wr:Sr,te=A==="y"?ao:lo,Z=A==="y"?"height":"width",X=T[A],N=X+w[z],Y=X-w[te],ce=S?-M[Z]/2:0,L=R===qa?_[Z]:M[Z],se=R===qa?-M[Z]:-_[Z],Oe=t.elements.arrow,ve=S&&Oe?Ag(Oe):{width:0,height:0},xe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:gE(),he=xe[z],Me=xe[te],de=Lc(0,_[Z],ve[Z]),ke=O?_[Z]/2-ce-de-he-B.mainAxis:L-de-he-B.mainAxis,Qe=O?-_[Z]/2+ce+de+Me+B.mainAxis:se+de+Me+B.mainAxis,He=t.elements.arrow&&Nc(t.elements.arrow),Be=He?A==="y"?He.clientTop||0:He.clientLeft||0:0,Je=(H=G==null?void 0:G[A])!=null?H:0,ct=X+ke-Je-Be,ot=X+Qe-Je,ze=Lc(S?mf(N,ct):N,X,S?Ws(Y,ot):Y);T[A]=ze,W[A]=ze-X}if(u){var Ot,Ze=A==="x"?wr:Sr,$t=A==="x"?ao:lo,gt=T[$],dt=$==="y"?"height":"width",_t=gt+w[Ze],Pt=gt-w[$t],pt=[wr,Sr].indexOf(P)!==-1,Ft=(Ot=G==null?void 0:G[$])!=null?Ot:0,Yt=pt?_t:gt-_[dt]-M[dt]-Ft+B.altAxis,qt=pt?gt+_[dt]+M[dt]-Ft-B.altAxis:Pt,et=S&&pt?h8(Yt,gt,qt):Lc(S?Yt:_t,gt,S?qt:Pt);T[$]=et,W[$]=et-gt}t.modifiersData[r]=W}}const V8={name:"preventOverflow",enabled:!0,phase:"main",fn:H8,requiresIfExists:["offset"]};function K8(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function G8(e){return e===Fr(e)||!co(e)?_g(e):K8(e)}function q8(e){var t=e.getBoundingClientRect(),n=Qa(t.width)/e.offsetWidth||1,r=Qa(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Q8(e,t,n){n===void 0&&(n=!1);var r=co(t),o=co(t)&&q8(t),s=zi(t),l=Ya(e,o,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Ko(t)!=="body"||Mg(s))&&(u=G8(t)),co(t)?(c=Ya(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=Ig(s))),{x:l.left+u.scrollLeft-c.x,y:l.top+u.scrollTop-c.y,width:l.width,height:l.height}}function Y8(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(u){if(!n.has(u)){var c=t.get(u);c&&o(c)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function X8(e){var t=Y8(e);return l8.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function J8(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Z8(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var kE={placement:"bottom",modifiers:[],strategy:"absolute"};function PE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function eW(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?kE:o;return function(u,c,f){f===void 0&&(f=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},kE,s),modifiersData:{},elements:{reference:u,popper:c},attributes:{},styles:{}},m=[],g=!1,S={state:p,setOptions:function(P){var R=typeof P=="function"?P(p.options):P;b(),p.options=Object.assign({},s,p.options,R),p.scrollParents={reference:Us(u)?Dc(u):u.contextElement?Dc(u.contextElement):[],popper:Dc(c)};var O=X8(Z8([].concat(r,p.options.modifiers)));return p.orderedModifiers=O.filter(function(A){return A.enabled}),x(),S.update()},forceUpdate:function(){if(!g){var P=p.elements,R=P.reference,O=P.popper;if(PE(R,O)){p.rects={reference:Q8(R,Nc(O),p.options.strategy==="fixed"),popper:Ag(O)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(B){return p.modifiersData[B.name]=Object.assign({},B.data)});for(var A=0;A<p.orderedModifiers.length;A++){if(p.reset===!0){p.reset=!1,A=-1;continue}var $=p.orderedModifiers[A],T=$.fn,_=$.options,M=_===void 0?{}:_,F=$.name;typeof T=="function"&&(p=T({state:p,options:M,name:F,instance:S})||p)}}}},update:J8(function(){return new Promise(function(w){S.forceUpdate(),w(p)})}),destroy:function(){b(),g=!0}};if(!PE(u,c))return S;S.setOptions(f).then(function(w){!g&&f.onFirstUpdate&&f.onFirstUpdate(w)});function x(){p.orderedModifiers.forEach(function(w){var P=w.name,R=w.options,O=R===void 0?{}:R,A=w.effect;if(typeof A=="function"){var $=A({state:p,name:P,instance:S,options:O}),T=function(){};m.push($||T)}})}function b(){m.forEach(function(w){return w()}),m=[]}return S}}var tW=[E8,U8,S8,d8,B8,M8,V8,v8,L8],nW=eW({defaultModifiers:tW});function rW(e){return typeof e=="function"?e():e}const TE=E.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[l,u]=E.useState(null),c=Gt(E.isValidElement(r)?r.ref:null,n);if(br(()=>{s||u(rW(o)||document.body)},[o,s]),br(()=>{if(l&&!s)return tf(n,l),()=>{tf(n,null)}},[n,l,s]),s){if(E.isValidElement(r)){const f={ref:c};return E.cloneElement(r,f)}return y.jsx(E.Fragment,{children:r})}return y.jsx(E.Fragment,{children:l&&Bu.createPortal(r,l)})});function oW(e){return Ie("MuiPopper",e)}Ne("MuiPopper",["root"]);const iW=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],sW=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function aW(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Lg(e){return typeof e=="function"?e():e}function lW(e){return e.nodeType!==void 0}const cW=e=>{const{classes:t}=e;return Le({root:["root"]},oW,t)},uW={},dW=E.forwardRef(function(t,n){var r;const{anchorEl:o,children:s,direction:l,disablePortal:u,modifiers:c,open:f,placement:p,popperOptions:m,popperRef:g,slotProps:S={},slots:x={},TransitionProps:b}=t,w=ge(t,iW),P=E.useRef(null),R=Gt(P,n),O=E.useRef(null),A=Gt(O,g),$=E.useRef(A);br(()=>{$.current=A},[A]),E.useImperativeHandle(g,()=>O.current,[]);const T=aW(p,l),[_,M]=E.useState(T),[F,B]=E.useState(Lg(o));E.useEffect(()=>{O.current&&O.current.forceUpdate()}),E.useEffect(()=>{o&&B(Lg(o))},[o]),br(()=>{if(!F||!f)return;const te=N=>{M(N.placement)};let Z=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:N})=>{te(N)}}];c!=null&&(Z=Z.concat(c)),m&&m.modifiers!=null&&(Z=Z.concat(m.modifiers));const X=nW(F,P.current,k({placement:T},m,{modifiers:Z}));return $.current(X),()=>{X.destroy(),$.current(null)}},[F,u,c,f,m,T]);const G={placement:_};b!==null&&(G.TransitionProps=b);const W=cW(t),H=(r=x.root)!=null?r:"div",z=or({elementType:H,externalSlotProps:S.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:R},ownerState:t,className:W.root});return y.jsx(H,k({},z,{children:typeof s=="function"?s(G):s}))}),fW=E.forwardRef(function(t,n){const{anchorEl:r,children:o,container:s,direction:l="ltr",disablePortal:u=!1,keepMounted:c=!1,modifiers:f,open:p,placement:m="bottom",popperOptions:g=uW,popperRef:S,style:x,transition:b=!1,slotProps:w={},slots:P={}}=t,R=ge(t,sW),[O,A]=E.useState(!0),$=()=>{A(!1)},T=()=>{A(!0)};if(!c&&!p&&(!b||O))return null;let _;if(s)_=s;else if(r){const B=Lg(r);_=B&&lW(B)?An(B).body:An(null).body}const M=!p&&c&&(!b||O)?"none":void 0,F=b?{in:p,onEnter:$,onExited:T}:void 0;return y.jsx(TE,{disablePortal:u,container:_,children:y.jsx(dW,k({anchorEl:r,direction:l,disablePortal:u,modifiers:f,ref:n,open:b?!O:p,placement:m,popperOptions:g,popperRef:S,slotProps:w,slots:P},R,{style:k({position:"fixed",top:0,left:0,display:M},x),TransitionProps:F,children:o}))})}),pW=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],hW=re(fW,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Bc=E.forwardRef(function(t,n){var r;const o=lE(),s=Fe({props:t,name:"MuiPopper"}),{anchorEl:l,component:u,components:c,componentsProps:f,container:p,disablePortal:m,keepMounted:g,modifiers:S,open:x,placement:b,popperOptions:w,popperRef:P,transition:R,slots:O,slotProps:A}=s,$=ge(s,pW),T=(r=O==null?void 0:O.root)!=null?r:c==null?void 0:c.Root,_=k({anchorEl:l,container:p,disablePortal:m,keepMounted:g,modifiers:S,open:x,placement:b,popperOptions:w,popperRef:P,transition:R},$);return y.jsx(hW,k({as:u,direction:o==null?void 0:o.direction,slots:{root:T},slotProps:A??f},_,{ref:n}))});function mW(e){return Ie("MuiListSubheader",e)}Ne("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const gW=["className","color","component","disableGutters","disableSticky","inset"],yW=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:s}=e,l={root:["root",n!=="default"&&`color${ie(n)}`,!r&&"gutters",o&&"inset",!s&&"sticky"]};return Le(l,mW,t)},vW=re("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ie(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>k({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),OE=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListSubheader"}),{className:o,color:s="default",component:l="li",disableGutters:u=!1,disableSticky:c=!1,inset:f=!1}=r,p=ge(r,gW),m=k({},r,{color:s,component:l,disableGutters:u,disableSticky:c,inset:f}),g=yW(m);return y.jsx(vW,k({as:l,className:ye(g.root,o),ref:n,ownerState:m},p))});OE.muiSkipListHighlight=!0;const bW=Rt(y.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function xW(e){return Ie("MuiChip",e)}const Dt=Ne("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),wW=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],SW=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:s,onDelete:l,clickable:u,variant:c}=e,f={root:["root",c,n&&"disabled",`size${ie(r)}`,`color${ie(o)}`,u&&"clickable",u&&`clickableColor${ie(o)}`,l&&"deletable",l&&`deletableColor${ie(o)}`,`${c}${ie(o)}`],label:["label",`label${ie(r)}`],avatar:["avatar",`avatar${ie(r)}`,`avatarColor${ie(o)}`],icon:["icon",`icon${ie(r)}`,`iconColor${ie(s)}`],deleteIcon:["deleteIcon",`deleteIcon${ie(r)}`,`deleteIconColor${ie(o)}`,`deleteIcon${ie(c)}Color${ie(o)}`]};return Le(f,xW,t)},CW=re("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:s,onDelete:l,size:u,variant:c}=n;return[{[`& .${Dt.avatar}`]:t.avatar},{[`& .${Dt.avatar}`]:t[`avatar${ie(u)}`]},{[`& .${Dt.avatar}`]:t[`avatarColor${ie(r)}`]},{[`& .${Dt.icon}`]:t.icon},{[`& .${Dt.icon}`]:t[`icon${ie(u)}`]},{[`& .${Dt.icon}`]:t[`iconColor${ie(o)}`]},{[`& .${Dt.deleteIcon}`]:t.deleteIcon},{[`& .${Dt.deleteIcon}`]:t[`deleteIcon${ie(u)}`]},{[`& .${Dt.deleteIcon}`]:t[`deleteIconColor${ie(r)}`]},{[`& .${Dt.deleteIcon}`]:t[`deleteIcon${ie(c)}Color${ie(r)}`]},t.root,t[`size${ie(u)}`],t[`color${ie(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${ie(r)})`],l&&t.deletable,l&&r!=="default"&&t[`deletableColor${ie(r)}`],t[c],t[`${c}${ie(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return k({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Dt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Dt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Dt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Dt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Dt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Dt.icon}`]:k({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&k({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Dt.deleteIcon}`]:k({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:mt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:mt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:mt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Dt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Dt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>k({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Dt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Dt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>k({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Dt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Dt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Dt.avatar}`]:{marginLeft:4},[`& .${Dt.avatarSmall}`]:{marginLeft:2},[`& .${Dt.icon}`]:{marginLeft:4},[`& .${Dt.iconSmall}`]:{marginLeft:2},[`& .${Dt.deleteIcon}`]:{marginRight:5},[`& .${Dt.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:mt(e.palette[t.color].main,.7)}`,[`&.${Dt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Dt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:mt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Dt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:mt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),EW=re("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ie(r)}`]]}})(({ownerState:e})=>k({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function $E(e){return e.key==="Backspace"||e.key==="Delete"}const RW=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiChip"}),{avatar:o,className:s,clickable:l,color:u="default",component:c,deleteIcon:f,disabled:p=!1,icon:m,label:g,onClick:S,onDelete:x,onKeyDown:b,onKeyUp:w,size:P="medium",variant:R="filled",tabIndex:O,skipFocusWhenDisabled:A=!1}=r,$=ge(r,wW),T=E.useRef(null),_=Gt(T,n),M=Y=>{Y.stopPropagation(),x&&x(Y)},F=Y=>{Y.currentTarget===Y.target&&$E(Y)&&Y.preventDefault(),b&&b(Y)},B=Y=>{Y.currentTarget===Y.target&&(x&&$E(Y)?x(Y):Y.key==="Escape"&&T.current&&T.current.blur()),w&&w(Y)},G=l!==!1&&S?!0:l,W=G||x?Dr:c||"div",H=k({},r,{component:W,disabled:p,size:P,color:u,iconColor:E.isValidElement(m)&&m.props.color||u,onDelete:!!x,clickable:G,variant:R}),z=SW(H),te=W===Dr?k({component:c||"div",focusVisibleClassName:z.focusVisible},x&&{disableRipple:!0}):{};let Z=null;x&&(Z=f&&E.isValidElement(f)?E.cloneElement(f,{className:ye(f.props.className,z.deleteIcon),onClick:M}):y.jsx(bW,{className:ye(z.deleteIcon),onClick:M}));let X=null;o&&E.isValidElement(o)&&(X=E.cloneElement(o,{className:ye(z.avatar,o.props.className)}));let N=null;return m&&E.isValidElement(m)&&(N=E.cloneElement(m,{className:ye(z.icon,m.props.className)})),y.jsxs(CW,k({as:W,className:ye(z.root,s),disabled:G&&p?!0:void 0,onClick:S,onKeyDown:F,onKeyUp:B,ref:_,tabIndex:A&&p?-1:O,ownerState:H},te,$,{children:[X||N,y.jsx(EW,{className:ye(z.label),ownerState:H,children:g}),Z]}))}),kW=["onChange","maxRows","minRows","style","value"];function bf(e){return parseInt(e,10)||0}const PW={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function TW(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const OW=E.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:s=1,style:l,value:u}=t,c=ge(t,kW),{current:f}=E.useRef(u!=null),p=E.useRef(null),m=Gt(n,p),g=E.useRef(null),S=E.useRef(null),x=E.useCallback(()=>{const P=p.current,O=Co(P).getComputedStyle(P);if(O.width==="0px")return{outerHeightStyle:0,overflowing:!1};const A=S.current;A.style.width=O.width,A.value=P.value||t.placeholder||"x",A.value.slice(-1)===`
|
|
96
|
+
`&&(A.value+=" ");const $=O.boxSizing,T=bf(O.paddingBottom)+bf(O.paddingTop),_=bf(O.borderBottomWidth)+bf(O.borderTopWidth),M=A.scrollHeight;A.value="x";const F=A.scrollHeight;let B=M;s&&(B=Math.max(Number(s)*F,B)),o&&(B=Math.min(Number(o)*F,B)),B=Math.max(B,F);const G=B+($==="border-box"?T+_:0),W=Math.abs(B-M)<=1;return{outerHeightStyle:G,overflowing:W}},[o,s,t.placeholder]),b=E.useCallback(()=>{const P=x();if(TW(P))return;const R=P.outerHeightStyle,O=p.current;g.current!==R&&(g.current=R,O.style.height=`${R}px`),O.style.overflow=P.overflowing?"hidden":""},[x]);br(()=>{const P=()=>{b()};let R;const O=Sc(P),A=p.current,$=Co(A);$.addEventListener("resize",O);let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(P),T.observe(A)),()=>{O.clear(),cancelAnimationFrame(R),$.removeEventListener("resize",O),T&&T.disconnect()}},[x,b]),br(()=>{b()});const w=P=>{f||b(),r&&r(P)};return y.jsxs(E.Fragment,{children:[y.jsx("textarea",k({value:u,onChange:w,ref:m,rows:s,style:l},c)),y.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:S,tabIndex:-1,style:k({},PW.shadow,l,{paddingTop:0,paddingBottom:0})})]})});function Ui({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const Dg=E.createContext(void 0);function yi(){return E.useContext(Dg)}function AE(e){return y.jsx(tz,k({},e,{defaultTheme:gg,themeId:Ea}))}function jE(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function xf(e,t=!1){return e&&(jE(e.value)&&e.value!==""||t&&jE(e.defaultValue)&&e.defaultValue!=="")}function $W(e){return e.startAdornment}function AW(e){return Ie("MuiInputBase",e)}const Br=Ne("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),jW=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],wf=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ie(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Sf=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},_W=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:s,focused:l,formControl:u,fullWidth:c,hiddenLabel:f,multiline:p,readOnly:m,size:g,startAdornment:S,type:x}=e,b={root:["root",`color${ie(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",l&&"focused",u&&"formControl",g&&g!=="medium"&&`size${ie(g)}`,p&&"multiline",S&&"adornedStart",s&&"adornedEnd",f&&"hiddenLabel",m&&"readOnly"],input:["input",r&&"disabled",x==="search"&&"inputTypeSearch",p&&"inputMultiline",g==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",S&&"inputAdornedStart",s&&"inputAdornedEnd",m&&"readOnly"]};return Le(b,AW,t)},Cf=re("div",{name:"MuiInputBase",slot:"Root",overridesResolver:wf})(({theme:e,ownerState:t})=>k({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Br.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&k({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Ef=re("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Sf})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=k({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},s=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return k({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Br.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${Br.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),IW=y.jsx(AE,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Fg=E.forwardRef(function(t,n){var r;const o=Fe({props:t,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:l,autoFocus:u,className:c,components:f={},componentsProps:p={},defaultValue:m,disabled:g,disableInjectingGlobalStyles:S,endAdornment:x,fullWidth:b=!1,id:w,inputComponent:P="input",inputProps:R={},inputRef:O,maxRows:A,minRows:$,multiline:T=!1,name:_,onBlur:M,onChange:F,onClick:B,onFocus:G,onKeyDown:W,onKeyUp:H,placeholder:z,readOnly:te,renderSuffix:Z,rows:X,slotProps:N={},slots:Y={},startAdornment:ce,type:L="text",value:se}=o,Oe=ge(o,jW),ve=R.value!=null?R.value:se,{current:xe}=E.useRef(ve!=null),he=E.useRef(),Me=E.useCallback(et=>{},[]),de=Gt(he,O,R.ref,Me),[ke,Qe]=E.useState(!1),He=yi(),Be=Ui({props:o,muiFormControl:He,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Be.focused=He?He.focused:ke,E.useEffect(()=>{!He&&g&&ke&&(Qe(!1),M&&M())},[He,g,ke,M]);const Je=He&&He.onFilled,ct=He&&He.onEmpty,ot=E.useCallback(et=>{xf(et)?Je&&Je():ct&&ct()},[Je,ct]);br(()=>{xe&&ot({value:ve})},[ve,ot,xe]);const ze=et=>{if(Be.disabled){et.stopPropagation();return}G&&G(et),R.onFocus&&R.onFocus(et),He&&He.onFocus?He.onFocus(et):Qe(!0)},Ot=et=>{M&&M(et),R.onBlur&&R.onBlur(et),He&&He.onBlur?He.onBlur(et):Qe(!1)},Ze=(et,...Pe)=>{if(!xe){const xt=et.target||he.current;if(xt==null)throw new Error(di(1));ot({value:xt.value})}R.onChange&&R.onChange(et,...Pe),F&&F(et,...Pe)};E.useEffect(()=>{ot(he.current)},[]);const $t=et=>{he.current&&et.currentTarget===et.target&&he.current.focus(),B&&B(et)};let gt=P,dt=R;T&>==="input"&&(X?dt=k({type:void 0,minRows:X,maxRows:X},dt):dt=k({type:void 0,maxRows:A,minRows:$},dt),gt=OW);const _t=et=>{ot(et.animationName==="mui-auto-fill-cancel"?he.current:{value:"x"})};E.useEffect(()=>{He&&He.setAdornedStart(!!ce)},[He,ce]);const Pt=k({},o,{color:Be.color||"primary",disabled:Be.disabled,endAdornment:x,error:Be.error,focused:Be.focused,formControl:He,fullWidth:b,hiddenLabel:Be.hiddenLabel,multiline:T,size:Be.size,startAdornment:ce,type:L}),pt=_W(Pt),Ft=Y.root||f.Root||Cf,Yt=N.root||p.root||{},qt=Y.input||f.Input||Ef;return dt=k({},dt,(r=N.input)!=null?r:p.input),y.jsxs(E.Fragment,{children:[!S&&IW,y.jsxs(Ft,k({},Yt,!Na(Ft)&&{ownerState:k({},Pt,Yt.ownerState)},{ref:n,onClick:$t},Oe,{className:ye(pt.root,Yt.className,c,te&&"MuiInputBase-readOnly"),children:[ce,y.jsx(Dg.Provider,{value:null,children:y.jsx(qt,k({ownerState:Pt,"aria-invalid":Be.error,"aria-describedby":s,autoComplete:l,autoFocus:u,defaultValue:m,disabled:Be.disabled,id:w,onAnimationStart:_t,name:_,placeholder:z,readOnly:te,required:Be.required,rows:X,value:ve,onKeyDown:W,onKeyUp:H,type:L},dt,!Na(qt)&&{as:gt,ownerState:k({},Pt,dt.ownerState)},{ref:de,className:ye(pt.input,dt.className,te&&"MuiInputBase-readOnly"),onBlur:Ot,onChange:Ze,onFocus:ze}))}),x,Z?Z(k({},Be,{startAdornment:ce})):null]}))]})});function MW(e){return Ie("MuiInput",e)}const Wi=k({},Br,Ne("MuiInput",["root","underline","input"]));function NW(e){return Ie("MuiOutlinedInput",e)}const qo=k({},Br,Ne("MuiOutlinedInput",["root","notchedOutline","input"]));function LW(e){return Ie("MuiFilledInput",e)}const zr=k({},Br,Ne("MuiFilledInput",["root","underline","input"])),_E=Rt(y.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function DW(e){return Ie("MuiAutocomplete",e)}const Et=Ne("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var IE,ME;const FW=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],BW=["ref"],zW=["key"],UW=["key"],WW=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:s,hasClearIcon:l,hasPopupIcon:u,inputFocused:c,popupOpen:f,size:p}=e,m={root:["root",r&&"expanded",o&&"focused",s&&"fullWidth",l&&"hasClearIcon",u&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${ie(p)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",f&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Le(m,DW,t)},HW=re("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:s,inputFocused:l,size:u}=n;return[{[`& .${Et.tag}`]:t.tag},{[`& .${Et.tag}`]:t[`tagSize${ie(u)}`]},{[`& .${Et.inputRoot}`]:t.inputRoot},{[`& .${Et.input}`]:t.input},{[`& .${Et.input}`]:l&&t.inputFocused},t.root,r&&t.fullWidth,s&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Et.focused} .${Et.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Et.clearIndicator}`]:{visibility:"visible"}},[`& .${Et.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Et.inputRoot}`]:{[`.${Et.hasPopupIcon}&, .${Et.hasClearIcon}&`]:{paddingRight:30},[`.${Et.hasPopupIcon}.${Et.hasClearIcon}&`]:{paddingRight:56},[`& .${Et.input}`]:{width:0,minWidth:30}},[`& .${Wi.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Wi.root}.${Br.sizeSmall}`]:{[`& .${Wi.input}`]:{padding:"2px 4px 3px 0"}},[`& .${qo.root}`]:{padding:9,[`.${Et.hasPopupIcon}&, .${Et.hasClearIcon}&`]:{paddingRight:39},[`.${Et.hasPopupIcon}.${Et.hasClearIcon}&`]:{paddingRight:65},[`& .${Et.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Et.endAdornment}`]:{right:9}},[`& .${qo.root}.${Br.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Et.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${zr.root}`]:{paddingTop:19,paddingLeft:8,[`.${Et.hasPopupIcon}&, .${Et.hasClearIcon}&`]:{paddingRight:39},[`.${Et.hasPopupIcon}.${Et.hasClearIcon}&`]:{paddingRight:65},[`& .${zr.input}`]:{padding:"7px 4px"},[`& .${Et.endAdornment}`]:{right:9}},[`& .${zr.root}.${Br.sizeSmall}`]:{paddingBottom:1,[`& .${zr.input}`]:{padding:"2.5px 4px"}},[`& .${Br.hiddenLabel}`]:{paddingTop:8},[`& .${zr.root}.${Br.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Et.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${zr.root}.${Br.hiddenLabel}.${Br.sizeSmall}`]:{[`& .${Et.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Et.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Et.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Et.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Et.inputRoot}`]:{flexWrap:"wrap"}}}]}),VW=re("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),KW=re(Wn,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),GW=re(Wn,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>k({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),qW=re(Bc,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Et.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),QW=re(io,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>k({},e.typography.body1,{overflow:"auto"})),YW=re("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),XW=re("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),JW=re("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Et.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Et.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Et.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),ZW=re(OE,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),e9=re("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Et.option}`]:{paddingLeft:24}}),t9=E.forwardRef(function(t,n){var r,o,s,l;const u=Fe({props:t,name:"MuiAutocomplete"}),{autoComplete:c=!1,autoHighlight:f=!1,autoSelect:p=!1,blurOnSelect:m=!1,ChipProps:g,className:S,clearIcon:x=IE||(IE=y.jsx(tE,{fontSize:"small"})),clearOnBlur:b=!u.freeSolo,clearOnEscape:w=!1,clearText:P="Clear",closeText:R="Close",componentsProps:O={},defaultValue:A=u.multiple?[]:null,disableClearable:$=!1,disableCloseOnSelect:T=!1,disabled:_=!1,disabledItemsFocusable:M=!1,disableListWrap:F=!1,disablePortal:B=!1,filterSelectedOptions:G=!1,forcePopupIcon:W="auto",freeSolo:H=!1,fullWidth:z=!1,getLimitTagsText:te=be=>`+${be}`,getOptionLabel:Z,groupBy:X,handleHomeEndKeys:N=!u.freeSolo,includeInputInList:Y=!1,limitTags:ce=-1,ListboxComponent:L="ul",ListboxProps:se,loading:Oe=!1,loadingText:ve="Loading…",multiple:xe=!1,noOptionsText:he="No options",openOnFocus:Me=!1,openText:de="Open",PaperComponent:ke=io,PopperComponent:Qe=Bc,popupIcon:He=ME||(ME=y.jsx(_E,{})),readOnly:Be=!1,renderGroup:Je,renderInput:ct,renderOption:ot,renderTags:ze,selectOnFocus:Ot=!u.freeSolo,size:Ze="medium",slotProps:$t={}}=u,gt=ge(u,FW),{getRootProps:dt,getInputProps:_t,getInputLabelProps:Pt,getPopupIndicatorProps:pt,getClearProps:Ft,getTagProps:Yt,getListboxProps:qt,getOptionProps:et,value:Pe,dirty:xt,expanded:Ht,id:fn,popupOpen:Ue,focused:ut,focusedTag:Re,anchorEl:We,setAnchorEl:ft,inputValue:yt,groupedOptions:bt}=V6(k({},u,{componentName:"Autocomplete"})),It=!$&&!_&&xt&&!Be,Mt=(!H||W===!0)&&W!==!1,{onMouseDown:Zt}=_t(),{ref:rn}=se??{},Qn=qt(),{ref:Hr}=Qn,Po=ge(Qn,BW),To=Gt(Hr,rn),Ln=Z||(be=>{var De;return(De=be.label)!=null?De:be}),on=k({},u,{disablePortal:B,expanded:Ht,focused:ut,fullWidth:z,getOptionLabel:Ln,hasClearIcon:It,hasPopupIcon:Mt,inputFocused:Re===-1,popupOpen:Ue,size:Ze}),Qt=WW(on);let D;if(xe&&Pe.length>0){const be=De=>k({className:Qt.tag,disabled:_},Yt(De));ze?D=ze(Pe,be,on):D=Pe.map((De,Ee)=>{const nt=be({index:Ee}),{key:At}=nt,fo=ge(nt,zW);return y.jsx(RW,k({label:Ln(De),size:Ze},fo,g),At)})}if(ce>-1&&Array.isArray(D)){const be=D.length-ce;!ut&&be>0&&(D=D.splice(0,ce),D.push(y.jsx("span",{className:Qt.tag,children:te(be)},D.length)))}const oe=Je||(be=>y.jsxs("li",{children:[y.jsx(ZW,{className:Qt.groupLabel,ownerState:on,component:"div",children:be.group}),y.jsx(e9,{className:Qt.groupUl,ownerState:on,children:be.children})]},be.key)),je=ot||((be,De)=>{const{key:Ee}=be,nt=ge(be,UW);return y.jsx("li",k({},nt,{children:Ln(De)}),Ee)}),Ke=(be,De)=>{const Ee=et({option:be,index:De});return je(k({},Ee,{className:Qt.option}),be,{selected:Ee["aria-selected"],index:De,inputValue:yt},on)},it=(r=$t.clearIndicator)!=null?r:O.clearIndicator,$e=(o=$t.paper)!=null?o:O.paper,st=(s=$t.popper)!=null?s:O.popper,Q=(l=$t.popupIndicator)!=null?l:O.popupIndicator,q=be=>y.jsx(qW,k({as:Qe,disablePortal:B,style:{width:We?We.clientWidth:null},ownerState:on,role:"presentation",anchorEl:We,open:Ue},st,{className:ye(Qt.popper,st==null?void 0:st.className),children:y.jsx(QW,k({ownerState:on,as:ke},$e,{className:ye(Qt.paper,$e==null?void 0:$e.className),children:be}))}));let we=null;return bt.length>0?we=q(y.jsx(JW,k({as:L,className:Qt.listbox,ownerState:on},Po,se,{ref:To,children:bt.map((be,De)=>X?oe({key:be.key,group:be.group,children:be.options.map((Ee,nt)=>Ke(Ee,be.index+nt))}):Ke(be,De))}))):Oe&&bt.length===0?we=q(y.jsx(YW,{className:Qt.loading,ownerState:on,children:ve})):bt.length===0&&!H&&!Oe&&(we=q(y.jsx(XW,{className:Qt.noOptions,ownerState:on,role:"presentation",onMouseDown:be=>{be.preventDefault()},children:he}))),y.jsxs(E.Fragment,{children:[y.jsx(HW,k({ref:n,className:ye(Qt.root,S),ownerState:on},dt(gt),{children:ct({id:fn,disabled:_,fullWidth:!0,size:Ze==="small"?"small":void 0,InputLabelProps:Pt(),InputProps:k({ref:ft,className:Qt.inputRoot,startAdornment:D,onClick:be=>{be.target===be.currentTarget&&Zt(be)}},(It||Mt)&&{endAdornment:y.jsxs(VW,{className:Qt.endAdornment,ownerState:on,children:[It?y.jsx(KW,k({},Ft(),{"aria-label":P,title:P,ownerState:on},it,{className:ye(Qt.clearIndicator,it==null?void 0:it.className),children:x})):null,Mt?y.jsx(GW,k({},pt(),{disabled:_,"aria-label":Ue?R:de,title:Ue?R:de,ownerState:on},Q,{className:ye(Qt.popupIndicator,Q==null?void 0:Q.className),children:He})):null]})}),inputProps:k({className:Qt.input,disabled:_,readOnly:Be},_t())})})),We?we:null]})}),n9=Rt(y.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function r9(e){return Ie("MuiAvatar",e)}Ne("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const o9=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],i9=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Le({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},r9,t)},s9=re("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:k({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:k({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),a9=re("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),l9=re(n9,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function c9({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,s]=E.useState(!1);return E.useEffect(()=>{if(!n&&!r)return;s(!1);let l=!0;const u=new Image;return u.onload=()=>{l&&s("loaded")},u.onerror=()=>{l&&s("error")},u.crossOrigin=e,u.referrerPolicy=t,u.src=n,r&&(u.srcset=r),()=>{l=!1}},[e,t,n,r]),o}const u9=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiAvatar"}),{alt:o,children:s,className:l,component:u="div",slots:c={},slotProps:f={},imgProps:p,sizes:m,src:g,srcSet:S,variant:x="circular"}=r,b=ge(r,o9);let w=null;const P=c9(k({},p,{src:g,srcSet:S})),R=g||S,O=R&&P!=="error",A=k({},r,{colorDefault:!O,component:u,variant:x}),$=i9(A),[T,_]=Rg("img",{className:$.img,elementType:a9,externalForwardedProps:{slots:c,slotProps:{img:k({},p,f.img)}},additionalProps:{alt:o,src:g,srcSet:S,sizes:m},ownerState:A});return O?w=y.jsx(T,k({},_)):s||s===0?w=s:R&&o?w=o[0]:w=y.jsx(l9,{ownerState:A,className:$.fallback}),y.jsx(s9,k({as:u,ownerState:A,className:ye($.root,l),ref:n},b,{children:w}))}),d9=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],f9={entering:{opacity:1},entered:{opacity:1}},NE=E.forwardRef(function(t,n){const r=xr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:u,easing:c,in:f,onEnter:p,onEntered:m,onEntering:g,onExit:S,onExited:x,onExiting:b,style:w,timeout:P=o,TransitionComponent:R=Lr}=t,O=ge(t,d9),A=E.useRef(null),$=Gt(A,u.ref,n),T=z=>te=>{if(z){const Z=A.current;te===void 0?z(Z):z(Z,te)}},_=T(g),M=T((z,te)=>{df(z);const Z=Vo({style:w,timeout:P,easing:c},{mode:"enter"});z.style.webkitTransition=r.transitions.create("opacity",Z),z.style.transition=r.transitions.create("opacity",Z),p&&p(z,te)}),F=T(m),B=T(b),G=T(z=>{const te=Vo({style:w,timeout:P,easing:c},{mode:"exit"});z.style.webkitTransition=r.transitions.create("opacity",te),z.style.transition=r.transitions.create("opacity",te),S&&S(z)}),W=T(x),H=z=>{s&&s(A.current,z)};return y.jsx(R,k({appear:l,in:f,nodeRef:A,onEnter:M,onEntered:F,onEntering:_,onExit:G,onExited:W,onExiting:B,addEndListener:H,timeout:P},O,{children:(z,te)=>E.cloneElement(u,k({style:k({opacity:0,visibility:z==="exited"&&!f?"hidden":void 0},f9[z],w,u.props.style),ref:$},te))}))});function p9(e){return Ie("MuiBackdrop",e)}Ne("MuiBackdrop",["root","invisible"]);const h9=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],m9=e=>{const{classes:t,invisible:n}=e;return Le({root:["root",n&&"invisible"]},p9,t)},g9=re("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>k({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),LE=E.forwardRef(function(t,n){var r,o,s;const l=Fe({props:t,name:"MuiBackdrop"}),{children:u,className:c,component:f="div",components:p={},componentsProps:m={},invisible:g=!1,open:S,slotProps:x={},slots:b={},TransitionComponent:w=NE,transitionDuration:P}=l,R=ge(l,h9),O=k({},l,{component:f,invisible:g}),A=m9(O),$=(r=x.root)!=null?r:m.root;return y.jsx(w,k({in:S,timeout:P},R,{children:y.jsx(g9,k({"aria-hidden":!0},$,{as:(o=(s=b.root)!=null?s:p.Root)!=null?o:f,className:ye(A.root,c,$==null?void 0:$.className),ownerState:k({},O,$==null?void 0:$.ownerState),classes:A,ref:n,children:u}))}))});function y9(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,s=lg({badgeContent:t,max:r});let l=n;n===!1&&t===0&&!o&&(l=!0);const{badgeContent:u,max:c=r}=l?s:e,f=u&&Number(u)>c?`${c}+`:u;return{badgeContent:u,invisible:l,max:c,displayValue:f}}function v9(e){return Ie("MuiBadge",e)}const Hi=Ne("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),b9=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Bg=10,zg=4,x9=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:s,classes:l={}}=e,u={root:["root"],badge:["badge",s,r&&"invisible",`anchorOrigin${ie(n.vertical)}${ie(n.horizontal)}`,`anchorOrigin${ie(n.vertical)}${ie(n.horizontal)}${ie(o)}`,`overlap${ie(o)}`,t!=="default"&&`color${ie(t)}`]};return Le(u,v9,l)},w9=re("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),S9=re("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${ie(n.anchorOrigin.vertical)}${ie(n.anchorOrigin.horizontal)}${ie(n.overlap)}`],n.color!=="default"&&t[`color${ie(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Bg*2,lineHeight:1,padding:"0 6px",height:Bg*2,borderRadius:Bg,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:zg,height:zg*2,minWidth:zg*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Hi.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Hi.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Hi.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Hi.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Hi.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Hi.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Hi.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Hi.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),Ug=E.forwardRef(function(t,n){var r,o,s,l,u,c;const f=Fe({props:t,name:"MuiBadge"}),{anchorOrigin:p={vertical:"top",horizontal:"right"},className:m,component:g,components:S={},componentsProps:x={},children:b,overlap:w="rectangular",color:P="default",invisible:R=!1,max:O=99,badgeContent:A,slots:$,slotProps:T,showZero:_=!1,variant:M="standard"}=f,F=ge(f,b9),{badgeContent:B,invisible:G,max:W,displayValue:H}=y9({max:O,invisible:R,badgeContent:A,showZero:_}),z=lg({anchorOrigin:p,color:P,overlap:w,variant:M,badgeContent:A}),te=G||B==null&&M!=="dot",{color:Z=P,overlap:X=w,anchorOrigin:N=p,variant:Y=M}=te?z:f,ce=Y!=="dot"?H:void 0,L=k({},f,{badgeContent:B,invisible:te,max:W,displayValue:ce,showZero:_,anchorOrigin:N,color:Z,overlap:X,variant:Y}),se=x9(L),Oe=(r=(o=$==null?void 0:$.root)!=null?o:S.Root)!=null?r:w9,ve=(s=(l=$==null?void 0:$.badge)!=null?l:S.Badge)!=null?s:S9,xe=(u=T==null?void 0:T.root)!=null?u:x.root,he=(c=T==null?void 0:T.badge)!=null?c:x.badge,Me=or({elementType:Oe,externalSlotProps:xe,externalForwardedProps:F,additionalProps:{ref:n,as:g},ownerState:L,className:ye(xe==null?void 0:xe.className,se.root,m)}),de=or({elementType:ve,externalSlotProps:he,ownerState:L,className:ye(se.badge,he==null?void 0:he.className)});return y.jsxs(Oe,k({},Me,{children:[b,y.jsx(ve,k({},de,{children:ce}))]}))}),C9=Ne("MuiBox",["root"]),E9=mg(),Eo=sz({themeId:Ea,defaultTheme:E9,defaultClassName:C9.root,generateClassName:ZS.generate}),R9=Rt(y.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),k9=["slots","slotProps"],P9=re(Dr)(({theme:e})=>k({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":k({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":k({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:of(e.palette.grey[200],.12)}:{backgroundColor:of(e.palette.grey[600],.12)})})),T9=re(R9)({width:24,height:16});function O9(e){const{slots:t={},slotProps:n={}}=e,r=ge(e,k9),o=e;return y.jsx("li",{children:y.jsx(P9,k({focusRipple:!0},r,{ownerState:o,children:y.jsx(T9,k({as:t.CollapsedIcon,ownerState:o},n.collapsedIcon))}))})}function $9(e){return Ie("MuiBreadcrumbs",e)}const A9=Ne("MuiBreadcrumbs",["root","ol","li","separator"]),j9=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],_9=e=>{const{classes:t}=e;return Le({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},$9,t)},I9=re(bn,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${A9.li}`]:t.li},t.root]})({}),M9=re("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),N9=re("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function L9(e,t,n,r){return e.reduce((o,s,l)=>(l<e.length-1?o=o.concat(s,y.jsx(N9,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${l}`)):o.push(s),o),[])}const D9=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiBreadcrumbs"}),{children:o,className:s,component:l="nav",slots:u={},slotProps:c={},expandText:f="Show path",itemsAfterCollapse:p=1,itemsBeforeCollapse:m=1,maxItems:g=8,separator:S="/"}=r,x=ge(r,j9),[b,w]=E.useState(!1),P=k({},r,{component:l,expanded:b,expandText:f,itemsAfterCollapse:p,itemsBeforeCollapse:m,maxItems:g,separator:S}),R=_9(P),O=or({elementType:u.CollapsedIcon,externalSlotProps:c.collapsedIcon,ownerState:P}),A=E.useRef(null),$=_=>{const M=()=>{w(!0);const F=A.current.querySelector("a[href],button,[tabindex]");F&&F.focus()};return m+p>=_.length?_:[..._.slice(0,m),y.jsx(O9,{"aria-label":f,slots:{CollapsedIcon:u.CollapsedIcon},slotProps:{collapsedIcon:O},onClick:M},"ellipsis"),..._.slice(_.length-p,_.length)]},T=E.Children.toArray(o).filter(_=>E.isValidElement(_)).map((_,M)=>y.jsx("li",{className:R.li,children:_},`child-${M}`));return y.jsx(I9,k({ref:n,component:l,color:"text.secondary",className:ye(R.root,s),ownerState:P},x,{children:y.jsx(M9,{className:R.ol,ref:A,ownerState:P,children:L9(b||g&&T.length<=g?T:$(T),R.separator,S,P)})}))});function F9(e){return Ie("MuiButton",e)}const Rf=Ne("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),DE=E.createContext({}),FE=E.createContext(void 0),B9=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],z9=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:s,classes:l}=e,u={root:["root",s,`${s}${ie(t)}`,`size${ie(o)}`,`${s}Size${ie(o)}`,`color${ie(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ie(o)}`],endIcon:["icon","endIcon",`iconSize${ie(o)}`]},c=Le(u,F9,l);return k({},l,c)},BE=e=>k({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),U9=re(Dr,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ie(n.color)}`],t[`size${ie(n.size)}`],t[`${n.variant}Size${ie(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],s=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return k({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":k({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":k({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Rf.focusVisible}`]:k({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Rf.disabled}`]:k({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${mt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Rf.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Rf.disabled}`]:{boxShadow:"none"}}),W9=re("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ie(n.size)}`]]}})(({ownerState:e})=>k({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},BE(e))),H9=re("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ie(n.size)}`]]}})(({ownerState:e})=>k({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},BE(e))),ir=E.forwardRef(function(t,n){const r=E.useContext(DE),o=E.useContext(FE),s=wc(r,t),l=Fe({props:s,name:"MuiButton"}),{children:u,color:c="primary",component:f="button",className:p,disabled:m=!1,disableElevation:g=!1,disableFocusRipple:S=!1,endIcon:x,focusVisibleClassName:b,fullWidth:w=!1,size:P="medium",startIcon:R,type:O,variant:A="text"}=l,$=ge(l,B9),T=k({},l,{color:c,component:f,disabled:m,disableElevation:g,disableFocusRipple:S,fullWidth:w,size:P,type:O,variant:A}),_=z9(T),M=R&&y.jsx(W9,{className:_.startIcon,ownerState:T,children:R}),F=x&&y.jsx(H9,{className:_.endIcon,ownerState:T,children:x}),B=o||"";return y.jsxs(U9,k({ownerState:T,className:ye(r.className,_.root,p,B),component:f,disabled:m,focusRipple:!S,focusVisibleClassName:ye(_.focusVisible,b),ref:n,type:O},$,{classes:_,children:[M,u,F]}))});function V9(e){return Ie("MuiButtonGroup",e)}const Hn=Ne("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),K9=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],G9=(e,t)=>{const{ownerState:n}=e;return[{[`& .${Hn.grouped}`]:t.grouped},{[`& .${Hn.grouped}`]:t[`grouped${ie(n.orientation)}`]},{[`& .${Hn.grouped}`]:t[`grouped${ie(n.variant)}`]},{[`& .${Hn.grouped}`]:t[`grouped${ie(n.variant)}${ie(n.orientation)}`]},{[`& .${Hn.grouped}`]:t[`grouped${ie(n.variant)}${ie(n.color)}`]},{[`& .${Hn.firstButton}`]:t.firstButton},{[`& .${Hn.lastButton}`]:t.lastButton},{[`& .${Hn.middleButton}`]:t.middleButton},t.root,t[n.variant],n.disableElevation===!0&&t.disableElevation,n.fullWidth&&t.fullWidth,n.orientation==="vertical"&&t.vertical]},q9=e=>{const{classes:t,color:n,disabled:r,disableElevation:o,fullWidth:s,orientation:l,variant:u}=e,c={root:["root",u,l==="vertical"&&"vertical",s&&"fullWidth",o&&"disableElevation"],grouped:["grouped",`grouped${ie(l)}`,`grouped${ie(u)}`,`grouped${ie(u)}${ie(l)}`,`grouped${ie(u)}${ie(n)}`,r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Le(c,V9,t)},Q9=re("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:G9})(({theme:e,ownerState:t})=>k({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[2]},t.disableElevation&&{boxShadow:"none"},t.fullWidth&&{width:"100%"},t.orientation==="vertical"&&{flexDirection:"column"},{[`& .${Hn.grouped}`]:k({minWidth:40,"&:hover":k({},t.variant==="contained"&&{boxShadow:"none"})},t.variant==="contained"&&{boxShadow:"none"}),[`& .${Hn.firstButton},& .${Hn.middleButton}`]:k({},t.orientation==="horizontal"&&{borderTopRightRadius:0,borderBottomRightRadius:0},t.orientation==="vertical"&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},t.variant==="text"&&t.orientation==="horizontal"&&{borderRight:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Hn.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="text"&&t.orientation==="vertical"&&{borderBottom:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Hn.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="text"&&t.color!=="inherit"&&{borderColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:mt(e.palette[t.color].main,.5)},t.variant==="outlined"&&t.orientation==="horizontal"&&{borderRightColor:"transparent"},t.variant==="outlined"&&t.orientation==="vertical"&&{borderBottomColor:"transparent"},t.variant==="contained"&&t.orientation==="horizontal"&&{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Hn.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="contained"&&t.orientation==="vertical"&&{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Hn.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}},t.variant==="contained"&&t.color!=="inherit"&&{borderColor:(e.vars||e).palette[t.color].dark},{"&:hover":k({},t.variant==="outlined"&&t.orientation==="horizontal"&&{borderRightColor:"currentColor"},t.variant==="outlined"&&t.orientation==="vertical"&&{borderBottomColor:"currentColor"})}),[`& .${Hn.lastButton},& .${Hn.middleButton}`]:k({},t.orientation==="horizontal"&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t.orientation==="vertical"&&{borderTopRightRadius:0,borderTopLeftRadius:0},t.variant==="outlined"&&t.orientation==="horizontal"&&{marginLeft:-1},t.variant==="outlined"&&t.orientation==="vertical"&&{marginTop:-1})})),Y9=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiButtonGroup"}),{children:o,className:s,color:l="primary",component:u="div",disabled:c=!1,disableElevation:f=!1,disableFocusRipple:p=!1,disableRipple:m=!1,fullWidth:g=!1,orientation:S="horizontal",size:x="medium",variant:b="outlined"}=r,w=ge(r,K9),P=k({},r,{color:l,component:u,disabled:c,disableElevation:f,disableFocusRipple:p,disableRipple:m,fullWidth:g,orientation:S,size:x,variant:b}),R=q9(P),O=E.useMemo(()=>({className:R.grouped,color:l,disabled:c,disableElevation:f,disableFocusRipple:p,disableRipple:m,fullWidth:g,size:x,variant:b}),[l,c,f,p,m,g,x,b,R.grouped]),A=Bz(o),$=A.length,T=_=>{const M=_===0,F=_===$-1;return M&&F?"":M?R.firstButton:F?R.lastButton:R.middleButton};return y.jsx(Q9,k({as:u,role:"group",className:ye(R.root,s),ref:n,ownerState:P},w,{children:y.jsx(DE.Provider,{value:O,children:A.map((_,M)=>y.jsx(FE.Provider,{value:T(M),children:_},M))})}))});function X9(e){return Ie("PrivateSwitchBase",e)}Ne("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const J9=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Z9=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,s={root:["root",n&&"checked",r&&"disabled",o&&`edge${ie(o)}`],input:["input"]};return Le(s,X9,t)},eH=re(Dr)(({ownerState:e})=>k({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),tH=re("input",{shouldForwardProp:Tn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Wg=E.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:s,className:l,defaultChecked:u,disabled:c,disableFocusRipple:f=!1,edge:p=!1,icon:m,id:g,inputProps:S,inputRef:x,name:b,onBlur:w,onChange:P,onFocus:R,readOnly:O,required:A=!1,tabIndex:$,type:T,value:_}=t,M=ge(t,J9),[F,B]=pi({controlled:o,default:!!u,name:"SwitchBase",state:"checked"}),G=yi(),W=Y=>{R&&R(Y),G&&G.onFocus&&G.onFocus(Y)},H=Y=>{w&&w(Y),G&&G.onBlur&&G.onBlur(Y)},z=Y=>{if(Y.nativeEvent.defaultPrevented)return;const ce=Y.target.checked;B(ce),P&&P(Y,ce)};let te=c;G&&typeof te>"u"&&(te=G.disabled);const Z=T==="checkbox"||T==="radio",X=k({},t,{checked:F,disabled:te,disableFocusRipple:f,edge:p}),N=Z9(X);return y.jsxs(eH,k({component:"span",className:ye(N.root,l),centerRipple:!0,focusRipple:!f,disabled:te,tabIndex:null,role:void 0,onFocus:W,onBlur:H,ownerState:X,ref:n},M,{children:[y.jsx(tH,k({autoFocus:r,checked:o,defaultChecked:u,className:N.input,disabled:te,id:Z?g:void 0,name:b,onChange:z,readOnly:O,ref:x,required:A,ownerState:X,tabIndex:$,type:T},T==="checkbox"&&_===void 0?{}:{value:_},S)),F?s:m]}))}),nH=Rt(y.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),rH=Rt(y.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),oH=Rt(y.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function iH(e){return Ie("MuiCheckbox",e)}const Hg=Ne("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),sH=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],aH=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,s={root:["root",n&&"indeterminate",`color${ie(r)}`,`size${ie(o)}`]},l=Le(s,iH,t);return k({},t,l)},lH=re(Wg,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ie(n.size)}`],n.color!=="default"&&t[`color${ie(n.color)}`]]}})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Hg.checked}, &.${Hg.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Hg.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),cH=y.jsx(rH,{}),uH=y.jsx(nH,{}),dH=y.jsx(oH,{}),Vg=E.forwardRef(function(t,n){var r,o;const s=Fe({props:t,name:"MuiCheckbox"}),{checkedIcon:l=cH,color:u="primary",icon:c=uH,indeterminate:f=!1,indeterminateIcon:p=dH,inputProps:m,size:g="medium",className:S}=s,x=ge(s,sH),b=f?p:c,w=f?p:l,P=k({},s,{color:u,indeterminate:f,size:g}),R=aH(P);return y.jsx(lH,k({type:"checkbox",inputProps:k({"data-indeterminate":f},m),icon:E.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:g}),checkedIcon:E.cloneElement(w,{fontSize:(o=w.props.fontSize)!=null?o:g}),ownerState:P,ref:n,className:ye(R.root,S)},x,{classes:R}))});function fH(e){return Ie("MuiCircularProgress",e)}Ne("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const pH=["className","color","disableShrink","size","style","thickness","value","variant"];let kf=e=>e,zE,UE,WE,HE;const Vi=44,hH=Bi(zE||(zE=kf`
|
|
97
97
|
0% {
|
|
98
98
|
transform: rotate(0deg);
|
|
99
99
|
}
|
|
@@ -120,7 +120,7 @@ Error generating stack: `+C.message+`
|
|
|
120
120
|
animation: ${0} 1.4s linear infinite;
|
|
121
121
|
`),hH)),vH=re("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),bH=re("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ie(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>k({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Ta(HE||(HE=kf`
|
|
122
122
|
animation: ${0} 1.4s ease-in-out infinite;
|
|
123
|
-
`),mH)),xH=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:l=!1,size:u=40,style:c,thickness:f=3.6,value:p=0,variant:m="indeterminate"}=r,g=ge(r,pH),S=k({},r,{color:s,disableShrink:l,size:u,thickness:f,value:p,variant:m}),x=gH(S),b={},w={},P={};if(m==="determinate"){const R=2*Math.PI*((Vi-f)/2);b.strokeDasharray=R.toFixed(3),P["aria-valuenow"]=Math.round(p),b.strokeDashoffset=`${((100-p)/100*R).toFixed(3)}px`,w.transform="rotate(-90deg)"}return y.jsx(yH,k({className:ye(x.root,o),style:k({width:u,height:u},w,c),ownerState:S,ref:n,role:"progressbar"},P,g,{children:y.jsx(vH,{className:x.svg,ownerState:S,viewBox:`${Vi/2} ${Vi/2} ${Vi} ${Vi}`,children:y.jsx(bH,{className:x.circle,style:b,ownerState:S,cx:Vi,cy:Vi,r:(Vi-f)/2,fill:"none",strokeWidth:f})})}))});function VE(e){return e.substring(2).toLowerCase()}function wH(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function KE(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:s="onTouchEnd"}=e,l=E.useRef(!1),u=E.useRef(null),c=E.useRef(!1),f=E.useRef(!1);E.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const p=Gt(t.ref,u),m=Nn(x=>{const b=f.current;f.current=!1;const w=An(u.current);if(!c.current||!u.current||"clientX"in x&&wH(x,w))return;if(l.current){l.current=!1;return}let P;x.composedPath?P=x.composedPath().indexOf(u.current)>-1:P=!w.documentElement.contains(x.target)||u.current.contains(x.target),!P&&(n||!b)&&o(x)}),g=x=>b=>{f.current=!0;const w=t.props[x];w&&w(b)},S={ref:p};return s!==!1&&(S[s]=g(s)),E.useEffect(()=>{if(s!==!1){const x=VE(s),b=An(u.current),w=()=>{l.current=!0};return b.addEventListener(x,m),b.addEventListener("touchmove",w),()=>{b.removeEventListener(x,m),b.removeEventListener("touchmove",w)}}},[m,s]),r!==!1&&(S[r]=g(r)),E.useEffect(()=>{if(r!==!1){const x=VE(r),b=An(u.current);return b.addEventListener(x,m),()=>{b.removeEventListener(x,m)}}},[m,r]),y.jsx(E.Fragment,{children:E.cloneElement(t,S)})}const SH=(e,t)=>k({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),CH=e=>k({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),EH=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([l,u])=>{var c;r[e.getColorSchemeSelector(l).replace(/\s*&/,"")]={colorScheme:(c=u.palette)==null?void 0:c.mode}});let o=k({html:SH(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:k({margin:0},CH(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const s=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return s&&(o=[o,s]),o};function RH(e){const t=Fe({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return y.jsxs(E.Fragment,{children:[y.jsx(AE,{styles:o=>EH(o,r)}),n]})}function kH(e){const t=An(e);return t.body===e?Co(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function zc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function GE(e){return parseInt(Co(e).getComputedStyle(e).paddingRight,10)||0}function PH(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function qE(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,l=>{const u=s.indexOf(l)===-1,c=!PH(l);u&&c&&zc(l,o)})}function Kg(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function TH(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(kH(r)){const l=mC(An(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${GE(r)+l}px`;const u=An(r).querySelectorAll(".mui-fixed");[].forEach.call(u,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${GE(c)+l}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=An(r).body;else{const l=r.parentElement,u=Co(r);s=(l==null?void 0:l.nodeName)==="HTML"&&u.getComputedStyle(l).overflowY==="scroll"?l:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:l,property:u})=>{s?l.style.setProperty(u,s):l.style.removeProperty(u)})}}function OH(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class $H{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&zc(t.modalRef,!1);const o=OH(n);qE(n,t.mount,t.modalRef,o,!0);const s=Kg(this.containers,l=>l.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Kg(this.containers,s=>s.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=TH(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Kg(this.containers,l=>l.modals.indexOf(t)!==-1),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&zc(t.modalRef,n),qE(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const l=s.modals[s.modals.length-1];l.modalRef&&zc(l.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const AH=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function jH(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function _H(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function IH(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||_H(e))}function MH(e){const t=[],n=[];return Array.from(e.querySelectorAll(AH)).forEach((r,o)=>{const s=jH(r);s===-1||!IH(r)||(s===0?t.push(r):n.push({documentOrder:o,tabIndex:s,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function NH(){return!0}function LH(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=MH,isEnabled:l=NH,open:u}=e,c=E.useRef(!1),f=E.useRef(null),p=E.useRef(null),m=E.useRef(null),g=E.useRef(null),S=E.useRef(!1),x=E.useRef(null),b=Gt(t.ref,x),w=E.useRef(null);E.useEffect(()=>{!u||!x.current||(S.current=!n)},[n,u]),E.useEffect(()=>{if(!u||!x.current)return;const O=An(x.current);return x.current.contains(O.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),S.current&&x.current.focus()),()=>{o||(m.current&&m.current.focus&&(c.current=!0,m.current.focus()),m.current=null)}},[u]),E.useEffect(()=>{if(!u||!x.current)return;const O=An(x.current),A=_=>{w.current=_,!(r||!l()||_.key!=="Tab")&&O.activeElement===x.current&&_.shiftKey&&(c.current=!0,p.current&&p.current.focus())},$=()=>{const _=x.current;if(_===null)return;if(!O.hasFocus()||!l()||c.current){c.current=!1;return}if(_.contains(O.activeElement)||r&&O.activeElement!==f.current&&O.activeElement!==p.current)return;if(O.activeElement!==g.current)g.current=null;else if(g.current!==null)return;if(!S.current)return;let M=[];if((O.activeElement===f.current||O.activeElement===p.current)&&(M=s(x.current)),M.length>0){var F,B;const G=!!((F=w.current)!=null&&F.shiftKey&&((B=w.current)==null?void 0:B.key)==="Tab"),W=M[0],H=M[M.length-1];typeof W!="string"&&typeof H!="string"&&(G?H.focus():W.focus())}else _.focus()};O.addEventListener("focusin",$),O.addEventListener("keydown",A,!0);const T=setInterval(()=>{O.activeElement&&O.activeElement.tagName==="BODY"&&$()},50);return()=>{clearInterval(T),O.removeEventListener("focusin",$),O.removeEventListener("keydown",A,!0)}},[n,r,o,l,u,s]);const P=O=>{m.current===null&&(m.current=O.relatedTarget),S.current=!0,g.current=O.target;const A=t.props.onFocus;A&&A(O)},R=O=>{m.current===null&&(m.current=O.relatedTarget),S.current=!0};return y.jsxs(E.Fragment,{children:[y.jsx("div",{tabIndex:u?0:-1,onFocus:R,ref:f,"data-testid":"sentinelStart"}),E.cloneElement(t,{ref:b,onFocus:P}),y.jsx("div",{tabIndex:u?0:-1,onFocus:R,ref:p,"data-testid":"sentinelEnd"})]})}function DH(e){return typeof e=="function"?e():e}function FH(e){return e?e.props.hasOwnProperty("in"):!1}const BH=new $H;function zH(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=BH,closeAfterTransition:s=!1,onTransitionEnter:l,onTransitionExited:u,children:c,onClose:f,open:p,rootRef:m}=e,g=E.useRef({}),S=E.useRef(null),x=E.useRef(null),b=Gt(x,m),[w,P]=E.useState(!p),R=FH(c);let O=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(O=!1);const A=()=>An(S.current),$=()=>(g.current.modalRef=x.current,g.current.mount=S.current,g.current),T=()=>{o.mount($(),{disableScrollLock:r}),x.current&&(x.current.scrollTop=0)},_=Nn(()=>{const Z=DH(t)||A().body;o.add($(),Z),x.current&&T()}),M=E.useCallback(()=>o.isTopModal($()),[o]),F=Nn(Z=>{S.current=Z,Z&&(p&&M()?T():x.current&&zc(x.current,O))}),B=E.useCallback(()=>{o.remove($(),O)},[O,o]);E.useEffect(()=>()=>{B()},[B]),E.useEffect(()=>{p?_():(!R||!s)&&B()},[p,B,R,s,_]);const G=Z=>X=>{var N;(N=Z.onKeyDown)==null||N.call(Z,X),!(X.key!=="Escape"||X.which===229||!M())&&(n||(X.stopPropagation(),f&&f(X,"escapeKeyDown")))},W=Z=>X=>{var N;(N=Z.onClick)==null||N.call(Z,X),X.target===X.currentTarget&&f&&f(X,"backdropClick")};return{getRootProps:(Z={})=>{const X=rf(e);delete X.onTransitionEnter,delete X.onTransitionExited;const N=k({},X,Z);return k({role:"presentation"},N,{onKeyDown:G(N),ref:b})},getBackdropProps:(Z={})=>{const X=Z;return k({"aria-hidden":!0},X,{onClick:W(X),open:p})},getTransitionProps:()=>{const Z=()=>{P(!1),l&&l()},X=()=>{P(!0),u&&u(),s&&B()};return{onEnter:og(Z,c==null?void 0:c.props.onEnter),onExited:og(X,c==null?void 0:c.props.onExited)}},rootRef:b,portalRef:F,isTopModal:M,exited:w,hasTransition:R}}function UH(e){return Ie("MuiModal",e)}Ne("MuiModal",["root","hidden","backdrop"]);const WH=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],HH=e=>{const{open:t,exited:n,classes:r}=e;return Le({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},UH,r)},VH=re("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>k({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),KH=re(LE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Gg=E.forwardRef(function(t,n){var r,o,s,l,u,c;const f=Fe({name:"MuiModal",props:t}),{BackdropComponent:p=KH,BackdropProps:m,className:g,closeAfterTransition:S=!1,children:x,container:b,component:w,components:P={},componentsProps:R={},disableAutoFocus:O=!1,disableEnforceFocus:A=!1,disableEscapeKeyDown:$=!1,disablePortal:T=!1,disableRestoreFocus:_=!1,disableScrollLock:M=!1,hideBackdrop:F=!1,keepMounted:B=!1,onBackdropClick:G,open:W,slotProps:H,slots:z}=f,te=ge(f,WH),Z=k({},f,{closeAfterTransition:S,disableAutoFocus:O,disableEnforceFocus:A,disableEscapeKeyDown:$,disablePortal:T,disableRestoreFocus:_,disableScrollLock:M,hideBackdrop:F,keepMounted:B}),{getRootProps:X,getBackdropProps:N,getTransitionProps:Y,portalRef:ce,isTopModal:L,exited:se,hasTransition:Oe}=zH(k({},Z,{rootRef:n})),ve=k({},Z,{exited:se}),xe=HH(ve),he={};if(x.props.tabIndex===void 0&&(he.tabIndex="-1"),Oe){const{onEnter:Je,onExited:ct}=Y();he.onEnter=Je,he.onExited=ct}const Me=(r=(o=z==null?void 0:z.root)!=null?o:P.Root)!=null?r:VH,de=(s=(l=z==null?void 0:z.backdrop)!=null?l:P.Backdrop)!=null?s:p,ke=(u=H==null?void 0:H.root)!=null?u:R.root,Qe=(c=H==null?void 0:H.backdrop)!=null?c:R.backdrop,He=or({elementType:Me,externalSlotProps:ke,externalForwardedProps:te,getSlotProps:X,additionalProps:{ref:n,as:w},ownerState:ve,className:ye(g,ke==null?void 0:ke.className,xe==null?void 0:xe.root,!ve.open&&ve.exited&&(xe==null?void 0:xe.hidden))}),Be=or({elementType:de,externalSlotProps:Qe,additionalProps:m,getSlotProps:Je=>N(k({},Je,{onClick:ct=>{G&&G(ct),Je!=null&&Je.onClick&&Je.onClick(ct)}})),className:ye(Qe==null?void 0:Qe.className,m==null?void 0:m.className,xe==null?void 0:xe.backdrop),ownerState:ve});return!B&&!W&&(!Oe||se)?null:y.jsx(TE,{ref:ce,container:b,disablePortal:T,children:y.jsxs(Me,k({},He,{children:[!F&&p?y.jsx(de,k({},Be)):null,y.jsx(LH,{disableEnforceFocus:A,disableAutoFocus:O,disableRestoreFocus:_,isEnabled:L,open:W,children:E.cloneElement(x,he)})]}))})});function GH(e){return Ie("MuiDialog",e)}const qg=Ne("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),QE=E.createContext({}),qH=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],QH=re(LE,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),YH=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,l={root:["root"],container:["container",`scroll${ie(n)}`],paper:["paper",`paperScroll${ie(n)}`,`paperWidth${ie(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return Le(l,GH,t)},XH=re(Gg,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),JH=re("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ie(n.scroll)}`]]}})(({ownerState:e})=>k({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),ZH=re(oo,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ie(n.scroll)}`],t[`paperWidth${ie(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>k({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${qg.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${qg.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${qg.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Qg=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialog"}),o=xr(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":l,"aria-labelledby":u,BackdropComponent:c,BackdropProps:f,children:p,className:m,disableEscapeKeyDown:g=!1,fullScreen:S=!1,fullWidth:x=!1,maxWidth:b="sm",onBackdropClick:w,onClick:P,onClose:R,open:O,PaperComponent:A=oo,PaperProps:$={},scroll:T="paper",TransitionComponent:_=NE,transitionDuration:M=s,TransitionProps:F}=r,B=ge(r,qH),G=k({},r,{disableEscapeKeyDown:g,fullScreen:S,fullWidth:x,maxWidth:b,scroll:T}),W=YH(G),H=E.useRef(),z=N=>{H.current=N.target===N.currentTarget},te=N=>{P&&P(N),H.current&&(H.current=null,w&&w(N),R&&R(N,"backdropClick"))},Z=Ia(u),X=E.useMemo(()=>({titleId:Z}),[Z]);return y.jsx(XH,k({className:ye(W.root,m),closeAfterTransition:!0,components:{Backdrop:QH},componentsProps:{backdrop:k({transitionDuration:M,as:c},f)},disableEscapeKeyDown:g,onClose:R,open:O,ref:n,onClick:te,ownerState:G},B,{children:y.jsx(_,k({appear:!0,in:O,timeout:M,role:"presentation"},F,{children:y.jsx(JH,{className:ye(W.container),onMouseDown:z,ownerState:G,children:y.jsx(ZH,k({as:A,elevation:24,role:"dialog","aria-describedby":l,"aria-labelledby":Z},$,{className:ye(W.paper,$.className),ownerState:G,children:y.jsx(QE.Provider,{value:X,children:p})}))})}))}))});function e7(e){return Ie("MuiDialogActions",e)}Ne("MuiDialogActions",["root","spacing"]);const t7=["className","disableSpacing"],n7=e=>{const{classes:t,disableSpacing:n}=e;return Le({root:["root",!n&&"spacing"]},e7,t)},r7=re("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>k({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Yg=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1}=r,l=ge(r,t7),u=k({},r,{disableSpacing:s}),c=n7(u);return y.jsx(r7,k({className:ye(c.root,o),ownerState:u,ref:n},l))});function o7(e){return Ie("MuiDialogContent",e)}Ne("MuiDialogContent",["root","dividers"]);function i7(e){return Ie("MuiDialogTitle",e)}const s7=Ne("MuiDialogTitle",["root"]),a7=["className","dividers"],l7=e=>{const{classes:t,dividers:n}=e;return Le({root:["root",n&&"dividers"]},o7,t)},c7=re("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>k({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${s7.root} + &`]:{paddingTop:0}})),Xg=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1}=r,l=ge(r,a7),u=k({},r,{dividers:s}),c=l7(u);return y.jsx(c7,k({className:ye(c.root,o),ownerState:u,ref:n},l))});function u7(e){return Ie("MuiDialogContentText",e)}Ne("MuiDialogContentText",["root"]);const d7=["children","className"],f7=e=>{const{classes:t}=e,r=Le({root:["root"]},u7,t);return k({},t,r)},p7=re(bn,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),h7=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogContentText"}),{className:o}=r,s=ge(r,d7),l=f7(s);return y.jsx(p7,k({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:s,className:ye(l.root,o)},r,{classes:l}))}),m7=["className","id"],g7=e=>{const{classes:t}=e;return Le({root:["root"]},i7,t)},y7=re(bn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Jg=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogTitle"}),{className:o,id:s}=r,l=ge(r,m7),u=r,c=g7(u),{titleId:f=s}=E.useContext(QE);return y.jsx(y7,k({component:"h2",className:ye(c.root,o),ownerState:u,ref:n,variant:"h6",id:s??f},l))});function v7(e){return Ie("MuiDivider",e)}const YE=Ne("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),b7=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],x7=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:s,orientation:l,textAlign:u,variant:c}=e;return Le({root:["root",t&&"absolute",c,s&&"light",l==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&l==="vertical"&&"withChildrenVertical",u==="right"&&l!=="vertical"&&"textAlignRight",u==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},v7,r)},w7=re("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>k({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:mt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>k({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>k({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>k({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>k({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),S7=re("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>k({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Uc=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDivider"}),{absolute:o=!1,children:s,className:l,component:u=s?"div":"hr",flexItem:c=!1,light:f=!1,orientation:p="horizontal",role:m=u!=="hr"?"separator":void 0,textAlign:g="center",variant:S="fullWidth"}=r,x=ge(r,b7),b=k({},r,{absolute:o,component:u,flexItem:c,light:f,orientation:p,role:m,textAlign:g,variant:S}),w=x7(b);return y.jsx(w7,k({as:u,className:ye(w.root,l),role:m,ref:n,ownerState:b},x,{children:s?y.jsx(S7,{className:w.wrapper,ownerState:b,children:s}):null}))});Uc.muiSkipListHighlight=!0;const C7=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function E7(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),s=Co(t);let l;if(t.fakeTransform)l=t.fakeTransform;else{const f=s.getComputedStyle(t);l=f.getPropertyValue("-webkit-transform")||f.getPropertyValue("transform")}let u=0,c=0;if(l&&l!=="none"&&typeof l=="string"){const f=l.split("(")[1].split(")")[0].split(",");u=parseInt(f[4],10),c=parseInt(f[5],10)}return e==="left"?o?`translateX(${o.right+u-r.left}px)`:`translateX(${s.innerWidth+u-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-u}px)`:`translateX(-${r.left+r.width-u}px)`:e==="up"?o?`translateY(${o.bottom+c-r.top}px)`:`translateY(${s.innerHeight+c-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-c}px)`:`translateY(-${r.top+r.height-c}px)`}function R7(e){return typeof e=="function"?e():e}function Pf(e,t,n){const r=R7(n),o=E7(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const k7=E.forwardRef(function(t,n){const r=xr(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:l,appear:u=!0,children:c,container:f,direction:p="down",easing:m=o,in:g,onEnter:S,onEntered:x,onEntering:b,onExit:w,onExited:P,onExiting:R,style:O,timeout:A=s,TransitionComponent:$=Lr}=t,T=ge(t,C7),_=E.useRef(null),M=Gt(c.ref,_,n),F=N=>Y=>{N&&(Y===void 0?N(_.current):N(_.current,Y))},B=F((N,Y)=>{Pf(p,N,f),df(N),S&&S(N,Y)}),G=F((N,Y)=>{const ce=Vo({timeout:A,style:O,easing:m},{mode:"enter"});N.style.webkitTransition=r.transitions.create("-webkit-transform",k({},ce)),N.style.transition=r.transitions.create("transform",k({},ce)),N.style.webkitTransform="none",N.style.transform="none",b&&b(N,Y)}),W=F(x),H=F(R),z=F(N=>{const Y=Vo({timeout:A,style:O,easing:m},{mode:"exit"});N.style.webkitTransition=r.transitions.create("-webkit-transform",Y),N.style.transition=r.transitions.create("transform",Y),Pf(p,N,f),w&&w(N)}),te=F(N=>{N.style.webkitTransition="",N.style.transition="",P&&P(N)}),Z=N=>{l&&l(_.current,N)},X=E.useCallback(()=>{_.current&&Pf(p,_.current,f)},[p,f]);return E.useEffect(()=>{if(g||p==="down"||p==="right")return;const N=Sc(()=>{_.current&&Pf(p,_.current,f)}),Y=Co(_.current);return Y.addEventListener("resize",N),()=>{N.clear(),Y.removeEventListener("resize",N)}},[p,g,f]),E.useEffect(()=>{g||X()},[g,X]),y.jsx($,k({nodeRef:_,onEnter:B,onEntered:W,onEntering:G,onExit:z,onExited:te,onExiting:H,addEndListener:Z,appear:u,in:g,timeout:A},T,{children:(N,Y)=>E.cloneElement(c,k({ref:M,style:k({visibility:N==="exited"&&!g?"hidden":void 0},O,c.props.style)},Y))}))});function P7(e){return Ie("MuiDrawer",e)}Ne("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const T7=["BackdropProps"],O7=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],XE=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},$7=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ie(n)}`,r!=="temporary"&&`paperAnchorDocked${ie(n)}`]};return Le(o,P7,t)},A7=re(Gg,{name:"MuiDrawer",slot:"Root",overridesResolver:XE})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),JE=re("div",{shouldForwardProp:Tn,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:XE})({flex:"0 0 auto"}),j7=re(oo,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${ie(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${ie(n.anchor)}`]]}})(({theme:e,ownerState:t})=>k({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),ZE={left:"right",right:"left",top:"down",bottom:"up"};function _7(e){return["left","right"].indexOf(e)!==-1}function I7({direction:e},t){return e==="rtl"&&_7(t)?ZE[t]:t}const eR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDrawer"}),o=xr(),s=Ec(),l={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:u="left",BackdropProps:c,children:f,className:p,elevation:m=16,hideBackdrop:g=!1,ModalProps:{BackdropProps:S}={},onClose:x,open:b=!1,PaperProps:w={},SlideProps:P,TransitionComponent:R=k7,transitionDuration:O=l,variant:A="temporary"}=r,$=ge(r.ModalProps,T7),T=ge(r,O7),_=E.useRef(!1);E.useEffect(()=>{_.current=!0},[]);const M=I7({direction:s?"rtl":"ltr"},u),B=k({},r,{anchor:u,elevation:m,open:b,variant:A},T),G=$7(B),W=y.jsx(j7,k({elevation:A==="temporary"?m:0,square:!0},w,{className:ye(G.paper,w.className),ownerState:B,children:f}));if(A==="permanent")return y.jsx(JE,k({className:ye(G.root,G.docked,p),ownerState:B,ref:n},T,{children:W}));const H=y.jsx(R,k({in:b,direction:ZE[M],timeout:O,appear:_.current},P,{children:W}));return A==="persistent"?y.jsx(JE,k({className:ye(G.root,G.docked,p),ownerState:B,ref:n},T,{children:H})):y.jsx(A7,k({BackdropProps:k({},c,S,{transitionDuration:O}),className:ye(G.root,G.modal,p),open:b,ownerState:B,onClose:x,hideBackdrop:g,ref:n},T,$,{children:H}))});function M7(e){return Ie("MuiFab",e)}const tR=Ne("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),N7=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],L7=e=>{const{color:t,variant:n,classes:r,size:o}=e,s={root:["root",n,`size${ie(o)}`,t==="inherit"?"colorInherit":t]},l=Le(s,M7,r);return k({},r,l)},D7=re(Dr,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Tn(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ie(n.size)}`],n.color==="inherit"&&t.colorInherit,t[ie(n.size)],t[n.color]]}})(({theme:e,ownerState:t})=>{var n,r;return k({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${tR.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>k({},t.color!=="inherit"&&t.color!=="default"&&(e.vars||e).palette[t.color]!=null&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}}),({theme:e})=>({[`&.${tR.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),Zg=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFab"}),{children:o,className:s,color:l="default",component:u="button",disabled:c=!1,disableFocusRipple:f=!1,focusVisibleClassName:p,size:m="large",variant:g="circular"}=r,S=ge(r,N7),x=k({},r,{color:l,component:u,disabled:c,disableFocusRipple:f,size:m,variant:g}),b=L7(x);return y.jsx(D7,k({className:ye(b.root,s),component:u,disabled:c,focusRipple:!f,focusVisibleClassName:ye(b.focusVisible,p),ownerState:x,ref:n},S,{classes:b,children:o}))}),F7=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],B7=e=>{const{classes:t,disableUnderline:n}=e,o=Le({root:["root",!n&&"underline"],input:["input"]},LW,t);return k({},t,o)},z7=re(Cf,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...wf(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",l=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",u=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return k({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:l,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s}},[`&.${zr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s},[`&.${zr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:u}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${zr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${zr.disabled}, .${zr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${zr.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&k({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),U7=re(Ef,{name:"MuiFilledInput",slot:"Input",overridesResolver:Sf})(({theme:e,ownerState:t})=>k({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),ey=E.forwardRef(function(t,n){var r,o,s,l;const u=Fe({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:f,fullWidth:p=!1,inputComponent:m="input",multiline:g=!1,slotProps:S,slots:x={},type:b="text"}=u,w=ge(u,F7),P=k({},u,{fullWidth:p,inputComponent:m,multiline:g,type:b}),R=B7(u),O={root:{ownerState:P},input:{ownerState:P}},A=S??f?rr(O,S??f):O,$=(r=(o=x.root)!=null?o:c.Root)!=null?r:z7,T=(s=(l=x.input)!=null?l:c.Input)!=null?s:U7;return y.jsx(Fg,k({slots:{root:$,input:T},componentsProps:A,fullWidth:p,inputComponent:m,multiline:g,ref:n,type:b},w,{classes:R}))});ey.muiName="Input";function W7(e){return Ie("MuiFormControl",e)}Ne("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const H7=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],V7=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ie(n)}`,r&&"fullWidth"]};return Le(o,W7,t)},K7=re("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>k({},t.root,t[`margin${ie(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>k({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Tf=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormControl"}),{children:o,className:s,color:l="primary",component:u="div",disabled:c=!1,error:f=!1,focused:p,fullWidth:m=!1,hiddenLabel:g=!1,margin:S="none",required:x=!1,size:b="medium",variant:w="outlined"}=r,P=ge(r,H7),R=k({},r,{color:l,component:u,disabled:c,error:f,fullWidth:m,hiddenLabel:g,margin:S,required:x,size:b,variant:w}),O=V7(R),[A,$]=E.useState(()=>{let H=!1;return o&&E.Children.forEach(o,z=>{if(!_a(z,["Input","Select"]))return;const te=_a(z,["Select"])?z.props.input:z;te&&$W(te.props)&&(H=!0)}),H}),[T,_]=E.useState(()=>{let H=!1;return o&&E.Children.forEach(o,z=>{_a(z,["Input","Select"])&&(xf(z.props,!0)||xf(z.props.inputProps,!0))&&(H=!0)}),H}),[M,F]=E.useState(!1);c&&M&&F(!1);const B=p!==void 0&&!c?p:M;let G;const W=E.useMemo(()=>({adornedStart:A,setAdornedStart:$,color:l,disabled:c,error:f,filled:T,focused:B,fullWidth:m,hiddenLabel:g,size:b,onBlur:()=>{F(!1)},onEmpty:()=>{_(!1)},onFilled:()=>{_(!0)},onFocus:()=>{F(!0)},registerEffect:G,required:x,variant:w}),[A,l,c,f,T,B,m,g,G,x,b,w]);return y.jsx(Dg.Provider,{value:W,children:y.jsx(K7,k({as:u,ownerState:R,className:ye(O.root,s),ref:n},P,{children:o}))})}),sr=x3({createStyledComponent:re("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Fe({props:e,name:"MuiStack"})});function G7(e){return Ie("MuiFormControlLabel",e)}const Wc=Ne("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),q7=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Q7=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:s}=e,l={root:["root",n&&"disabled",`labelPlacement${ie(r)}`,o&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Le(l,G7,t)},Y7=re("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Wc.label}`]:t.label},t.root,t[`labelPlacement${ie(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>k({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Wc.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Wc.label}`]:{[`&.${Wc.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),X7=re("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Wc.error}`]:{color:(e.vars||e).palette.error.main}})),ty=E.forwardRef(function(t,n){var r,o;const s=Fe({props:t,name:"MuiFormControlLabel"}),{className:l,componentsProps:u={},control:c,disabled:f,disableTypography:p,label:m,labelPlacement:g="end",required:S,slotProps:x={}}=s,b=ge(s,q7),w=yi(),P=(r=f??c.props.disabled)!=null?r:w==null?void 0:w.disabled,R=S??c.props.required,O={disabled:P,required:R};["checked","name","onChange","value","inputRef"].forEach(F=>{typeof c.props[F]>"u"&&typeof s[F]<"u"&&(O[F]=s[F])});const A=Ui({props:s,muiFormControl:w,states:["error"]}),$=k({},s,{disabled:P,labelPlacement:g,required:R,error:A.error}),T=Q7($),_=(o=x.typography)!=null?o:u.typography;let M=m;return M!=null&&M.type!==bn&&!p&&(M=y.jsx(bn,k({component:"span"},_,{className:ye(T.label,_==null?void 0:_.className),children:M}))),y.jsxs(Y7,k({className:ye(T.root,l),ownerState:$,ref:n},b,{children:[E.cloneElement(c,O),R?y.jsxs(sr,{display:"block",children:[M,y.jsxs(X7,{ownerState:$,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]}):M]}))});function J7(e){return Ie("MuiFormGroup",e)}Ne("MuiFormGroup",["root","row","error"]);const Z7=["className","row"],eV=e=>{const{classes:t,row:n,error:r}=e;return Le({root:["root",n&&"row",r&&"error"]},J7,t)},tV=re("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>k({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),nV=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormGroup"}),{className:o,row:s=!1}=r,l=ge(r,Z7),u=yi(),c=Ui({props:r,muiFormControl:u,states:["error"]}),f=k({},r,{row:s,error:c.error}),p=eV(f);return y.jsx(tV,k({className:ye(p.root,o),ownerState:f,ref:n},l))});function rV(e){return Ie("MuiFormHelperText",e)}const nR=Ne("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var rR;const oV=["children","className","component","disabled","error","filled","focused","margin","required","variant"],iV=e=>{const{classes:t,contained:n,size:r,disabled:o,error:s,filled:l,focused:u,required:c}=e,f={root:["root",o&&"disabled",s&&"error",r&&`size${ie(r)}`,n&&"contained",u&&"focused",l&&"filled",c&&"required"]};return Le(f,rV,t)},sV=re("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ie(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${nR.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${nR.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),aV=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:l="p"}=r,u=ge(r,oV),c=yi(),f=Ui({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),p=k({},r,{component:l,contained:f.variant==="filled"||f.variant==="outlined",variant:f.variant,size:f.size,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required}),m=iV(p);return y.jsx(sV,k({as:l,ownerState:p,className:ye(m.root,s),ref:n},u,{children:o===" "?rR||(rR=y.jsx("span",{className:"notranslate",children:""})):o}))});function lV(e){return Ie("MuiFormLabel",e)}const Hc=Ne("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),cV=["children","className","color","component","disabled","error","filled","focused","required"],uV=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:l,required:u}=e,c={root:["root",`color${ie(n)}`,o&&"disabled",s&&"error",l&&"filled",r&&"focused",u&&"required"],asterisk:["asterisk",s&&"error"]};return Le(c,lV,t)},dV=re("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>k({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Hc.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Hc.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Hc.error}`]:{color:(e.vars||e).palette.error.main}})),fV=re("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Hc.error}`]:{color:(e.vars||e).palette.error.main}})),pV=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormLabel"}),{children:o,className:s,component:l="label"}=r,u=ge(r,cV),c=yi(),f=Ui({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),p=k({},r,{color:f.color||"primary",component:l,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required}),m=uV(p);return y.jsxs(dV,k({as:l,ownerState:p,className:ye(m.root,s),ref:n},u,{children:[o,f.required&&y.jsxs(fV,{ownerState:p,"aria-hidden":!0,className:m.asterisk,children:[" ","*"]})]}))}),vi=f3({createStyledComponent:re("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>Fe({props:e,name:"MuiGrid2"})}),hV=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ny(e){return`scale(${e}, ${e**2})`}const mV={entering:{opacity:1,transform:ny(1)},entered:{opacity:1,transform:"none"}},ry=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ja=E.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:l,in:u,onEnter:c,onEntered:f,onEntering:p,onExit:m,onExited:g,onExiting:S,style:x,timeout:b="auto",TransitionComponent:w=Lr}=t,P=ge(t,hV),R=hi(),O=E.useRef(),A=xr(),$=E.useRef(null),T=Gt($,s.ref,n),_=te=>Z=>{if(te){const X=$.current;Z===void 0?te(X):te(X,Z)}},M=_(p),F=_((te,Z)=>{df(te);const{duration:X,delay:N,easing:Y}=Vo({style:x,timeout:b,easing:l},{mode:"enter"});let ce;b==="auto"?(ce=A.transitions.getAutoHeightDuration(te.clientHeight),O.current=ce):ce=X,te.style.transition=[A.transitions.create("opacity",{duration:ce,delay:N}),A.transitions.create("transform",{duration:ry?ce:ce*.666,delay:N,easing:Y})].join(","),c&&c(te,Z)}),B=_(f),G=_(S),W=_(te=>{const{duration:Z,delay:X,easing:N}=Vo({style:x,timeout:b,easing:l},{mode:"exit"});let Y;b==="auto"?(Y=A.transitions.getAutoHeightDuration(te.clientHeight),O.current=Y):Y=Z,te.style.transition=[A.transitions.create("opacity",{duration:Y,delay:X}),A.transitions.create("transform",{duration:ry?Y:Y*.666,delay:ry?X:X||Y*.333,easing:N})].join(","),te.style.opacity=0,te.style.transform=ny(.75),m&&m(te)}),H=_(g),z=te=>{b==="auto"&&R.start(O.current||0,te),r&&r($.current,te)};return y.jsx(w,k({appear:o,in:u,nodeRef:$,onEnter:F,onEntered:B,onEntering:M,onExit:W,onExited:H,onExiting:G,addEndListener:z,timeout:b==="auto"?null:b},P,{children:(te,Z)=>E.cloneElement(s,k({style:k({opacity:0,transform:ny(.75),visibility:te==="exited"&&!u?"hidden":void 0},mV[te],x,s.props.style),ref:T},Z))}))});Ja.muiSupportAuto=!0;const gV=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],yV=e=>{const{classes:t,disableUnderline:n}=e,o=Le({root:["root",!n&&"underline"],input:["input"]},MW,t);return k({},t,o)},vV=re(Cf,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...wf(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),k({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Wi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wi.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Wi.disabled}, .${Wi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Wi.disabled}:before`]:{borderBottomStyle:"dotted"}})}),bV=re(Ef,{name:"MuiInput",slot:"Input",overridesResolver:Sf})({}),oy=E.forwardRef(function(t,n){var r,o,s,l;const u=Fe({props:t,name:"MuiInput"}),{disableUnderline:c,components:f={},componentsProps:p,fullWidth:m=!1,inputComponent:g="input",multiline:S=!1,slotProps:x,slots:b={},type:w="text"}=u,P=ge(u,gV),R=yV(u),A={root:{ownerState:{disableUnderline:c}}},$=x??p?rr(x??p,A):A,T=(r=(o=b.root)!=null?o:f.Root)!=null?r:vV,_=(s=(l=b.input)!=null?l:f.Input)!=null?s:bV;return y.jsx(Fg,k({slots:{root:T,input:_},slotProps:$,fullWidth:m,inputComponent:g,multiline:S,ref:n,type:w},P,{classes:R}))});oy.muiName="Input";function xV(e){return Ie("MuiInputLabel",e)}Ne("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const wV=["disableAnimation","margin","shrink","variant","className"],SV=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:l,required:u}=e,c={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&r!=="normal"&&`size${ie(r)}`,l],asterisk:[u&&"asterisk"]},f=Le(c,xV,t);return k({},t,f)},CV=re(pV,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Hc.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>k({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&k({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&k({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&k({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Of=E.forwardRef(function(t,n){const r=Fe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:s,className:l}=r,u=ge(r,wV),c=yi();let f=s;typeof f>"u"&&c&&(f=c.filled||c.focused||c.adornedStart);const p=Ui({props:r,muiFormControl:c,states:["size","variant","required","focused"]}),m=k({},r,{disableAnimation:o,formControl:c,shrink:f,size:p.size,variant:p.variant,required:p.required,focused:p.focused}),g=SV(m);return y.jsx(CV,k({"data-shrink":f,ownerState:m,ref:n,className:ye(g.root,l)},u,{classes:g}))});function EV(e){return Ie("MuiLink",e)}const RV=Ne("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),oR={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},kV=e=>oR[e]||e,PV=({theme:e,ownerState:t})=>{const n=kV(t.color),r=Oa(e,`palette.${n}`,!1)||t.color,o=Oa(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:mt(r,.4)},TV=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],OV=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,s={root:["root",`underline${ie(o)}`,n==="button"&&"button",r&&"focusVisible"]};return Le(s,EV,t)},$V=re(bn,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ie(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>k({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&k({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:PV({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${RV.focusVisible}`]:{outline:"auto"}})),iy=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiLink"}),{className:o,color:s="primary",component:l="a",onBlur:u,onFocus:c,TypographyClasses:f,underline:p="always",variant:m="inherit",sx:g}=r,S=ge(r,TV),{isFocusVisibleRef:x,onBlur:b,onFocus:w,ref:P}=ag(),[R,O]=E.useState(!1),A=Gt(n,P),$=F=>{b(F),x.current===!1&&O(!1),u&&u(F)},T=F=>{w(F),x.current===!0&&O(!0),c&&c(F)},_=k({},r,{color:s,component:l,focusVisible:R,underline:p,variant:m}),M=OV(_);return y.jsx($V,k({color:s,className:ye(M.root,o),classes:f,component:l,onBlur:$,onFocus:T,ref:A,ownerState:_,variant:m,sx:[...Object.keys(oR).includes(s)?[]:[{color:s}],...Array.isArray(g)?g:[g]]},S))}),Ro=E.createContext({});function AV(e){return Ie("MuiList",e)}Ne("MuiList",["root","padding","dense","subheader"]);const jV=["children","className","component","dense","disablePadding","subheader"],_V=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Le({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},AV,t)},IV=re("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>k({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),iR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiList"}),{children:o,className:s,component:l="ul",dense:u=!1,disablePadding:c=!1,subheader:f}=r,p=ge(r,jV),m=E.useMemo(()=>({dense:u}),[u]),g=k({},r,{component:l,dense:u,disablePadding:c}),S=_V(g);return y.jsx(Ro.Provider,{value:m,children:y.jsxs(IV,k({as:l,className:ye(S.root,s),ref:n,ownerState:g},p,{children:[f,o]}))})});function MV(e){return Ie("MuiListItem",e)}const Za=Ne("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function NV(e){return Ie("MuiListItemButton",e)}const el=Ne("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),LV=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],DV=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},FV=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:s,divider:l,selected:u}=e,f=Le({root:["root",r&&"dense",!s&&"gutters",l&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",u&&"selected"]},NV,n);return k({},n,f)},BV=re(Dr,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:DV})(({theme:e,ownerState:t})=>k({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${el.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${el.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${el.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${el.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${el.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),zV=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:s=!1,component:l="div",children:u,dense:c=!1,disableGutters:f=!1,divider:p=!1,focusVisibleClassName:m,selected:g=!1,className:S}=r,x=ge(r,LV),b=E.useContext(Ro),w=E.useMemo(()=>({dense:c||b.dense||!1,alignItems:o,disableGutters:f}),[o,b.dense,c,f]),P=E.useRef(null);br(()=>{s&&P.current&&P.current.focus()},[s]);const R=k({},r,{alignItems:o,dense:w.dense,disableGutters:f,divider:p,selected:g}),O=FV(R),A=Gt(P,n);return y.jsx(Ro.Provider,{value:w,children:y.jsx(BV,k({ref:A,href:x.href||x.to,component:(x.href||x.to)&&l==="div"?"button":l,focusVisibleClassName:ye(O.focusVisible,m),ownerState:R,className:ye(O.root,S)},x,{classes:O,children:u}))})});function UV(e){return Ie("MuiListItemSecondaryAction",e)}Ne("MuiListItemSecondaryAction",["root","disableGutters"]);const WV=["className"],HV=e=>{const{disableGutters:t,classes:n}=e;return Le({root:["root",t&&"disableGutters"]},UV,n)},VV=re("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>k({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),sR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,s=ge(r,WV),l=E.useContext(Ro),u=k({},r,{disableGutters:l.disableGutters}),c=HV(u);return y.jsx(VV,k({className:ye(c.root,o),ownerState:u,ref:n},s))});sR.muiName="ListItemSecondaryAction";const KV=["className"],GV=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],qV=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},QV=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:s,disableGutters:l,disablePadding:u,divider:c,hasSecondaryAction:f,selected:p}=e;return Le({root:["root",o&&"dense",!l&&"gutters",!u&&"padding",c&&"divider",s&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",f&&"secondaryAction",p&&"selected"],container:["container"]},MV,r)},YV=re("div",{name:"MuiListItem",slot:"Root",overridesResolver:qV})(({theme:e,ownerState:t})=>k({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&k({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${el.root}`]:{paddingRight:48}},{[`&.${Za.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Za.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Za.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Za.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Za.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),XV=re("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),JV=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:s=!1,button:l=!1,children:u,className:c,component:f,components:p={},componentsProps:m={},ContainerComponent:g="li",ContainerProps:{className:S}={},dense:x=!1,disabled:b=!1,disableGutters:w=!1,disablePadding:P=!1,divider:R=!1,focusVisibleClassName:O,secondaryAction:A,selected:$=!1,slotProps:T={},slots:_={}}=r,M=ge(r.ContainerProps,KV),F=ge(r,GV),B=E.useContext(Ro),G=E.useMemo(()=>({dense:x||B.dense||!1,alignItems:o,disableGutters:w}),[o,B.dense,x,w]),W=E.useRef(null);br(()=>{s&&W.current&&W.current.focus()},[s]);const H=E.Children.toArray(u),z=H.length&&_a(H[H.length-1],["ListItemSecondaryAction"]),te=k({},r,{alignItems:o,autoFocus:s,button:l,dense:G.dense,disabled:b,disableGutters:w,disablePadding:P,divider:R,hasSecondaryAction:z,selected:$}),Z=QV(te),X=Gt(W,n),N=_.root||p.Root||YV,Y=T.root||m.root||{},ce=k({className:ye(Z.root,Y.className,c),disabled:b},F);let L=f||"li";return l&&(ce.component=f||"div",ce.focusVisibleClassName=ye(Za.focusVisible,O),L=Dr),z?(L=!ce.component&&!f?"div":L,g==="li"&&(L==="li"?L="div":ce.component==="li"&&(ce.component="div")),y.jsx(Ro.Provider,{value:G,children:y.jsxs(XV,k({as:g,className:ye(Z.container,S),ref:X,ownerState:te},M,{children:[y.jsx(N,k({},Y,!Na(N)&&{as:L,ownerState:k({},te,Y.ownerState)},ce,{children:H})),H.pop()]}))})):y.jsx(Ro.Provider,{value:G,children:y.jsxs(N,k({},Y,{as:L,ref:X},!Na(N)&&{ownerState:k({},te,Y.ownerState)},ce,{children:[H,A&&y.jsx(sR,{children:A})]}))})});function ZV(e){return Ie("MuiListItemIcon",e)}const aR=Ne("MuiListItemIcon",["root","alignItemsFlexStart"]),eK=["className"],tK=e=>{const{alignItems:t,classes:n}=e;return Le({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},ZV,n)},nK=re("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>k({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),lR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItemIcon"}),{className:o}=r,s=ge(r,eK),l=E.useContext(Ro),u=k({},r,{alignItems:l.alignItems}),c=tK(u);return y.jsx(nK,k({className:ye(c.root,o),ownerState:u,ref:n},s))});function rK(e){return Ie("MuiListItemText",e)}const $f=Ne("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),oK=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],iK=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:s}=e;return Le({root:["root",n&&"inset",s&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},rK,t)},sK=re("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$f.primary}`]:t.primary},{[`& .${$f.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>k({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),cR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItemText"}),{children:o,className:s,disableTypography:l=!1,inset:u=!1,primary:c,primaryTypographyProps:f,secondary:p,secondaryTypographyProps:m}=r,g=ge(r,oK),{dense:S}=E.useContext(Ro);let x=c??o,b=p;const w=k({},r,{disableTypography:l,inset:u,primary:!!x,secondary:!!b,dense:S}),P=iK(w);return x!=null&&x.type!==bn&&!l&&(x=y.jsx(bn,k({variant:S?"body2":"body1",className:P.primary,component:f!=null&&f.variant?void 0:"span",display:"block"},f,{children:x}))),b!=null&&b.type!==bn&&!l&&(b=y.jsx(bn,k({variant:"body2",className:P.secondary,color:"text.secondary",display:"block"},m,{children:b}))),y.jsxs(sK,k({className:ye(P.root,s),ownerState:w,ref:n},g,{children:[x,b]}))}),aK=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function sy(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function uR(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function dR(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Vc(e,t,n,r,o,s){let l=!1,u=o(e,t,t?n:!1);for(;u;){if(u===e.firstChild){if(l)return!1;l=!0}const c=r?!1:u.disabled||u.getAttribute("aria-disabled")==="true";if(!u.hasAttribute("tabindex")||!dR(u,s)||c)u=o(e,u,n);else return u.focus(),!0}return!1}const fR=E.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:s=!1,children:l,className:u,disabledItemsFocusable:c=!1,disableListWrap:f=!1,onKeyDown:p,variant:m="selectedMenu"}=t,g=ge(t,aK),S=E.useRef(null),x=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});br(()=>{o&&S.current.focus()},[o]),E.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(O,{direction:A})=>{const $=!S.current.style.width;if(O.clientHeight<S.current.clientHeight&&$){const T=`${mC(An(O))}px`;S.current.style[A==="rtl"?"paddingLeft":"paddingRight"]=T,S.current.style.width=`calc(100% + ${T})`}return S.current}}),[]);const b=O=>{const A=S.current,$=O.key,T=An(A).activeElement;if($==="ArrowDown")O.preventDefault(),Vc(A,T,f,c,sy);else if($==="ArrowUp")O.preventDefault(),Vc(A,T,f,c,uR);else if($==="Home")O.preventDefault(),Vc(A,null,f,c,sy);else if($==="End")O.preventDefault(),Vc(A,null,f,c,uR);else if($.length===1){const _=x.current,M=$.toLowerCase(),F=performance.now();_.keys.length>0&&(F-_.lastTime>500?(_.keys=[],_.repeating=!0,_.previousKeyMatched=!0):_.repeating&&M!==_.keys[0]&&(_.repeating=!1)),_.lastTime=F,_.keys.push(M);const B=T&&!_.repeating&&dR(T,_);_.previousKeyMatched&&(B||Vc(A,T,!1,c,sy,_))?O.preventDefault():_.previousKeyMatched=!1}p&&p(O)},w=Gt(S,n);let P=-1;E.Children.forEach(l,(O,A)=>{if(!E.isValidElement(O)){P===A&&(P+=1,P>=l.length&&(P=-1));return}O.props.disabled||(m==="selectedMenu"&&O.props.selected||P===-1)&&(P=A),P===A&&(O.props.disabled||O.props.muiSkipListHighlight||O.type.muiSkipListHighlight)&&(P+=1,P>=l.length&&(P=-1))});const R=E.Children.map(l,(O,A)=>{if(A===P){const $={};return s&&($.autoFocus=!0),O.props.tabIndex===void 0&&m==="selectedMenu"&&($.tabIndex=0),E.cloneElement(O,$)}return O});return y.jsx(iR,k({role:"menu",ref:w,className:u,onKeyDown:b,tabIndex:o?0:-1},g,{children:R}))});function lK(e){return Ie("MuiPopover",e)}Ne("MuiPopover",["root","paper"]);const cK=["onEntering"],uK=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],dK=["slotProps"];function pR(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function hR(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function mR(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function ay(e){return typeof e=="function"?e():e}const fK=e=>{const{classes:t}=e;return Le({root:["root"],paper:["paper"]},lK,t)},pK=re(Gg,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gR=re(oo,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),yR=E.forwardRef(function(t,n){var r,o,s;const l=Fe({props:t,name:"MuiPopover"}),{action:u,anchorEl:c,anchorOrigin:f={vertical:"top",horizontal:"left"},anchorPosition:p,anchorReference:m="anchorEl",children:g,className:S,container:x,elevation:b=8,marginThreshold:w=16,open:P,PaperProps:R={},slots:O,slotProps:A,transformOrigin:$={vertical:"top",horizontal:"left"},TransitionComponent:T=Ja,transitionDuration:_="auto",TransitionProps:{onEntering:M}={},disableScrollLock:F=!1}=l,B=ge(l.TransitionProps,cK),G=ge(l,uK),W=(r=A==null?void 0:A.paper)!=null?r:R,H=E.useRef(),z=Gt(H,W.ref),te=k({},l,{anchorOrigin:f,anchorReference:m,elevation:b,marginThreshold:w,externalPaperSlotProps:W,transformOrigin:$,TransitionComponent:T,transitionDuration:_,TransitionProps:B}),Z=fK(te),X=E.useCallback(()=>{if(m==="anchorPosition")return p;const Je=ay(c),ot=(Je&&Je.nodeType===1?Je:An(H.current).body).getBoundingClientRect();return{top:ot.top+pR(ot,f.vertical),left:ot.left+hR(ot,f.horizontal)}},[c,f.horizontal,f.vertical,p,m]),N=E.useCallback(Je=>({vertical:pR(Je,$.vertical),horizontal:hR(Je,$.horizontal)}),[$.horizontal,$.vertical]),Y=E.useCallback(Je=>{const ct={width:Je.offsetWidth,height:Je.offsetHeight},ot=N(ct);if(m==="none")return{top:null,left:null,transformOrigin:mR(ot)};const ze=X();let Ot=ze.top-ot.vertical,Ze=ze.left-ot.horizontal;const $t=Ot+ct.height,gt=Ze+ct.width,dt=Co(ay(c)),_t=dt.innerHeight-w,Pt=dt.innerWidth-w;if(w!==null&&Ot<w){const pt=Ot-w;Ot-=pt,ot.vertical+=pt}else if(w!==null&&$t>_t){const pt=$t-_t;Ot-=pt,ot.vertical+=pt}if(w!==null&&Ze<w){const pt=Ze-w;Ze-=pt,ot.horizontal+=pt}else if(gt>Pt){const pt=gt-Pt;Ze-=pt,ot.horizontal+=pt}return{top:`${Math.round(Ot)}px`,left:`${Math.round(Ze)}px`,transformOrigin:mR(ot)}},[c,m,X,N,w]),[ce,L]=E.useState(P),se=E.useCallback(()=>{const Je=H.current;if(!Je)return;const ct=Y(Je);ct.top!==null&&(Je.style.top=ct.top),ct.left!==null&&(Je.style.left=ct.left),Je.style.transformOrigin=ct.transformOrigin,L(!0)},[Y]);E.useEffect(()=>(F&&window.addEventListener("scroll",se),()=>window.removeEventListener("scroll",se)),[c,F,se]);const Oe=(Je,ct)=>{M&&M(Je,ct),se()},ve=()=>{L(!1)};E.useEffect(()=>{P&&se()}),E.useImperativeHandle(u,()=>P?{updatePosition:()=>{se()}}:null,[P,se]),E.useEffect(()=>{if(!P)return;const Je=Sc(()=>{se()}),ct=Co(c);return ct.addEventListener("resize",Je),()=>{Je.clear(),ct.removeEventListener("resize",Je)}},[c,P,se]);let xe=_;_==="auto"&&!T.muiSupportAuto&&(xe=void 0);const he=x||(c?An(ay(c)).body:void 0),Me=(o=O==null?void 0:O.root)!=null?o:pK,de=(s=O==null?void 0:O.paper)!=null?s:gR,ke=or({elementType:de,externalSlotProps:k({},W,{style:ce?W.style:k({},W.style,{opacity:0})}),additionalProps:{elevation:b,ref:z},ownerState:te,className:ye(Z.paper,W==null?void 0:W.className)}),Qe=or({elementType:Me,externalSlotProps:(A==null?void 0:A.root)||{},externalForwardedProps:G,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:he,open:P},ownerState:te,className:ye(Z.root,S)}),{slotProps:He}=Qe,Be=ge(Qe,dK);return y.jsx(Me,k({},Be,!Na(Me)&&{slotProps:He,disableScrollLock:F},{children:y.jsx(T,k({appear:!0,in:P,onEntering:Oe,onExited:ve,timeout:xe},B,{children:y.jsx(de,k({},ke,{children:g}))}))}))});function hK(e){return Ie("MuiMenu",e)}Ne("MuiMenu",["root","paper","list"]);const mK=["onEntering"],gK=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],yK={vertical:"top",horizontal:"right"},vK={vertical:"top",horizontal:"left"},bK=e=>{const{classes:t}=e;return Le({root:["root"],paper:["paper"],list:["list"]},hK,t)},xK=re(yR,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wK=re(gR,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),SK=re(fR,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ly=E.forwardRef(function(t,n){var r,o;const s=Fe({props:t,name:"MuiMenu"}),{autoFocus:l=!0,children:u,className:c,disableAutoFocusItem:f=!1,MenuListProps:p={},onClose:m,open:g,PaperProps:S={},PopoverClasses:x,transitionDuration:b="auto",TransitionProps:{onEntering:w}={},variant:P="selectedMenu",slots:R={},slotProps:O={}}=s,A=ge(s.TransitionProps,mK),$=ge(s,gK),T=Ec(),_=k({},s,{autoFocus:l,disableAutoFocusItem:f,MenuListProps:p,onEntering:w,PaperProps:S,transitionDuration:b,TransitionProps:A,variant:P}),M=bK(_),F=l&&!f&&g,B=E.useRef(null),G=(N,Y)=>{B.current&&B.current.adjustStyleForScrollbar(N,{direction:T?"rtl":"ltr"}),w&&w(N,Y)},W=N=>{N.key==="Tab"&&(N.preventDefault(),m&&m(N,"tabKeyDown"))};let H=-1;E.Children.map(u,(N,Y)=>{E.isValidElement(N)&&(N.props.disabled||(P==="selectedMenu"&&N.props.selected||H===-1)&&(H=Y))});const z=(r=R.paper)!=null?r:wK,te=(o=O.paper)!=null?o:S,Z=or({elementType:R.root,externalSlotProps:O.root,ownerState:_,className:[M.root,c]}),X=or({elementType:z,externalSlotProps:te,ownerState:_,className:M.paper});return y.jsx(xK,k({onClose:m,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?yK:vK,slots:{paper:z,root:R.root},slotProps:{root:Z,paper:X},open:g,ref:n,transitionDuration:b,TransitionProps:k({onEntering:G},A),ownerState:_},$,{classes:x,children:y.jsx(SK,k({onKeyDown:W,actions:B,autoFocus:l&&(H===-1||f),autoFocusItem:F,variant:P},p,{className:ye(M.list,p.className),children:u}))}))});function CK(e){return Ie("MuiMenuItem",e)}const Kc=Ne("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),EK=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],RK=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},kK=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:s,classes:l}=e,c=Le({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",s&&"selected"]},CK,l);return k({},l,c)},PK=re(Dr,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:RK})(({theme:e,ownerState:t})=>k({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Kc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Kc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Kc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Kc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Kc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${YE.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${YE.inset}`]:{marginLeft:52},[`& .${$f.root}`]:{marginTop:0,marginBottom:0},[`& .${$f.inset}`]:{paddingLeft:36},[`& .${aR.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&k({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${aR.root} svg`]:{fontSize:"1.25rem"}}))),Ki=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:l=!1,divider:u=!1,disableGutters:c=!1,focusVisibleClassName:f,role:p="menuitem",tabIndex:m,className:g}=r,S=ge(r,EK),x=E.useContext(Ro),b=E.useMemo(()=>({dense:l||x.dense||!1,disableGutters:c}),[x.dense,l,c]),w=E.useRef(null);br(()=>{o&&w.current&&w.current.focus()},[o]);const P=k({},r,{dense:b.dense,divider:u,disableGutters:c}),R=kK(r),O=Gt(w,n);let A;return r.disabled||(A=m!==void 0?m:-1),y.jsx(Ro.Provider,{value:b,children:y.jsx(PK,k({ref:O,role:p,tabIndex:A,component:s,focusVisibleClassName:ye(R.focusVisible,f),className:ye(R.root,g)},S,{ownerState:P,classes:R}))})});function TK(e){return Ie("MuiNativeSelect",e)}const cy=Ne("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),OK=["className","disabled","error","IconComponent","inputRef","variant"],$K=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:l}=e,u={select:["select",n,r&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${ie(n)}`,s&&"iconOpen",r&&"disabled"]};return Le(u,TK,t)},vR=({ownerState:e,theme:t})=>k({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":k({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${cy.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),AK=re("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Tn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${cy.multiple}`]:t.multiple}]}})(vR),bR=({ownerState:e,theme:t})=>k({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${cy.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),jK=re("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ie(n.variant)}`],n.open&&t.iconOpen]}})(bR),_K=E.forwardRef(function(t,n){const{className:r,disabled:o,error:s,IconComponent:l,inputRef:u,variant:c="standard"}=t,f=ge(t,OK),p=k({},t,{disabled:o,variant:c,error:s}),m=$K(p);return y.jsxs(E.Fragment,{children:[y.jsx(AK,k({ownerState:p,className:ye(m.select,r),disabled:o,ref:u||n},f)),t.multiple?null:y.jsx(jK,{as:l,ownerState:p,className:m.icon})]})});var xR;const IK=["children","classes","className","label","notched"],MK=re("fieldset",{shouldForwardProp:Tn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),NK=re("legend",{shouldForwardProp:Tn})(({ownerState:e,theme:t})=>k({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&k({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function LK(e){const{className:t,label:n,notched:r}=e,o=ge(e,IK),s=n!=null&&n!=="",l=k({},e,{notched:r,withLabel:s});return y.jsx(MK,k({"aria-hidden":!0,className:t,ownerState:l},o,{children:y.jsx(NK,{ownerState:l,children:s?y.jsx("span",{children:n}):xR||(xR=y.jsx("span",{className:"notranslate",children:""}))})}))}const DK=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],FK=e=>{const{classes:t}=e,r=Le({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},NW,t);return k({},t,r)},BK=re(Cf,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:wf})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return k({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${qo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${qo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${qo.focused} .${qo.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${qo.error} .${qo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${qo.disabled} .${qo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&k({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),zK=re(LK,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),UK=re(Ef,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Sf})(({theme:e,ownerState:t})=>k({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),uy=E.forwardRef(function(t,n){var r,o,s,l,u;const c=Fe({props:t,name:"MuiOutlinedInput"}),{components:f={},fullWidth:p=!1,inputComponent:m="input",label:g,multiline:S=!1,notched:x,slots:b={},type:w="text"}=c,P=ge(c,DK),R=FK(c),O=yi(),A=Ui({props:c,muiFormControl:O,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),$=k({},c,{color:A.color||"primary",disabled:A.disabled,error:A.error,focused:A.focused,formControl:O,fullWidth:p,hiddenLabel:A.hiddenLabel,multiline:S,size:A.size,type:w}),T=(r=(o=b.root)!=null?o:f.Root)!=null?r:BK,_=(s=(l=b.input)!=null?l:f.Input)!=null?s:UK;return y.jsx(Fg,k({slots:{root:T,input:_},renderSuffix:M=>y.jsx(zK,{ownerState:$,className:R.notchedOutline,label:g!=null&&g!==""&&A.required?u||(u=y.jsxs(E.Fragment,{children:[g," ","*"]})):g,notched:typeof x<"u"?x:!!(M.startAdornment||M.filled||M.focused)}),fullWidth:p,inputComponent:m,multiline:S,ref:n,type:w},P,{classes:k({},R,{notchedOutline:null})}))});uy.muiName="Input";const WK=Rt(y.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),HK=Rt(y.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),VK=re("span",{shouldForwardProp:Tn})({position:"relative",display:"flex"}),KK=re(WK)({transform:"scale(1)"}),GK=re(HK)(({theme:e,ownerState:t})=>k({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function wR(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=k({},e,{checked:t});return y.jsxs(VK,{className:n.root,ownerState:o,children:[y.jsx(KK,{fontSize:r,className:n.background,ownerState:o}),y.jsx(GK,{fontSize:r,className:n.dot,ownerState:o})]})}const SR=E.createContext(void 0);function qK(){return E.useContext(SR)}function QK(e){return Ie("MuiRadio",e)}const CR=Ne("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),YK=["checked","checkedIcon","color","icon","name","onChange","size","className"],XK=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${ie(n)}`,r!=="medium"&&`size${ie(r)}`]};return k({},t,Le(o,QK,t))},JK=re(Wg,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${ie(n.size)}`],t[`color${ie(n.color)}`]]}})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${CR.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${CR.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function ZK(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const ER=y.jsx(wR,{checked:!0}),RR=y.jsx(wR,{}),dy=E.forwardRef(function(t,n){var r,o;const s=Fe({props:t,name:"MuiRadio"}),{checked:l,checkedIcon:u=ER,color:c="primary",icon:f=RR,name:p,onChange:m,size:g="medium",className:S}=s,x=ge(s,YK),b=k({},s,{color:c,size:g}),w=XK(b),P=qK();let R=l;const O=og(m,P&&P.onChange);let A=p;return P&&(typeof R>"u"&&(R=ZK(P.value,s.value)),typeof A>"u"&&(A=P.name)),y.jsx(JK,k({type:"radio",icon:E.cloneElement(f,{fontSize:(r=RR.props.fontSize)!=null?r:g}),checkedIcon:E.cloneElement(u,{fontSize:(o=ER.props.fontSize)!=null?o:g}),ownerState:b,classes:w,name:A,checked:R,onChange:O,ref:n,className:ye(w.root,S)},x))});function eG(e){return Ie("MuiRadioGroup",e)}Ne("MuiRadioGroup",["root","row","error"]);const tG=["actions","children","className","defaultValue","name","onChange","value"],nG=e=>{const{classes:t,row:n,error:r}=e;return Le({root:["root",n&&"row",r&&"error"]},eG,t)},kR=E.forwardRef(function(t,n){const{actions:r,children:o,className:s,defaultValue:l,name:u,onChange:c,value:f}=t,p=ge(t,tG),m=E.useRef(null),g=nG(t),[S,x]=pi({controlled:f,default:l,name:"RadioGroup"});E.useImperativeHandle(r,()=>({focus:()=>{let R=m.current.querySelector("input:not(:disabled):checked");R||(R=m.current.querySelector("input:not(:disabled)")),R&&R.focus()}}),[]);const b=Gt(n,m),w=Ia(u),P=E.useMemo(()=>({name:w,onChange(R){x(R.target.value),c&&c(R,R.target.value)},value:S}),[w,c,x,S]);return y.jsx(SR.Provider,{value:P,children:y.jsx(nV,k({role:"radiogroup",ref:b,className:ye(g.root,s)},p,{children:o}))})});function rG(e){return Ie("MuiSelect",e)}const Gc=Ne("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var PR;const oG=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],iG=re("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Gc.select}`]:t.select},{[`&.${Gc.select}`]:t[n.variant]},{[`&.${Gc.error}`]:t.error},{[`&.${Gc.multiple}`]:t.multiple}]}})(vR,{[`&.${Gc.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),sG=re("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ie(n.variant)}`],n.open&&t.iconOpen]}})(bR),aG=re("input",{shouldForwardProp:e=>KC(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function TR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function lG(e){return e==null||typeof e=="string"&&!e.trim()}const cG=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:l}=e,u={select:["select",n,r&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${ie(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Le(u,rG,t)},uG=E.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":s,autoFocus:l,autoWidth:u,children:c,className:f,defaultOpen:p,defaultValue:m,disabled:g,displayEmpty:S,error:x=!1,IconComponent:b,inputRef:w,labelId:P,MenuProps:R={},multiple:O,name:A,onBlur:$,onChange:T,onClose:_,onFocus:M,onOpen:F,open:B,readOnly:G,renderValue:W,SelectDisplayProps:H={},tabIndex:z,value:te,variant:Z="standard"}=t,X=ge(t,oG),[N,Y]=pi({controlled:te,default:m,name:"Select"}),[ce,L]=pi({controlled:B,default:p,name:"Select"}),se=E.useRef(null),Oe=E.useRef(null),[ve,xe]=E.useState(null),{current:he}=E.useRef(B!=null),[Me,de]=E.useState(),ke=Gt(n,w),Qe=E.useCallback(Ue=>{Oe.current=Ue,Ue&&xe(Ue)},[]),He=ve==null?void 0:ve.parentNode;E.useImperativeHandle(ke,()=>({focus:()=>{Oe.current.focus()},node:se.current,value:N}),[N]),E.useEffect(()=>{p&&ce&&ve&&!he&&(de(u?null:He.clientWidth),Oe.current.focus())},[ve,u]),E.useEffect(()=>{l&&Oe.current.focus()},[l]),E.useEffect(()=>{if(!P)return;const Ue=An(Oe.current).getElementById(P);if(Ue){const ut=()=>{getSelection().isCollapsed&&Oe.current.focus()};return Ue.addEventListener("click",ut),()=>{Ue.removeEventListener("click",ut)}}},[P]);const Be=(Ue,ut)=>{Ue?F&&F(ut):_&&_(ut),he||(de(u?null:He.clientWidth),L(Ue))},Je=Ue=>{Ue.button===0&&(Ue.preventDefault(),Oe.current.focus(),Be(!0,Ue))},ct=Ue=>{Be(!1,Ue)},ot=E.Children.toArray(c),ze=Ue=>{const ut=ot.find(Re=>Re.props.value===Ue.target.value);ut!==void 0&&(Y(ut.props.value),T&&T(Ue,ut))},Ot=Ue=>ut=>{let Re;if(ut.currentTarget.hasAttribute("tabindex")){if(O){Re=Array.isArray(N)?N.slice():[];const We=N.indexOf(Ue.props.value);We===-1?Re.push(Ue.props.value):Re.splice(We,1)}else Re=Ue.props.value;if(Ue.props.onClick&&Ue.props.onClick(ut),N!==Re&&(Y(Re),T)){const We=ut.nativeEvent||ut,ft=new We.constructor(We.type,We);Object.defineProperty(ft,"target",{writable:!0,value:{value:Re,name:A}}),T(ft,Ue)}O||Be(!1,ut)}},Ze=Ue=>{G||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ue.key)!==-1&&(Ue.preventDefault(),Be(!0,Ue))},$t=ve!==null&&ce,gt=Ue=>{!$t&&$&&(Object.defineProperty(Ue,"target",{writable:!0,value:{value:N,name:A}}),$(Ue))};delete X["aria-invalid"];let dt,_t;const Pt=[];let pt=!1;(xf({value:N})||S)&&(W?dt=W(N):pt=!0);const Ft=ot.map(Ue=>{if(!E.isValidElement(Ue))return null;let ut;if(O){if(!Array.isArray(N))throw new Error(di(2));ut=N.some(Re=>TR(Re,Ue.props.value)),ut&&pt&&Pt.push(Ue.props.children)}else ut=TR(N,Ue.props.value),ut&&pt&&(_t=Ue.props.children);return E.cloneElement(Ue,{"aria-selected":ut?"true":"false",onClick:Ot(Ue),onKeyUp:Re=>{Re.key===" "&&Re.preventDefault(),Ue.props.onKeyUp&&Ue.props.onKeyUp(Re)},role:"option",selected:ut,value:void 0,"data-value":Ue.props.value})});pt&&(O?Pt.length===0?dt=null:dt=Pt.reduce((Ue,ut,Re)=>(Ue.push(ut),Re<Pt.length-1&&Ue.push(", "),Ue),[]):dt=_t);let Yt=Me;!u&&he&&ve&&(Yt=He.clientWidth);let qt;typeof z<"u"?qt=z:qt=g?null:0;const et=H.id||(A?`mui-component-select-${A}`:void 0),Pe=k({},t,{variant:Z,value:N,open:$t,error:x}),xt=cG(Pe),Ht=k({},R.PaperProps,(r=R.slotProps)==null?void 0:r.paper),fn=Ia();return y.jsxs(E.Fragment,{children:[y.jsx(iG,k({ref:Qe,tabIndex:qt,role:"combobox","aria-controls":fn,"aria-disabled":g?"true":void 0,"aria-expanded":$t?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[P,et].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:Ze,onMouseDown:g||G?null:Je,onBlur:gt,onFocus:M},H,{ownerState:Pe,className:ye(H.className,xt.select,f),id:et,children:lG(dt)?PR||(PR=y.jsx("span",{className:"notranslate",children:""})):dt})),y.jsx(aG,k({"aria-invalid":x,value:Array.isArray(N)?N.join(","):N,name:A,ref:se,"aria-hidden":!0,onChange:ze,tabIndex:-1,disabled:g,className:xt.nativeInput,autoFocus:l,ownerState:Pe},X)),y.jsx(sG,{as:b,className:xt.icon,ownerState:Pe}),y.jsx(ly,k({id:`menu-${A||""}`,anchorEl:He,open:$t,onClose:ct,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},R,{MenuListProps:k({"aria-labelledby":P,role:"listbox","aria-multiselectable":O?"true":void 0,disableListWrap:!0,id:fn},R.MenuListProps),slotProps:k({},R.slotProps,{paper:k({},Ht,{style:k({minWidth:Yt},Ht!=null?Ht.style:null)})}),children:Ft}))]})}),dG=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],fG=["root"],pG=e=>{const{classes:t}=e;return t},fy={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Tn(e)&&e!=="variant",slot:"Root"},hG=re(oy,fy)(""),mG=re(uy,fy)(""),gG=re(ey,fy)(""),tl=E.forwardRef(function(t,n){const r=Fe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:l={},className:u,defaultOpen:c=!1,displayEmpty:f=!1,IconComponent:p=_E,id:m,input:g,inputProps:S,label:x,labelId:b,MenuProps:w,multiple:P=!1,native:R=!1,onClose:O,onOpen:A,open:$,renderValue:T,SelectDisplayProps:_,variant:M="outlined"}=r,F=ge(r,dG),B=R?_K:uG,G=yi(),W=Ui({props:r,muiFormControl:G,states:["variant","error"]}),H=W.variant||M,z=k({},r,{variant:H,classes:l}),te=pG(z),Z=ge(te,fG),X=g||{standard:y.jsx(hG,{ownerState:z}),outlined:y.jsx(mG,{label:x,ownerState:z}),filled:y.jsx(gG,{ownerState:z})}[H],N=Gt(n,X.ref);return y.jsx(E.Fragment,{children:E.cloneElement(X,k({inputComponent:B,inputProps:k({children:s,error:W.error,IconComponent:p,variant:H,type:void 0,multiple:P},R?{id:m}:{autoWidth:o,defaultOpen:c,displayEmpty:f,labelId:b,MenuProps:w,onClose:O,onOpen:A,open:$,renderValue:T,SelectDisplayProps:k({id:m},_)},S,{classes:S?rr(Z,S.classes):Z},g?g.props.inputProps:{})},(P&&R||f)&&H==="outlined"?{notched:!0}:{},{ref:N,className:ye(X.props.className,u,te.root)},!g&&{variant:H},F))})});tl.muiName="Select";function yG(e){return Ie("MuiSkeleton",e)}Ne("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const vG=["animation","className","component","height","style","variant","width"];let Af=e=>e,OR,$R,AR,jR;const bG=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:s,height:l}=e;return Le({root:["root",n,r,o&&"withChildren",o&&!s&&"fitContent",o&&!l&&"heightAuto"]},yG,t)},xG=Bi(OR||(OR=Af`
|
|
123
|
+
`),mH)),xH=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:l=!1,size:u=40,style:c,thickness:f=3.6,value:p=0,variant:m="indeterminate"}=r,g=ge(r,pH),S=k({},r,{color:s,disableShrink:l,size:u,thickness:f,value:p,variant:m}),x=gH(S),b={},w={},P={};if(m==="determinate"){const R=2*Math.PI*((Vi-f)/2);b.strokeDasharray=R.toFixed(3),P["aria-valuenow"]=Math.round(p),b.strokeDashoffset=`${((100-p)/100*R).toFixed(3)}px`,w.transform="rotate(-90deg)"}return y.jsx(yH,k({className:ye(x.root,o),style:k({width:u,height:u},w,c),ownerState:S,ref:n,role:"progressbar"},P,g,{children:y.jsx(vH,{className:x.svg,ownerState:S,viewBox:`${Vi/2} ${Vi/2} ${Vi} ${Vi}`,children:y.jsx(bH,{className:x.circle,style:b,ownerState:S,cx:Vi,cy:Vi,r:(Vi-f)/2,fill:"none",strokeWidth:f})})}))});function VE(e){return e.substring(2).toLowerCase()}function wH(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function KE(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:s="onTouchEnd"}=e,l=E.useRef(!1),u=E.useRef(null),c=E.useRef(!1),f=E.useRef(!1);E.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const p=Gt(t.ref,u),m=Nn(x=>{const b=f.current;f.current=!1;const w=An(u.current);if(!c.current||!u.current||"clientX"in x&&wH(x,w))return;if(l.current){l.current=!1;return}let P;x.composedPath?P=x.composedPath().indexOf(u.current)>-1:P=!w.documentElement.contains(x.target)||u.current.contains(x.target),!P&&(n||!b)&&o(x)}),g=x=>b=>{f.current=!0;const w=t.props[x];w&&w(b)},S={ref:p};return s!==!1&&(S[s]=g(s)),E.useEffect(()=>{if(s!==!1){const x=VE(s),b=An(u.current),w=()=>{l.current=!0};return b.addEventListener(x,m),b.addEventListener("touchmove",w),()=>{b.removeEventListener(x,m),b.removeEventListener("touchmove",w)}}},[m,s]),r!==!1&&(S[r]=g(r)),E.useEffect(()=>{if(r!==!1){const x=VE(r),b=An(u.current);return b.addEventListener(x,m),()=>{b.removeEventListener(x,m)}}},[m,r]),y.jsx(E.Fragment,{children:E.cloneElement(t,S)})}const SH=(e,t)=>k({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),CH=e=>k({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),EH=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([l,u])=>{var c;r[e.getColorSchemeSelector(l).replace(/\s*&/,"")]={colorScheme:(c=u.palette)==null?void 0:c.mode}});let o=k({html:SH(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:k({margin:0},CH(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const s=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return s&&(o=[o,s]),o};function RH(e){const t=Fe({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return y.jsxs(E.Fragment,{children:[y.jsx(AE,{styles:o=>EH(o,r)}),n]})}function kH(e){const t=An(e);return t.body===e?Co(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function zc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function GE(e){return parseInt(Co(e).getComputedStyle(e).paddingRight,10)||0}function PH(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function qE(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,l=>{const u=s.indexOf(l)===-1,c=!PH(l);u&&c&&zc(l,o)})}function Kg(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function TH(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(kH(r)){const l=mC(An(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${GE(r)+l}px`;const u=An(r).querySelectorAll(".mui-fixed");[].forEach.call(u,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${GE(c)+l}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=An(r).body;else{const l=r.parentElement,u=Co(r);s=(l==null?void 0:l.nodeName)==="HTML"&&u.getComputedStyle(l).overflowY==="scroll"?l:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:l,property:u})=>{s?l.style.setProperty(u,s):l.style.removeProperty(u)})}}function OH(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class $H{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&zc(t.modalRef,!1);const o=OH(n);qE(n,t.mount,t.modalRef,o,!0);const s=Kg(this.containers,l=>l.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Kg(this.containers,s=>s.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=TH(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Kg(this.containers,l=>l.modals.indexOf(t)!==-1),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&zc(t.modalRef,n),qE(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const l=s.modals[s.modals.length-1];l.modalRef&&zc(l.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const AH=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function jH(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function _H(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function IH(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||_H(e))}function MH(e){const t=[],n=[];return Array.from(e.querySelectorAll(AH)).forEach((r,o)=>{const s=jH(r);s===-1||!IH(r)||(s===0?t.push(r):n.push({documentOrder:o,tabIndex:s,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function NH(){return!0}function LH(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=MH,isEnabled:l=NH,open:u}=e,c=E.useRef(!1),f=E.useRef(null),p=E.useRef(null),m=E.useRef(null),g=E.useRef(null),S=E.useRef(!1),x=E.useRef(null),b=Gt(t.ref,x),w=E.useRef(null);E.useEffect(()=>{!u||!x.current||(S.current=!n)},[n,u]),E.useEffect(()=>{if(!u||!x.current)return;const O=An(x.current);return x.current.contains(O.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),S.current&&x.current.focus()),()=>{o||(m.current&&m.current.focus&&(c.current=!0,m.current.focus()),m.current=null)}},[u]),E.useEffect(()=>{if(!u||!x.current)return;const O=An(x.current),A=_=>{w.current=_,!(r||!l()||_.key!=="Tab")&&O.activeElement===x.current&&_.shiftKey&&(c.current=!0,p.current&&p.current.focus())},$=()=>{const _=x.current;if(_===null)return;if(!O.hasFocus()||!l()||c.current){c.current=!1;return}if(_.contains(O.activeElement)||r&&O.activeElement!==f.current&&O.activeElement!==p.current)return;if(O.activeElement!==g.current)g.current=null;else if(g.current!==null)return;if(!S.current)return;let M=[];if((O.activeElement===f.current||O.activeElement===p.current)&&(M=s(x.current)),M.length>0){var F,B;const G=!!((F=w.current)!=null&&F.shiftKey&&((B=w.current)==null?void 0:B.key)==="Tab"),W=M[0],H=M[M.length-1];typeof W!="string"&&typeof H!="string"&&(G?H.focus():W.focus())}else _.focus()};O.addEventListener("focusin",$),O.addEventListener("keydown",A,!0);const T=setInterval(()=>{O.activeElement&&O.activeElement.tagName==="BODY"&&$()},50);return()=>{clearInterval(T),O.removeEventListener("focusin",$),O.removeEventListener("keydown",A,!0)}},[n,r,o,l,u,s]);const P=O=>{m.current===null&&(m.current=O.relatedTarget),S.current=!0,g.current=O.target;const A=t.props.onFocus;A&&A(O)},R=O=>{m.current===null&&(m.current=O.relatedTarget),S.current=!0};return y.jsxs(E.Fragment,{children:[y.jsx("div",{tabIndex:u?0:-1,onFocus:R,ref:f,"data-testid":"sentinelStart"}),E.cloneElement(t,{ref:b,onFocus:P}),y.jsx("div",{tabIndex:u?0:-1,onFocus:R,ref:p,"data-testid":"sentinelEnd"})]})}function DH(e){return typeof e=="function"?e():e}function FH(e){return e?e.props.hasOwnProperty("in"):!1}const BH=new $H;function zH(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=BH,closeAfterTransition:s=!1,onTransitionEnter:l,onTransitionExited:u,children:c,onClose:f,open:p,rootRef:m}=e,g=E.useRef({}),S=E.useRef(null),x=E.useRef(null),b=Gt(x,m),[w,P]=E.useState(!p),R=FH(c);let O=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(O=!1);const A=()=>An(S.current),$=()=>(g.current.modalRef=x.current,g.current.mount=S.current,g.current),T=()=>{o.mount($(),{disableScrollLock:r}),x.current&&(x.current.scrollTop=0)},_=Nn(()=>{const Z=DH(t)||A().body;o.add($(),Z),x.current&&T()}),M=E.useCallback(()=>o.isTopModal($()),[o]),F=Nn(Z=>{S.current=Z,Z&&(p&&M()?T():x.current&&zc(x.current,O))}),B=E.useCallback(()=>{o.remove($(),O)},[O,o]);E.useEffect(()=>()=>{B()},[B]),E.useEffect(()=>{p?_():(!R||!s)&&B()},[p,B,R,s,_]);const G=Z=>X=>{var N;(N=Z.onKeyDown)==null||N.call(Z,X),!(X.key!=="Escape"||X.which===229||!M())&&(n||(X.stopPropagation(),f&&f(X,"escapeKeyDown")))},W=Z=>X=>{var N;(N=Z.onClick)==null||N.call(Z,X),X.target===X.currentTarget&&f&&f(X,"backdropClick")};return{getRootProps:(Z={})=>{const X=rf(e);delete X.onTransitionEnter,delete X.onTransitionExited;const N=k({},X,Z);return k({role:"presentation"},N,{onKeyDown:G(N),ref:b})},getBackdropProps:(Z={})=>{const X=Z;return k({"aria-hidden":!0},X,{onClick:W(X),open:p})},getTransitionProps:()=>{const Z=()=>{P(!1),l&&l()},X=()=>{P(!0),u&&u(),s&&B()};return{onEnter:og(Z,c==null?void 0:c.props.onEnter),onExited:og(X,c==null?void 0:c.props.onExited)}},rootRef:b,portalRef:F,isTopModal:M,exited:w,hasTransition:R}}function UH(e){return Ie("MuiModal",e)}Ne("MuiModal",["root","hidden","backdrop"]);const WH=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],HH=e=>{const{open:t,exited:n,classes:r}=e;return Le({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},UH,r)},VH=re("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>k({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),KH=re(LE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Gg=E.forwardRef(function(t,n){var r,o,s,l,u,c;const f=Fe({name:"MuiModal",props:t}),{BackdropComponent:p=KH,BackdropProps:m,className:g,closeAfterTransition:S=!1,children:x,container:b,component:w,components:P={},componentsProps:R={},disableAutoFocus:O=!1,disableEnforceFocus:A=!1,disableEscapeKeyDown:$=!1,disablePortal:T=!1,disableRestoreFocus:_=!1,disableScrollLock:M=!1,hideBackdrop:F=!1,keepMounted:B=!1,onBackdropClick:G,open:W,slotProps:H,slots:z}=f,te=ge(f,WH),Z=k({},f,{closeAfterTransition:S,disableAutoFocus:O,disableEnforceFocus:A,disableEscapeKeyDown:$,disablePortal:T,disableRestoreFocus:_,disableScrollLock:M,hideBackdrop:F,keepMounted:B}),{getRootProps:X,getBackdropProps:N,getTransitionProps:Y,portalRef:ce,isTopModal:L,exited:se,hasTransition:Oe}=zH(k({},Z,{rootRef:n})),ve=k({},Z,{exited:se}),xe=HH(ve),he={};if(x.props.tabIndex===void 0&&(he.tabIndex="-1"),Oe){const{onEnter:Je,onExited:ct}=Y();he.onEnter=Je,he.onExited=ct}const Me=(r=(o=z==null?void 0:z.root)!=null?o:P.Root)!=null?r:VH,de=(s=(l=z==null?void 0:z.backdrop)!=null?l:P.Backdrop)!=null?s:p,ke=(u=H==null?void 0:H.root)!=null?u:R.root,Qe=(c=H==null?void 0:H.backdrop)!=null?c:R.backdrop,He=or({elementType:Me,externalSlotProps:ke,externalForwardedProps:te,getSlotProps:X,additionalProps:{ref:n,as:w},ownerState:ve,className:ye(g,ke==null?void 0:ke.className,xe==null?void 0:xe.root,!ve.open&&ve.exited&&(xe==null?void 0:xe.hidden))}),Be=or({elementType:de,externalSlotProps:Qe,additionalProps:m,getSlotProps:Je=>N(k({},Je,{onClick:ct=>{G&&G(ct),Je!=null&&Je.onClick&&Je.onClick(ct)}})),className:ye(Qe==null?void 0:Qe.className,m==null?void 0:m.className,xe==null?void 0:xe.backdrop),ownerState:ve});return!B&&!W&&(!Oe||se)?null:y.jsx(TE,{ref:ce,container:b,disablePortal:T,children:y.jsxs(Me,k({},He,{children:[!F&&p?y.jsx(de,k({},Be)):null,y.jsx(LH,{disableEnforceFocus:A,disableAutoFocus:O,disableRestoreFocus:_,isEnabled:L,open:W,children:E.cloneElement(x,he)})]}))})});function GH(e){return Ie("MuiDialog",e)}const qg=Ne("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),QE=E.createContext({}),qH=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],QH=re(LE,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),YH=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,l={root:["root"],container:["container",`scroll${ie(n)}`],paper:["paper",`paperScroll${ie(n)}`,`paperWidth${ie(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return Le(l,GH,t)},XH=re(Gg,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),JH=re("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ie(n.scroll)}`]]}})(({ownerState:e})=>k({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),ZH=re(io,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ie(n.scroll)}`],t[`paperWidth${ie(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>k({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${qg.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${qg.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${qg.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Qg=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialog"}),o=xr(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":l,"aria-labelledby":u,BackdropComponent:c,BackdropProps:f,children:p,className:m,disableEscapeKeyDown:g=!1,fullScreen:S=!1,fullWidth:x=!1,maxWidth:b="sm",onBackdropClick:w,onClick:P,onClose:R,open:O,PaperComponent:A=io,PaperProps:$={},scroll:T="paper",TransitionComponent:_=NE,transitionDuration:M=s,TransitionProps:F}=r,B=ge(r,qH),G=k({},r,{disableEscapeKeyDown:g,fullScreen:S,fullWidth:x,maxWidth:b,scroll:T}),W=YH(G),H=E.useRef(),z=N=>{H.current=N.target===N.currentTarget},te=N=>{P&&P(N),H.current&&(H.current=null,w&&w(N),R&&R(N,"backdropClick"))},Z=Ia(u),X=E.useMemo(()=>({titleId:Z}),[Z]);return y.jsx(XH,k({className:ye(W.root,m),closeAfterTransition:!0,components:{Backdrop:QH},componentsProps:{backdrop:k({transitionDuration:M,as:c},f)},disableEscapeKeyDown:g,onClose:R,open:O,ref:n,onClick:te,ownerState:G},B,{children:y.jsx(_,k({appear:!0,in:O,timeout:M,role:"presentation"},F,{children:y.jsx(JH,{className:ye(W.container),onMouseDown:z,ownerState:G,children:y.jsx(ZH,k({as:A,elevation:24,role:"dialog","aria-describedby":l,"aria-labelledby":Z},$,{className:ye(W.paper,$.className),ownerState:G,children:y.jsx(QE.Provider,{value:X,children:p})}))})}))}))});function e7(e){return Ie("MuiDialogActions",e)}Ne("MuiDialogActions",["root","spacing"]);const t7=["className","disableSpacing"],n7=e=>{const{classes:t,disableSpacing:n}=e;return Le({root:["root",!n&&"spacing"]},e7,t)},r7=re("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>k({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Yg=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1}=r,l=ge(r,t7),u=k({},r,{disableSpacing:s}),c=n7(u);return y.jsx(r7,k({className:ye(c.root,o),ownerState:u,ref:n},l))});function o7(e){return Ie("MuiDialogContent",e)}Ne("MuiDialogContent",["root","dividers"]);function i7(e){return Ie("MuiDialogTitle",e)}const s7=Ne("MuiDialogTitle",["root"]),a7=["className","dividers"],l7=e=>{const{classes:t,dividers:n}=e;return Le({root:["root",n&&"dividers"]},o7,t)},c7=re("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>k({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${s7.root} + &`]:{paddingTop:0}})),Xg=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1}=r,l=ge(r,a7),u=k({},r,{dividers:s}),c=l7(u);return y.jsx(c7,k({className:ye(c.root,o),ownerState:u,ref:n},l))});function u7(e){return Ie("MuiDialogContentText",e)}Ne("MuiDialogContentText",["root"]);const d7=["children","className"],f7=e=>{const{classes:t}=e,r=Le({root:["root"]},u7,t);return k({},t,r)},p7=re(bn,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),h7=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogContentText"}),{className:o}=r,s=ge(r,d7),l=f7(s);return y.jsx(p7,k({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:s,className:ye(l.root,o)},r,{classes:l}))}),m7=["className","id"],g7=e=>{const{classes:t}=e;return Le({root:["root"]},i7,t)},y7=re(bn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Jg=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogTitle"}),{className:o,id:s}=r,l=ge(r,m7),u=r,c=g7(u),{titleId:f=s}=E.useContext(QE);return y.jsx(y7,k({component:"h2",className:ye(c.root,o),ownerState:u,ref:n,variant:"h6",id:s??f},l))});function v7(e){return Ie("MuiDivider",e)}const YE=Ne("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),b7=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],x7=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:s,orientation:l,textAlign:u,variant:c}=e;return Le({root:["root",t&&"absolute",c,s&&"light",l==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&l==="vertical"&&"withChildrenVertical",u==="right"&&l!=="vertical"&&"textAlignRight",u==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},v7,r)},w7=re("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>k({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:mt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>k({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>k({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>k({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>k({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),S7=re("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>k({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Uc=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDivider"}),{absolute:o=!1,children:s,className:l,component:u=s?"div":"hr",flexItem:c=!1,light:f=!1,orientation:p="horizontal",role:m=u!=="hr"?"separator":void 0,textAlign:g="center",variant:S="fullWidth"}=r,x=ge(r,b7),b=k({},r,{absolute:o,component:u,flexItem:c,light:f,orientation:p,role:m,textAlign:g,variant:S}),w=x7(b);return y.jsx(w7,k({as:u,className:ye(w.root,l),role:m,ref:n,ownerState:b},x,{children:s?y.jsx(S7,{className:w.wrapper,ownerState:b,children:s}):null}))});Uc.muiSkipListHighlight=!0;const C7=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function E7(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),s=Co(t);let l;if(t.fakeTransform)l=t.fakeTransform;else{const f=s.getComputedStyle(t);l=f.getPropertyValue("-webkit-transform")||f.getPropertyValue("transform")}let u=0,c=0;if(l&&l!=="none"&&typeof l=="string"){const f=l.split("(")[1].split(")")[0].split(",");u=parseInt(f[4],10),c=parseInt(f[5],10)}return e==="left"?o?`translateX(${o.right+u-r.left}px)`:`translateX(${s.innerWidth+u-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-u}px)`:`translateX(-${r.left+r.width-u}px)`:e==="up"?o?`translateY(${o.bottom+c-r.top}px)`:`translateY(${s.innerHeight+c-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-c}px)`:`translateY(-${r.top+r.height-c}px)`}function R7(e){return typeof e=="function"?e():e}function Pf(e,t,n){const r=R7(n),o=E7(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const k7=E.forwardRef(function(t,n){const r=xr(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:l,appear:u=!0,children:c,container:f,direction:p="down",easing:m=o,in:g,onEnter:S,onEntered:x,onEntering:b,onExit:w,onExited:P,onExiting:R,style:O,timeout:A=s,TransitionComponent:$=Lr}=t,T=ge(t,C7),_=E.useRef(null),M=Gt(c.ref,_,n),F=N=>Y=>{N&&(Y===void 0?N(_.current):N(_.current,Y))},B=F((N,Y)=>{Pf(p,N,f),df(N),S&&S(N,Y)}),G=F((N,Y)=>{const ce=Vo({timeout:A,style:O,easing:m},{mode:"enter"});N.style.webkitTransition=r.transitions.create("-webkit-transform",k({},ce)),N.style.transition=r.transitions.create("transform",k({},ce)),N.style.webkitTransform="none",N.style.transform="none",b&&b(N,Y)}),W=F(x),H=F(R),z=F(N=>{const Y=Vo({timeout:A,style:O,easing:m},{mode:"exit"});N.style.webkitTransition=r.transitions.create("-webkit-transform",Y),N.style.transition=r.transitions.create("transform",Y),Pf(p,N,f),w&&w(N)}),te=F(N=>{N.style.webkitTransition="",N.style.transition="",P&&P(N)}),Z=N=>{l&&l(_.current,N)},X=E.useCallback(()=>{_.current&&Pf(p,_.current,f)},[p,f]);return E.useEffect(()=>{if(g||p==="down"||p==="right")return;const N=Sc(()=>{_.current&&Pf(p,_.current,f)}),Y=Co(_.current);return Y.addEventListener("resize",N),()=>{N.clear(),Y.removeEventListener("resize",N)}},[p,g,f]),E.useEffect(()=>{g||X()},[g,X]),y.jsx($,k({nodeRef:_,onEnter:B,onEntered:W,onEntering:G,onExit:z,onExited:te,onExiting:H,addEndListener:Z,appear:u,in:g,timeout:A},T,{children:(N,Y)=>E.cloneElement(c,k({ref:M,style:k({visibility:N==="exited"&&!g?"hidden":void 0},O,c.props.style)},Y))}))});function P7(e){return Ie("MuiDrawer",e)}Ne("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const T7=["BackdropProps"],O7=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],XE=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},$7=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ie(n)}`,r!=="temporary"&&`paperAnchorDocked${ie(n)}`]};return Le(o,P7,t)},A7=re(Gg,{name:"MuiDrawer",slot:"Root",overridesResolver:XE})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),JE=re("div",{shouldForwardProp:Tn,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:XE})({flex:"0 0 auto"}),j7=re(io,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${ie(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${ie(n.anchor)}`]]}})(({theme:e,ownerState:t})=>k({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),ZE={left:"right",right:"left",top:"down",bottom:"up"};function _7(e){return["left","right"].indexOf(e)!==-1}function I7({direction:e},t){return e==="rtl"&&_7(t)?ZE[t]:t}const eR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDrawer"}),o=xr(),s=Ec(),l={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:u="left",BackdropProps:c,children:f,className:p,elevation:m=16,hideBackdrop:g=!1,ModalProps:{BackdropProps:S}={},onClose:x,open:b=!1,PaperProps:w={},SlideProps:P,TransitionComponent:R=k7,transitionDuration:O=l,variant:A="temporary"}=r,$=ge(r.ModalProps,T7),T=ge(r,O7),_=E.useRef(!1);E.useEffect(()=>{_.current=!0},[]);const M=I7({direction:s?"rtl":"ltr"},u),B=k({},r,{anchor:u,elevation:m,open:b,variant:A},T),G=$7(B),W=y.jsx(j7,k({elevation:A==="temporary"?m:0,square:!0},w,{className:ye(G.paper,w.className),ownerState:B,children:f}));if(A==="permanent")return y.jsx(JE,k({className:ye(G.root,G.docked,p),ownerState:B,ref:n},T,{children:W}));const H=y.jsx(R,k({in:b,direction:ZE[M],timeout:O,appear:_.current},P,{children:W}));return A==="persistent"?y.jsx(JE,k({className:ye(G.root,G.docked,p),ownerState:B,ref:n},T,{children:H})):y.jsx(A7,k({BackdropProps:k({},c,S,{transitionDuration:O}),className:ye(G.root,G.modal,p),open:b,ownerState:B,onClose:x,hideBackdrop:g,ref:n},T,$,{children:H}))});function M7(e){return Ie("MuiFab",e)}const tR=Ne("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),N7=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],L7=e=>{const{color:t,variant:n,classes:r,size:o}=e,s={root:["root",n,`size${ie(o)}`,t==="inherit"?"colorInherit":t]},l=Le(s,M7,r);return k({},r,l)},D7=re(Dr,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Tn(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ie(n.size)}`],n.color==="inherit"&&t.colorInherit,t[ie(n.size)],t[n.color]]}})(({theme:e,ownerState:t})=>{var n,r;return k({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${tR.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>k({},t.color!=="inherit"&&t.color!=="default"&&(e.vars||e).palette[t.color]!=null&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}}),({theme:e})=>({[`&.${tR.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),Zg=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFab"}),{children:o,className:s,color:l="default",component:u="button",disabled:c=!1,disableFocusRipple:f=!1,focusVisibleClassName:p,size:m="large",variant:g="circular"}=r,S=ge(r,N7),x=k({},r,{color:l,component:u,disabled:c,disableFocusRipple:f,size:m,variant:g}),b=L7(x);return y.jsx(D7,k({className:ye(b.root,s),component:u,disabled:c,focusRipple:!f,focusVisibleClassName:ye(b.focusVisible,p),ownerState:x,ref:n},S,{classes:b,children:o}))}),F7=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],B7=e=>{const{classes:t,disableUnderline:n}=e,o=Le({root:["root",!n&&"underline"],input:["input"]},LW,t);return k({},t,o)},z7=re(Cf,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...wf(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",l=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",u=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return k({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:l,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s}},[`&.${zr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s},[`&.${zr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:u}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${zr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${zr.disabled}, .${zr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${zr.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&k({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),U7=re(Ef,{name:"MuiFilledInput",slot:"Input",overridesResolver:Sf})(({theme:e,ownerState:t})=>k({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),ey=E.forwardRef(function(t,n){var r,o,s,l;const u=Fe({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:f,fullWidth:p=!1,inputComponent:m="input",multiline:g=!1,slotProps:S,slots:x={},type:b="text"}=u,w=ge(u,F7),P=k({},u,{fullWidth:p,inputComponent:m,multiline:g,type:b}),R=B7(u),O={root:{ownerState:P},input:{ownerState:P}},A=S??f?rr(O,S??f):O,$=(r=(o=x.root)!=null?o:c.Root)!=null?r:z7,T=(s=(l=x.input)!=null?l:c.Input)!=null?s:U7;return y.jsx(Fg,k({slots:{root:$,input:T},componentsProps:A,fullWidth:p,inputComponent:m,multiline:g,ref:n,type:b},w,{classes:R}))});ey.muiName="Input";function W7(e){return Ie("MuiFormControl",e)}Ne("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const H7=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],V7=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ie(n)}`,r&&"fullWidth"]};return Le(o,W7,t)},K7=re("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>k({},t.root,t[`margin${ie(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>k({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Tf=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormControl"}),{children:o,className:s,color:l="primary",component:u="div",disabled:c=!1,error:f=!1,focused:p,fullWidth:m=!1,hiddenLabel:g=!1,margin:S="none",required:x=!1,size:b="medium",variant:w="outlined"}=r,P=ge(r,H7),R=k({},r,{color:l,component:u,disabled:c,error:f,fullWidth:m,hiddenLabel:g,margin:S,required:x,size:b,variant:w}),O=V7(R),[A,$]=E.useState(()=>{let H=!1;return o&&E.Children.forEach(o,z=>{if(!_a(z,["Input","Select"]))return;const te=_a(z,["Select"])?z.props.input:z;te&&$W(te.props)&&(H=!0)}),H}),[T,_]=E.useState(()=>{let H=!1;return o&&E.Children.forEach(o,z=>{_a(z,["Input","Select"])&&(xf(z.props,!0)||xf(z.props.inputProps,!0))&&(H=!0)}),H}),[M,F]=E.useState(!1);c&&M&&F(!1);const B=p!==void 0&&!c?p:M;let G;const W=E.useMemo(()=>({adornedStart:A,setAdornedStart:$,color:l,disabled:c,error:f,filled:T,focused:B,fullWidth:m,hiddenLabel:g,size:b,onBlur:()=>{F(!1)},onEmpty:()=>{_(!1)},onFilled:()=>{_(!0)},onFocus:()=>{F(!0)},registerEffect:G,required:x,variant:w}),[A,l,c,f,T,B,m,g,G,x,b,w]);return y.jsx(Dg.Provider,{value:W,children:y.jsx(K7,k({as:u,ownerState:R,className:ye(O.root,s),ref:n},P,{children:o}))})}),sr=x3({createStyledComponent:re("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Fe({props:e,name:"MuiStack"})});function G7(e){return Ie("MuiFormControlLabel",e)}const Wc=Ne("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),q7=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Q7=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:s}=e,l={root:["root",n&&"disabled",`labelPlacement${ie(r)}`,o&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Le(l,G7,t)},Y7=re("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Wc.label}`]:t.label},t.root,t[`labelPlacement${ie(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>k({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Wc.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Wc.label}`]:{[`&.${Wc.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),X7=re("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Wc.error}`]:{color:(e.vars||e).palette.error.main}})),ty=E.forwardRef(function(t,n){var r,o;const s=Fe({props:t,name:"MuiFormControlLabel"}),{className:l,componentsProps:u={},control:c,disabled:f,disableTypography:p,label:m,labelPlacement:g="end",required:S,slotProps:x={}}=s,b=ge(s,q7),w=yi(),P=(r=f??c.props.disabled)!=null?r:w==null?void 0:w.disabled,R=S??c.props.required,O={disabled:P,required:R};["checked","name","onChange","value","inputRef"].forEach(F=>{typeof c.props[F]>"u"&&typeof s[F]<"u"&&(O[F]=s[F])});const A=Ui({props:s,muiFormControl:w,states:["error"]}),$=k({},s,{disabled:P,labelPlacement:g,required:R,error:A.error}),T=Q7($),_=(o=x.typography)!=null?o:u.typography;let M=m;return M!=null&&M.type!==bn&&!p&&(M=y.jsx(bn,k({component:"span"},_,{className:ye(T.label,_==null?void 0:_.className),children:M}))),y.jsxs(Y7,k({className:ye(T.root,l),ownerState:$,ref:n},b,{children:[E.cloneElement(c,O),R?y.jsxs(sr,{display:"block",children:[M,y.jsxs(X7,{ownerState:$,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]}):M]}))});function J7(e){return Ie("MuiFormGroup",e)}Ne("MuiFormGroup",["root","row","error"]);const Z7=["className","row"],eV=e=>{const{classes:t,row:n,error:r}=e;return Le({root:["root",n&&"row",r&&"error"]},J7,t)},tV=re("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>k({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),nV=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormGroup"}),{className:o,row:s=!1}=r,l=ge(r,Z7),u=yi(),c=Ui({props:r,muiFormControl:u,states:["error"]}),f=k({},r,{row:s,error:c.error}),p=eV(f);return y.jsx(tV,k({className:ye(p.root,o),ownerState:f,ref:n},l))});function rV(e){return Ie("MuiFormHelperText",e)}const nR=Ne("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var rR;const oV=["children","className","component","disabled","error","filled","focused","margin","required","variant"],iV=e=>{const{classes:t,contained:n,size:r,disabled:o,error:s,filled:l,focused:u,required:c}=e,f={root:["root",o&&"disabled",s&&"error",r&&`size${ie(r)}`,n&&"contained",u&&"focused",l&&"filled",c&&"required"]};return Le(f,rV,t)},sV=re("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ie(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${nR.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${nR.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),aV=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:l="p"}=r,u=ge(r,oV),c=yi(),f=Ui({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),p=k({},r,{component:l,contained:f.variant==="filled"||f.variant==="outlined",variant:f.variant,size:f.size,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required}),m=iV(p);return y.jsx(sV,k({as:l,ownerState:p,className:ye(m.root,s),ref:n},u,{children:o===" "?rR||(rR=y.jsx("span",{className:"notranslate",children:""})):o}))});function lV(e){return Ie("MuiFormLabel",e)}const Hc=Ne("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),cV=["children","className","color","component","disabled","error","filled","focused","required"],uV=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:l,required:u}=e,c={root:["root",`color${ie(n)}`,o&&"disabled",s&&"error",l&&"filled",r&&"focused",u&&"required"],asterisk:["asterisk",s&&"error"]};return Le(c,lV,t)},dV=re("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>k({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Hc.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Hc.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Hc.error}`]:{color:(e.vars||e).palette.error.main}})),fV=re("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Hc.error}`]:{color:(e.vars||e).palette.error.main}})),pV=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormLabel"}),{children:o,className:s,component:l="label"}=r,u=ge(r,cV),c=yi(),f=Ui({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),p=k({},r,{color:f.color||"primary",component:l,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required}),m=uV(p);return y.jsxs(dV,k({as:l,ownerState:p,className:ye(m.root,s),ref:n},u,{children:[o,f.required&&y.jsxs(fV,{ownerState:p,"aria-hidden":!0,className:m.asterisk,children:[" ","*"]})]}))}),vi=f3({createStyledComponent:re("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>Fe({props:e,name:"MuiGrid2"})}),hV=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ny(e){return`scale(${e}, ${e**2})`}const mV={entering:{opacity:1,transform:ny(1)},entered:{opacity:1,transform:"none"}},ry=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ja=E.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:l,in:u,onEnter:c,onEntered:f,onEntering:p,onExit:m,onExited:g,onExiting:S,style:x,timeout:b="auto",TransitionComponent:w=Lr}=t,P=ge(t,hV),R=hi(),O=E.useRef(),A=xr(),$=E.useRef(null),T=Gt($,s.ref,n),_=te=>Z=>{if(te){const X=$.current;Z===void 0?te(X):te(X,Z)}},M=_(p),F=_((te,Z)=>{df(te);const{duration:X,delay:N,easing:Y}=Vo({style:x,timeout:b,easing:l},{mode:"enter"});let ce;b==="auto"?(ce=A.transitions.getAutoHeightDuration(te.clientHeight),O.current=ce):ce=X,te.style.transition=[A.transitions.create("opacity",{duration:ce,delay:N}),A.transitions.create("transform",{duration:ry?ce:ce*.666,delay:N,easing:Y})].join(","),c&&c(te,Z)}),B=_(f),G=_(S),W=_(te=>{const{duration:Z,delay:X,easing:N}=Vo({style:x,timeout:b,easing:l},{mode:"exit"});let Y;b==="auto"?(Y=A.transitions.getAutoHeightDuration(te.clientHeight),O.current=Y):Y=Z,te.style.transition=[A.transitions.create("opacity",{duration:Y,delay:X}),A.transitions.create("transform",{duration:ry?Y:Y*.666,delay:ry?X:X||Y*.333,easing:N})].join(","),te.style.opacity=0,te.style.transform=ny(.75),m&&m(te)}),H=_(g),z=te=>{b==="auto"&&R.start(O.current||0,te),r&&r($.current,te)};return y.jsx(w,k({appear:o,in:u,nodeRef:$,onEnter:F,onEntered:B,onEntering:M,onExit:W,onExited:H,onExiting:G,addEndListener:z,timeout:b==="auto"?null:b},P,{children:(te,Z)=>E.cloneElement(s,k({style:k({opacity:0,transform:ny(.75),visibility:te==="exited"&&!u?"hidden":void 0},mV[te],x,s.props.style),ref:T},Z))}))});Ja.muiSupportAuto=!0;const gV=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],yV=e=>{const{classes:t,disableUnderline:n}=e,o=Le({root:["root",!n&&"underline"],input:["input"]},MW,t);return k({},t,o)},vV=re(Cf,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...wf(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),k({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Wi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wi.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Wi.disabled}, .${Wi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Wi.disabled}:before`]:{borderBottomStyle:"dotted"}})}),bV=re(Ef,{name:"MuiInput",slot:"Input",overridesResolver:Sf})({}),oy=E.forwardRef(function(t,n){var r,o,s,l;const u=Fe({props:t,name:"MuiInput"}),{disableUnderline:c,components:f={},componentsProps:p,fullWidth:m=!1,inputComponent:g="input",multiline:S=!1,slotProps:x,slots:b={},type:w="text"}=u,P=ge(u,gV),R=yV(u),A={root:{ownerState:{disableUnderline:c}}},$=x??p?rr(x??p,A):A,T=(r=(o=b.root)!=null?o:f.Root)!=null?r:vV,_=(s=(l=b.input)!=null?l:f.Input)!=null?s:bV;return y.jsx(Fg,k({slots:{root:T,input:_},slotProps:$,fullWidth:m,inputComponent:g,multiline:S,ref:n,type:w},P,{classes:R}))});oy.muiName="Input";function xV(e){return Ie("MuiInputLabel",e)}Ne("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const wV=["disableAnimation","margin","shrink","variant","className"],SV=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:l,required:u}=e,c={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&r!=="normal"&&`size${ie(r)}`,l],asterisk:[u&&"asterisk"]},f=Le(c,xV,t);return k({},t,f)},CV=re(pV,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Hc.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>k({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&k({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&k({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&k({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Of=E.forwardRef(function(t,n){const r=Fe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:s,className:l}=r,u=ge(r,wV),c=yi();let f=s;typeof f>"u"&&c&&(f=c.filled||c.focused||c.adornedStart);const p=Ui({props:r,muiFormControl:c,states:["size","variant","required","focused"]}),m=k({},r,{disableAnimation:o,formControl:c,shrink:f,size:p.size,variant:p.variant,required:p.required,focused:p.focused}),g=SV(m);return y.jsx(CV,k({"data-shrink":f,ownerState:m,ref:n,className:ye(g.root,l)},u,{classes:g}))});function EV(e){return Ie("MuiLink",e)}const RV=Ne("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),oR={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},kV=e=>oR[e]||e,PV=({theme:e,ownerState:t})=>{const n=kV(t.color),r=Oa(e,`palette.${n}`,!1)||t.color,o=Oa(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:mt(r,.4)},TV=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],OV=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,s={root:["root",`underline${ie(o)}`,n==="button"&&"button",r&&"focusVisible"]};return Le(s,EV,t)},$V=re(bn,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ie(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>k({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&k({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:PV({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${RV.focusVisible}`]:{outline:"auto"}})),iy=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiLink"}),{className:o,color:s="primary",component:l="a",onBlur:u,onFocus:c,TypographyClasses:f,underline:p="always",variant:m="inherit",sx:g}=r,S=ge(r,TV),{isFocusVisibleRef:x,onBlur:b,onFocus:w,ref:P}=ag(),[R,O]=E.useState(!1),A=Gt(n,P),$=F=>{b(F),x.current===!1&&O(!1),u&&u(F)},T=F=>{w(F),x.current===!0&&O(!0),c&&c(F)},_=k({},r,{color:s,component:l,focusVisible:R,underline:p,variant:m}),M=OV(_);return y.jsx($V,k({color:s,className:ye(M.root,o),classes:f,component:l,onBlur:$,onFocus:T,ref:A,ownerState:_,variant:m,sx:[...Object.keys(oR).includes(s)?[]:[{color:s}],...Array.isArray(g)?g:[g]]},S))}),Ro=E.createContext({});function AV(e){return Ie("MuiList",e)}Ne("MuiList",["root","padding","dense","subheader"]);const jV=["children","className","component","dense","disablePadding","subheader"],_V=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Le({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},AV,t)},IV=re("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>k({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),iR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiList"}),{children:o,className:s,component:l="ul",dense:u=!1,disablePadding:c=!1,subheader:f}=r,p=ge(r,jV),m=E.useMemo(()=>({dense:u}),[u]),g=k({},r,{component:l,dense:u,disablePadding:c}),S=_V(g);return y.jsx(Ro.Provider,{value:m,children:y.jsxs(IV,k({as:l,className:ye(S.root,s),ref:n,ownerState:g},p,{children:[f,o]}))})});function MV(e){return Ie("MuiListItem",e)}const Za=Ne("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function NV(e){return Ie("MuiListItemButton",e)}const el=Ne("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),LV=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],DV=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},FV=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:s,divider:l,selected:u}=e,f=Le({root:["root",r&&"dense",!s&&"gutters",l&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",u&&"selected"]},NV,n);return k({},n,f)},BV=re(Dr,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:DV})(({theme:e,ownerState:t})=>k({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${el.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${el.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${el.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${el.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${el.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),zV=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:s=!1,component:l="div",children:u,dense:c=!1,disableGutters:f=!1,divider:p=!1,focusVisibleClassName:m,selected:g=!1,className:S}=r,x=ge(r,LV),b=E.useContext(Ro),w=E.useMemo(()=>({dense:c||b.dense||!1,alignItems:o,disableGutters:f}),[o,b.dense,c,f]),P=E.useRef(null);br(()=>{s&&P.current&&P.current.focus()},[s]);const R=k({},r,{alignItems:o,dense:w.dense,disableGutters:f,divider:p,selected:g}),O=FV(R),A=Gt(P,n);return y.jsx(Ro.Provider,{value:w,children:y.jsx(BV,k({ref:A,href:x.href||x.to,component:(x.href||x.to)&&l==="div"?"button":l,focusVisibleClassName:ye(O.focusVisible,m),ownerState:R,className:ye(O.root,S)},x,{classes:O,children:u}))})});function UV(e){return Ie("MuiListItemSecondaryAction",e)}Ne("MuiListItemSecondaryAction",["root","disableGutters"]);const WV=["className"],HV=e=>{const{disableGutters:t,classes:n}=e;return Le({root:["root",t&&"disableGutters"]},UV,n)},VV=re("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>k({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),sR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,s=ge(r,WV),l=E.useContext(Ro),u=k({},r,{disableGutters:l.disableGutters}),c=HV(u);return y.jsx(VV,k({className:ye(c.root,o),ownerState:u,ref:n},s))});sR.muiName="ListItemSecondaryAction";const KV=["className"],GV=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],qV=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},QV=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:s,disableGutters:l,disablePadding:u,divider:c,hasSecondaryAction:f,selected:p}=e;return Le({root:["root",o&&"dense",!l&&"gutters",!u&&"padding",c&&"divider",s&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",f&&"secondaryAction",p&&"selected"],container:["container"]},MV,r)},YV=re("div",{name:"MuiListItem",slot:"Root",overridesResolver:qV})(({theme:e,ownerState:t})=>k({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&k({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${el.root}`]:{paddingRight:48}},{[`&.${Za.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Za.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Za.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Za.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Za.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),XV=re("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),JV=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:s=!1,button:l=!1,children:u,className:c,component:f,components:p={},componentsProps:m={},ContainerComponent:g="li",ContainerProps:{className:S}={},dense:x=!1,disabled:b=!1,disableGutters:w=!1,disablePadding:P=!1,divider:R=!1,focusVisibleClassName:O,secondaryAction:A,selected:$=!1,slotProps:T={},slots:_={}}=r,M=ge(r.ContainerProps,KV),F=ge(r,GV),B=E.useContext(Ro),G=E.useMemo(()=>({dense:x||B.dense||!1,alignItems:o,disableGutters:w}),[o,B.dense,x,w]),W=E.useRef(null);br(()=>{s&&W.current&&W.current.focus()},[s]);const H=E.Children.toArray(u),z=H.length&&_a(H[H.length-1],["ListItemSecondaryAction"]),te=k({},r,{alignItems:o,autoFocus:s,button:l,dense:G.dense,disabled:b,disableGutters:w,disablePadding:P,divider:R,hasSecondaryAction:z,selected:$}),Z=QV(te),X=Gt(W,n),N=_.root||p.Root||YV,Y=T.root||m.root||{},ce=k({className:ye(Z.root,Y.className,c),disabled:b},F);let L=f||"li";return l&&(ce.component=f||"div",ce.focusVisibleClassName=ye(Za.focusVisible,O),L=Dr),z?(L=!ce.component&&!f?"div":L,g==="li"&&(L==="li"?L="div":ce.component==="li"&&(ce.component="div")),y.jsx(Ro.Provider,{value:G,children:y.jsxs(XV,k({as:g,className:ye(Z.container,S),ref:X,ownerState:te},M,{children:[y.jsx(N,k({},Y,!Na(N)&&{as:L,ownerState:k({},te,Y.ownerState)},ce,{children:H})),H.pop()]}))})):y.jsx(Ro.Provider,{value:G,children:y.jsxs(N,k({},Y,{as:L,ref:X},!Na(N)&&{ownerState:k({},te,Y.ownerState)},ce,{children:[H,A&&y.jsx(sR,{children:A})]}))})});function ZV(e){return Ie("MuiListItemIcon",e)}const aR=Ne("MuiListItemIcon",["root","alignItemsFlexStart"]),eK=["className"],tK=e=>{const{alignItems:t,classes:n}=e;return Le({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},ZV,n)},nK=re("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>k({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),lR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItemIcon"}),{className:o}=r,s=ge(r,eK),l=E.useContext(Ro),u=k({},r,{alignItems:l.alignItems}),c=tK(u);return y.jsx(nK,k({className:ye(c.root,o),ownerState:u,ref:n},s))});function rK(e){return Ie("MuiListItemText",e)}const $f=Ne("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),oK=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],iK=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:s}=e;return Le({root:["root",n&&"inset",s&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},rK,t)},sK=re("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$f.primary}`]:t.primary},{[`& .${$f.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>k({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),cR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItemText"}),{children:o,className:s,disableTypography:l=!1,inset:u=!1,primary:c,primaryTypographyProps:f,secondary:p,secondaryTypographyProps:m}=r,g=ge(r,oK),{dense:S}=E.useContext(Ro);let x=c??o,b=p;const w=k({},r,{disableTypography:l,inset:u,primary:!!x,secondary:!!b,dense:S}),P=iK(w);return x!=null&&x.type!==bn&&!l&&(x=y.jsx(bn,k({variant:S?"body2":"body1",className:P.primary,component:f!=null&&f.variant?void 0:"span",display:"block"},f,{children:x}))),b!=null&&b.type!==bn&&!l&&(b=y.jsx(bn,k({variant:"body2",className:P.secondary,color:"text.secondary",display:"block"},m,{children:b}))),y.jsxs(sK,k({className:ye(P.root,s),ownerState:w,ref:n},g,{children:[x,b]}))}),aK=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function sy(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function uR(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function dR(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Vc(e,t,n,r,o,s){let l=!1,u=o(e,t,t?n:!1);for(;u;){if(u===e.firstChild){if(l)return!1;l=!0}const c=r?!1:u.disabled||u.getAttribute("aria-disabled")==="true";if(!u.hasAttribute("tabindex")||!dR(u,s)||c)u=o(e,u,n);else return u.focus(),!0}return!1}const fR=E.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:s=!1,children:l,className:u,disabledItemsFocusable:c=!1,disableListWrap:f=!1,onKeyDown:p,variant:m="selectedMenu"}=t,g=ge(t,aK),S=E.useRef(null),x=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});br(()=>{o&&S.current.focus()},[o]),E.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(O,{direction:A})=>{const $=!S.current.style.width;if(O.clientHeight<S.current.clientHeight&&$){const T=`${mC(An(O))}px`;S.current.style[A==="rtl"?"paddingLeft":"paddingRight"]=T,S.current.style.width=`calc(100% + ${T})`}return S.current}}),[]);const b=O=>{const A=S.current,$=O.key,T=An(A).activeElement;if($==="ArrowDown")O.preventDefault(),Vc(A,T,f,c,sy);else if($==="ArrowUp")O.preventDefault(),Vc(A,T,f,c,uR);else if($==="Home")O.preventDefault(),Vc(A,null,f,c,sy);else if($==="End")O.preventDefault(),Vc(A,null,f,c,uR);else if($.length===1){const _=x.current,M=$.toLowerCase(),F=performance.now();_.keys.length>0&&(F-_.lastTime>500?(_.keys=[],_.repeating=!0,_.previousKeyMatched=!0):_.repeating&&M!==_.keys[0]&&(_.repeating=!1)),_.lastTime=F,_.keys.push(M);const B=T&&!_.repeating&&dR(T,_);_.previousKeyMatched&&(B||Vc(A,T,!1,c,sy,_))?O.preventDefault():_.previousKeyMatched=!1}p&&p(O)},w=Gt(S,n);let P=-1;E.Children.forEach(l,(O,A)=>{if(!E.isValidElement(O)){P===A&&(P+=1,P>=l.length&&(P=-1));return}O.props.disabled||(m==="selectedMenu"&&O.props.selected||P===-1)&&(P=A),P===A&&(O.props.disabled||O.props.muiSkipListHighlight||O.type.muiSkipListHighlight)&&(P+=1,P>=l.length&&(P=-1))});const R=E.Children.map(l,(O,A)=>{if(A===P){const $={};return s&&($.autoFocus=!0),O.props.tabIndex===void 0&&m==="selectedMenu"&&($.tabIndex=0),E.cloneElement(O,$)}return O});return y.jsx(iR,k({role:"menu",ref:w,className:u,onKeyDown:b,tabIndex:o?0:-1},g,{children:R}))});function lK(e){return Ie("MuiPopover",e)}Ne("MuiPopover",["root","paper"]);const cK=["onEntering"],uK=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],dK=["slotProps"];function pR(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function hR(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function mR(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function ay(e){return typeof e=="function"?e():e}const fK=e=>{const{classes:t}=e;return Le({root:["root"],paper:["paper"]},lK,t)},pK=re(Gg,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gR=re(io,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),yR=E.forwardRef(function(t,n){var r,o,s;const l=Fe({props:t,name:"MuiPopover"}),{action:u,anchorEl:c,anchorOrigin:f={vertical:"top",horizontal:"left"},anchorPosition:p,anchorReference:m="anchorEl",children:g,className:S,container:x,elevation:b=8,marginThreshold:w=16,open:P,PaperProps:R={},slots:O,slotProps:A,transformOrigin:$={vertical:"top",horizontal:"left"},TransitionComponent:T=Ja,transitionDuration:_="auto",TransitionProps:{onEntering:M}={},disableScrollLock:F=!1}=l,B=ge(l.TransitionProps,cK),G=ge(l,uK),W=(r=A==null?void 0:A.paper)!=null?r:R,H=E.useRef(),z=Gt(H,W.ref),te=k({},l,{anchorOrigin:f,anchorReference:m,elevation:b,marginThreshold:w,externalPaperSlotProps:W,transformOrigin:$,TransitionComponent:T,transitionDuration:_,TransitionProps:B}),Z=fK(te),X=E.useCallback(()=>{if(m==="anchorPosition")return p;const Je=ay(c),ot=(Je&&Je.nodeType===1?Je:An(H.current).body).getBoundingClientRect();return{top:ot.top+pR(ot,f.vertical),left:ot.left+hR(ot,f.horizontal)}},[c,f.horizontal,f.vertical,p,m]),N=E.useCallback(Je=>({vertical:pR(Je,$.vertical),horizontal:hR(Je,$.horizontal)}),[$.horizontal,$.vertical]),Y=E.useCallback(Je=>{const ct={width:Je.offsetWidth,height:Je.offsetHeight},ot=N(ct);if(m==="none")return{top:null,left:null,transformOrigin:mR(ot)};const ze=X();let Ot=ze.top-ot.vertical,Ze=ze.left-ot.horizontal;const $t=Ot+ct.height,gt=Ze+ct.width,dt=Co(ay(c)),_t=dt.innerHeight-w,Pt=dt.innerWidth-w;if(w!==null&&Ot<w){const pt=Ot-w;Ot-=pt,ot.vertical+=pt}else if(w!==null&&$t>_t){const pt=$t-_t;Ot-=pt,ot.vertical+=pt}if(w!==null&&Ze<w){const pt=Ze-w;Ze-=pt,ot.horizontal+=pt}else if(gt>Pt){const pt=gt-Pt;Ze-=pt,ot.horizontal+=pt}return{top:`${Math.round(Ot)}px`,left:`${Math.round(Ze)}px`,transformOrigin:mR(ot)}},[c,m,X,N,w]),[ce,L]=E.useState(P),se=E.useCallback(()=>{const Je=H.current;if(!Je)return;const ct=Y(Je);ct.top!==null&&(Je.style.top=ct.top),ct.left!==null&&(Je.style.left=ct.left),Je.style.transformOrigin=ct.transformOrigin,L(!0)},[Y]);E.useEffect(()=>(F&&window.addEventListener("scroll",se),()=>window.removeEventListener("scroll",se)),[c,F,se]);const Oe=(Je,ct)=>{M&&M(Je,ct),se()},ve=()=>{L(!1)};E.useEffect(()=>{P&&se()}),E.useImperativeHandle(u,()=>P?{updatePosition:()=>{se()}}:null,[P,se]),E.useEffect(()=>{if(!P)return;const Je=Sc(()=>{se()}),ct=Co(c);return ct.addEventListener("resize",Je),()=>{Je.clear(),ct.removeEventListener("resize",Je)}},[c,P,se]);let xe=_;_==="auto"&&!T.muiSupportAuto&&(xe=void 0);const he=x||(c?An(ay(c)).body:void 0),Me=(o=O==null?void 0:O.root)!=null?o:pK,de=(s=O==null?void 0:O.paper)!=null?s:gR,ke=or({elementType:de,externalSlotProps:k({},W,{style:ce?W.style:k({},W.style,{opacity:0})}),additionalProps:{elevation:b,ref:z},ownerState:te,className:ye(Z.paper,W==null?void 0:W.className)}),Qe=or({elementType:Me,externalSlotProps:(A==null?void 0:A.root)||{},externalForwardedProps:G,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:he,open:P},ownerState:te,className:ye(Z.root,S)}),{slotProps:He}=Qe,Be=ge(Qe,dK);return y.jsx(Me,k({},Be,!Na(Me)&&{slotProps:He,disableScrollLock:F},{children:y.jsx(T,k({appear:!0,in:P,onEntering:Oe,onExited:ve,timeout:xe},B,{children:y.jsx(de,k({},ke,{children:g}))}))}))});function hK(e){return Ie("MuiMenu",e)}Ne("MuiMenu",["root","paper","list"]);const mK=["onEntering"],gK=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],yK={vertical:"top",horizontal:"right"},vK={vertical:"top",horizontal:"left"},bK=e=>{const{classes:t}=e;return Le({root:["root"],paper:["paper"],list:["list"]},hK,t)},xK=re(yR,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wK=re(gR,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),SK=re(fR,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ly=E.forwardRef(function(t,n){var r,o;const s=Fe({props:t,name:"MuiMenu"}),{autoFocus:l=!0,children:u,className:c,disableAutoFocusItem:f=!1,MenuListProps:p={},onClose:m,open:g,PaperProps:S={},PopoverClasses:x,transitionDuration:b="auto",TransitionProps:{onEntering:w}={},variant:P="selectedMenu",slots:R={},slotProps:O={}}=s,A=ge(s.TransitionProps,mK),$=ge(s,gK),T=Ec(),_=k({},s,{autoFocus:l,disableAutoFocusItem:f,MenuListProps:p,onEntering:w,PaperProps:S,transitionDuration:b,TransitionProps:A,variant:P}),M=bK(_),F=l&&!f&&g,B=E.useRef(null),G=(N,Y)=>{B.current&&B.current.adjustStyleForScrollbar(N,{direction:T?"rtl":"ltr"}),w&&w(N,Y)},W=N=>{N.key==="Tab"&&(N.preventDefault(),m&&m(N,"tabKeyDown"))};let H=-1;E.Children.map(u,(N,Y)=>{E.isValidElement(N)&&(N.props.disabled||(P==="selectedMenu"&&N.props.selected||H===-1)&&(H=Y))});const z=(r=R.paper)!=null?r:wK,te=(o=O.paper)!=null?o:S,Z=or({elementType:R.root,externalSlotProps:O.root,ownerState:_,className:[M.root,c]}),X=or({elementType:z,externalSlotProps:te,ownerState:_,className:M.paper});return y.jsx(xK,k({onClose:m,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?yK:vK,slots:{paper:z,root:R.root},slotProps:{root:Z,paper:X},open:g,ref:n,transitionDuration:b,TransitionProps:k({onEntering:G},A),ownerState:_},$,{classes:x,children:y.jsx(SK,k({onKeyDown:W,actions:B,autoFocus:l&&(H===-1||f),autoFocusItem:F,variant:P},p,{className:ye(M.list,p.className),children:u}))}))});function CK(e){return Ie("MuiMenuItem",e)}const Kc=Ne("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),EK=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],RK=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},kK=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:s,classes:l}=e,c=Le({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",s&&"selected"]},CK,l);return k({},l,c)},PK=re(Dr,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:RK})(({theme:e,ownerState:t})=>k({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Kc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Kc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Kc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Kc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Kc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${YE.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${YE.inset}`]:{marginLeft:52},[`& .${$f.root}`]:{marginTop:0,marginBottom:0},[`& .${$f.inset}`]:{paddingLeft:36},[`& .${aR.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&k({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${aR.root} svg`]:{fontSize:"1.25rem"}}))),Ki=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:l=!1,divider:u=!1,disableGutters:c=!1,focusVisibleClassName:f,role:p="menuitem",tabIndex:m,className:g}=r,S=ge(r,EK),x=E.useContext(Ro),b=E.useMemo(()=>({dense:l||x.dense||!1,disableGutters:c}),[x.dense,l,c]),w=E.useRef(null);br(()=>{o&&w.current&&w.current.focus()},[o]);const P=k({},r,{dense:b.dense,divider:u,disableGutters:c}),R=kK(r),O=Gt(w,n);let A;return r.disabled||(A=m!==void 0?m:-1),y.jsx(Ro.Provider,{value:b,children:y.jsx(PK,k({ref:O,role:p,tabIndex:A,component:s,focusVisibleClassName:ye(R.focusVisible,f),className:ye(R.root,g)},S,{ownerState:P,classes:R}))})});function TK(e){return Ie("MuiNativeSelect",e)}const cy=Ne("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),OK=["className","disabled","error","IconComponent","inputRef","variant"],$K=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:l}=e,u={select:["select",n,r&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${ie(n)}`,s&&"iconOpen",r&&"disabled"]};return Le(u,TK,t)},vR=({ownerState:e,theme:t})=>k({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":k({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${cy.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),AK=re("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Tn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${cy.multiple}`]:t.multiple}]}})(vR),bR=({ownerState:e,theme:t})=>k({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${cy.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),jK=re("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ie(n.variant)}`],n.open&&t.iconOpen]}})(bR),_K=E.forwardRef(function(t,n){const{className:r,disabled:o,error:s,IconComponent:l,inputRef:u,variant:c="standard"}=t,f=ge(t,OK),p=k({},t,{disabled:o,variant:c,error:s}),m=$K(p);return y.jsxs(E.Fragment,{children:[y.jsx(AK,k({ownerState:p,className:ye(m.select,r),disabled:o,ref:u||n},f)),t.multiple?null:y.jsx(jK,{as:l,ownerState:p,className:m.icon})]})});var xR;const IK=["children","classes","className","label","notched"],MK=re("fieldset",{shouldForwardProp:Tn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),NK=re("legend",{shouldForwardProp:Tn})(({ownerState:e,theme:t})=>k({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&k({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function LK(e){const{className:t,label:n,notched:r}=e,o=ge(e,IK),s=n!=null&&n!=="",l=k({},e,{notched:r,withLabel:s});return y.jsx(MK,k({"aria-hidden":!0,className:t,ownerState:l},o,{children:y.jsx(NK,{ownerState:l,children:s?y.jsx("span",{children:n}):xR||(xR=y.jsx("span",{className:"notranslate",children:""}))})}))}const DK=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],FK=e=>{const{classes:t}=e,r=Le({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},NW,t);return k({},t,r)},BK=re(Cf,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:wf})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return k({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${qo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${qo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${qo.focused} .${qo.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${qo.error} .${qo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${qo.disabled} .${qo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&k({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),zK=re(LK,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),UK=re(Ef,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Sf})(({theme:e,ownerState:t})=>k({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),uy=E.forwardRef(function(t,n){var r,o,s,l,u;const c=Fe({props:t,name:"MuiOutlinedInput"}),{components:f={},fullWidth:p=!1,inputComponent:m="input",label:g,multiline:S=!1,notched:x,slots:b={},type:w="text"}=c,P=ge(c,DK),R=FK(c),O=yi(),A=Ui({props:c,muiFormControl:O,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),$=k({},c,{color:A.color||"primary",disabled:A.disabled,error:A.error,focused:A.focused,formControl:O,fullWidth:p,hiddenLabel:A.hiddenLabel,multiline:S,size:A.size,type:w}),T=(r=(o=b.root)!=null?o:f.Root)!=null?r:BK,_=(s=(l=b.input)!=null?l:f.Input)!=null?s:UK;return y.jsx(Fg,k({slots:{root:T,input:_},renderSuffix:M=>y.jsx(zK,{ownerState:$,className:R.notchedOutline,label:g!=null&&g!==""&&A.required?u||(u=y.jsxs(E.Fragment,{children:[g," ","*"]})):g,notched:typeof x<"u"?x:!!(M.startAdornment||M.filled||M.focused)}),fullWidth:p,inputComponent:m,multiline:S,ref:n,type:w},P,{classes:k({},R,{notchedOutline:null})}))});uy.muiName="Input";const WK=Rt(y.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),HK=Rt(y.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),VK=re("span",{shouldForwardProp:Tn})({position:"relative",display:"flex"}),KK=re(WK)({transform:"scale(1)"}),GK=re(HK)(({theme:e,ownerState:t})=>k({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function wR(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=k({},e,{checked:t});return y.jsxs(VK,{className:n.root,ownerState:o,children:[y.jsx(KK,{fontSize:r,className:n.background,ownerState:o}),y.jsx(GK,{fontSize:r,className:n.dot,ownerState:o})]})}const SR=E.createContext(void 0);function qK(){return E.useContext(SR)}function QK(e){return Ie("MuiRadio",e)}const CR=Ne("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),YK=["checked","checkedIcon","color","icon","name","onChange","size","className"],XK=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${ie(n)}`,r!=="medium"&&`size${ie(r)}`]};return k({},t,Le(o,QK,t))},JK=re(Wg,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${ie(n.size)}`],t[`color${ie(n.color)}`]]}})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${CR.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${CR.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function ZK(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const ER=y.jsx(wR,{checked:!0}),RR=y.jsx(wR,{}),dy=E.forwardRef(function(t,n){var r,o;const s=Fe({props:t,name:"MuiRadio"}),{checked:l,checkedIcon:u=ER,color:c="primary",icon:f=RR,name:p,onChange:m,size:g="medium",className:S}=s,x=ge(s,YK),b=k({},s,{color:c,size:g}),w=XK(b),P=qK();let R=l;const O=og(m,P&&P.onChange);let A=p;return P&&(typeof R>"u"&&(R=ZK(P.value,s.value)),typeof A>"u"&&(A=P.name)),y.jsx(JK,k({type:"radio",icon:E.cloneElement(f,{fontSize:(r=RR.props.fontSize)!=null?r:g}),checkedIcon:E.cloneElement(u,{fontSize:(o=ER.props.fontSize)!=null?o:g}),ownerState:b,classes:w,name:A,checked:R,onChange:O,ref:n,className:ye(w.root,S)},x))});function eG(e){return Ie("MuiRadioGroup",e)}Ne("MuiRadioGroup",["root","row","error"]);const tG=["actions","children","className","defaultValue","name","onChange","value"],nG=e=>{const{classes:t,row:n,error:r}=e;return Le({root:["root",n&&"row",r&&"error"]},eG,t)},kR=E.forwardRef(function(t,n){const{actions:r,children:o,className:s,defaultValue:l,name:u,onChange:c,value:f}=t,p=ge(t,tG),m=E.useRef(null),g=nG(t),[S,x]=pi({controlled:f,default:l,name:"RadioGroup"});E.useImperativeHandle(r,()=>({focus:()=>{let R=m.current.querySelector("input:not(:disabled):checked");R||(R=m.current.querySelector("input:not(:disabled)")),R&&R.focus()}}),[]);const b=Gt(n,m),w=Ia(u),P=E.useMemo(()=>({name:w,onChange(R){x(R.target.value),c&&c(R,R.target.value)},value:S}),[w,c,x,S]);return y.jsx(SR.Provider,{value:P,children:y.jsx(nV,k({role:"radiogroup",ref:b,className:ye(g.root,s)},p,{children:o}))})});function rG(e){return Ie("MuiSelect",e)}const Gc=Ne("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var PR;const oG=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],iG=re("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Gc.select}`]:t.select},{[`&.${Gc.select}`]:t[n.variant]},{[`&.${Gc.error}`]:t.error},{[`&.${Gc.multiple}`]:t.multiple}]}})(vR,{[`&.${Gc.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),sG=re("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ie(n.variant)}`],n.open&&t.iconOpen]}})(bR),aG=re("input",{shouldForwardProp:e=>KC(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function TR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function lG(e){return e==null||typeof e=="string"&&!e.trim()}const cG=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:l}=e,u={select:["select",n,r&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${ie(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Le(u,rG,t)},uG=E.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":s,autoFocus:l,autoWidth:u,children:c,className:f,defaultOpen:p,defaultValue:m,disabled:g,displayEmpty:S,error:x=!1,IconComponent:b,inputRef:w,labelId:P,MenuProps:R={},multiple:O,name:A,onBlur:$,onChange:T,onClose:_,onFocus:M,onOpen:F,open:B,readOnly:G,renderValue:W,SelectDisplayProps:H={},tabIndex:z,value:te,variant:Z="standard"}=t,X=ge(t,oG),[N,Y]=pi({controlled:te,default:m,name:"Select"}),[ce,L]=pi({controlled:B,default:p,name:"Select"}),se=E.useRef(null),Oe=E.useRef(null),[ve,xe]=E.useState(null),{current:he}=E.useRef(B!=null),[Me,de]=E.useState(),ke=Gt(n,w),Qe=E.useCallback(Ue=>{Oe.current=Ue,Ue&&xe(Ue)},[]),He=ve==null?void 0:ve.parentNode;E.useImperativeHandle(ke,()=>({focus:()=>{Oe.current.focus()},node:se.current,value:N}),[N]),E.useEffect(()=>{p&&ce&&ve&&!he&&(de(u?null:He.clientWidth),Oe.current.focus())},[ve,u]),E.useEffect(()=>{l&&Oe.current.focus()},[l]),E.useEffect(()=>{if(!P)return;const Ue=An(Oe.current).getElementById(P);if(Ue){const ut=()=>{getSelection().isCollapsed&&Oe.current.focus()};return Ue.addEventListener("click",ut),()=>{Ue.removeEventListener("click",ut)}}},[P]);const Be=(Ue,ut)=>{Ue?F&&F(ut):_&&_(ut),he||(de(u?null:He.clientWidth),L(Ue))},Je=Ue=>{Ue.button===0&&(Ue.preventDefault(),Oe.current.focus(),Be(!0,Ue))},ct=Ue=>{Be(!1,Ue)},ot=E.Children.toArray(c),ze=Ue=>{const ut=ot.find(Re=>Re.props.value===Ue.target.value);ut!==void 0&&(Y(ut.props.value),T&&T(Ue,ut))},Ot=Ue=>ut=>{let Re;if(ut.currentTarget.hasAttribute("tabindex")){if(O){Re=Array.isArray(N)?N.slice():[];const We=N.indexOf(Ue.props.value);We===-1?Re.push(Ue.props.value):Re.splice(We,1)}else Re=Ue.props.value;if(Ue.props.onClick&&Ue.props.onClick(ut),N!==Re&&(Y(Re),T)){const We=ut.nativeEvent||ut,ft=new We.constructor(We.type,We);Object.defineProperty(ft,"target",{writable:!0,value:{value:Re,name:A}}),T(ft,Ue)}O||Be(!1,ut)}},Ze=Ue=>{G||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ue.key)!==-1&&(Ue.preventDefault(),Be(!0,Ue))},$t=ve!==null&&ce,gt=Ue=>{!$t&&$&&(Object.defineProperty(Ue,"target",{writable:!0,value:{value:N,name:A}}),$(Ue))};delete X["aria-invalid"];let dt,_t;const Pt=[];let pt=!1;(xf({value:N})||S)&&(W?dt=W(N):pt=!0);const Ft=ot.map(Ue=>{if(!E.isValidElement(Ue))return null;let ut;if(O){if(!Array.isArray(N))throw new Error(di(2));ut=N.some(Re=>TR(Re,Ue.props.value)),ut&&pt&&Pt.push(Ue.props.children)}else ut=TR(N,Ue.props.value),ut&&pt&&(_t=Ue.props.children);return E.cloneElement(Ue,{"aria-selected":ut?"true":"false",onClick:Ot(Ue),onKeyUp:Re=>{Re.key===" "&&Re.preventDefault(),Ue.props.onKeyUp&&Ue.props.onKeyUp(Re)},role:"option",selected:ut,value:void 0,"data-value":Ue.props.value})});pt&&(O?Pt.length===0?dt=null:dt=Pt.reduce((Ue,ut,Re)=>(Ue.push(ut),Re<Pt.length-1&&Ue.push(", "),Ue),[]):dt=_t);let Yt=Me;!u&&he&&ve&&(Yt=He.clientWidth);let qt;typeof z<"u"?qt=z:qt=g?null:0;const et=H.id||(A?`mui-component-select-${A}`:void 0),Pe=k({},t,{variant:Z,value:N,open:$t,error:x}),xt=cG(Pe),Ht=k({},R.PaperProps,(r=R.slotProps)==null?void 0:r.paper),fn=Ia();return y.jsxs(E.Fragment,{children:[y.jsx(iG,k({ref:Qe,tabIndex:qt,role:"combobox","aria-controls":fn,"aria-disabled":g?"true":void 0,"aria-expanded":$t?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[P,et].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:Ze,onMouseDown:g||G?null:Je,onBlur:gt,onFocus:M},H,{ownerState:Pe,className:ye(H.className,xt.select,f),id:et,children:lG(dt)?PR||(PR=y.jsx("span",{className:"notranslate",children:""})):dt})),y.jsx(aG,k({"aria-invalid":x,value:Array.isArray(N)?N.join(","):N,name:A,ref:se,"aria-hidden":!0,onChange:ze,tabIndex:-1,disabled:g,className:xt.nativeInput,autoFocus:l,ownerState:Pe},X)),y.jsx(sG,{as:b,className:xt.icon,ownerState:Pe}),y.jsx(ly,k({id:`menu-${A||""}`,anchorEl:He,open:$t,onClose:ct,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},R,{MenuListProps:k({"aria-labelledby":P,role:"listbox","aria-multiselectable":O?"true":void 0,disableListWrap:!0,id:fn},R.MenuListProps),slotProps:k({},R.slotProps,{paper:k({},Ht,{style:k({minWidth:Yt},Ht!=null?Ht.style:null)})}),children:Ft}))]})}),dG=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],fG=["root"],pG=e=>{const{classes:t}=e;return t},fy={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Tn(e)&&e!=="variant",slot:"Root"},hG=re(oy,fy)(""),mG=re(uy,fy)(""),gG=re(ey,fy)(""),tl=E.forwardRef(function(t,n){const r=Fe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:l={},className:u,defaultOpen:c=!1,displayEmpty:f=!1,IconComponent:p=_E,id:m,input:g,inputProps:S,label:x,labelId:b,MenuProps:w,multiple:P=!1,native:R=!1,onClose:O,onOpen:A,open:$,renderValue:T,SelectDisplayProps:_,variant:M="outlined"}=r,F=ge(r,dG),B=R?_K:uG,G=yi(),W=Ui({props:r,muiFormControl:G,states:["variant","error"]}),H=W.variant||M,z=k({},r,{variant:H,classes:l}),te=pG(z),Z=ge(te,fG),X=g||{standard:y.jsx(hG,{ownerState:z}),outlined:y.jsx(mG,{label:x,ownerState:z}),filled:y.jsx(gG,{ownerState:z})}[H],N=Gt(n,X.ref);return y.jsx(E.Fragment,{children:E.cloneElement(X,k({inputComponent:B,inputProps:k({children:s,error:W.error,IconComponent:p,variant:H,type:void 0,multiple:P},R?{id:m}:{autoWidth:o,defaultOpen:c,displayEmpty:f,labelId:b,MenuProps:w,onClose:O,onOpen:A,open:$,renderValue:T,SelectDisplayProps:k({id:m},_)},S,{classes:S?rr(Z,S.classes):Z},g?g.props.inputProps:{})},(P&&R||f)&&H==="outlined"?{notched:!0}:{},{ref:N,className:ye(X.props.className,u,te.root)},!g&&{variant:H},F))})});tl.muiName="Select";function yG(e){return Ie("MuiSkeleton",e)}Ne("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const vG=["animation","className","component","height","style","variant","width"];let Af=e=>e,OR,$R,AR,jR;const bG=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:s,height:l}=e;return Le({root:["root",n,r,o&&"withChildren",o&&!s&&"fitContent",o&&!l&&"heightAuto"]},yG,t)},xG=Bi(OR||(OR=Af`
|
|
124
124
|
0% {
|
|
125
125
|
opacity: 1;
|
|
126
126
|
}
|
|
@@ -170,10 +170,10 @@ Error generating stack: `+C.message+`
|
|
|
170
170
|
right: 0;
|
|
171
171
|
top: 0;
|
|
172
172
|
}
|
|
173
|
-
`),wG,(t.vars||t).palette.action.hover)),_R=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:s,component:l="span",height:u,style:c,variant:f="text",width:p}=r,m=ge(r,vG),g=k({},r,{animation:o,component:l,variant:f,hasChildren:!!m.children}),S=bG(g);return y.jsx(SG,k({as:l,ref:n,className:ye(S.root,s),ownerState:g},m,{style:k({width:p,height:u},c)}))});function CG(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:s}=e,l=hi();E.useEffect(()=>{if(!o)return;function P(R){R.defaultPrevented||(R.key==="Escape"||R.key==="Esc")&&(r==null||r(R,"escapeKeyDown"))}return document.addEventListener("keydown",P),()=>{document.removeEventListener("keydown",P)}},[o,r]);const u=Nn((P,R)=>{r==null||r(P,R)}),c=Nn(P=>{!r||P==null||l.start(P,()=>{u(null,"timeout")})});E.useEffect(()=>(o&&c(t),l.clear),[o,t,c,l]);const f=P=>{r==null||r(P,"clickaway")},p=l.clear,m=E.useCallback(()=>{t!=null&&c(s??t*.5)},[t,s,c]),g=P=>R=>{const O=P.onBlur;O==null||O(R),m()},S=P=>R=>{const O=P.onFocus;O==null||O(R),p()},x=P=>R=>{const O=P.onMouseEnter;O==null||O(R),p()},b=P=>R=>{const O=P.onMouseLeave;O==null||O(R),m()};return E.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",m),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",p)}},[n,o,m,p]),{getRootProps:(P={})=>{const R=k({},rf(e),rf(P));return k({role:"presentation"},P,R,{onBlur:g(R),onFocus:S(R),onMouseEnter:x(R),onMouseLeave:b(R)})},onClickAway:f}}function EG(e){return Ie("MuiSnackbarContent",e)}Ne("MuiSnackbarContent",["root","message","action"]);const RG=["action","className","message","role"],kG=e=>{const{classes:t}=e;return Le({root:["root"],action:["action"],message:["message"]},EG,t)},PG=re(oo,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=of(e.palette.background.default,t);return k({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),TG=re("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),OG=re("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),$G=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSnackbarContent"}),{action:o,className:s,message:l,role:u="alert"}=r,c=ge(r,RG),f=r,p=kG(f);return y.jsxs(PG,k({role:u,square:!0,elevation:6,className:ye(p.root,s),ownerState:f,ref:n},c,{children:[y.jsx(TG,{className:p.message,ownerState:f,children:l}),o?y.jsx(OG,{className:p.action,ownerState:f,children:o}):null]}))});function AG(e){return Ie("MuiSnackbar",e)}Ne("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const jG=["onEnter","onExited"],_G=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],IG=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${ie(n.vertical)}${ie(n.horizontal)}`]};return Le(r,AG,t)},IR=re("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${ie(n.anchorOrigin.vertical)}${ie(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return k({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:k({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),MG=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSnackbar"}),o=xr(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:l,anchorOrigin:{vertical:u,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:f=null,children:p,className:m,ClickAwayListenerProps:g,ContentProps:S,disableWindowBlurListener:x=!1,message:b,open:w,TransitionComponent:P=Ja,transitionDuration:R=s,TransitionProps:{onEnter:O,onExited:A}={}}=r,$=ge(r.TransitionProps,jG),T=ge(r,_G),_=k({},r,{anchorOrigin:{vertical:u,horizontal:c},autoHideDuration:f,disableWindowBlurListener:x,TransitionComponent:P,transitionDuration:R}),M=IG(_),{getRootProps:F,onClickAway:B}=CG(k({},_)),[G,W]=E.useState(!0),H=or({elementType:IR,getSlotProps:F,externalForwardedProps:T,ownerState:_,additionalProps:{ref:n},className:[M.root,m]}),z=Z=>{W(!0),A&&A(Z)},te=(Z,X)=>{W(!1),O&&O(Z,X)};return!w&&G?null:y.jsx(KE,k({onClickAway:B},g,{children:y.jsx(IR,k({},H,{children:y.jsx(P,k({appear:!0,in:w,timeout:R,direction:u==="top"?"down":"up",onEnter:te,onExited:z},$,{children:p||y.jsx($G,k({message:b,action:l},S))}))}))}))}),NG=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],LG={entering:{transform:"none"},entered:{transform:"none"}},DG=E.forwardRef(function(t,n){const r=xr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:u,easing:c,in:f,onEnter:p,onEntered:m,onEntering:g,onExit:S,onExited:x,onExiting:b,style:w,timeout:P=o,TransitionComponent:R=Lr}=t,O=ge(t,NG),A=E.useRef(null),$=Gt(A,u.ref,n),T=z=>te=>{if(z){const Z=A.current;te===void 0?z(Z):z(Z,te)}},_=T(g),M=T((z,te)=>{df(z);const Z=Vo({style:w,timeout:P,easing:c},{mode:"enter"});z.style.webkitTransition=r.transitions.create("transform",Z),z.style.transition=r.transitions.create("transform",Z),p&&p(z,te)}),F=T(m),B=T(b),G=T(z=>{const te=Vo({style:w,timeout:P,easing:c},{mode:"exit"});z.style.webkitTransition=r.transitions.create("transform",te),z.style.transition=r.transitions.create("transform",te),S&&S(z)}),W=T(x),H=z=>{s&&s(A.current,z)};return y.jsx(R,k({appear:l,in:f,nodeRef:A,onEnter:M,onEntered:F,onEntering:_,onExit:G,onExited:W,onExiting:B,addEndListener:H,timeout:P},O,{children:(z,te)=>E.cloneElement(u,k({style:k({transform:"scale(0)",visibility:z==="exited"&&!f?"hidden":void 0},LG[z],w,u.props.style),ref:$},te))}))});function FG(e){return Ie("MuiSpeedDial",e)}const jf=Ne("MuiSpeedDial",["root","fab","directionUp","directionDown","directionLeft","directionRight","actions","actionsClosed"]),BG=["ref"],zG=["ariaLabel","FabProps","children","className","direction","hidden","icon","onBlur","onClose","onFocus","onKeyDown","onMouseEnter","onMouseLeave","onOpen","open","openIcon","TransitionComponent","transitionDuration","TransitionProps"],UG=["ref"],WG=e=>{const{classes:t,open:n,direction:r}=e,o={root:["root",`direction${ie(r)}`],fab:["fab"],actions:["actions",!n&&"actionsClosed"]};return Le(o,FG,t)};function qc(e){if(e==="up"||e==="down")return"vertical";if(e==="right"||e==="left")return"horizontal"}const Gi=32,_f=16,HG=re("div",{name:"MuiSpeedDial",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`direction${ie(n.direction)}`]]}})(({theme:e,ownerState:t})=>k({zIndex:(e.vars||e).zIndex.speedDial,display:"flex",alignItems:"center",pointerEvents:"none"},t.direction==="up"&&{flexDirection:"column-reverse",[`& .${jf.actions}`]:{flexDirection:"column-reverse",marginBottom:-Gi,paddingBottom:_f+Gi}},t.direction==="down"&&{flexDirection:"column",[`& .${jf.actions}`]:{flexDirection:"column",marginTop:-Gi,paddingTop:_f+Gi}},t.direction==="left"&&{flexDirection:"row-reverse",[`& .${jf.actions}`]:{flexDirection:"row-reverse",marginRight:-Gi,paddingRight:_f+Gi}},t.direction==="right"&&{flexDirection:"row",[`& .${jf.actions}`]:{flexDirection:"row",marginLeft:-Gi,paddingLeft:_f+Gi}})),VG=re(Zg,{name:"MuiSpeedDial",slot:"Fab",overridesResolver:(e,t)=>t.fab})(()=>({pointerEvents:"auto"})),KG=re("div",{name:"MuiSpeedDial",slot:"Actions",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.actions,!n.open&&t.actionsClosed]}})(({ownerState:e})=>k({display:"flex",pointerEvents:"auto"},!e.open&&{transition:"top 0s linear 0.2s",pointerEvents:"none"})),GG=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSpeedDial"}),o=xr(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{ariaLabel:l,FabProps:{ref:u}={},children:c,className:f,direction:p="up",hidden:m=!1,icon:g,onBlur:S,onClose:x,onFocus:b,onKeyDown:w,onMouseEnter:P,onMouseLeave:R,onOpen:O,open:A,TransitionComponent:$=DG,transitionDuration:T=s,TransitionProps:_}=r,M=ge(r.FabProps,BG),F=ge(r,zG),[B,G]=pi({controlled:A,default:!1,name:"SpeedDial",state:"open"}),W=k({},r,{open:B,direction:p}),H=WG(W),z=hi(),te=E.useRef(0),Z=E.useRef(),X=E.useRef([]);X.current=[X.current[0]];const N=E.useCallback(de=>{X.current[0]=de},[]),Y=Gt(u,N),ce=(de,ke)=>Qe=>{X.current[de+1]=Qe,ke&&ke(Qe)},L=de=>{w&&w(de);const ke=de.key.replace("Arrow","").toLowerCase(),{current:Qe=ke}=Z;if(de.key==="Escape"){G(!1),X.current[0].focus(),x&&x(de,"escapeKeyDown");return}if(qc(ke)===qc(Qe)&&qc(ke)!==void 0){de.preventDefault();const He=ke===Qe?1:-1,Be=rg(te.current+He,0,X.current.length-1);X.current[Be].focus(),te.current=Be,Z.current=Qe}};E.useEffect(()=>{B||(te.current=0,Z.current=void 0)},[B]);const se=de=>{de.type==="mouseleave"&&R&&R(de),de.type==="blur"&&S&&S(de),z.clear(),de.type==="blur"?z.start(0,()=>{G(!1),x&&x(de,"blur")}):(G(!1),x&&x(de,"mouseLeave"))},Oe=de=>{M.onClick&&M.onClick(de),z.clear(),B?(G(!1),x&&x(de,"toggle")):(G(!0),O&&O(de,"toggle"))},ve=de=>{de.type==="mouseenter"&&P&&P(de),de.type==="focus"&&b&&b(de),z.clear(),B||z.start(0,()=>{G(!0),O&&O(de,{focus:"focus",mouseenter:"mouseEnter"}[de.type])})},xe=l.replace(/^[^a-z]+|[^\w:.-]+/gi,""),he=E.Children.toArray(c).filter(de=>E.isValidElement(de)),Me=he.map((de,ke)=>{const Qe=de.props,{FabProps:{ref:He}={},tooltipPlacement:Be}=Qe,Je=ge(Qe.FabProps,UG),ct=Be||(qc(p)==="vertical"?"left":"top");return E.cloneElement(de,{FabProps:k({},Je,{ref:ce(ke,He)}),delay:30*(B?ke:he.length-ke),open:B,tooltipPlacement:ct,id:`${xe}-action-${ke}`})});return y.jsxs(HG,k({className:ye(H.root,f),ref:n,role:"presentation",onKeyDown:L,onBlur:se,onFocus:ve,onMouseEnter:ve,onMouseLeave:se,ownerState:W},F,{children:[y.jsx($,k({in:!m,timeout:T,unmountOnExit:!0},_,{children:y.jsx(VG,k({color:"primary","aria-label":l,"aria-haspopup":"true","aria-expanded":B,"aria-controls":`${xe}-actions`},M,{onClick:Oe,className:ye(H.fab,M.className),ref:Y,ownerState:W,children:E.isValidElement(g)&&_a(g,["SpeedDialIcon"])?E.cloneElement(g,{open:B}):g}))})),y.jsx(KG,{id:`${xe}-actions`,role:"menu","aria-orientation":qc(p),className:ye(H.actions,!B&&H.actionsClosed),ownerState:W,children:Me})]}))});function qG(e){return Ie("MuiTooltip",e)}const qi=Ne("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),QG=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function YG(e){return Math.round(e*1e5)/1e5}const XG=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:s}=e,l={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${ie(s.split("-")[0])}`],arrow:["arrow"]};return Le(l,qG,t)},JG=re(Bc,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>k({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${qi.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${qi.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${qi.arrow}`]:k({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${qi.arrow}`]:k({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),ZG=re("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${ie(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>k({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:mt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${YG(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${qi.popper}[data-popper-placement*="left"] &`]:k({transformOrigin:"right center"},t.isRtl?k({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):k({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${qi.popper}[data-popper-placement*="right"] &`]:k({transformOrigin:"left center"},t.isRtl?k({marginRight:"14px"},t.touch&&{marginRight:"24px"}):k({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${qi.popper}[data-popper-placement*="top"] &`]:k({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${qi.popper}[data-popper-placement*="bottom"] &`]:k({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),eq=re("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:mt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let If=!1;const MR=new Cc;let Qc={x:0,y:0};function Mf(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const tq=E.forwardRef(function(t,n){var r,o,s,l,u,c,f,p,m,g,S,x,b,w,P,R,O,A,$;const T=Fe({props:t,name:"MuiTooltip"}),{arrow:_=!1,children:M,components:F={},componentsProps:B={},describeChild:G=!1,disableFocusListener:W=!1,disableHoverListener:H=!1,disableInteractive:z=!1,disableTouchListener:te=!1,enterDelay:Z=100,enterNextDelay:X=0,enterTouchDelay:N=700,followCursor:Y=!1,id:ce,leaveDelay:L=0,leaveTouchDelay:se=1500,onClose:Oe,onOpen:ve,open:xe,placement:he="bottom",PopperComponent:Me,PopperProps:de={},slotProps:ke={},slots:Qe={},title:He,TransitionComponent:Be=Ja,TransitionProps:Je}=T,ct=ge(T,QG),ot=E.isValidElement(M)?M:y.jsx("span",{children:M}),ze=xr(),Ot=Ec(),[Ze,$t]=E.useState(),[gt,dt]=E.useState(null),_t=E.useRef(!1),Pt=z||Y,pt=hi(),Ft=hi(),Yt=hi(),qt=hi(),[et,Pe]=pi({controlled:xe,default:!1,name:"Tooltip",state:"open"});let xt=et;const Ht=Ia(ce),fn=E.useRef(),Ue=Nn(()=>{fn.current!==void 0&&(document.body.style.WebkitUserSelect=fn.current,fn.current=void 0),qt.clear()});E.useEffect(()=>Ue,[Ue]);const ut=Ee=>{MR.clear(),If=!0,Pe(!0),ve&&!xt&&ve(Ee)},Re=Nn(Ee=>{MR.start(800+L,()=>{If=!1}),Pe(!1),Oe&&xt&&Oe(Ee),pt.start(ze.transitions.duration.shortest,()=>{_t.current=!1})}),We=Ee=>{_t.current&&Ee.type!=="touchstart"||(Ze&&Ze.removeAttribute("title"),Ft.clear(),Yt.clear(),Z||If&&X?Ft.start(If?X:Z,()=>{ut(Ee)}):ut(Ee))},ft=Ee=>{Ft.clear(),Yt.start(L,()=>{Re(Ee)})},{isFocusVisibleRef:yt,onBlur:bt,onFocus:It,ref:Mt}=ag(),[,Zt]=E.useState(!1),rn=Ee=>{bt(Ee),yt.current===!1&&(Zt(!1),ft(Ee))},Qn=Ee=>{Ze||$t(Ee.currentTarget),It(Ee),yt.current===!0&&(Zt(!0),We(Ee))},Hr=Ee=>{_t.current=!0;const nt=ot.props;nt.onTouchStart&&nt.onTouchStart(Ee)},Po=Ee=>{Hr(Ee),Yt.clear(),pt.clear(),Ue(),fn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",qt.start(N,()=>{document.body.style.WebkitUserSelect=fn.current,We(Ee)})},To=Ee=>{ot.props.onTouchEnd&&ot.props.onTouchEnd(Ee),Ue(),Yt.start(se,()=>{Re(Ee)})};E.useEffect(()=>{if(!xt)return;function Ee(nt){(nt.key==="Escape"||nt.key==="Esc")&&Re(nt)}return document.addEventListener("keydown",Ee),()=>{document.removeEventListener("keydown",Ee)}},[Re,xt]);const co=Gt(ot.ref,Mt,$t,n);!He&&He!==0&&(xt=!1);const Ln=E.useRef(),on=Ee=>{const nt=ot.props;nt.onMouseMove&&nt.onMouseMove(Ee),Qc={x:Ee.clientX,y:Ee.clientY},Ln.current&&Ln.current.update()},Qt={},D=typeof He=="string";G?(Qt.title=!xt&&D&&!H?He:null,Qt["aria-describedby"]=xt?Ht:null):(Qt["aria-label"]=D?He:null,Qt["aria-labelledby"]=xt&&!D?Ht:null);const V=k({},Qt,ct,ot.props,{className:ye(ct.className,ot.props.className),onTouchStart:Hr,ref:co},Y?{onMouseMove:on}:{}),oe={};te||(V.onTouchStart=Po,V.onTouchEnd=To),H||(V.onMouseOver=Mf(We,V.onMouseOver),V.onMouseLeave=Mf(ft,V.onMouseLeave),Pt||(oe.onMouseOver=We,oe.onMouseLeave=ft)),W||(V.onFocus=Mf(Qn,V.onFocus),V.onBlur=Mf(rn,V.onBlur),Pt||(oe.onFocus=Qn,oe.onBlur=rn));const me=E.useMemo(()=>{var Ee;let nt=[{name:"arrow",enabled:!!gt,options:{element:gt,padding:4}}];return(Ee=de.popperOptions)!=null&&Ee.modifiers&&(nt=nt.concat(de.popperOptions.modifiers)),k({},de.popperOptions,{modifiers:nt})},[gt,de]),je=k({},T,{isRtl:Ot,arrow:_,disableInteractive:Pt,placement:he,PopperComponentProp:Me,touch:_t.current}),Ke=XG(je),it=(r=(o=Qe.popper)!=null?o:F.Popper)!=null?r:JG,$e=(s=(l=(u=Qe.transition)!=null?u:F.Transition)!=null?l:Be)!=null?s:Ja,st=(c=(f=Qe.tooltip)!=null?f:F.Tooltip)!=null?c:ZG,Q=(p=(m=Qe.arrow)!=null?m:F.Arrow)!=null?p:eq,q=La(it,k({},de,(g=ke.popper)!=null?g:B.popper,{className:ye(Ke.popper,de==null?void 0:de.className,(S=(x=ke.popper)!=null?x:B.popper)==null?void 0:S.className)}),je),we=La($e,k({},Je,(b=ke.transition)!=null?b:B.transition),je),be=La(st,k({},(w=ke.tooltip)!=null?w:B.tooltip,{className:ye(Ke.tooltip,(P=(R=ke.tooltip)!=null?R:B.tooltip)==null?void 0:P.className)}),je),De=La(Q,k({},(O=ke.arrow)!=null?O:B.arrow,{className:ye(Ke.arrow,(A=($=ke.arrow)!=null?$:B.arrow)==null?void 0:A.className)}),je);return y.jsxs(E.Fragment,{children:[E.cloneElement(ot,V),y.jsx(it,k({as:Me??Bc,placement:he,anchorEl:Y?{getBoundingClientRect:()=>({top:Qc.y,left:Qc.x,right:Qc.x,bottom:Qc.y,width:0,height:0})}:Ze,popperRef:Ln,open:Ze?xt:!1,id:Ht,transition:!0},oe,q,{popperOptions:me,children:({TransitionProps:Ee})=>y.jsx($e,k({timeout:ze.transitions.duration.shorter},Ee,we,{children:y.jsxs(st,k({},be,{children:[He,_?y.jsx(Q,k({},De,{ref:dt})):null]}))}))}))]})});function nq(e){return Ie("MuiSpeedDialAction",e)}const rq=Ne("MuiSpeedDialAction",["fab","fabClosed","staticTooltip","staticTooltipClosed","staticTooltipLabel","tooltipPlacementLeft","tooltipPlacementRight"]),oq=["className","delay","FabProps","icon","id","open","TooltipClasses","tooltipOpen","tooltipPlacement","tooltipTitle"],iq=e=>{const{open:t,tooltipPlacement:n,classes:r}=e,o={fab:["fab",!t&&"fabClosed"],staticTooltip:["staticTooltip",`tooltipPlacement${ie(n)}`,!t&&"staticTooltipClosed"],staticTooltipLabel:["staticTooltipLabel"]};return Le(o,nq,r)},sq=re(Zg,{name:"MuiSpeedDialAction",slot:"Fab",skipVariantsResolver:!1,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.fab,!n.open&&t.fabClosed]}})(({theme:e,ownerState:t})=>k({margin:8,color:(e.vars||e).palette.text.secondary,backgroundColor:(e.vars||e).palette.background.paper,"&:hover":{backgroundColor:e.vars?e.vars.palette.SpeedDialAction.fabHoverBg:of(e.palette.background.paper,.15)},transition:`${e.transitions.create("transform",{duration:e.transitions.duration.shorter})}, opacity 0.8s`,opacity:1},!t.open&&{opacity:0,transform:"scale(0)"})),aq=re("span",{name:"MuiSpeedDialAction",slot:"StaticTooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.staticTooltip,!n.open&&t.staticTooltipClosed,t[`tooltipPlacement${ie(n.tooltipPlacement)}`]]}})(({theme:e,ownerState:t})=>({position:"relative",display:"flex",alignItems:"center",[`& .${rq.staticTooltipLabel}`]:k({transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.shorter}),opacity:1},!t.open&&{opacity:0,transform:"scale(0.5)"},t.tooltipPlacement==="left"&&{transformOrigin:"100% 50%",right:"100%",marginRight:8},t.tooltipPlacement==="right"&&{transformOrigin:"0% 50%",left:"100%",marginLeft:8})})),lq=re("span",{name:"MuiSpeedDialAction",slot:"StaticTooltipLabel",overridesResolver:(e,t)=>t.staticTooltipLabel})(({theme:e})=>k({position:"absolute"},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.paper,borderRadius:(e.vars||e).shape.borderRadius,boxShadow:(e.vars||e).shadows[1],color:(e.vars||e).palette.text.secondary,padding:"4px 16px",wordBreak:"keep-all"})),cq=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSpeedDialAction"}),{className:o,delay:s=0,FabProps:l={},icon:u,id:c,open:f,TooltipClasses:p,tooltipOpen:m=!1,tooltipPlacement:g="left",tooltipTitle:S}=r,x=ge(r,oq),b=k({},r,{tooltipPlacement:g}),w=iq(b),[P,R]=E.useState(m),O=()=>{R(!1)},A=()=>{R(!0)},$={transitionDelay:`${s}ms`},T=y.jsx(sq,k({size:"small",className:ye(w.fab,o),tabIndex:-1,role:"menuitem",ownerState:b},l,{style:k({},$,l.style),children:u}));return m?y.jsxs(aq,k({id:c,ref:n,className:w.staticTooltip,ownerState:b},x,{children:[y.jsx(lq,{style:$,id:`${c}-label`,className:w.staticTooltipLabel,ownerState:b,children:S}),E.cloneElement(T,{"aria-labelledby":`${c}-label`})]})):(!f&&P&&R(!1),y.jsx(tq,k({id:c,ref:n,title:S,placement:g,onClose:O,onOpen:A,open:f&&P,classes:p},x,{children:T})))}),uq=Rt(y.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");function dq(e){return Ie("MuiSpeedDialIcon",e)}const Hs=Ne("MuiSpeedDialIcon",["root","icon","iconOpen","iconWithOpenIconOpen","openIcon","openIconOpen"]),fq=["className","icon","open","openIcon"],pq=e=>{const{classes:t,open:n,openIcon:r}=e;return Le({root:["root"],icon:["icon",n&&"iconOpen",r&&n&&"iconWithOpenIconOpen"],openIcon:["openIcon",n&&"openIconOpen"]},dq,t)},hq=re("span",{name:"MuiSpeedDialIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Hs.icon}`]:t.icon},{[`& .${Hs.icon}`]:n.open&&t.iconOpen},{[`& .${Hs.icon}`]:n.open&&n.openIcon&&t.iconWithOpenIconOpen},{[`& .${Hs.openIcon}`]:t.openIcon},{[`& .${Hs.openIcon}`]:n.open&&t.openIconOpen},t.root]}})(({theme:e,ownerState:t})=>({height:24,[`& .${Hs.icon}`]:k({transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short})},t.open&&k({transform:"rotate(45deg)"},t.openIcon&&{opacity:0})),[`& .${Hs.openIcon}`]:k({position:"absolute",transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short}),opacity:0,transform:"rotate(-45deg)"},t.open&&{transform:"rotate(0deg)",opacity:1})})),NR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSpeedDialIcon"}),{className:o,icon:s,openIcon:l}=r,u=ge(r,fq),c=r,f=pq(c);function p(m,g){return E.isValidElement(m)?E.cloneElement(m,{className:g}):m}return y.jsxs(hq,k({className:ye(f.root,o),ref:n,ownerState:c},u,{children:[l?p(l,f.openIcon):null,s?p(s,f.icon):y.jsx(uq,{className:f.icon})]}))});NR.muiName="SpeedDialIcon";function mq(e){return Ie("MuiSwitch",e)}const ar=Ne("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),gq=["className","color","edge","size","sx"],yq=e=>{const{classes:t,edge:n,size:r,color:o,checked:s,disabled:l}=e,u={root:["root",n&&`edge${ie(n)}`,`size${ie(r)}`],switchBase:["switchBase",`color${ie(o)}`,s&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=Le(u,mq,t);return k({},t,c)},vq=re("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ie(n.edge)}`],t[`size${ie(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${ar.thumb}`]:{width:16,height:16},[`& .${ar.switchBase}`]:{padding:4,[`&.${ar.checked}`]:{transform:"translateX(16px)"}}}}]}),bq=re(Wg,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${ar.input}`]:t.input},n.color!=="default"&&t[`color${ie(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${ar.checked}`]:{transform:"translateX(20px)"},[`&.${ar.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${ar.checked} + .${ar.track}`]:{opacity:.5},[`&.${ar.disabled} + .${ar.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${ar.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${ar.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ar.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?Tc(e.palette[t].main,.62):Pc(e.palette[t].main,.55)}`}},[`&.${ar.checked} + .${ar.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),xq=re("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),wq=re("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Sq=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSwitch"}),{className:o,color:s="primary",edge:l=!1,size:u="medium",sx:c}=r,f=ge(r,gq),p=k({},r,{color:s,edge:l,size:u}),m=yq(p),g=y.jsx(wq,{className:m.thumb,ownerState:p});return y.jsxs(vq,{className:ye(m.root,o),sx:c,ownerState:p,children:[y.jsx(bq,k({type:"checkbox",icon:g,checkedIcon:g,ref:n,ownerState:p},f,{classes:k({},m,{root:m.switchBase})})),y.jsx(xq,{className:m.track,ownerState:p})]})});function Cq(e){return Ie("MuiTab",e)}const Qi=Ne("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Eq=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Rq=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:s,label:l,selected:u,disabled:c}=e,f={root:["root",s&&l&&"labelIcon",`textColor${ie(n)}`,r&&"fullWidth",o&&"wrapped",u&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return Le(f,Cq,t)},kq=re(Dr,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${ie(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Qi.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>k({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Qi.iconWrapper}`]:k({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Qi.selected}`]:{opacity:1},[`&.${Qi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Qi.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Qi.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Qi.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Qi.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),LR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTab"}),{className:o,disabled:s=!1,disableFocusRipple:l=!1,fullWidth:u,icon:c,iconPosition:f="top",indicator:p,label:m,onChange:g,onClick:S,onFocus:x,selected:b,selectionFollowsFocus:w,textColor:P="inherit",value:R,wrapped:O=!1}=r,A=ge(r,Eq),$=k({},r,{disabled:s,disableFocusRipple:l,selected:b,icon:!!c,iconPosition:f,label:!!m,fullWidth:u,textColor:P,wrapped:O}),T=Rq($),_=c&&m&&E.isValidElement(c)?E.cloneElement(c,{className:ye(T.iconWrapper,c.props.className)}):c,M=B=>{!b&&g&&g(B,R),S&&S(B)},F=B=>{w&&!b&&g&&g(B,R),x&&x(B)};return y.jsxs(kq,k({focusRipple:!l,className:ye(T.root,o),ref:n,role:"tab","aria-selected":b,disabled:s,onClick:M,onFocus:F,ownerState:$,tabIndex:b?0:-1},A,{children:[f==="top"||f==="start"?y.jsxs(E.Fragment,{children:[_,m]}):y.jsxs(E.Fragment,{children:[m,_]}),p]}))}),DR=E.createContext();function Pq(e){return Ie("MuiTable",e)}Ne("MuiTable",["root","stickyHeader"]);const Tq=["className","component","padding","size","stickyHeader"],Oq=e=>{const{classes:t,stickyHeader:n}=e;return Le({root:["root",n&&"stickyHeader"]},Pq,t)},$q=re("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>k({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":k({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),FR="table",Aq=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTable"}),{className:o,component:s=FR,padding:l="normal",size:u="medium",stickyHeader:c=!1}=r,f=ge(r,Tq),p=k({},r,{component:s,padding:l,size:u,stickyHeader:c}),m=Oq(p),g=E.useMemo(()=>({padding:l,size:u,stickyHeader:c}),[l,u,c]);return y.jsx(DR.Provider,{value:g,children:y.jsx($q,k({as:s,role:s===FR?null:"table",ref:n,className:ye(m.root,o),ownerState:p},f))})}),Yc=E.createContext();function jq(e){return Ie("MuiTableBody",e)}Ne("MuiTableBody",["root"]);const _q=["className","component"],Iq=e=>{const{classes:t}=e;return Le({root:["root"]},jq,t)},Mq=re("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Nq={variant:"body"},BR="tbody",Lq=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableBody"}),{className:o,component:s=BR}=r,l=ge(r,_q),u=k({},r,{component:s}),c=Iq(u);return y.jsx(Yc.Provider,{value:Nq,children:y.jsx(Mq,k({className:ye(c.root,o),as:s,ref:n,role:s===BR?null:"rowgroup",ownerState:u},l))})});function Dq(e){return Ie("MuiTableCell",e)}const Fq=Ne("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Bq=["align","className","component","padding","scope","size","sortDirection","variant"],zq=e=>{const{classes:t,variant:n,align:r,padding:o,size:s,stickyHeader:l}=e,u={root:["root",n,l&&"stickyHeader",r!=="inherit"&&`align${ie(r)}`,o!=="normal"&&`padding${ie(o)}`,`size${ie(s)}`]};return Le(u,Dq,t)},Uq=re("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ie(n.size)}`],n.padding!=="normal"&&t[`padding${ie(n.padding)}`],n.align!=="inherit"&&t[`align${ie(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>k({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
173
|
+
`),wG,(t.vars||t).palette.action.hover)),_R=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:s,component:l="span",height:u,style:c,variant:f="text",width:p}=r,m=ge(r,vG),g=k({},r,{animation:o,component:l,variant:f,hasChildren:!!m.children}),S=bG(g);return y.jsx(SG,k({as:l,ref:n,className:ye(S.root,s),ownerState:g},m,{style:k({width:p,height:u},c)}))});function CG(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:s}=e,l=hi();E.useEffect(()=>{if(!o)return;function P(R){R.defaultPrevented||(R.key==="Escape"||R.key==="Esc")&&(r==null||r(R,"escapeKeyDown"))}return document.addEventListener("keydown",P),()=>{document.removeEventListener("keydown",P)}},[o,r]);const u=Nn((P,R)=>{r==null||r(P,R)}),c=Nn(P=>{!r||P==null||l.start(P,()=>{u(null,"timeout")})});E.useEffect(()=>(o&&c(t),l.clear),[o,t,c,l]);const f=P=>{r==null||r(P,"clickaway")},p=l.clear,m=E.useCallback(()=>{t!=null&&c(s??t*.5)},[t,s,c]),g=P=>R=>{const O=P.onBlur;O==null||O(R),m()},S=P=>R=>{const O=P.onFocus;O==null||O(R),p()},x=P=>R=>{const O=P.onMouseEnter;O==null||O(R),p()},b=P=>R=>{const O=P.onMouseLeave;O==null||O(R),m()};return E.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",m),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",p)}},[n,o,m,p]),{getRootProps:(P={})=>{const R=k({},rf(e),rf(P));return k({role:"presentation"},P,R,{onBlur:g(R),onFocus:S(R),onMouseEnter:x(R),onMouseLeave:b(R)})},onClickAway:f}}function EG(e){return Ie("MuiSnackbarContent",e)}Ne("MuiSnackbarContent",["root","message","action"]);const RG=["action","className","message","role"],kG=e=>{const{classes:t}=e;return Le({root:["root"],action:["action"],message:["message"]},EG,t)},PG=re(io,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=of(e.palette.background.default,t);return k({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),TG=re("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),OG=re("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),$G=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSnackbarContent"}),{action:o,className:s,message:l,role:u="alert"}=r,c=ge(r,RG),f=r,p=kG(f);return y.jsxs(PG,k({role:u,square:!0,elevation:6,className:ye(p.root,s),ownerState:f,ref:n},c,{children:[y.jsx(TG,{className:p.message,ownerState:f,children:l}),o?y.jsx(OG,{className:p.action,ownerState:f,children:o}):null]}))});function AG(e){return Ie("MuiSnackbar",e)}Ne("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const jG=["onEnter","onExited"],_G=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],IG=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${ie(n.vertical)}${ie(n.horizontal)}`]};return Le(r,AG,t)},IR=re("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${ie(n.anchorOrigin.vertical)}${ie(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return k({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:k({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),MG=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSnackbar"}),o=xr(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:l,anchorOrigin:{vertical:u,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:f=null,children:p,className:m,ClickAwayListenerProps:g,ContentProps:S,disableWindowBlurListener:x=!1,message:b,open:w,TransitionComponent:P=Ja,transitionDuration:R=s,TransitionProps:{onEnter:O,onExited:A}={}}=r,$=ge(r.TransitionProps,jG),T=ge(r,_G),_=k({},r,{anchorOrigin:{vertical:u,horizontal:c},autoHideDuration:f,disableWindowBlurListener:x,TransitionComponent:P,transitionDuration:R}),M=IG(_),{getRootProps:F,onClickAway:B}=CG(k({},_)),[G,W]=E.useState(!0),H=or({elementType:IR,getSlotProps:F,externalForwardedProps:T,ownerState:_,additionalProps:{ref:n},className:[M.root,m]}),z=Z=>{W(!0),A&&A(Z)},te=(Z,X)=>{W(!1),O&&O(Z,X)};return!w&&G?null:y.jsx(KE,k({onClickAway:B},g,{children:y.jsx(IR,k({},H,{children:y.jsx(P,k({appear:!0,in:w,timeout:R,direction:u==="top"?"down":"up",onEnter:te,onExited:z},$,{children:p||y.jsx($G,k({message:b,action:l},S))}))}))}))}),NG=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],LG={entering:{transform:"none"},entered:{transform:"none"}},DG=E.forwardRef(function(t,n){const r=xr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:u,easing:c,in:f,onEnter:p,onEntered:m,onEntering:g,onExit:S,onExited:x,onExiting:b,style:w,timeout:P=o,TransitionComponent:R=Lr}=t,O=ge(t,NG),A=E.useRef(null),$=Gt(A,u.ref,n),T=z=>te=>{if(z){const Z=A.current;te===void 0?z(Z):z(Z,te)}},_=T(g),M=T((z,te)=>{df(z);const Z=Vo({style:w,timeout:P,easing:c},{mode:"enter"});z.style.webkitTransition=r.transitions.create("transform",Z),z.style.transition=r.transitions.create("transform",Z),p&&p(z,te)}),F=T(m),B=T(b),G=T(z=>{const te=Vo({style:w,timeout:P,easing:c},{mode:"exit"});z.style.webkitTransition=r.transitions.create("transform",te),z.style.transition=r.transitions.create("transform",te),S&&S(z)}),W=T(x),H=z=>{s&&s(A.current,z)};return y.jsx(R,k({appear:l,in:f,nodeRef:A,onEnter:M,onEntered:F,onEntering:_,onExit:G,onExited:W,onExiting:B,addEndListener:H,timeout:P},O,{children:(z,te)=>E.cloneElement(u,k({style:k({transform:"scale(0)",visibility:z==="exited"&&!f?"hidden":void 0},LG[z],w,u.props.style),ref:$},te))}))});function FG(e){return Ie("MuiSpeedDial",e)}const jf=Ne("MuiSpeedDial",["root","fab","directionUp","directionDown","directionLeft","directionRight","actions","actionsClosed"]),BG=["ref"],zG=["ariaLabel","FabProps","children","className","direction","hidden","icon","onBlur","onClose","onFocus","onKeyDown","onMouseEnter","onMouseLeave","onOpen","open","openIcon","TransitionComponent","transitionDuration","TransitionProps"],UG=["ref"],WG=e=>{const{classes:t,open:n,direction:r}=e,o={root:["root",`direction${ie(r)}`],fab:["fab"],actions:["actions",!n&&"actionsClosed"]};return Le(o,FG,t)};function qc(e){if(e==="up"||e==="down")return"vertical";if(e==="right"||e==="left")return"horizontal"}const Gi=32,_f=16,HG=re("div",{name:"MuiSpeedDial",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`direction${ie(n.direction)}`]]}})(({theme:e,ownerState:t})=>k({zIndex:(e.vars||e).zIndex.speedDial,display:"flex",alignItems:"center",pointerEvents:"none"},t.direction==="up"&&{flexDirection:"column-reverse",[`& .${jf.actions}`]:{flexDirection:"column-reverse",marginBottom:-Gi,paddingBottom:_f+Gi}},t.direction==="down"&&{flexDirection:"column",[`& .${jf.actions}`]:{flexDirection:"column",marginTop:-Gi,paddingTop:_f+Gi}},t.direction==="left"&&{flexDirection:"row-reverse",[`& .${jf.actions}`]:{flexDirection:"row-reverse",marginRight:-Gi,paddingRight:_f+Gi}},t.direction==="right"&&{flexDirection:"row",[`& .${jf.actions}`]:{flexDirection:"row",marginLeft:-Gi,paddingLeft:_f+Gi}})),VG=re(Zg,{name:"MuiSpeedDial",slot:"Fab",overridesResolver:(e,t)=>t.fab})(()=>({pointerEvents:"auto"})),KG=re("div",{name:"MuiSpeedDial",slot:"Actions",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.actions,!n.open&&t.actionsClosed]}})(({ownerState:e})=>k({display:"flex",pointerEvents:"auto"},!e.open&&{transition:"top 0s linear 0.2s",pointerEvents:"none"})),GG=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSpeedDial"}),o=xr(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{ariaLabel:l,FabProps:{ref:u}={},children:c,className:f,direction:p="up",hidden:m=!1,icon:g,onBlur:S,onClose:x,onFocus:b,onKeyDown:w,onMouseEnter:P,onMouseLeave:R,onOpen:O,open:A,TransitionComponent:$=DG,transitionDuration:T=s,TransitionProps:_}=r,M=ge(r.FabProps,BG),F=ge(r,zG),[B,G]=pi({controlled:A,default:!1,name:"SpeedDial",state:"open"}),W=k({},r,{open:B,direction:p}),H=WG(W),z=hi(),te=E.useRef(0),Z=E.useRef(),X=E.useRef([]);X.current=[X.current[0]];const N=E.useCallback(de=>{X.current[0]=de},[]),Y=Gt(u,N),ce=(de,ke)=>Qe=>{X.current[de+1]=Qe,ke&&ke(Qe)},L=de=>{w&&w(de);const ke=de.key.replace("Arrow","").toLowerCase(),{current:Qe=ke}=Z;if(de.key==="Escape"){G(!1),X.current[0].focus(),x&&x(de,"escapeKeyDown");return}if(qc(ke)===qc(Qe)&&qc(ke)!==void 0){de.preventDefault();const He=ke===Qe?1:-1,Be=rg(te.current+He,0,X.current.length-1);X.current[Be].focus(),te.current=Be,Z.current=Qe}};E.useEffect(()=>{B||(te.current=0,Z.current=void 0)},[B]);const se=de=>{de.type==="mouseleave"&&R&&R(de),de.type==="blur"&&S&&S(de),z.clear(),de.type==="blur"?z.start(0,()=>{G(!1),x&&x(de,"blur")}):(G(!1),x&&x(de,"mouseLeave"))},Oe=de=>{M.onClick&&M.onClick(de),z.clear(),B?(G(!1),x&&x(de,"toggle")):(G(!0),O&&O(de,"toggle"))},ve=de=>{de.type==="mouseenter"&&P&&P(de),de.type==="focus"&&b&&b(de),z.clear(),B||z.start(0,()=>{G(!0),O&&O(de,{focus:"focus",mouseenter:"mouseEnter"}[de.type])})},xe=l.replace(/^[^a-z]+|[^\w:.-]+/gi,""),he=E.Children.toArray(c).filter(de=>E.isValidElement(de)),Me=he.map((de,ke)=>{const Qe=de.props,{FabProps:{ref:He}={},tooltipPlacement:Be}=Qe,Je=ge(Qe.FabProps,UG),ct=Be||(qc(p)==="vertical"?"left":"top");return E.cloneElement(de,{FabProps:k({},Je,{ref:ce(ke,He)}),delay:30*(B?ke:he.length-ke),open:B,tooltipPlacement:ct,id:`${xe}-action-${ke}`})});return y.jsxs(HG,k({className:ye(H.root,f),ref:n,role:"presentation",onKeyDown:L,onBlur:se,onFocus:ve,onMouseEnter:ve,onMouseLeave:se,ownerState:W},F,{children:[y.jsx($,k({in:!m,timeout:T,unmountOnExit:!0},_,{children:y.jsx(VG,k({color:"primary","aria-label":l,"aria-haspopup":"true","aria-expanded":B,"aria-controls":`${xe}-actions`},M,{onClick:Oe,className:ye(H.fab,M.className),ref:Y,ownerState:W,children:E.isValidElement(g)&&_a(g,["SpeedDialIcon"])?E.cloneElement(g,{open:B}):g}))})),y.jsx(KG,{id:`${xe}-actions`,role:"menu","aria-orientation":qc(p),className:ye(H.actions,!B&&H.actionsClosed),ownerState:W,children:Me})]}))});function qG(e){return Ie("MuiTooltip",e)}const qi=Ne("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),QG=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function YG(e){return Math.round(e*1e5)/1e5}const XG=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:s}=e,l={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${ie(s.split("-")[0])}`],arrow:["arrow"]};return Le(l,qG,t)},JG=re(Bc,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>k({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${qi.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${qi.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${qi.arrow}`]:k({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${qi.arrow}`]:k({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),ZG=re("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${ie(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>k({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:mt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${YG(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${qi.popper}[data-popper-placement*="left"] &`]:k({transformOrigin:"right center"},t.isRtl?k({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):k({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${qi.popper}[data-popper-placement*="right"] &`]:k({transformOrigin:"left center"},t.isRtl?k({marginRight:"14px"},t.touch&&{marginRight:"24px"}):k({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${qi.popper}[data-popper-placement*="top"] &`]:k({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${qi.popper}[data-popper-placement*="bottom"] &`]:k({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),eq=re("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:mt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let If=!1;const MR=new Cc;let Qc={x:0,y:0};function Mf(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const tq=E.forwardRef(function(t,n){var r,o,s,l,u,c,f,p,m,g,S,x,b,w,P,R,O,A,$;const T=Fe({props:t,name:"MuiTooltip"}),{arrow:_=!1,children:M,components:F={},componentsProps:B={},describeChild:G=!1,disableFocusListener:W=!1,disableHoverListener:H=!1,disableInteractive:z=!1,disableTouchListener:te=!1,enterDelay:Z=100,enterNextDelay:X=0,enterTouchDelay:N=700,followCursor:Y=!1,id:ce,leaveDelay:L=0,leaveTouchDelay:se=1500,onClose:Oe,onOpen:ve,open:xe,placement:he="bottom",PopperComponent:Me,PopperProps:de={},slotProps:ke={},slots:Qe={},title:He,TransitionComponent:Be=Ja,TransitionProps:Je}=T,ct=ge(T,QG),ot=E.isValidElement(M)?M:y.jsx("span",{children:M}),ze=xr(),Ot=Ec(),[Ze,$t]=E.useState(),[gt,dt]=E.useState(null),_t=E.useRef(!1),Pt=z||Y,pt=hi(),Ft=hi(),Yt=hi(),qt=hi(),[et,Pe]=pi({controlled:xe,default:!1,name:"Tooltip",state:"open"});let xt=et;const Ht=Ia(ce),fn=E.useRef(),Ue=Nn(()=>{fn.current!==void 0&&(document.body.style.WebkitUserSelect=fn.current,fn.current=void 0),qt.clear()});E.useEffect(()=>Ue,[Ue]);const ut=Ee=>{MR.clear(),If=!0,Pe(!0),ve&&!xt&&ve(Ee)},Re=Nn(Ee=>{MR.start(800+L,()=>{If=!1}),Pe(!1),Oe&&xt&&Oe(Ee),pt.start(ze.transitions.duration.shortest,()=>{_t.current=!1})}),We=Ee=>{_t.current&&Ee.type!=="touchstart"||(Ze&&Ze.removeAttribute("title"),Ft.clear(),Yt.clear(),Z||If&&X?Ft.start(If?X:Z,()=>{ut(Ee)}):ut(Ee))},ft=Ee=>{Ft.clear(),Yt.start(L,()=>{Re(Ee)})},{isFocusVisibleRef:yt,onBlur:bt,onFocus:It,ref:Mt}=ag(),[,Zt]=E.useState(!1),rn=Ee=>{bt(Ee),yt.current===!1&&(Zt(!1),ft(Ee))},Qn=Ee=>{Ze||$t(Ee.currentTarget),It(Ee),yt.current===!0&&(Zt(!0),We(Ee))},Hr=Ee=>{_t.current=!0;const nt=ot.props;nt.onTouchStart&&nt.onTouchStart(Ee)},Po=Ee=>{Hr(Ee),Yt.clear(),pt.clear(),Ue(),fn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",qt.start(N,()=>{document.body.style.WebkitUserSelect=fn.current,We(Ee)})},To=Ee=>{ot.props.onTouchEnd&&ot.props.onTouchEnd(Ee),Ue(),Yt.start(se,()=>{Re(Ee)})};E.useEffect(()=>{if(!xt)return;function Ee(nt){(nt.key==="Escape"||nt.key==="Esc")&&Re(nt)}return document.addEventListener("keydown",Ee),()=>{document.removeEventListener("keydown",Ee)}},[Re,xt]);const uo=Gt(ot.ref,Mt,$t,n);!He&&He!==0&&(xt=!1);const Ln=E.useRef(),on=Ee=>{const nt=ot.props;nt.onMouseMove&&nt.onMouseMove(Ee),Qc={x:Ee.clientX,y:Ee.clientY},Ln.current&&Ln.current.update()},Qt={},D=typeof He=="string";G?(Qt.title=!xt&&D&&!H?He:null,Qt["aria-describedby"]=xt?Ht:null):(Qt["aria-label"]=D?He:null,Qt["aria-labelledby"]=xt&&!D?Ht:null);const V=k({},Qt,ct,ot.props,{className:ye(ct.className,ot.props.className),onTouchStart:Hr,ref:uo},Y?{onMouseMove:on}:{}),oe={};te||(V.onTouchStart=Po,V.onTouchEnd=To),H||(V.onMouseOver=Mf(We,V.onMouseOver),V.onMouseLeave=Mf(ft,V.onMouseLeave),Pt||(oe.onMouseOver=We,oe.onMouseLeave=ft)),W||(V.onFocus=Mf(Qn,V.onFocus),V.onBlur=Mf(rn,V.onBlur),Pt||(oe.onFocus=Qn,oe.onBlur=rn));const me=E.useMemo(()=>{var Ee;let nt=[{name:"arrow",enabled:!!gt,options:{element:gt,padding:4}}];return(Ee=de.popperOptions)!=null&&Ee.modifiers&&(nt=nt.concat(de.popperOptions.modifiers)),k({},de.popperOptions,{modifiers:nt})},[gt,de]),je=k({},T,{isRtl:Ot,arrow:_,disableInteractive:Pt,placement:he,PopperComponentProp:Me,touch:_t.current}),Ke=XG(je),it=(r=(o=Qe.popper)!=null?o:F.Popper)!=null?r:JG,$e=(s=(l=(u=Qe.transition)!=null?u:F.Transition)!=null?l:Be)!=null?s:Ja,st=(c=(f=Qe.tooltip)!=null?f:F.Tooltip)!=null?c:ZG,Q=(p=(m=Qe.arrow)!=null?m:F.Arrow)!=null?p:eq,q=La(it,k({},de,(g=ke.popper)!=null?g:B.popper,{className:ye(Ke.popper,de==null?void 0:de.className,(S=(x=ke.popper)!=null?x:B.popper)==null?void 0:S.className)}),je),we=La($e,k({},Je,(b=ke.transition)!=null?b:B.transition),je),be=La(st,k({},(w=ke.tooltip)!=null?w:B.tooltip,{className:ye(Ke.tooltip,(P=(R=ke.tooltip)!=null?R:B.tooltip)==null?void 0:P.className)}),je),De=La(Q,k({},(O=ke.arrow)!=null?O:B.arrow,{className:ye(Ke.arrow,(A=($=ke.arrow)!=null?$:B.arrow)==null?void 0:A.className)}),je);return y.jsxs(E.Fragment,{children:[E.cloneElement(ot,V),y.jsx(it,k({as:Me??Bc,placement:he,anchorEl:Y?{getBoundingClientRect:()=>({top:Qc.y,left:Qc.x,right:Qc.x,bottom:Qc.y,width:0,height:0})}:Ze,popperRef:Ln,open:Ze?xt:!1,id:Ht,transition:!0},oe,q,{popperOptions:me,children:({TransitionProps:Ee})=>y.jsx($e,k({timeout:ze.transitions.duration.shorter},Ee,we,{children:y.jsxs(st,k({},be,{children:[He,_?y.jsx(Q,k({},De,{ref:dt})):null]}))}))}))]})});function nq(e){return Ie("MuiSpeedDialAction",e)}const rq=Ne("MuiSpeedDialAction",["fab","fabClosed","staticTooltip","staticTooltipClosed","staticTooltipLabel","tooltipPlacementLeft","tooltipPlacementRight"]),oq=["className","delay","FabProps","icon","id","open","TooltipClasses","tooltipOpen","tooltipPlacement","tooltipTitle"],iq=e=>{const{open:t,tooltipPlacement:n,classes:r}=e,o={fab:["fab",!t&&"fabClosed"],staticTooltip:["staticTooltip",`tooltipPlacement${ie(n)}`,!t&&"staticTooltipClosed"],staticTooltipLabel:["staticTooltipLabel"]};return Le(o,nq,r)},sq=re(Zg,{name:"MuiSpeedDialAction",slot:"Fab",skipVariantsResolver:!1,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.fab,!n.open&&t.fabClosed]}})(({theme:e,ownerState:t})=>k({margin:8,color:(e.vars||e).palette.text.secondary,backgroundColor:(e.vars||e).palette.background.paper,"&:hover":{backgroundColor:e.vars?e.vars.palette.SpeedDialAction.fabHoverBg:of(e.palette.background.paper,.15)},transition:`${e.transitions.create("transform",{duration:e.transitions.duration.shorter})}, opacity 0.8s`,opacity:1},!t.open&&{opacity:0,transform:"scale(0)"})),aq=re("span",{name:"MuiSpeedDialAction",slot:"StaticTooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.staticTooltip,!n.open&&t.staticTooltipClosed,t[`tooltipPlacement${ie(n.tooltipPlacement)}`]]}})(({theme:e,ownerState:t})=>({position:"relative",display:"flex",alignItems:"center",[`& .${rq.staticTooltipLabel}`]:k({transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.shorter}),opacity:1},!t.open&&{opacity:0,transform:"scale(0.5)"},t.tooltipPlacement==="left"&&{transformOrigin:"100% 50%",right:"100%",marginRight:8},t.tooltipPlacement==="right"&&{transformOrigin:"0% 50%",left:"100%",marginLeft:8})})),lq=re("span",{name:"MuiSpeedDialAction",slot:"StaticTooltipLabel",overridesResolver:(e,t)=>t.staticTooltipLabel})(({theme:e})=>k({position:"absolute"},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.paper,borderRadius:(e.vars||e).shape.borderRadius,boxShadow:(e.vars||e).shadows[1],color:(e.vars||e).palette.text.secondary,padding:"4px 16px",wordBreak:"keep-all"})),cq=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSpeedDialAction"}),{className:o,delay:s=0,FabProps:l={},icon:u,id:c,open:f,TooltipClasses:p,tooltipOpen:m=!1,tooltipPlacement:g="left",tooltipTitle:S}=r,x=ge(r,oq),b=k({},r,{tooltipPlacement:g}),w=iq(b),[P,R]=E.useState(m),O=()=>{R(!1)},A=()=>{R(!0)},$={transitionDelay:`${s}ms`},T=y.jsx(sq,k({size:"small",className:ye(w.fab,o),tabIndex:-1,role:"menuitem",ownerState:b},l,{style:k({},$,l.style),children:u}));return m?y.jsxs(aq,k({id:c,ref:n,className:w.staticTooltip,ownerState:b},x,{children:[y.jsx(lq,{style:$,id:`${c}-label`,className:w.staticTooltipLabel,ownerState:b,children:S}),E.cloneElement(T,{"aria-labelledby":`${c}-label`})]})):(!f&&P&&R(!1),y.jsx(tq,k({id:c,ref:n,title:S,placement:g,onClose:O,onOpen:A,open:f&&P,classes:p},x,{children:T})))}),uq=Rt(y.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");function dq(e){return Ie("MuiSpeedDialIcon",e)}const Hs=Ne("MuiSpeedDialIcon",["root","icon","iconOpen","iconWithOpenIconOpen","openIcon","openIconOpen"]),fq=["className","icon","open","openIcon"],pq=e=>{const{classes:t,open:n,openIcon:r}=e;return Le({root:["root"],icon:["icon",n&&"iconOpen",r&&n&&"iconWithOpenIconOpen"],openIcon:["openIcon",n&&"openIconOpen"]},dq,t)},hq=re("span",{name:"MuiSpeedDialIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Hs.icon}`]:t.icon},{[`& .${Hs.icon}`]:n.open&&t.iconOpen},{[`& .${Hs.icon}`]:n.open&&n.openIcon&&t.iconWithOpenIconOpen},{[`& .${Hs.openIcon}`]:t.openIcon},{[`& .${Hs.openIcon}`]:n.open&&t.openIconOpen},t.root]}})(({theme:e,ownerState:t})=>({height:24,[`& .${Hs.icon}`]:k({transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short})},t.open&&k({transform:"rotate(45deg)"},t.openIcon&&{opacity:0})),[`& .${Hs.openIcon}`]:k({position:"absolute",transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short}),opacity:0,transform:"rotate(-45deg)"},t.open&&{transform:"rotate(0deg)",opacity:1})})),NR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSpeedDialIcon"}),{className:o,icon:s,openIcon:l}=r,u=ge(r,fq),c=r,f=pq(c);function p(m,g){return E.isValidElement(m)?E.cloneElement(m,{className:g}):m}return y.jsxs(hq,k({className:ye(f.root,o),ref:n,ownerState:c},u,{children:[l?p(l,f.openIcon):null,s?p(s,f.icon):y.jsx(uq,{className:f.icon})]}))});NR.muiName="SpeedDialIcon";function mq(e){return Ie("MuiSwitch",e)}const ar=Ne("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),gq=["className","color","edge","size","sx"],yq=e=>{const{classes:t,edge:n,size:r,color:o,checked:s,disabled:l}=e,u={root:["root",n&&`edge${ie(n)}`,`size${ie(r)}`],switchBase:["switchBase",`color${ie(o)}`,s&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=Le(u,mq,t);return k({},t,c)},vq=re("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ie(n.edge)}`],t[`size${ie(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${ar.thumb}`]:{width:16,height:16},[`& .${ar.switchBase}`]:{padding:4,[`&.${ar.checked}`]:{transform:"translateX(16px)"}}}}]}),bq=re(Wg,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${ar.input}`]:t.input},n.color!=="default"&&t[`color${ie(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${ar.checked}`]:{transform:"translateX(20px)"},[`&.${ar.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${ar.checked} + .${ar.track}`]:{opacity:.5},[`&.${ar.disabled} + .${ar.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${ar.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${ar.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ar.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?Tc(e.palette[t].main,.62):Pc(e.palette[t].main,.55)}`}},[`&.${ar.checked} + .${ar.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),xq=re("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),wq=re("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Sq=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSwitch"}),{className:o,color:s="primary",edge:l=!1,size:u="medium",sx:c}=r,f=ge(r,gq),p=k({},r,{color:s,edge:l,size:u}),m=yq(p),g=y.jsx(wq,{className:m.thumb,ownerState:p});return y.jsxs(vq,{className:ye(m.root,o),sx:c,ownerState:p,children:[y.jsx(bq,k({type:"checkbox",icon:g,checkedIcon:g,ref:n,ownerState:p},f,{classes:k({},m,{root:m.switchBase})})),y.jsx(xq,{className:m.track,ownerState:p})]})});function Cq(e){return Ie("MuiTab",e)}const Qi=Ne("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Eq=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Rq=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:s,label:l,selected:u,disabled:c}=e,f={root:["root",s&&l&&"labelIcon",`textColor${ie(n)}`,r&&"fullWidth",o&&"wrapped",u&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return Le(f,Cq,t)},kq=re(Dr,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${ie(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Qi.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>k({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Qi.iconWrapper}`]:k({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Qi.selected}`]:{opacity:1},[`&.${Qi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Qi.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Qi.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Qi.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Qi.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),LR=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTab"}),{className:o,disabled:s=!1,disableFocusRipple:l=!1,fullWidth:u,icon:c,iconPosition:f="top",indicator:p,label:m,onChange:g,onClick:S,onFocus:x,selected:b,selectionFollowsFocus:w,textColor:P="inherit",value:R,wrapped:O=!1}=r,A=ge(r,Eq),$=k({},r,{disabled:s,disableFocusRipple:l,selected:b,icon:!!c,iconPosition:f,label:!!m,fullWidth:u,textColor:P,wrapped:O}),T=Rq($),_=c&&m&&E.isValidElement(c)?E.cloneElement(c,{className:ye(T.iconWrapper,c.props.className)}):c,M=B=>{!b&&g&&g(B,R),S&&S(B)},F=B=>{w&&!b&&g&&g(B,R),x&&x(B)};return y.jsxs(kq,k({focusRipple:!l,className:ye(T.root,o),ref:n,role:"tab","aria-selected":b,disabled:s,onClick:M,onFocus:F,ownerState:$,tabIndex:b?0:-1},A,{children:[f==="top"||f==="start"?y.jsxs(E.Fragment,{children:[_,m]}):y.jsxs(E.Fragment,{children:[m,_]}),p]}))}),DR=E.createContext();function Pq(e){return Ie("MuiTable",e)}Ne("MuiTable",["root","stickyHeader"]);const Tq=["className","component","padding","size","stickyHeader"],Oq=e=>{const{classes:t,stickyHeader:n}=e;return Le({root:["root",n&&"stickyHeader"]},Pq,t)},$q=re("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>k({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":k({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),FR="table",Aq=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTable"}),{className:o,component:s=FR,padding:l="normal",size:u="medium",stickyHeader:c=!1}=r,f=ge(r,Tq),p=k({},r,{component:s,padding:l,size:u,stickyHeader:c}),m=Oq(p),g=E.useMemo(()=>({padding:l,size:u,stickyHeader:c}),[l,u,c]);return y.jsx(DR.Provider,{value:g,children:y.jsx($q,k({as:s,role:s===FR?null:"table",ref:n,className:ye(m.root,o),ownerState:p},f))})}),Yc=E.createContext();function jq(e){return Ie("MuiTableBody",e)}Ne("MuiTableBody",["root"]);const _q=["className","component"],Iq=e=>{const{classes:t}=e;return Le({root:["root"]},jq,t)},Mq=re("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Nq={variant:"body"},BR="tbody",Lq=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableBody"}),{className:o,component:s=BR}=r,l=ge(r,_q),u=k({},r,{component:s}),c=Iq(u);return y.jsx(Yc.Provider,{value:Nq,children:y.jsx(Mq,k({className:ye(c.root,o),as:s,ref:n,role:s===BR?null:"rowgroup",ownerState:u},l))})});function Dq(e){return Ie("MuiTableCell",e)}const Fq=Ne("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Bq=["align","className","component","padding","scope","size","sortDirection","variant"],zq=e=>{const{classes:t,variant:n,align:r,padding:o,size:s,stickyHeader:l}=e,u={root:["root",n,l&&"stickyHeader",r!=="inherit"&&`align${ie(r)}`,o!=="normal"&&`padding${ie(o)}`,`size${ie(s)}`]};return Le(u,Dq,t)},Uq=re("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ie(n.size)}`],n.padding!=="normal"&&t[`padding${ie(n.padding)}`],n.align!=="inherit"&&t[`align${ie(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>k({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
174
174
|
${e.palette.mode==="light"?Tc(mt(e.palette.divider,1),.88):Pc(mt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Fq.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),bi=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableCell"}),{align:o="inherit",className:s,component:l,padding:u,scope:c,size:f,sortDirection:p,variant:m}=r,g=ge(r,Bq),S=E.useContext(DR),x=E.useContext(Yc),b=x&&x.variant==="head";let w;l?w=l:w=b?"th":"td";let P=c;w==="td"?P=void 0:!P&&b&&(P="col");const R=m||x&&x.variant,O=k({},r,{align:o,component:w,padding:u||(S&&S.padding?S.padding:"normal"),size:f||(S&&S.size?S.size:"medium"),sortDirection:p,stickyHeader:R==="head"&&S&&S.stickyHeader,variant:R}),A=zq(O);let $=null;return p&&($=p==="asc"?"ascending":"descending"),y.jsx(Uq,k({as:w,ref:n,className:ye(A.root,s),"aria-sort":$,scope:P,ownerState:O},g))});function Wq(e){return Ie("MuiTableContainer",e)}Ne("MuiTableContainer",["root"]);const Hq=["className","component"],Vq=e=>{const{classes:t}=e;return Le({root:["root"]},Wq,t)},Kq=re("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Gq=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableContainer"}),{className:o,component:s="div"}=r,l=ge(r,Hq),u=k({},r,{component:s}),c=Vq(u);return y.jsx(Kq,k({ref:n,as:s,className:ye(c.root,o),ownerState:u},l))});function qq(e){return Ie("MuiTableFooter",e)}Ne("MuiTableFooter",["root"]);const Qq=["className","component"],Yq=e=>{const{classes:t}=e;return Le({root:["root"]},qq,t)},Xq=re("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),Jq={variant:"footer"},zR="tfoot",Zq=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableFooter"}),{className:o,component:s=zR}=r,l=ge(r,Qq),u=k({},r,{component:s}),c=Yq(u);return y.jsx(Yc.Provider,{value:Jq,children:y.jsx(Xq,k({as:s,className:ye(c.root,o),ref:n,role:s===zR?null:"rowgroup",ownerState:u},l))})});function eQ(e){return Ie("MuiTableHead",e)}Ne("MuiTableHead",["root"]);const tQ=["className","component"],nQ=e=>{const{classes:t}=e;return Le({root:["root"]},eQ,t)},rQ=re("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),oQ={variant:"head"},UR="thead",iQ=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableHead"}),{className:o,component:s=UR}=r,l=ge(r,tQ),u=k({},r,{component:s}),c=nQ(u);return y.jsx(Yc.Provider,{value:oQ,children:y.jsx(rQ,k({as:s,className:ye(c.root,o),ref:n,role:s===UR?null:"rowgroup",ownerState:u},l))})});function sQ(e){return Ie("MuiToolbar",e)}Ne("MuiToolbar",["root","gutters","regular","dense"]);const aQ=["className","component","disableGutters","variant"],lQ=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Le({root:["root",!n&&"gutters",r]},sQ,t)},cQ=re("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>k({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),uQ=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiToolbar"}),{className:o,component:s="div",disableGutters:l=!1,variant:u="regular"}=r,c=ge(r,aQ),f=k({},r,{component:s,disableGutters:l,variant:u}),p=lQ(f);return y.jsx(cQ,k({as:s,className:ye(p.root,o),ref:n,ownerState:f},c))}),dQ=Rt(y.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),fQ=Rt(y.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function pQ(e){return Ie("MuiTableRow",e)}const WR=Ne("MuiTableRow",["root","selected","hover","head","footer"]),hQ=["className","component","hover","selected"],mQ=e=>{const{classes:t,selected:n,hover:r,head:o,footer:s}=e;return Le({root:["root",n&&"selected",r&&"hover",o&&"head",s&&"footer"]},pQ,t)},gQ=re("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${WR.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${WR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),HR="tr",nl=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableRow"}),{className:o,component:s=HR,hover:l=!1,selected:u=!1}=r,c=ge(r,hQ),f=E.useContext(Yc),p=k({},r,{component:s,hover:l,selected:u,head:f&&f.variant==="head",footer:f&&f.variant==="footer"}),m=mQ(p);return y.jsx(gQ,k({as:s,ref:n,className:ye(m.root,o),role:s===HR?null:"row",ownerState:p},c))}),yQ=Rt(y.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function vQ(e){return Ie("MuiTableSortLabel",e)}const py=Ne("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),bQ=["active","children","className","direction","hideSortIcon","IconComponent"],xQ=e=>{const{classes:t,direction:n,active:r}=e,o={root:["root",r&&"active"],icon:["icon",`iconDirection${ie(n)}`]};return Le(o,vQ,t)},wQ=re(Dr,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${py.icon}`]:{opacity:.5}},[`&.${py.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${py.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),SQ=re("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${ie(n.direction)}`]]}})(({theme:e,ownerState:t})=>k({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),CQ=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableSortLabel"}),{active:o=!1,children:s,className:l,direction:u="asc",hideSortIcon:c=!1,IconComponent:f=yQ}=r,p=ge(r,bQ),m=k({},r,{active:o,direction:u,hideSortIcon:c,IconComponent:f}),g=xQ(m);return y.jsxs(wQ,k({className:ye(g.root,l),component:"span",disableRipple:!0,ownerState:m,ref:n},p,{children:[s,c&&!o?null:y.jsx(SQ,{as:f,className:ye(g.icon),ownerState:m})]}))});function EQ(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function RQ(e,t,n,r={},o=()=>{}){const{ease:s=EQ,duration:l=300}=r;let u=null;const c=t[e];let f=!1;const p=()=>{f=!0},m=g=>{if(f){o(new Error("Animation cancelled"));return}u===null&&(u=g);const S=Math.min(1,(g-u)/l);if(t[e]=s(S)*(n-c)+c,S>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(m)};return c===n?(o(new Error("Element already at target position")),p):(requestAnimationFrame(m),p)}const kQ=["onChange"],PQ={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function TQ(e){const{onChange:t}=e,n=ge(e,kQ),r=E.useRef(),o=E.useRef(null),s=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return br(()=>{const l=Sc(()=>{const c=r.current;s(),c!==r.current&&t(r.current)}),u=Co(o.current);return u.addEventListener("resize",l),()=>{l.clear(),u.removeEventListener("resize",l)}},[t]),E.useEffect(()=>{s(),t(r.current)},[t]),y.jsx("div",k({style:PQ,ref:o},n))}function OQ(e){return Ie("MuiTabScrollButton",e)}const $Q=Ne("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),AQ=["className","slots","slotProps","direction","orientation","disabled"],jQ=e=>{const{classes:t,orientation:n,disabled:r}=e;return Le({root:["root",n,r&&"disabled"]},OQ,t)},_Q=re(Dr,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>k({width:40,flexShrink:0,opacity:.8,[`&.${$Q.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),IQ=E.forwardRef(function(t,n){var r,o;const s=Fe({props:t,name:"MuiTabScrollButton"}),{className:l,slots:u={},slotProps:c={},direction:f}=s,p=ge(s,AQ),m=Ec(),g=k({isRtl:m},s),S=jQ(g),x=(r=u.StartScrollButtonIcon)!=null?r:dQ,b=(o=u.EndScrollButtonIcon)!=null?o:fQ,w=or({elementType:x,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),P=or({elementType:b,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return y.jsx(_Q,k({component:"div",className:ye(S.root,l),ref:n,role:null,ownerState:g,tabIndex:null},p,{children:f==="left"?y.jsx(x,k({},w)):y.jsx(b,k({},P))}))});function MQ(e){return Ie("MuiTabs",e)}const hy=Ne("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),NQ=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],VR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,KR=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Nf=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const s=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||s)o=n(e,o);else{o.focus();return}}},LQ=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:s,centered:l,scrollButtonsHideMobile:u,classes:c}=e;return Le({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",s&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",l&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",u&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},MQ,c)},DQ=re("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hy.scrollButtons}`]:t.scrollButtons},{[`& .${hy.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>k({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${hy.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),FQ=re("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>k({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),BQ=re("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>k({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),zQ=re("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>k({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),UQ=re(TQ)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),GR={},WQ=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTabs"}),o=xr(),s=Ec(),{"aria-label":l,"aria-labelledby":u,action:c,centered:f=!1,children:p,className:m,component:g="div",allowScrollButtonsMobile:S=!1,indicatorColor:x="primary",onChange:b,orientation:w="horizontal",ScrollButtonComponent:P=IQ,scrollButtons:R="auto",selectionFollowsFocus:O,slots:A={},slotProps:$={},TabIndicatorProps:T={},TabScrollButtonProps:_={},textColor:M="primary",value:F,variant:B="standard",visibleScrollbar:G=!1}=r,W=ge(r,NQ),H=B==="scrollable",z=w==="vertical",te=z?"scrollTop":"scrollLeft",Z=z?"top":"left",X=z?"bottom":"right",N=z?"clientHeight":"clientWidth",Y=z?"height":"width",ce=k({},r,{component:g,allowScrollButtonsMobile:S,indicatorColor:x,orientation:w,vertical:z,scrollButtons:R,textColor:M,variant:B,visibleScrollbar:G,fixed:!H,hideScrollbar:H&&!G,scrollableX:H&&!z,scrollableY:H&&z,centered:f&&!H,scrollButtonsHideMobile:!S}),L=LQ(ce),se=or({elementType:A.StartScrollButtonIcon,externalSlotProps:$.startScrollButtonIcon,ownerState:ce}),Oe=or({elementType:A.EndScrollButtonIcon,externalSlotProps:$.endScrollButtonIcon,ownerState:ce}),[ve,xe]=E.useState(!1),[he,Me]=E.useState(GR),[de,ke]=E.useState(!1),[Qe,He]=E.useState(!1),[Be,Je]=E.useState(!1),[ct,ot]=E.useState({overflow:"hidden",scrollbarWidth:0}),ze=new Map,Ot=E.useRef(null),Ze=E.useRef(null),$t=()=>{const Re=Ot.current;let We;if(Re){const yt=Re.getBoundingClientRect();We={clientWidth:Re.clientWidth,scrollLeft:Re.scrollLeft,scrollTop:Re.scrollTop,scrollLeftNormalized:Fz(Re,s?"rtl":"ltr"),scrollWidth:Re.scrollWidth,top:yt.top,bottom:yt.bottom,left:yt.left,right:yt.right}}let ft;if(Re&&F!==!1){const yt=Ze.current.children;if(yt.length>0){const bt=yt[ze.get(F)];ft=bt?bt.getBoundingClientRect():null}}return{tabsMeta:We,tabMeta:ft}},gt=Nn(()=>{const{tabsMeta:Re,tabMeta:We}=$t();let ft=0,yt;if(z)yt="top",We&&Re&&(ft=We.top-Re.top+Re.scrollTop);else if(yt=s?"right":"left",We&&Re){const It=s?Re.scrollLeftNormalized+Re.clientWidth-Re.scrollWidth:Re.scrollLeft;ft=(s?-1:1)*(We[yt]-Re[yt]+It)}const bt={[yt]:ft,[Y]:We?We[Y]:0};if(isNaN(he[yt])||isNaN(he[Y]))Me(bt);else{const It=Math.abs(he[yt]-bt[yt]),Mt=Math.abs(he[Y]-bt[Y]);(It>=1||Mt>=1)&&Me(bt)}}),dt=(Re,{animation:We=!0}={})=>{We?RQ(te,Ot.current,Re,{duration:o.transitions.duration.standard}):Ot.current[te]=Re},_t=Re=>{let We=Ot.current[te];z?We+=Re:(We+=Re*(s?-1:1),We*=s&&gC()==="reverse"?-1:1),dt(We)},Pt=()=>{const Re=Ot.current[N];let We=0;const ft=Array.from(Ze.current.children);for(let yt=0;yt<ft.length;yt+=1){const bt=ft[yt];if(We+bt[N]>Re){yt===0&&(We=Re);break}We+=bt[N]}return We},pt=()=>{_t(-1*Pt())},Ft=()=>{_t(Pt())},Yt=E.useCallback(Re=>{ot({overflow:null,scrollbarWidth:Re})},[]),qt=()=>{const Re={};Re.scrollbarSizeListener=H?y.jsx(UQ,{onChange:Yt,className:ye(L.scrollableX,L.hideScrollbar)}):null;const ft=H&&(R==="auto"&&(de||Qe)||R===!0);return Re.scrollButtonStart=ft?y.jsx(P,k({slots:{StartScrollButtonIcon:A.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:se},orientation:w,direction:s?"right":"left",onClick:pt,disabled:!de},_,{className:ye(L.scrollButtons,_.className)})):null,Re.scrollButtonEnd=ft?y.jsx(P,k({slots:{EndScrollButtonIcon:A.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Oe},orientation:w,direction:s?"left":"right",onClick:Ft,disabled:!Qe},_,{className:ye(L.scrollButtons,_.className)})):null,Re},et=Nn(Re=>{const{tabsMeta:We,tabMeta:ft}=$t();if(!(!ft||!We)){if(ft[Z]<We[Z]){const yt=We[te]+(ft[Z]-We[Z]);dt(yt,{animation:Re})}else if(ft[X]>We[X]){const yt=We[te]+(ft[X]-We[X]);dt(yt,{animation:Re})}}}),Pe=Nn(()=>{H&&R!==!1&&Je(!Be)});E.useEffect(()=>{const Re=Sc(()=>{Ot.current&>()});let We;const ft=It=>{It.forEach(Mt=>{Mt.removedNodes.forEach(Zt=>{var rn;(rn=We)==null||rn.unobserve(Zt)}),Mt.addedNodes.forEach(Zt=>{var rn;(rn=We)==null||rn.observe(Zt)})}),Re(),Pe()},yt=Co(Ot.current);yt.addEventListener("resize",Re);let bt;return typeof ResizeObserver<"u"&&(We=new ResizeObserver(Re),Array.from(Ze.current.children).forEach(It=>{We.observe(It)})),typeof MutationObserver<"u"&&(bt=new MutationObserver(ft),bt.observe(Ze.current,{childList:!0})),()=>{var It,Mt;Re.clear(),yt.removeEventListener("resize",Re),(It=bt)==null||It.disconnect(),(Mt=We)==null||Mt.disconnect()}},[gt,Pe]),E.useEffect(()=>{const Re=Array.from(Ze.current.children),We=Re.length;if(typeof IntersectionObserver<"u"&&We>0&&H&&R!==!1){const ft=Re[0],yt=Re[We-1],bt={root:Ot.current,threshold:.99},It=Qn=>{ke(!Qn[0].isIntersecting)},Mt=new IntersectionObserver(It,bt);Mt.observe(ft);const Zt=Qn=>{He(!Qn[0].isIntersecting)},rn=new IntersectionObserver(Zt,bt);return rn.observe(yt),()=>{Mt.disconnect(),rn.disconnect()}}},[H,R,Be,p==null?void 0:p.length]),E.useEffect(()=>{xe(!0)},[]),E.useEffect(()=>{gt()}),E.useEffect(()=>{et(GR!==he)},[et,he]),E.useImperativeHandle(c,()=>({updateIndicator:gt,updateScrollButtons:Pe}),[gt,Pe]);const xt=y.jsx(zQ,k({},T,{className:ye(L.indicator,T.className),ownerState:ce,style:k({},he,T.style)}));let Ht=0;const fn=E.Children.map(p,Re=>{if(!E.isValidElement(Re))return null;const We=Re.props.value===void 0?Ht:Re.props.value;ze.set(We,Ht);const ft=We===F;return Ht+=1,E.cloneElement(Re,k({fullWidth:B==="fullWidth",indicator:ft&&!ve&&xt,selected:ft,selectionFollowsFocus:O,onChange:b,textColor:M,value:We},Ht===1&&F===!1&&!Re.props.tabIndex?{tabIndex:0}:{}))}),Ue=Re=>{const We=Ze.current,ft=An(We).activeElement;if(ft.getAttribute("role")!=="tab")return;let bt=w==="horizontal"?"ArrowLeft":"ArrowUp",It=w==="horizontal"?"ArrowRight":"ArrowDown";switch(w==="horizontal"&&s&&(bt="ArrowRight",It="ArrowLeft"),Re.key){case bt:Re.preventDefault(),Nf(We,ft,KR);break;case It:Re.preventDefault(),Nf(We,ft,VR);break;case"Home":Re.preventDefault(),Nf(We,null,VR);break;case"End":Re.preventDefault(),Nf(We,null,KR);break}},ut=qt();return y.jsxs(DQ,k({className:ye(L.root,m),ownerState:ce,ref:n,as:g},W,{children:[ut.scrollButtonStart,ut.scrollbarSizeListener,y.jsxs(FQ,{className:L.scroller,ownerState:ce,style:{overflow:ct.overflow,[z?`margin${s?"Left":"Right"}`:"marginBottom"]:G?void 0:-ct.scrollbarWidth},ref:Ot,children:[y.jsx(BQ,{"aria-label":l,"aria-labelledby":u,"aria-orientation":w==="vertical"?"vertical":null,className:L.flexContainer,ownerState:ce,onKeyDown:Ue,ref:Ze,role:"tablist",children:fn}),ve&&xt]}),ut.scrollButtonEnd]}))});function HQ(e){return Ie("MuiTextField",e)}Ne("MuiTextField",["root"]);const VQ=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],KQ={standard:oy,filled:ey,outlined:uy},GQ=e=>{const{classes:t}=e;return Le({root:["root"]},HQ,t)},qQ=re(Tf,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xc=E.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:l,className:u,color:c="primary",defaultValue:f,disabled:p=!1,error:m=!1,FormHelperTextProps:g,fullWidth:S=!1,helperText:x,id:b,InputLabelProps:w,inputProps:P,InputProps:R,inputRef:O,label:A,maxRows:$,minRows:T,multiline:_=!1,name:M,onBlur:F,onChange:B,onFocus:G,placeholder:W,required:H=!1,rows:z,select:te=!1,SelectProps:Z,type:X,value:N,variant:Y="outlined"}=r,ce=ge(r,VQ),L=k({},r,{autoFocus:s,color:c,disabled:p,error:m,fullWidth:S,multiline:_,required:H,select:te,variant:Y}),se=GQ(L),Oe={};Y==="outlined"&&(w&&typeof w.shrink<"u"&&(Oe.notched=w.shrink),Oe.label=A),te&&((!Z||!Z.native)&&(Oe.id=void 0),Oe["aria-describedby"]=void 0);const ve=Ia(b),xe=x&&ve?`${ve}-helper-text`:void 0,he=A&&ve?`${ve}-label`:void 0,Me=KQ[Y],de=y.jsx(Me,k({"aria-describedby":xe,autoComplete:o,autoFocus:s,defaultValue:f,fullWidth:S,multiline:_,name:M,rows:z,maxRows:$,minRows:T,type:X,value:N,id:ve,inputRef:O,onBlur:F,onChange:B,onFocus:G,placeholder:W,inputProps:P},Oe,R));return y.jsxs(qQ,k({className:ye(se.root,u),disabled:p,error:m,fullWidth:S,ref:n,required:H,color:c,variant:Y,ownerState:L},ce,{children:[A!=null&&A!==""&&y.jsx(Of,k({htmlFor:ve,id:he},w,{children:A})),te?y.jsx(tl,k({"aria-describedby":xe,id:ve,labelId:he,value:N,input:de},Z,{children:l})):de,x&&y.jsx(aV,k({id:xe},g,{children:x}))]}))}),QQ={open:!1,setOpen:()=>{},layout:{},isBreakpointUp:!1,currentPage:"",setCurrentPage:()=>{},showSearch:!1,setShowSearch:()=>{},showBackButton:!1,setShowBackButton:()=>{}},Qo=ae.createContext(QQ),my=document.title,YQ=({children:e})=>{const[t,n]=ae.useState(!1),[r,o]=ae.useState(""),[s,l]=ae.useState(!1),[u,c]=ae.useState(!1),f=_i("luminix.cms.layout",{}),p=ef(g=>g.breakpoints.up((f==null?void 0:f.breakpoint)||"md")),m={open:t,setOpen:n,layout:f,isBreakpointUp:p,currentPage:r,setCurrentPage:o,showSearch:s,setShowSearch:l,showBackButton:u,setShowBackButton:c};return ae.useEffect(()=>(document.title=r?`${r} | ${_i("app.name",my)}`:_i("app.name",my),()=>{document.title=my}),[r]),y.jsx(Qo.Provider,{value:m,children:e})},qR=ae.createContext({Model:null}),gy=({Model:e,children:t})=>y.jsx(qR.Provider,{value:{Model:e},children:t}),XQ=(...e)=>{console!=null&&console.warn&&(Vs(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},QR={},yy=(...e)=>{Vs(e[0])&&QR[e[0]]||(Vs(e[0])&&(QR[e[0]]=new Date),XQ(...e))},YR=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},XR=(e,t,n)=>{e.loadNamespaces(t,YR(e,n))},JR=(e,t,n,r)=>{Vs(n)&&(n=[n]),n.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,YR(e,r))},JQ=(e,t,n={})=>!t.languages||!t.languages.length?(yy("i18n.languages were undefined or empty",t.languages),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,o)=>{var s;if(((s=n.bindI18n)==null?void 0:s.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!o(r.isLanguageChangingTo,e))return!1}}),Vs=e=>typeof e=="string",ZQ=e=>typeof e=="object"&&e!==null,eY=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,tY={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},nY=e=>tY[e];let vy={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(eY,nY)};const rY=(e={})=>{vy={...vy,...e}},oY=()=>vy;let ZR;const iY=e=>{ZR=e},sY=()=>ZR,aY={type:"3rdParty",init(e){rY(e.options.react),iY(e)}},lY=E.createContext();class cY{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{var r;(r=this.usedNamespaces)[n]??(r[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const uY=(e,t)=>{const n=E.useRef();return E.useEffect(()=>{n.current=e},[e,t]),n.current},ek=(e,t,n,r)=>e.getFixedT(t,n,r),dY=(e,t,n,r)=>E.useCallback(ek(e,t,n,r),[e,t,n,r]),Vn=(e,t={})=>{var A,$,T,_;const{i18n:n}=t,{i18n:r,defaultNS:o}=E.useContext(lY)||{},s=n||r||sY();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new cY),!s){yy("You will need to pass in an i18next instance by using initReactI18next");const M=(B,G)=>Vs(G)?G:ZQ(G)&&Vs(G.defaultValue)?G.defaultValue:Array.isArray(B)?B[B.length-1]:B,F=[M,{},!1];return F.t=M,F.i18n={},F.ready=!1,F}(A=s.options.react)!=null&&A.wait&&yy("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const l={...oY(),...s.options.react,...t},{useSuspense:u,keyPrefix:c}=l;let f=o||(($=s.options)==null?void 0:$.defaultNS);f=Vs(f)?[f]:f||["translation"],(_=(T=s.reportNamespaces).addUsedNamespaces)==null||_.call(T,f);const p=(s.isInitialized||s.initializedStoreOnce)&&f.every(M=>JQ(M,s,l)),m=dY(s,t.lng||null,l.nsMode==="fallback"?f:f[0],c),g=()=>m,S=()=>ek(s,t.lng||null,l.nsMode==="fallback"?f:f[0],c),[x,b]=E.useState(g);let w=f.join();t.lng&&(w=`${t.lng}${w}`);const P=uY(w),R=E.useRef(!0);E.useEffect(()=>{const{bindI18n:M,bindI18nStore:F}=l;R.current=!0,!p&&!u&&(t.lng?JR(s,t.lng,f,()=>{R.current&&b(S)}):XR(s,f,()=>{R.current&&b(S)})),p&&P&&P!==w&&R.current&&b(S);const B=()=>{R.current&&b(S)};return M&&(s==null||s.on(M,B)),F&&(s==null||s.store.on(F,B)),()=>{R.current=!1,s&&(M==null||M.split(" ").forEach(G=>s.off(G,B))),F&&s&&F.split(" ").forEach(G=>s.store.off(G,B))}},[s,w]),E.useEffect(()=>{R.current&&p&&b(g)},[s,c,p]);const O=[x,s,p];if(O.t=x,O.i18n=s,O.ready=p,p||!p&&!u)return O;throw new Promise(M=>{t.lng?JR(s,t.lng,f,()=>M()):XR(s,f,()=>M())})},tk=ae.createContext({isOpen:!1,dialog:()=>Promise.reject(new Error("Trying to access DialogContext outside of DialogProvider")),dismissDialog:()=>{},current:void 0});function fY(e){const[t,n]=ae.useState(e);return ae.useEffect(()=>{e&&n(e)},[e]),e||t}function pY({children:e,...t}){const[{current:n,resolve:r},o]=ae.useState({}),s=fY(n),l=ae.useCallback(p=>new Promise(m=>{o({current:typeof p=="string"?{message:p}:p,resolve:m})}),[]),{t:u}=Vn(),c=()=>{r&&r(!1),o({})},f=()=>{r&&r(!0),o({})};return y.jsxs(tk.Provider,{value:{isOpen:!!n,current:n,dialog:l,dismissDialog:c},children:[e,y.jsxs(Qg,{open:!!n,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",...(n==null?void 0:n.dismissable)??!0?{onClose:c}:{},...t,children:[(s==null?void 0:s.title)&&y.jsx(Jg,{id:"alert-dialog-title",children:s.title}),y.jsx(Xg,{children:y.jsx(h7,{id:"alert-dialog-description",children:s==null?void 0:s.message})}),y.jsxs(Yg,{children:[(s==null?void 0:s.type)==="confirm"&&y.jsxs(y.Fragment,{children:[y.jsx(ir,{onClick:c,children:(s==null?void 0:s.cancelText)??u("No")}),y.jsx(ir,{onClick:f,autoFocus:!0,children:(s==null?void 0:s.confirmText)??u("Yes")})]}),((s==null?void 0:s.type)??"alert")==="alert"&&y.jsx(ir,{onClick:c,autoFocus:!0,children:(s==null?void 0:s.confirmText)??u("Ok")})]})]})]})}const hY=Rt(y.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),mY=Rt(y.jsx("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline"),gY=Rt(y.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),yY=Rt(y.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),vY=Rt(y.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),bY=Rt(y.jsx("path",{d:"m12 2-5.5 9h11zm0 3.84L13.93 9h-3.87zM17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5m0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5M3 21.5h8v-8H3zm2-6h4v4H5z"}),"CategoryOutlined"),by=Rt(y.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),xy=Rt(y.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),wy=Rt(y.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),xY=Rt(y.jsx("path",{d:"M19 5v2h-4V5zM9 5v6H5V5zm10 8v6h-4v-6zM9 17v2H5v-2zM21 3h-8v6h8zM11 3H3v10h8zm10 8h-8v10h8zm-10 4H3v6h8z"}),"DashboardOutlined"),wY=Rt(y.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),SY=Rt(y.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),CY=Rt(y.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList"),EY=Rt(y.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),nk=Rt(y.jsx("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"HighlightOffOutlined"),RY=Rt(y.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),kY=Rt(y.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),rk=Rt(y.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert"),PY=Rt(y.jsx("path",{d:"M9 13.75c-2.34 0-7 1.17-7 3.5V19h14v-1.75c0-2.33-4.66-3.5-7-3.5M4.34 17c.84-.58 2.87-1.25 4.66-1.25s3.82.67 4.66 1.25zM9 12c1.93 0 3.5-1.57 3.5-3.5S10.93 5 9 5 5.5 6.57 5.5 8.5 7.07 12 9 12m0-5c.83 0 1.5.67 1.5 1.5S9.83 10 9 10s-1.5-.67-1.5-1.5S8.17 7 9 7m7.04 6.81c1.16.84 1.96 1.96 1.96 3.44V19h4v-1.75c0-2.02-3.5-3.17-5.96-3.44M15 12c1.93 0 3.5-1.57 3.5-3.5S16.93 5 15 5c-.54 0-1.04.13-1.5.35.63.89 1 1.98 1 3.15s-.37 2.26-1 3.15c.46.22.96.35 1.5.35"}),"PeopleOutlined"),ok=Rt(y.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),TY=Rt(y.jsx("path",{d:"M16 17.01V10h-2v7.01h-3L15 21l4-3.99zM9 3 5 6.99h3V14h2V6.99h3z"}),"SwapVert");function En(){const{isBreakpointUp:e}=E.useContext(Qo);return e}const Sy=ae.createContext({isOpen:!1,notify:()=>{},dismissNotification:()=>{},notifications:[],current:void 0,displacement:"8px",setDisplacement:()=>{}}),Cy=tr([]),OY=e=>{Cy.push(typeof e=="string"?{message:e}:e)},$Y=({children:e,autoHideDuration:t=6e3,variant:n,anchorOrigin:r,sx:o,...s})=>{const l=Nm(Cy),u=En(),f=xr().spacing(u?3:1),[p,m]=ae.useState(),[g,S]=ae.useState(f),{vertical:x="bottom"}=r||{},b=(w,P)=>{P!=="clickaway"&&m(void 0)};return ae.useEffect(()=>{if(!p&&l.isNotEmpty()){const w=setTimeout(()=>{m(Cy.pull(0)??void 0)},100);return()=>clearTimeout(w)}},[p,l]),y.jsxs(Sy.Provider,{value:{isOpen:!!p,notify:OY,dismissNotification:b,notifications:l.all(),current:p,displacement:g,setDisplacement:S},children:[e,y.jsx(MG,{open:!!p,autoHideDuration:t,anchorOrigin:r,onClose:b,sx:{...o,[x]:`${g} !important`},...s,children:p&&y.jsxs(k6,{onClose:b,severity:p.severity,variant:n,sx:{width:"100%"},action:p.actions&&[...p.actions.map(({label:w,callback:P},R)=>y.jsx(ir,{color:"inherit",size:"small",onClick:P,children:w},R)),y.jsx(Wn,{"aria-label":"close",color:"inherit",size:"small",onClick:b,children:y.jsx(wy,{})},"close")],children:[p.title&&y.jsx(L6,{children:p.title}),p.message]})})]})},AY=({children:e})=>{const t=ef("(prefers-color-scheme: dark)");return y.jsx($Y,{anchorOrigin:{vertical:"bottom",horizontal:"right"},variant:t?"standard":"filled",children:y.jsx(pY,{children:y.jsx(YQ,{children:e})})})},jY=(e,{Layout:t,Dashboard:n,ModelIndex:r,ModelItem:o},s)=>[{element:y.jsx(AY,{children:y.jsx(t,{children:y.jsx(WF,{})})}),children:[{path:"/",name:"luminix.cms.dashboard",element:y.jsx(n,{})},...Object.entries(s).flatMap(([l,u])=>[{path:"/"+_e.kebab(u.plural()),name:`luminix.cms.${l}.index`,element:y.jsx(gy,{Model:u,children:y.jsx(G4,{factory:u.query,children:y.jsx(r,{})})})},{path:"/"+_e.kebab(u.plural())+"/create",name:`luminix.cms.${l}.item`,element:y.jsx(gy,{Model:u,children:y.jsx(o,{create:!0})})},{path:"/"+_e.kebab(u.plural())+"/:id",name:`luminix.cms.${l}.item`,element:y.jsx(gy,{Model:u,children:y.jsx(o,{})})}])]}];function Ey(e){const{setCurrentPage:t}=ae.useContext(Qo);ae.useEffect(()=>(t(e),()=>{t("")}),[e,t])}const _Y=()=>{const{t:e}=Vn();return Ey(e("Dashboard")),y.jsx(y.Fragment,{children:"Dashboard"})},IY=({error:e})=>y.jsxs("div",{children:[y.jsx("h1",{children:"Ops..."}),y.jsx("p",{children:"Something went wrong"}),Tt().hasDebugModeEnabled()&&e&&y.jsx(y.Fragment,{children:y.jsxs("pre",{style:{whiteSpace:"pre-wrap"},children:[e.message,y.jsx("br",{}),e.stack]})})]});function Ur(e,t){const{layout:n}=E.useContext(Qo);return E.useMemo(()=>qe.get(n,e,t),[n,e,t])}const MY=re("div")(({theme:e})=>({padding:e.spacing(0,1),...e.mixins.toolbar})),NY=({children:e,slotProps:t,...n})=>{const{DesktopPageTitle:r,["Layout.AppBar"]:o,["Layout.Drawer"]:s}=Tt("cms").getComponents(),l=Ur("appBar.height"),{AppBar:u,Drawer:c,main:f}=t||{};return y.jsxs(Eo,{sx:{display:"flex"},...n,children:[y.jsx(o,{position:"fixed",...u}),y.jsx(s,{...c}),y.jsxs(Eo,{component:"main",sx:{flexGrow:1},...f,children:[y.jsx(MY,{style:{height:l}}),y.jsx(r,{}),y.jsx(Eo,{sx:{p:{xs:1,sm:2,md:3}},children:e})]})]})};function LY(){const{setShowSearch:e}=ae.useContext(Qo);ae.useEffect(()=>(e(!0),()=>{e(!1)}),[e])}function xi(){const{Model:e}=ae.useContext(qR);return e}const DY=()=>{const e=xi(),{data:t,error:n,loading:r}=cc();Ey(e.plural()),LY();const o=En(),{Breadcrumbs:s,["ModelIndex.Pagination"]:l,["ModelIndex.StaticActions"]:u,["ModelIndex.Table"]:c,["ModelIndex.Table.TableBody"]:f,["ModelIndex.Table.TableHead"]:p,["ModelIndex.Table.TableFooter"]:m,["ModelIndex.Table.TableToolbar"]:g,["ModelIndex.Table.TableBody.TableRow"]:S,["ModelIndex.Tabs"]:x}=Tt("cms").getComponents();return y.jsxs(vi,{container:!0,spacing:2,children:[y.jsxs(vi,{xs:12,display:"flex",flexDirection:"row",justifyContent:"space-between",children:[y.jsx(s,{parts:[{name:e.plural()}]}),y.jsx(u,{variant:o?"default":"fab"})]}),!o&&y.jsx(vi,{display:"flex",justifyContent:"center",xs:12,children:y.jsx(l,{variant:"compact"})}),y.jsx(vi,{xs:12,sx:{pb:0},children:y.jsx(x,{})}),y.jsx(vi,{xs:12,sx:{pt:0},children:y.jsxs(c,{items:t,loading:r,error:n,children:[y.jsx(p,{children:y.jsx(g,{})}),y.jsx(f,{children:b=>y.jsx(S,{item:b},b.getKey())}),y.jsx(m,{})]})})]})};function FY(){const{setShowBackButton:e}=ae.useContext(Qo);ae.useEffect(()=>(e(!0),()=>{e(!1)}),[e])}function ik(e,t){return function(){return e.apply(t,arguments)}}const{toString:BY}=Object.prototype,{getPrototypeOf:Ry}=Object,Lf=(e=>t=>{const n=BY.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ko=e=>(e=e.toLowerCase(),t=>Lf(t)===e),Df=e=>t=>typeof t===e,{isArray:rl}=Array,Jc=Df("undefined");function zY(e){return e!==null&&!Jc(e)&&e.constructor!==null&&!Jc(e.constructor)&&Wr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const sk=ko("ArrayBuffer");function UY(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&sk(e.buffer),t}const WY=Df("string"),Wr=Df("function"),ak=Df("number"),Ff=e=>e!==null&&typeof e=="object",HY=e=>e===!0||e===!1,Bf=e=>{if(Lf(e)!=="object")return!1;const t=Ry(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},VY=ko("Date"),KY=ko("File"),GY=ko("Blob"),qY=ko("FileList"),QY=e=>Ff(e)&&Wr(e.pipe),YY=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Wr(e.append)&&((t=Lf(e))==="formdata"||t==="object"&&Wr(e.toString)&&e.toString()==="[object FormData]"))},XY=ko("URLSearchParams"),[JY,ZY,eX,tX]=["ReadableStream","Request","Response","Headers"].map(ko),nX=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Zc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),rl(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;let u;for(r=0;r<l;r++)u=s[r],t.call(null,e[u],u,e)}}function lk(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Ks=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ck=e=>!Jc(e)&&e!==Ks;function ky(){const{caseless:e}=ck(this)&&this||{},t={},n=(r,o)=>{const s=e&&lk(t,o)||o;Bf(t[s])&&Bf(r)?t[s]=ky(t[s],r):Bf(r)?t[s]=ky({},r):rl(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Zc(arguments[r],n);return t}const rX=(e,t,n,{allOwnKeys:r}={})=>(Zc(t,(o,s)=>{n&&Wr(o)?e[s]=ik(o,n):e[s]=o},{allOwnKeys:r}),e),oX=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),iX=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},sX=(e,t,n,r)=>{let o,s,l;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)l=o[s],(!r||r(l,e,t))&&!u[l]&&(t[l]=e[l],u[l]=!0);e=n!==!1&&Ry(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},aX=(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},lX=e=>{if(!e)return null;if(rl(e))return e;let t=e.length;if(!ak(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},cX=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ry(Uint8Array)),uX=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},dX=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},fX=ko("HTMLFormElement"),pX=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),uk=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),hX=ko("RegExp"),dk=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Zc(n,(o,s)=>{let l;(l=t(o,s,e))!==!1&&(r[s]=l||o)}),Object.defineProperties(e,r)},mX=e=>{dk(e,(t,n)=>{if(Wr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Wr(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+"'")})}})},gX=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return rl(e)?r(e):r(String(e).split(t)),n},yX=()=>{},vX=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Py="abcdefghijklmnopqrstuvwxyz",fk="0123456789",pk={DIGIT:fk,ALPHA:Py,ALPHA_DIGIT:Py+Py.toUpperCase()+fk},bX=(e=16,t=pk.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function xX(e){return!!(e&&Wr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const wX=e=>{const t=new Array(10),n=(r,o)=>{if(Ff(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=rl(r)?[]:{};return Zc(r,(l,u)=>{const c=n(l,o+1);!Jc(c)&&(s[u]=c)}),t[o]=void 0,s}}return r};return n(e,0)},SX=ko("AsyncFunction"),CX=e=>e&&(Ff(e)||Wr(e))&&Wr(e.then)&&Wr(e.catch),hk=((e,t)=>e?setImmediate:t?((n,r)=>(Ks.addEventListener("message",({source:o,data:s})=>{o===Ks&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Ks.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Wr(Ks.postMessage)),EX=typeof queueMicrotask<"u"?queueMicrotask.bind(Ks):typeof process<"u"&&process.nextTick||hk,pe={isArray:rl,isArrayBuffer:sk,isBuffer:zY,isFormData:YY,isArrayBufferView:UY,isString:WY,isNumber:ak,isBoolean:HY,isObject:Ff,isPlainObject:Bf,isReadableStream:JY,isRequest:ZY,isResponse:eX,isHeaders:tX,isUndefined:Jc,isDate:VY,isFile:KY,isBlob:GY,isRegExp:hX,isFunction:Wr,isStream:QY,isURLSearchParams:XY,isTypedArray:cX,isFileList:qY,forEach:Zc,merge:ky,extend:rX,trim:nX,stripBOM:oX,inherits:iX,toFlatObject:sX,kindOf:Lf,kindOfTest:ko,endsWith:aX,toArray:lX,forEachEntry:uX,matchAll:dX,isHTMLForm:fX,hasOwnProperty:uk,hasOwnProp:uk,reduceDescriptors:dk,freezeMethods:mX,toObjectSet:gX,toCamelCase:pX,noop:yX,toFiniteNumber:vX,findKey:lk,global:Ks,isContextDefined:ck,ALPHABET:pk,generateString:bX,isSpecCompliantForm:xX,toJSONObject:wX,isAsyncFn:SX,isThenable:CX,setImmediate:hk,asap:EX};function St(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}pe.inherits(St,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:pe.toJSONObject(this.config),code:this.code,status:this.status}}});const mk=St.prototype,gk={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{gk[e]={value:e}}),Object.defineProperties(St,gk),Object.defineProperty(mk,"isAxiosError",{value:!0}),St.from=(e,t,n,r,o,s)=>{const l=Object.create(mk);return pe.toFlatObject(e,l,function(c){return c!==Error.prototype},u=>u!=="isAxiosError"),St.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,s&&Object.assign(l,s),l};const RX=null;function Ty(e){return pe.isPlainObject(e)||pe.isArray(e)}function yk(e){return pe.endsWith(e,"[]")?e.slice(0,-2):e}function vk(e,t,n){return e?e.concat(t).map(function(o,s){return o=yk(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function kX(e){return pe.isArray(e)&&!e.some(Ty)}const PX=pe.toFlatObject(pe,{},null,function(t){return/^is[A-Z]/.test(t)});function zf(e,t,n){if(!pe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=pe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,w){return!pe.isUndefined(w[b])});const r=n.metaTokens,o=n.visitor||p,s=n.dots,l=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&pe.isSpecCompliantForm(t);if(!pe.isFunction(o))throw new TypeError("visitor must be a function");function f(x){if(x===null)return"";if(pe.isDate(x))return x.toISOString();if(!c&&pe.isBlob(x))throw new St("Blob is not supported. Use a Buffer instead.");return pe.isArrayBuffer(x)||pe.isTypedArray(x)?c&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function p(x,b,w){let P=x;if(x&&!w&&typeof x=="object"){if(pe.endsWith(b,"{}"))b=r?b:b.slice(0,-2),x=JSON.stringify(x);else if(pe.isArray(x)&&kX(x)||(pe.isFileList(x)||pe.endsWith(b,"[]"))&&(P=pe.toArray(x)))return b=yk(b),P.forEach(function(O,A){!(pe.isUndefined(O)||O===null)&&t.append(l===!0?vk([b],A,s):l===null?b:b+"[]",f(O))}),!1}return Ty(x)?!0:(t.append(vk(w,b,s),f(x)),!1)}const m=[],g=Object.assign(PX,{defaultVisitor:p,convertValue:f,isVisitable:Ty});function S(x,b){if(!pe.isUndefined(x)){if(m.indexOf(x)!==-1)throw Error("Circular reference detected in "+b.join("."));m.push(x),pe.forEach(x,function(P,R){(!(pe.isUndefined(P)||P===null)&&o.call(t,P,pe.isString(R)?R.trim():R,b,g))===!0&&S(P,b?b.concat(R):[R])}),m.pop()}}if(!pe.isObject(e))throw new TypeError("data must be an object");return S(e),t}function bk(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Oy(e,t){this._pairs=[],e&&zf(e,this,t)}const xk=Oy.prototype;xk.append=function(t,n){this._pairs.push([t,n])},xk.toString=function(t){const n=t?function(r){return t.call(this,r,bk)}:bk;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function TX(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wk(e,t,n){if(!t)return e;const r=n&&n.encode||TX,o=n&&n.serialize;let s;if(o?s=o(t,n):s=pe.isURLSearchParams(t)?t.toString():new Oy(t,n).toString(r),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Sk{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){pe.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ck={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},OX={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Oy,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},$y=typeof window<"u"&&typeof document<"u",Ay=typeof navigator=="object"&&navigator||void 0,$X=$y&&(!Ay||["ReactNative","NativeScript","NS"].indexOf(Ay.product)<0),AX=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",jX=$y&&window.location.href||"http://localhost",Cr={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:$y,hasStandardBrowserEnv:$X,hasStandardBrowserWebWorkerEnv:AX,navigator:Ay,origin:jX},Symbol.toStringTag,{value:"Module"})),...OX};function _X(e,t){return zf(e,new Cr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return Cr.isNode&&pe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function IX(e){return pe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function MX(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function Ek(e){function t(n,r,o,s){let l=n[s++];if(l==="__proto__")return!0;const u=Number.isFinite(+l),c=s>=n.length;return l=!l&&pe.isArray(o)?o.length:l,c?(pe.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!u):((!o[l]||!pe.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],s)&&pe.isArray(o[l])&&(o[l]=MX(o[l])),!u)}if(pe.isFormData(e)&&pe.isFunction(e.entries)){const n={};return pe.forEachEntry(e,(r,o)=>{t(IX(r),o,n,0)}),n}return null}function NX(e,t,n){if(pe.isString(e))try{return(t||JSON.parse)(e),pe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const eu={transitional:Ck,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=pe.isObject(t);if(s&&pe.isHTMLForm(t)&&(t=new FormData(t)),pe.isFormData(t))return o?JSON.stringify(Ek(t)):t;if(pe.isArrayBuffer(t)||pe.isBuffer(t)||pe.isStream(t)||pe.isFile(t)||pe.isBlob(t)||pe.isReadableStream(t))return t;if(pe.isArrayBufferView(t))return t.buffer;if(pe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return _X(t,this.formSerializer).toString();if((u=pe.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return zf(u?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),NX(t)):t}],transformResponse:[function(t){const n=this.transitional||eu.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(pe.isResponse(t)||pe.isReadableStream(t))return t;if(t&&pe.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(u){if(l)throw u.name==="SyntaxError"?St.from(u,St.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Cr.classes.FormData,Blob:Cr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pe.forEach(["delete","get","head","post","put","patch"],e=>{eu.headers[e]={}});const LX=pe.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"]),DX=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
175
175
|
`).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&LX[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Rk=Symbol("internals");function tu(e){return e&&String(e).trim().toLowerCase()}function Uf(e){return e===!1||e==null?e:pe.isArray(e)?e.map(Uf):String(e)}function FX(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 BX=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function jy(e,t,n,r,o){if(pe.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!pe.isString(t)){if(pe.isString(r))return t.indexOf(r)!==-1;if(pe.isRegExp(r))return r.test(t)}}function zX(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function UX(e,t){const n=pe.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,l){return this[r].call(this,t,o,s,l)},configurable:!0})})}let Er=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(u,c,f){const p=tu(c);if(!p)throw new Error("header name must be a non-empty string");const m=pe.findKey(o,p);(!m||o[m]===void 0||f===!0||f===void 0&&o[m]!==!1)&&(o[m||c]=Uf(u))}const l=(u,c)=>pe.forEach(u,(f,p)=>s(f,p,c));if(pe.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(pe.isString(t)&&(t=t.trim())&&!BX(t))l(DX(t),n);else if(pe.isHeaders(t))for(const[u,c]of t.entries())s(c,u,r);else t!=null&&s(n,t,r);return this}get(t,n){if(t=tu(t),t){const r=pe.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return FX(o);if(pe.isFunction(n))return n.call(this,o,r);if(pe.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=tu(t),t){const r=pe.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||jy(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(l){if(l=tu(l),l){const u=pe.findKey(r,l);u&&(!n||jy(r,r[u],u,n))&&(delete r[u],o=!0)}}return pe.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||jy(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return pe.forEach(this,(o,s)=>{const l=pe.findKey(r,s);if(l){n[l]=Uf(o),delete n[s];return}const u=t?zX(s):String(s).trim();u!==s&&delete n[s],n[u]=Uf(o),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return pe.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&pe.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(`
|
|
176
176
|
`)}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(o=>r.set(o)),r}static accessor(t){const r=(this[Rk]=this[Rk]={accessors:{}}).accessors,o=this.prototype;function s(l){const u=tu(l);r[u]||(UX(o,l),r[u]=!0)}return pe.isArray(t)?t.forEach(s):s(t),this}};Er.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),pe.reduceDescriptors(Er.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),pe.freezeMethods(Er);function _y(e,t){const n=this||eu,r=t||n,o=Er.from(r.headers);let s=r.data;return pe.forEach(e,function(u){s=u.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function kk(e){return!!(e&&e.__CANCEL__)}function ol(e,t,n){St.call(this,e??"canceled",St.ERR_CANCELED,t,n),this.name="CanceledError"}pe.inherits(ol,St,{__CANCEL__:!0});function Pk(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new St("Request failed with status code "+n.status,[St.ERR_BAD_REQUEST,St.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function WX(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function HX(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,l;return t=t!==void 0?t:1e3,function(c){const f=Date.now(),p=r[s];l||(l=f),n[o]=c,r[o]=f;let m=s,g=0;for(;m!==o;)g+=n[m++],m=m%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),f-l<t)return;const S=p&&f-p;return S?Math.round(g*1e3/S):void 0}}function VX(e,t){let n=0,r=1e3/t,o,s;const l=(f,p=Date.now())=>{n=p,o=null,s&&(clearTimeout(s),s=null),e.apply(null,f)};return[(...f)=>{const p=Date.now(),m=p-n;m>=r?l(f,p):(o=f,s||(s=setTimeout(()=>{s=null,l(o)},r-m)))},()=>o&&l(o)]}const Wf=(e,t,n=3)=>{let r=0;const o=HX(50,250);return VX(s=>{const l=s.loaded,u=s.lengthComputable?s.total:void 0,c=l-r,f=o(c),p=l<=u;r=l;const m={loaded:l,total:u,progress:u?l/u:void 0,bytes:c,rate:f||void 0,estimated:f&&u&&p?(u-l)/f:void 0,event:s,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(m)},n)},Tk=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ok=e=>(...t)=>pe.asap(()=>e(...t)),KX=Cr.hasStandardBrowserEnv?function(){const t=Cr.navigator&&/(msie|trident)/i.test(Cr.navigator.userAgent),n=document.createElement("a");let r;function o(s){let l=s;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(l){const u=pe.isString(l)?o(l):l;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}(),GX=Cr.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const l=[e+"="+encodeURIComponent(t)];pe.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),pe.isString(r)&&l.push("path="+r),pe.isString(o)&&l.push("domain="+o),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function qX(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function QX(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function $k(e,t){return e&&!qX(t)?QX(e,t):t}const Ak=e=>e instanceof Er?{...e}:e;function Gs(e,t){t=t||{};const n={};function r(f,p,m){return pe.isPlainObject(f)&&pe.isPlainObject(p)?pe.merge.call({caseless:m},f,p):pe.isPlainObject(p)?pe.merge({},p):pe.isArray(p)?p.slice():p}function o(f,p,m){if(pe.isUndefined(p)){if(!pe.isUndefined(f))return r(void 0,f,m)}else return r(f,p,m)}function s(f,p){if(!pe.isUndefined(p))return r(void 0,p)}function l(f,p){if(pe.isUndefined(p)){if(!pe.isUndefined(f))return r(void 0,f)}else return r(void 0,p)}function u(f,p,m){if(m in t)return r(f,p);if(m in e)return r(void 0,f)}const c={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:u,headers:(f,p)=>o(Ak(f),Ak(p),!0)};return pe.forEach(Object.keys(Object.assign({},e,t)),function(p){const m=c[p]||o,g=m(e[p],t[p],p);pe.isUndefined(g)&&m!==u||(n[p]=g)}),n}const jk=e=>{const t=Gs({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:l,auth:u}=t;t.headers=l=Er.from(l),t.url=wk($k(t.baseURL,t.url),e.params,e.paramsSerializer),u&&l.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let c;if(pe.isFormData(n)){if(Cr.hasStandardBrowserEnv||Cr.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((c=l.getContentType())!==!1){const[f,...p]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];l.setContentType([f||"multipart/form-data",...p].join("; "))}}if(Cr.hasStandardBrowserEnv&&(r&&pe.isFunction(r)&&(r=r(t)),r||r!==!1&&KX(t.url))){const f=o&&s&&GX.read(s);f&&l.set(o,f)}return t},YX=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const o=jk(e);let s=o.data;const l=Er.from(o.headers).normalize();let{responseType:u,onUploadProgress:c,onDownloadProgress:f}=o,p,m,g,S,x;function b(){S&&S(),x&&x(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let w=new XMLHttpRequest;w.open(o.method.toUpperCase(),o.url,!0),w.timeout=o.timeout;function P(){if(!w)return;const O=Er.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),$={data:!u||u==="text"||u==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:O,config:e,request:w};Pk(function(_){n(_),b()},function(_){r(_),b()},$),w=null}"onloadend"in w?w.onloadend=P:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(P)},w.onabort=function(){w&&(r(new St("Request aborted",St.ECONNABORTED,e,w)),w=null)},w.onerror=function(){r(new St("Network Error",St.ERR_NETWORK,e,w)),w=null},w.ontimeout=function(){let A=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const $=o.transitional||Ck;o.timeoutErrorMessage&&(A=o.timeoutErrorMessage),r(new St(A,$.clarifyTimeoutError?St.ETIMEDOUT:St.ECONNABORTED,e,w)),w=null},s===void 0&&l.setContentType(null),"setRequestHeader"in w&&pe.forEach(l.toJSON(),function(A,$){w.setRequestHeader($,A)}),pe.isUndefined(o.withCredentials)||(w.withCredentials=!!o.withCredentials),u&&u!=="json"&&(w.responseType=o.responseType),f&&([g,x]=Wf(f,!0),w.addEventListener("progress",g)),c&&w.upload&&([m,S]=Wf(c),w.upload.addEventListener("progress",m),w.upload.addEventListener("loadend",S)),(o.cancelToken||o.signal)&&(p=O=>{w&&(r(!O||O.type?new ol(null,e,w):O),w.abort(),w=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const R=WX(o.url);if(R&&Cr.protocols.indexOf(R)===-1){r(new St("Unsupported protocol "+R+":",St.ERR_BAD_REQUEST,e));return}w.send(s||null)})},XX=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(f){if(!o){o=!0,u();const p=f instanceof Error?f:this.reason;r.abort(p instanceof St?p:new ol(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{l=null,s(new St(`timeout ${t} of ms exceeded`,St.ETIMEDOUT))},t);const u=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(s):f.removeEventListener("abort",s)}),e=null)};e.forEach(f=>f.addEventListener("abort",s));const{signal:c}=r;return c.unsubscribe=()=>pe.asap(u),c}},JX=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},ZX=async function*(e,t){for await(const n of eJ(e))yield*JX(n,t)},eJ=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},_k=(e,t,n,r)=>{const o=ZX(e,t);let s=0,l,u=c=>{l||(l=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:f,value:p}=await o.next();if(f){u(),c.close();return}let m=p.byteLength;if(n){let g=s+=m;n(g)}c.enqueue(new Uint8Array(p))}catch(f){throw u(f),f}},cancel(c){return u(c),o.return()}},{highWaterMark:2})},Hf=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ik=Hf&&typeof ReadableStream=="function",tJ=Hf&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Mk=(e,...t)=>{try{return!!e(...t)}catch{return!1}},nJ=Ik&&Mk(()=>{let e=!1;const t=new Request(Cr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Nk=64*1024,Iy=Ik&&Mk(()=>pe.isReadableStream(new Response("").body)),Vf={stream:Iy&&(e=>e.body)};Hf&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Vf[t]&&(Vf[t]=pe.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new St(`Response type '${t}' is not supported`,St.ERR_NOT_SUPPORT,r)})})})(new Response);const rJ=async e=>{if(e==null)return 0;if(pe.isBlob(e))return e.size;if(pe.isSpecCompliantForm(e))return(await new Request(Cr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(pe.isArrayBufferView(e)||pe.isArrayBuffer(e))return e.byteLength;if(pe.isURLSearchParams(e)&&(e=e+""),pe.isString(e))return(await tJ(e)).byteLength},oJ=async(e,t)=>{const n=pe.toFiniteNumber(e.getContentLength());return n??rJ(t)},My={http:RX,xhr:YX,fetch:Hf&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:l,onDownloadProgress:u,onUploadProgress:c,responseType:f,headers:p,withCredentials:m="same-origin",fetchOptions:g}=jk(e);f=f?(f+"").toLowerCase():"text";let S=XX([o,s&&s.toAbortSignal()],l),x;const b=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let w;try{if(c&&nJ&&n!=="get"&&n!=="head"&&(w=await oJ(p,r))!==0){let $=new Request(t,{method:"POST",body:r,duplex:"half"}),T;if(pe.isFormData(r)&&(T=$.headers.get("content-type"))&&p.setContentType(T),$.body){const[_,M]=Tk(w,Wf(Ok(c)));r=_k($.body,Nk,_,M)}}pe.isString(m)||(m=m?"include":"omit");const P="credentials"in Request.prototype;x=new Request(t,{...g,signal:S,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:P?m:void 0});let R=await fetch(x);const O=Iy&&(f==="stream"||f==="response");if(Iy&&(u||O&&b)){const $={};["status","statusText","headers"].forEach(F=>{$[F]=R[F]});const T=pe.toFiniteNumber(R.headers.get("content-length")),[_,M]=u&&Tk(T,Wf(Ok(u),!0))||[];R=new Response(_k(R.body,Nk,_,()=>{M&&M(),b&&b()}),$)}f=f||"text";let A=await Vf[pe.findKey(Vf,f)||"text"](R,e);return!O&&b&&b(),await new Promise(($,T)=>{Pk($,T,{data:A,headers:Er.from(R.headers),status:R.status,statusText:R.statusText,config:e,request:x})})}catch(P){throw b&&b(),P&&P.name==="TypeError"&&/fetch/i.test(P.message)?Object.assign(new St("Network Error",St.ERR_NETWORK,e,x),{cause:P.cause||P}):St.from(P,P&&P.code,e,x)}})};pe.forEach(My,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Lk=e=>`- ${e}`,iJ=e=>pe.isFunction(e)||e===null||e===!1,Dk={getAdapter:e=>{e=pe.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s<t;s++){n=e[s];let l;if(r=n,!iJ(n)&&(r=My[(l=String(n)).toLowerCase()],r===void 0))throw new St(`Unknown adapter '${l}'`);if(r)break;o[l||"#"+s]=r}if(!r){const s=Object.entries(o).map(([u,c])=>`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=t?s.length>1?`since :
|
|
177
177
|
`+s.map(Lk).join(`
|
|
178
178
|
`):" "+Lk(s[0]):"as no adapter specified";throw new St("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:My};function Ny(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ol(null,e)}function Fk(e){return Ny(e),e.headers=Er.from(e.headers),e.data=_y.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Dk.getAdapter(e.adapter||eu.adapter)(e).then(function(r){return Ny(e),r.data=_y.call(e,e.transformResponse,r),r.headers=Er.from(r.headers),r},function(r){return kk(r)||(Ny(e),r&&r.response&&(r.response.data=_y.call(e,e.transformResponse,r.response),r.response.headers=Er.from(r.response.headers))),Promise.reject(r)})}const Bk="1.7.7",Ly={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ly[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const zk={};Ly.transitional=function(t,n,r){function o(s,l){return"[Axios v"+Bk+"] Transitional option '"+s+"'"+l+(r?". "+r:"")}return(s,l,u)=>{if(t===!1)throw new St(o(l," has been removed"+(n?" in "+n:"")),St.ERR_DEPRECATED);return n&&!zk[l]&&(zk[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,l,u):!0}};function sJ(e,t,n){if(typeof e!="object")throw new St("options must be an object",St.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],l=t[s];if(l){const u=e[s],c=u===void 0||l(u,s,e);if(c!==!0)throw new St("option "+s+" must be "+c,St.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new St("Unknown option "+s,St.ERR_BAD_OPTION)}}const Dy={assertOptions:sJ,validators:Ly},Yi=Dy.validators;let qs=class{constructor(t){this.defaults=t,this.interceptors={request:new Sk,response:new Sk}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
179
|
-
`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Gs(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Dy.assertOptions(r,{silentJSONParsing:Yi.transitional(Yi.boolean),forcedJSONParsing:Yi.transitional(Yi.boolean),clarifyTimeoutError:Yi.transitional(Yi.boolean)},!1),o!=null&&(pe.isFunction(o)?n.paramsSerializer={serialize:o}:Dy.assertOptions(o,{encode:Yi.function,serialize:Yi.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&pe.merge(s.common,s[n.method]);s&&pe.forEach(["delete","get","head","post","put","patch","common"],x=>{delete s[x]}),n.headers=Er.concat(l,s);const u=[];let c=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(c=c&&b.synchronous,u.unshift(b.fulfilled,b.rejected))});const f=[];this.interceptors.response.forEach(function(b){f.push(b.fulfilled,b.rejected)});let p,m=0,g;if(!c){const x=[Fk.bind(this),void 0];for(x.unshift.apply(x,u),x.push.apply(x,f),g=x.length,p=Promise.resolve(n);m<g;)p=p.then(x[m++],x[m++]);return p}g=u.length;let S=n;for(m=0;m<g;){const x=u[m++],b=u[m++];try{S=x(S)}catch(w){b.call(this,w);break}}try{p=Fk.call(this,S)}catch(x){return Promise.reject(x)}for(m=0,g=f.length;m<g;)p=p.then(f[m++],f[m++]);return p}getUri(t){t=Gs(this.defaults,t);const n=$k(t.baseURL,t.url);return wk(n,t.params,t.paramsSerializer)}};pe.forEach(["delete","get","head","options"],function(t){qs.prototype[t]=function(n,r){return this.request(Gs(r||{},{method:t,url:n,data:(r||{}).data}))}}),pe.forEach(["post","put","patch"],function(t){function n(r){return function(s,l,u){return this.request(Gs(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}qs.prototype[t]=n(),qs.prototype[t+"Form"]=n(!0)});let aJ=class IO{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const l=new Promise(u=>{r.subscribe(u),s=u}).then(o);return l.cancel=function(){r.unsubscribe(s)},l},t(function(s,l,u){r.reason||(r.reason=new ol(s,l,u),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 IO(function(o){t=o}),cancel:t}}};function lJ(e){return function(n){return e.apply(null,n)}}function cJ(e){return pe.isObject(e)&&e.isAxiosError===!0}const Fy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Fy).forEach(([e,t])=>{Fy[t]=e});function Uk(e){const t=new qs(e),n=ik(qs.prototype.request,t);return pe.extend(n,qs.prototype,t,{allOwnKeys:!0}),pe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Uk(Gs(e,o))},n}const On=Uk(eu);On.Axios=qs,On.CanceledError=ol,On.CancelToken=aJ,On.isCancel=kk,On.VERSION=Bk,On.toFormData=zf,On.AxiosError=St,On.Cancel=On.CanceledError,On.all=function(t){return Promise.all(t)},On.spread=lJ,On.isAxiosError=cJ,On.mergeConfig=Gs,On.AxiosHeaders=Er,On.formToJSON=e=>Ek(pe.isHTMLForm(e)?new FormData(e):e),On.getAdapter=Dk.getAdapter,On.HttpStatusCode=Fy,On.default=On;const{Axios:lne,AxiosError:cne,CanceledError:une,isCancel:dne,CancelToken:fne,VERSION:pne,all:hne,Cancel:mne,isAxiosError:uJ,spread:gne,toFormData:yne,AxiosHeaders:vne,HttpStatusCode:bne,formToJSON:xne,getAdapter:wne,mergeConfig:Sne}=On;function Qs(e){return t=>{var n;if(!(t instanceof Error))throw t;e({message:uJ(t)?((n=t.response)==null?void 0:n.data.message)??t.message:t.message,severity:"error"})}}function By(){return ae.useContext(Sy).notify}function dJ(){const e=By();return ae.useCallback(t=>{Qs(e)(t)},[e])}const fJ=({create:e=!1})=>{const[t,n]=ae.useState(),{id:r}=$F(),{t:o}=Vn(),s=By(),l=sc(),u=xi(),c=Ur("breakpoint","md");Ey(t!=null&&t.exists?o("Edit :model “:label“",{model:u.singular(),label:(t==null?void 0:t.getLabel())||"..."}):o("Create :model",{model:u.singular()})),FY();const f=Tt("cms").getComponent("Breadcrumbs");ae.useEffect(()=>{e?n(new u):u.find(r).then(S=>n(S??void 0))},[r,u,e]);const p=ae.useCallback(()=>{s(o(":model saved successfully",{model:u.singular()})),t!=null&&t.wasRecentlyCreated&&l(`/${_e.kebab(u.plural())}/${t.getKey()}`)},[s,l,u,t,o]),m=dJ(),g=ae.useMemo(()=>Tt("cms").getModelFormProps(t),[t]);return t?y.jsxs(vi,{container:!0,children:[y.jsx(vi,{xs:12,children:y.jsx(f,{parts:[{name:u.plural(),href:"/"+_e.kebab(u.plural())},{name:t.exists?t.getLabel():o("New")}]})}),y.jsx(vi,{xs:12,[c]:6,children:y.jsx(Ld,{submitText:"Save",...g,item:t,onSuccess:p,onError:m})})]}):null};function pJ(e){const{setDisplacement:t}=ae.useContext(Sy),n=xr(),r=En(),o=n.spacing(r?3:1),s=e===!1?o:n.spacing(e);ae.useEffect(()=>(t(s),()=>{t(o)}),[s,o,t])}function hJ(){return ae.useContext(tk).dialog}function zy(){const e=sc(),t=By(),n=hJ(),{t:r}=Vn(),{refresh:o}=cc();return{navigate:e,notify:t,dialog:n,t:r,refresh:o}}const mJ=re(Zg)(({theme:e})=>({position:"fixed",bottom:e.spacing(2),right:e.spacing(2)})),gJ=re(GG)(({theme:e})=>({position:"fixed",bottom:e.spacing(2),right:e.spacing(2)})),yJ=({variant:e="default"})=>{const t=xi(),n=En(),[r]=Zr(),o=r.get("tab")??"all",[s,l]=ae.useState(!1),u=ae.useRef(null),[c,f]=ae.useState(0),p=zy(),m=ae.useMemo(()=>Tt("cms").getStaticActions(t,o),[t,o]);if(pJ(e==="fab"&&m.length>0?n?12:10:!1),m.length===0)return null;const g=(b,w)=>{f(w),l(!1)},S=()=>{l(b=>!b)},x=b=>{u.current&&u.current.contains(b.target)||l(!1)};return e==="fab"?m.length===1?vs.createPortal(y.jsx(mJ,{color:"primary",onClick:()=>m[0].callback(p),children:m[0].icon||m[0].label.charAt(0).toUpperCase()}),document.body):vs.createPortal(y.jsx(gJ,{ariaLabel:`actions for ${t.singular()}`,icon:y.jsx(NR,{}),color:"primary",onClose:()=>l(!1),onOpen:()=>l(!0),open:s,children:m.map(b=>y.jsx(cq,{icon:b.icon||b.label.charAt(0).toUpperCase(),tooltipTitle:b.label,onClick:()=>b.callback(p)},b.label))}),document.body):y.jsxs(y.Fragment,{children:[y.jsxs(Y9,{variant:"contained",ref:u,"aria-label":m[c].label,children:[y.jsx(ir,{onClick:()=>m[c].callback(p),children:m[c].label}),m.length>1&&y.jsx(ir,{variant:"contained",size:"small","aria-controls":s?"split-button-menu":void 0,"aria-expanded":s?"true":void 0,"aria-label":`select ${t.singular()} actions`,"aria-haspopup":"menu",onClick:S,children:y.jsx(yY,{})})]}),y.jsx(Bc,{open:s,anchorEl:u.current,role:void 0,transition:!0,children:({TransitionProps:b,placement:w})=>y.jsx(Ja,{...b,style:{transformOrigin:w==="bottom"?"center top":"center bottom"},children:y.jsx(oo,{children:y.jsx(KE,{onClickAway:x,children:y.jsx(fR,{id:"split-button-menu",children:m.map((P,R)=>y.jsx(Ki,{selected:R===c,onClick:O=>g(O,R),children:P.label},P.label))})})})})})]})};function Uy(){const{open:e,setOpen:t}=ae.useContext(Qo);return{open:e,handleDrawerOpen:()=>{t(!0)},handleDrawerClose:()=>{t(!1)},toggle:()=>{t(s=>!s)}}}function Wk(){const{currentPage:e}=ae.useContext(Qo);return e}function vJ(){const{showSearch:e}=ae.useContext(Qo);return e}const bJ="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAABbWlDQ1BpY2MAACiRdZG9S0JRGMZ/aqWU0VBDRIOBRYORFERj2eAiIWaQ1aI3PwI/LvcqIa1BS4PQELX0NfQf1Bq0FgRBEUQ0Nve1hNzeo4ISdS7nvj+ec56Xc54D9lBWy5ltfsjli0YkGPAsxZY9zldcdADjDMU1U58Nh0P8O77usal6N6Z6/b/vz9G1ljQ1sLmEpzTdKArPCIc2irriHeE+LRNfEz4S9hlyQOFrpSfq/KI4XecPxUY0Mgd21dOTbuFEC2sZIyc8KuzNZUta4zzqJu5kfnFB6oDMQUwiBAngIUGJdbIUGZOal8z+9vlrvnkK4tHkr1PGEEeajHh9opaka1JqSvSkfFnKKvffeZqpyYl6d3cA2p8t630YnLtQrVjW97FlVU/A8QSX+aa/IDlNf4peaWreQ+jZgvOrppbYg4tt6H/U40a8Jjlk2lMpeDuD7hj03kLnSj2rxjqnDxDdlCe6gf0DGJH9Pas/3QVn+hiI/rEAAAAJcEhZcwAACxEAAAsRAX9kX5EAAAWBSURBVFhHxZl/TFtVFMe/pZQOGMIA0W3iBgOloLIBzrkZJsuWmCwah/8sYW4my0QYc1NijM5o1MQ4/3B/CUb/0Bn+mTHzD4PjRxEUxEGmcWb8VsbPTTYYDBjQFlrPubTQ0va9+6qdJ3lp+t69537eOfeec+59OpAklpWvQkhICV0FsNvT4XCE8X0tYrPb8WBsLL7L34eoMPnukxYrjpprYe4fgEGvtxJDOzFU0PXJYHHRnC6x/NNwAqnQGY35WFiAY35eC9dSWwv1Ld+zB/kPpEr3H52dRVFNLRoGBxEeGir66fhXr4fDYjlHfwv4bjHD0Q1pxSsbWglu27q1eDpl08pHfv8PT0+jsLoGLdeuLcFxY2EgupxMxQx4iC0XqDiooz4kBCeys2GgXxnpnbiFF6urcenGDQ84j76LTC8woClQt7JCC73t3k3JeDIxUYYN7WNjOFJVjZ7xcf9wpMnJZGLARedLqfds5HA4EGkw4DhZT6fTqWr4dWREuHVwagqrnHNOpZNcK39K5sgNh0xp2JyQ4K/J0v3m4WFyaw3G5uZgpEUgKwFbb4GslxARgZItW1THqunrQ4m5DtNWq/Q8dSkNGJDDysGMDGyMjlYE/LanB6X1DZijuRoquYjcFQYEOE9BOZnADj/ysF84O1n4y8uXcbKxCdye4TiYuwvPWjXogAB5oMLNmYgP5xjvWzj4nu3sQkZ8HPQ67/DDcAzeTatZSTQDMtxD8fHYn5ampBc71q9H5XP5YBCOle4SQiueXf5mY6MIO0pW1AzIoeV4dpYIL0qitFJnCa60oQHfdHUrxkLWrwmQU9rO+xPxbKp8vl35ElwclJjNOH/liiqcZkB2DRkQH1xooUCrF65ZF7ka+1JTRLpTEy4OXqLi4Ee34kCtjyYLMlDj0BDqBwYI1AFek2W7d1OFpA739+3bOEKB+sLVq1KWc4FrAuTQwQUBXzM0j157NAf7KZOoCae2w1VV+H3kuiY41qv+6m6j302Zg4Un+d7kZJTm5Kix4c+JCRys/F7ASeZfD53SgGy9A+kmMUjqmjX4aGcuwlRyKocQhmsbHQ0ITtqCHMcYZteGDTDFxeLjvDzcExmpaL3fqHJ5nuD+IgsGYjmXcqk5yBE/JSZGWO7D3FyCjFOE44VUVGvGGK1apXioqMT5UAqQ499TSUlYTcFZDa62rx/HKM7dCqBy8QWsCsjWuy8qCgU0/9SksrcXL9fVYdY2r7ms8qdbEZDhWN7Zvl1AKsm57m68SmWVjaytlFuVdPh65ncVczKPNhpxelee6layor0dJ36oF+WUTEbxBeLvnpcFecXaFux4JiUFrz+2VSwMJfns0h94t7lZNNFL7EuUdPl65gXIC6IwMxPvPbFDtJ+g/XIMWdKXnL54EadaWxFK9R7n6WCIh4ut5KKta+/Fyce3iRru/eZfMDg56TWu69mpllYYggjHA3tY0E6ABaZ0Ebt4L8HVbgYVp+7Cm6W3m5rwObnWSFklOHZbHtEDkA5vkBwTLazXT5ZjN7u7jt3/xk+N+KqtTXPS93KD5A0PF/Mq7Lx5U1jlWFYWktx2bDM2G16pr8eZOwjH7+AZZsh9Pw8Ni3dzX5FTlBVKKACf7ehCxL/b60vabbmZ5xyk+yvDyjidBHBeNff3I8Lgteg1D6i1g9eId7mFFA4xXAVziX6nLed6Ea9Mcn1mRjzjovQoWU7L/kGrdWTaM+DSkSqX8nzIw3Bv0YkAn6m4Tj5llAWhzTwDdohjVxIG7KAqmE+hvu7s/F/hnEwdDHiGz4RdwoG4liwnc94XBIstq1xk+oIBy/jAms6EFw+w6YbaXiOYYGw5ZnEeopeLTEWfIYzOzxAHAv0M8Z9A63T8GaLN7TOE5R/LwhBxBS+RxAAAAABJRU5ErkJggg==",xJ="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAABbWlDQ1BpY2MAACiRdZG9S0JRGMZ/aqWU0VBDRIOBRYORFERj2eAiIWaQ1aI3PwI/LvcqIa1BS4PQELX0NfQf1Bq0FgRBEUQ0Nve1hNzeo4ISdS7nvj+ec56Xc54D9lBWy5ltfsjli0YkGPAsxZY9zldcdADjDMU1U58Nh0P8O77usal6N6Z6/b/vz9G1ljQ1sLmEpzTdKArPCIc2irriHeE+LRNfEz4S9hlyQOFrpSfq/KI4XecPxUY0Mgd21dOTbuFEC2sZIyc8KuzNZUta4zzqJu5kfnFB6oDMQUwiBAngIUGJdbIUGZOal8z+9vlrvnkK4tHkr1PGEEeajHh9opaka1JqSvSkfFnKKvffeZqpyYl6d3cA2p8t630YnLtQrVjW97FlVU/A8QSX+aa/IDlNf4peaWreQ+jZgvOrppbYg4tt6H/U40a8Jjlk2lMpeDuD7hj03kLnSj2rxjqnDxDdlCe6gf0DGJH9Pas/3QVn+hiI/rEAAAAJcEhZcwAACxEAAAsRAX9kX5EAAAUfSURBVFhHzZhdTFxFFMfPwsKypUCBlAS2XWyKfPSB0qZay6ql6NK1NE3TJjWxD/pgfCD6Uq2JMcZYY1RelKrVWmtTqTEmYuqTJiYWGwVpwkLLZwKWBhXS8lEEkd1l2fX8Z7lm6Z17996rLp5kumQ6d+Z3/3POmXPHRmyRaDSDf562ER2NEm3h33T0m7WfZ2Zof8uXNBcKUYqNZ0lgi5EIrXM46H2vl2rcGzE6xK2f2wVu79lstoCd4Zzo4OkOYUTiaTFKbic7/TS1sEAZdrt8QFxvaGmJCjIz6XSdl3YVFSn/A2Gqllt1NBo9ipkaAMfKCbMK6L95ky4ODZHDAFyQ4Yqzs+nDvXVUVVCwvLLqB4I1pPA/jytgVuF4F6iJ1VsIhxO+YIDHlObmUnP9Pj04hfYJO0NVqNhNdlwaHaVvb9xIqB5eYBsrdsa3VyhowCqwxYkdRmcm+BLUW2IV9SYCXLWriD6oq6NC9j2DZsBhEsx0cWiYOsbHyZGaqjkScLVuN8N5KTcDCcO46b10wll+DwbpHb9fN6X8yXAHS0ro7do9tDbdfPb6R4DNff00OD1NTslGICsgIB6rqKDG3Q8aSj0yRSwDjs/P09meHkrX2NoIJ+GGbVX0iscjW9dwn2XA091X6de5Oal6OCF8m+6iR8vLhcKccFVACCr4bQmnHL30ZuOH1U+rplvZgSNt3xctNL+4qOl/OE3CDCoz9EP5N3nrD5WW6gJaUrCps5OmAwGpegoQIldmgFvD8Aia/Zs3y4as6DMN2PbbGH02MIgCgxChKAoyJH4o2zZsfc5ycbAnVhwkBDS9xT+NjYm8B0CcqeN/zNNXw8MiUcugFAKlODjD5+/OwsKEYMoA04B3zny89Xtq7uvTjGaMB5wray195POJo86Mmd7i+MlPdXXT+d5e3RwHlTfl5NDHj/hoS36+GTYxFtWMYZvkWk+x77hAaLxyRVe5AMOV5+WJysUKnGlAnByIztHZWTp+qVX4oFbljFNk6/r19AnD3c25zqoZVhARiLJqYGqKnmttpV84SaelyB/HS+zkKvlCfb3RskqT33CQIDnX8/cG6rieiQmya8Ah9XiLi+mU92HTlYuM0nCQfDMyQvDBWa5gtOCg3AFOvk0P1VKWhcrFMiDA4H/prJoe3GE+tt7iE0JW3cgWN9Ind6K4J6MUpRNt7XSdt1gGh4McyqGsOsnK/ZtwwNDd4hneztfa2+nzwUFprgNckOGerKykV+/3SF/AiEp6YzQBv74+Qm90dFDf5CStSUtTzYEiKMSR/cz27fTirvs0043qQZMd0ig+19NLL1y+LBTBN8QMVy78lf/31DiHw9yev/ceOrZjh8klzQ1X+eDVW7fY59oE0MueanJzWgGMYoBDO8GV8n8NhzVVgJ/2D9AER+2RsjLxgd3NwEpCVioWFJpPba00J4XF0SofRLRmss+5s7PopR9+jJXrrOYS+1sa132NNbsFfLJMpWBZfp5Y+92uLhq+fVuohyrYydBII8mEA4cK0OPaIADDEb4pYDhEKk4FXJEd4O/bZJtqi6Ga4msoEBDFqII9Lley2cR6KkBcPsKwrYA7yxc9cfd3SYdUbXG+0ykCAkfWHZeLSYfDggBc8X2IG6hs/vJ6nVPJAxti/rgqZLFFw0gj1/DxrhhvbZQL0/iu1fz7GhQ8H69QKue8mo3iQvv/YOegoJNby2rKpLE2mGKXifyHg9uz3Lq4BTUeSEY31vZzOwYmbOFfRuevM6ot++oAAAAASUVORK5CYII=";function Hk(){const{showBackButton:e}=ae.useContext(Qo);return e}const wJ=re(iE,{shouldForwardProp:e=>!["open","drawerWidth","height"].includes(String(e))})(({theme:e,open:t,drawerWidth:n,height:r})=>({zIndex:e.zIndex.drawer+1,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),height:r,...t&&{marginLeft:n,width:`calc(100% - ${n}px)`,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})}})),SJ=re(iE,{shouldForwardProp:e=>!["open","drawerWidth","height"].includes(String(e))})(({height:e})=>({height:e})),CJ=({slots:e={},...t})=>{const n=En(),r=ef("(prefers-color-scheme: dark)"),o=n?wJ:SJ,{["Layout.AppBar.MenuButton"]:s,["Layout.SearchBar"]:l,["Layout.BackButton"]:u}=Tt("cms").getComponents(),{open:c}=Uy(),f=vJ(),p=Hk(),m=Ur("appBar.height"),g=Ur("drawer.width",280),{start:S=null,end:x=null}=e,b=Wk();return y.jsx(o,{open:c,height:m,drawerWidth:g,...t,children:y.jsxs(uQ,{children:[(n&&!c||!n&&!p)&&y.jsx(s,{}),!n&&p&&y.jsx(u,{}),n?null:S,y.jsx(bn,{width:"100%",variant:"h6",noWrap:!0,component:"div",children:!n&&b||_i("app.name",document.title)}),y.jsx(Eo,{sx:{flexGrow:1}}),y.jsxs(Eo,{display:"flex",alignItems:"center",children:[f&&y.jsx(l,{}),x||y.jsx(u9,{src:r?bJ:xJ,alt:"Luminix",variant:"square",sx:{width:40,height:40,marginLeft:f?2:0}})]})]})})};function EJ(e){return y.jsx(Wn,{component:_d,to:-1,edge:"start",color:"inherit","aria-label":"back",...e,children:y.jsx(by,{})})}const Vk=(e,t)=>({width:t,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden"}),Kk=e=>({transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:`calc(${e.spacing(9)} + 1px)`,[e.breakpoints.up("sm")]:{width:`calc(${e.spacing(10)} + 1px)`}}),RJ=re(eR,{shouldForwardProp:e=>!["open","width"].includes(String(e))})(({theme:e,open:t,width:n})=>({flexShrink:0,whiteSpace:"nowrap",boxSizing:"border-box",...t&&{...Vk(e,n),"& .MuiDrawer-paper":Vk(e,n)},...!t&&{...Kk(e),"& .MuiDrawer-paper":Kk(e)}})),kJ=re(eR,{shouldForwardProp:e=>e!=="width"})(()=>({})),PJ=re("div")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",padding:e.spacing(0,1),...e.mixins.toolbar})),TJ=e=>{const t=xr(),n=En(),{open:r,handleDrawerClose:o}=Uy(),s=n?RJ:kJ,l=Ur("drawer.width",280),u=Ur("appBar.height"),c=Tt("cms").getComponent("RecursiveList"),f=Tt("cms").getMenuItems();return y.jsxs(s,{variant:n?"permanent":"temporary",open:r,width:l,onClose:o,PaperProps:{sx:{width:l}},sx:{display:"flex",direction:"flex-column",flexWrap:"nowrap",height:"100%"},...e,children:[y.jsx(PJ,{style:{height:u},children:y.jsx(Wn,{onClick:o,children:t.direction==="ltr"?y.jsx(by,{}):y.jsx(xy,{})})}),y.jsx(Uc,{}),y.jsx(Eo,{sx:{flexGrow:1,overflowY:"auto",overflowX:"hidden"},children:y.jsx(c,{collapsed:!r&&n,items:f,onClick:()=>!n&&o()})})]})},OJ=()=>{const e=Wk(),t=Ur("breakpoint","md"),n=Hk(),{["Layout.BackButton"]:r}=Tt("cms").getComponents();return y.jsxs(oo,{sx:{display:{xs:"none",[t]:"flex"},boxShadow:o=>o.shadows[3],py:2,px:3,borderRadius:0,alignItems:"center"},children:[n&&y.jsx(r,{}),y.jsx(bn,{variant:"h5",noWrap:!0,children:e})]})},Wy=ae.createContext({Model:null,anchorEl:null,setAnchorEl:()=>{},columnsFilter:[],setColumnsFilter:()=>{},searchParams:new URLSearchParams,setSearchParams:()=>{},handleApplyFilters:()=>{},clearSearchParams:()=>{},clearFilters:()=>{}}),il=ae.createContext({key:"",type:"",operator:"",value:"",isRelation:!1,setKey:()=>{},setType:()=>{},setOperator:()=>{},setValue:()=>{},setIsRelation:()=>{}}),$J=e=>{if(!Array.isArray(e))return e;let t;return qe.isEmpty(e)?t="":t=e[0],t},AJ=e=>{if(Array.isArray(e))return e;let t;return qe.isEmpty(e)?t=[]:t=[e,""],t},jJ=async(e,t,n)=>{const r=e.getSchema().relations[t],o=Jl().make(r.model),s=o.getSchema().primaryKey,l=[];for(const u of n){const{data:c}=await o.where(s,u).get();l.push(c.first())}return l};function _J(e,t){const n=Tt("filter"),{Model:r,setColumnsFilter:o}=ae.useContext(Wy),[s,l]=ae.useState(t.key),[u,c]=ae.useState(t.operator),[f,p]=ae.useState(t.type),[m,g]=ae.useState(t.value),[S,x]=ae.useState(t.nullable),[b,w]=ae.useState(t.is_relation),P=ae.useMemo(()=>n.getFilterableColumns(r),[r]),R=$=>()=>{o(T=>T.filter((_,M)=>M!==$))},O=async $=>{const T=$.target.value,_=P.find(G=>G.key===T),M=(_==null?void 0:_.type)??"text",F=(_==null?void 0:_.nullable)??!1,B=(_==null?void 0:_.is_relation)??!1;B?(c("relation"),g([])):b&&c("equals"),w(B),x(F),M!==f&&(c("equals"),g(()=>{if(["between","notBetween"].includes(u))return[];switch(n.getInputType(M)){case"number":return 0;case"boolean":return 0;default:return""}})),l(T),p(M)},A=async $=>{const T=$.target.value;u!==T&&g(_=>{switch(T){case"between":case"notBetween":return AJ(_);case"null":case"notNull":return"1";default:return $J(_)}}),c(T)};return ae.useEffect(()=>{o($=>$.map((_,M)=>e===M?{..._,key:s,operator:u,type:f,value:m,nullable:S,is_relation:b}:_))},[s,u,f,m,S,b]),{columns:P,key:s,setKey:l,operator:u,setOperator:c,type:f,setType:p,value:m,setValue:g,nullable:S,setNullable:x,isRelation:b,setIsRelation:w,handleKey:O,handleOperator:A,handleRemoveColumn:R}}const Gk=async(e,t,n)=>{const r=e.getSchema().relations[t].model,{data:o}=await Jl().make(r).get(),s=o.all().filter(f=>!n.find(p=>p.getKey()===f.getKey())),l=s.length,u=n.length,c=15;return l+u>c?tr([...n,...s.slice(0,c-u)]):tr([...n,...s])},IJ=async(e,t,n="",r)=>{const o=e.getSchema().relations[t],s=Jl().make(o.model),l=s.getSchema().primaryKey,{data:u}=await s.searchBy(n).get();return tr([...r,...u]).unique(l)},MJ=()=>{const e=En(),t=xi(),{key:n,value:r,setValue:o}=ae.useContext(il),[s,l]=ae.useState(!1),[u,c]=ae.useState(""),[f,p]=ae.useState(tr([])),[m,g]=ae.useState([]),S=ae.useMemo(()=>s&&f.count()===0,[s,f]),x=async(b,w)=>{c(w),qe.isEmpty(w)||p(await IJ(t,n,w,tr(m)))};return ae.useEffect(()=>{r.length>0&&(async()=>g(await jJ(t,n,r)))()},[]),ae.useEffect(()=>{let b=!0;if(S)return(async()=>b&&p(await Gk(t,n,m)))(),()=>{b=!1}},[S]),ae.useEffect(()=>{o(m.map(b=>b.getKey())),qe.isEmpty(u)?(async()=>p(await Gk(t,n,m)))():p(tr([]))},[m]),y.jsx(t9,{sx:{width:e?377:"100%"},open:s,onOpen:()=>{l(!0)},onClose:()=>{l(!1)},value:m,onChange:(b,w)=>{g(w)},inputValue:u,onInputChange:x,options:f.all()||[],getOptionLabel:b=>b.getLabel(),isOptionEqualToValue:(b,w)=>b.getKey()===w.getKey(),filterOptions:b=>b,renderInput:b=>y.jsx(NJ,{params:b,loading:S}),size:"small",loading:S,disableCloseOnSelect:!0,autoHighlight:!0,multiple:!0})},NJ=({params:e,loading:t})=>{const{t:n}=Vn();return y.jsx(Xc,{...e,label:n("Value"),InputProps:{...e.InputProps,endAdornment:y.jsxs(ae.Fragment,{children:[t?y.jsx(xH,{color:"inherit",size:20}):null,e.InputProps.endAdornment]})}})},Hy=({index:e=null})=>{const{t}=Vn(),n=En(),r=Tt("filter"),{type:o,value:s,setValue:l}=ae.useContext(il),c=r.getInputType(o)==="datetime-local"?230:167.5,f=e!==null?`${t("Date")} ${e+1}`:`${t("Date")}`,p=ae.useMemo(()=>e!==null?s[e]:s,[s]),m=g=>{l(typeof e=="number"?S=>{const x=S;return x[e]=g.target.value,[...x]}:g.target.value)};return y.jsx(Xc,{type:r.getInputType(o),label:f,value:p||new Date,onChange:m,size:"small",sx:{width:n?c:"100%"}})},LJ=()=>{const e=En(),{value:t,setValue:n}=ae.useContext(il),r=o=>{const s=o.target.checked;n(s?1:0)};return y.jsxs(y.Fragment,{children:[y.jsx(Sq,{checked:t,onChange:r,inputProps:{"aria-label":"filter-controlled"},size:"small"}),e&&y.jsx(Eo,{width:325})]})},Vy=({index:e=null})=>{const{t}=Vn(),n=En(),r=Tt("filter"),{type:o,value:s,setValue:l}=ae.useContext(il),u=e!==null?`${t("Value")} ${e+1}`:`${t("Value")}`,c=ae.useMemo(()=>e!==null?s[e]:s,[s]),f=p=>{l(typeof e=="number"?m=>{const g=m;return g[e]=p.target.value,[...g]}:p.target.value)};return y.jsx(Xc,{type:r.getInputType(o),label:u,value:c||"",onChange:f,sx:{width:n?167.5:"100%"},size:"small"})},Ky=()=>{const e=En(),t=Tt("filter"),{type:n,operator:r}=ae.useContext(il),o=ae.useMemo(()=>["between","notBetween"].includes(r),[r]);if(["null","notNull"].includes(r))return e?y.jsx(Eo,{width:230}):null;if(o)switch(t.getInputType(n)){case"date":case"datetime-local":return y.jsxs(y.Fragment,{children:[y.jsx(Hy,{index:0}),y.jsx(Hy,{index:1})]});default:return y.jsxs(y.Fragment,{children:[y.jsx(Vy,{index:0}),y.jsx(Vy,{index:1})]})}switch(t.getInputType(n)){case"date":case"datetime-local":return y.jsx(Hy,{});case"autocomplete":return y.jsx(MJ,{});case"boolean":return y.jsx(LJ,{});default:return y.jsx(Vy,{})}},DJ=({index:e,column:t})=>{const{t:n}=Vn(),r=En(),o=Ur("breakpoint","md"),s=Tt("filter"),l=ae.useMemo(()=>s.getMatchingOperators(t),[t]),{columns:u,key:c,setKey:f,operator:p,setOperator:m,type:g,setType:S,value:x,setValue:b,isRelation:w,setIsRelation:P,handleKey:R,handleOperator:O,handleRemoveColumn:A}=_J(e,t),$=["boolean"].includes(s.getInputType(g));return y.jsx(il.Provider,{value:{key:c,setKey:f,type:g,setType:S,operator:p,setOperator:m,value:x,setValue:b,isRelation:w,setIsRelation:P},children:y.jsxs(vi,{container:!0,display:"flex",flexDirection:{xs:"column",[o]:"row"},flexWrap:{xs:"wrap",[o]:"nowrap"},alignItems:"center",justifyContent:"space-between",gap:.5,children:[y.jsxs(sr,{display:"flex",flexDirection:{xs:"column",[o]:"row"},alignItems:"center",width:"100%",my:1,gap:1.5,children:[y.jsxs(sr,{direction:"row",alignItems:"center",...!r&&{width:"100%"},gap:1,children:[y.jsxs(Tf,{sx:{width:r?195:`calc(100% - ${$?88:44}px)`},children:[y.jsx(Of,{id:"filter-column-select-label",size:"small",children:n("Column")}),y.jsx(tl,{labelId:"filter-column-select-label",id:"filter-column-select",value:c,label:n("Column"),onChange:R,size:"small",children:u.map(({key:T,label:_})=>y.jsx(Ki,{value:T,children:n(_)},`column_${T}_option`))})]}),!r&&y.jsxs(sr,{direction:"row",alignItems:"center",children:[$&&y.jsx(Ky,{}),y.jsx(Wn,{color:"error",onClick:A(e),children:y.jsx(nk,{})})]})]}),!w&&!$&&y.jsxs(Tf,{sx:{width:r?147.5:"100%"},children:[y.jsx(Of,{id:"filter-operator-select-label",size:"small",children:n("Operator")}),y.jsx(tl,{labelId:"filter-operator-select-label",id:"filter-operator-select",value:p,label:n("Operator"),onChange:O,size:"small",children:l.map(({key:T,label:_})=>y.jsx(Ki,{value:T,children:n(_)},`operator_${T}_option`))})]}),r?y.jsx(Ky,{}):!$&&y.jsx(Ky,{})]},`filter_${c}_${e}`),r&&y.jsx(Wn,{color:"error",onClick:A(e),children:y.jsx(nk,{})})]})})},qk=({dialog:e=!1})=>{const{t}=Vn(),n=En(),r=Ur("breakpoint","md"),o=Tt("filter"),{columnsFilter:s,setColumnsFilter:l,handleApplyFilters:u,clearFilters:c}=ae.useContext(Wy),f=()=>{l(p=>[...p,{key:"",operator:"equals",type:"text",value:"",appended:!1,nullable:!1,is_relation:!1}])};return y.jsxs(Eo,{sx:{minWidth:{[r]:567.5},p:e?0:2},children:[y.jsx(sr,{children:s.map((p,m,g)=>{const S=m==g.length-1;return y.jsxs(y.Fragment,{children:[y.jsx(DJ,{index:m,column:p},`row_${p.key}`),!n&&y.jsx(Uc,{sx:{mt:S?.625:1.25,mb:S?.75:1.5,...S&&{border:"none"}}})]})})}),y.jsx(sr,{direction:"row",alignItems:"center",justifyContent:"center",children:n?y.jsx(ir,{variant:"outlined",onClick:f,fullWidth:!0,sx:{mt:.75},children:`+ ${t("Add Column")}`}):y.jsx(Wn,{onClick:f,color:"primary",sx:{fontSize:32},children:y.jsx(mY,{fontSize:"inherit"})})}),n&&y.jsxs(sr,{direction:"row",justifyContent:"space-between",mt:2,children:[y.jsx(ir,{onClick:c,children:t("Clear")}),y.jsx(ir,{variant:"contained",onClick:u,disabled:o.checkIfCanApplyFilters(s),children:t("Apply")})]})]})},FJ=(e,t)=>{const n=Tt("filter"),r=$s.toObject(t),o=Object.keys(r).reduce((l,u)=>(["where"].includes(u)&&(l[u]=r[u]),l),{}),s=[];return Object.entries(o).forEach(([,l])=>{Object.entries(l).forEach(([u,c])=>{e.filter(f=>{const p=(()=>{const g=_e.camel(u.split(_e.camel(f.key))[1]);return qe.isEmpty(g)?"equals":g})();if(!n.getOperators().includes(p))return!1;const m=_e.snake(u.split(_e.ucfirst(p))[0]);return f.key===m}).forEach(f=>{let p=_e.camel(u.split(_e.camel(f.key))[1]);(typeof p>"u"||p===null||qe.isEmpty(p))&&(p="equals");let m=c;switch(n.getInputType(f.type)){case"text":{Array.isArray(c)&&(m=c.join(","));break}case"datetime-local":{Array.isArray(c)?m=c.map(g=>am.toDateTimeLocal(g)):m=am.toDateTimeLocal(c);break}case"boolean":{m=Number(c);break}}s.push({key:f.key,operator:p,type:f.type,value:m,nullable:f.nullable,is_relation:f.is_relation})})})}),s},BJ=e=>{const t=Tt("filter"),n=new URLSearchParams;return e.forEach(r=>{const{key:o,operator:s,value:l,type:u}=r;let c=_e.ucfirst(s);if(["equals"].includes(_e.camel(s))&&(c=""),Array.isArray(l))l.forEach((f,p)=>{let m=f;switch(t.getInputType(u)){case"datetime-local":{m=new Date(f).toISOString();break}}n.set(`where[${_e.camel(o)}${c}][${p}]`,m)});else{let f=l;switch(t.getInputType(u)){case"datetime-local":{f=new Date(l).toISOString();break}}n.set(`where[${_e.camel(o)}${c}]`,f)}}),n},zJ=()=>{const{t:e}=Vn(),t=Tt("filter"),n=En(),r=xi(),[o,s]=Zr(),l=ae.useMemo(()=>"where"in $s.toObject(o),[o]),[u,c]=ae.useState(null),[f,p]=ae.useState([]),m=!!u,g=ae.useMemo(()=>t.getFilterableColumns(r),[r]),S=R=>{c(R.currentTarget)},x=()=>{c(null),setTimeout(()=>{p([])},300)},b=()=>{w();const R=BJ(f);s(R,{replace:!0}),x()},w=()=>{s(R=>{const O=new URLSearchParams(R);for(const[A]of R.entries())A.startsWith("where[")&&O.delete(A);return O})},P=()=>{w(),x(),setTimeout(()=>{p([])},300)};return ae.useEffect(()=>{const R=FJ(g,o);p(R)},[g,o,u]),y.jsxs(Wy.Provider,{value:{Model:r,anchorEl:u,setAnchorEl:c,columnsFilter:f,setColumnsFilter:p,searchParams:o,setSearchParams:s,handleApplyFilters:b,clearSearchParams:w,clearFilters:P},children:[y.jsx(Wn,{"aria-describedby":"model-filter-popover-button","aria-label":"filter",onClick:S,children:y.jsx(Ug,{color:"secondary",variant:"dot",invisible:!l,children:y.jsx(CY,{})})}),n?y.jsx(yR,{id:"model-filter-popover",open:m,anchorEl:u,onClose:x,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:y.jsx(qk,{})}):y.jsxs(Qg,{open:m,onClose:x,fullWidth:!0,children:[y.jsxs(Jg,{children:[e("Filter :model",{model:r.plural()}),y.jsx(Wn,{onClick:x,sx:{position:"absolute",right:8,top:8},children:y.jsx(wy,{})})]}),y.jsx(Xg,{dividers:!0,children:y.jsx(qk,{dialog:!0})}),y.jsxs(Yg,{children:[y.jsx(ir,{onClick:P,sx:{mr:"auto"},children:e("Clear")}),y.jsx(ir,{variant:"contained",onClick:b,disabled:t.checkIfCanApplyFilters(f),children:e("Apply")})]})]})]})},Gy=ae.createContext({columns:[],columnCount:0,selected:tr([]),massActions:[],items:tr([]),error:new Error("Trying to access TableContext outside of TableProvider"),Model:null});function qy(){const{selected:e,items:t}=ae.useContext(Gy),n=Nm(e),r=()=>{e.splice(0,e.count())},o=f=>{const p=e.search(f);if(p!==!1){e.pull(p);return}e.push(f)},s=()=>{if(t){if(e.count()===t.count()){r();return}e.splice(0,e.count(),...t)}},l=f=>n.contains(f),u=t?n.count()>0&&n.count()<t.count():!1,c=t&&t.count()?n.count()===t.count():!1;return{selected:n,indeterminate:u,allSelected:c,isSelected:l,handleClearSelected:r,handleSelectToggle:o,handleSelectToggleAll:s}}function Xi(){return ae.useContext(Gy)}function UJ(e){const[t,n]=ae.useState(""),{selected:r}=qy(),{t:o}=Vn(),s=zy(),{massActions:l}=Xi(),u=f=>{n(f.target.value)};if(ae.useEffect(()=>{r.isEmpty()&&n("")},[r]),l.length===0)return null;const c=r.isEmpty()?o("Select items to apply"):o("Select action");return y.jsxs(sr,{direction:"row",alignItems:"center",...e,children:[y.jsxs(Tf,{sx:{m:1,minWidth:200},size:"small",children:[y.jsx(Of,{id:"mass-actions-select-label",children:c}),y.jsxs(tl,{labelId:"mass-actions-select-label",id:"mass-actions-select",value:t,label:c,onChange:u,disabled:r.isEmpty(),children:[y.jsx(Ki,{value:"",children:y.jsx("em",{children:o("None")})}),l.map(f=>y.jsx(Ki,{value:f.key,children:f.label},f.key))]})]}),y.jsx(ir,{size:"small",disabled:r.isEmpty()||!t,onClick:()=>{var f;(f=l.find(p=>p.key===t))==null||f.callback({selected:r,...s})},children:o("Apply")})]})}const WJ=()=>{const{handleDrawerOpen:e}=Uy();return y.jsx(Wn,{color:"inherit","aria-label":"open drawer",edge:"start",onClick:e,sx:{mr:{md:2}},children:y.jsx(kY,{})})},Kf=ae.forwardRef(({to:e,children:t,...n},r)=>y.jsx(iy,{component:_d,to:e,ref:r,sx:{textDecoration:"none"},...n,children:t}));Kf.displayName="Link";const HJ=({label:e})=>{if(isNaN(e)||isNaN(parseFloat(e))){const t={"« Previous":y.jsx(by,{}),"Next »":y.jsx(xy,{}),"Last »":y.jsx(RY,{}),"« First":y.jsx(EY,{})};return y.jsx(y.Fragment,{children:t[e]||e})}return y.jsx(y.Fragment,{children:e})},VJ=({variant:e="default",...t})=>{const n=e==="default",[r,o]=Zr(),[s,l]=ae.useState(r.get("page")||"1"),{links:u,meta:{current_page:c=1,links:f=[],last_page:p=1}={}}=cc(),{first:m,prev:g,next:S,last:x}=u||{},b=P=>{P.preventDefault(),o(R=>(R.set("page",s||"1"),R))},w=[{url:c>1?m:null,label:"« First",active:!1},{url:g,label:"« Previous",active:!1},{element:y.jsx(g4,{onSubmit:b,preventScrollReset:!0,children:y.jsx(Xc,{size:"small",type:"number",variant:"standard",sx:{width:56,"& input":{textAlign:"center","&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}},value:s,error:Number(s)>p,helperText:Number(s)>p?`Max ${p}`:void 0,onChange:P=>{!Number.isNaN(Number(P.target.value))&&Number(P.target.value)>0&&l(P.target.value),P.target.value===""&&l("")},onBlur:P=>{o(R=>(R.set("page",P.target.value||"1"),R),{replace:!0})},disabled:p===1,"aria-label":"Page number"})},"page")},{url:S,label:"Next »",active:!1},{url:c<p?x:null,label:"Last »",active:!1}];return ae.useEffect(()=>{c&&l(String(c))},[c]),y.jsx(sr,{spacing:1,direction:"row",justifyContent:"center",alignItems:"center",...t,children:(n?f:w).map((P,R)=>P.element||y.jsx(ir,{variant:P.active?"contained":"text",color:"primary",size:"small",sx:{minWidth:"unset",width:32,height:32,borderRadius:"50%"},disabled:!P.url,component:Kf,to:P.url,children:y.jsx(HJ,{label:P.label})},R))})},KJ=()=>{const{t:e}=Vn(),{meta:{total:t=0,from:n=0,to:r=0}={}}=cc();return y.jsx(bn,{variant:"caption",noWrap:!0,children:e(":from–:to of :total",{from:n,to:r,total:t})})},GJ=()=>{const{t:e}=Vn(),{meta:{per_page:t=15}={}}=cc(),[,n]=Zr(),r=s=>{n(l=>{const u=new URLSearchParams(l);return u.set("per_page",s.target.value.toString()),u})},o=Lm(Tt("cms"),"perPageOptions",[15,30,75,150]);return y.jsxs(sr,{direction:"row",alignItems:"center",gap:1,children:[y.jsxs(bn,{variant:"caption",children:[e("Rows per page"),":"]}),y.jsx(tl,{value:t,onChange:r,size:"small",variant:"standard",sx:{fontSize:s=>s.typography.caption.fontSize,"& .MuiSelect-select":{py:.5}},children:o.map(s=>y.jsx(Ki,{value:s,sx:{fontSize:l=>l.typography.caption.fontSize,minHeight:"unset",lineHeight:1,py:1.5},children:s},s))})]})};function qJ(e,t){const[n,r]=ae.useState(!1);return ae.useEffect(()=>{const o=new Set,s=u=>{o.add(u.key),e.every(c=>o.has(c))&&(r(!0),t&&t())},l=u=>{o.delete(u.key),e.every(c=>!o.has(c))&&r(!1)};return window.addEventListener("keydown",s),window.addEventListener("keyup",l),()=>{window.removeEventListener("keydown",s),window.removeEventListener("keyup",l)}},[e,t]),n}const QJ=re(Xc)(({theme:e})=>({"& .MuiInputBase-root":{backgroundColor:e.palette.background.paper}})),YJ=lm.throttle((e,t)=>{t(n=>{const r=new URLSearchParams(n);return e?r.set("q",e):r.delete("q"),r})},500),XJ=()=>{const[e,t]=Zr(),n=e.get("q")||"",[r,o]=ae.useState(n),[s,l]=ae.useState(!1),u=ae.useRef(null),{t:c}=Vn();ae.useEffect(()=>{o(n)},[n]);const f=g=>{o(g.target.value),YJ(g.target.value,t)},p=En();qJ(["Control","/"],()=>{u.current.focus()});const m=p?300:"calc(100vw - 58px)";return y.jsxs(y.Fragment,{children:[!p&&!s&&y.jsx(Wn,{color:"inherit",onClick:()=>l(!0),children:y.jsx(Ug,{variant:"dot",color:"secondary",invisible:!n,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:y.jsx(ok,{})})}),y.jsx(Eg,{orientation:"horizontal",in:p||s,addEndListener:()=>{var g;!p&&s&&((g=u.current)==null||g.focus())},unmountOnExit:!1,children:y.jsx(QJ,{placeholder:p?`(Ctrl + /) ${c("Search...")}`:`${c("Search...")}`,value:r,InputProps:{endAdornment:y.jsx(ok,{})},inputProps:{ref:u},onChange:f,onBlur:()=>l(!1),sx:{width:m},size:"small"})})]})},JJ=({children:e,...t})=>y.jsx(bi,{sx:{width:"1px"},padding:"checkbox",...t,children:e}),ZJ=()=>{const{t:e}=Vn(),[t,n]=Zr(),{columns:r,Model:o}=Xi(),s=t.get("order_by")||"",[l="",u=""]=s.split(":"),[c,f]=ae.useState(l),[p,m]=ae.useState(u),[g,S]=ae.useState(!1),x=()=>{S(!0)},b=()=>{S(!1),f(l),m(u)},w=()=>{if(!c||!p){S(!1);return}n(R=>{const O=new URLSearchParams(R);return O.set("order_by",`${c}:${p}`),O}),S(!1)},P=()=>{n(R=>{const O=new URLSearchParams(R);return O.delete("order_by"),O}),S(!1),f(""),m("")};return y.jsxs(y.Fragment,{children:[y.jsx(Wn,{onClick:x,children:y.jsx(Ug,{color:"secondary",variant:"dot",invisible:!l,children:y.jsx(TY,{})})}),y.jsxs(Qg,{open:g,onClose:b,fullWidth:!0,children:[y.jsxs(Jg,{children:[e("Sort :model",{model:o.plural()}),y.jsx(Wn,{onClick:b,sx:{position:"absolute",right:8,top:8},children:y.jsx(wy,{})})]}),y.jsxs(Xg,{dividers:!0,children:[y.jsxs(kR,{value:c,onChange:R=>{f(R.target.value),p||m("asc")},children:[y.jsx(bn,{variant:"caption",children:e("Column")}),y.jsx(Uc,{}),tr(r).whereStrict("sortable","!=",!1).map(({key:R,label:O})=>y.jsx(ty,{value:R,control:y.jsx(dy,{}),label:O},R))]}),y.jsx(bn,{variant:"caption",children:e("Direction")}),y.jsx(Uc,{}),y.jsxs(kR,{value:p,onChange:R=>m(R.target.value),children:[y.jsx(ty,{value:"asc",control:y.jsx(dy,{}),label:y.jsxs(y.Fragment,{children:[e("Ascending"),y.jsx(vY,{})]})}),y.jsx(ty,{value:"desc",control:y.jsx(dy,{}),label:y.jsxs(y.Fragment,{children:[e("Descending"),y.jsx(gY,{})]})})]})]}),y.jsxs(Yg,{children:[y.jsx(ir,{onClick:P,sx:{mr:"auto"},children:e("Clear")}),y.jsx(ir,{onClick:w,variant:"contained",children:e("Apply")})]})]})]})},eZ=({items:e,loading:t,children:n,error:r})=>{const o=xi(),s=ae.useMemo(()=>tr([]),[o,e]),[l]=Zr(),u=l.get("tab")??"all",c=ae.useMemo(()=>[{key:o.getSchema().labeledBy,label:_e.human(o.getSchema().labeledBy)}],[o]),f=En(),p=ae.useMemo(()=>Tt("cms").getMassActions(o,u),[o,u]),m=Lm(Tt("cms"),`model${_e.studly(o.getSchemaName())}Columns`,c),S=(f?m.length:1)+(p.length>0?2:1),x={columns:m,columnCount:S,massActions:p,items:e,loading:t,selected:s,error:r,Model:o};return y.jsx(Gy.Provider,{value:x,children:n})},tZ=({items:e,loading:t,error:n,children:r,...o})=>y.jsx(eZ,{items:e,loading:t,error:n,children:y.jsx(Gq,{component:oo,children:y.jsx(Aq,{...o,children:r})})}),nZ=({children:e,...t})=>{const{massActions:n,columns:r,items:o}=Xi(),s=En(),[l,u]=Zr(),{indeterminate:c,allSelected:f,handleSelectToggleAll:p}=qy(),{["ModelIndex.Table.ShrinkedCell"]:m}=Tt("cms").getComponents(),g=l.get("order_by")||"",[S,x]=g.split(":"),b=w=>()=>{u(S===w?P=>{const R=new URLSearchParams(P);return x?x==="desc"?(R.delete("order_by"),R):(R.set("order_by",`${w}:desc`),R):(R.set("order_by",`${w}:asc`),R)}:P=>{const R=new URLSearchParams(P);return R.set("order_by",`${w}:asc`),R})};return y.jsxs(iQ,{...t,children:[e,s&&y.jsxs(nl,{children:[n.length>0&&y.jsx(m,{children:y.jsx(Vg,{indeterminate:c,checked:f,onChange:p,disabled:o&&o.count()===0})}),r.map(({key:w,label:P,sortable:R=!0,...O})=>y.jsx(bi,{sortDirection:R&&S===w&&x||!1,...O,children:y.jsxs(CQ,{active:R&&S===w,direction:x,onClick:b(w),children:[P,R&&S===w?y.jsx(Eo,{component:"span",sx:{visibility:"hidden",display:"none"},children:x==="desc"?"sorted descending":"sorted ascending"}):null]})},w)),y.jsx(m,{})]})]})},rZ=()=>{const{massActions:e,columns:t}=Xi(),n=En(),{["ModelIndex.Table.ShrinkedCell"]:r}=Tt("cms").getComponents(),[o]=Zr(),s=parseInt(o.get("per_page")||"15");return y.jsx(y.Fragment,{children:Array.from({length:s}).map((l,u)=>y.jsxs(nl,{children:[e.length>0&&y.jsx(r,{children:y.jsx(Vg,{})}),n&&t.map(({key:c,label:f,sortable:p,...m},g)=>y.jsx(bi,{...m,children:y.jsx(_R,{variant:"text",height:24})},g)),!n&&y.jsx(bi,{sx:{px:0},children:Array.from({length:t.length}).map((c,f)=>y.jsx(_R,{variant:"text",width:"100%",height:24},f))}),y.jsx(r,{children:y.jsx(Wn,{children:y.jsx(rk,{})})})]},u))})},oZ=({children:e,...t})=>{const n=xi(),{t:r}=Vn(),{items:o,loading:s,columnCount:l}=Xi(),{["ModelIndex.StaticActions"]:u}=Tt("cms").getComponents(),c=ae.isValidElement(e)?e:(o||tr([])).map(e);return y.jsxs(Lq,{...t,children:[s&&y.jsx(rZ,{}),c,o&&!o.count()&&y.jsx(nl,{children:y.jsxs(bi,{colSpan:l,sx:{textAlign:"center",py:10},children:[y.jsx(bn,{children:r("No :model found",{model:n.plural().toLocaleLowerCase()})}),y.jsx("br",{}),y.jsx(u,{})]})})]})};class iZ{getFacadeAccessor(){return"cms"}}const lr=Fo(iZ),sl=re(bn)(()=>({whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","& label":{fontWeight:"bold"}})),sZ=({content:e})=>["string","number"].includes(typeof e)?y.jsx(sl,{children:e}):e instanceof Date?y.jsx(sl,{children:e.toLocaleString(_i("app.locale","en"))}):typeof e=="object"&&!ae.isValidElement(e)?y.jsx(sl,{children:JSON.stringify(e)}):y.jsx(ae.Fragment,{children:e}),aZ=({label:e,content:t})=>["string","number"].includes(typeof t)?y.jsxs(sl,{children:[y.jsxs("label",{children:[e,":"]})," ",t]}):t instanceof Date?y.jsxs(sl,{children:[y.jsxs("label",{children:[e,":"]}),t.toLocaleString(_i("app.locale","en"))]}):typeof t=="object"&&!ae.isValidElement(t)?y.jsxs(sl,{children:[y.jsxs("label",{children:[e,":"]})," ",JSON.stringify(t)]}):y.jsxs(ae.Fragment,{children:[y.jsx(bn,{sx:{display:"inline"},children:y.jsxs("b",{children:[e,":"]})})," ",t]}),lZ=({item:e,...t})=>{const n=En(),r=sc(),o=xi(),{massActions:s,columns:l}=Xi(),u=ae.useMemo(()=>l.map(g=>({...g,content:lr[`model${_e.studly(e.getType())}Get${_e.studly(g.key)}Content`](e.getAttribute(g.key),e)})),[l,e]),{["ModelIndex.Table.ShrinkedCell"]:c,["ModelIndex.InstanceActions"]:f}=lr.getComponents(),{isSelected:p,handleSelectToggle:m}=qy();return y.jsxs(nl,{...t,sx:{cursor:e.deletedAt?"default":"pointer"},selected:p(e),hover:!e.deletedAt,children:[s.length>0&&y.jsx(c,{children:y.jsx(Vg,{checked:p(e),onChange:()=>m(e)})}),n&&u.map(({key:g,label:S,sortable:x,content:b,...w})=>y.jsx(bi,{...w,onClick:()=>{e.deletedAt||r(`/${_e.kebab(o.plural())}/${e.getKey()}`)},children:y.jsx(sZ,{label:S,content:b})},g)),!n&&y.jsx(bi,{sx:{maxWidth:0,px:0},onClick:()=>{e.deletedAt||r(`/${_e.kebab(o.plural())}/${e.getKey()}`)},children:u.map(({key:g,...S})=>y.jsx(aZ,{...S},g))}),y.jsx(c,{children:y.jsx(f,{item:e})})]})},cZ=({children:e,...t})=>{const{columnCount:n}=Xi(),r=En(),o=Ur("breakpoint","md"),{["ModelIndex.Pagination"]:s,["ModelIndex.PaginationDetails"]:l,["ModelIndex.PerPageSwitch"]:u}=Tt("cms").getComponents();return y.jsxs(Zq,{...t,children:[y.jsx(nl,{children:y.jsx(bi,{colSpan:n,children:y.jsxs(sr,{direction:r?"row":"column-reverse",alignItems:"center",justifyContent:"space-between",gap:3,children:[y.jsxs(sr,{direction:r?"row":"column-reverse",alignItems:r?"center":"flex-start",justifyContent:"flex-start",width:{xs:"100%",[o]:"auto"},gap:r?2:0,children:[y.jsx(u,{}),y.jsx(l,{})]}),y.jsx(s,{variant:r?"default":"compact",justifyContent:{xs:"center",[o]:"flex-end"}})]})})}),e]})},uZ=()=>{const{columnCount:e}=Xi(),{["ModelIndex.Filter"]:t,["ModelIndex.MassActions"]:n,["ModelIndex.Sort"]:r,["ModelIndex.Pagination"]:o}=Tt("cms").getComponents(),s=En(),l=Ur("breakpoint","md");return y.jsx(nl,{children:y.jsx(bi,{colSpan:e,sx:{p:1},children:y.jsxs(sr,{direction:{xs:"column",[l]:"row"},justifyContent:"space-between",spacing:1,children:[y.jsxs(sr,{direction:"row",alignItems:"center",width:{[l]:"100%"},children:[y.jsx(t,{}),!s&&y.jsx(r,{})]}),s&&y.jsx(sr,{direction:"row",alignItems:"center",justifyContent:{xs:"center",[l]:"flex-end"},rowGap:2,children:y.jsx(o,{variant:"compact",justifyContent:"end"})}),y.jsx(n,{})]})})})};function dZ(){const e=xi(),{t}=Vn(),[n,r]=Zr(),o=n.get("tab")||"all",s=(c,f)=>{r(()=>{const p=new URLSearchParams;return f!=="all"&&p.set("tab",f),p})},l=ae.useMemo(()=>e.getSchema().softDeletes?[{label:t("Trashed"),value:"trashed"}]:[],[e,t]),u=Lm(Tt("cms"),`model${_e.studly(e.getSchemaName())}Tabs`,l);return u.length===0?null:y.jsx(Eo,{sx:{maxWidth:{xs:320,sm:480},bgcolor:"background.paper"},children:y.jsxs(WQ,{value:o,onChange:s,variant:"scrollable",scrollButtons:"auto","aria-label":`tabs for ${e.singular()}`,allowScrollButtonsMobile:!0,children:[y.jsx(LR,{label:t("All"),value:"all"}),u.map(c=>y.jsx(LR,{label:c.label,value:c.value},c.value))]})})}function fZ(e){const{parts:t,...n}=e;return y.jsxs(D9,{"aria-label":"breadcrumb",...n,children:[y.jsx(iy,{underline:"hover",color:"inherit",to:"/",component:_d,children:_i("app.name","Laravel")}),t==null?void 0:t.map(({name:r,href:o},s)=>o?y.jsx(iy,{underline:"hover",color:"inherit",to:o,component:_d,children:r},s):y.jsx(bn,{color:"text.primary",children:r},s))]})}const Qk=({collapsed:e=!1,items:t,onClick:n,...r})=>{const[o,s]=ae.useState(null),[l,u]=ae.useState(null),[c,f]=ae.useState({}),p=Ur("drawer.width",280),m=Tt("cms").getComponent("RecursiveMenu");return y.jsxs(iR,{...r,children:[t.map(g=>{const{text:S,icon:x,element:b=null,key:w,children:P,to:R,onClick:O}=g;return b||y.jsxs(JV,{disablePadding:!0,sx:{display:"block"},children:[y.jsxs(zV,{sx:{minHeight:48,justifyContent:e?"center":"initial",px:2.5},onClick:A=>{if(O&&O(A),P){if(e){u(()=>(s(A.currentTarget),P));return}f({...c,[w]:!c[w]});return}n&&n(A)},...R?{to:R,component:Kf}:{},children:[y.jsxs(lR,{sx:{minWidth:0,mr:e?"unset":3,justifyContent:"center",flexDirection:"column",alignItems:"center",color:"inherit"},children:[x,e&&y.jsx(bn,{fontSize:10,sx:{mt:.5},children:S})]}),!e&&y.jsx(cR,{primary:S}),!e&&P&&(c[w]?y.jsx(wY,{}):y.jsx(SY,{}))]}),P&&!e&&y.jsx(Eg,{in:c[w],timeout:"auto",unmountOnExit:!0,children:y.jsx(Qk,{items:P,onClick:n,collapsed:e,sx:{pl:e?0:2,pb:0}})})]},w)}),e&&y.jsx(m,{items:l||[],onClick:n,collapsed:!1,sx:{pl:e?0:2,pb:0},anchorEl:o,anchorOrigin:{vertical:"top",horizontal:"right"},onClose:()=>{s(null),u(null)},open:!!o,slotProps:{paper:{sx:{minWidth:p}}}})]})},Yk=({collapsed:e=!1,items:t,onClick:n,...r})=>{const[o,s]=ae.useState({}),l=Ur("drawer.width",280);return y.jsxs(y.Fragment,{children:[y.jsx(ly,{...r,children:t.map(u=>{const{text:c,icon:f,element:p=null,key:m,children:g,onClick:S,to:x}=u;return p||y.jsxs(Ki,{onClick:b=>{if(S&&S(b),g){s({...o,[m]:o[m]?null:b.currentTarget});return}n&&n(b)},...x?{component:Kf,to:x}:{},children:[f&&y.jsx(lR,{sx:{minWidth:0,mr:e?"auto":3,justifyContent:"center",color:"inherit"},children:f}),y.jsx(cR,{sx:{opacity:e?0:1},children:c}),!e&&g&&y.jsx(xy,{})]},m)})}),t.map(u=>{const{key:c,children:f}=u;return f?y.jsx(Yk,{items:f,onClick:n,collapsed:e,sx:{pl:e?0:2,pb:0},open:!!o[c],anchorEl:o[c],anchorOrigin:{vertical:"top",horizontal:"right"},onClose:()=>s({...o,[c]:null}),slotProps:{paper:{sx:{minWidth:l}}}},c):null})]})},Qy={delete:e=>async({selected:t,notify:n,dialog:r,refresh:o,t:s})=>{const l=e.getSchema().softDeletes?"send to trash":"delete permanently",u=e.getSchema().softDeletes?"sent to trash":"deleted";if(await r({title:e.getSchema().softDeletes?s("Confirm send to trash"):s("Confirm delete permanently"),message:s(`Are you sure you want to ${l} :count :model?`,{count:t.count(),model:_e.lcfirst(t.count()===1?e.singular():e.plural())}),type:"confirm"}))try{await e.delete(t.pluck(e.getSchema().primaryKey).all()),n(s(`Successfully ${u} :count :model`,{count:t.count(),model:_e.lcfirst(t.count()===1?e.singular():e.plural())})),o()}catch(f){Qs(n)(f)}},restore:e=>async({selected:t,notify:n,dialog:r,refresh:o,t:s})=>{if(await r({title:s("Confirm restore"),message:s("Are you sure you want to restore :count :model?",{count:t.count(),model:_e.lcfirst(t.count()===1?e.singular():e.plural())}),type:"confirm"}))try{await e.restore(t.pluck(e.getSchema().primaryKey).all()),n(s("Successfully restored :count :model",{count:t.count(),model:_e.lcfirst(t.count()===1?e.singular():e.plural())})),o()}catch(u){Qs(n)(u)}},forceDelete:e=>async({selected:t,notify:n,dialog:r,refresh:o,t:s})=>{if(await r({title:s("Confirm permanent deletion"),message:s("Are you sure you want to delete permanently :count :model?",{count:t.count(),model:_e.lcfirst(t.count()===1?e.singular():e.plural())}),type:"confirm"}))try{await e.forceDelete(t.pluck(e.getSchema().primaryKey).all()),n(s("Successfully deleted :count :model",{count:t.count(),model:_e.lcfirst(t.count()===1?e.singular():e.plural())})),o()}catch(u){Qs(n)(u)}}},Yy={delete:e=>async({item:t,notify:n,dialog:r,refresh:o,t:s})=>{const l=e.getSchema().softDeletes?"send :model “:label” to trash":"delete :model “:label” permanently",u=e.getSchema().softDeletes?"sent :model “:label” to trash":"deleted :model “:label”";if(await r({title:e.getSchema().softDeletes?s("Confirm send to trash"):s("Confirm permanent deletion"),message:s(`Are you sure you want to ${l}?`,{model:_e.lcfirst(e.singular()),label:t.getLabel()}),type:"confirm"}))try{await t.delete(),n(s(`Successfully ${u}`,{model:e.singular(),label:t.getLabel()})),o()}catch(f){Qs(n)(f)}},restore:e=>async({item:t,notify:n,dialog:r,refresh:o,t:s})=>{if(await r({title:s("Confirm restore"),message:s("Are you sure you want to restore :model “:label”?",{model:_e.lcfirst(e.singular()),label:t.getLabel()}),type:"confirm"}))try{await t.restore(),n(s("Successfully restored :model “:label”",{model:e.singular(),label:t.getLabel()})),o()}catch(u){Qs(n)(u)}},forceDelete:e=>async({item:t,notify:n,dialog:r,refresh:o,t:s})=>{if(await r({title:s("Confirm permanent deletion"),message:s("Are you sure you want to delete :model “:label” permanently?",{model:_e.lcfirst(e.singular()),label:t.getLabel()}),type:"confirm"}))try{await t.forceDelete(),n(s("Successfully deleted :model “:label”",{model:e.singular(),label:t.getLabel()})),o()}catch(u){Qs(n)(u)}}},pZ={create:e=>({navigate:t})=>{t(`/${_e.kebab(e.plural())}/create`)}},hZ=({item:e})=>{const t=zy(),[n]=Zr(),r=n.get("tab")??"all",o=ae.useMemo(()=>Tt("cms").getInstanceActions(e.constructor,r),[e,r]),[s,l]=ae.useState(null),u=!!s,c=p=>{l(p.currentTarget)},f=()=>{l(null)};return y.jsxs(y.Fragment,{children:[y.jsx(Wn,{"aria-describedby":"model-item-actions","aria-label":"filter",onClick:c,children:y.jsx(rk,{})}),y.jsx(ly,{id:"model-item-actions",anchorEl:s,open:u,onClose:f,MenuListProps:{"aria-labelledby":"model-item-action"},children:o.map(p=>y.jsxs(Ki,{onClick:()=>{p.callback({item:e,...t}),f()},sx:{px:1,gap:.75},children:[p.icon,p.label]},p.label))})]})};class mZ{getComponents(){return this.componentMap({})}getComponent(t){return this.getComponents()[t]}getRoutes(){return this.cmsRoutes([],this.getComponents(),Jl().make())}getMenuItems(){return this.menuItems([],Jl().make())}getModelFormProps(t){return this.wireModelFormProps({},t)}getMassActions(t,n){return this[`mass${_e.studly(t.getSchemaName())}Actions`](this.massActions([],t,n),t,n)}getInstanceActions(t,n){return this[`instance${_e.studly(t.getSchemaName())}Actions`](this.instanceActions([],t,n),t,n)}getStaticActions(t,n){return this[`static${_e.studly(t.getSchemaName())}Actions`](this.staticActions([],t,n),t,n)}}const gZ=Yl(mZ),nu=e=>!(typeof e>"u"||e===null||qe.isEmpty(e));class yZ{getInputType(t){switch(t){case"int":case"float":case"number":return"number";case"date":return"date";case"datetime":case"timestamp":return"datetime-local";case"autocomplete":return"autocomplete";case"bool":case"boolean":return"boolean";default:return"text"}}getOperators(){return _i("luminix.admin.filter.operators")}getMatchingOperators(t){return this.getOperators().filter(n=>["like"].includes(n)||!t.is_relation&&["relation"].includes(n)||["text"].includes(this.getInputType(t.type))&&["greaterThan","greaterThanOrEquals","lessThan","lessThanOrEquals","between","notBetween"].includes(n)||["number","date","datetime-local","boolean"].includes(this.getInputType(t.type))&&["like","contains","startsWith","endsWith"].includes(n)||!t.nullable&&["null","notNull"].includes(n)?!1:n).map(n=>{let r=n;switch(n){case"equals":r="=";break;case"notEquals":r="!=";break;case"greaterThan":r=">";break;case"greaterThanOrEquals":r=">=";break;case"lessThan":r="<";break;case"lessThanOrEquals":r="<=";break;default:r=_e.human(r);break}return{key:n,label:r}})}getFilterableColumns(t){const{attributes:n=[],relations:r={}}=t.getSchema();return[...n.filter(o=>!o.hidden&&!o.appended).map(o=>{let s=o.phpType??"string";return!qe.isNull(o.cast)&&!qe.isEmpty(o.cast)&&(s=o.cast),{key:o.name,label:_e.human(o.name),type:s,nullable:o.nullable,is_relation:!1}}),...Object.entries(r??{}).reduce((o,[s])=>[...o,{key:s,label:_e.human(s),type:"autocomplete",nullable:!1,is_relation:!0}],[])]}checkIfCanApplyFilters(t){return!!(t.length===0||t.map(r=>{if(!nu(r.key)||!nu(r.operator))return!0;if(["boolean"].includes(this.getInputType(r.type))){if(typeof r.value>"u"||qe.isNull(r.value))return!0}else if(!nu(r.value))return!0;return!!(Array.isArray(r.value)&&["between","notBetween"].includes(r.operator)&&(!nu(r.value[0])||!nu(r.value[1])))}).includes(!0))}}const vZ=Yl(yZ),Zf=class Zf extends Ed{register(){this.app.singleton("cms",()=>new gZ),this.app.singleton("filter",()=>new vZ),this.app.once("booting",()=>{this.bootModels()})}boot(){this.bootComponents(),this.bootRoutes(),this.bootMenu(),this.bootMassActions(),this.bootInstanceActions(),this.bootStaticActions(),Zf.applyUserDefaults&&this.bootDefaultUserModifiers()}bootModels(){kd.reducer("model",(t,n)=>class extends t{static icon(){return n==="user"?y.jsx(PY,{}):y.jsx(bY,{})}},0)}bootRoutes(){lr.reducer("cmsRoutes",jY,0),fm.reducer("domRouterOptions",t=>({...t,basename:Ii.get("luminix.admin.url","/admin")}))}bootComponents(){lr.reducer("componentMap",()=>({Layout:NY,Dashboard:_Y,ModelIndex:DY,ModelItem:fJ,Error:IY,DesktopPageTitle:OJ,RecursiveList:Qk,RecursiveMenu:Yk,Breadcrumbs:fZ,"Layout.AppBar":CJ,"Layout.Drawer":TJ,"Layout.AppBar.MenuButton":WJ,"Layout.SearchBar":XJ,"Layout.BackButton":EJ,"ModelIndex.Filter":zJ,"ModelIndex.InstanceActions":hZ,"ModelIndex.MassActions":UJ,"ModelIndex.Pagination":VJ,"ModelIndex.PaginationDetails":KJ,"ModelIndex.PerPageSwitch":GJ,"ModelIndex.Sort":ZJ,"ModelIndex.StaticActions":yJ,"ModelIndex.Table":tZ,"ModelIndex.Table.TableHead":nZ,"ModelIndex.Table.TableBody":oZ,"ModelIndex.Table.TableFooter":cZ,"ModelIndex.Table.TableToolbar":uZ,"ModelIndex.Table.TableBody.TableRow":lZ,"ModelIndex.Table.ShrinkedCell":JJ,"ModelIndex.Tabs":dZ}),0)}bootMenu(){lr.reducer("menuItems",(t,n)=>[...t,{key:"dashboard",text:"Dashboard",to:"/",icon:y.jsx(xY,{})},...Object.entries(n).sort(([r],[o])=>r.localeCompare(o)).map(([r,o])=>({key:r,text:o.plural(),to:"/"+_e.kebab(o.plural()),icon:o.icon()}))],0)}bootDefaultUserModifiers(){lr.reducer("modelUserColumns",()=>[{key:"name",label:"Name",scope:"row",component:"th"},{key:"email",label:"Email",align:"right",size:"small"},{key:"created_at",label:"Created At",align:"right",size:"small"}],1),lr.reducer("wireModelFormProps",(t,n)=>(n==null?void 0:n.getType())==="user"?{...t,confirmed:"password"}:t)}bootMassActions(){lr.reducer("massActions",(t,n,r)=>{const o=[],{softDeletes:s}=n.getSchema();return r!=="trashed"?o.push({key:"delete",label:s?"Send to trash":"Delete permanently",callback:Qy.delete(n)}):(o.push({key:"restore",label:"Restore",callback:Qy.restore(n)}),o.push({key:"forceDelete",label:"Delete permanently",callback:Qy.forceDelete(n)})),[...t,...o]},0)}bootInstanceActions(){lr.reducer("instanceActions",(t,n,r)=>{const o=[],{softDeletes:s}=n.getSchema();return r!=="trashed"?o.push({label:s?"Send to trash":"Delete permanently",callback:Yy.delete(n)}):(o.push({label:"Restore",callback:Yy.restore(n)}),o.push({label:"Delete permanently",callback:Yy.forceDelete(n)})),[...t,...o]},0)}bootStaticActions(){lr.reducer("staticActions",(t,n,r)=>r==="trashed"?t:[...t,{key:"create",label:`Create ${n.singular()}`,callback:pZ.create(n),icon:y.jsx(hY,{})}],0)}};jO(Zf,"applyUserDefaults",!0);let Xy=Zf;const bZ={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Gf{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||bZ,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Gf(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Gf(this.logger,t)}}var Yo=new Gf;class qf{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(l=>{let[u,c]=l;for(let f=0;f<c;f++)u(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(l=>{let[u,c]=l;for(let f=0;f<c;f++)u.apply(u,[t,...r])})}}function ru(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function Xk(e){return e==null?"":""+e}function xZ(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}const wZ=/###/g;function ou(e,t,n){function r(u){return u&&u.indexOf("###")>-1?u.replace(wZ,"."):u}function o(){return!e||typeof e=="string"}const s=typeof t!="string"?t:t.split(".");let l=0;for(;l<s.length-1;){if(o())return{};const u=r(s[l]);!e[u]&&n&&(e[u]=new n),Object.prototype.hasOwnProperty.call(e,u)?e=e[u]:e={},++l}return o()?{}:{obj:e,k:r(s[l])}}function Jk(e,t,n){const{obj:r,k:o}=ou(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let s=t[t.length-1],l=t.slice(0,t.length-1),u=ou(e,l,Object);for(;u.obj===void 0&&l.length;)s=`${l[l.length-1]}.${s}`,l=l.slice(0,l.length-1),u=ou(e,l,Object),u&&u.obj&&typeof u.obj[`${u.k}.${s}`]<"u"&&(u.obj=void 0);u.obj[`${u.k}.${s}`]=n}function SZ(e,t,n,r){const{obj:o,k:s}=ou(e,t,Object);o[s]=o[s]||[],o[s].push(n)}function Qf(e,t){const{obj:n,k:r}=ou(e,t);if(n)return n[r]}function CZ(e,t,n){const r=Qf(e,n);return r!==void 0?r:Qf(t,n)}function Zk(e,t,n){for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):Zk(e[r],t[r],n):e[r]=t[r]);return e}function al(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var EZ={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function RZ(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>EZ[t]):e}class kZ{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const PZ=[" ",",","?","!",";"],TZ=new kZ(20);function OZ(e,t,n){t=t||"",n=n||"";const r=PZ.filter(l=>t.indexOf(l)<0&&n.indexOf(l)<0);if(r.length===0)return!0;const o=TZ.getRegExp(`(${r.map(l=>l==="?"?"\\?":l).join("|")})`);let s=!o.test(e);if(!s){const l=e.indexOf(n);l>0&&!o.test(e.substring(0,l))&&(s=!0)}return s}function Jy(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let s=0;s<r.length;){if(!o||typeof o!="object")return;let l,u="";for(let c=s;c<r.length;++c)if(c!==s&&(u+=n),u+=r[c],l=o[u],l!==void 0){if(["string","number","boolean"].indexOf(typeof l)>-1&&c<r.length-1)continue;s+=c-s+1;break}o=l}return o}function Yf(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class eP extends qf{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,l=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let u;t.indexOf(".")>-1?u=t.split("."):(u=[t,n],r&&(Array.isArray(r)?u.push(...r):typeof r=="string"&&s?u.push(...r.split(s)):u.push(r)));const c=Qf(this.data,u);return!c&&!n&&!r&&t.indexOf(".")>-1&&(t=u[0],n=u[1],r=u.slice(2).join(".")),c||!l||typeof r!="string"?c:Jy(this.data&&this.data[t]&&this.data[t][n],r,s)}addResource(t,n,r,o){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let u=[t,n];r&&(u=u.concat(l?r.split(l):r)),t.indexOf(".")>-1&&(u=t.split("."),o=n,n=u[1]),this.addNamespaces(n),Jk(this.data,u,o),s.silent||this.emit("added",t,n,r,o)}addResources(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(typeof r[s]=="string"||Array.isArray(r[s]))&&this.addResource(t,n,s,r[s],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,s){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},u=[t,n];t.indexOf(".")>-1&&(u=t.split("."),o=r,r=n,n=u[1]),this.addNamespaces(n);let c=Qf(this.data,u)||{};l.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?Zk(c,r,s):c={...c,...r},Jk(this.data,u,c),l.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var tP={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(s=>{this.processors[s]&&(t=this.processors[s].process(t,n,r,o))}),t}};const nP={};class Xf extends qf{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),xZ(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Yo.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const l=r&&t.indexOf(r)>-1,u=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!OZ(t,r,o);if(l&&!u){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:s};const f=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(f[0])>-1)&&(s=f.shift()),t=f.join(o)}return typeof s=="string"&&(s=[s]),{key:t,namespaces:s}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:l,namespaces:u}=this.extractFromKey(t[t.length-1],n),c=u[u.length-1],f=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(p){const A=n.nsSeparator||this.options.nsSeparator;return o?{res:`${c}${A}${l}`,usedKey:l,exactUsedKey:l,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${A}${l}`}return o?{res:l,usedKey:l,exactUsedKey:l,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:l}const m=this.resolve(t,n);let g=m&&m.res;const S=m&&m.usedKey||l,x=m&&m.exactUsedKey||l,b=Object.prototype.toString.apply(g),w=["[object Number]","[object Function]","[object RegExp]"],P=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject;if(R&&g&&(typeof g!="string"&&typeof g!="boolean"&&typeof g!="number")&&w.indexOf(b)<0&&!(typeof P=="string"&&Array.isArray(g))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const A=this.options.returnedObjectHandler?this.options.returnedObjectHandler(S,g,{...n,ns:u}):`key '${l} (${this.language})' returned an object instead of string.`;return o?(m.res=A,m.usedParams=this.getUsedParamsDetails(n),m):A}if(s){const A=Array.isArray(g),$=A?[]:{},T=A?x:S;for(const _ in g)if(Object.prototype.hasOwnProperty.call(g,_)){const M=`${T}${s}${_}`;$[_]=this.translate(M,{...n,joinArrays:!1,ns:u}),$[_]===M&&($[_]=g[_])}g=$}}else if(R&&typeof P=="string"&&Array.isArray(g))g=g.join(P),g&&(g=this.extendTranslation(g,t,n,r));else{let A=!1,$=!1;const T=n.count!==void 0&&typeof n.count!="string",_=Xf.hasDefaultValue(n),M=T?this.pluralResolver.getSuffix(f,n.count,n):"",F=n.ordinal&&T?this.pluralResolver.getSuffix(f,n.count,{ordinal:!1}):"",B=T&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),G=B&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${M}`]||n[`defaultValue${F}`]||n.defaultValue;!this.isValidLookup(g)&&_&&(A=!0,g=G),this.isValidLookup(g)||($=!0,g=l);const H=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&$?void 0:g,z=_&&G!==g&&this.options.updateMissing;if($||A||z){if(this.logger.log(z?"updateKey":"missingKey",f,c,l,z?G:g),s){const N=this.resolve(l,{...n,keySeparator:!1});N&&N.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let te=[];const Z=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Z&&Z[0])for(let N=0;N<Z.length;N++)te.push(Z[N]);else this.options.saveMissingTo==="all"?te=this.languageUtils.toResolveHierarchy(n.lng||this.language):te.push(n.lng||this.language);const X=(N,Y,ce)=>{const L=_&&ce!==g?ce:H;this.options.missingKeyHandler?this.options.missingKeyHandler(N,c,Y,L,z,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(N,c,Y,L,z,n),this.emit("missingKey",N,c,Y,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?te.forEach(N=>{const Y=this.pluralResolver.getSuffixes(N,n);B&&n[`defaultValue${this.options.pluralSeparator}zero`]&&Y.indexOf(`${this.options.pluralSeparator}zero`)<0&&Y.push(`${this.options.pluralSeparator}zero`),Y.forEach(ce=>{X([N],l+ce,n[`defaultValue${ce}`]||G)})}):X(te,l,G))}g=this.extendTranslation(g,t,n,m,r),$&&g===l&&this.options.appendNamespaceToMissingKey&&(g=`${c}:${l}`),($||A)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${l}`:l,A?g:void 0):g=this.options.parseMissingKeyHandler(g))}return o?(m.res=g,m.usedParams=this.getUsedParamsDetails(n),m):g}extendTranslation(t,n,r,o,s){var l=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const f=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(f){const g=t.match(this.interpolator.nestingRegexp);p=g&&g.length}let m=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,r.lng||this.language||o.usedLng,r),f){const g=t.match(this.interpolator.nestingRegexp),S=g&&g.length;p<S&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var g=arguments.length,S=new Array(g),x=0;x<g;x++)S[x]=arguments[x];return s&&s[0]===S[0]&&!r.context?(l.logger.warn(`It seems you are nesting recursively key: ${S[0]} in key: ${n[0]}`),null):l.translate(...S,n)},r)),r.interpolation&&this.interpolator.reset()}const u=r.postProcess||this.options.postProcess,c=typeof u=="string"?[u]:u;return t!=null&&c&&c.length&&r.applyPostProcessor!==!1&&(t=tP.handle(c,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,o,s,l,u;return typeof t=="string"&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(r))return;const f=this.extractFromKey(c,n),p=f.key;o=p;let m=f.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const g=n.count!==void 0&&typeof n.count!="string",S=g&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),x=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",b=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(w=>{this.isValidLookup(r)||(u=w,!nP[`${b[0]}-${w}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(u)&&(nP[`${b[0]}-${w}`]=!0,this.logger.warn(`key "${o}" for languages "${b.join(", ")}" won't get resolved as namespace "${u}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(P=>{if(this.isValidLookup(r))return;l=P;const R=[p];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(R,p,P,w,n);else{let A;g&&(A=this.pluralResolver.getSuffix(P,n.count,n));const $=`${this.options.pluralSeparator}zero`,T=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(R.push(p+A),n.ordinal&&A.indexOf(T)===0&&R.push(p+A.replace(T,this.options.pluralSeparator)),S&&R.push(p+$)),x){const _=`${p}${this.options.contextSeparator}${n.context}`;R.push(_),g&&(R.push(_+A),n.ordinal&&A.indexOf(T)===0&&R.push(_+A.replace(T,this.options.pluralSeparator)),S&&R.push(_+$))}}let O;for(;O=R.pop();)this.isValidLookup(r)||(s=O,r=this.getResource(P,w,O,n))}))})}),{res:r,usedKey:o,exactUsedKey:s,usedLng:l,usedNS:u}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const s of n)delete o[s]}return o}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function Zy(e){return e.charAt(0).toUpperCase()+e.slice(1)}class rP{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Yo.create("languageUtils")}getScriptPartFromCode(t){if(t=Yf(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Yf(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(o=>o.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Zy(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Zy(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Zy(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(s=>{if(s===o)return s;if(!(s.indexOf("-")<0&&o.indexOf("-")<0)&&(s.indexOf("-")>0&&o.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===o||s.indexOf(o)===0&&o.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],s=l=>{l&&(this.isSupportedCode(l)?o.push(l):this.logger.warn(`rejecting language code not found in supportedLngs: ${l}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):typeof t=="string"&&s(this.formatLanguageCode(t)),r.forEach(l=>{o.indexOf(l)<0&&s(this.formatLanguageCode(l))}),o}}let $Z=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],AZ={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const jZ=["v1","v2","v3"],_Z=["v4"],oP={zero:0,one:1,two:2,few:3,many:4,other:5};function IZ(){const e={};return $Z.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:AZ[t.fc]}})}),e}class MZ{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Yo.create("pluralResolver"),(!this.options.compatibilityJSON||_Z.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=IZ()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Yf(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((o,s)=>oP[o]-oP[s]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):r.numbers.map(o=>this.getSuffix(t,o,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,r);return o?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let o=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const s=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?s():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!jZ.includes(this.options.compatibilityJSON)}}function iP(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=CZ(e,t,n);return!s&&o&&typeof n=="string"&&(s=Jy(e,n,r),s===void 0&&(s=Jy(t,n,r))),s}class NZ{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Yo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:s,prefixEscaped:l,suffix:u,suffixEscaped:c,formatSeparator:f,unescapeSuffix:p,unescapePrefix:m,nestingPrefix:g,nestingPrefixEscaped:S,nestingSuffix:x,nestingSuffixEscaped:b,nestingOptionsSeparator:w,maxReplaces:P,alwaysFormat:R}=t.interpolation;this.escape=n!==void 0?n:RZ,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=s?al(s):l||"{{",this.suffix=u?al(u):c||"}}",this.formatSeparator=f||",",this.unescapePrefix=p?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":p||"",this.nestingPrefix=g?al(g):S||al("$t("),this.nestingSuffix=x?al(x):b||al(")"),this.nestingOptionsSeparator=w||",",this.maxReplaces=P||1e3,this.alwaysFormat=R!==void 0?R:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,o){let s,l,u;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(x){return x.replace(/\$/g,"$$$$")}const p=x=>{if(x.indexOf(this.formatSeparator)<0){const R=iP(n,c,x,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(R,void 0,r,{...o,...n,interpolationkey:x}):R}const b=x.split(this.formatSeparator),w=b.shift().trim(),P=b.join(this.formatSeparator).trim();return this.format(iP(n,c,w,this.options.keySeparator,this.options.ignoreJSONStructure),P,r,{...o,...n,interpolationkey:w})};this.resetRegExp();const m=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,g=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:x=>f(x)},{regex:this.regexp,safeValue:x=>this.escapeValue?f(this.escape(x)):f(x)}].forEach(x=>{for(u=0;s=x.regex.exec(t);){const b=s[1].trim();if(l=p(b),l===void 0)if(typeof m=="function"){const P=m(t,s,o);l=typeof P=="string"?P:""}else if(o&&Object.prototype.hasOwnProperty.call(o,b))l="";else if(g){l=s[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),l="";else typeof l!="string"&&!this.useRawValueToEscape&&(l=Xk(l));const w=x.safeValue(l);if(t=t.replace(s[0],w),g?(x.regex.lastIndex+=l.length,x.regex.lastIndex-=s[0].length):x.regex.lastIndex=0,u++,u>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,l;function u(c,f){const p=this.nestingOptionsSeparator;if(c.indexOf(p)<0)return c;const m=c.split(new RegExp(`${p}[ ]*{`));let g=`{${m[1]}`;c=m[0],g=this.interpolate(g,l);const S=g.match(/'/g),x=g.match(/"/g);(S&&S.length%2===0&&!x||x.length%2!==0)&&(g=g.replace(/'/g,'"'));try{l=JSON.parse(g),f&&(l={...f,...l})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,b),`${c}${p}${g}`}return l.defaultValue&&l.defaultValue.indexOf(this.prefix)>-1&&delete l.defaultValue,c}for(;o=this.nestingRegexp.exec(t);){let c=[];l={...r},l=l.replace&&typeof l.replace!="string"?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;let f=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const p=o[1].split(this.formatSeparator).map(m=>m.trim());o[1]=p.shift(),c=p,f=!0}if(s=n(u.call(this,o[1].trim(),l),l),s&&o[0]===t&&typeof s!="string")return s;typeof s!="string"&&(s=Xk(s)),s||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),s=""),f&&(s=c.reduce((p,m)=>this.format(p,m,r.lng,{...r,interpolationkey:o[1].trim()}),s.trim())),t=t.replace(o[0],s),this.regexp.lastIndex=0}return t}}function LZ(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(l=>{if(l){const[u,...c]=l.split(":"),f=c.join(":").trim().replace(/^'+|'+$/g,""),p=u.trim();n[p]||(n[p]=f),f==="false"&&(n[p]=!1),f==="true"&&(n[p]=!0),isNaN(f)||(n[p]=parseInt(f,10))}})}return{formatName:t,formatOptions:n}}function ll(e){const t={};return function(r,o,s){const l=o+JSON.stringify(s);let u=t[l];return u||(u=e(Yf(o),s),t[l]=u),u(r)}}class DZ{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Yo.create("formatter"),this.options=t,this.formats={number:ll((n,r)=>{const o=new Intl.NumberFormat(n,{...r});return s=>o.format(s)}),currency:ll((n,r)=>{const o=new Intl.NumberFormat(n,{...r,style:"currency"});return s=>o.format(s)}),datetime:ll((n,r)=>{const o=new Intl.DateTimeFormat(n,{...r});return s=>o.format(s)}),relativetime:ll((n,r)=>{const o=new Intl.RelativeTimeFormat(n,{...r});return s=>o.format(s,r.range||"day")}),list:ll((n,r)=>{const o=new Intl.ListFormat(n,{...r});return s=>o.format(s)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=ll(n)}format(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((u,c)=>{const{formatName:f,formatOptions:p}=LZ(c);if(this.formats[f]){let m=u;try{const g=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},S=g.locale||g.lng||o.locale||o.lng||r;m=this.formats[f](u,S,{...p,...o,...g})}catch(g){this.logger.warn(g)}return m}else this.logger.warn(`there was no format function for ${f}`);return u},t)}}function FZ(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class BZ extends qf{constructor(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Yo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,o.backend,o)}queueLoad(t,n,r,o){const s={},l={},u={},c={};return t.forEach(f=>{let p=!0;n.forEach(m=>{const g=`${f}|${m}`;!r.reload&&this.store.hasResourceBundle(f,m)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?l[g]===void 0&&(l[g]=!0):(this.state[g]=1,p=!1,l[g]===void 0&&(l[g]=!0),s[g]===void 0&&(s[g]=!0),c[m]===void 0&&(c[m]=!0)))}),p||(u[f]=!0)}),(Object.keys(s).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(s),pending:Object.keys(l),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(c)}}loaded(t,n,r){const o=t.split("|"),s=o[0],l=o[1];n&&this.emit("failedLoading",s,l,n),r&&this.store.addResourceBundle(s,l,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;const u={};this.queue.forEach(c=>{SZ(c.loaded,[s],l),FZ(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(f=>{u[f]||(u[f]={});const p=c.loaded[f];p.length&&p.forEach(m=>{u[f][m]===void 0&&(u[f][m]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(c=>!c.done)}read(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,l=arguments.length>5?arguments[5]:void 0;if(!t.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:s,callback:l});return}this.readingCalls++;const u=(f,p)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(f&&p&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,o+1,s*2,l)},s);return}l(f,p)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const f=c(t,n);f&&typeof f.then=="function"?f.then(p=>u(null,p)).catch(u):u(null,f)}catch(f){u(f)}return}return c(t,n,u)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const s=this.queueLoad(t,n,r,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach(l=>{this.loadOne(l)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),o=r[0],s=r[1];this.read(o,s,"read",void 0,void 0,(l,u)=>{l&&this.logger.warn(`${n}loading namespace ${s} for language ${o} failed`,l),!l&&u&&this.logger.log(`${n}loaded namespace ${s} for language ${o}`,u),this.loaded(t,l,u)})}saveMissing(t,n,r,o,s){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const c={...l,isUpdate:s},f=this.backend.create.bind(this.backend);if(f.length<6)try{let p;f.length===5?p=f(t,n,r,o,c):p=f(t,n,r,o),p&&typeof p.then=="function"?p.then(m=>u(null,m)).catch(u):u(null,p)}catch(p){u(p)}else f(t,n,r,o,u,c)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}function sP(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(o=>{n[o]=r[o]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function aP(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Jf(){}function zZ(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class iu extends qf{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=aP(t),this.services={},this.logger=Yo,this.modules={external:[]},zZ(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=sP();this.options={...o,...this.options,...aP(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function s(p){return p?typeof p=="function"?new p:p:null}if(!this.options.isClone){this.modules.logger?Yo.init(s(this.modules.logger),this.options):Yo.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:typeof Intl<"u"&&(p=DZ);const m=new rP(this.options);this.store=new eP(this.options.resources,this.options);const g=this.services;g.logger=Yo,g.resourceStore=this.store,g.languageUtils=m,g.pluralResolver=new MZ(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(g.formatter=s(p),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new NZ(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new BZ(s(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(S){for(var x=arguments.length,b=new Array(x>1?x-1:0),w=1;w<x;w++)b[w-1]=arguments[w];t.emit(S,...b)}),this.modules.languageDetector&&(g.languageDetector=s(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=s(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new Xf(this.services,this.options),this.translator.on("*",function(S){for(var x=arguments.length,b=new Array(x>1?x-1:0),w=1;w<x;w++)b[w-1]=arguments[w];t.emit(S,...b)}),this.modules.external.forEach(S=>{S.init&&S.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Jf),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(p=>{this[p]=function(){return t.store[p](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=function(){return t.store[p](...arguments),t}});const c=ru(),f=()=>{const p=(m,g)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(g),r(m,g)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),c}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jf;const o=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],l=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(f=>{f!=="cimode"&&s.indexOf(f)<0&&s.push(f)})};o?l(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>l(c)),this.options.preload&&this.options.preload.forEach(u=>l(u)),this.services.backendConnector.load(s,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(u)})}else r(null)}reloadResources(t,n,r){const o=ru();return t||(t=this.languages),n||(n=this.options.ns),r||(r=Jf),this.services.backendConnector.reload(t,n,s=>{o.resolve(),r(s)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&tP.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const o=ru();this.emit("languageChanging",t);const s=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},l=(c,f)=>{f?(s(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,o.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},u=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const f=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);f&&(this.language||s(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(f)),this.loadResources(f,p=>{l(p,f)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(t),o}getFixedT(t,n,r){var o=this;const s=function(l,u){let c;if(typeof u!="object"){for(var f=arguments.length,p=new Array(f>2?f-2:0),m=2;m<f;m++)p[m-2]=arguments[m];c=o.options.overloadTranslationOptionHandler([l,u].concat(p))}else c={...u};c.lng=c.lng||s.lng,c.lngs=c.lngs||s.lngs,c.ns=c.ns||s.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||r||s.keyPrefix);const g=o.options.keySeparator||".";let S;return c.keyPrefix&&Array.isArray(l)?S=l.map(x=>`${c.keyPrefix}${g}${x}`):S=c.keyPrefix?`${c.keyPrefix}${g}${l}`:l,o.t(S,c)};return typeof t=="string"?s.lng=t:s.lngs=t,s.ns=n,s.keyPrefix=r,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const l=(u,c)=>{const f=this.services.backendConnector.state[`${u}|${c}`];return f===-1||f===2};if(n.precheck){const u=n.precheck(this,l);if(u!==void 0)return u}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(r,t)&&(!o||l(s,t)))}loadNamespaces(t,n){const r=ru();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=ru();typeof t=="string"&&(t=[t]);const o=this.options.preload||[],s=t.filter(l=>o.indexOf(l)<0&&this.services.languageUtils.isSupportedCode(l));return s.length?(this.options.preload=o.concat(s),this.loadResources(l=>{r.resolve(),n&&n(l)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new rP(sP());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new iu(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jf;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},s=new iu(o);return(t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(u=>{s[u]=this[u]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r&&(s.store=new eP(this.store.data,o),s.services.resourceStore=s.store),s.translator=new Xf(s.services,o),s.translator.on("*",function(u){for(var c=arguments.length,f=new Array(c>1?c-1:0),p=1;p<c;p++)f[p-1]=arguments[p];s.emit(u,...f)}),s.init(o,n),s.translator.options=o,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ln=iu.createInstance();ln.createInstance=iu.createInstance,ln.createInstance,ln.dir,ln.init,ln.loadResources,ln.reloadResources,ln.use,ln.changeLanguage,ln.getFixedT,ln.t,ln.exists,ln.setDefaultNamespace,ln.hasLoadedNamespace,ln.loadNamespaces,ln.loadLanguages;class UZ extends Ed{register(){this.app.once("booting",()=>{this.initI18Next(),this.translateModelNames()})}boot(){this.translateModelColumns(),this.translateMenuEntries(),this.translateInstanceActions(),this.translateMassActions(),this.translateFormLabels(),this.translateStaticActions()}initI18Next(){ln.use(aY).init({lng:Ii.get("app.locale","en"),fallbackLng:Ii.get("app.fallback_locale","en"),resources:{[Ii.get("app.locale","en")]:{translation:Ii.get("trans",{})}},...Ii.get("i18n",{}),interpolation:{prefix:":",suffix:"",prefixEscaped:":\\b",suffixEscaped:"(?:\\b)",...Ii.get("i18n.interpolation",{})},debug:Ii.get("app.debug",!1)})}translateModelNames(){kd.reducer("model",t=>class extends t{static singular(){return ln.t(t.singular())}static plural(){return ln.t(t.plural())}},0)}translateModelColumns(){for(const t of Object.keys(kd.make()))lr.reducer(`model${_e.studly(t)}Columns`,n=>n.map(r=>({...r,label:ln.t(r.label)})),99)}translateMenuEntries(){lr.reducer("menuItems",t=>{const n=t.find(r=>r.key==="dashboard");return n&&(n.text=ln.t(n.text)),t},5)}translateMassActions(){lr.reducer("massActions",t=>t.map(n=>({...n,label:ln.t(n.label)})),99)}translateInstanceActions(){lr.reducer("instanceActions",t=>t.map(n=>({...n,label:ln.t(n.label)})),99)}translateStaticActions(){lr.reducer("staticActions",(t,n)=>{const r=t.find(({key:o})=>o==="create");return r&&(r.label=ln.t("Create :model",{model:n.singular()})),t})}translateFormLabels(){Md.reducer("getDefaultInputProps",t=>(Array.isArray(t)?t.map(n=>{n!=null&&n.label&&(n.label=ln.t(n.label))}):t!=null&&t.label&&(t.label=ln.t(t.label)),t),99)}}const WZ={palette:{primary:{main:"#1d9798"},secondary:{main:"#fa510c"}}},HZ=({theme:e=WZ,providers:t=[],...n})=>{const r=ef("(prefers-color-scheme: dark)"),o=ae.useMemo(()=>mg({...e,palette:{...e.palette,mode:r?"dark":"light"}}),[e,r]);return y.jsxs(kU,{theme:o,children:[y.jsx(RH,{}),y.jsx(H4,{routes:s=>s.make("cms").getRoutes(),providers:[Xy,UZ,...t],...n})]})},lP=document.getElementById("root");if(!lP)throw new Error("Failed to find the root element");oh.createRoot(lP).render(y.jsx(ae.StrictMode,{children:y.jsx(HZ,{})}))})();
|
|
179
|
+
`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Gs(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Dy.assertOptions(r,{silentJSONParsing:Yi.transitional(Yi.boolean),forcedJSONParsing:Yi.transitional(Yi.boolean),clarifyTimeoutError:Yi.transitional(Yi.boolean)},!1),o!=null&&(pe.isFunction(o)?n.paramsSerializer={serialize:o}:Dy.assertOptions(o,{encode:Yi.function,serialize:Yi.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&pe.merge(s.common,s[n.method]);s&&pe.forEach(["delete","get","head","post","put","patch","common"],x=>{delete s[x]}),n.headers=Er.concat(l,s);const u=[];let c=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(c=c&&b.synchronous,u.unshift(b.fulfilled,b.rejected))});const f=[];this.interceptors.response.forEach(function(b){f.push(b.fulfilled,b.rejected)});let p,m=0,g;if(!c){const x=[Fk.bind(this),void 0];for(x.unshift.apply(x,u),x.push.apply(x,f),g=x.length,p=Promise.resolve(n);m<g;)p=p.then(x[m++],x[m++]);return p}g=u.length;let S=n;for(m=0;m<g;){const x=u[m++],b=u[m++];try{S=x(S)}catch(w){b.call(this,w);break}}try{p=Fk.call(this,S)}catch(x){return Promise.reject(x)}for(m=0,g=f.length;m<g;)p=p.then(f[m++],f[m++]);return p}getUri(t){t=Gs(this.defaults,t);const n=$k(t.baseURL,t.url);return wk(n,t.params,t.paramsSerializer)}};pe.forEach(["delete","get","head","options"],function(t){qs.prototype[t]=function(n,r){return this.request(Gs(r||{},{method:t,url:n,data:(r||{}).data}))}}),pe.forEach(["post","put","patch"],function(t){function n(r){return function(s,l,u){return this.request(Gs(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}qs.prototype[t]=n(),qs.prototype[t+"Form"]=n(!0)});let aJ=class IO{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const l=new Promise(u=>{r.subscribe(u),s=u}).then(o);return l.cancel=function(){r.unsubscribe(s)},l},t(function(s,l,u){r.reason||(r.reason=new ol(s,l,u),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 IO(function(o){t=o}),cancel:t}}};function lJ(e){return function(n){return e.apply(null,n)}}function cJ(e){return pe.isObject(e)&&e.isAxiosError===!0}const Fy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Fy).forEach(([e,t])=>{Fy[t]=e});function Uk(e){const t=new qs(e),n=ik(qs.prototype.request,t);return pe.extend(n,qs.prototype,t,{allOwnKeys:!0}),pe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Uk(Gs(e,o))},n}const On=Uk(eu);On.Axios=qs,On.CanceledError=ol,On.CancelToken=aJ,On.isCancel=kk,On.VERSION=Bk,On.toFormData=zf,On.AxiosError=St,On.Cancel=On.CanceledError,On.all=function(t){return Promise.all(t)},On.spread=lJ,On.isAxiosError=cJ,On.mergeConfig=Gs,On.AxiosHeaders=Er,On.formToJSON=e=>Ek(pe.isHTMLForm(e)?new FormData(e):e),On.getAdapter=Dk.getAdapter,On.HttpStatusCode=Fy,On.default=On;const{Axios:lne,AxiosError:cne,CanceledError:une,isCancel:dne,CancelToken:fne,VERSION:pne,all:hne,Cancel:mne,isAxiosError:uJ,spread:gne,toFormData:yne,AxiosHeaders:vne,HttpStatusCode:bne,formToJSON:xne,getAdapter:wne,mergeConfig:Sne}=On;function Qs(e){return t=>{var n;if(!(t instanceof Error))throw t;e({message:uJ(t)?((n=t.response)==null?void 0:n.data.message)??t.message:t.message,severity:"error"})}}function By(){return ae.useContext(Sy).notify}function dJ(){const e=By();return ae.useCallback(t=>{Qs(e)(t)},[e])}const fJ=({create:e=!1})=>{const[t,n]=ae.useState(),{id:r}=$F(),{t:o}=Vn(),s=By(),l=sc(),u=xi(),c=Ur("breakpoint","md");Ey(t!=null&&t.exists?o("Edit :model “:label“",{model:u.singular(),label:(t==null?void 0:t.getLabel())||"..."}):o("Create :model",{model:u.singular()})),FY();const f=Tt("cms").getComponent("Breadcrumbs");ae.useEffect(()=>{e?n(new u):u.find(r).then(S=>n(S??void 0))},[r,u,e]);const p=ae.useCallback(()=>{s(o(":model saved successfully",{model:u.singular()})),t!=null&&t.wasRecentlyCreated&&l(`/${_e.kebab(u.plural())}/${t.getKey()}`)},[s,l,u,t,o]),m=dJ(),g=ae.useMemo(()=>Tt("cms").getModelFormProps(t),[t]);return t?y.jsxs(vi,{container:!0,children:[y.jsx(vi,{xs:12,children:y.jsx(f,{parts:[{name:u.plural(),href:"/"+_e.kebab(u.plural())},{name:t.exists?t.getLabel():o("New")}]})}),y.jsx(vi,{xs:12,[c]:6,children:y.jsx(Ld,{submitText:"Save",...g,item:t,onSuccess:p,onError:m})})]}):null};function pJ(e){const{setDisplacement:t}=ae.useContext(Sy),n=xr(),r=En(),o=n.spacing(r?3:1),s=e===!1?o:n.spacing(e);ae.useEffect(()=>(t(s),()=>{t(o)}),[s,o,t])}function hJ(){return ae.useContext(tk).dialog}function zy(){const e=sc(),t=By(),n=hJ(),{t:r}=Vn(),{refresh:o}=cc();return{navigate:e,notify:t,dialog:n,t:r,refresh:o}}const mJ=re(Zg)(({theme:e})=>({position:"fixed",bottom:e.spacing(2),right:e.spacing(2)})),gJ=re(GG)(({theme:e})=>({position:"fixed",bottom:e.spacing(2),right:e.spacing(2)})),yJ=({variant:e="default"})=>{const t=xi(),n=En(),[r]=eo(),o=r.get("tab")??"all",[s,l]=ae.useState(!1),u=ae.useRef(null),[c,f]=ae.useState(0),p=zy(),m=ae.useMemo(()=>Tt("cms").getStaticActions(t,o),[t,o]);if(pJ(e==="fab"&&m.length>0?n?12:10:!1),m.length===0)return null;const g=(b,w)=>{f(w),l(!1)},S=()=>{l(b=>!b)},x=b=>{u.current&&u.current.contains(b.target)||l(!1)};return e==="fab"?m.length===1?vs.createPortal(y.jsx(mJ,{color:"primary",onClick:()=>m[0].callback(p),children:m[0].icon||m[0].label.charAt(0).toUpperCase()}),document.body):vs.createPortal(y.jsx(gJ,{ariaLabel:`actions for ${t.singular()}`,icon:y.jsx(NR,{}),color:"primary",onClose:()=>l(!1),onOpen:()=>l(!0),open:s,children:m.map(b=>y.jsx(cq,{icon:b.icon||b.label.charAt(0).toUpperCase(),tooltipTitle:b.label,onClick:()=>b.callback(p)},b.label))}),document.body):y.jsxs(y.Fragment,{children:[y.jsxs(Y9,{variant:"contained",ref:u,"aria-label":m[c].label,children:[y.jsx(ir,{onClick:()=>m[c].callback(p),children:m[c].label}),m.length>1&&y.jsx(ir,{variant:"contained",size:"small","aria-controls":s?"split-button-menu":void 0,"aria-expanded":s?"true":void 0,"aria-label":`select ${t.singular()} actions`,"aria-haspopup":"menu",onClick:S,children:y.jsx(yY,{})})]}),y.jsx(Bc,{open:s,anchorEl:u.current,role:void 0,transition:!0,children:({TransitionProps:b,placement:w})=>y.jsx(Ja,{...b,style:{transformOrigin:w==="bottom"?"center top":"center bottom"},children:y.jsx(io,{children:y.jsx(KE,{onClickAway:x,children:y.jsx(fR,{id:"split-button-menu",children:m.map((P,R)=>y.jsx(Ki,{selected:R===c,onClick:O=>g(O,R),children:P.label},P.label))})})})})})]})};function Uy(){const{open:e,setOpen:t}=ae.useContext(Qo);return{open:e,handleDrawerOpen:()=>{t(!0)},handleDrawerClose:()=>{t(!1)},toggle:()=>{t(s=>!s)}}}function Wk(){const{currentPage:e}=ae.useContext(Qo);return e}function vJ(){const{showSearch:e}=ae.useContext(Qo);return e}const bJ="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAABbWlDQ1BpY2MAACiRdZG9S0JRGMZ/aqWU0VBDRIOBRYORFERj2eAiIWaQ1aI3PwI/LvcqIa1BS4PQELX0NfQf1Bq0FgRBEUQ0Nve1hNzeo4ISdS7nvj+ec56Xc54D9lBWy5ltfsjli0YkGPAsxZY9zldcdADjDMU1U58Nh0P8O77usal6N6Z6/b/vz9G1ljQ1sLmEpzTdKArPCIc2irriHeE+LRNfEz4S9hlyQOFrpSfq/KI4XecPxUY0Mgd21dOTbuFEC2sZIyc8KuzNZUta4zzqJu5kfnFB6oDMQUwiBAngIUGJdbIUGZOal8z+9vlrvnkK4tHkr1PGEEeajHh9opaka1JqSvSkfFnKKvffeZqpyYl6d3cA2p8t630YnLtQrVjW97FlVU/A8QSX+aa/IDlNf4peaWreQ+jZgvOrppbYg4tt6H/U40a8Jjlk2lMpeDuD7hj03kLnSj2rxjqnDxDdlCe6gf0DGJH9Pas/3QVn+hiI/rEAAAAJcEhZcwAACxEAAAsRAX9kX5EAAAWBSURBVFhHxZl/TFtVFMe/pZQOGMIA0W3iBgOloLIBzrkZJsuWmCwah/8sYW4my0QYc1NijM5o1MQ4/3B/CUb/0Bn+mTHzD4PjRxEUxEGmcWb8VsbPTTYYDBjQFlrPubTQ0va9+6qdJ3lp+t69537eOfeec+59OpAklpWvQkhICV0FsNvT4XCE8X0tYrPb8WBsLL7L34eoMPnukxYrjpprYe4fgEGvtxJDOzFU0PXJYHHRnC6x/NNwAqnQGY35WFiAY35eC9dSWwv1Ld+zB/kPpEr3H52dRVFNLRoGBxEeGir66fhXr4fDYjlHfwv4bjHD0Q1pxSsbWglu27q1eDpl08pHfv8PT0+jsLoGLdeuLcFxY2EgupxMxQx4iC0XqDiooz4kBCeys2GgXxnpnbiFF6urcenGDQ84j76LTC8woClQt7JCC73t3k3JeDIxUYYN7WNjOFJVjZ7xcf9wpMnJZGLARedLqfds5HA4EGkw4DhZT6fTqWr4dWREuHVwagqrnHNOpZNcK39K5sgNh0xp2JyQ4K/J0v3m4WFyaw3G5uZgpEUgKwFbb4GslxARgZItW1THqunrQ4m5DtNWq/Q8dSkNGJDDysGMDGyMjlYE/LanB6X1DZijuRoquYjcFQYEOE9BOZnADj/ysF84O1n4y8uXcbKxCdye4TiYuwvPWjXogAB5oMLNmYgP5xjvWzj4nu3sQkZ8HPQ67/DDcAzeTatZSTQDMtxD8fHYn5ampBc71q9H5XP5YBCOle4SQiueXf5mY6MIO0pW1AzIoeV4dpYIL0qitFJnCa60oQHfdHUrxkLWrwmQU9rO+xPxbKp8vl35ElwclJjNOH/liiqcZkB2DRkQH1xooUCrF65ZF7ka+1JTRLpTEy4OXqLi4Ee34kCtjyYLMlDj0BDqBwYI1AFek2W7d1OFpA739+3bOEKB+sLVq1KWc4FrAuTQwQUBXzM0j157NAf7KZOoCae2w1VV+H3kuiY41qv+6m6j302Zg4Un+d7kZJTm5Kix4c+JCRys/F7ASeZfD53SgGy9A+kmMUjqmjX4aGcuwlRyKocQhmsbHQ0ITtqCHMcYZteGDTDFxeLjvDzcExmpaL3fqHJ5nuD+IgsGYjmXcqk5yBE/JSZGWO7D3FyCjFOE44VUVGvGGK1apXioqMT5UAqQ499TSUlYTcFZDa62rx/HKM7dCqBy8QWsCsjWuy8qCgU0/9SksrcXL9fVYdY2r7ms8qdbEZDhWN7Zvl1AKsm57m68SmWVjaytlFuVdPh65ncVczKPNhpxelee6layor0dJ36oF+WUTEbxBeLvnpcFecXaFux4JiUFrz+2VSwMJfns0h94t7lZNNFL7EuUdPl65gXIC6IwMxPvPbFDtJ+g/XIMWdKXnL54EadaWxFK9R7n6WCIh4ut5KKta+/Fyce3iRru/eZfMDg56TWu69mpllYYggjHA3tY0E6ABaZ0Ebt4L8HVbgYVp+7Cm6W3m5rwObnWSFklOHZbHtEDkA5vkBwTLazXT5ZjN7u7jt3/xk+N+KqtTXPS93KD5A0PF/Mq7Lx5U1jlWFYWktx2bDM2G16pr8eZOwjH7+AZZsh9Pw8Ni3dzX5FTlBVKKACf7ehCxL/b60vabbmZ5xyk+yvDyjidBHBeNff3I8Lgteg1D6i1g9eId7mFFA4xXAVziX6nLed6Ea9Mcn1mRjzjovQoWU7L/kGrdWTaM+DSkSqX8nzIw3Bv0YkAn6m4Tj5llAWhzTwDdohjVxIG7KAqmE+hvu7s/F/hnEwdDHiGz4RdwoG4liwnc94XBIstq1xk+oIBy/jAms6EFw+w6YbaXiOYYGw5ZnEeopeLTEWfIYzOzxAHAv0M8Z9A63T8GaLN7TOE5R/LwhBxBS+RxAAAAABJRU5ErkJggg==",xJ="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAABbWlDQ1BpY2MAACiRdZG9S0JRGMZ/aqWU0VBDRIOBRYORFERj2eAiIWaQ1aI3PwI/LvcqIa1BS4PQELX0NfQf1Bq0FgRBEUQ0Nve1hNzeo4ISdS7nvj+ec56Xc54D9lBWy5ltfsjli0YkGPAsxZY9zldcdADjDMU1U58Nh0P8O77usal6N6Z6/b/vz9G1ljQ1sLmEpzTdKArPCIc2irriHeE+LRNfEz4S9hlyQOFrpSfq/KI4XecPxUY0Mgd21dOTbuFEC2sZIyc8KuzNZUta4zzqJu5kfnFB6oDMQUwiBAngIUGJdbIUGZOal8z+9vlrvnkK4tHkr1PGEEeajHh9opaka1JqSvSkfFnKKvffeZqpyYl6d3cA2p8t630YnLtQrVjW97FlVU/A8QSX+aa/IDlNf4peaWreQ+jZgvOrppbYg4tt6H/U40a8Jjlk2lMpeDuD7hj03kLnSj2rxjqnDxDdlCe6gf0DGJH9Pas/3QVn+hiI/rEAAAAJcEhZcwAACxEAAAsRAX9kX5EAAAUfSURBVFhHzZhdTFxFFMfPwsKypUCBlAS2XWyKfPSB0qZay6ql6NK1NE3TJjWxD/pgfCD6Uq2JMcZYY1RelKrVWmtTqTEmYuqTJiYWGwVpwkLLZwKWBhXS8lEEkd1l2fX8Z7lm6Z17996rLp5kumQ6d+Z3/3POmXPHRmyRaDSDf562ER2NEm3h33T0m7WfZ2Zof8uXNBcKUYqNZ0lgi5EIrXM46H2vl2rcGzE6xK2f2wVu79lstoCd4Zzo4OkOYUTiaTFKbic7/TS1sEAZdrt8QFxvaGmJCjIz6XSdl3YVFSn/A2Gqllt1NBo9ipkaAMfKCbMK6L95ky4ODZHDAFyQ4Yqzs+nDvXVUVVCwvLLqB4I1pPA/jytgVuF4F6iJ1VsIhxO+YIDHlObmUnP9Pj04hfYJO0NVqNhNdlwaHaVvb9xIqB5eYBsrdsa3VyhowCqwxYkdRmcm+BLUW2IV9SYCXLWriD6oq6NC9j2DZsBhEsx0cWiYOsbHyZGaqjkScLVuN8N5KTcDCcO46b10wll+DwbpHb9fN6X8yXAHS0ro7do9tDbdfPb6R4DNff00OD1NTslGICsgIB6rqKDG3Q8aSj0yRSwDjs/P09meHkrX2NoIJ+GGbVX0iscjW9dwn2XA091X6de5Oal6OCF8m+6iR8vLhcKccFVACCr4bQmnHL30ZuOH1U+rplvZgSNt3xctNL+4qOl/OE3CDCoz9EP5N3nrD5WW6gJaUrCps5OmAwGpegoQIldmgFvD8Aia/Zs3y4as6DMN2PbbGH02MIgCgxChKAoyJH4o2zZsfc5ycbAnVhwkBDS9xT+NjYm8B0CcqeN/zNNXw8MiUcugFAKlODjD5+/OwsKEYMoA04B3zny89Xtq7uvTjGaMB5wray195POJo86Mmd7i+MlPdXXT+d5e3RwHlTfl5NDHj/hoS36+GTYxFtWMYZvkWk+x77hAaLxyRVe5AMOV5+WJysUKnGlAnByIztHZWTp+qVX4oFbljFNk6/r19AnD3c25zqoZVhARiLJqYGqKnmttpV84SaelyB/HS+zkKvlCfb3RskqT33CQIDnX8/cG6rieiQmya8Ah9XiLi+mU92HTlYuM0nCQfDMyQvDBWa5gtOCg3AFOvk0P1VKWhcrFMiDA4H/prJoe3GE+tt7iE0JW3cgWN9Ind6K4J6MUpRNt7XSdt1gGh4McyqGsOsnK/ZtwwNDd4hneztfa2+nzwUFprgNckOGerKykV+/3SF/AiEp6YzQBv74+Qm90dFDf5CStSUtTzYEiKMSR/cz27fTirvs0043qQZMd0ig+19NLL1y+LBTBN8QMVy78lf/31DiHw9yev/ceOrZjh8klzQ1X+eDVW7fY59oE0MueanJzWgGMYoBDO8GV8n8NhzVVgJ/2D9AER+2RsjLxgd3NwEpCVioWFJpPba00J4XF0SofRLRmss+5s7PopR9+jJXrrOYS+1sa132NNbsFfLJMpWBZfp5Y+92uLhq+fVuohyrYydBII8mEA4cK0OPaIADDEb4pYDhEKk4FXJEd4O/bZJtqi6Ga4msoEBDFqII9Lley2cR6KkBcPsKwrYA7yxc9cfd3SYdUbXG+0ykCAkfWHZeLSYfDggBc8X2IG6hs/vJ6nVPJAxti/rgqZLFFw0gj1/DxrhhvbZQL0/iu1fz7GhQ8H69QKue8mo3iQvv/YOegoJNby2rKpLE2mGKXifyHg9uz3Lq4BTUeSEY31vZzOwYmbOFfRuevM6ot++oAAAAASUVORK5CYII=";function Hk(){const{showBackButton:e}=ae.useContext(Qo);return e}const wJ=re(iE,{shouldForwardProp:e=>!["open","drawerWidth","height"].includes(String(e))})(({theme:e,open:t,drawerWidth:n,height:r})=>({zIndex:e.zIndex.drawer+1,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),height:r,...t&&{marginLeft:n,width:`calc(100% - ${n}px)`,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})}})),SJ=re(iE,{shouldForwardProp:e=>!["open","drawerWidth","height"].includes(String(e))})(({height:e})=>({height:e})),CJ=({slots:e={},...t})=>{const n=En(),r=ef("(prefers-color-scheme: dark)"),o=n?wJ:SJ,{["Layout.AppBar.MenuButton"]:s,["Layout.SearchBar"]:l,["Layout.BackButton"]:u}=Tt("cms").getComponents(),{open:c}=Uy(),f=vJ(),p=Hk(),m=Ur("appBar.height"),g=Ur("drawer.width",280),{start:S=null,end:x=null}=e,b=Wk();return y.jsx(o,{open:c,height:m,drawerWidth:g,...t,children:y.jsxs(uQ,{children:[(n&&!c||!n&&!p)&&y.jsx(s,{}),!n&&p&&y.jsx(u,{}),n?null:S,y.jsx(bn,{width:"100%",variant:"h6",noWrap:!0,component:"div",children:!n&&b||_i("app.name",document.title)}),y.jsx(Eo,{sx:{flexGrow:1}}),y.jsxs(Eo,{display:"flex",alignItems:"center",children:[f&&y.jsx(l,{}),x||y.jsx(u9,{src:r?bJ:xJ,alt:"Luminix",variant:"square",sx:{width:40,height:40,marginLeft:f?2:0}})]})]})})};function EJ(e){return y.jsx(Wn,{component:_d,to:-1,edge:"start",color:"inherit","aria-label":"back",...e,children:y.jsx(by,{})})}const Vk=(e,t)=>({width:t,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden"}),Kk=e=>({transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:`calc(${e.spacing(9)} + 1px)`,[e.breakpoints.up("sm")]:{width:`calc(${e.spacing(10)} + 1px)`}}),RJ=re(eR,{shouldForwardProp:e=>!["open","width"].includes(String(e))})(({theme:e,open:t,width:n})=>({flexShrink:0,whiteSpace:"nowrap",boxSizing:"border-box",...t&&{...Vk(e,n),"& .MuiDrawer-paper":Vk(e,n)},...!t&&{...Kk(e),"& .MuiDrawer-paper":Kk(e)}})),kJ=re(eR,{shouldForwardProp:e=>e!=="width"})(()=>({})),PJ=re("div")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",padding:e.spacing(0,1),...e.mixins.toolbar})),TJ=e=>{const t=xr(),n=En(),{open:r,handleDrawerClose:o}=Uy(),s=n?RJ:kJ,l=Ur("drawer.width",280),u=Ur("appBar.height"),c=Tt("cms").getComponent("RecursiveList"),f=Tt("cms").getMenuItems();return y.jsxs(s,{variant:n?"permanent":"temporary",open:r,width:l,onClose:o,PaperProps:{sx:{width:l}},sx:{display:"flex",direction:"flex-column",flexWrap:"nowrap",height:"100%"},...e,children:[y.jsx(PJ,{style:{height:u},children:y.jsx(Wn,{onClick:o,children:t.direction==="ltr"?y.jsx(by,{}):y.jsx(xy,{})})}),y.jsx(Uc,{}),y.jsx(Eo,{sx:{flexGrow:1,overflowY:"auto",overflowX:"hidden"},children:y.jsx(c,{collapsed:!r&&n,items:f,onClick:()=>!n&&o()})})]})},OJ=()=>{const e=Wk(),t=Ur("breakpoint","md"),n=Hk(),{["Layout.BackButton"]:r}=Tt("cms").getComponents();return y.jsxs(io,{sx:{display:{xs:"none",[t]:"flex"},boxShadow:o=>o.shadows[3],py:2,px:3,borderRadius:0,alignItems:"center"},children:[n&&y.jsx(r,{}),y.jsx(bn,{variant:"h5",noWrap:!0,children:e})]})},Wy=ae.createContext({Model:null,anchorEl:null,setAnchorEl:()=>{},columnsFilter:[],setColumnsFilter:()=>{},searchParams:new URLSearchParams,setSearchParams:()=>{},handleApplyFilters:()=>{},clearSearchParams:()=>{},clearFilters:()=>{}}),il=ae.createContext({key:"",type:"",operator:"",value:"",isRelation:!1,setKey:()=>{},setType:()=>{},setOperator:()=>{},setValue:()=>{},setIsRelation:()=>{}}),$J=e=>{if(!Array.isArray(e))return e;let t;return qe.isEmpty(e)?t="":t=e[0],t},AJ=e=>{if(Array.isArray(e))return e;let t;return qe.isEmpty(e)?t=[]:t=[e,""],t},jJ=async(e,t,n)=>{const r=e.getSchema().relations[t],o=Jl().make(r.model),s=o.getSchema().primaryKey,l=[];for(const u of n){const{data:c}=await o.where(s,u).get();l.push(c.first())}return l};function _J(e,t){const n=Tt("filter"),{Model:r,setColumnsFilter:o}=ae.useContext(Wy),[s,l]=ae.useState(t.key),[u,c]=ae.useState(t.operator),[f,p]=ae.useState(t.type),[m,g]=ae.useState(t.value),[S,x]=ae.useState(t.nullable),[b,w]=ae.useState(t.is_relation),P=ae.useMemo(()=>n.getFilterableColumns(r),[r]),R=$=>()=>{o(T=>T.filter((_,M)=>M!==$))},O=async $=>{const T=$.target.value,_=P.find(G=>G.key===T),M=(_==null?void 0:_.type)??"text",F=(_==null?void 0:_.nullable)??!1,B=(_==null?void 0:_.is_relation)??!1;B?(c("relation"),g([])):b&&c("equals"),w(B),x(F),M!==f&&(c("equals"),g(()=>{if(["between","notBetween"].includes(u))return[];switch(n.getInputType(M)){case"number":return 0;case"boolean":return 0;default:return""}})),l(T),p(M)},A=async $=>{const T=$.target.value;u!==T&&g(_=>{switch(T){case"between":case"notBetween":return AJ(_);case"null":case"notNull":return"1";default:return $J(_)}}),c(T)};return ae.useEffect(()=>{o($=>$.map((_,M)=>e===M?{..._,key:s,operator:u,type:f,value:m,nullable:S,is_relation:b}:_))},[s,u,f,m,S,b]),{columns:P,key:s,setKey:l,operator:u,setOperator:c,type:f,setType:p,value:m,setValue:g,nullable:S,setNullable:x,isRelation:b,setIsRelation:w,handleKey:O,handleOperator:A,handleRemoveColumn:R}}const Gk=async(e,t,n)=>{const r=e.getSchema().relations[t].model,{data:o}=await Jl().make(r).get(),s=o.all().filter(f=>!n.find(p=>p.getKey()===f.getKey())),l=s.length,u=n.length,c=15;return l+u>c?tr([...n,...s.slice(0,c-u)]):tr([...n,...s])},IJ=async(e,t,n="",r)=>{const o=e.getSchema().relations[t],s=Jl().make(o.model),l=s.getSchema().primaryKey,{data:u}=await s.searchBy(n).get();return tr([...r,...u]).unique(l)},MJ=()=>{const e=En(),t=xi(),{key:n,value:r,setValue:o}=ae.useContext(il),[s,l]=ae.useState(!1),[u,c]=ae.useState(""),[f,p]=ae.useState(tr([])),[m,g]=ae.useState([]),S=ae.useMemo(()=>s&&f.count()===0,[s,f]),x=async(b,w)=>{c(w),qe.isEmpty(w)||p(await IJ(t,n,w,tr(m)))};return ae.useEffect(()=>{r.length>0&&(async()=>g(await jJ(t,n,r)))()},[]),ae.useEffect(()=>{let b=!0;if(S)return(async()=>b&&p(await Gk(t,n,m)))(),()=>{b=!1}},[S]),ae.useEffect(()=>{o(m.map(b=>b.getKey())),qe.isEmpty(u)?(async()=>p(await Gk(t,n,m)))():p(tr([]))},[m]),y.jsx(t9,{sx:{width:e?377:"100%"},open:s,onOpen:()=>{l(!0)},onClose:()=>{l(!1)},value:m,onChange:(b,w)=>{g(w)},inputValue:u,onInputChange:x,options:f.all()||[],getOptionLabel:b=>b.getLabel(),isOptionEqualToValue:(b,w)=>b.getKey()===w.getKey(),filterOptions:b=>b,renderInput:b=>y.jsx(NJ,{params:b,loading:S}),size:"small",loading:S,disableCloseOnSelect:!0,autoHighlight:!0,multiple:!0})},NJ=({params:e,loading:t})=>{const{t:n}=Vn();return y.jsx(Xc,{...e,label:n("Value"),InputProps:{...e.InputProps,endAdornment:y.jsxs(ae.Fragment,{children:[t?y.jsx(xH,{color:"inherit",size:20}):null,e.InputProps.endAdornment]})}})},Hy=({index:e=null})=>{const{t}=Vn(),n=En(),r=Tt("filter"),{type:o,value:s,setValue:l}=ae.useContext(il),c=r.getInputType(o)==="datetime-local"?230:167.5,f=e!==null?`${t("Date")} ${e+1}`:`${t("Date")}`,p=ae.useMemo(()=>e!==null?s[e]:s,[s]),m=g=>{l(typeof e=="number"?S=>{const x=S;return x[e]=g.target.value,[...x]}:g.target.value)};return y.jsx(Xc,{type:r.getInputType(o),label:f,value:p||new Date,onChange:m,size:"small",sx:{width:n?c:"100%"}})},LJ=()=>{const e=En(),{value:t,setValue:n}=ae.useContext(il),r=o=>{const s=o.target.checked;n(s?1:0)};return y.jsxs(y.Fragment,{children:[y.jsx(Sq,{checked:t,onChange:r,inputProps:{"aria-label":"filter-controlled"},size:"small"}),e&&y.jsx(Eo,{width:325})]})},Vy=({index:e=null})=>{const{t}=Vn(),n=En(),r=Tt("filter"),{type:o,value:s,setValue:l}=ae.useContext(il),u=e!==null?`${t("Value")} ${e+1}`:`${t("Value")}`,c=ae.useMemo(()=>e!==null?s[e]:s,[s]),f=p=>{l(typeof e=="number"?m=>{const g=m;return g[e]=p.target.value,[...g]}:p.target.value)};return y.jsx(Xc,{type:r.getInputType(o),label:u,value:c||"",onChange:f,sx:{width:n?167.5:"100%"},size:"small"})},Ky=()=>{const e=En(),t=Tt("filter"),{type:n,operator:r}=ae.useContext(il),o=ae.useMemo(()=>["between","notBetween"].includes(r),[r]);if(["null","notNull"].includes(r))return e?y.jsx(Eo,{width:230}):null;if(o)switch(t.getInputType(n)){case"date":case"datetime-local":return y.jsxs(y.Fragment,{children:[y.jsx(Hy,{index:0}),y.jsx(Hy,{index:1})]});default:return y.jsxs(y.Fragment,{children:[y.jsx(Vy,{index:0}),y.jsx(Vy,{index:1})]})}switch(t.getInputType(n)){case"date":case"datetime-local":return y.jsx(Hy,{});case"autocomplete":return y.jsx(MJ,{});case"boolean":return y.jsx(LJ,{});default:return y.jsx(Vy,{})}},DJ=({index:e,column:t})=>{const{t:n}=Vn(),r=En(),o=Ur("breakpoint","md"),s=Tt("filter"),l=ae.useMemo(()=>s.getMatchingOperators(t),[t]),{columns:u,key:c,setKey:f,operator:p,setOperator:m,type:g,setType:S,value:x,setValue:b,isRelation:w,setIsRelation:P,handleKey:R,handleOperator:O,handleRemoveColumn:A}=_J(e,t),$=["boolean"].includes(s.getInputType(g));return y.jsx(il.Provider,{value:{key:c,setKey:f,type:g,setType:S,operator:p,setOperator:m,value:x,setValue:b,isRelation:w,setIsRelation:P},children:y.jsxs(vi,{container:!0,display:"flex",flexDirection:{xs:"column",[o]:"row"},flexWrap:{xs:"wrap",[o]:"nowrap"},alignItems:"center",justifyContent:"space-between",gap:.5,children:[y.jsxs(sr,{display:"flex",flexDirection:{xs:"column",[o]:"row"},alignItems:"center",width:"100%",my:1,gap:1.5,children:[y.jsxs(sr,{direction:"row",alignItems:"center",...!r&&{width:"100%"},gap:1,children:[y.jsxs(Tf,{sx:{width:r?195:`calc(100% - ${$?88:44}px)`},children:[y.jsx(Of,{id:"filter-column-select-label",size:"small",children:n("Column")}),y.jsx(tl,{labelId:"filter-column-select-label",id:"filter-column-select",value:c,label:n("Column"),onChange:R,size:"small",children:u.map(({key:T,label:_})=>y.jsx(Ki,{value:T,children:n(_)},`column_${T}_option`))})]}),!r&&y.jsxs(sr,{direction:"row",alignItems:"center",children:[$&&y.jsx(Ky,{}),y.jsx(Wn,{color:"error",onClick:A(e),children:y.jsx(nk,{})})]})]}),!w&&!$&&y.jsxs(Tf,{sx:{width:r?147.5:"100%"},children:[y.jsx(Of,{id:"filter-operator-select-label",size:"small",children:n("Operator")}),y.jsx(tl,{labelId:"filter-operator-select-label",id:"filter-operator-select",value:p,label:n("Operator"),onChange:O,size:"small",children:l.map(({key:T,label:_})=>y.jsx(Ki,{value:T,children:n(_)},`operator_${T}_option`))})]}),r?y.jsx(Ky,{}):!$&&y.jsx(Ky,{})]},`filter_${c}_${e}`),r&&y.jsx(Wn,{color:"error",onClick:A(e),children:y.jsx(nk,{})})]})})},qk=({dialog:e=!1})=>{const{t}=Vn(),n=En(),r=Ur("breakpoint","md"),o=Tt("filter"),{columnsFilter:s,setColumnsFilter:l,handleApplyFilters:u,clearFilters:c}=ae.useContext(Wy),f=()=>{l(p=>[...p,{key:"",operator:"equals",type:"text",value:"",appended:!1,nullable:!1,is_relation:!1}])};return y.jsxs(Eo,{sx:{minWidth:{[r]:567.5},p:e?0:2},children:[y.jsx(sr,{children:s.map((p,m,g)=>{const S=m==g.length-1;return y.jsxs(y.Fragment,{children:[y.jsx(DJ,{index:m,column:p},`row_${p.key}`),!n&&y.jsx(Uc,{sx:{mt:S?.625:1.25,mb:S?.75:1.5,...S&&{border:"none"}}})]})})}),y.jsx(sr,{direction:"row",alignItems:"center",justifyContent:"center",children:n?y.jsx(ir,{variant:"outlined",onClick:f,fullWidth:!0,sx:{mt:.75},children:`+ ${t("Add Column")}`}):y.jsx(Wn,{onClick:f,color:"primary",sx:{fontSize:32},children:y.jsx(mY,{fontSize:"inherit"})})}),n&&y.jsxs(sr,{direction:"row",justifyContent:"space-between",mt:2,children:[y.jsx(ir,{onClick:c,children:t("Clear")}),y.jsx(ir,{variant:"contained",onClick:u,disabled:o.checkIfCanApplyFilters(s),children:t("Apply")})]})]})},FJ=(e,t)=>{const n=Tt("filter"),r=$s.toObject(t),o=Object.keys(r).reduce((l,u)=>(["where"].includes(u)&&(l[u]=r[u]),l),{}),s=[];return Object.entries(o).forEach(([,l])=>{Object.entries(l).forEach(([u,c])=>{e.filter(f=>{const p=(()=>{const g=_e.camel(u.split(_e.camel(f.key))[1]);return qe.isEmpty(g)?"equals":g})();if(!n.getOperators().includes(p))return!1;const m=_e.snake(u.split(_e.ucfirst(p))[0]);return f.key===m}).forEach(f=>{let p=_e.camel(u.split(_e.camel(f.key))[1]);(typeof p>"u"||p===null||qe.isEmpty(p))&&(p="equals");let m=c;switch(n.getInputType(f.type)){case"text":{Array.isArray(c)&&(m=c.join(","));break}case"datetime-local":{Array.isArray(c)?m=c.map(g=>am.toDateTimeLocal(g)):m=am.toDateTimeLocal(c);break}case"boolean":{m=Number(c);break}}s.push({key:f.key,operator:p,type:f.type,value:m,nullable:f.nullable,is_relation:f.is_relation})})})}),s},BJ=e=>{const t=Tt("filter"),n=new URLSearchParams;return e.forEach(r=>{const{key:o,operator:s,value:l,type:u}=r;let c=_e.ucfirst(s);if(["equals"].includes(_e.camel(s))&&(c=""),Array.isArray(l))l.forEach((f,p)=>{let m=f;switch(t.getInputType(u)){case"datetime-local":{m=new Date(f).toISOString();break}}n.set(`where[${_e.camel(o)}${c}][${p}]`,m)});else{let f=l;switch(t.getInputType(u)){case"datetime-local":{f=new Date(l).toISOString();break}}n.set(`where[${_e.camel(o)}${c}]`,f)}}),n},zJ=()=>{const{t:e}=Vn(),t=Tt("filter"),n=En(),r=xi(),[o,s]=eo(),l=ae.useMemo(()=>"where"in $s.toObject(o),[o]),[u,c]=ae.useState(null),[f,p]=ae.useState([]),m=!!u,g=ae.useMemo(()=>t.getFilterableColumns(r),[r]),S=R=>{c(R.currentTarget)},x=()=>{c(null),setTimeout(()=>{p([])},300)},b=()=>{w();const R=BJ(f);s(R,{replace:!0}),x()},w=()=>{s(R=>{const O=new URLSearchParams(R);for(const[A]of R.entries())A.startsWith("where[")&&O.delete(A);return O})},P=()=>{w(),x(),setTimeout(()=>{p([])},300)};return ae.useEffect(()=>{const R=FJ(g,o);p(R)},[g,o,u]),y.jsxs(Wy.Provider,{value:{Model:r,anchorEl:u,setAnchorEl:c,columnsFilter:f,setColumnsFilter:p,searchParams:o,setSearchParams:s,handleApplyFilters:b,clearSearchParams:w,clearFilters:P},children:[y.jsx(Wn,{"aria-describedby":"model-filter-popover-button","aria-label":"filter",onClick:S,children:y.jsx(Ug,{color:"secondary",variant:"dot",invisible:!l,children:y.jsx(CY,{})})}),n?y.jsx(yR,{id:"model-filter-popover",open:m,anchorEl:u,onClose:x,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:y.jsx(qk,{})}):y.jsxs(Qg,{open:m,onClose:x,fullWidth:!0,children:[y.jsxs(Jg,{children:[e("Filter :model",{model:r.plural()}),y.jsx(Wn,{onClick:x,sx:{position:"absolute",right:8,top:8},children:y.jsx(wy,{})})]}),y.jsx(Xg,{dividers:!0,children:y.jsx(qk,{dialog:!0})}),y.jsxs(Yg,{children:[y.jsx(ir,{onClick:P,sx:{mr:"auto"},children:e("Clear")}),y.jsx(ir,{variant:"contained",onClick:b,disabled:t.checkIfCanApplyFilters(f),children:e("Apply")})]})]})]})},Gy=ae.createContext({columns:[],columnCount:0,selected:tr([]),massActions:[],items:tr([]),error:new Error("Trying to access TableContext outside of TableProvider"),Model:null});function qy(){const{selected:e,items:t}=ae.useContext(Gy),n=Nm(e),r=()=>{e.splice(0,e.count())},o=f=>{const p=e.search(f);if(p!==!1){e.pull(p);return}e.push(f)},s=()=>{if(t){if(e.count()===t.count()){r();return}e.splice(0,e.count(),...t)}},l=f=>n.contains(f),u=t?n.count()>0&&n.count()<t.count():!1,c=t&&t.count()?n.count()===t.count():!1;return{selected:n,indeterminate:u,allSelected:c,isSelected:l,handleClearSelected:r,handleSelectToggle:o,handleSelectToggleAll:s}}function Xi(){return ae.useContext(Gy)}function UJ(e){const[t,n]=ae.useState(""),{selected:r}=qy(),{t:o}=Vn(),s=zy(),{massActions:l}=Xi(),u=f=>{n(f.target.value)};if(ae.useEffect(()=>{r.isEmpty()&&n("")},[r]),l.length===0)return null;const c=r.isEmpty()?o("Select items to apply"):o("Select action");return y.jsxs(sr,{direction:"row",alignItems:"center",...e,children:[y.jsxs(Tf,{sx:{m:1,minWidth:200},size:"small",children:[y.jsx(Of,{id:"mass-actions-select-label",children:c}),y.jsxs(tl,{labelId:"mass-actions-select-label",id:"mass-actions-select",value:t,label:c,onChange:u,disabled:r.isEmpty(),children:[y.jsx(Ki,{value:"",children:y.jsx("em",{children:o("None")})}),l.map(f=>y.jsx(Ki,{value:f.key,children:f.label},f.key))]})]}),y.jsx(ir,{size:"small",disabled:r.isEmpty()||!t,onClick:()=>{var f;(f=l.find(p=>p.key===t))==null||f.callback({selected:r,...s})},children:o("Apply")})]})}const WJ=()=>{const{handleDrawerOpen:e}=Uy();return y.jsx(Wn,{color:"inherit","aria-label":"open drawer",edge:"start",onClick:e,sx:{mr:{md:2}},children:y.jsx(kY,{})})},Kf=ae.forwardRef(({to:e,children:t,...n},r)=>y.jsx(iy,{component:_d,to:e,ref:r,sx:{textDecoration:"none"},...n,children:t}));Kf.displayName="Link";const HJ=({label:e})=>{if(isNaN(e)||isNaN(parseFloat(e))){const t={"« Previous":y.jsx(by,{}),"Next »":y.jsx(xy,{}),"Last »":y.jsx(RY,{}),"« First":y.jsx(EY,{})};return y.jsx(y.Fragment,{children:t[e]||e})}return y.jsx(y.Fragment,{children:e})},VJ=({variant:e="default",...t})=>{const n=e==="default",[r,o]=eo(),[s,l]=ae.useState(r.get("page")||"1"),{links:u,meta:{current_page:c=1,links:f=[],last_page:p=1}={}}=cc(),{first:m,prev:g,next:S,last:x}=u||{},b=P=>{P.preventDefault(),o(R=>(R.set("page",s||"1"),R))},w=[{url:c>1?m:null,label:"« First",active:!1},{url:g,label:"« Previous",active:!1},{element:y.jsx(g4,{onSubmit:b,preventScrollReset:!0,children:y.jsx(Xc,{size:"small",type:"number",variant:"standard",sx:{width:56,"& input":{textAlign:"center","&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}},value:s,error:Number(s)>p,helperText:Number(s)>p?`Max ${p}`:void 0,onChange:P=>{!Number.isNaN(Number(P.target.value))&&Number(P.target.value)>0&&l(P.target.value),P.target.value===""&&l("")},onBlur:P=>{o(R=>(R.set("page",P.target.value||"1"),R),{replace:!0})},disabled:p===1,"aria-label":"Page number"})},"page")},{url:S,label:"Next »",active:!1},{url:c<p?x:null,label:"Last »",active:!1}];return ae.useEffect(()=>{c&&l(String(c))},[c]),y.jsx(sr,{spacing:1,direction:"row",justifyContent:"center",alignItems:"center",...t,children:(n?f:w).map((P,R)=>P.element||y.jsx(ir,{variant:P.active?"contained":"text",color:"primary",size:"small",sx:{minWidth:"unset",width:32,height:32,borderRadius:"50%"},disabled:!P.url,component:Kf,to:P.url,children:y.jsx(HJ,{label:P.label})},R))})},KJ=()=>{const{t:e}=Vn(),{meta:{total:t=0,from:n=0,to:r=0}={}}=cc();return y.jsx(bn,{variant:"caption",noWrap:!0,children:e(":from–:to of :total",{from:n,to:r,total:t})})},GJ=()=>{const{t:e}=Vn(),{meta:{per_page:t=15}={}}=cc(),[,n]=eo(),r=s=>{n(l=>{const u=new URLSearchParams(l);return u.set("per_page",s.target.value.toString()),u})},o=Lm(Tt("cms"),"perPageOptions",[15,30,75,150]);return y.jsxs(sr,{direction:"row",alignItems:"center",gap:1,children:[y.jsxs(bn,{variant:"caption",children:[e("Rows per page"),":"]}),y.jsx(tl,{value:t,onChange:r,size:"small",variant:"standard",sx:{fontSize:s=>s.typography.caption.fontSize,"& .MuiSelect-select":{py:.5}},children:o.map(s=>y.jsx(Ki,{value:s,sx:{fontSize:l=>l.typography.caption.fontSize,minHeight:"unset",lineHeight:1,py:1.5},children:s},s))})]})};function qJ(e,t){const[n,r]=ae.useState(!1);return ae.useEffect(()=>{const o=new Set,s=u=>{o.add(u.key),e.every(c=>o.has(c))&&(r(!0),t&&t())},l=u=>{o.delete(u.key),e.every(c=>!o.has(c))&&r(!1)};return window.addEventListener("keydown",s),window.addEventListener("keyup",l),()=>{window.removeEventListener("keydown",s),window.removeEventListener("keyup",l)}},[e,t]),n}const QJ=re(Xc)(({theme:e})=>({"& .MuiInputBase-root":{backgroundColor:e.palette.background.paper}})),YJ=lm.throttle((e,t)=>{t(n=>{const r=new URLSearchParams(n);return e?r.set("q",e):r.delete("q"),r})},500),XJ=()=>{const[e,t]=eo(),n=e.get("q")||"",[r,o]=ae.useState(n),[s,l]=ae.useState(!1),u=ae.useRef(null),{t:c}=Vn();ae.useEffect(()=>{o(n)},[n]);const f=g=>{o(g.target.value),YJ(g.target.value,t)},p=En();qJ(["Control","/"],()=>{u.current.focus()});const m=p?300:"calc(100vw - 58px)";return y.jsxs(y.Fragment,{children:[!p&&!s&&y.jsx(Wn,{color:"inherit",onClick:()=>l(!0),children:y.jsx(Ug,{variant:"dot",color:"secondary",invisible:!n,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:y.jsx(ok,{})})}),y.jsx(Eg,{orientation:"horizontal",in:p||s,addEndListener:()=>{var g;!p&&s&&((g=u.current)==null||g.focus())},unmountOnExit:!1,children:y.jsx(QJ,{placeholder:p?`(Ctrl + /) ${c("Search...")}`:`${c("Search...")}`,value:r,InputProps:{endAdornment:y.jsx(ok,{})},inputProps:{ref:u},onChange:f,onBlur:()=>l(!1),sx:{width:m},size:"small"})})]})},JJ=({children:e,...t})=>y.jsx(bi,{sx:{width:"1px"},padding:"checkbox",...t,children:e}),ZJ=()=>{const{t:e}=Vn(),[t,n]=eo(),{columns:r,Model:o}=Xi(),s=t.get("order_by")||"",[l="",u=""]=s.split(":"),[c,f]=ae.useState(l),[p,m]=ae.useState(u),[g,S]=ae.useState(!1),x=()=>{S(!0)},b=()=>{S(!1),f(l),m(u)},w=()=>{if(!c||!p){S(!1);return}n(R=>{const O=new URLSearchParams(R);return O.set("order_by",`${c}:${p}`),O}),S(!1)},P=()=>{n(R=>{const O=new URLSearchParams(R);return O.delete("order_by"),O}),S(!1),f(""),m("")};return y.jsxs(y.Fragment,{children:[y.jsx(Wn,{onClick:x,children:y.jsx(Ug,{color:"secondary",variant:"dot",invisible:!l,children:y.jsx(TY,{})})}),y.jsxs(Qg,{open:g,onClose:b,fullWidth:!0,children:[y.jsxs(Jg,{children:[e("Sort :model",{model:o.plural()}),y.jsx(Wn,{onClick:b,sx:{position:"absolute",right:8,top:8},children:y.jsx(wy,{})})]}),y.jsxs(Xg,{dividers:!0,children:[y.jsxs(kR,{value:c,onChange:R=>{f(R.target.value),p||m("asc")},children:[y.jsx(bn,{variant:"caption",children:e("Column")}),y.jsx(Uc,{}),tr(r).whereStrict("sortable","!=",!1).map(({key:R,label:O})=>y.jsx(ty,{value:R,control:y.jsx(dy,{}),label:O},R))]}),y.jsx(bn,{variant:"caption",children:e("Direction")}),y.jsx(Uc,{}),y.jsxs(kR,{value:p,onChange:R=>m(R.target.value),children:[y.jsx(ty,{value:"asc",control:y.jsx(dy,{}),label:y.jsxs(y.Fragment,{children:[e("Ascending"),y.jsx(vY,{})]})}),y.jsx(ty,{value:"desc",control:y.jsx(dy,{}),label:y.jsxs(y.Fragment,{children:[e("Descending"),y.jsx(gY,{})]})})]})]}),y.jsxs(Yg,{children:[y.jsx(ir,{onClick:P,sx:{mr:"auto"},children:e("Clear")}),y.jsx(ir,{onClick:w,variant:"contained",children:e("Apply")})]})]})]})},eZ=({items:e,loading:t,children:n,error:r})=>{const o=xi(),s=ae.useMemo(()=>tr([]),[o,e]),[l]=eo(),u=l.get("tab")??"all",c=ae.useMemo(()=>[{key:o.getSchema().labeledBy,label:_e.human(o.getSchema().labeledBy)}],[o]),f=En(),p=ae.useMemo(()=>Tt("cms").getMassActions(o,u),[o,u]),m=Lm(Tt("cms"),`model${_e.studly(o.getSchemaName())}Columns`,c),S=(f?m.length:1)+(p.length>0?2:1),x={columns:m,columnCount:S,massActions:p,items:e,loading:t,selected:s,error:r,Model:o};return y.jsx(Gy.Provider,{value:x,children:n})},tZ=({items:e,loading:t,error:n,children:r,...o})=>y.jsx(eZ,{items:e,loading:t,error:n,children:y.jsx(Gq,{component:io,children:y.jsx(Aq,{...o,children:r})})}),nZ=({children:e,...t})=>{const{massActions:n,columns:r,items:o}=Xi(),s=En(),[l,u]=eo(),{indeterminate:c,allSelected:f,handleSelectToggleAll:p}=qy(),{["ModelIndex.Table.ShrinkedCell"]:m}=Tt("cms").getComponents(),g=l.get("order_by")||"",[S,x]=g.split(":"),b=w=>()=>{u(S===w?P=>{const R=new URLSearchParams(P);return x?x==="desc"?(R.delete("order_by"),R):(R.set("order_by",`${w}:desc`),R):(R.set("order_by",`${w}:asc`),R)}:P=>{const R=new URLSearchParams(P);return R.set("order_by",`${w}:asc`),R})};return y.jsxs(iQ,{...t,children:[e,s&&y.jsxs(nl,{children:[n.length>0&&y.jsx(m,{children:y.jsx(Vg,{indeterminate:c,checked:f,onChange:p,disabled:o&&o.count()===0})}),r.map(({key:w,label:P,sortable:R=!0,...O})=>y.jsx(bi,{sortDirection:R&&S===w&&x||!1,...O,children:y.jsxs(CQ,{active:R&&S===w,direction:x,onClick:b(w),children:[P,R&&S===w?y.jsx(Eo,{component:"span",sx:{visibility:"hidden",display:"none"},children:x==="desc"?"sorted descending":"sorted ascending"}):null]})},w)),y.jsx(m,{})]})]})},rZ=()=>{const{massActions:e,columns:t}=Xi(),n=En(),{["ModelIndex.Table.ShrinkedCell"]:r}=Tt("cms").getComponents(),[o]=eo(),s=parseInt(o.get("per_page")||"15");return y.jsx(y.Fragment,{children:Array.from({length:s}).map((l,u)=>y.jsxs(nl,{children:[e.length>0&&y.jsx(r,{children:y.jsx(Vg,{})}),n&&t.map(({key:c,label:f,sortable:p,...m},g)=>y.jsx(bi,{...m,children:y.jsx(_R,{variant:"text",height:24})},g)),!n&&y.jsx(bi,{sx:{px:0},children:Array.from({length:t.length}).map((c,f)=>y.jsx(_R,{variant:"text",width:"100%",height:24},f))}),y.jsx(r,{children:y.jsx(Wn,{children:y.jsx(rk,{})})})]},u))})},oZ=({children:e,...t})=>{const n=xi(),{t:r}=Vn(),{items:o,loading:s,columnCount:l}=Xi(),{["ModelIndex.StaticActions"]:u}=Tt("cms").getComponents(),c=ae.isValidElement(e)?e:(o||tr([])).map(e);return y.jsxs(Lq,{...t,children:[s&&y.jsx(rZ,{}),c,o&&!o.count()&&y.jsx(nl,{children:y.jsxs(bi,{colSpan:l,sx:{textAlign:"center",py:10},children:[y.jsx(bn,{children:r("No :model found",{model:n.plural().toLocaleLowerCase()})}),y.jsx("br",{}),y.jsx(u,{})]})})]})};class iZ{getFacadeAccessor(){return"cms"}}const lr=Fo(iZ,Zr),sl=re(bn)(()=>({whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","& label":{fontWeight:"bold"}})),sZ=({content:e})=>["string","number"].includes(typeof e)?y.jsx(sl,{children:e}):e instanceof Date?y.jsx(sl,{children:e.toLocaleString(_i("app.locale","en"))}):typeof e=="object"&&!ae.isValidElement(e)?y.jsx(sl,{children:JSON.stringify(e)}):y.jsx(ae.Fragment,{children:e}),aZ=({label:e,content:t})=>["string","number"].includes(typeof t)?y.jsxs(sl,{children:[y.jsxs("label",{children:[e,":"]})," ",t]}):t instanceof Date?y.jsxs(sl,{children:[y.jsxs("label",{children:[e,":"]}),t.toLocaleString(_i("app.locale","en"))]}):typeof t=="object"&&!ae.isValidElement(t)?y.jsxs(sl,{children:[y.jsxs("label",{children:[e,":"]})," ",JSON.stringify(t)]}):y.jsxs(ae.Fragment,{children:[y.jsx(bn,{sx:{display:"inline"},children:y.jsxs("b",{children:[e,":"]})})," ",t]}),lZ=({item:e,...t})=>{const n=En(),r=sc(),o=xi(),{massActions:s,columns:l}=Xi(),u=ae.useMemo(()=>l.map(g=>({...g,content:lr[`model${_e.studly(e.getType())}Get${_e.studly(g.key)}Content`](e.getAttribute(g.key),e)})),[l,e]),{["ModelIndex.Table.ShrinkedCell"]:c,["ModelIndex.InstanceActions"]:f}=lr.getComponents(),{isSelected:p,handleSelectToggle:m}=qy();return y.jsxs(nl,{...t,sx:{cursor:e.deletedAt?"default":"pointer"},selected:p(e),hover:!e.deletedAt,children:[s.length>0&&y.jsx(c,{children:y.jsx(Vg,{checked:p(e),onChange:()=>m(e)})}),n&&u.map(({key:g,label:S,sortable:x,content:b,...w})=>y.jsx(bi,{...w,onClick:()=>{e.deletedAt||r(`/${_e.kebab(o.plural())}/${e.getKey()}`)},children:y.jsx(sZ,{label:S,content:b})},g)),!n&&y.jsx(bi,{sx:{maxWidth:0,px:0},onClick:()=>{e.deletedAt||r(`/${_e.kebab(o.plural())}/${e.getKey()}`)},children:u.map(({key:g,...S})=>y.jsx(aZ,{...S},g))}),y.jsx(c,{children:y.jsx(f,{item:e})})]})},cZ=({children:e,...t})=>{const{columnCount:n}=Xi(),r=En(),o=Ur("breakpoint","md"),{["ModelIndex.Pagination"]:s,["ModelIndex.PaginationDetails"]:l,["ModelIndex.PerPageSwitch"]:u}=Tt("cms").getComponents();return y.jsxs(Zq,{...t,children:[y.jsx(nl,{children:y.jsx(bi,{colSpan:n,children:y.jsxs(sr,{direction:r?"row":"column-reverse",alignItems:"center",justifyContent:"space-between",gap:3,children:[y.jsxs(sr,{direction:r?"row":"column-reverse",alignItems:r?"center":"flex-start",justifyContent:"flex-start",width:{xs:"100%",[o]:"auto"},gap:r?2:0,children:[y.jsx(u,{}),y.jsx(l,{})]}),y.jsx(s,{variant:r?"default":"compact",justifyContent:{xs:"center",[o]:"flex-end"}})]})})}),e]})},uZ=()=>{const{columnCount:e}=Xi(),{["ModelIndex.Filter"]:t,["ModelIndex.MassActions"]:n,["ModelIndex.Sort"]:r,["ModelIndex.Pagination"]:o}=Tt("cms").getComponents(),s=En(),l=Ur("breakpoint","md");return y.jsx(nl,{children:y.jsx(bi,{colSpan:e,sx:{p:1},children:y.jsxs(sr,{direction:{xs:"column",[l]:"row"},justifyContent:"space-between",spacing:1,children:[y.jsxs(sr,{direction:"row",alignItems:"center",width:{[l]:"100%"},children:[y.jsx(t,{}),!s&&y.jsx(r,{})]}),s&&y.jsx(sr,{direction:"row",alignItems:"center",justifyContent:{xs:"center",[l]:"flex-end"},rowGap:2,children:y.jsx(o,{variant:"compact",justifyContent:"end"})}),y.jsx(n,{})]})})})};function dZ(){const e=xi(),{t}=Vn(),[n,r]=eo(),o=n.get("tab")||"all",s=(c,f)=>{r(()=>{const p=new URLSearchParams;return f!=="all"&&p.set("tab",f),p})},l=ae.useMemo(()=>e.getSchema().softDeletes?[{label:t("Trashed"),value:"trashed"}]:[],[e,t]),u=Lm(Tt("cms"),`model${_e.studly(e.getSchemaName())}Tabs`,l);return u.length===0?null:y.jsx(Eo,{sx:{maxWidth:{xs:320,sm:480},bgcolor:"background.paper"},children:y.jsxs(WQ,{value:o,onChange:s,variant:"scrollable",scrollButtons:"auto","aria-label":`tabs for ${e.singular()}`,allowScrollButtonsMobile:!0,children:[y.jsx(LR,{label:t("All"),value:"all"}),u.map(c=>y.jsx(LR,{label:c.label,value:c.value},c.value))]})})}function fZ(e){const{parts:t,...n}=e;return y.jsxs(D9,{"aria-label":"breadcrumb",...n,children:[y.jsx(iy,{underline:"hover",color:"inherit",to:"/",component:_d,children:_i("app.name","Laravel")}),t==null?void 0:t.map(({name:r,href:o},s)=>o?y.jsx(iy,{underline:"hover",color:"inherit",to:o,component:_d,children:r},s):y.jsx(bn,{color:"text.primary",children:r},s))]})}const Qk=({collapsed:e=!1,items:t,onClick:n,...r})=>{const[o,s]=ae.useState(null),[l,u]=ae.useState(null),[c,f]=ae.useState({}),p=Ur("drawer.width",280),m=Tt("cms").getComponent("RecursiveMenu");return y.jsxs(iR,{...r,children:[t.map(g=>{const{text:S,icon:x,element:b=null,key:w,children:P,to:R,onClick:O}=g;return b||y.jsxs(JV,{disablePadding:!0,sx:{display:"block"},children:[y.jsxs(zV,{sx:{minHeight:48,justifyContent:e?"center":"initial",px:2.5},onClick:A=>{if(O&&O(A),P){if(e){u(()=>(s(A.currentTarget),P));return}f({...c,[w]:!c[w]});return}n&&n(A)},...R?{to:R,component:Kf}:{},children:[y.jsxs(lR,{sx:{minWidth:0,mr:e?"unset":3,justifyContent:"center",flexDirection:"column",alignItems:"center",color:"inherit"},children:[x,e&&y.jsx(bn,{fontSize:10,sx:{mt:.5},children:S})]}),!e&&y.jsx(cR,{primary:S}),!e&&P&&(c[w]?y.jsx(wY,{}):y.jsx(SY,{}))]}),P&&!e&&y.jsx(Eg,{in:c[w],timeout:"auto",unmountOnExit:!0,children:y.jsx(Qk,{items:P,onClick:n,collapsed:e,sx:{pl:e?0:2,pb:0}})})]},w)}),e&&y.jsx(m,{items:l||[],onClick:n,collapsed:!1,sx:{pl:e?0:2,pb:0},anchorEl:o,anchorOrigin:{vertical:"top",horizontal:"right"},onClose:()=>{s(null),u(null)},open:!!o,slotProps:{paper:{sx:{minWidth:p}}}})]})},Yk=({collapsed:e=!1,items:t,onClick:n,...r})=>{const[o,s]=ae.useState({}),l=Ur("drawer.width",280);return y.jsxs(y.Fragment,{children:[y.jsx(ly,{...r,children:t.map(u=>{const{text:c,icon:f,element:p=null,key:m,children:g,onClick:S,to:x}=u;return p||y.jsxs(Ki,{onClick:b=>{if(S&&S(b),g){s({...o,[m]:o[m]?null:b.currentTarget});return}n&&n(b)},...x?{component:Kf,to:x}:{},children:[f&&y.jsx(lR,{sx:{minWidth:0,mr:e?"auto":3,justifyContent:"center",color:"inherit"},children:f}),y.jsx(cR,{sx:{opacity:e?0:1},children:c}),!e&&g&&y.jsx(xy,{})]},m)})}),t.map(u=>{const{key:c,children:f}=u;return f?y.jsx(Yk,{items:f,onClick:n,collapsed:e,sx:{pl:e?0:2,pb:0},open:!!o[c],anchorEl:o[c],anchorOrigin:{vertical:"top",horizontal:"right"},onClose:()=>s({...o,[c]:null}),slotProps:{paper:{sx:{minWidth:l}}}},c):null})]})},Qy={delete:e=>async({selected:t,notify:n,dialog:r,refresh:o,t:s})=>{const l=e.getSchema().softDeletes?"send to trash":"delete permanently",u=e.getSchema().softDeletes?"sent to trash":"deleted";if(await r({title:e.getSchema().softDeletes?s("Confirm send to trash"):s("Confirm delete permanently"),message:s(`Are you sure you want to ${l} :count :model?`,{count:t.count(),model:_e.lcfirst(t.count()===1?e.singular():e.plural())}),type:"confirm"}))try{await e.delete(t.pluck(e.getSchema().primaryKey).all()),n(s(`Successfully ${u} :count :model`,{count:t.count(),model:_e.lcfirst(t.count()===1?e.singular():e.plural())})),o()}catch(f){Qs(n)(f)}},restore:e=>async({selected:t,notify:n,dialog:r,refresh:o,t:s})=>{if(await r({title:s("Confirm restore"),message:s("Are you sure you want to restore :count :model?",{count:t.count(),model:_e.lcfirst(t.count()===1?e.singular():e.plural())}),type:"confirm"}))try{await e.restore(t.pluck(e.getSchema().primaryKey).all()),n(s("Successfully restored :count :model",{count:t.count(),model:_e.lcfirst(t.count()===1?e.singular():e.plural())})),o()}catch(u){Qs(n)(u)}},forceDelete:e=>async({selected:t,notify:n,dialog:r,refresh:o,t:s})=>{if(await r({title:s("Confirm permanent deletion"),message:s("Are you sure you want to delete permanently :count :model?",{count:t.count(),model:_e.lcfirst(t.count()===1?e.singular():e.plural())}),type:"confirm"}))try{await e.forceDelete(t.pluck(e.getSchema().primaryKey).all()),n(s("Successfully deleted :count :model",{count:t.count(),model:_e.lcfirst(t.count()===1?e.singular():e.plural())})),o()}catch(u){Qs(n)(u)}}},Yy={delete:e=>async({item:t,notify:n,dialog:r,refresh:o,t:s})=>{const l=e.getSchema().softDeletes?"send :model “:label” to trash":"delete :model “:label” permanently",u=e.getSchema().softDeletes?"sent :model “:label” to trash":"deleted :model “:label”";if(await r({title:e.getSchema().softDeletes?s("Confirm send to trash"):s("Confirm permanent deletion"),message:s(`Are you sure you want to ${l}?`,{model:_e.lcfirst(e.singular()),label:t.getLabel()}),type:"confirm"}))try{await t.delete(),n(s(`Successfully ${u}`,{model:e.singular(),label:t.getLabel()})),o()}catch(f){Qs(n)(f)}},restore:e=>async({item:t,notify:n,dialog:r,refresh:o,t:s})=>{if(await r({title:s("Confirm restore"),message:s("Are you sure you want to restore :model “:label”?",{model:_e.lcfirst(e.singular()),label:t.getLabel()}),type:"confirm"}))try{await t.restore(),n(s("Successfully restored :model “:label”",{model:e.singular(),label:t.getLabel()})),o()}catch(u){Qs(n)(u)}},forceDelete:e=>async({item:t,notify:n,dialog:r,refresh:o,t:s})=>{if(await r({title:s("Confirm permanent deletion"),message:s("Are you sure you want to delete :model “:label” permanently?",{model:_e.lcfirst(e.singular()),label:t.getLabel()}),type:"confirm"}))try{await t.forceDelete(),n(s("Successfully deleted :model “:label”",{model:e.singular(),label:t.getLabel()})),o()}catch(u){Qs(n)(u)}}},pZ={create:e=>({navigate:t})=>{t(`/${_e.kebab(e.plural())}/create`)}},hZ=({item:e})=>{const t=zy(),[n]=eo(),r=n.get("tab")??"all",o=ae.useMemo(()=>Tt("cms").getInstanceActions(e.constructor,r),[e,r]),[s,l]=ae.useState(null),u=!!s,c=p=>{l(p.currentTarget)},f=()=>{l(null)};return y.jsxs(y.Fragment,{children:[y.jsx(Wn,{"aria-describedby":"model-item-actions","aria-label":"filter",onClick:c,children:y.jsx(rk,{})}),y.jsx(ly,{id:"model-item-actions",anchorEl:s,open:u,onClose:f,MenuListProps:{"aria-labelledby":"model-item-action"},children:o.map(p=>y.jsxs(Ki,{onClick:()=>{p.callback({item:e,...t}),f()},sx:{px:1,gap:.75},children:[p.icon,p.label]},p.label))})]})};class mZ{getComponents(){return this.componentMap({})}getComponent(t){return this.getComponents()[t]}getRoutes(){return this.cmsRoutes([],this.getComponents(),Jl().make())}getMenuItems(){return this.menuItems([],Jl().make())}getModelFormProps(t){return this.wireModelFormProps({},t)}getMassActions(t,n){return this[`mass${_e.studly(t.getSchemaName())}Actions`](this.massActions([],t,n),t,n)}getInstanceActions(t,n){return this[`instance${_e.studly(t.getSchemaName())}Actions`](this.instanceActions([],t,n),t,n)}getStaticActions(t,n){return this[`static${_e.studly(t.getSchemaName())}Actions`](this.staticActions([],t,n),t,n)}}const gZ=Yl(mZ),nu=e=>!(typeof e>"u"||e===null||qe.isEmpty(e));class yZ{getInputType(t){switch(t){case"int":case"float":case"number":return"number";case"date":return"date";case"datetime":case"timestamp":return"datetime-local";case"autocomplete":return"autocomplete";case"bool":case"boolean":return"boolean";default:return"text"}}getOperators(){return _i("luminix.admin.filter.operators")}getMatchingOperators(t){return this.getOperators().filter(n=>["like"].includes(n)||!t.is_relation&&["relation"].includes(n)||["text"].includes(this.getInputType(t.type))&&["greaterThan","greaterThanOrEquals","lessThan","lessThanOrEquals","between","notBetween"].includes(n)||["number","date","datetime-local","boolean"].includes(this.getInputType(t.type))&&["like","contains","startsWith","endsWith"].includes(n)||!t.nullable&&["null","notNull"].includes(n)?!1:n).map(n=>{let r=n;switch(n){case"equals":r="=";break;case"notEquals":r="!=";break;case"greaterThan":r=">";break;case"greaterThanOrEquals":r=">=";break;case"lessThan":r="<";break;case"lessThanOrEquals":r="<=";break;default:r=_e.human(r);break}return{key:n,label:r}})}getFilterableColumns(t){const{attributes:n=[],relations:r={}}=t.getSchema();return[...n.filter(o=>!o.hidden&&!o.appended).map(o=>{let s=o.phpType??"string";return!qe.isNull(o.cast)&&!qe.isEmpty(o.cast)&&(s=o.cast),{key:o.name,label:_e.human(o.name),type:s,nullable:o.nullable,is_relation:!1}}),...Object.entries(r??{}).reduce((o,[s])=>[...o,{key:s,label:_e.human(s),type:"autocomplete",nullable:!1,is_relation:!0}],[])]}checkIfCanApplyFilters(t){return!!(t.length===0||t.map(r=>{if(!nu(r.key)||!nu(r.operator))return!0;if(["boolean"].includes(this.getInputType(r.type))){if(typeof r.value>"u"||qe.isNull(r.value))return!0}else if(!nu(r.value))return!0;return!!(Array.isArray(r.value)&&["between","notBetween"].includes(r.operator)&&(!nu(r.value[0])||!nu(r.value[1])))}).includes(!0))}}const vZ=Yl(yZ),Zf=class Zf extends Ed{register(){this.app.singleton("cms",()=>new gZ),this.app.singleton("filter",()=>new vZ),this.app.once("booting",()=>{this.bootModels()})}boot(){this.bootComponents(),this.bootRoutes(),this.bootMenu(),this.bootMassActions(),this.bootInstanceActions(),this.bootStaticActions(),Zf.applyUserDefaults&&this.bootDefaultUserModifiers()}bootModels(){kd.reducer("model",(t,n)=>class extends t{static icon(){return n==="user"?y.jsx(PY,{}):y.jsx(bY,{})}},0)}bootRoutes(){lr.reducer("cmsRoutes",jY,0),fm.reducer("domRouterOptions",t=>({...t,basename:Ii.get("luminix.admin.url","/admin")}))}bootComponents(){lr.reducer("componentMap",()=>({Layout:NY,Dashboard:_Y,ModelIndex:DY,ModelItem:fJ,Error:IY,DesktopPageTitle:OJ,RecursiveList:Qk,RecursiveMenu:Yk,Breadcrumbs:fZ,"Layout.AppBar":CJ,"Layout.Drawer":TJ,"Layout.AppBar.MenuButton":WJ,"Layout.SearchBar":XJ,"Layout.BackButton":EJ,"ModelIndex.Filter":zJ,"ModelIndex.InstanceActions":hZ,"ModelIndex.MassActions":UJ,"ModelIndex.Pagination":VJ,"ModelIndex.PaginationDetails":KJ,"ModelIndex.PerPageSwitch":GJ,"ModelIndex.Sort":ZJ,"ModelIndex.StaticActions":yJ,"ModelIndex.Table":tZ,"ModelIndex.Table.TableHead":nZ,"ModelIndex.Table.TableBody":oZ,"ModelIndex.Table.TableFooter":cZ,"ModelIndex.Table.TableToolbar":uZ,"ModelIndex.Table.TableBody.TableRow":lZ,"ModelIndex.Table.ShrinkedCell":JJ,"ModelIndex.Tabs":dZ}),0)}bootMenu(){lr.reducer("menuItems",(t,n)=>[...t,{key:"dashboard",text:"Dashboard",to:"/",icon:y.jsx(xY,{})},...Object.entries(n).sort(([r],[o])=>r.localeCompare(o)).map(([r,o])=>({key:r,text:o.plural(),to:"/"+_e.kebab(o.plural()),icon:o.icon()}))],0)}bootDefaultUserModifiers(){lr.reducer("modelUserColumns",()=>[{key:"name",label:"Name",scope:"row",component:"th"},{key:"email",label:"Email",align:"right",size:"small"},{key:"created_at",label:"Created At",align:"right",size:"small"}],1),lr.reducer("wireModelFormProps",(t,n)=>(n==null?void 0:n.getType())==="user"?{...t,confirmed:"password"}:t)}bootMassActions(){lr.reducer("massActions",(t,n,r)=>{const o=[],{softDeletes:s}=n.getSchema();return r!=="trashed"?o.push({key:"delete",label:s?"Send to trash":"Delete permanently",callback:Qy.delete(n)}):(o.push({key:"restore",label:"Restore",callback:Qy.restore(n)}),o.push({key:"forceDelete",label:"Delete permanently",callback:Qy.forceDelete(n)})),[...t,...o]},0)}bootInstanceActions(){lr.reducer("instanceActions",(t,n,r)=>{const o=[],{softDeletes:s}=n.getSchema();return r!=="trashed"?o.push({label:s?"Send to trash":"Delete permanently",callback:Yy.delete(n)}):(o.push({label:"Restore",callback:Yy.restore(n)}),o.push({label:"Delete permanently",callback:Yy.forceDelete(n)})),[...t,...o]},0)}bootStaticActions(){lr.reducer("staticActions",(t,n,r)=>r==="trashed"?t:[...t,{key:"create",label:`Create ${n.singular()}`,callback:pZ.create(n),icon:y.jsx(hY,{})}],0)}};jO(Zf,"applyUserDefaults",!0);let Xy=Zf;const bZ={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Gf{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||bZ,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Gf(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Gf(this.logger,t)}}var Yo=new Gf;class qf{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(l=>{let[u,c]=l;for(let f=0;f<c;f++)u(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(l=>{let[u,c]=l;for(let f=0;f<c;f++)u.apply(u,[t,...r])})}}function ru(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function Xk(e){return e==null?"":""+e}function xZ(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}const wZ=/###/g;function ou(e,t,n){function r(u){return u&&u.indexOf("###")>-1?u.replace(wZ,"."):u}function o(){return!e||typeof e=="string"}const s=typeof t!="string"?t:t.split(".");let l=0;for(;l<s.length-1;){if(o())return{};const u=r(s[l]);!e[u]&&n&&(e[u]=new n),Object.prototype.hasOwnProperty.call(e,u)?e=e[u]:e={},++l}return o()?{}:{obj:e,k:r(s[l])}}function Jk(e,t,n){const{obj:r,k:o}=ou(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let s=t[t.length-1],l=t.slice(0,t.length-1),u=ou(e,l,Object);for(;u.obj===void 0&&l.length;)s=`${l[l.length-1]}.${s}`,l=l.slice(0,l.length-1),u=ou(e,l,Object),u&&u.obj&&typeof u.obj[`${u.k}.${s}`]<"u"&&(u.obj=void 0);u.obj[`${u.k}.${s}`]=n}function SZ(e,t,n,r){const{obj:o,k:s}=ou(e,t,Object);o[s]=o[s]||[],o[s].push(n)}function Qf(e,t){const{obj:n,k:r}=ou(e,t);if(n)return n[r]}function CZ(e,t,n){const r=Qf(e,n);return r!==void 0?r:Qf(t,n)}function Zk(e,t,n){for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):Zk(e[r],t[r],n):e[r]=t[r]);return e}function al(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var EZ={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function RZ(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>EZ[t]):e}class kZ{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const PZ=[" ",",","?","!",";"],TZ=new kZ(20);function OZ(e,t,n){t=t||"",n=n||"";const r=PZ.filter(l=>t.indexOf(l)<0&&n.indexOf(l)<0);if(r.length===0)return!0;const o=TZ.getRegExp(`(${r.map(l=>l==="?"?"\\?":l).join("|")})`);let s=!o.test(e);if(!s){const l=e.indexOf(n);l>0&&!o.test(e.substring(0,l))&&(s=!0)}return s}function Jy(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let s=0;s<r.length;){if(!o||typeof o!="object")return;let l,u="";for(let c=s;c<r.length;++c)if(c!==s&&(u+=n),u+=r[c],l=o[u],l!==void 0){if(["string","number","boolean"].indexOf(typeof l)>-1&&c<r.length-1)continue;s+=c-s+1;break}o=l}return o}function Yf(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class eP extends qf{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,l=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let u;t.indexOf(".")>-1?u=t.split("."):(u=[t,n],r&&(Array.isArray(r)?u.push(...r):typeof r=="string"&&s?u.push(...r.split(s)):u.push(r)));const c=Qf(this.data,u);return!c&&!n&&!r&&t.indexOf(".")>-1&&(t=u[0],n=u[1],r=u.slice(2).join(".")),c||!l||typeof r!="string"?c:Jy(this.data&&this.data[t]&&this.data[t][n],r,s)}addResource(t,n,r,o){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let u=[t,n];r&&(u=u.concat(l?r.split(l):r)),t.indexOf(".")>-1&&(u=t.split("."),o=n,n=u[1]),this.addNamespaces(n),Jk(this.data,u,o),s.silent||this.emit("added",t,n,r,o)}addResources(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(typeof r[s]=="string"||Array.isArray(r[s]))&&this.addResource(t,n,s,r[s],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,s){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},u=[t,n];t.indexOf(".")>-1&&(u=t.split("."),o=r,r=n,n=u[1]),this.addNamespaces(n);let c=Qf(this.data,u)||{};l.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?Zk(c,r,s):c={...c,...r},Jk(this.data,u,c),l.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var tP={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(s=>{this.processors[s]&&(t=this.processors[s].process(t,n,r,o))}),t}};const nP={};class Xf extends qf{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),xZ(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Yo.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const l=r&&t.indexOf(r)>-1,u=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!OZ(t,r,o);if(l&&!u){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:s};const f=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(f[0])>-1)&&(s=f.shift()),t=f.join(o)}return typeof s=="string"&&(s=[s]),{key:t,namespaces:s}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:l,namespaces:u}=this.extractFromKey(t[t.length-1],n),c=u[u.length-1],f=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(p){const A=n.nsSeparator||this.options.nsSeparator;return o?{res:`${c}${A}${l}`,usedKey:l,exactUsedKey:l,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${A}${l}`}return o?{res:l,usedKey:l,exactUsedKey:l,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:l}const m=this.resolve(t,n);let g=m&&m.res;const S=m&&m.usedKey||l,x=m&&m.exactUsedKey||l,b=Object.prototype.toString.apply(g),w=["[object Number]","[object Function]","[object RegExp]"],P=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject;if(R&&g&&(typeof g!="string"&&typeof g!="boolean"&&typeof g!="number")&&w.indexOf(b)<0&&!(typeof P=="string"&&Array.isArray(g))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const A=this.options.returnedObjectHandler?this.options.returnedObjectHandler(S,g,{...n,ns:u}):`key '${l} (${this.language})' returned an object instead of string.`;return o?(m.res=A,m.usedParams=this.getUsedParamsDetails(n),m):A}if(s){const A=Array.isArray(g),$=A?[]:{},T=A?x:S;for(const _ in g)if(Object.prototype.hasOwnProperty.call(g,_)){const M=`${T}${s}${_}`;$[_]=this.translate(M,{...n,joinArrays:!1,ns:u}),$[_]===M&&($[_]=g[_])}g=$}}else if(R&&typeof P=="string"&&Array.isArray(g))g=g.join(P),g&&(g=this.extendTranslation(g,t,n,r));else{let A=!1,$=!1;const T=n.count!==void 0&&typeof n.count!="string",_=Xf.hasDefaultValue(n),M=T?this.pluralResolver.getSuffix(f,n.count,n):"",F=n.ordinal&&T?this.pluralResolver.getSuffix(f,n.count,{ordinal:!1}):"",B=T&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),G=B&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${M}`]||n[`defaultValue${F}`]||n.defaultValue;!this.isValidLookup(g)&&_&&(A=!0,g=G),this.isValidLookup(g)||($=!0,g=l);const H=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&$?void 0:g,z=_&&G!==g&&this.options.updateMissing;if($||A||z){if(this.logger.log(z?"updateKey":"missingKey",f,c,l,z?G:g),s){const N=this.resolve(l,{...n,keySeparator:!1});N&&N.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let te=[];const Z=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Z&&Z[0])for(let N=0;N<Z.length;N++)te.push(Z[N]);else this.options.saveMissingTo==="all"?te=this.languageUtils.toResolveHierarchy(n.lng||this.language):te.push(n.lng||this.language);const X=(N,Y,ce)=>{const L=_&&ce!==g?ce:H;this.options.missingKeyHandler?this.options.missingKeyHandler(N,c,Y,L,z,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(N,c,Y,L,z,n),this.emit("missingKey",N,c,Y,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?te.forEach(N=>{const Y=this.pluralResolver.getSuffixes(N,n);B&&n[`defaultValue${this.options.pluralSeparator}zero`]&&Y.indexOf(`${this.options.pluralSeparator}zero`)<0&&Y.push(`${this.options.pluralSeparator}zero`),Y.forEach(ce=>{X([N],l+ce,n[`defaultValue${ce}`]||G)})}):X(te,l,G))}g=this.extendTranslation(g,t,n,m,r),$&&g===l&&this.options.appendNamespaceToMissingKey&&(g=`${c}:${l}`),($||A)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${l}`:l,A?g:void 0):g=this.options.parseMissingKeyHandler(g))}return o?(m.res=g,m.usedParams=this.getUsedParamsDetails(n),m):g}extendTranslation(t,n,r,o,s){var l=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const f=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(f){const g=t.match(this.interpolator.nestingRegexp);p=g&&g.length}let m=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,r.lng||this.language||o.usedLng,r),f){const g=t.match(this.interpolator.nestingRegexp),S=g&&g.length;p<S&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var g=arguments.length,S=new Array(g),x=0;x<g;x++)S[x]=arguments[x];return s&&s[0]===S[0]&&!r.context?(l.logger.warn(`It seems you are nesting recursively key: ${S[0]} in key: ${n[0]}`),null):l.translate(...S,n)},r)),r.interpolation&&this.interpolator.reset()}const u=r.postProcess||this.options.postProcess,c=typeof u=="string"?[u]:u;return t!=null&&c&&c.length&&r.applyPostProcessor!==!1&&(t=tP.handle(c,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,o,s,l,u;return typeof t=="string"&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(r))return;const f=this.extractFromKey(c,n),p=f.key;o=p;let m=f.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const g=n.count!==void 0&&typeof n.count!="string",S=g&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),x=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",b=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(w=>{this.isValidLookup(r)||(u=w,!nP[`${b[0]}-${w}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(u)&&(nP[`${b[0]}-${w}`]=!0,this.logger.warn(`key "${o}" for languages "${b.join(", ")}" won't get resolved as namespace "${u}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(P=>{if(this.isValidLookup(r))return;l=P;const R=[p];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(R,p,P,w,n);else{let A;g&&(A=this.pluralResolver.getSuffix(P,n.count,n));const $=`${this.options.pluralSeparator}zero`,T=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(R.push(p+A),n.ordinal&&A.indexOf(T)===0&&R.push(p+A.replace(T,this.options.pluralSeparator)),S&&R.push(p+$)),x){const _=`${p}${this.options.contextSeparator}${n.context}`;R.push(_),g&&(R.push(_+A),n.ordinal&&A.indexOf(T)===0&&R.push(_+A.replace(T,this.options.pluralSeparator)),S&&R.push(_+$))}}let O;for(;O=R.pop();)this.isValidLookup(r)||(s=O,r=this.getResource(P,w,O,n))}))})}),{res:r,usedKey:o,exactUsedKey:s,usedLng:l,usedNS:u}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const s of n)delete o[s]}return o}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function Zy(e){return e.charAt(0).toUpperCase()+e.slice(1)}class rP{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Yo.create("languageUtils")}getScriptPartFromCode(t){if(t=Yf(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Yf(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(o=>o.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Zy(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Zy(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Zy(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(s=>{if(s===o)return s;if(!(s.indexOf("-")<0&&o.indexOf("-")<0)&&(s.indexOf("-")>0&&o.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===o||s.indexOf(o)===0&&o.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],s=l=>{l&&(this.isSupportedCode(l)?o.push(l):this.logger.warn(`rejecting language code not found in supportedLngs: ${l}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):typeof t=="string"&&s(this.formatLanguageCode(t)),r.forEach(l=>{o.indexOf(l)<0&&s(this.formatLanguageCode(l))}),o}}let $Z=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],AZ={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const jZ=["v1","v2","v3"],_Z=["v4"],oP={zero:0,one:1,two:2,few:3,many:4,other:5};function IZ(){const e={};return $Z.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:AZ[t.fc]}})}),e}class MZ{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Yo.create("pluralResolver"),(!this.options.compatibilityJSON||_Z.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=IZ()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Yf(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((o,s)=>oP[o]-oP[s]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):r.numbers.map(o=>this.getSuffix(t,o,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,r);return o?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let o=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const s=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?s():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!jZ.includes(this.options.compatibilityJSON)}}function iP(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=CZ(e,t,n);return!s&&o&&typeof n=="string"&&(s=Jy(e,n,r),s===void 0&&(s=Jy(t,n,r))),s}class NZ{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Yo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:s,prefixEscaped:l,suffix:u,suffixEscaped:c,formatSeparator:f,unescapeSuffix:p,unescapePrefix:m,nestingPrefix:g,nestingPrefixEscaped:S,nestingSuffix:x,nestingSuffixEscaped:b,nestingOptionsSeparator:w,maxReplaces:P,alwaysFormat:R}=t.interpolation;this.escape=n!==void 0?n:RZ,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=s?al(s):l||"{{",this.suffix=u?al(u):c||"}}",this.formatSeparator=f||",",this.unescapePrefix=p?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":p||"",this.nestingPrefix=g?al(g):S||al("$t("),this.nestingSuffix=x?al(x):b||al(")"),this.nestingOptionsSeparator=w||",",this.maxReplaces=P||1e3,this.alwaysFormat=R!==void 0?R:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,o){let s,l,u;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(x){return x.replace(/\$/g,"$$$$")}const p=x=>{if(x.indexOf(this.formatSeparator)<0){const R=iP(n,c,x,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(R,void 0,r,{...o,...n,interpolationkey:x}):R}const b=x.split(this.formatSeparator),w=b.shift().trim(),P=b.join(this.formatSeparator).trim();return this.format(iP(n,c,w,this.options.keySeparator,this.options.ignoreJSONStructure),P,r,{...o,...n,interpolationkey:w})};this.resetRegExp();const m=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,g=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:x=>f(x)},{regex:this.regexp,safeValue:x=>this.escapeValue?f(this.escape(x)):f(x)}].forEach(x=>{for(u=0;s=x.regex.exec(t);){const b=s[1].trim();if(l=p(b),l===void 0)if(typeof m=="function"){const P=m(t,s,o);l=typeof P=="string"?P:""}else if(o&&Object.prototype.hasOwnProperty.call(o,b))l="";else if(g){l=s[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),l="";else typeof l!="string"&&!this.useRawValueToEscape&&(l=Xk(l));const w=x.safeValue(l);if(t=t.replace(s[0],w),g?(x.regex.lastIndex+=l.length,x.regex.lastIndex-=s[0].length):x.regex.lastIndex=0,u++,u>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,l;function u(c,f){const p=this.nestingOptionsSeparator;if(c.indexOf(p)<0)return c;const m=c.split(new RegExp(`${p}[ ]*{`));let g=`{${m[1]}`;c=m[0],g=this.interpolate(g,l);const S=g.match(/'/g),x=g.match(/"/g);(S&&S.length%2===0&&!x||x.length%2!==0)&&(g=g.replace(/'/g,'"'));try{l=JSON.parse(g),f&&(l={...f,...l})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,b),`${c}${p}${g}`}return l.defaultValue&&l.defaultValue.indexOf(this.prefix)>-1&&delete l.defaultValue,c}for(;o=this.nestingRegexp.exec(t);){let c=[];l={...r},l=l.replace&&typeof l.replace!="string"?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;let f=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const p=o[1].split(this.formatSeparator).map(m=>m.trim());o[1]=p.shift(),c=p,f=!0}if(s=n(u.call(this,o[1].trim(),l),l),s&&o[0]===t&&typeof s!="string")return s;typeof s!="string"&&(s=Xk(s)),s||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),s=""),f&&(s=c.reduce((p,m)=>this.format(p,m,r.lng,{...r,interpolationkey:o[1].trim()}),s.trim())),t=t.replace(o[0],s),this.regexp.lastIndex=0}return t}}function LZ(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(l=>{if(l){const[u,...c]=l.split(":"),f=c.join(":").trim().replace(/^'+|'+$/g,""),p=u.trim();n[p]||(n[p]=f),f==="false"&&(n[p]=!1),f==="true"&&(n[p]=!0),isNaN(f)||(n[p]=parseInt(f,10))}})}return{formatName:t,formatOptions:n}}function ll(e){const t={};return function(r,o,s){const l=o+JSON.stringify(s);let u=t[l];return u||(u=e(Yf(o),s),t[l]=u),u(r)}}class DZ{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Yo.create("formatter"),this.options=t,this.formats={number:ll((n,r)=>{const o=new Intl.NumberFormat(n,{...r});return s=>o.format(s)}),currency:ll((n,r)=>{const o=new Intl.NumberFormat(n,{...r,style:"currency"});return s=>o.format(s)}),datetime:ll((n,r)=>{const o=new Intl.DateTimeFormat(n,{...r});return s=>o.format(s)}),relativetime:ll((n,r)=>{const o=new Intl.RelativeTimeFormat(n,{...r});return s=>o.format(s,r.range||"day")}),list:ll((n,r)=>{const o=new Intl.ListFormat(n,{...r});return s=>o.format(s)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=ll(n)}format(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((u,c)=>{const{formatName:f,formatOptions:p}=LZ(c);if(this.formats[f]){let m=u;try{const g=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},S=g.locale||g.lng||o.locale||o.lng||r;m=this.formats[f](u,S,{...p,...o,...g})}catch(g){this.logger.warn(g)}return m}else this.logger.warn(`there was no format function for ${f}`);return u},t)}}function FZ(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class BZ extends qf{constructor(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Yo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,o.backend,o)}queueLoad(t,n,r,o){const s={},l={},u={},c={};return t.forEach(f=>{let p=!0;n.forEach(m=>{const g=`${f}|${m}`;!r.reload&&this.store.hasResourceBundle(f,m)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?l[g]===void 0&&(l[g]=!0):(this.state[g]=1,p=!1,l[g]===void 0&&(l[g]=!0),s[g]===void 0&&(s[g]=!0),c[m]===void 0&&(c[m]=!0)))}),p||(u[f]=!0)}),(Object.keys(s).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(s),pending:Object.keys(l),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(c)}}loaded(t,n,r){const o=t.split("|"),s=o[0],l=o[1];n&&this.emit("failedLoading",s,l,n),r&&this.store.addResourceBundle(s,l,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;const u={};this.queue.forEach(c=>{SZ(c.loaded,[s],l),FZ(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(f=>{u[f]||(u[f]={});const p=c.loaded[f];p.length&&p.forEach(m=>{u[f][m]===void 0&&(u[f][m]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(c=>!c.done)}read(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,l=arguments.length>5?arguments[5]:void 0;if(!t.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:s,callback:l});return}this.readingCalls++;const u=(f,p)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(f&&p&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,o+1,s*2,l)},s);return}l(f,p)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const f=c(t,n);f&&typeof f.then=="function"?f.then(p=>u(null,p)).catch(u):u(null,f)}catch(f){u(f)}return}return c(t,n,u)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const s=this.queueLoad(t,n,r,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach(l=>{this.loadOne(l)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),o=r[0],s=r[1];this.read(o,s,"read",void 0,void 0,(l,u)=>{l&&this.logger.warn(`${n}loading namespace ${s} for language ${o} failed`,l),!l&&u&&this.logger.log(`${n}loaded namespace ${s} for language ${o}`,u),this.loaded(t,l,u)})}saveMissing(t,n,r,o,s){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const c={...l,isUpdate:s},f=this.backend.create.bind(this.backend);if(f.length<6)try{let p;f.length===5?p=f(t,n,r,o,c):p=f(t,n,r,o),p&&typeof p.then=="function"?p.then(m=>u(null,m)).catch(u):u(null,p)}catch(p){u(p)}else f(t,n,r,o,u,c)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}function sP(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(o=>{n[o]=r[o]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function aP(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Jf(){}function zZ(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class iu extends qf{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=aP(t),this.services={},this.logger=Yo,this.modules={external:[]},zZ(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=sP();this.options={...o,...this.options,...aP(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function s(p){return p?typeof p=="function"?new p:p:null}if(!this.options.isClone){this.modules.logger?Yo.init(s(this.modules.logger),this.options):Yo.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:typeof Intl<"u"&&(p=DZ);const m=new rP(this.options);this.store=new eP(this.options.resources,this.options);const g=this.services;g.logger=Yo,g.resourceStore=this.store,g.languageUtils=m,g.pluralResolver=new MZ(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(g.formatter=s(p),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new NZ(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new BZ(s(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(S){for(var x=arguments.length,b=new Array(x>1?x-1:0),w=1;w<x;w++)b[w-1]=arguments[w];t.emit(S,...b)}),this.modules.languageDetector&&(g.languageDetector=s(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=s(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new Xf(this.services,this.options),this.translator.on("*",function(S){for(var x=arguments.length,b=new Array(x>1?x-1:0),w=1;w<x;w++)b[w-1]=arguments[w];t.emit(S,...b)}),this.modules.external.forEach(S=>{S.init&&S.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Jf),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(p=>{this[p]=function(){return t.store[p](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=function(){return t.store[p](...arguments),t}});const c=ru(),f=()=>{const p=(m,g)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(g),r(m,g)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),c}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jf;const o=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],l=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(f=>{f!=="cimode"&&s.indexOf(f)<0&&s.push(f)})};o?l(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>l(c)),this.options.preload&&this.options.preload.forEach(u=>l(u)),this.services.backendConnector.load(s,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(u)})}else r(null)}reloadResources(t,n,r){const o=ru();return t||(t=this.languages),n||(n=this.options.ns),r||(r=Jf),this.services.backendConnector.reload(t,n,s=>{o.resolve(),r(s)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&tP.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const o=ru();this.emit("languageChanging",t);const s=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},l=(c,f)=>{f?(s(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,o.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},u=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const f=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);f&&(this.language||s(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(f)),this.loadResources(f,p=>{l(p,f)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(t),o}getFixedT(t,n,r){var o=this;const s=function(l,u){let c;if(typeof u!="object"){for(var f=arguments.length,p=new Array(f>2?f-2:0),m=2;m<f;m++)p[m-2]=arguments[m];c=o.options.overloadTranslationOptionHandler([l,u].concat(p))}else c={...u};c.lng=c.lng||s.lng,c.lngs=c.lngs||s.lngs,c.ns=c.ns||s.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||r||s.keyPrefix);const g=o.options.keySeparator||".";let S;return c.keyPrefix&&Array.isArray(l)?S=l.map(x=>`${c.keyPrefix}${g}${x}`):S=c.keyPrefix?`${c.keyPrefix}${g}${l}`:l,o.t(S,c)};return typeof t=="string"?s.lng=t:s.lngs=t,s.ns=n,s.keyPrefix=r,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const l=(u,c)=>{const f=this.services.backendConnector.state[`${u}|${c}`];return f===-1||f===2};if(n.precheck){const u=n.precheck(this,l);if(u!==void 0)return u}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(r,t)&&(!o||l(s,t)))}loadNamespaces(t,n){const r=ru();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=ru();typeof t=="string"&&(t=[t]);const o=this.options.preload||[],s=t.filter(l=>o.indexOf(l)<0&&this.services.languageUtils.isSupportedCode(l));return s.length?(this.options.preload=o.concat(s),this.loadResources(l=>{r.resolve(),n&&n(l)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new rP(sP());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new iu(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jf;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},s=new iu(o);return(t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(u=>{s[u]=this[u]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r&&(s.store=new eP(this.store.data,o),s.services.resourceStore=s.store),s.translator=new Xf(s.services,o),s.translator.on("*",function(u){for(var c=arguments.length,f=new Array(c>1?c-1:0),p=1;p<c;p++)f[p-1]=arguments[p];s.emit(u,...f)}),s.init(o,n),s.translator.options=o,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ln=iu.createInstance();ln.createInstance=iu.createInstance,ln.createInstance,ln.dir,ln.init,ln.loadResources,ln.reloadResources,ln.use,ln.changeLanguage,ln.getFixedT,ln.t,ln.exists,ln.setDefaultNamespace,ln.hasLoadedNamespace,ln.loadNamespaces,ln.loadLanguages;class UZ extends Ed{register(){this.app.once("booting",()=>{this.initI18Next(),this.translateModelNames()})}boot(){this.translateModelColumns(),this.translateMenuEntries(),this.translateInstanceActions(),this.translateMassActions(),this.translateFormLabels(),this.translateStaticActions()}initI18Next(){ln.use(aY).init({lng:Ii.get("app.locale","en"),fallbackLng:Ii.get("app.fallback_locale","en"),resources:{[Ii.get("app.locale","en")]:{translation:Ii.get("trans",{})}},...Ii.get("i18n",{}),interpolation:{prefix:":",suffix:"",prefixEscaped:":\\b",suffixEscaped:"(?:\\b)",...Ii.get("i18n.interpolation",{})},debug:Ii.get("app.debug",!1)})}translateModelNames(){kd.reducer("model",t=>class extends t{static singular(){return ln.t(t.singular())}static plural(){return ln.t(t.plural())}},0)}translateModelColumns(){for(const t of Object.keys(kd.make()))lr.reducer(`model${_e.studly(t)}Columns`,n=>n.map(r=>({...r,label:ln.t(r.label)})),99)}translateMenuEntries(){lr.reducer("menuItems",t=>{const n=t.find(r=>r.key==="dashboard");return n&&(n.text=ln.t(n.text)),t},5)}translateMassActions(){lr.reducer("massActions",t=>t.map(n=>({...n,label:ln.t(n.label)})),99)}translateInstanceActions(){lr.reducer("instanceActions",t=>t.map(n=>({...n,label:ln.t(n.label)})),99)}translateStaticActions(){lr.reducer("staticActions",(t,n)=>{const r=t.find(({key:o})=>o==="create");return r&&(r.label=ln.t("Create :model",{model:n.singular()})),t})}translateFormLabels(){Md.reducer("getDefaultInputProps",t=>(Array.isArray(t)?t.map(n=>{n!=null&&n.label&&(n.label=ln.t(n.label))}):t!=null&&t.label&&(t.label=ln.t(t.label)),t),99)}}const WZ={palette:{primary:{main:"#1d9798"},secondary:{main:"#fa510c"}}},HZ=({theme:e=WZ,providers:t=[],...n})=>{const r=ef("(prefers-color-scheme: dark)"),o=ae.useMemo(()=>mg({...e,palette:{...e.palette,mode:r?"dark":"light"}}),[e,r]);return y.jsxs(kU,{theme:o,children:[y.jsx(RH,{}),y.jsx(H4,{routes:s=>s.make("cms").getRoutes(),providers:[Xy,UZ,...t],...n})]})},lP=document.getElementById("root");if(!lP)throw new Error("Failed to find the root element");oh.createRoot(lP).render(y.jsx(ae.StrictMode,{children:y.jsx(HZ,{})}))})();
|